diff --git a/assets/index-0B7fR9fo.js b/assets/index-MippoQT1.js similarity index 73% rename from assets/index-0B7fR9fo.js rename to assets/index-MippoQT1.js index 04a93dcc..f6ed1e1d 100644 --- a/assets/index-0B7fR9fo.js +++ b/assets/index-MippoQT1.js @@ -1,4 +1,4 @@ -var owe=Object.defineProperty;var lwe=(e,t,n)=>t in e?owe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var uwe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ms=(e,t,n)=>(lwe(e,typeof t!="symbol"?t+"":t,n),n),LD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Le=(e,t,n)=>(LD(e,t,"read from private field"),n?n.call(e):t.get(e)),En=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sn=(e,t,n,r)=>(LD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var yC=(e,t,n,r)=>({set _(i){sn(e,t,i,n)},get _(){return Le(e,t,r)}}),or=(e,t,n)=>(LD(e,t,"access private method"),n);var VCt=uwe((aAt,f_)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6b1939f5-834b-4aac-99e4-ae7e76039a05",e._sentryDebugIdIdentifier="sentry-dbid-6b1939f5-834b-4aac-99e4-ae7e76039a05")}catch{}})();function Tie(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var cwe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};cwe.SENTRY_RELEASE={id:"e1cebe0ec3304b2ad8cdad94926a25fadef39da3"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.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)}})();var mf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dwe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var kie={exports:{}},O5={},Cie={exports:{}},Pr={};/** +var owe=Object.defineProperty;var lwe=(e,t,n)=>t in e?owe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var uwe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ls=(e,t,n)=>(lwe(e,typeof t!="symbol"?t+"":t,n),n),FD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Le=(e,t,n)=>(FD(e,t,"read from private field"),n?n.call(e):t.get(e)),En=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sn=(e,t,n,r)=>(FD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var vC=(e,t,n,r)=>({set _(i){sn(e,t,i,n)},get _(){return Le(e,t,r)}}),or=(e,t,n)=>(FD(e,t,"access private method"),n);var ZCt=uwe((dAt,h_)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e461d5bb-ab25-4362-a970-7f31829728a0",e._sentryDebugIdIdentifier="sentry-dbid-e461d5bb-ab25-4362-a970-7f31829728a0")}catch{}})();function kie(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var cwe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};cwe.SENTRY_RELEASE={id:"cd36e26ae129582317d6b5333df11d1602e1cbf5"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.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)}})();var mf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dwe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Cie={exports:{}},w5={},Aie={exports:{}},Pr={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var owe=Object.defineProperty;var lwe=(e,t,n)=>t in e?owe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Hx=Symbol.for("react.element"),fwe=Symbol.for("react.portal"),hwe=Symbol.for("react.fragment"),pwe=Symbol.for("react.strict_mode"),mwe=Symbol.for("react.profiler"),gwe=Symbol.for("react.provider"),bwe=Symbol.for("react.context"),ywe=Symbol.for("react.forward_ref"),vwe=Symbol.for("react.suspense"),Owe=Symbol.for("react.memo"),Swe=Symbol.for("react.lazy"),Hq=Symbol.iterator;function Ewe(e){return e===null||typeof e!="object"?null:(e=Hq&&e[Hq]||e["@@iterator"],typeof e=="function"?e:null)}var Aie={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_ie=Object.assign,Rie={};function gO(e,t,n){this.props=e,this.context=t,this.refs=Rie,this.updater=n||Aie}gO.prototype.isReactComponent={};gO.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};gO.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Iie(){}Iie.prototype=gO.prototype;function $9(e,t,n){this.props=e,this.context=t,this.refs=Rie,this.updater=n||Aie}var F9=$9.prototype=new Iie;F9.constructor=$9;_ie(F9,gO.prototype);F9.isPureReactComponent=!0;var Vq=Array.isArray,Die=Object.prototype.hasOwnProperty,B9={current:null},Nie={key:!0,ref:!0,__self:!0,__source:!0};function Pie(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)Die.call(t,r)&&!Nie.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1t in e?owe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Cwe=N,Awe=Symbol.for("react.element"),_we=Symbol.for("react.fragment"),Rwe=Object.prototype.hasOwnProperty,Iwe=Cwe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dwe={key:!0,ref:!0,__self:!0,__source:!0};function Mie(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Rwe.call(t,r)&&!Dwe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Awe,type:e,key:a,ref:s,props:i,_owner:Iwe.current}}O5.Fragment=_we;O5.jsx=Mie;O5.jsxs=Mie;kie.exports=O5;var I=kie.exports,w7={},Lie={exports:{}},_u={},$ie={exports:{}},Fie={};/** + */var Cwe=N,Awe=Symbol.for("react.element"),_we=Symbol.for("react.fragment"),Rwe=Object.prototype.hasOwnProperty,Iwe=Cwe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dwe={key:!0,ref:!0,__self:!0,__source:!0};function Lie(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Rwe.call(t,r)&&!Dwe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Awe,type:e,key:a,ref:s,props:i,_owner:Iwe.current}}w5.Fragment=_we;w5.jsx=Lie;w5.jsxs=Lie;Cie.exports=w5;var I=Cie.exports,T7={},$ie={exports:{}},_u={},Fie={exports:{}},Bie={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var owe=Object.defineProperty;var lwe=(e,t,n)=>t in e?owe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(X,te){var z=X.length;X.push(te);e:for(;0>>1,be=X[Te];if(0>>1;Tei(Oe,z))iei(_e,Oe)?(X[Te]=_e,X[ie]=z,Te=ie):(X[Te]=Oe,X[ye]=z,Te=ye);else if(iei(_e,z))X[Te]=_e,X[ie]=z,Te=ie;else break e}}return te}function i(X,te){var z=X.sortIndex-te.sortIndex;return z!==0?z:X.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,f=null,h=3,g=!1,b=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(X){for(var te=n(u);te!==null;){if(te.callback===null)r(u);else if(te.startTime<=X)r(u),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(u)}}function C(X){if(S=!1,k(X),!b)if(n(l)!==null)b=!0,J(R);else{var te=n(u);te!==null&&K(C,te.startTime-X)}}function R(X,te){b=!1,S&&(S=!1,w(B),B=-1),g=!0;var z=h;try{for(k(te),f=n(l);f!==null&&(!(f.expirationTime>te)||X&&!W());){var Te=f.callback;if(typeof Te=="function"){f.callback=null,h=f.priorityLevel;var be=Te(f.expirationTime<=te);te=e.unstable_now(),typeof be=="function"?f.callback=be:f===n(l)&&r(l),k(te)}else r(l);f=n(l)}if(f!==null)var ee=!0;else{var ye=n(u);ye!==null&&K(C,ye.startTime-te),ee=!1}return ee}finally{f=null,h=z,g=!1}}var A=!1,D=null,B=-1,L=5,F=-1;function W(){return!(e.unstable_now()-FX||125Te?(X.sortIndex=z,t(u,X),n(l)===null&&X===n(u)&&(S?(w(B),B=-1):S=!0,K(C,z-Te))):(X.sortIndex=be,t(l,X),b||g||(b=!0,J(R))),X},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(X){var te=h;return function(){var z=h;h=te;try{return X.apply(this,arguments)}finally{h=z}}}})(Fie);$ie.exports=Fie;var Nwe=$ie.exports;/** + */(function(e){function t(X,te){var z=X.length;X.push(te);e:for(;0>>1,be=X[Te];if(0>>1;Tei(Oe,z))iei(_e,Oe)?(X[Te]=_e,X[ie]=z,Te=ie):(X[Te]=Oe,X[ye]=z,Te=ye);else if(iei(_e,z))X[Te]=_e,X[ie]=z,Te=ie;else break e}}return te}function i(X,te){var z=X.sortIndex-te.sortIndex;return z!==0?z:X.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,f=null,h=3,g=!1,b=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(X){for(var te=n(u);te!==null;){if(te.callback===null)r(u);else if(te.startTime<=X)r(u),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(u)}}function C(X){if(S=!1,k(X),!b)if(n(l)!==null)b=!0,J(R);else{var te=n(u);te!==null&&K(C,te.startTime-X)}}function R(X,te){b=!1,S&&(S=!1,E(B),B=-1),g=!0;var z=h;try{for(k(te),f=n(l);f!==null&&(!(f.expirationTime>te)||X&&!W());){var Te=f.callback;if(typeof Te=="function"){f.callback=null,h=f.priorityLevel;var be=Te(f.expirationTime<=te);te=e.unstable_now(),typeof be=="function"?f.callback=be:f===n(l)&&r(l),k(te)}else r(l);f=n(l)}if(f!==null)var ee=!0;else{var ye=n(u);ye!==null&&K(C,ye.startTime-te),ee=!1}return ee}finally{f=null,h=z,g=!1}}var A=!1,D=null,B=-1,L=5,F=-1;function W(){return!(e.unstable_now()-FX||125Te?(X.sortIndex=z,t(u,X),n(l)===null&&X===n(u)&&(S?(E(B),B=-1):S=!0,K(C,z-Te))):(X.sortIndex=be,t(l,X),b||g||(b=!0,J(R))),X},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(X){var te=h;return function(){var z=h;h=te;try{return X.apply(this,arguments)}finally{h=z}}}})(Bie);Fie.exports=Bie;var Nwe=Fie.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var owe=Object.defineProperty;var lwe=(e,t,n)=>t in e?owe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Bie=N,xu=Nwe;function jt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x7=Object.prototype.hasOwnProperty,Pwe=/^[: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]*$/,Qq={},qq={};function Mwe(e){return x7.call(qq,e)?!0:x7.call(Qq,e)?!1:Pwe.test(e)?qq[e]=!0:(Qq[e]=!0,!1)}function Lwe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $we(e,t,n,r){if(t===null||typeof t>"u"||Lwe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ko(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Ys={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ys[e]=new Ko(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ys[t]=new Ko(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ys[e]=new Ko(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ys[e]=new Ko(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ys[e]=new Ko(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ys[e]=new Ko(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ys[e]=new Ko(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ys[e]=new Ko(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ys[e]=new Ko(e,5,!1,e.toLowerCase(),null,!1,!1)});var z9=/[\-:]([a-z])/g;function j9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(z9,j9);Ys[t]=new Ko(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(z9,j9);Ys[t]=new Ko(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(z9,j9);Ys[t]=new Ko(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ys[e]=new Ko(e,1,!1,e.toLowerCase(),null,!1,!1)});Ys.xlinkHref=new Ko("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ys[e]=new Ko(e,1,!1,e.toLowerCase(),null,!0,!0)});function H9(e,t,n,r){var i=Ys.hasOwnProperty(t)?Ys[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),k7=Object.prototype.hasOwnProperty,Pwe=/^[: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]*$/,qq={},Gq={};function Mwe(e){return k7.call(Gq,e)?!0:k7.call(qq,e)?!1:Pwe.test(e)?Gq[e]=!0:(qq[e]=!0,!1)}function Lwe(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $we(e,t,n,r){if(t===null||typeof t>"u"||Lwe(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ko(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Zs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zs[e]=new Ko(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zs[t]=new Ko(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zs[e]=new Ko(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zs[e]=new Ko(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Zs[e]=new Ko(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zs[e]=new Ko(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zs[e]=new Ko(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zs[e]=new Ko(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zs[e]=new Ko(e,5,!1,e.toLowerCase(),null,!1,!1)});var j9=/[\-:]([a-z])/g;function H9(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(j9,H9);Zs[t]=new Ko(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(j9,H9);Zs[t]=new Ko(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(j9,H9);Zs[t]=new Ko(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zs[e]=new Ko(e,1,!1,e.toLowerCase(),null,!1,!1)});Zs.xlinkHref=new Ko("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zs[e]=new Ko(e,1,!1,e.toLowerCase(),null,!0,!0)});function V9(e,t,n,r){var i=Zs.hasOwnProperty(t)?Zs[t]:null;(i!==null?i.type!==0:r||!(2o||i[s]!==a[o]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{BD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?QE(e):""}function Fwe(e){switch(e.tag){case 5:return QE(e.type);case 16:return QE("Lazy");case 13:return QE("Suspense");case 19:return QE("SuspenseList");case 0:case 2:case 15:return e=UD(e.type,!1),e;case 11:return e=UD(e.type.render,!1),e;case 1:return e=UD(e.type,!0),e;default:return""}}function A7(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yy:return"Fragment";case by:return"Portal";case T7:return"Profiler";case V9:return"StrictMode";case k7:return"Suspense";case C7:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jie:return(e.displayName||"Context")+".Consumer";case zie:return(e._context.displayName||"Context")+".Provider";case W9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q9:return t=e.displayName||null,t!==null?t:A7(e.type)||"Memo";case am:t=e._payload,e=e._init;try{return A7(e(t))}catch{}}return null}function Bwe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return A7(t);case 8:return t===V9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zm(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vie(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uwe(e){var t=Vie(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function SC(e){e._valueTracker||(e._valueTracker=Uwe(e))}function Wie(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vie(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function h_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function _7(e,t){var n=t.checked;return oa({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yq(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zm(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qie(e,t){t=t.checked,t!=null&&H9(e,"checked",t,!1)}function R7(e,t){Qie(e,t);var n=Zm(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?I7(e,t.type,n):t.hasOwnProperty("defaultValue")&&I7(e,t.type,Zm(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zq(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function I7(e,t,n){(t!=="number"||h_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qE=Array.isArray;function Hy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=EC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ow(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var h2={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zwe=["Webkit","ms","Moz","O"];Object.keys(h2).forEach(function(e){zwe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),h2[t]=h2[e]})});function Zie(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||h2.hasOwnProperty(e)&&h2[e]?(""+t).trim():t+"px"}function Xie(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Zie(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jwe=oa({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function P7(e,t){if(t){if(jwe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(jt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(jt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(jt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(jt(62))}}function M7(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L7=null;function q9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $7=null,Vy=null,Wy=null;function Jq(e){if(e=Qx(e)){if(typeof $7!="function")throw Error(jt(280));var t=e.stateNode;t&&(t=T5(t),$7(e.stateNode,e.type,t))}}function Kie(e){Vy?Wy?Wy.push(e):Wy=[e]:Vy=e}function Jie(){if(Vy){var e=Vy,t=Wy;if(Wy=Vy=null,Jq(e),t)for(e=0;e>>=0,e===0?32:31-(Jwe(e)/exe|0)|0}var wC=64,xC=4194304;function GE(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function b_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=GE(o):(a&=s,a!==0&&(r=GE(a)))}else s=n&~i,s!==0?r=GE(s):a!==0&&(r=GE(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Vx(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-hd(t),e[t]=n}function ixe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=m2),lG=" ",uG=!1;function vae(e,t){switch(e){case"keyup":return Dxe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oae(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vy=!1;function Pxe(e,t){switch(e){case"compositionend":return Oae(t);case"keypress":return t.which!==32?null:(uG=!0,lG);case"textInput":return e=t.data,e===lG&&uG?null:e;default:return null}}function Mxe(e,t){if(vy)return e==="compositionend"||!t$&&vae(e,t)?(e=bae(),o4=K9=xm=null,vy=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=hG(n)}}function xae(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xae(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tae(){for(var e=window,t=h_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=h_(e.document)}return t}function n$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vxe(e){var t=Tae(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xae(n.ownerDocument.documentElement,n)){if(r!==null&&n$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=pG(n,a);var s=pG(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Oy=null,H7=null,b2=null,V7=!1;function mG(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;V7||Oy==null||Oy!==h_(r)||(r=Oy,"selectionStart"in r&&n$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),b2&&hw(b2,r)||(b2=r,r=O_(H7,"onSelect"),0wy||(e.current=Z7[wy],Z7[wy]=null,wy--)}function Ri(e,t){wy++,Z7[wy]=e.current,e.current=t}var Xm={},So=g0(Xm),El=g0(!1),t1=Xm;function $v(e,t){var n=e.type.contextTypes;if(!n)return Xm;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wl(e){return e=e.childContextTypes,e!=null}function E_(){ji(El),ji(So)}function EG(e,t,n){if(So.current!==Xm)throw Error(jt(168));Ri(So,t),Ri(El,n)}function Pae(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(jt(108,Bwe(e)||"Unknown",i));return oa({},n,r)}function w_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xm,t1=So.current,Ri(So,e),Ri(El,El.current),!0}function wG(e,t,n){var r=e.stateNode;if(!r)throw Error(jt(169));n?(e=Pae(e,t,t1),r.__reactInternalMemoizedMergedChildContext=e,ji(El),ji(So),Ri(So,e)):ji(El),Ri(El,n)}var Dh=null,k5=!1,eN=!1;function Mae(e){Dh===null?Dh=[e]:Dh.push(e)}function nTe(e){k5=!0,Mae(e)}function b0(){if(!eN&&Dh!==null){eN=!0;var e=0,t=hi;try{var n=Dh;for(hi=1;e>=s,i-=s,Fh=1<<32-hd(t)+i|n<B?(L=D,D=null):L=D.sibling;var F=h(w,D,k[B],C);if(F===null){D===null&&(D=L);break}e&&D&&F.alternate===null&&t(w,D),x=a(F,x,B),A===null?R=F:A.sibling=F,A=F,D=L}if(B===k.length)return n(w,D),Zi&&yg(w,B),R;if(D===null){for(;BB?(L=D,D=null):L=D.sibling;var W=h(w,D,F.value,C);if(W===null){D===null&&(D=L);break}e&&D&&W.alternate===null&&t(w,D),x=a(W,x,B),A===null?R=W:A.sibling=W,A=W,D=L}if(F.done)return n(w,D),Zi&&yg(w,B),R;if(D===null){for(;!F.done;B++,F=k.next())F=f(w,F.value,C),F!==null&&(x=a(F,x,B),A===null?R=F:A.sibling=F,A=F);return Zi&&yg(w,B),R}for(D=r(w,D);!F.done;B++,F=k.next())F=g(D,w,B,F.value,C),F!==null&&(e&&F.alternate!==null&&D.delete(F.key===null?B:F.key),x=a(F,x,B),A===null?R=F:A.sibling=F,A=F);return e&&D.forEach(function(V){return t(w,V)}),Zi&&yg(w,B),R}function E(w,x,k,C){if(typeof k=="object"&&k!==null&&k.type===yy&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case OC:e:{for(var R=k.key,A=x;A!==null;){if(A.key===R){if(R=k.type,R===yy){if(A.tag===7){n(w,A.sibling),x=i(A,k.props.children),x.return=w,w=x;break e}}else if(A.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===am&&RG(R)===A.type){n(w,A.sibling),x=i(A,k.props),x.ref=sE(w,A,k),x.return=w,w=x;break e}n(w,A);break}else t(w,A);A=A.sibling}k.type===yy?(x=Xg(k.props.children,w.mode,C,k.key),x.return=w,w=x):(C=m4(k.type,k.key,k.props,null,w.mode,C),C.ref=sE(w,x,k),C.return=w,w=C)}return s(w);case by:e:{for(A=k.key;x!==null;){if(x.key===A)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(w,x.sibling),x=i(x,k.children||[]),x.return=w,w=x;break e}else{n(w,x);break}else t(w,x);x=x.sibling}x=lN(k,w.mode,C),x.return=w,w=x}return s(w);case am:return A=k._init,E(w,x,A(k._payload),C)}if(qE(k))return b(w,x,k,C);if(tE(k))return S(w,x,k,C);IC(w,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(w,x.sibling),x=i(x,k),x.return=w,w=x):(n(w,x),x=oN(k,w.mode,C),x.return=w,w=x),s(w)):n(w,x)}return E}var Bv=Hae(!0),Vae=Hae(!1),qx={},If=g0(qx),bw=g0(qx),yw=g0(qx);function Rg(e){if(e===qx)throw Error(jt(174));return e}function d$(e,t){switch(Ri(yw,t),Ri(bw,e),Ri(If,qx),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:N7(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=N7(t,e)}ji(If),Ri(If,t)}function Uv(){ji(If),ji(bw),ji(yw)}function Wae(e){Rg(yw.current);var t=Rg(If.current),n=N7(t,e.type);t!==n&&(Ri(bw,e),Ri(If,n))}function f$(e){bw.current===e&&(ji(If),ji(bw))}var ra=g0(0);function __(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tN=[];function h$(){for(var e=0;en?n:4,e(!0);var r=nN.transition;nN.transition={};try{e(!1),t()}finally{hi=n,nN.transition=r}}function ose(){return xc().memoizedState}function sTe(e,t,n){var r=Um(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lse(e))use(t,n);else if(n=Bae(e,t,n,r),n!==null){var i=Qo();pd(n,e,r,i),cse(n,t,r)}}function oTe(e,t,n){var r=Um(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lse(e))use(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,yd(o,s)){var l=t.interleaved;l===null?(i.next=i,u$(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Bae(e,t,i,r),n!==null&&(i=Qo(),pd(n,e,r,i),cse(n,t,r))}}function lse(e){var t=e.alternate;return e===sa||t!==null&&t===sa}function use(e,t){y2=R_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cse(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Y9(e,n)}}var I_={readContext:wc,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useInsertionEffect:uo,useLayoutEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useDeferredValue:uo,useTransition:uo,useMutableSource:uo,useSyncExternalStore:uo,useId:uo,unstable_isNewReconciler:!1},lTe={readContext:wc,useCallback:function(e,t){return rf().memoizedState=[e,t===void 0?null:t],e},useContext:wc,useEffect:DG,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,d4(4194308,4,nse.bind(null,t,e),n)},useLayoutEffect:function(e,t){return d4(4194308,4,e,t)},useInsertionEffect:function(e,t){return d4(4,2,e,t)},useMemo:function(e,t){var n=rf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rf();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sTe.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){var t=rf();return e={current:e},t.memoizedState=e},useState:IG,useDebugValue:y$,useDeferredValue:function(e){return rf().memoizedState=e},useTransition:function(){var e=IG(!1),t=e[0];return e=aTe.bind(null,e[1]),rf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=rf();if(Zi){if(n===void 0)throw Error(jt(407));n=n()}else{if(n=t(),Es===null)throw Error(jt(349));r1&30||Gae(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,DG(Zae.bind(null,r,a,e),[e]),r.flags|=2048,Sw(9,Yae.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=rf(),t=Es.identifierPrefix;if(Zi){var n=Bh,r=Fh;n=(r&~(1<<32-hd(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vw++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{zD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?QE(e):""}function Fwe(e){switch(e.tag){case 5:return QE(e.type);case 16:return QE("Lazy");case 13:return QE("Suspense");case 19:return QE("SuspenseList");case 0:case 2:case 15:return e=jD(e.type,!1),e;case 11:return e=jD(e.type.render,!1),e;case 1:return e=jD(e.type,!0),e;default:return""}}function R7(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yy:return"Fragment";case by:return"Portal";case C7:return"Profiler";case W9:return"StrictMode";case A7:return"Suspense";case _7:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hie:return(e.displayName||"Context")+".Consumer";case jie:return(e._context.displayName||"Context")+".Provider";case Q9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q9:return t=e.displayName||null,t!==null?t:R7(e.type)||"Memo";case sm:t=e._payload,e=e._init;try{return R7(e(t))}catch{}}return null}function Bwe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return R7(t);case 8:return t===W9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xm(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wie(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uwe(e){var t=Wie(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function EC(e){e._valueTracker||(e._valueTracker=Uwe(e))}function Qie(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wie(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function p_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function I7(e,t){var n=t.checked;return oa({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zq(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xm(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qie(e,t){t=t.checked,t!=null&&V9(e,"checked",t,!1)}function D7(e,t){qie(e,t);var n=Xm(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?N7(e,t.type,n):t.hasOwnProperty("defaultValue")&&N7(e,t.type,Xm(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xq(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function N7(e,t,n){(t!=="number"||p_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qE=Array.isArray;function Hy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=wC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ow(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var h2={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zwe=["Webkit","ms","Moz","O"];Object.keys(h2).forEach(function(e){zwe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),h2[t]=h2[e]})});function Xie(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||h2.hasOwnProperty(e)&&h2[e]?(""+t).trim():t+"px"}function Kie(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Xie(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var jwe=oa({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function L7(e,t){if(t){if(jwe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(jt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(jt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(jt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(jt(62))}}function $7(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var F7=null;function G9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var B7=null,Vy=null,Wy=null;function eG(e){if(e=Qx(e)){if(typeof B7!="function")throw Error(jt(280));var t=e.stateNode;t&&(t=A5(t),B7(e.stateNode,e.type,t))}}function Jie(e){Vy?Wy?Wy.push(e):Wy=[e]:Vy=e}function eae(){if(Vy){var e=Vy,t=Wy;if(Wy=Vy=null,eG(e),t)for(e=0;e>>=0,e===0?32:31-(Jwe(e)/exe|0)|0}var xC=64,TC=4194304;function GE(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function y_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=GE(o):(a&=s,a!==0&&(r=GE(a)))}else s=n&~i,s!==0?r=GE(s):a!==0&&(r=GE(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Vx(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pd(t),e[t]=n}function ixe(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=m2),uG=" ",cG=!1;function Oae(e,t){switch(e){case"keyup":return Dxe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sae(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vy=!1;function Pxe(e,t){switch(e){case"compositionend":return Sae(t);case"keypress":return t.which!==32?null:(cG=!0,uG);case"textInput":return e=t.data,e===uG&&cG?null:e;default:return null}}function Mxe(e,t){if(vy)return e==="compositionend"||!n$&&Oae(e,t)?(e=yae(),l4=J9=Tm=null,vy=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pG(n)}}function Tae(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tae(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kae(){for(var e=window,t=p_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=p_(e.document)}return t}function r$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vxe(e){var t=kae(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Tae(n.ownerDocument.documentElement,n)){if(r!==null&&r$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=mG(n,a);var s=mG(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Oy=null,W7=null,b2=null,Q7=!1;function gG(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Q7||Oy==null||Oy!==p_(r)||(r=Oy,"selectionStart"in r&&r$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),b2&&hw(b2,r)||(b2=r,r=S_(W7,"onSelect"),0wy||(e.current=K7[wy],K7[wy]=null,wy--)}function Ri(e,t){wy++,K7[wy]=e.current,e.current=t}var Km={},So=g0(Km),El=g0(!1),t1=Km;function $v(e,t){var n=e.type.contextTypes;if(!n)return Km;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wl(e){return e=e.childContextTypes,e!=null}function w_(){ji(El),ji(So)}function wG(e,t,n){if(So.current!==Km)throw Error(jt(168));Ri(So,t),Ri(El,n)}function Mae(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(jt(108,Bwe(e)||"Unknown",i));return oa({},n,r)}function x_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Km,t1=So.current,Ri(So,e),Ri(El,El.current),!0}function xG(e,t,n){var r=e.stateNode;if(!r)throw Error(jt(169));n?(e=Mae(e,t,t1),r.__reactInternalMemoizedMergedChildContext=e,ji(El),ji(So),Ri(So,e)):ji(El),Ri(El,n)}var Dh=null,_5=!1,nN=!1;function Lae(e){Dh===null?Dh=[e]:Dh.push(e)}function nTe(e){_5=!0,Lae(e)}function b0(){if(!nN&&Dh!==null){nN=!0;var e=0,t=hi;try{var n=Dh;for(hi=1;e>=s,i-=s,Fh=1<<32-pd(t)+i|n<B?(L=D,D=null):L=D.sibling;var F=h(E,D,k[B],C);if(F===null){D===null&&(D=L);break}e&&D&&F.alternate===null&&t(E,D),x=a(F,x,B),A===null?R=F:A.sibling=F,A=F,D=L}if(B===k.length)return n(E,D),Zi&&yg(E,B),R;if(D===null){for(;BB?(L=D,D=null):L=D.sibling;var W=h(E,D,F.value,C);if(W===null){D===null&&(D=L);break}e&&D&&W.alternate===null&&t(E,D),x=a(W,x,B),A===null?R=W:A.sibling=W,A=W,D=L}if(F.done)return n(E,D),Zi&&yg(E,B),R;if(D===null){for(;!F.done;B++,F=k.next())F=f(E,F.value,C),F!==null&&(x=a(F,x,B),A===null?R=F:A.sibling=F,A=F);return Zi&&yg(E,B),R}for(D=r(E,D);!F.done;B++,F=k.next())F=g(D,E,B,F.value,C),F!==null&&(e&&F.alternate!==null&&D.delete(F.key===null?B:F.key),x=a(F,x,B),A===null?R=F:A.sibling=F,A=F);return e&&D.forEach(function(V){return t(E,V)}),Zi&&yg(E,B),R}function w(E,x,k,C){if(typeof k=="object"&&k!==null&&k.type===yy&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case SC:e:{for(var R=k.key,A=x;A!==null;){if(A.key===R){if(R=k.type,R===yy){if(A.tag===7){n(E,A.sibling),x=i(A,k.props.children),x.return=E,E=x;break e}}else if(A.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===sm&&IG(R)===A.type){n(E,A.sibling),x=i(A,k.props),x.ref=sE(E,A,k),x.return=E,E=x;break e}n(E,A);break}else t(E,A);A=A.sibling}k.type===yy?(x=Xg(k.props.children,E.mode,C,k.key),x.return=E,E=x):(C=g4(k.type,k.key,k.props,null,E.mode,C),C.ref=sE(E,x,k),C.return=E,E=C)}return s(E);case by:e:{for(A=k.key;x!==null;){if(x.key===A)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(E,x.sibling),x=i(x,k.children||[]),x.return=E,E=x;break e}else{n(E,x);break}else t(E,x);x=x.sibling}x=cN(k,E.mode,C),x.return=E,E=x}return s(E);case sm:return A=k._init,w(E,x,A(k._payload),C)}if(qE(k))return b(E,x,k,C);if(tE(k))return S(E,x,k,C);DC(E,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(E,x.sibling),x=i(x,k),x.return=E,E=x):(n(E,x),x=uN(k,E.mode,C),x.return=E,E=x),s(E)):n(E,x)}return w}var Bv=Vae(!0),Wae=Vae(!1),qx={},If=g0(qx),bw=g0(qx),yw=g0(qx);function Rg(e){if(e===qx)throw Error(jt(174));return e}function f$(e,t){switch(Ri(yw,t),Ri(bw,e),Ri(If,qx),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:M7(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=M7(t,e)}ji(If),Ri(If,t)}function Uv(){ji(If),ji(bw),ji(yw)}function Qae(e){Rg(yw.current);var t=Rg(If.current),n=M7(t,e.type);t!==n&&(Ri(bw,e),Ri(If,n))}function h$(e){bw.current===e&&(ji(If),ji(bw))}var ra=g0(0);function R_(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rN=[];function p$(){for(var e=0;en?n:4,e(!0);var r=iN.transition;iN.transition={};try{e(!1),t()}finally{hi=n,iN.transition=r}}function lse(){return Tc().memoizedState}function sTe(e,t,n){var r=zm(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},use(e))cse(t,n);else if(n=Uae(e,t,n,r),n!==null){var i=Qo();md(n,e,r,i),dse(n,t,r)}}function oTe(e,t,n){var r=zm(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(use(e))cse(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,yd(o,s)){var l=t.interleaved;l===null?(i.next=i,c$(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Uae(e,t,i,r),n!==null&&(i=Qo(),md(n,e,r,i),dse(n,t,r))}}function use(e){var t=e.alternate;return e===sa||t!==null&&t===sa}function cse(e,t){y2=I_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dse(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Z9(e,n)}}var D_={readContext:xc,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useInsertionEffect:uo,useLayoutEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useDeferredValue:uo,useTransition:uo,useMutableSource:uo,useSyncExternalStore:uo,useId:uo,unstable_isNewReconciler:!1},lTe={readContext:xc,useCallback:function(e,t){return rf().memoizedState=[e,t===void 0?null:t],e},useContext:xc,useEffect:NG,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,f4(4194308,4,rse.bind(null,t,e),n)},useLayoutEffect:function(e,t){return f4(4194308,4,e,t)},useInsertionEffect:function(e,t){return f4(4,2,e,t)},useMemo:function(e,t){var n=rf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rf();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sTe.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){var t=rf();return e={current:e},t.memoizedState=e},useState:DG,useDebugValue:v$,useDeferredValue:function(e){return rf().memoizedState=e},useTransition:function(){var e=DG(!1),t=e[0];return e=aTe.bind(null,e[1]),rf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=rf();if(Zi){if(n===void 0)throw Error(jt(407));n=n()}else{if(n=t(),Es===null)throw Error(jt(349));r1&30||Yae(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,NG(Xae.bind(null,r,a,e),[e]),r.flags|=2048,Sw(9,Zae.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=rf(),t=Es.identifierPrefix;if(Zi){var n=Bh,r=Fh;n=(r&~(1<<32-pd(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vw++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gf]=t,e[gw]=r,vse(e,t,!1,!1),t.stateNode=e;e:{switch(s=M7(n,r),n){case"dialog":$i("cancel",e),$i("close",e),i=r;break;case"iframe":case"object":case"embed":$i("load",e),i=r;break;case"video":case"audio":for(i=0;ijv&&(t.flags|=128,r=!0,oE(a,!1),t.lanes=4194304)}else{if(!r)if(e=__(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oE(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Zi)return co(t),null}else 2*Pa()-a.renderingStartTime>jv&&n!==1073741824&&(t.flags|=128,r=!0,oE(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Pa(),t.sibling=null,n=ra.current,Ri(ra,r?n&1|2:n&1),t):(co(t),null);case 22:case 23:return x$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?au&1073741824&&(co(t),t.subtreeFlags&6&&(t.flags|=8192)):co(t),null;case 24:return null;case 25:return null}throw Error(jt(156,t.tag))}function gTe(e,t){switch(i$(t),t.tag){case 1:return wl(t.type)&&E_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uv(),ji(El),ji(So),h$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return f$(t),null;case 13:if(ji(ra),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(jt(340));Fv()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ji(ra),null;case 4:return Uv(),null;case 10:return l$(t.type._context),null;case 22:case 23:return x$(),null;case 24:return null;default:return null}}var NC=!1,mo=!1,bTe=typeof WeakSet=="function"?WeakSet:Set,On=null;function Cy(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oa(e,t,r)}else n.current=null}function l8(e,t,n){try{n()}catch(r){Oa(e,t,r)}}var zG=!1;function yTe(e,t){if(W7=y_,e=Tae(),n$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++u===i&&(o=s),h===a&&++c===r&&(l=s),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Q7={focusedElem:e,selectionRange:n},y_=!1,On=t;On!==null;)if(t=On,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,On=e;else for(;On!==null;){t=On;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var S=b.memoizedProps,E=b.memoizedState,w=t.stateNode,x=w.getSnapshotBeforeUpdate(t.elementType===t.type?S:Zc(t.type,S),E);w.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(jt(163))}}catch(C){Oa(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,On=e;break}On=t.return}return b=zG,zG=!1,b}function v2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&l8(t,n,a)}i=i.next}while(i!==r)}}function _5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function u8(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ese(e){var t=e.alternate;t!==null&&(e.alternate=null,Ese(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gf],delete t[gw],delete t[Y7],delete t[eTe],delete t[tTe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wse(e){return e.tag===5||e.tag===3||e.tag===4}function jG(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wse(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function c8(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=S_));else if(r!==4&&(e=e.child,e!==null))for(c8(e,t,n),e=e.sibling;e!==null;)c8(e,t,n),e=e.sibling}function d8(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(d8(e,t,n),e=e.sibling;e!==null;)d8(e,t,n),e=e.sibling}var Fs=null,Kc=!1;function qp(e,t,n){for(n=n.child;n!==null;)xse(e,t,n),n=n.sibling}function xse(e,t,n){if(Rf&&typeof Rf.onCommitFiberUnmount=="function")try{Rf.onCommitFiberUnmount(S5,n)}catch{}switch(n.tag){case 5:mo||Cy(n,t);case 6:var r=Fs,i=Kc;Fs=null,qp(e,t,n),Fs=r,Kc=i,Fs!==null&&(Kc?(e=Fs,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fs.removeChild(n.stateNode));break;case 18:Fs!==null&&(Kc?(e=Fs,n=n.stateNode,e.nodeType===8?JD(e.parentNode,n):e.nodeType===1&&JD(e,n),dw(e)):JD(Fs,n.stateNode));break;case 4:r=Fs,i=Kc,Fs=n.stateNode.containerInfo,Kc=!0,qp(e,t,n),Fs=r,Kc=i;break;case 0:case 11:case 14:case 15:if(!mo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&l8(n,t,s),i=i.next}while(i!==r)}qp(e,t,n);break;case 1:if(!mo&&(Cy(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Oa(n,t,o)}qp(e,t,n);break;case 21:qp(e,t,n);break;case 22:n.mode&1?(mo=(r=mo)||n.memoizedState!==null,qp(e,t,n),mo=r):qp(e,t,n);break;default:qp(e,t,n)}}function HG(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bTe),t.forEach(function(r){var i=CTe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Yc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Pa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*OTe(r/1960))-r,10e?16:e,Tm===null)var r=!1;else{if(e=Tm,Tm=null,P_=0,Gr&6)throw Error(jt(331));var i=Gr;for(Gr|=4,On=e.current;On!==null;){var a=On,s=a.child;if(On.flags&16){var o=a.deletions;if(o!==null){for(var l=0;lPa()-E$?Zg(e,0):S$|=n),xl(e,t)}function Dse(e,t){t===0&&(e.mode&1?(t=xC,xC<<=1,!(xC&130023424)&&(xC=4194304)):t=1);var n=Qo();e=Kh(e,t),e!==null&&(Vx(e,t,n),xl(e,n))}function kTe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dse(e,n)}function CTe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(jt(314))}r!==null&&r.delete(t),Dse(e,n)}var Nse;Nse=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||El.current)Ol=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ol=!1,pTe(e,t,n);Ol=!!(e.flags&131072)}else Ol=!1,Zi&&t.flags&1048576&&Lae(t,T_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;f4(e,t),e=t.pendingProps;var i=$v(t,So.current);qy(t,n),i=m$(null,t,r,e,i,n);var a=g$();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wl(r)?(a=!0,w_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,c$(t),i.updater=C5,t.stateNode=i,i._reactInternals=t,t8(t,r,e,n),t=i8(null,t,r,!0,a,n)):(t.tag=0,Zi&&a&&r$(t),Uo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(f4(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=_Te(r),e=Zc(r,e),i){case 0:t=r8(null,t,r,e,n);break e;case 1:t=FG(null,t,r,e,n);break e;case 11:t=LG(null,t,r,e,n);break e;case 14:t=$G(null,t,r,Zc(r.type,e),n);break e}throw Error(jt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zc(r,i),r8(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zc(r,i),FG(e,t,r,i,n);case 3:e:{if(gse(t),e===null)throw Error(jt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Uae(e,t),A_(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=zv(Error(jt(423)),t),t=BG(e,t,r,n,i);break e}else if(r!==i){i=zv(Error(jt(424)),t),t=BG(e,t,r,n,i);break e}else for(bu=$m(t.stateNode.containerInfo.firstChild),Su=t,Zi=!0,nd=null,n=Vae(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fv(),r===i){t=Jh(e,t,n);break e}Uo(e,t,r,n)}t=t.child}return t;case 5:return Wae(t),e===null&&K7(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,q7(r,i)?s=null:a!==null&&q7(r,a)&&(t.flags|=32),mse(e,t),Uo(e,t,s,n),t.child;case 6:return e===null&&K7(t),null;case 13:return bse(e,t,n);case 4:return d$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bv(t,null,r,n):Uo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zc(r,i),LG(e,t,r,i,n);case 7:return Uo(e,t,t.pendingProps,n),t.child;case 8:return Uo(e,t,t.pendingProps.children,n),t.child;case 12:return Uo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ri(k_,r._currentValue),r._currentValue=s,a!==null)if(yd(a.value,s)){if(a.children===i.children&&!El.current){t=Jh(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Hh(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),J7(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(jt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),J7(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Uo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,qy(t,n),i=wc(i),r=r(i),t.flags|=1,Uo(e,t,r,n),t.child;case 14:return r=t.type,i=Zc(r,t.pendingProps),i=Zc(r.type,i),$G(e,t,r,i,n);case 15:return hse(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zc(r,i),f4(e,t),t.tag=1,wl(r)?(e=!0,w_(t)):e=!1,qy(t,n),jae(t,r,i),t8(t,r,i,n),i8(null,t,r,!0,e,n);case 19:return yse(e,t,n);case 22:return pse(e,t,n)}throw Error(jt(156,t.tag))};function Pse(e,t){return sae(e,t)}function ATe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dc(e,t,n,r){return new ATe(e,t,n,r)}function k$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _Te(e){if(typeof e=="function")return k$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===W9)return 11;if(e===Q9)return 14}return 2}function zm(e,t){var n=e.alternate;return n===null?(n=dc(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function m4(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")k$(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case yy:return Xg(n.children,i,a,t);case V9:s=8,i|=8;break;case T7:return e=dc(12,n,t,i|2),e.elementType=T7,e.lanes=a,e;case k7:return e=dc(13,n,t,i),e.elementType=k7,e.lanes=a,e;case C7:return e=dc(19,n,t,i),e.elementType=C7,e.lanes=a,e;case Hie:return I5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zie:s=10;break e;case jie:s=9;break e;case W9:s=11;break e;case Q9:s=14;break e;case am:s=16,r=null;break e}throw Error(jt(130,e==null?e:typeof e,""))}return t=dc(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Xg(e,t,n,r){return e=dc(7,e,r,t),e.lanes=n,e}function I5(e,t,n,r){return e=dc(22,e,r,t),e.elementType=Hie,e.lanes=n,e.stateNode={isHidden:!1},e}function oN(e,t,n){return e=dc(6,e,null,t),e.lanes=n,e}function lN(e,t,n){return t=dc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RTe(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jD(0),this.expirationTimes=jD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jD(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function C$(e,t,n,r,i,a,s,o,l){return e=new RTe(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=dc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},c$(a),e}function ITe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fse)}catch(e){console.error(e)}}Fse(),Lie.exports=_u;var T1=Lie.exports;const ZE=xd(T1),LTe=Tie({__proto__:null,default:ZE},[T1]);var XG=T1;w7.createRoot=XG.createRoot,w7.hydrateRoot=XG.hydrateRoot;const $Te={black:"#000",white:"#fff"},ww=$Te,FTe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ub=FTe,BTe={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},zb=BTe,UTe={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},jb=UTe,zTe={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Hb=zTe,jTe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Vb=jTe,HTe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},uE=HTe,VTe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},WTe=VTe;function Km(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function Bse(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var QTe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,qTe=Bse(function(e){return QTe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function GTe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Us(vO,--Al):0,Hv--,Ha===10&&(Hv=1,$5--),Ha}function Eu(){return Ha=Al2||Tw(Ha)>3?"":" "}function oke(e,t){for(;--t&&Eu()&&!(Ha<48||Ha>102||Ha>57&&Ha<65||Ha>70&&Ha<97););return Gx(e,g4()+(t<6&&Df()==32&&Eu()==32))}function b8(e){for(;Eu();)switch(Ha){case e:return Al;case 34:case 39:e!==34&&e!==39&&b8(Ha);break;case 40:e===41&&b8(e);break;case 92:Eu();break}return Al}function lke(e,t){for(;Eu()&&e+Ha!==57;)if(e+Ha===84&&Df()===47)break;return"/*"+Gx(t,Al-1)+"*"+L5(e===47?e:Eu())}function uke(e){for(;!Tw(Df());)Eu();return Gx(e,Al)}function cke(e){return Wse(y4("",null,null,null,[""],e=Vse(e),0,[0],e))}function y4(e,t,n,r,i,a,s,o,l){for(var u=0,c=0,f=s,h=0,g=0,b=0,S=1,E=1,w=1,x=0,k="",C=i,R=a,A=r,D=k;E;)switch(b=x,x=Eu()){case 40:if(b!=108&&Us(D,f-1)==58){g8(D+=ii(b4(x),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:D+=b4(x);break;case 9:case 10:case 13:case 32:D+=ske(b);break;case 92:D+=oke(g4()-1,7);continue;case 47:switch(Df()){case 42:case 47:LC(dke(lke(Eu(),g4()),t,n),l);break;default:D+="/"}break;case 123*S:o[u++]=ff(D)*w;case 125*S:case 59:case 0:switch(x){case 0:case 125:E=0;case 59+c:w==-1&&(D=ii(D,/\f/g,"")),g>0&&ff(D)-f&&LC(g>32?JG(D+";",r,n,f-1):JG(ii(D," ","")+";",r,n,f-2),l);break;case 59:D+=";";default:if(LC(A=KG(D,t,n,u,c,i,o,k,C=[],R=[],f),a),x===123)if(c===0)y4(D,t,A,A,C,a,f,o,R);else switch(h===99&&Us(D,3)===110?100:h){case 100:case 108:case 109:case 115:y4(e,A,A,r&&LC(KG(e,A,A,0,0,i,o,k,i,C=[],f),R),i,R,f,o,r?C:R);break;default:y4(D,A,A,A,[""],R,0,o,R)}}u=c=g=0,S=w=1,k=D="",f=s;break;case 58:f=1+ff(D),g=b;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&ake()==125)continue}switch(D+=L5(x),x*S){case 38:w=c>0?1:(D+="\f",-1);break;case 44:o[u++]=(ff(D)-1)*w,w=1;break;case 64:Df()===45&&(D+=b4(Eu())),h=Df(),c=f=ff(k=D+=uke(g4())),x++;break;case 45:b===45&&ff(D)==2&&(S=0)}}return a}function KG(e,t,n,r,i,a,s,o,l,u,c){for(var f=i-1,h=i===0?a:[""],g=N$(h),b=0,S=0,E=0;b0?h[w]+" "+x:ii(x,/&\f/g,h[w])))&&(l[E++]=k);return F5(e,t,n,i===0?I$:o,l,u,c)}function dke(e,t,n){return F5(e,t,n,Use,L5(ike()),xw(e,2,-2),0)}function JG(e,t,n,r){return F5(e,t,n,D$,xw(e,0,r),xw(e,r+1,-1),r)}function Yy(e,t){for(var n="",r=N$(e),i=0;i6)switch(Us(e,t+1)){case 109:if(Us(e,t+4)!==45)break;case 102:return ii(e,/(.+:)(.+)-([^]+)/,"$1"+ri+"$2-$3$1"+$_+(Us(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~g8(e,"stretch")?Qse(ii(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Us(e,t+1)!==115)break;case 6444:switch(Us(e,ff(e)-3-(~g8(e,"!important")&&10))){case 107:return ii(e,":",":"+ri)+e;case 101:return ii(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ri+(Us(e,14)===45?"inline-":"")+"box$3$1"+ri+"$2$3$1"+ho+"$2box$3")+e}break;case 5936:switch(Us(e,t+11)){case 114:return ri+e+ho+ii(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ri+e+ho+ii(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ri+e+ho+ii(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ri+e+ho+e+e}return e}var Oke=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case D$:t.return=Qse(t.value,t.length);break;case zse:return Yy([cE(t,{value:ii(t.value,"@","@"+ri)})],i);case I$:if(t.length)return rke(t.props,function(a){switch(nke(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yy([cE(t,{props:[ii(a,/:(read-\w+)/,":"+$_+"$1")]})],i);case"::placeholder":return Yy([cE(t,{props:[ii(a,/:(plac\w+)/,":"+ri+"input-$1")]}),cE(t,{props:[ii(a,/:(plac\w+)/,":"+$_+"$1")]}),cE(t,{props:[ii(a,/:(plac\w+)/,ho+"input-$1")]})],i)}return""})}},Ske=[Oke],Eke=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var E=S.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||Ske,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var E=S.getAttribute("data-emotion").split(" "),w=1;w<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gf]=t,e[gw]=r,Ose(e,t,!1,!1),t.stateNode=e;e:{switch(s=$7(n,r),n){case"dialog":$i("cancel",e),$i("close",e),i=r;break;case"iframe":case"object":case"embed":$i("load",e),i=r;break;case"video":case"audio":for(i=0;ijv&&(t.flags|=128,r=!0,oE(a,!1),t.lanes=4194304)}else{if(!r)if(e=R_(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oE(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Zi)return co(t),null}else 2*Pa()-a.renderingStartTime>jv&&n!==1073741824&&(t.flags|=128,r=!0,oE(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Pa(),t.sibling=null,n=ra.current,Ri(ra,r?n&1|2:n&1),t):(co(t),null);case 22:case 23:return T$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?au&1073741824&&(co(t),t.subtreeFlags&6&&(t.flags|=8192)):co(t),null;case 24:return null;case 25:return null}throw Error(jt(156,t.tag))}function gTe(e,t){switch(a$(t),t.tag){case 1:return wl(t.type)&&w_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Uv(),ji(El),ji(So),p$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return h$(t),null;case 13:if(ji(ra),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(jt(340));Fv()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ji(ra),null;case 4:return Uv(),null;case 10:return u$(t.type._context),null;case 22:case 23:return T$(),null;case 24:return null;default:return null}}var PC=!1,mo=!1,bTe=typeof WeakSet=="function"?WeakSet:Set,On=null;function Cy(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oa(e,t,r)}else n.current=null}function c8(e,t,n){try{n()}catch(r){Oa(e,t,r)}}var jG=!1;function yTe(e,t){if(q7=v_,e=kae(),r$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++u===i&&(o=s),h===a&&++c===r&&(l=s),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(G7={focusedElem:e,selectionRange:n},v_=!1,On=t;On!==null;)if(t=On,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,On=e;else for(;On!==null;){t=On;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var S=b.memoizedProps,w=b.memoizedState,E=t.stateNode,x=E.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xc(t.type,S),w);E.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(jt(163))}}catch(C){Oa(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,On=e;break}On=t.return}return b=jG,jG=!1,b}function v2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&c8(t,n,a)}i=i.next}while(i!==r)}}function D5(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function d8(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function wse(e){var t=e.alternate;t!==null&&(e.alternate=null,wse(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gf],delete t[gw],delete t[X7],delete t[eTe],delete t[tTe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xse(e){return e.tag===5||e.tag===3||e.tag===4}function HG(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xse(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function f8(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=E_));else if(r!==4&&(e=e.child,e!==null))for(f8(e,t,n),e=e.sibling;e!==null;)f8(e,t,n),e=e.sibling}function h8(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(h8(e,t,n),e=e.sibling;e!==null;)h8(e,t,n),e=e.sibling}var Bs=null,Jc=!1;function Gp(e,t,n){for(n=n.child;n!==null;)Tse(e,t,n),n=n.sibling}function Tse(e,t,n){if(Rf&&typeof Rf.onCommitFiberUnmount=="function")try{Rf.onCommitFiberUnmount(x5,n)}catch{}switch(n.tag){case 5:mo||Cy(n,t);case 6:var r=Bs,i=Jc;Bs=null,Gp(e,t,n),Bs=r,Jc=i,Bs!==null&&(Jc?(e=Bs,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bs.removeChild(n.stateNode));break;case 18:Bs!==null&&(Jc?(e=Bs,n=n.stateNode,e.nodeType===8?tN(e.parentNode,n):e.nodeType===1&&tN(e,n),dw(e)):tN(Bs,n.stateNode));break;case 4:r=Bs,i=Jc,Bs=n.stateNode.containerInfo,Jc=!0,Gp(e,t,n),Bs=r,Jc=i;break;case 0:case 11:case 14:case 15:if(!mo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&c8(n,t,s),i=i.next}while(i!==r)}Gp(e,t,n);break;case 1:if(!mo&&(Cy(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Oa(n,t,o)}Gp(e,t,n);break;case 21:Gp(e,t,n);break;case 22:n.mode&1?(mo=(r=mo)||n.memoizedState!==null,Gp(e,t,n),mo=r):Gp(e,t,n);break;default:Gp(e,t,n)}}function VG(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bTe),t.forEach(function(r){var i=CTe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Zc(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Pa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*OTe(r/1960))-r,10e?16:e,km===null)var r=!1;else{if(e=km,km=null,M_=0,Gr&6)throw Error(jt(331));var i=Gr;for(Gr|=4,On=e.current;On!==null;){var a=On,s=a.child;if(On.flags&16){var o=a.deletions;if(o!==null){for(var l=0;lPa()-w$?Zg(e,0):E$|=n),xl(e,t)}function Nse(e,t){t===0&&(e.mode&1?(t=TC,TC<<=1,!(TC&130023424)&&(TC=4194304)):t=1);var n=Qo();e=Kh(e,t),e!==null&&(Vx(e,t,n),xl(e,n))}function kTe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nse(e,n)}function CTe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(jt(314))}r!==null&&r.delete(t),Nse(e,n)}var Pse;Pse=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||El.current)Ol=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ol=!1,pTe(e,t,n);Ol=!!(e.flags&131072)}else Ol=!1,Zi&&t.flags&1048576&&$ae(t,k_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;h4(e,t),e=t.pendingProps;var i=$v(t,So.current);qy(t,n),i=g$(null,t,r,e,i,n);var a=b$();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wl(r)?(a=!0,x_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,d$(t),i.updater=R5,t.stateNode=i,i._reactInternals=t,r8(t,r,e,n),t=s8(null,t,r,!0,a,n)):(t.tag=0,Zi&&a&&i$(t),Uo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(h4(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=_Te(r),e=Xc(r,e),i){case 0:t=a8(null,t,r,e,n);break e;case 1:t=BG(null,t,r,e,n);break e;case 11:t=$G(null,t,r,e,n);break e;case 14:t=FG(null,t,r,Xc(r.type,e),n);break e}throw Error(jt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xc(r,i),a8(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xc(r,i),BG(e,t,r,i,n);case 3:e:{if(bse(t),e===null)throw Error(jt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,zae(e,t),__(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=zv(Error(jt(423)),t),t=UG(e,t,r,n,i);break e}else if(r!==i){i=zv(Error(jt(424)),t),t=UG(e,t,r,n,i);break e}else for(bu=Fm(t.stateNode.containerInfo.firstChild),Su=t,Zi=!0,rd=null,n=Wae(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fv(),r===i){t=Jh(e,t,n);break e}Uo(e,t,r,n)}t=t.child}return t;case 5:return Qae(t),e===null&&e8(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,Y7(r,i)?s=null:a!==null&&Y7(r,a)&&(t.flags|=32),gse(e,t),Uo(e,t,s,n),t.child;case 6:return e===null&&e8(t),null;case 13:return yse(e,t,n);case 4:return f$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bv(t,null,r,n):Uo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xc(r,i),$G(e,t,r,i,n);case 7:return Uo(e,t,t.pendingProps,n),t.child;case 8:return Uo(e,t,t.pendingProps.children,n),t.child;case 12:return Uo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ri(C_,r._currentValue),r._currentValue=s,a!==null)if(yd(a.value,s)){if(a.children===i.children&&!El.current){t=Jh(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Hh(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),t8(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(jt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),t8(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Uo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,qy(t,n),i=xc(i),r=r(i),t.flags|=1,Uo(e,t,r,n),t.child;case 14:return r=t.type,i=Xc(r,t.pendingProps),i=Xc(r.type,i),FG(e,t,r,i,n);case 15:return pse(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xc(r,i),h4(e,t),t.tag=1,wl(r)?(e=!0,x_(t)):e=!1,qy(t,n),Hae(t,r,i),r8(t,r,i,n),s8(null,t,r,!0,e,n);case 19:return vse(e,t,n);case 22:return mse(e,t,n)}throw Error(jt(156,t.tag))};function Mse(e,t){return oae(e,t)}function ATe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dc(e,t,n,r){return new ATe(e,t,n,r)}function C$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _Te(e){if(typeof e=="function")return C$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Q9)return 11;if(e===q9)return 14}return 2}function jm(e,t){var n=e.alternate;return n===null?(n=dc(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function g4(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")C$(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case yy:return Xg(n.children,i,a,t);case W9:s=8,i|=8;break;case C7:return e=dc(12,n,t,i|2),e.elementType=C7,e.lanes=a,e;case A7:return e=dc(13,n,t,i),e.elementType=A7,e.lanes=a,e;case _7:return e=dc(19,n,t,i),e.elementType=_7,e.lanes=a,e;case Vie:return P5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jie:s=10;break e;case Hie:s=9;break e;case Q9:s=11;break e;case q9:s=14;break e;case sm:s=16,r=null;break e}throw Error(jt(130,e==null?e:typeof e,""))}return t=dc(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Xg(e,t,n,r){return e=dc(7,e,r,t),e.lanes=n,e}function P5(e,t,n,r){return e=dc(22,e,r,t),e.elementType=Vie,e.lanes=n,e.stateNode={isHidden:!1},e}function uN(e,t,n){return e=dc(6,e,null,t),e.lanes=n,e}function cN(e,t,n){return t=dc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RTe(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=VD(0),this.expirationTimes=VD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=VD(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function A$(e,t,n,r,i,a,s,o,l){return e=new RTe(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=dc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},d$(a),e}function ITe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bse)}catch(e){console.error(e)}}Bse(),$ie.exports=_u;var T1=$ie.exports;const ZE=xd(T1),LTe=kie({__proto__:null,default:ZE},[T1]);var KG=T1;T7.createRoot=KG.createRoot,T7.hydrateRoot=KG.hydrateRoot;const $Te={black:"#000",white:"#fff"},ww=$Te,FTe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ub=FTe,BTe={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},zb=BTe,UTe={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},jb=UTe,zTe={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Hb=zTe,jTe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Vb=jTe,HTe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},uE=HTe,VTe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},WTe=VTe;function Jm(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function Use(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var QTe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,qTe=Use(function(e){return QTe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function GTe(e){if(e.sheet)return e.sheet;for(var t=0;t0?zs(vO,--Al):0,Hv--,Ha===10&&(Hv=1,U5--),Ha}function Eu(){return Ha=Al2||Tw(Ha)>3?"":" "}function oke(e,t){for(;--t&&Eu()&&!(Ha<48||Ha>102||Ha>57&&Ha<65||Ha>70&&Ha<97););return Gx(e,b4()+(t<6&&Df()==32&&Eu()==32))}function v8(e){for(;Eu();)switch(Ha){case e:return Al;case 34:case 39:e!==34&&e!==39&&v8(Ha);break;case 40:e===41&&v8(e);break;case 92:Eu();break}return Al}function lke(e,t){for(;Eu()&&e+Ha!==57;)if(e+Ha===84&&Df()===47)break;return"/*"+Gx(t,Al-1)+"*"+B5(e===47?e:Eu())}function uke(e){for(;!Tw(Df());)Eu();return Gx(e,Al)}function cke(e){return Qse(v4("",null,null,null,[""],e=Wse(e),0,[0],e))}function v4(e,t,n,r,i,a,s,o,l){for(var u=0,c=0,f=s,h=0,g=0,b=0,S=1,w=1,E=1,x=0,k="",C=i,R=a,A=r,D=k;w;)switch(b=x,x=Eu()){case 40:if(b!=108&&zs(D,f-1)==58){y8(D+=ii(y4(x),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:D+=y4(x);break;case 9:case 10:case 13:case 32:D+=ske(b);break;case 92:D+=oke(b4()-1,7);continue;case 47:switch(Df()){case 42:case 47:$C(dke(lke(Eu(),b4()),t,n),l);break;default:D+="/"}break;case 123*S:o[u++]=ff(D)*E;case 125*S:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+c:E==-1&&(D=ii(D,/\f/g,"")),g>0&&ff(D)-f&&$C(g>32?eY(D+";",r,n,f-1):eY(ii(D," ","")+";",r,n,f-2),l);break;case 59:D+=";";default:if($C(A=JG(D,t,n,u,c,i,o,k,C=[],R=[],f),a),x===123)if(c===0)v4(D,t,A,A,C,a,f,o,R);else switch(h===99&&zs(D,3)===110?100:h){case 100:case 108:case 109:case 115:v4(e,A,A,r&&$C(JG(e,A,A,0,0,i,o,k,i,C=[],f),R),i,R,f,o,r?C:R);break;default:v4(D,A,A,A,[""],R,0,o,R)}}u=c=g=0,S=E=1,k=D="",f=s;break;case 58:f=1+ff(D),g=b;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&ake()==125)continue}switch(D+=B5(x),x*S){case 38:E=c>0?1:(D+="\f",-1);break;case 44:o[u++]=(ff(D)-1)*E,E=1;break;case 64:Df()===45&&(D+=y4(Eu())),h=Df(),c=f=ff(k=D+=uke(b4())),x++;break;case 45:b===45&&ff(D)==2&&(S=0)}}return a}function JG(e,t,n,r,i,a,s,o,l,u,c){for(var f=i-1,h=i===0?a:[""],g=P$(h),b=0,S=0,w=0;b0?h[E]+" "+x:ii(x,/&\f/g,h[E])))&&(l[w++]=k);return z5(e,t,n,i===0?D$:o,l,u,c)}function dke(e,t,n){return z5(e,t,n,zse,B5(ike()),xw(e,2,-2),0)}function eY(e,t,n,r){return z5(e,t,n,N$,xw(e,0,r),xw(e,r+1,-1),r)}function Yy(e,t){for(var n="",r=P$(e),i=0;i6)switch(zs(e,t+1)){case 109:if(zs(e,t+4)!==45)break;case 102:return ii(e,/(.+:)(.+)-([^]+)/,"$1"+ri+"$2-$3$1"+F_+(zs(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~y8(e,"stretch")?qse(ii(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zs(e,t+1)!==115)break;case 6444:switch(zs(e,ff(e)-3-(~y8(e,"!important")&&10))){case 107:return ii(e,":",":"+ri)+e;case 101:return ii(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ri+(zs(e,14)===45?"inline-":"")+"box$3$1"+ri+"$2$3$1"+ho+"$2box$3")+e}break;case 5936:switch(zs(e,t+11)){case 114:return ri+e+ho+ii(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ri+e+ho+ii(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ri+e+ho+ii(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ri+e+ho+e+e}return e}var Oke=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case N$:t.return=qse(t.value,t.length);break;case jse:return Yy([cE(t,{value:ii(t.value,"@","@"+ri)})],i);case D$:if(t.length)return rke(t.props,function(a){switch(nke(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yy([cE(t,{props:[ii(a,/:(read-\w+)/,":"+F_+"$1")]})],i);case"::placeholder":return Yy([cE(t,{props:[ii(a,/:(plac\w+)/,":"+ri+"input-$1")]}),cE(t,{props:[ii(a,/:(plac\w+)/,":"+F_+"$1")]}),cE(t,{props:[ii(a,/:(plac\w+)/,ho+"input-$1")]})],i)}return""})}},Ske=[Oke],Eke=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var w=S.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||Ske,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var w=S.getAttribute("data-emotion").split(" "),E=1;E=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Pke={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mke=/[A-Z]|^ms/g,Lke=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jse=function(t){return t.charCodeAt(1)===45},tY=function(t){return t!=null&&typeof t!="boolean"},uN=Bse(function(e){return Jse(e)?e:e.replace(Mke,"-$&").toLowerCase()}),nY=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Lke,function(r,i,a){return hf={name:i,styles:a,next:hf},i})}return Pke[t]!==1&&!Jse(t)&&typeof n=="number"&&n!==0?n+"px":n};function kw(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hf={name:n.name,styles:n.styles,next:hf},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hf={name:r.name,styles:r.styles,next:hf},r=r.next;var i=n.styles+";";return i}return $ke(e,t,n)}case"function":{if(e!==void 0){var a=hf,s=n(e);return hf=a,kw(e,t,s)}break}}if(t==null)return n;var o=t[n];return o!==void 0?o:n}function $ke(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?zke:jke},sY=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Hke=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Xse(n,r,i),Bke(function(){return Kse(n,r,i)}),null},Vke=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=sY(t,n,r),l=o||aY(i),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var h=c.length,g=1;gt(Xke(i)?n:i):t;return I.jsx(Uke,{styles:r})}function soe(e,t){return y8(e,t)}const Jke=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function $h(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ooe(e){if(!$h(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ooe(e[n])}),t}function yo(e,t,n={clone:!0}){const r=n.clone?M({},e):e;return $h(e)&&$h(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&($h(t[i])&&i in e&&$h(e[i])?r[i]=yo(e[i],t[i],n):n.clone?r[i]=$h(t[i])?ooe(t[i]):t[i]:r[i]=t[i])}),r}var yi={};/** + */var Cs=typeof Symbol=="function"&&Symbol.for,M$=Cs?Symbol.for("react.element"):60103,L$=Cs?Symbol.for("react.portal"):60106,j5=Cs?Symbol.for("react.fragment"):60107,H5=Cs?Symbol.for("react.strict_mode"):60108,V5=Cs?Symbol.for("react.profiler"):60114,W5=Cs?Symbol.for("react.provider"):60109,Q5=Cs?Symbol.for("react.context"):60110,$$=Cs?Symbol.for("react.async_mode"):60111,q5=Cs?Symbol.for("react.concurrent_mode"):60111,G5=Cs?Symbol.for("react.forward_ref"):60112,Y5=Cs?Symbol.for("react.suspense"):60113,wke=Cs?Symbol.for("react.suspense_list"):60120,Z5=Cs?Symbol.for("react.memo"):60115,X5=Cs?Symbol.for("react.lazy"):60116,xke=Cs?Symbol.for("react.block"):60121,Tke=Cs?Symbol.for("react.fundamental"):60117,kke=Cs?Symbol.for("react.responder"):60118,Cke=Cs?Symbol.for("react.scope"):60119;function Iu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case M$:switch(e=e.type,e){case $$:case q5:case j5:case V5:case H5:case Y5:return e;default:switch(e=e&&e.$$typeof,e){case Q5:case G5:case X5:case Z5:case W5:return e;default:return t}}case L$:return t}}}function Yse(e){return Iu(e)===q5}mi.AsyncMode=$$;mi.ConcurrentMode=q5;mi.ContextConsumer=Q5;mi.ContextProvider=W5;mi.Element=M$;mi.ForwardRef=G5;mi.Fragment=j5;mi.Lazy=X5;mi.Memo=Z5;mi.Portal=L$;mi.Profiler=V5;mi.StrictMode=H5;mi.Suspense=Y5;mi.isAsyncMode=function(e){return Yse(e)||Iu(e)===$$};mi.isConcurrentMode=Yse;mi.isContextConsumer=function(e){return Iu(e)===Q5};mi.isContextProvider=function(e){return Iu(e)===W5};mi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===M$};mi.isForwardRef=function(e){return Iu(e)===G5};mi.isFragment=function(e){return Iu(e)===j5};mi.isLazy=function(e){return Iu(e)===X5};mi.isMemo=function(e){return Iu(e)===Z5};mi.isPortal=function(e){return Iu(e)===L$};mi.isProfiler=function(e){return Iu(e)===V5};mi.isStrictMode=function(e){return Iu(e)===H5};mi.isSuspense=function(e){return Iu(e)===Y5};mi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===j5||e===q5||e===V5||e===H5||e===Y5||e===wke||typeof e=="object"&&e!==null&&(e.$$typeof===X5||e.$$typeof===Z5||e.$$typeof===W5||e.$$typeof===Q5||e.$$typeof===G5||e.$$typeof===Tke||e.$$typeof===kke||e.$$typeof===Cke||e.$$typeof===xke)};mi.typeOf=Iu;Gse.exports=mi;var Ake=Gse.exports,Zse=Ake,_ke={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rke={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xse={};Xse[Zse.ForwardRef]=_ke;Xse[Zse.Memo]=Rke;var Ike=!0;function Dke(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Kse=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Ike===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Jse=function(t,n,r){Kse(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Nke(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Pke={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mke=/[A-Z]|^ms/g,Lke=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eoe=function(t){return t.charCodeAt(1)===45},nY=function(t){return t!=null&&typeof t!="boolean"},dN=Use(function(e){return eoe(e)?e:e.replace(Mke,"-$&").toLowerCase()}),rY=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Lke,function(r,i,a){return hf={name:i,styles:a,next:hf},i})}return Pke[t]!==1&&!eoe(t)&&typeof n=="number"&&n!==0?n+"px":n};function kw(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hf={name:n.name,styles:n.styles,next:hf},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hf={name:r.name,styles:r.styles,next:hf},r=r.next;var i=n.styles+";";return i}return $ke(e,t,n)}case"function":{if(e!==void 0){var a=hf,s=n(e);return hf=a,kw(e,t,s)}break}}if(t==null)return n;var o=t[n];return o!==void 0?o:n}function $ke(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?zke:jke},oY=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Hke=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Kse(n,r,i),Bke(function(){return Jse(n,r,i)}),null},Vke=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=oY(t,n,r),l=o||sY(i),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var h=c.length,g=1;gt(Xke(i)?n:i):t;return I.jsx(Uke,{styles:r})}function ooe(e,t){return O8(e,t)}const Jke=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function $h(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function loe(e){if(!$h(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=loe(e[n])}),t}function yo(e,t,n={clone:!0}){const r=n.clone?M({},e):e;return $h(e)&&$h(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&($h(t[i])&&i in e&&$h(e[i])?r[i]=yo(e[i],t[i],n):n.clone?r[i]=$h(t[i])?loe(t[i]):t[i]:r[i]=t[i])}),r}var yi={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var B$=Symbol.for("react.element"),U$=Symbol.for("react.portal"),Z5=Symbol.for("react.fragment"),X5=Symbol.for("react.strict_mode"),K5=Symbol.for("react.profiler"),J5=Symbol.for("react.provider"),eR=Symbol.for("react.context"),eCe=Symbol.for("react.server_context"),tR=Symbol.for("react.forward_ref"),nR=Symbol.for("react.suspense"),rR=Symbol.for("react.suspense_list"),iR=Symbol.for("react.memo"),aR=Symbol.for("react.lazy"),tCe=Symbol.for("react.offscreen"),loe;loe=Symbol.for("react.module.reference");function Rc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case B$:switch(e=e.type,e){case Z5:case K5:case X5:case nR:case rR:return e;default:switch(e=e&&e.$$typeof,e){case eCe:case eR:case tR:case aR:case iR:case J5:return e;default:return t}}case U$:return t}}}yi.ContextConsumer=eR;yi.ContextProvider=J5;yi.Element=B$;yi.ForwardRef=tR;yi.Fragment=Z5;yi.Lazy=aR;yi.Memo=iR;yi.Portal=U$;yi.Profiler=K5;yi.StrictMode=X5;yi.Suspense=nR;yi.SuspenseList=rR;yi.isAsyncMode=function(){return!1};yi.isConcurrentMode=function(){return!1};yi.isContextConsumer=function(e){return Rc(e)===eR};yi.isContextProvider=function(e){return Rc(e)===J5};yi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===B$};yi.isForwardRef=function(e){return Rc(e)===tR};yi.isFragment=function(e){return Rc(e)===Z5};yi.isLazy=function(e){return Rc(e)===aR};yi.isMemo=function(e){return Rc(e)===iR};yi.isPortal=function(e){return Rc(e)===U$};yi.isProfiler=function(e){return Rc(e)===K5};yi.isStrictMode=function(e){return Rc(e)===X5};yi.isSuspense=function(e){return Rc(e)===nR};yi.isSuspenseList=function(e){return Rc(e)===rR};yi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Z5||e===K5||e===X5||e===nR||e===rR||e===tCe||typeof e=="object"&&e!==null&&(e.$$typeof===aR||e.$$typeof===iR||e.$$typeof===J5||e.$$typeof===eR||e.$$typeof===tR||e.$$typeof===loe||e.getModuleId!==void 0)};yi.typeOf=Rc;const nCe=Y.oneOfType([Y.func,Y.object]),OO=nCe;function ht(e){if(typeof e!="string")throw new Error(Km(7));return e.charAt(0).toUpperCase()+e.slice(1)}function F_(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function SO(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function rCe(e,t){return()=>null}function E2(e,t){var n,r;return N.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ei(e){return e&&e.ownerDocument||document}function Tc(e){return Ei(e).defaultView||window}function iCe(e,t){return()=>null}function Cw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const la=typeof window<"u"?N.useLayoutEffect:N.useEffect;let oY=0;function aCe(e){const[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t==null&&(oY+=1,n(`mui-${oY}`))},[t]),r}const lY=Mv.useId;function Td(e){if(lY!==void 0){const t=lY();return e??t}return aCe(e)}function sCe(e,t,n,r,i){return null}function ws({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=N.useRef(e!==void 0),[a,s]=N.useState(t),o=i?e:a,l=N.useCallback(u=>{i||s(u)},[]);return[o,l]}function on(e){const t=N.useRef(e);return la(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function Jn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cw(n,t)})},e)}const uY={};function oCe(e,t){const n=N.useRef(uY);return n.current===uY&&(n.current=e(t)),n}const lCe=[];function uCe(e){N.useEffect(e,lCe)}class Zx{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Zx}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function Ig(){const e=oCe(Zx.create).current;return uCe(e.disposeEffect),e}let sR=!0,v8=!1;const cCe=new Zx,dCe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fCe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&dCe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hCe(e){e.metaKey||e.altKey||e.ctrlKey||(sR=!0)}function cN(){sR=!1}function pCe(){this.visibilityState==="hidden"&&v8&&(sR=!0)}function mCe(e){e.addEventListener("keydown",hCe,!0),e.addEventListener("mousedown",cN,!0),e.addEventListener("pointerdown",cN,!0),e.addEventListener("touchstart",cN,!0),e.addEventListener("visibilitychange",pCe,!0)}function gCe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return sR||fCe(t)}function oR(){const e=N.useCallback(i=>{i!=null&&mCe(i.ownerDocument)},[]),t=N.useRef(!1);function n(){return t.current?(v8=!0,cCe.start(100,()=>{v8=!1}),t.current=!1,!0):!1}function r(i){return gCe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function uoe(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Wb;function coe(){if(Wb)return Wb;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Wb="reverse",e.scrollLeft>0?Wb="default":(e.scrollLeft=1,e.scrollLeft===0&&(Wb="negative")),document.body.removeChild(e),Wb}function bCe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(coe()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const yCe=e=>{const t=N.useRef({});return N.useEffect(()=>{t.current=e}),t.current};function vCe(e){return N.Children.toArray(e).filter(t=>N.isValidElement(t))}const OCe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},SCe=OCe;function lR(e,t){const n=M({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=M({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=M({},a),Object.keys(i).forEach(s=>{n[r][s]=lR(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Lt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}const cY=e=>e,ECe=()=>{let e=cY;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cY}}},z$=ECe(),doe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Bt(e,t,n="Mui"){const r=doe[t];return r?`${n}-${r}`:`${z$.generate(e)}-${t}`}function Ut(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Bt(e,i,n)}),r}function ry(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const wCe=["values","unit","step"],xCe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>M({},n,{[r.key]:r.val}),{})};function TCe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=at(e,wCe),a=xCe(t),s=Object.keys(a);function o(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,g){const b=s.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:g)-r/100}${n})`}function c(h){return s.indexOf(h)+1`@media (min-width:${j$[e]}px)`};function _l(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||dY;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||dY;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||j$).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function foe(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function hoe(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ACe(e,...t){const n=foe(e),r=[n,...t].reduce((i,a)=>yo(i,a),{});return hoe(Object.keys(n),r)}function _Ce(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function Kg({values:e,breakpoints:t,base:n}){const r=n||_Ce(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function uR(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function B_(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=uR(e,n)||r,t&&(i=t(i,r,e)),i}function Fa(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,u=uR(l,r)||{};return _l(s,o,f=>{let h=B_(u,i,f);return f===h&&typeof f=="string"&&(h=B_(u,i,`${t}${f==="default"?"":ht(f)}`,f)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function RCe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ICe={m:"margin",p:"padding"},DCe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fY={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NCe=RCe(e=>{if(e.length>2)if(fY[e])e=fY[e];else return[e];const[t,n]=e.split(""),r=ICe[t],i=DCe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),H$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],V$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...H$,...V$];function Xx(e,t,n,r){var i;const a=(i=uR(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function W$(e){return Xx(e,"spacing",8)}function o1(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function PCe(e,t){return n=>e.reduce((r,i)=>(r[i]=o1(t,n),r),{})}function MCe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=NCe(n),a=PCe(i,r),s=e[n];return _l(e,s,a)}function poe(e,t){const n=W$(e.theme);return Object.keys(e).map(r=>MCe(e,t,r,n)).reduce(w2,{})}function ba(e){return poe(e,H$)}ba.propTypes={};ba.filterProps=H$;function ya(e){return poe(e,V$)}ya.propTypes={};ya.filterProps=V$;function LCe(e=8){if(e.mui)return e;const t=W$({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function cR(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?w2(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function sc(e){return typeof e!="number"?e:`${e}px solid`}function Ic(e,t){return Fa({prop:e,themeKey:"borders",transform:t})}const $Ce=Ic("border",sc),FCe=Ic("borderTop",sc),BCe=Ic("borderRight",sc),UCe=Ic("borderBottom",sc),zCe=Ic("borderLeft",sc),jCe=Ic("borderColor"),HCe=Ic("borderTopColor"),VCe=Ic("borderRightColor"),WCe=Ic("borderBottomColor"),QCe=Ic("borderLeftColor"),qCe=Ic("outline",sc),GCe=Ic("outlineColor"),dR=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xx(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:o1(t,r)});return _l(e,e.borderRadius,n)}return null};dR.propTypes={};dR.filterProps=["borderRadius"];cR($Ce,FCe,BCe,UCe,zCe,jCe,HCe,VCe,WCe,QCe,dR,qCe,GCe);const fR=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xx(e.theme,"spacing",8),n=r=>({gap:o1(t,r)});return _l(e,e.gap,n)}return null};fR.propTypes={};fR.filterProps=["gap"];const hR=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xx(e.theme,"spacing",8),n=r=>({columnGap:o1(t,r)});return _l(e,e.columnGap,n)}return null};hR.propTypes={};hR.filterProps=["columnGap"];const pR=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xx(e.theme,"spacing",8),n=r=>({rowGap:o1(t,r)});return _l(e,e.rowGap,n)}return null};pR.propTypes={};pR.filterProps=["rowGap"];const YCe=Fa({prop:"gridColumn"}),ZCe=Fa({prop:"gridRow"}),XCe=Fa({prop:"gridAutoFlow"}),KCe=Fa({prop:"gridAutoColumns"}),JCe=Fa({prop:"gridAutoRows"}),eAe=Fa({prop:"gridTemplateColumns"}),tAe=Fa({prop:"gridTemplateRows"}),nAe=Fa({prop:"gridTemplateAreas"}),rAe=Fa({prop:"gridArea"});cR(fR,hR,pR,YCe,ZCe,XCe,KCe,JCe,eAe,tAe,nAe,rAe);function Zy(e,t){return t==="grey"?t:e}const iAe=Fa({prop:"color",themeKey:"palette",transform:Zy}),aAe=Fa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zy}),sAe=Fa({prop:"backgroundColor",themeKey:"palette",transform:Zy});cR(iAe,aAe,sAe);function pu(e){return e<=1&&e!==0?`${e*100}%`:e}const oAe=Fa({prop:"width",transform:pu}),Q$=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||j$[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:pu(n)}};return _l(e,e.maxWidth,t)}return null};Q$.filterProps=["maxWidth"];const lAe=Fa({prop:"minWidth",transform:pu}),uAe=Fa({prop:"height",transform:pu}),cAe=Fa({prop:"maxHeight",transform:pu}),dAe=Fa({prop:"minHeight",transform:pu});Fa({prop:"size",cssProperty:"width",transform:pu});Fa({prop:"size",cssProperty:"height",transform:pu});const fAe=Fa({prop:"boxSizing"});cR(oAe,Q$,lAe,uAe,cAe,dAe,fAe);const hAe={border:{themeKey:"borders",transform:sc},borderTop:{themeKey:"borders",transform:sc},borderRight:{themeKey:"borders",transform:sc},borderBottom:{themeKey:"borders",transform:sc},borderLeft:{themeKey:"borders",transform:sc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dR},color:{themeKey:"palette",transform:Zy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zy},backgroundColor:{themeKey:"palette",transform:Zy},p:{style:ya},pt:{style:ya},pr:{style:ya},pb:{style:ya},pl:{style:ya},px:{style:ya},py:{style:ya},padding:{style:ya},paddingTop:{style:ya},paddingRight:{style:ya},paddingBottom:{style:ya},paddingLeft:{style:ya},paddingX:{style:ya},paddingY:{style:ya},paddingInline:{style:ya},paddingInlineStart:{style:ya},paddingInlineEnd:{style:ya},paddingBlock:{style:ya},paddingBlockStart:{style:ya},paddingBlockEnd:{style:ya},m:{style:ba},mt:{style:ba},mr:{style:ba},mb:{style:ba},ml:{style:ba},mx:{style:ba},my:{style:ba},margin:{style:ba},marginTop:{style:ba},marginRight:{style:ba},marginBottom:{style:ba},marginLeft:{style:ba},marginX:{style:ba},marginY:{style:ba},marginInline:{style:ba},marginInlineStart:{style:ba},marginInlineEnd:{style:ba},marginBlock:{style:ba},marginBlockStart:{style:ba},marginBlockEnd:{style:ba},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fR},rowGap:{style:pR},columnGap:{style:hR},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pu},maxWidth:{style:Q$},minWidth:{transform:pu},height:{transform:pu},maxHeight:{transform:pu},minHeight:{transform:pu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},mR=hAe;function pAe(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function mAe(e,t){return typeof e=="function"?e(t):e}function gAe(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=uR(i,u)||{};return f?f(s):_l(s,r,b=>{let S=B_(h,c,b);return b===S&&typeof b=="string"&&(S=B_(h,c,`${n}${b==="default"?"":ht(b)}`,b)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:mR;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=foe(a.breakpoints),f=Object.keys(c);let h=c;return Object.keys(u).forEach(g=>{const b=mAe(u[g],a);if(b!=null)if(typeof b=="object")if(s[g])h=w2(h,e(g,b,a,s));else{const S=_l({theme:a},b,E=>({[g]:E}));pAe(S,b)?h[g]=t({sx:b,theme:a}):h=w2(h,S)}else h=w2(h,e(g,b,a,s))}),hoe(f,h)}return Array.isArray(i)?i.map(o):o(i)}return t}const Kx=gAe();Kx.filterProps=["sx"];function bAe(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const yAe=["breakpoints","palette","spacing","shape"];function Jx(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=at(e,yAe),o=TCe(n),l=LCe(i);let u=yo({breakpoints:o,direction:"ltr",components:{},palette:M({mode:"light"},r),spacing:l,shape:M({},CCe,a)},s);return u.applyStyles=bAe,u=t.reduce((c,f)=>yo(c,f),u),u.unstable_sxConfig=M({},mR,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Kx({sx:f,theme:this})},u}function vAe(e){return Object.keys(e).length===0}function gR(e=null){const t=N.useContext(Y5);return!t||vAe(t)?e:t}const OAe=Jx();function EO(e=OAe){return gR(e)}function SAe({styles:e,themeId:t,defaultTheme:n={}}){const r=EO(n),i=typeof e=="function"?e(t&&r[t]||r):e;return I.jsx(Kke,{styles:i})}const EAe=["sx"],wAe=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:mR;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function bR(e){const{sx:t}=e,n=at(e,EAe),{systemProps:r,otherProps:i}=wAe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return $h(o)?M({},r,o):r}:a=M({},r,t),M({},i,{sx:a})}function moe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;to!=="theme"&&o!=="sx"&&o!=="as"})(Kx);return N.forwardRef(function(l,u){const c=EO(n),f=bR(l),{className:h,component:g="div"}=f,b=at(f,xAe);return I.jsx(a,M({as:g,ref:u,className:ft(h,i?i(r):r),theme:t&&c[t]||c},b))})}const kAe=["variant"];function hY(e){return e.length===0}function goe(e){const{variant:t}=e,n=at(e,kAe);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=hY(r)?e[i]:ht(e[i]):r+=`${hY(r)?i:ht(i)}${ht(e[i].toString())}`}),r}const CAe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AAe(e){return Object.keys(e).length===0}function _Ae(e){return typeof e=="string"&&e.charCodeAt(0)>96}const RAe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,U_=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=goe(r.props),n[i]=r.style}),n},IAe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),U_(n)},z_=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let a=0;return n&&n.forEach(s=>{let o=!0;if(typeof s.props=="function"){const l=M({},e,r);o=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(o=!1)});o&&(typeof s.props=="function"?i.push(t[`callback${a}`]):i.push(t[goe(s.props)])),typeof s.props=="function"&&(a+=1)}),i},DAe=(e,t,n,r)=>{var i;const a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return z_(e,t,a)};function x2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const NAe=Jx(),PAe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function v4({defaultTheme:e,theme:t,themeId:n}){return AAe(t)?e:t[n]||t}function MAe(e){return e?(t,n)=>n[e]:null}const pY=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(M({},t,{theme:v4(M({},t,{defaultTheme:n,themeId:r}))}));let a;if(i&&i.variants&&(a=i.variants,delete i.variants),a){const s=z_(t,U_(a),a);return[i,...s]}return i};function boe(e={}){const{themeId:t,defaultTheme:n=NAe,rootShouldForwardProp:r=x2,slotShouldForwardProp:i=x2}=e,a=s=>Kx(M({},s,{theme:v4(M({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{Jke(s,C=>C.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:h=MAe(PAe(u))}=o,g=at(o,CAe),b=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let E,w=x2;u==="Root"||u==="root"?w=r:u?w=i:_Ae(s)&&(w=void 0);const x=soe(s,M({shouldForwardProp:w,label:E},g)),k=(C,...R)=>{const A=R?R.map(F=>{if(typeof F=="function"&&F.__emotion_real!==F)return W=>pY({styledArg:F,props:W,defaultTheme:n,themeId:t});if($h(F)){let W=F,V;return F&&F.variants&&(V=F.variants,delete W.variants,W=Z=>{let Q=F;return z_(Z,U_(V),V).forEach(J=>{Q=yo(Q,J)}),Q}),W}return F}):[];let D=C;if($h(C)){let F;C&&C.variants&&(F=C.variants,delete D.variants,D=W=>{let V=C;return z_(W,U_(F),F).forEach(Q=>{V=yo(V,Q)}),V})}else typeof C=="function"&&C.__emotion_real!==C&&(D=F=>pY({styledArg:C,props:F,defaultTheme:n,themeId:t}));l&&h&&A.push(F=>{const W=v4(M({},F,{defaultTheme:n,themeId:t})),V=RAe(l,W);if(V){const Z={};return Object.entries(V).forEach(([Q,H])=>{Z[Q]=typeof H=="function"?H(M({},F,{theme:W})):H}),h(F,Z)}return null}),l&&!b&&A.push(F=>{const W=v4(M({},F,{defaultTheme:n,themeId:t}));return DAe(F,IAe(l,W),W,l)}),S||A.push(a);const B=A.length-R.length;if(Array.isArray(C)&&B>0){const F=new Array(B).fill("");D=[...C,...F],D.raw=[...C.raw,...F]}const L=x(D,...A);return s.muiName&&(L.muiName=s.muiName),L};return x.withConfig&&(k.withConfig=x.withConfig),k}}const yoe=boe();function voe(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:lR(t.components[n].defaultProps,r)}function q$({props:e,name:t,defaultTheme:n,themeId:r}){let i=EO(n);return r&&(i=i[r]||i),voe({theme:i,name:t,props:e})}function G$(e,t=0,n=1){return ry(e,t,n)}function LAe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function l1(e){if(e.type)return e;if(e.charAt(0)==="#")return l1(LAe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Km(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Km(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function yR(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function $Ae(e){e=l1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,c=(u+n/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),yR({type:o,values:l})}function O8(e){e=l1(e);let t=e.type==="hsl"||e.type==="hsla"?l1($Ae(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function FAe(e,t){const n=O8(e),r=O8(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Rn(e,t){return e=l1(e),t=G$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,yR(e)}function eT(e,t){if(e=l1(e),t=G$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return yR(e)}function tT(e,t){if(e=l1(e),t=G$(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return yR(e)}function BAe(e,t=.15){return O8(e)>.5?eT(e,t):tT(e,t)}const UAe=N.createContext(null),Ooe=UAe;function Soe(){return N.useContext(Ooe)}const zAe=typeof Symbol=="function"&&Symbol.for,jAe=zAe?Symbol.for("mui.nested"):"__THEME_NESTED__";function HAe(e,t){return typeof t=="function"?t(e):M({},e,t)}function VAe(e){const{children:t,theme:n}=e,r=Soe(),i=N.useMemo(()=>{const a=r===null?n:HAe(r,n);return a!=null&&(a[jAe]=r!==null),a},[n,r]);return I.jsx(Ooe.Provider,{value:i,children:t})}const mY={};function gY(e,t,n,r=!1){return N.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?M({},t,{[e]:a}):a;return r?()=>s:s}return e?M({},t,{[e]:n}):M({},t,n)},[e,t,n,r])}function WAe(e){const{children:t,theme:n,themeId:r}=e,i=gR(mY),a=Soe()||mY,s=gY(r,i,n),o=gY(r,a,n,!0);return I.jsx(VAe,{theme:o,children:I.jsx(Y5.Provider,{value:s,children:t})})}const QAe=["className","component","disableGutters","fixed","maxWidth","classes"],qAe=Jx(),GAe=yoe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ht(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),YAe=e=>q$({props:e,name:"MuiContainer",defaultTheme:qAe}),ZAe=(e,t)=>{const n=l=>Bt(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${ht(String(s))}`,i&&"fixed",a&&"disableGutters"]};return Lt(o,n,r)};function XAe(e={}){const{createStyledComponent:t=GAe,useThemeProps:n=YAe,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>M({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const c=u,f=s.breakpoints.values[c];return f!==0&&(l[s.breakpoints.up(c)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>M({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return N.forwardRef(function(o,l){const u=n(o),{className:c,component:f="div",disableGutters:h=!1,fixed:g=!1,maxWidth:b="lg"}=u,S=at(u,QAe),E=M({},u,{component:f,disableGutters:h,fixed:g,maxWidth:b}),w=ZAe(E,r);return I.jsx(i,M({as:f,ownerState:E,className:ft(w.root,c),ref:l},S))})}const KAe=["component","direction","spacing","divider","children","className","useFlexGap"],JAe=Jx(),e4e=yoe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function t4e(e){return q$({props:e,name:"MuiStack",defaultTheme:JAe})}function n4e(e,t){const n=N.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],i4e=({ownerState:e,theme:t})=>{let n=M({display:"flex",flexDirection:"column"},_l({theme:t},Kg({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=W$(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=Kg({values:e.direction,base:i}),s=Kg({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const h=u>0?a[c[u-1]]:"column";a[l]=h}}),n=yo(n,_l({theme:t},s,(l,u)=>e.useFlexGap?{gap:o1(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r4e(u?a[u]:e.direction)}`]:o1(r,l)}}))}return n=ACe(t.breakpoints,n),n};function a4e(e={}){const{createStyledComponent:t=e4e,useThemeProps:n=t4e,componentName:r="MuiStack"}=e,i=()=>Lt({root:["root"]},l=>Bt(r,l),{}),a=t(i4e);return N.forwardRef(function(l,u){const c=n(l),f=bR(c),{component:h="div",direction:g="column",spacing:b=0,divider:S,children:E,className:w,useFlexGap:x=!1}=f,k=at(f,KAe),C={direction:g,spacing:b,useFlexGap:x},R=i();return I.jsx(a,M({as:h,ownerState:C,ref:u,className:ft(R.root,w)},k,{children:S?n4e(E,S):E}))})}function s4e(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const o4e=["mode","contrastThreshold","tonalOffset"],bY={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ww.white,default:ww.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dN={text:{primary:ww.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ww.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function yY(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=tT(e.main,i):t==="dark"&&(e.dark=eT(e.main,a)))}function l4e(e="light"){return e==="dark"?{main:jb[200],light:jb[50],dark:jb[400]}:{main:jb[700],light:jb[400],dark:jb[800]}}function u4e(e="light"){return e==="dark"?{main:zb[200],light:zb[50],dark:zb[400]}:{main:zb[500],light:zb[300],dark:zb[700]}}function c4e(e="light"){return e==="dark"?{main:Ub[500],light:Ub[300],dark:Ub[700]}:{main:Ub[700],light:Ub[400],dark:Ub[800]}}function d4e(e="light"){return e==="dark"?{main:Hb[400],light:Hb[300],dark:Hb[700]}:{main:Hb[700],light:Hb[500],dark:Hb[900]}}function f4e(e="light"){return e==="dark"?{main:Vb[400],light:Vb[300],dark:Vb[700]}:{main:Vb[800],light:Vb[500],dark:Vb[900]}}function h4e(e="light"){return e==="dark"?{main:uE[400],light:uE[300],dark:uE[700]}:{main:"#ed6c02",light:uE[500],dark:uE[900]}}function p4e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=at(e,o4e),a=e.primary||l4e(t),s=e.secondary||u4e(t),o=e.error||c4e(t),l=e.info||d4e(t),u=e.success||f4e(t),c=e.warning||h4e(t);function f(S){return FAe(S,dN.text.primary)>=n?dN.text.primary:bY.text.primary}const h=({color:S,name:E,mainShade:w=500,lightShade:x=300,darkShade:k=700})=>{if(S=M({},S),!S.main&&S[w]&&(S.main=S[w]),!S.hasOwnProperty("main"))throw new Error(Km(11,E?` (${E})`:"",w));if(typeof S.main!="string")throw new Error(Km(12,E?` (${E})`:"",JSON.stringify(S.main)));return yY(S,"light",x,r),yY(S,"dark",k,r),S.contrastText||(S.contrastText=f(S.main)),S},g={dark:dN,light:bY};return yo(M({common:M({},ww),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:o,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:WTe,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},g[t]),i)}const m4e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function g4e(e){return Math.round(e*1e5)/1e5}const vY={textTransform:"uppercase"},OY='"Roboto", "Helvetica", "Arial", sans-serif';function b4e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=OY,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,h=at(n,m4e),g=i/14,b=f||(w=>`${w/u*g}rem`),S=(w,x,k,C,R)=>M({fontFamily:r,fontWeight:w,fontSize:b(x),lineHeight:k},r===OY?{letterSpacing:`${g4e(C/x)}em`}:{},R,c),E={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,vY),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,vY),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yo(M({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},E),h,{clone:!1})}const y4e=.2,v4e=.14,O4e=.12;function Qi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${y4e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${v4e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${O4e})`].join(",")}const S4e=["none",Qi(0,2,1,-1,0,1,1,0,0,1,3,0),Qi(0,3,1,-2,0,2,2,0,0,1,5,0),Qi(0,3,3,-2,0,3,4,0,0,1,8,0),Qi(0,2,4,-1,0,4,5,0,0,1,10,0),Qi(0,3,5,-1,0,5,8,0,0,1,14,0),Qi(0,3,5,-1,0,6,10,0,0,1,18,0),Qi(0,4,5,-2,0,7,10,1,0,2,16,1),Qi(0,5,5,-3,0,8,10,1,0,3,14,2),Qi(0,5,6,-3,0,9,12,1,0,3,16,2),Qi(0,6,6,-3,0,10,14,1,0,4,18,3),Qi(0,6,7,-4,0,11,15,1,0,4,20,3),Qi(0,7,8,-4,0,12,17,2,0,5,22,4),Qi(0,7,8,-4,0,13,19,2,0,5,24,4),Qi(0,7,9,-4,0,14,21,2,0,5,26,4),Qi(0,8,9,-5,0,15,22,2,0,6,28,5),Qi(0,8,10,-5,0,16,24,2,0,6,30,5),Qi(0,8,11,-5,0,17,26,2,0,6,32,5),Qi(0,9,11,-5,0,18,28,2,0,7,34,6),Qi(0,9,12,-6,0,19,29,2,0,7,36,6),Qi(0,10,13,-6,0,20,31,3,0,8,38,7),Qi(0,10,13,-6,0,21,33,3,0,8,40,7),Qi(0,10,14,-6,0,22,35,3,0,8,42,7),Qi(0,11,14,-7,0,23,36,3,0,9,44,8),Qi(0,11,15,-7,0,24,38,3,0,9,46,8)],E4e=["duration","easing","delay"],w4e={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Eoe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function SY(e){return`${Math.round(e)}ms`}function x4e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function T4e(e){const t=M({},w4e,e.easing),n=M({},Eoe,e.duration);return M({getAutoHeightDuration:x4e,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return at(a,E4e),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:SY(s)} ${o} ${typeof l=="string"?l:SY(l)}`).join(",")}},e,{easing:t,duration:n})}const k4e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},C4e=k4e,A4e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Y$(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=at(e,A4e);if(e.vars)throw new Error(Km(18));const o=p4e(r),l=Jx(e);let u=yo(l,{mixins:s4e(l.breakpoints,n),palette:o,shadows:S4e.slice(),typography:b4e(o,a),transitions:T4e(i),zIndex:M({},C4e)});return u=yo(u,s),u=t.reduce((c,f)=>yo(c,f),u),u.unstable_sxConfig=M({},mR,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Kx({sx:f,theme:this})},u}const _4e=Y$(),vR=_4e;function Ni(){const e=EO(vR);return e[s1]||e}function _t({props:e,name:t}){return q$({props:e,name:t,defaultTheme:vR,themeId:s1})}const Cs=e=>x2(e)&&e!=="classes",Z$=x2,Re=boe({themeId:s1,defaultTheme:vR,rootShouldForwardProp:Cs}),R4e=["theme"];function I4e(e){let{theme:t}=e,n=at(e,R4e);const r=t[s1];return I.jsx(WAe,M({},n,{themeId:r?s1:void 0,theme:r||t}))}const EY=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function D4e(e){return Bt("MuiSvgIcon",e)}Ut("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const N4e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],P4e=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ht(t)}`,`fontSize${ht(n)}`]};return Lt(i,D4e,r)},M4e=Re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ht(n.color)}`],t[`fontSize${ht(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,u,c,f,h,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),Jm=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,g=at(r,N4e),b=N.isValidElement(i)&&i.type==="svg",S=M({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:h,hasSvgAsChild:b}),E={};c||(E.viewBox=h);const w=P4e(S);return I.jsxs(M4e,M({as:o,className:ft(w.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},E,g,b&&i.props,{ownerState:S,children:[b?i.props.children:i,f?I.jsx("title",{children:f}):null]}))});Jm.muiName="SvgIcon";function Wa(e,t){function n(r,i){return I.jsx(Jm,M({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=Jm.muiName,N.memo(N.forwardRef(n))}const L4e={configure:e=>{z$.configure(e)}},$4e=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ht,createChainedFunction:F_,createSvgIcon:Wa,debounce:SO,deprecatedPropType:rCe,isMuiElement:E2,ownerDocument:Ei,ownerWindow:Tc,requirePropFactory:iCe,setRef:Cw,unstable_ClassNameGenerator:L4e,unstable_useEnhancedEffect:la,unstable_useId:Td,unsupportedProp:sCe,useControlled:ws,useEventCallback:on,useForkRef:Jn,useIsFocusVisible:oR},Symbol.toStringTag,{value:"Module"}));function S8(e,t){return S8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},S8(e,t)}function X$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,S8(e,t)}function F4e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function B4e(e,t){e.classList?e.classList.add(t):F4e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function wY(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function U4e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=wY(e.className,t):e.setAttribute("class",wY(e.className&&e.className.baseVal||"",t))}const xY={disabled:!1},j_=hn.createContext(null);var woe=function(t){return t.scrollTop},XE="unmounted",Og="exited",Sg="entering",iy="entered",E8="exiting",gp=function(e){X$(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=Og,a.appearStatus=Sg):l=iy:r.unmountOnExit||r.mountOnEnter?l=XE:l=Og,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===XE?{status:Og}:null};var n=t.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!==Sg&&s!==iy&&(a=Sg):(s===Sg||s===iy)&&(a=E8)}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===Sg){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ZE.findDOMNode(this);s&&woe(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Og&&this.setState({status:XE})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[ZE.findDOMNode(this),o],u=l[0],c=l[1],f=this.getTimeouts(),h=o?f.appear:f.enter;if(!i&&!s||xY.disabled){this.safeSetState({status:iy},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Sg},function(){a.props.onEntering(u,c),a.onTransitionEnd(h,function(){a.safeSetState({status:iy},function(){a.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:ZE.findDOMNode(this);if(!a||xY.disabled){this.safeSetState({status:Og},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:E8},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Og},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:ZE.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===XE)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=at(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return hn.createElement(j_.Provider,{value:null},typeof s=="function"?s(i,o):hn.cloneElement(hn.Children.only(s),o))},t}(hn.Component);gp.contextType=j_;gp.propTypes={};function Qb(){}gp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qb,onEntering:Qb,onEntered:Qb,onExit:Qb,onExiting:Qb,onExited:Qb};gp.UNMOUNTED=XE;gp.EXITED=Og;gp.ENTERING=Sg;gp.ENTERED=iy;gp.EXITING=E8;const nT=gp;var z4e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return B4e(t,r)})},fN=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return U4e(t,r)})},K$=function(e){X$(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),s=0;se.scrollTop;function e0(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function Y4e(e){return Bt("MuiCollapse",e)}Ut("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Z4e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],X4e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Lt(r,Y4e,n)},K4e=Re("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>M({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&M({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),J4e=Re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>M({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),e_e=Re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>M({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),xoe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:u,in:c,onEnter:f,onEntered:h,onEntering:g,onExit:b,onExited:S,onExiting:E,orientation:w="vertical",style:x,timeout:k=Eoe.standard,TransitionComponent:C=nT}=r,R=at(r,Z4e),A=M({},r,{orientation:w,collapsedSize:o}),D=X4e(A),B=Ni(),L=Ig(),F=N.useRef(null),W=N.useRef(),V=typeof o=="number"?`${o}px`:o,Z=w==="horizontal",Q=Z?"width":"height",H=N.useRef(null),J=Jn(n,H),K=ie=>_e=>{if(ie){const Ie=H.current;_e===void 0?ie(Ie):ie(Ie,_e)}},X=()=>F.current?F.current[Z?"clientWidth":"clientHeight"]:0,te=K((ie,_e)=>{F.current&&Z&&(F.current.style.position="absolute"),ie.style[Q]=V,f&&f(ie,_e)}),z=K((ie,_e)=>{const Ie=X();F.current&&Z&&(F.current.style.position="");const{duration:qe,easing:st}=e0({style:x,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const Pe=B.transitions.getAutoHeightDuration(Ie);ie.style.transitionDuration=`${Pe}ms`,W.current=Pe}else ie.style.transitionDuration=typeof qe=="string"?qe:`${qe}ms`;ie.style[Q]=`${Ie}px`,ie.style.transitionTimingFunction=st,g&&g(ie,_e)}),Te=K((ie,_e)=>{ie.style[Q]="auto",h&&h(ie,_e)}),be=K(ie=>{ie.style[Q]=`${X()}px`,b&&b(ie)}),ee=K(S),ye=K(ie=>{const _e=X(),{duration:Ie,easing:qe}=e0({style:x,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const st=B.transitions.getAutoHeightDuration(_e);ie.style.transitionDuration=`${st}ms`,W.current=st}else ie.style.transitionDuration=typeof Ie=="string"?Ie:`${Ie}ms`;ie.style[Q]=V,ie.style.transitionTimingFunction=qe,E&&E(ie)}),Oe=ie=>{k==="auto"&&L.start(W.current||0,ie),i&&i(H.current,ie)};return I.jsx(C,M({in:c,onEnter:te,onEntered:Te,onEntering:z,onExit:be,onExited:ee,onExiting:ye,addEndListener:Oe,nodeRef:H,timeout:k==="auto"?null:k},R,{children:(ie,_e)=>I.jsx(K4e,M({as:l,className:ft(D.root,s,{entered:D.entered,exited:!c&&V==="0px"&&D.hidden}[ie]),style:M({[Z?"minWidth":"minHeight"]:V},x),ownerState:M({},A,{state:ie}),ref:J},_e,{children:I.jsx(J4e,{ownerState:M({},A,{state:ie}),className:D.wrapper,ref:F,children:I.jsx(e_e,{ownerState:M({},A,{state:ie}),className:D.wrapperInner,children:a})})}))}))});xoe.muiSupportAuto=!0;const t_e=xoe;function n_e(e){return Bt("MuiPaper",e)}Ut("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const r_e=["className","component","elevation","square","variant"],i_e=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Lt(a,n_e,i)},a_e=Re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return M({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&M({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Rn("#fff",EY(t.elevation))}, ${Rn("#fff",EY(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),s_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,u=at(r,r_e),c=M({},r,{component:a,elevation:s,square:o,variant:l}),f=i_e(c);return I.jsx(a_e,M({as:a,ownerState:c,className:ft(f.root,i),ref:n},u))}),Zs=s_e;function Nf(e){return typeof e=="string"}function KE(e,t,n){return e===void 0||Nf(e)?t:M({},t,{ownerState:M({},t.ownerState,n)})}function o_e(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const l_e={disableDefaultClasses:!1},u_e=N.createContext(l_e);function c_e(e){const{disableDefaultClasses:t}=N.useContext(u_e);return n=>t?"":e(n)}function T2(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function y0(e,t,n){return typeof e=="function"?e(t,n):e}function TY(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function d_e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const g=ft(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),b=M({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=M({},n,i,r);return g.length>0&&(S.className=g),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:void 0}}const s=T2(M({},i,r)),o=TY(r),l=TY(i),u=t(s),c=ft(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f=M({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=M({},u,n,l,o);return c.length>0&&(h.className=c),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}const f_e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=at(e,f_e),o=a?{}:y0(r,i),{props:l,internalRef:u}=d_e(M({},s,{externalSlotProps:o})),c=Jn(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return KE(n,M({},l,{ref:c}),i)}function h_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:u}=e,[c,f]=N.useState(!1),h=ft(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},b=ft(n.child,c&&n.childLeaving,r&&n.childPulsate);return!o&&!c&&f(!0),N.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,u);return()=>{clearTimeout(S)}}},[l,o,u]),I.jsx("span",{className:h,style:g,children:I.jsx("span",{className:b})})}const rc=Ut("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),p_e=["center","classes","className"];let OR=e=>e,kY,CY,AY,_Y;const w8=550,m_e=80,g_e=Yx(kY||(kY=OR` + */var U$=Symbol.for("react.element"),z$=Symbol.for("react.portal"),J5=Symbol.for("react.fragment"),eR=Symbol.for("react.strict_mode"),tR=Symbol.for("react.profiler"),nR=Symbol.for("react.provider"),rR=Symbol.for("react.context"),eCe=Symbol.for("react.server_context"),iR=Symbol.for("react.forward_ref"),aR=Symbol.for("react.suspense"),sR=Symbol.for("react.suspense_list"),oR=Symbol.for("react.memo"),lR=Symbol.for("react.lazy"),tCe=Symbol.for("react.offscreen"),uoe;uoe=Symbol.for("react.module.reference");function Ic(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case U$:switch(e=e.type,e){case J5:case tR:case eR:case aR:case sR:return e;default:switch(e=e&&e.$$typeof,e){case eCe:case rR:case iR:case lR:case oR:case nR:return e;default:return t}}case z$:return t}}}yi.ContextConsumer=rR;yi.ContextProvider=nR;yi.Element=U$;yi.ForwardRef=iR;yi.Fragment=J5;yi.Lazy=lR;yi.Memo=oR;yi.Portal=z$;yi.Profiler=tR;yi.StrictMode=eR;yi.Suspense=aR;yi.SuspenseList=sR;yi.isAsyncMode=function(){return!1};yi.isConcurrentMode=function(){return!1};yi.isContextConsumer=function(e){return Ic(e)===rR};yi.isContextProvider=function(e){return Ic(e)===nR};yi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===U$};yi.isForwardRef=function(e){return Ic(e)===iR};yi.isFragment=function(e){return Ic(e)===J5};yi.isLazy=function(e){return Ic(e)===lR};yi.isMemo=function(e){return Ic(e)===oR};yi.isPortal=function(e){return Ic(e)===z$};yi.isProfiler=function(e){return Ic(e)===tR};yi.isStrictMode=function(e){return Ic(e)===eR};yi.isSuspense=function(e){return Ic(e)===aR};yi.isSuspenseList=function(e){return Ic(e)===sR};yi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===J5||e===tR||e===eR||e===aR||e===sR||e===tCe||typeof e=="object"&&e!==null&&(e.$$typeof===lR||e.$$typeof===oR||e.$$typeof===nR||e.$$typeof===rR||e.$$typeof===iR||e.$$typeof===uoe||e.getModuleId!==void 0)};yi.typeOf=Ic;const nCe=Y.oneOfType([Y.func,Y.object]),OO=nCe;function ht(e){if(typeof e!="string")throw new Error(Jm(7));return e.charAt(0).toUpperCase()+e.slice(1)}function B_(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function SO(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function rCe(e,t){return()=>null}function E2(e,t){var n,r;return N.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ei(e){return e&&e.ownerDocument||document}function kc(e){return Ei(e).defaultView||window}function iCe(e,t){return()=>null}function Cw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const la=typeof window<"u"?N.useLayoutEffect:N.useEffect;let lY=0;function aCe(e){const[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t==null&&(lY+=1,n(`mui-${lY}`))},[t]),r}const uY=Mv.useId;function Td(e){if(uY!==void 0){const t=uY();return e??t}return aCe(e)}function sCe(e,t,n,r,i){return null}function ws({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=N.useRef(e!==void 0),[a,s]=N.useState(t),o=i?e:a,l=N.useCallback(u=>{i||s(u)},[]);return[o,l]}function on(e){const t=N.useRef(e);return la(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function Jn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Cw(n,t)})},e)}const cY={};function oCe(e,t){const n=N.useRef(cY);return n.current===cY&&(n.current=e(t)),n}const lCe=[];function uCe(e){N.useEffect(e,lCe)}class Zx{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Zx}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function Ig(){const e=oCe(Zx.create).current;return uCe(e.disposeEffect),e}let uR=!0,S8=!1;const cCe=new Zx,dCe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fCe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&dCe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hCe(e){e.metaKey||e.altKey||e.ctrlKey||(uR=!0)}function fN(){uR=!1}function pCe(){this.visibilityState==="hidden"&&S8&&(uR=!0)}function mCe(e){e.addEventListener("keydown",hCe,!0),e.addEventListener("mousedown",fN,!0),e.addEventListener("pointerdown",fN,!0),e.addEventListener("touchstart",fN,!0),e.addEventListener("visibilitychange",pCe,!0)}function gCe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return uR||fCe(t)}function cR(){const e=N.useCallback(i=>{i!=null&&mCe(i.ownerDocument)},[]),t=N.useRef(!1);function n(){return t.current?(S8=!0,cCe.start(100,()=>{S8=!1}),t.current=!1,!0):!1}function r(i){return gCe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function coe(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Wb;function doe(){if(Wb)return Wb;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Wb="reverse",e.scrollLeft>0?Wb="default":(e.scrollLeft=1,e.scrollLeft===0&&(Wb="negative")),document.body.removeChild(e),Wb}function bCe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(doe()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const yCe=e=>{const t=N.useRef({});return N.useEffect(()=>{t.current=e}),t.current};function vCe(e){return N.Children.toArray(e).filter(t=>N.isValidElement(t))}const OCe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},SCe=OCe;function dR(e,t){const n=M({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=M({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=M({},a),Object.keys(i).forEach(s=>{n[r][s]=dR(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Mt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}const dY=e=>e,ECe=()=>{let e=dY;return{configure(t){e=t},generate(t){return e(t)},reset(){e=dY}}},j$=ECe(),foe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function $t(e,t,n="Mui"){const r=foe[t];return r?`${n}-${r}`:`${j$.generate(e)}-${t}`}function Ft(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=$t(e,i,n)}),r}function ry(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const wCe=["values","unit","step"],xCe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>M({},n,{[r.key]:r.val}),{})};function TCe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=at(e,wCe),a=xCe(t),s=Object.keys(a);function o(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,g){const b=s.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:g)-r/100}${n})`}function c(h){return s.indexOf(h)+1`@media (min-width:${H$[e]}px)`};function _l(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||fY;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||fY;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||H$).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function hoe(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function poe(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ACe(e,...t){const n=hoe(e),r=[n,...t].reduce((i,a)=>yo(i,a),{});return poe(Object.keys(n),r)}function _Ce(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function Kg({values:e,breakpoints:t,base:n}){const r=n||_Ce(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function fR(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function U_(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=fR(e,n)||r,t&&(i=t(i,r,e)),i}function Fa(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,u=fR(l,r)||{};return _l(s,o,f=>{let h=U_(u,i,f);return f===h&&typeof f=="string"&&(h=U_(u,i,`${t}${f==="default"?"":ht(f)}`,f)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function RCe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ICe={m:"margin",p:"padding"},DCe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hY={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NCe=RCe(e=>{if(e.length>2)if(hY[e])e=hY[e];else return[e];const[t,n]=e.split(""),r=ICe[t],i=DCe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),V$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],W$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...V$,...W$];function Xx(e,t,n,r){var i;const a=(i=fR(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function Q$(e){return Xx(e,"spacing",8)}function o1(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function PCe(e,t){return n=>e.reduce((r,i)=>(r[i]=o1(t,n),r),{})}function MCe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=NCe(n),a=PCe(i,r),s=e[n];return _l(e,s,a)}function moe(e,t){const n=Q$(e.theme);return Object.keys(e).map(r=>MCe(e,t,r,n)).reduce(w2,{})}function ba(e){return moe(e,V$)}ba.propTypes={};ba.filterProps=V$;function ya(e){return moe(e,W$)}ya.propTypes={};ya.filterProps=W$;function LCe(e=8){if(e.mui)return e;const t=Q$({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function hR(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?w2(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function sc(e){return typeof e!="number"?e:`${e}px solid`}function Dc(e,t){return Fa({prop:e,themeKey:"borders",transform:t})}const $Ce=Dc("border",sc),FCe=Dc("borderTop",sc),BCe=Dc("borderRight",sc),UCe=Dc("borderBottom",sc),zCe=Dc("borderLeft",sc),jCe=Dc("borderColor"),HCe=Dc("borderTopColor"),VCe=Dc("borderRightColor"),WCe=Dc("borderBottomColor"),QCe=Dc("borderLeftColor"),qCe=Dc("outline",sc),GCe=Dc("outlineColor"),pR=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xx(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:o1(t,r)});return _l(e,e.borderRadius,n)}return null};pR.propTypes={};pR.filterProps=["borderRadius"];hR($Ce,FCe,BCe,UCe,zCe,jCe,HCe,VCe,WCe,QCe,pR,qCe,GCe);const mR=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xx(e.theme,"spacing",8),n=r=>({gap:o1(t,r)});return _l(e,e.gap,n)}return null};mR.propTypes={};mR.filterProps=["gap"];const gR=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xx(e.theme,"spacing",8),n=r=>({columnGap:o1(t,r)});return _l(e,e.columnGap,n)}return null};gR.propTypes={};gR.filterProps=["columnGap"];const bR=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xx(e.theme,"spacing",8),n=r=>({rowGap:o1(t,r)});return _l(e,e.rowGap,n)}return null};bR.propTypes={};bR.filterProps=["rowGap"];const YCe=Fa({prop:"gridColumn"}),ZCe=Fa({prop:"gridRow"}),XCe=Fa({prop:"gridAutoFlow"}),KCe=Fa({prop:"gridAutoColumns"}),JCe=Fa({prop:"gridAutoRows"}),eAe=Fa({prop:"gridTemplateColumns"}),tAe=Fa({prop:"gridTemplateRows"}),nAe=Fa({prop:"gridTemplateAreas"}),rAe=Fa({prop:"gridArea"});hR(mR,gR,bR,YCe,ZCe,XCe,KCe,JCe,eAe,tAe,nAe,rAe);function Zy(e,t){return t==="grey"?t:e}const iAe=Fa({prop:"color",themeKey:"palette",transform:Zy}),aAe=Fa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zy}),sAe=Fa({prop:"backgroundColor",themeKey:"palette",transform:Zy});hR(iAe,aAe,sAe);function pu(e){return e<=1&&e!==0?`${e*100}%`:e}const oAe=Fa({prop:"width",transform:pu}),q$=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||H$[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:pu(n)}};return _l(e,e.maxWidth,t)}return null};q$.filterProps=["maxWidth"];const lAe=Fa({prop:"minWidth",transform:pu}),uAe=Fa({prop:"height",transform:pu}),cAe=Fa({prop:"maxHeight",transform:pu}),dAe=Fa({prop:"minHeight",transform:pu});Fa({prop:"size",cssProperty:"width",transform:pu});Fa({prop:"size",cssProperty:"height",transform:pu});const fAe=Fa({prop:"boxSizing"});hR(oAe,q$,lAe,uAe,cAe,dAe,fAe);const hAe={border:{themeKey:"borders",transform:sc},borderTop:{themeKey:"borders",transform:sc},borderRight:{themeKey:"borders",transform:sc},borderBottom:{themeKey:"borders",transform:sc},borderLeft:{themeKey:"borders",transform:sc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pR},color:{themeKey:"palette",transform:Zy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zy},backgroundColor:{themeKey:"palette",transform:Zy},p:{style:ya},pt:{style:ya},pr:{style:ya},pb:{style:ya},pl:{style:ya},px:{style:ya},py:{style:ya},padding:{style:ya},paddingTop:{style:ya},paddingRight:{style:ya},paddingBottom:{style:ya},paddingLeft:{style:ya},paddingX:{style:ya},paddingY:{style:ya},paddingInline:{style:ya},paddingInlineStart:{style:ya},paddingInlineEnd:{style:ya},paddingBlock:{style:ya},paddingBlockStart:{style:ya},paddingBlockEnd:{style:ya},m:{style:ba},mt:{style:ba},mr:{style:ba},mb:{style:ba},ml:{style:ba},mx:{style:ba},my:{style:ba},margin:{style:ba},marginTop:{style:ba},marginRight:{style:ba},marginBottom:{style:ba},marginLeft:{style:ba},marginX:{style:ba},marginY:{style:ba},marginInline:{style:ba},marginInlineStart:{style:ba},marginInlineEnd:{style:ba},marginBlock:{style:ba},marginBlockStart:{style:ba},marginBlockEnd:{style:ba},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:mR},rowGap:{style:bR},columnGap:{style:gR},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pu},maxWidth:{style:q$},minWidth:{transform:pu},height:{transform:pu},maxHeight:{transform:pu},minHeight:{transform:pu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},yR=hAe;function pAe(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function mAe(e,t){return typeof e=="function"?e(t):e}function gAe(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=fR(i,u)||{};return f?f(s):_l(s,r,b=>{let S=U_(h,c,b);return b===S&&typeof b=="string"&&(S=U_(h,c,`${n}${b==="default"?"":ht(b)}`,b)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:yR;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=hoe(a.breakpoints),f=Object.keys(c);let h=c;return Object.keys(u).forEach(g=>{const b=mAe(u[g],a);if(b!=null)if(typeof b=="object")if(s[g])h=w2(h,e(g,b,a,s));else{const S=_l({theme:a},b,w=>({[g]:w}));pAe(S,b)?h[g]=t({sx:b,theme:a}):h=w2(h,S)}else h=w2(h,e(g,b,a,s))}),poe(f,h)}return Array.isArray(i)?i.map(o):o(i)}return t}const Kx=gAe();Kx.filterProps=["sx"];function bAe(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const yAe=["breakpoints","palette","spacing","shape"];function Jx(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=at(e,yAe),o=TCe(n),l=LCe(i);let u=yo({breakpoints:o,direction:"ltr",components:{},palette:M({mode:"light"},r),spacing:l,shape:M({},CCe,a)},s);return u.applyStyles=bAe,u=t.reduce((c,f)=>yo(c,f),u),u.unstable_sxConfig=M({},yR,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Kx({sx:f,theme:this})},u}function vAe(e){return Object.keys(e).length===0}function vR(e=null){const t=N.useContext(K5);return!t||vAe(t)?e:t}const OAe=Jx();function EO(e=OAe){return vR(e)}function SAe({styles:e,themeId:t,defaultTheme:n={}}){const r=EO(n),i=typeof e=="function"?e(t&&r[t]||r):e;return I.jsx(Kke,{styles:i})}const EAe=["sx"],wAe=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:yR;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function OR(e){const{sx:t}=e,n=at(e,EAe),{systemProps:r,otherProps:i}=wAe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return $h(o)?M({},r,o):r}:a=M({},r,t),M({},i,{sx:a})}function goe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;to!=="theme"&&o!=="sx"&&o!=="as"})(Kx);return N.forwardRef(function(l,u){const c=EO(n),f=OR(l),{className:h,component:g="div"}=f,b=at(f,xAe);return I.jsx(a,M({as:g,ref:u,className:dt(h,i?i(r):r),theme:t&&c[t]||c},b))})}const kAe=["variant"];function pY(e){return e.length===0}function boe(e){const{variant:t}=e,n=at(e,kAe);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=pY(r)?e[i]:ht(e[i]):r+=`${pY(r)?i:ht(i)}${ht(e[i].toString())}`}),r}const CAe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function AAe(e){return Object.keys(e).length===0}function _Ae(e){return typeof e=="string"&&e.charCodeAt(0)>96}const RAe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,z_=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=boe(r.props),n[i]=r.style}),n},IAe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),z_(n)},j_=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let a=0;return n&&n.forEach(s=>{let o=!0;if(typeof s.props=="function"){const l=M({},e,r);o=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(o=!1)});o&&(typeof s.props=="function"?i.push(t[`callback${a}`]):i.push(t[boe(s.props)])),typeof s.props=="function"&&(a+=1)}),i},DAe=(e,t,n,r)=>{var i;const a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return j_(e,t,a)};function x2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const NAe=Jx(),PAe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function O4({defaultTheme:e,theme:t,themeId:n}){return AAe(t)?e:t[n]||t}function MAe(e){return e?(t,n)=>n[e]:null}const mY=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(M({},t,{theme:O4(M({},t,{defaultTheme:n,themeId:r}))}));let a;if(i&&i.variants&&(a=i.variants,delete i.variants),a){const s=j_(t,z_(a),a);return[i,...s]}return i};function yoe(e={}){const{themeId:t,defaultTheme:n=NAe,rootShouldForwardProp:r=x2,slotShouldForwardProp:i=x2}=e,a=s=>Kx(M({},s,{theme:O4(M({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{Jke(s,C=>C.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:h=MAe(PAe(u))}=o,g=at(o,CAe),b=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let w,E=x2;u==="Root"||u==="root"?E=r:u?E=i:_Ae(s)&&(E=void 0);const x=ooe(s,M({shouldForwardProp:E,label:w},g)),k=(C,...R)=>{const A=R?R.map(F=>{if(typeof F=="function"&&F.__emotion_real!==F)return W=>mY({styledArg:F,props:W,defaultTheme:n,themeId:t});if($h(F)){let W=F,V;return F&&F.variants&&(V=F.variants,delete W.variants,W=Z=>{let Q=F;return j_(Z,z_(V),V).forEach(J=>{Q=yo(Q,J)}),Q}),W}return F}):[];let D=C;if($h(C)){let F;C&&C.variants&&(F=C.variants,delete D.variants,D=W=>{let V=C;return j_(W,z_(F),F).forEach(Q=>{V=yo(V,Q)}),V})}else typeof C=="function"&&C.__emotion_real!==C&&(D=F=>mY({styledArg:C,props:F,defaultTheme:n,themeId:t}));l&&h&&A.push(F=>{const W=O4(M({},F,{defaultTheme:n,themeId:t})),V=RAe(l,W);if(V){const Z={};return Object.entries(V).forEach(([Q,H])=>{Z[Q]=typeof H=="function"?H(M({},F,{theme:W})):H}),h(F,Z)}return null}),l&&!b&&A.push(F=>{const W=O4(M({},F,{defaultTheme:n,themeId:t}));return DAe(F,IAe(l,W),W,l)}),S||A.push(a);const B=A.length-R.length;if(Array.isArray(C)&&B>0){const F=new Array(B).fill("");D=[...C,...F],D.raw=[...C.raw,...F]}const L=x(D,...A);return s.muiName&&(L.muiName=s.muiName),L};return x.withConfig&&(k.withConfig=x.withConfig),k}}const voe=yoe();function Ooe(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:dR(t.components[n].defaultProps,r)}function G$({props:e,name:t,defaultTheme:n,themeId:r}){let i=EO(n);return r&&(i=i[r]||i),Ooe({theme:i,name:t,props:e})}function Y$(e,t=0,n=1){return ry(e,t,n)}function LAe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function l1(e){if(e.type)return e;if(e.charAt(0)==="#")return l1(LAe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Jm(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Jm(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function SR(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function $Ae(e){e=l1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,c=(u+n/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),SR({type:o,values:l})}function E8(e){e=l1(e);let t=e.type==="hsl"||e.type==="hsla"?l1($Ae(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function FAe(e,t){const n=E8(e),r=E8(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Rn(e,t){return e=l1(e),t=Y$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,SR(e)}function eT(e,t){if(e=l1(e),t=Y$(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return SR(e)}function tT(e,t){if(e=l1(e),t=Y$(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return SR(e)}function BAe(e,t=.15){return E8(e)>.5?eT(e,t):tT(e,t)}const UAe=N.createContext(null),Soe=UAe;function Eoe(){return N.useContext(Soe)}const zAe=typeof Symbol=="function"&&Symbol.for,jAe=zAe?Symbol.for("mui.nested"):"__THEME_NESTED__";function HAe(e,t){return typeof t=="function"?t(e):M({},e,t)}function VAe(e){const{children:t,theme:n}=e,r=Eoe(),i=N.useMemo(()=>{const a=r===null?n:HAe(r,n);return a!=null&&(a[jAe]=r!==null),a},[n,r]);return I.jsx(Soe.Provider,{value:i,children:t})}const gY={};function bY(e,t,n,r=!1){return N.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?M({},t,{[e]:a}):a;return r?()=>s:s}return e?M({},t,{[e]:n}):M({},t,n)},[e,t,n,r])}function WAe(e){const{children:t,theme:n,themeId:r}=e,i=vR(gY),a=Eoe()||gY,s=bY(r,i,n),o=bY(r,a,n,!0);return I.jsx(VAe,{theme:o,children:I.jsx(K5.Provider,{value:s,children:t})})}const QAe=["className","component","disableGutters","fixed","maxWidth","classes"],qAe=Jx(),GAe=voe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ht(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),YAe=e=>G$({props:e,name:"MuiContainer",defaultTheme:qAe}),ZAe=(e,t)=>{const n=l=>$t(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${ht(String(s))}`,i&&"fixed",a&&"disableGutters"]};return Mt(o,n,r)};function XAe(e={}){const{createStyledComponent:t=GAe,useThemeProps:n=YAe,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>M({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const c=u,f=s.breakpoints.values[c];return f!==0&&(l[s.breakpoints.up(c)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>M({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return N.forwardRef(function(o,l){const u=n(o),{className:c,component:f="div",disableGutters:h=!1,fixed:g=!1,maxWidth:b="lg"}=u,S=at(u,QAe),w=M({},u,{component:f,disableGutters:h,fixed:g,maxWidth:b}),E=ZAe(w,r);return I.jsx(i,M({as:f,ownerState:w,className:dt(E.root,c),ref:l},S))})}const KAe=["component","direction","spacing","divider","children","className","useFlexGap"],JAe=Jx(),e4e=voe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function t4e(e){return G$({props:e,name:"MuiStack",defaultTheme:JAe})}function n4e(e,t){const n=N.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],i4e=({ownerState:e,theme:t})=>{let n=M({display:"flex",flexDirection:"column"},_l({theme:t},Kg({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Q$(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=Kg({values:e.direction,base:i}),s=Kg({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const h=u>0?a[c[u-1]]:"column";a[l]=h}}),n=yo(n,_l({theme:t},s,(l,u)=>e.useFlexGap?{gap:o1(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r4e(u?a[u]:e.direction)}`]:o1(r,l)}}))}return n=ACe(t.breakpoints,n),n};function a4e(e={}){const{createStyledComponent:t=e4e,useThemeProps:n=t4e,componentName:r="MuiStack"}=e,i=()=>Mt({root:["root"]},l=>$t(r,l),{}),a=t(i4e);return N.forwardRef(function(l,u){const c=n(l),f=OR(c),{component:h="div",direction:g="column",spacing:b=0,divider:S,children:w,className:E,useFlexGap:x=!1}=f,k=at(f,KAe),C={direction:g,spacing:b,useFlexGap:x},R=i();return I.jsx(a,M({as:h,ownerState:C,ref:u,className:dt(R.root,E)},k,{children:S?n4e(w,S):w}))})}function s4e(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const o4e=["mode","contrastThreshold","tonalOffset"],yY={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ww.white,default:ww.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},hN={text:{primary:ww.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ww.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function vY(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=tT(e.main,i):t==="dark"&&(e.dark=eT(e.main,a)))}function l4e(e="light"){return e==="dark"?{main:jb[200],light:jb[50],dark:jb[400]}:{main:jb[700],light:jb[400],dark:jb[800]}}function u4e(e="light"){return e==="dark"?{main:zb[200],light:zb[50],dark:zb[400]}:{main:zb[500],light:zb[300],dark:zb[700]}}function c4e(e="light"){return e==="dark"?{main:Ub[500],light:Ub[300],dark:Ub[700]}:{main:Ub[700],light:Ub[400],dark:Ub[800]}}function d4e(e="light"){return e==="dark"?{main:Hb[400],light:Hb[300],dark:Hb[700]}:{main:Hb[700],light:Hb[500],dark:Hb[900]}}function f4e(e="light"){return e==="dark"?{main:Vb[400],light:Vb[300],dark:Vb[700]}:{main:Vb[800],light:Vb[500],dark:Vb[900]}}function h4e(e="light"){return e==="dark"?{main:uE[400],light:uE[300],dark:uE[700]}:{main:"#ed6c02",light:uE[500],dark:uE[900]}}function p4e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=at(e,o4e),a=e.primary||l4e(t),s=e.secondary||u4e(t),o=e.error||c4e(t),l=e.info||d4e(t),u=e.success||f4e(t),c=e.warning||h4e(t);function f(S){return FAe(S,hN.text.primary)>=n?hN.text.primary:yY.text.primary}const h=({color:S,name:w,mainShade:E=500,lightShade:x=300,darkShade:k=700})=>{if(S=M({},S),!S.main&&S[E]&&(S.main=S[E]),!S.hasOwnProperty("main"))throw new Error(Jm(11,w?` (${w})`:"",E));if(typeof S.main!="string")throw new Error(Jm(12,w?` (${w})`:"",JSON.stringify(S.main)));return vY(S,"light",x,r),vY(S,"dark",k,r),S.contrastText||(S.contrastText=f(S.main)),S},g={dark:hN,light:yY};return yo(M({common:M({},ww),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:o,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:WTe,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},g[t]),i)}const m4e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function g4e(e){return Math.round(e*1e5)/1e5}const OY={textTransform:"uppercase"},SY='"Roboto", "Helvetica", "Arial", sans-serif';function b4e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=SY,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,h=at(n,m4e),g=i/14,b=f||(E=>`${E/u*g}rem`),S=(E,x,k,C,R)=>M({fontFamily:r,fontWeight:E,fontSize:b(x),lineHeight:k},r===SY?{letterSpacing:`${g4e(C/x)}em`}:{},R,c),w={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,OY),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,OY),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yo(M({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},w),h,{clone:!1})}const y4e=.2,v4e=.14,O4e=.12;function Qi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${y4e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${v4e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${O4e})`].join(",")}const S4e=["none",Qi(0,2,1,-1,0,1,1,0,0,1,3,0),Qi(0,3,1,-2,0,2,2,0,0,1,5,0),Qi(0,3,3,-2,0,3,4,0,0,1,8,0),Qi(0,2,4,-1,0,4,5,0,0,1,10,0),Qi(0,3,5,-1,0,5,8,0,0,1,14,0),Qi(0,3,5,-1,0,6,10,0,0,1,18,0),Qi(0,4,5,-2,0,7,10,1,0,2,16,1),Qi(0,5,5,-3,0,8,10,1,0,3,14,2),Qi(0,5,6,-3,0,9,12,1,0,3,16,2),Qi(0,6,6,-3,0,10,14,1,0,4,18,3),Qi(0,6,7,-4,0,11,15,1,0,4,20,3),Qi(0,7,8,-4,0,12,17,2,0,5,22,4),Qi(0,7,8,-4,0,13,19,2,0,5,24,4),Qi(0,7,9,-4,0,14,21,2,0,5,26,4),Qi(0,8,9,-5,0,15,22,2,0,6,28,5),Qi(0,8,10,-5,0,16,24,2,0,6,30,5),Qi(0,8,11,-5,0,17,26,2,0,6,32,5),Qi(0,9,11,-5,0,18,28,2,0,7,34,6),Qi(0,9,12,-6,0,19,29,2,0,7,36,6),Qi(0,10,13,-6,0,20,31,3,0,8,38,7),Qi(0,10,13,-6,0,21,33,3,0,8,40,7),Qi(0,10,14,-6,0,22,35,3,0,8,42,7),Qi(0,11,14,-7,0,23,36,3,0,9,44,8),Qi(0,11,15,-7,0,24,38,3,0,9,46,8)],E4e=["duration","easing","delay"],w4e={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},woe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function EY(e){return`${Math.round(e)}ms`}function x4e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function T4e(e){const t=M({},w4e,e.easing),n=M({},woe,e.duration);return M({getAutoHeightDuration:x4e,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return at(a,E4e),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:EY(s)} ${o} ${typeof l=="string"?l:EY(l)}`).join(",")}},e,{easing:t,duration:n})}const k4e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},C4e=k4e,A4e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Z$(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=at(e,A4e);if(e.vars)throw new Error(Jm(18));const o=p4e(r),l=Jx(e);let u=yo(l,{mixins:s4e(l.breakpoints,n),palette:o,shadows:S4e.slice(),typography:b4e(o,a),transitions:T4e(i),zIndex:M({},C4e)});return u=yo(u,s),u=t.reduce((c,f)=>yo(c,f),u),u.unstable_sxConfig=M({},yR,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Kx({sx:f,theme:this})},u}const _4e=Z$(),ER=_4e;function Ni(){const e=EO(ER);return e[s1]||e}function _t({props:e,name:t}){return G$({props:e,name:t,defaultTheme:ER,themeId:s1})}const As=e=>x2(e)&&e!=="classes",X$=x2,Re=yoe({themeId:s1,defaultTheme:ER,rootShouldForwardProp:As}),R4e=["theme"];function I4e(e){let{theme:t}=e,n=at(e,R4e);const r=t[s1];return I.jsx(WAe,M({},n,{themeId:r?s1:void 0,theme:r||t}))}const wY=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function D4e(e){return $t("MuiSvgIcon",e)}Ft("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const N4e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],P4e=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ht(t)}`,`fontSize${ht(n)}`]};return Mt(i,D4e,r)},M4e=Re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ht(n.color)}`],t[`fontSize${ht(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,u,c,f,h,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),e0=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,g=at(r,N4e),b=N.isValidElement(i)&&i.type==="svg",S=M({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:h,hasSvgAsChild:b}),w={};c||(w.viewBox=h);const E=P4e(S);return I.jsxs(M4e,M({as:o,className:dt(E.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},w,g,b&&i.props,{ownerState:S,children:[b?i.props.children:i,f?I.jsx("title",{children:f}):null]}))});e0.muiName="SvgIcon";function Wa(e,t){function n(r,i){return I.jsx(e0,M({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=e0.muiName,N.memo(N.forwardRef(n))}const L4e={configure:e=>{j$.configure(e)}},$4e=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ht,createChainedFunction:B_,createSvgIcon:Wa,debounce:SO,deprecatedPropType:rCe,isMuiElement:E2,ownerDocument:Ei,ownerWindow:kc,requirePropFactory:iCe,setRef:Cw,unstable_ClassNameGenerator:L4e,unstable_useEnhancedEffect:la,unstable_useId:Td,unsupportedProp:sCe,useControlled:ws,useEventCallback:on,useForkRef:Jn,useIsFocusVisible:cR},Symbol.toStringTag,{value:"Module"}));function w8(e,t){return w8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},w8(e,t)}function K$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,w8(e,t)}function F4e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function B4e(e,t){e.classList?e.classList.add(t):F4e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function xY(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function U4e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=xY(e.className,t):e.setAttribute("class",xY(e.className&&e.className.baseVal||"",t))}const TY={disabled:!1},H_=hn.createContext(null);var xoe=function(t){return t.scrollTop},XE="unmounted",Og="exited",Sg="entering",iy="entered",x8="exiting",bp=function(e){K$(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=Og,a.appearStatus=Sg):l=iy:r.unmountOnExit||r.mountOnEnter?l=XE:l=Og,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===XE?{status:Og}:null};var n=t.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!==Sg&&s!==iy&&(a=Sg):(s===Sg||s===iy)&&(a=x8)}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===Sg){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ZE.findDOMNode(this);s&&xoe(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Og&&this.setState({status:XE})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[ZE.findDOMNode(this),o],u=l[0],c=l[1],f=this.getTimeouts(),h=o?f.appear:f.enter;if(!i&&!s||TY.disabled){this.safeSetState({status:iy},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Sg},function(){a.props.onEntering(u,c),a.onTransitionEnd(h,function(){a.safeSetState({status:iy},function(){a.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:ZE.findDOMNode(this);if(!a||TY.disabled){this.safeSetState({status:Og},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:x8},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Og},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:ZE.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===XE)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=at(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return hn.createElement(H_.Provider,{value:null},typeof s=="function"?s(i,o):hn.cloneElement(hn.Children.only(s),o))},t}(hn.Component);bp.contextType=H_;bp.propTypes={};function Qb(){}bp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qb,onEntering:Qb,onEntered:Qb,onExit:Qb,onExiting:Qb,onExited:Qb};bp.UNMOUNTED=XE;bp.EXITED=Og;bp.ENTERING=Sg;bp.ENTERED=iy;bp.EXITING=x8;const nT=bp;var z4e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return B4e(t,r)})},pN=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return U4e(t,r)})},J$=function(e){K$(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),s=0;se.scrollTop;function t0(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function Y4e(e){return $t("MuiCollapse",e)}Ft("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Z4e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],X4e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Mt(r,Y4e,n)},K4e=Re("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>M({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&M({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),J4e=Re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>M({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),e_e=Re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>M({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Toe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:u,in:c,onEnter:f,onEntered:h,onEntering:g,onExit:b,onExited:S,onExiting:w,orientation:E="vertical",style:x,timeout:k=woe.standard,TransitionComponent:C=nT}=r,R=at(r,Z4e),A=M({},r,{orientation:E,collapsedSize:o}),D=X4e(A),B=Ni(),L=Ig(),F=N.useRef(null),W=N.useRef(),V=typeof o=="number"?`${o}px`:o,Z=E==="horizontal",Q=Z?"width":"height",H=N.useRef(null),J=Jn(n,H),K=ie=>_e=>{if(ie){const Ie=H.current;_e===void 0?ie(Ie):ie(Ie,_e)}},X=()=>F.current?F.current[Z?"clientWidth":"clientHeight"]:0,te=K((ie,_e)=>{F.current&&Z&&(F.current.style.position="absolute"),ie.style[Q]=V,f&&f(ie,_e)}),z=K((ie,_e)=>{const Ie=X();F.current&&Z&&(F.current.style.position="");const{duration:qe,easing:st}=t0({style:x,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const Pe=B.transitions.getAutoHeightDuration(Ie);ie.style.transitionDuration=`${Pe}ms`,W.current=Pe}else ie.style.transitionDuration=typeof qe=="string"?qe:`${qe}ms`;ie.style[Q]=`${Ie}px`,ie.style.transitionTimingFunction=st,g&&g(ie,_e)}),Te=K((ie,_e)=>{ie.style[Q]="auto",h&&h(ie,_e)}),be=K(ie=>{ie.style[Q]=`${X()}px`,b&&b(ie)}),ee=K(S),ye=K(ie=>{const _e=X(),{duration:Ie,easing:qe}=t0({style:x,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const st=B.transitions.getAutoHeightDuration(_e);ie.style.transitionDuration=`${st}ms`,W.current=st}else ie.style.transitionDuration=typeof Ie=="string"?Ie:`${Ie}ms`;ie.style[Q]=V,ie.style.transitionTimingFunction=qe,w&&w(ie)}),Oe=ie=>{k==="auto"&&L.start(W.current||0,ie),i&&i(H.current,ie)};return I.jsx(C,M({in:c,onEnter:te,onEntered:Te,onEntering:z,onExit:be,onExited:ee,onExiting:ye,addEndListener:Oe,nodeRef:H,timeout:k==="auto"?null:k},R,{children:(ie,_e)=>I.jsx(K4e,M({as:l,className:dt(D.root,s,{entered:D.entered,exited:!c&&V==="0px"&&D.hidden}[ie]),style:M({[Z?"minWidth":"minHeight"]:V},x),ownerState:M({},A,{state:ie}),ref:J},_e,{children:I.jsx(J4e,{ownerState:M({},A,{state:ie}),className:D.wrapper,ref:F,children:I.jsx(e_e,{ownerState:M({},A,{state:ie}),className:D.wrapperInner,children:a})})}))}))});Toe.muiSupportAuto=!0;const t_e=Toe;function n_e(e){return $t("MuiPaper",e)}Ft("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const r_e=["className","component","elevation","square","variant"],i_e=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Mt(a,n_e,i)},a_e=Re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return M({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&M({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Rn("#fff",wY(t.elevation))}, ${Rn("#fff",wY(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),s_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,u=at(r,r_e),c=M({},r,{component:a,elevation:s,square:o,variant:l}),f=i_e(c);return I.jsx(a_e,M({as:a,ownerState:c,className:dt(f.root,i),ref:n},u))}),Ts=s_e;function Nf(e){return typeof e=="string"}function KE(e,t,n){return e===void 0||Nf(e)?t:M({},t,{ownerState:M({},t.ownerState,n)})}function o_e(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const l_e={disableDefaultClasses:!1},u_e=N.createContext(l_e);function c_e(e){const{disableDefaultClasses:t}=N.useContext(u_e);return n=>t?"":e(n)}function T2(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function y0(e,t,n){return typeof e=="function"?e(t,n):e}function kY(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function d_e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const g=dt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),b=M({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=M({},n,i,r);return g.length>0&&(S.className=g),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:void 0}}const s=T2(M({},i,r)),o=kY(r),l=kY(i),u=t(s),c=dt(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f=M({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=M({},u,n,l,o);return c.length>0&&(h.className=c),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}const f_e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=at(e,f_e),o=a?{}:y0(r,i),{props:l,internalRef:u}=d_e(M({},s,{externalSlotProps:o})),c=Jn(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return KE(n,M({},l,{ref:c}),i)}function h_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:u}=e,[c,f]=N.useState(!1),h=dt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},b=dt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!o&&!c&&f(!0),N.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,u);return()=>{clearTimeout(S)}}},[l,o,u]),I.jsx("span",{className:h,style:g,children:I.jsx("span",{className:b})})}const rc=Ft("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),p_e=["center","classes","className"];let wR=e=>e,CY,AY,_Y,RY;const T8=550,m_e=80,g_e=Yx(CY||(CY=wR` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+a.message+` transform: scale(1); opacity: 0.3; } -`)),b_e=Yx(CY||(CY=OR` +`)),b_e=Yx(AY||(AY=wR` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+a.message+` 100% { opacity: 0; } -`)),y_e=Yx(AY||(AY=OR` +`)),y_e=Yx(_Y||(_Y=wR` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+a.message+` 100% { transform: scale(1); } -`)),v_e=Re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),O_e=Re(h_e,{name:"MuiTouchRipple",slot:"Ripple"})(_Y||(_Y=OR` +`)),v_e=Re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),O_e=Re(h_e,{name:"MuiTouchRipple",slot:"Ripple"})(RY||(RY=wR` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+a.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),rc.rippleVisible,g_e,w8,({theme:e})=>e.transitions.easing.easeInOut,rc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,rc.child,rc.childLeaving,b_e,w8,({theme:e})=>e.transitions.easing.easeInOut,rc.childPulsate,y_e,({theme:e})=>e.transitions.easing.easeInOut),S_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=at(r,p_e),[l,u]=N.useState([]),c=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=N.useRef(!1),g=Ig(),b=N.useRef(null),S=N.useRef(null),E=N.useCallback(C=>{const{pulsate:R,rippleX:A,rippleY:D,rippleSize:B,cb:L}=C;u(F=>[...F,I.jsx(O_e,{classes:{ripple:ft(a.ripple,rc.ripple),rippleVisible:ft(a.rippleVisible,rc.rippleVisible),ripplePulsate:ft(a.ripplePulsate,rc.ripplePulsate),child:ft(a.child,rc.child),childLeaving:ft(a.childLeaving,rc.childLeaving),childPulsate:ft(a.childPulsate,rc.childPulsate)},timeout:w8,pulsate:R,rippleX:A,rippleY:D,rippleSize:B},c.current)]),c.current+=1,f.current=L},[a]),w=N.useCallback((C={},R={},A=()=>{})=>{const{pulsate:D=!1,center:B=i||R.pulsate,fakeElement:L=!1}=R;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const F=L?null:S.current,W=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,Z,Q;if(B||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)V=Math.round(W.width/2),Z=Math.round(W.height/2);else{const{clientX:H,clientY:J}=C.touches&&C.touches.length>0?C.touches[0]:C;V=Math.round(H-W.left),Z=Math.round(J-W.top)}if(B)Q=Math.sqrt((2*W.width**2+W.height**2)/3),Q%2===0&&(Q+=1);else{const H=Math.max(Math.abs((F?F.clientWidth:0)-V),V)*2+2,J=Math.max(Math.abs((F?F.clientHeight:0)-Z),Z)*2+2;Q=Math.sqrt(H**2+J**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{E({pulsate:D,rippleX:V,rippleY:Z,rippleSize:Q,cb:A})},g.start(m_e,()=>{b.current&&(b.current(),b.current=null)})):E({pulsate:D,rippleX:V,rippleY:Z,rippleSize:Q,cb:A})},[i,E,g]),x=N.useCallback(()=>{w({},{pulsate:!0})},[w]),k=N.useCallback((C,R)=>{if(g.clear(),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{k(C,R)});return}b.current=null,u(A=>A.length>0?A.slice(1):A),f.current=R},[g]);return N.useImperativeHandle(n,()=>({pulsate:x,start:w,stop:k}),[x,w,k]),I.jsx(v_e,M({className:ft(rc.root,a.root,s),ref:S},o,{children:I.jsx(tF,{component:null,exit:!0,children:l})}))}),E_e=S_e;function w_e(e){return Bt("MuiButtonBase",e)}const x_e=Ut("MuiButtonBase",["root","disabled","focusVisible"]),T_e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],k_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=Lt({root:["root",t&&"disabled",n&&"focusVisible"]},w_e,i);return n&&r&&(s.root+=` ${r}`),s},C_e=Re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${x_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),A_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:g="a",onBlur:b,onClick:S,onContextMenu:E,onDragLeave:w,onFocus:x,onFocusVisible:k,onKeyDown:C,onKeyUp:R,onMouseDown:A,onMouseLeave:D,onMouseUp:B,onTouchEnd:L,onTouchMove:F,onTouchStart:W,tabIndex:V=0,TouchRippleProps:Z,touchRippleRef:Q,type:H}=r,J=at(r,T_e),K=N.useRef(null),X=N.useRef(null),te=Jn(X,Q),{isFocusVisibleRef:z,onFocus:Te,onBlur:be,ref:ee}=oR(),[ye,Oe]=N.useState(!1);u&&ye&&Oe(!1),N.useImperativeHandle(i,()=>({focusVisible:()=>{Oe(!0),K.current.focus()}}),[]);const[ie,_e]=N.useState(!1);N.useEffect(()=>{_e(!0)},[]);const Ie=ie&&!c&&!u;N.useEffect(()=>{ye&&h&&!c&&ie&&X.current.pulsate()},[c,h,ye,ie]);function qe($e,vt,Wt=f){return on(Kt=>(vt&&vt(Kt),!Wt&&X.current&&X.current[$e](Kt),!0))}const st=qe("start",A),Pe=qe("stop",E),tt=qe("stop",w),Ve=qe("stop",B),Xe=qe("stop",$e=>{ye&&$e.preventDefault(),D&&D($e)}),et=qe("start",W),dt=qe("stop",L),At=qe("stop",F),Je=qe("stop",$e=>{be($e),z.current===!1&&Oe(!1),b&&b($e)},!1),pe=on($e=>{K.current||(K.current=$e.currentTarget),Te($e),z.current===!0&&(Oe(!0),k&&k($e)),x&&x($e)}),le=()=>{const $e=K.current;return l&&l!=="button"&&!($e.tagName==="A"&&$e.href)},he=N.useRef(!1),je=on($e=>{h&&!he.current&&ye&&X.current&&$e.key===" "&&(he.current=!0,X.current.stop($e,()=>{X.current.start($e)})),$e.target===$e.currentTarget&&le()&&$e.key===" "&&$e.preventDefault(),C&&C($e),$e.target===$e.currentTarget&&le()&&$e.key==="Enter"&&!u&&($e.preventDefault(),S&&S($e))}),Ze=on($e=>{h&&$e.key===" "&&X.current&&ye&&!$e.defaultPrevented&&(he.current=!1,X.current.stop($e,()=>{X.current.pulsate($e)})),R&&R($e),S&&$e.target===$e.currentTarget&&le()&&$e.key===" "&&!$e.defaultPrevented&&S($e)});let We=l;We==="button"&&(J.href||J.to)&&(We=g);const fe={};We==="button"?(fe.type=H===void 0?"button":H,fe.disabled=u):(!J.href&&!J.to&&(fe.role="button"),u&&(fe["aria-disabled"]=u));const xe=Jn(n,ee,K),ve=M({},r,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:h,tabIndex:V,focusVisible:ye}),De=k_e(ve);return I.jsxs(C_e,M({as:We,className:ft(De.root,o),ownerState:ve,onBlur:Je,onClick:S,onContextMenu:Pe,onFocus:pe,onKeyDown:je,onKeyUp:Ze,onMouseDown:st,onMouseLeave:Xe,onMouseUp:Ve,onDragLeave:tt,onTouchEnd:dt,onTouchMove:At,onTouchStart:et,ref:xe,tabIndex:u?-1:V,type:H},fe,J,{children:[s,Ie?I.jsx(E_e,M({ref:te,center:a},Z)):null]}))}),Tu=A_e;function __e(e){return Bt("MuiIconButton",e)}const R_e=Ut("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),I_e=["edge","children","className","color","disabled","disableFocusRipple","size"],D_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ht(r)}`,i&&`edge${ht(i)}`,`size${ht(a)}`]};return Lt(s,__e,t)},N_e=Re(Tu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ht(n.color)}`],n.edge&&t[`edge${ht(n.edge)}`],t[`size${ht(n.size)}`]]}})(({theme:e,ownerState:t})=>M({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return M({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&M({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":M({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${R_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),P_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=at(r,I_e),h=M({},r,{edge:i,color:o,disabled:l,disableFocusRipple:u,size:c}),g=D_e(h);return I.jsx(N_e,M({className:ft(g.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:h},f,{children:a}))}),wa=P_e,M_e=Wa(I.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function L_e(e){return Bt("MuiTypography",e)}Ut("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],F_e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${ht(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Lt(o,L_e,s)},B_e=Re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ht(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>M({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),RY={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},U_e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},z_e=e=>U_e[e]||e,j_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTypography"}),i=z_e(r.color),a=bR(M({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:h="body1",variantMapping:g=RY}=a,b=at(a,$_e),S=M({},a,{align:s,color:i,className:o,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:h,variantMapping:g}),E=l||(f?"p":g[h]||RY[h])||"span",w=F_e(S);return I.jsx(B_e,M({as:E,ref:n,ownerState:S,className:ft(w.root,o)},b))}),xr=j_e;function H_e(e){return Bt("MuiAppBar",e)}Ut("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const V_e=["className","color","enableColorOnDark","position"],W_e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ht(t)}`,`position${ht(n)}`]};return Lt(i,H_e,r)},$C=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Q_e=Re(Zs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ht(n.position)}`],t[`color${ht(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return M({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&M({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&M({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&M({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:$C(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:$C(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:$C(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:$C(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),q_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=at(r,V_e),u=M({},r,{color:a,position:o,enableColorOnDark:s}),c=W_e(u);return I.jsx(Q_e,M({square:!0,component:"header",ownerState:u,elevation:4,className:ft(c.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))}),Toe=q_e,koe="base";function G_e(e){return`${koe}--${e}`}function Y_e(e,t){return`${koe}-${e}-${t}`}function Coe(e,t){const n=doe[t];return n?G_e(n):Y_e(e,t)}function Z_e(e,t){const n={};return t.forEach(r=>{n[r]=Coe(e,r)}),n}function IY(e){return e.substring(2).toLowerCase()}function X_e(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=Jn(t.ref,o),f=on(b=>{const S=u.current;u.current=!1;const E=Ei(o.current);if(!l.current||!o.current||"clientX"in b&&X_e(b,E))return;if(s.current){s.current=!1;return}let w;b.composedPath?w=b.composedPath().indexOf(o.current)>-1:w=!E.documentElement.contains(b.target)||o.current.contains(b.target),!w&&(n||!S)&&i(b)}),h=b=>S=>{u.current=!0;const E=t.props[b];E&&E(S)},g={ref:c};return a!==!1&&(g[a]=h(a)),N.useEffect(()=>{if(a!==!1){const b=IY(a),S=Ei(o.current),E=()=>{s.current=!0};return S.addEventListener(b,f),S.addEventListener("touchmove",E),()=>{S.removeEventListener(b,f),S.removeEventListener("touchmove",E)}}},[f,a]),r!==!1&&(g[r]=h(r)),N.useEffect(()=>{if(r!==!1){const b=IY(r),S=Ei(o.current);return S.addEventListener(b,f),()=>{S.removeEventListener(b,f)}}},[f,r]),I.jsx(N.Fragment,{children:N.cloneElement(t,g)})}const J_e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function e3e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function t3e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function n3e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||t3e(e))}function r3e(e){const t=[],n=[];return Array.from(e.querySelectorAll(J_e)).forEach((r,i)=>{const a=e3e(r);a===-1||!n3e(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function i3e(){return!0}function Aoe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=r3e,isEnabled:s=i3e,open:o}=e,l=N.useRef(!1),u=N.useRef(null),c=N.useRef(null),f=N.useRef(null),h=N.useRef(null),g=N.useRef(!1),b=N.useRef(null),S=Jn(t.ref,b),E=N.useRef(null);N.useEffect(()=>{!o||!b.current||(g.current=!n)},[n,o]),N.useEffect(()=>{if(!o||!b.current)return;const k=Ei(b.current);return b.current.contains(k.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[o]),N.useEffect(()=>{if(!o||!b.current)return;const k=Ei(b.current),C=D=>{E.current=D,!(r||!s()||D.key!=="Tab")&&k.activeElement===b.current&&D.shiftKey&&(l.current=!0,c.current&&c.current.focus())},R=()=>{const D=b.current;if(D===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(D.contains(k.activeElement)||r&&k.activeElement!==u.current&&k.activeElement!==c.current)return;if(k.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let B=[];if((k.activeElement===u.current||k.activeElement===c.current)&&(B=a(b.current)),B.length>0){var L,F;const W=!!((L=E.current)!=null&&L.shiftKey&&((F=E.current)==null?void 0:F.key)==="Tab"),V=B[0],Z=B[B.length-1];typeof V!="string"&&typeof Z!="string"&&(W?Z.focus():V.focus())}else D.focus()};k.addEventListener("focusin",R),k.addEventListener("keydown",C,!0);const A=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(A),k.removeEventListener("focusin",R),k.removeEventListener("keydown",C,!0)}},[n,r,i,s,o,a]);const w=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0,h.current=k.target;const C=t.props.onFocus;C&&C(k)},x=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0};return I.jsxs(N.Fragment,{children:[I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:S,onFocus:w}),I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:c,"data-testid":"sentinelEnd"})]})}var Tl="top",kc="bottom",Cc="right",kl="left",rF="auto",rT=[Tl,kc,Cc,kl],Vv="start",Aw="end",a3e="clippingParents",_oe="viewport",dE="popper",s3e="reference",DY=rT.reduce(function(e,t){return e.concat([t+"-"+Vv,t+"-"+Aw])},[]),Roe=[].concat(rT,[rF]).reduce(function(e,t){return e.concat([t,t+"-"+Vv,t+"-"+Aw])},[]),o3e="beforeRead",l3e="read",u3e="afterRead",c3e="beforeMain",d3e="main",f3e="afterMain",h3e="beforeWrite",p3e="write",m3e="afterWrite",g3e=[o3e,l3e,u3e,c3e,d3e,f3e,h3e,p3e,m3e];function zf(e){return e?(e.nodeName||"").toLowerCase():null}function ku(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function u1(e){var t=ku(e).Element;return e instanceof t||e instanceof Element}function yc(e){var t=ku(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function iF(e){if(typeof ShadowRoot>"u")return!1;var t=ku(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function b3e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!yc(a)||!zf(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function y3e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,u){return l[u]="",l},{});!yc(i)||!zf(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const v3e={name:"applyStyles",enabled:!0,phase:"write",fn:b3e,effect:y3e,requires:["computeStyles"]};function Pf(e){return e.split("-")[0]}var Jg=Math.max,H_=Math.min,Wv=Math.round;function x8(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ioe(){return!/^((?!chrome|android).)*safari/i.test(x8())}function Qv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&yc(e)&&(i=e.offsetWidth>0&&Wv(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Wv(r.height)/e.offsetHeight||1);var s=u1(e)?ku(e):window,o=s.visualViewport,l=!Ioe()&&n,u=(r.left+(l&&o?o.offsetLeft:0))/i,c=(r.top+(l&&o?o.offsetTop:0))/a,f=r.width/i,h=r.height/a;return{width:f,height:h,top:c,right:u+f,bottom:c+h,left:u,x:u,y:c}}function aF(e){var t=Qv(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Doe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iF(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ep(e){return ku(e).getComputedStyle(e)}function O3e(e){return["table","td","th"].indexOf(zf(e))>=0}function v0(e){return((u1(e)?e.ownerDocument:e.document)||window.document).documentElement}function SR(e){return zf(e)==="html"?e:e.assignedSlot||e.parentNode||(iF(e)?e.host:null)||v0(e)}function NY(e){return!yc(e)||ep(e).position==="fixed"?null:e.offsetParent}function S3e(e){var t=/firefox/i.test(x8()),n=/Trident/i.test(x8());if(n&&yc(e)){var r=ep(e);if(r.position==="fixed")return null}var i=SR(e);for(iF(i)&&(i=i.host);yc(i)&&["html","body"].indexOf(zf(i))<0;){var a=ep(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function iT(e){for(var t=ku(e),n=NY(e);n&&O3e(n)&&ep(n).position==="static";)n=NY(n);return n&&(zf(n)==="html"||zf(n)==="body"&&ep(n).position==="static")?t:n||S3e(e)||t}function sF(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function k2(e,t,n){return Jg(e,H_(t,n))}function E3e(e,t,n){var r=k2(e,t,n);return r>n?n:r}function Noe(){return{top:0,right:0,bottom:0,left:0}}function Poe(e){return Object.assign({},Noe(),e)}function Moe(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var w3e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Poe(typeof t!="number"?t:Moe(t,rT))};function x3e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Pf(n.placement),l=sF(o),u=[kl,Cc].indexOf(o)>=0,c=u?"height":"width";if(!(!a||!s)){var f=w3e(i.padding,n),h=aF(a),g=l==="y"?Tl:kl,b=l==="y"?kc:Cc,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],E=s[l]-n.rects.reference[l],w=iT(a),x=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,k=S/2-E/2,C=f[g],R=x-h[c]-f[b],A=x/2-h[c]/2+k,D=k2(C,A,R),B=l;n.modifiersData[r]=(t={},t[B]=D,t.centerOffset=D-A,t)}}function T3e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Doe(t.elements.popper,i)&&(t.elements.arrow=i))}const k3e={name:"arrow",enabled:!0,phase:"main",fn:x3e,effect:T3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qv(e){return e.split("-")[1]}var C3e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function A3e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Wv(n*i)/i||0,y:Wv(r*i)/i||0}}function PY(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,h=s.x,g=h===void 0?0:h,b=s.y,S=b===void 0?0:b,E=typeof c=="function"?c({x:g,y:S}):{x:g,y:S};g=E.x,S=E.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=kl,C=Tl,R=window;if(u){var A=iT(n),D="clientHeight",B="clientWidth";if(A===ku(n)&&(A=v0(n),ep(A).position!=="static"&&o==="absolute"&&(D="scrollHeight",B="scrollWidth")),A=A,i===Tl||(i===kl||i===Cc)&&a===Aw){C=kc;var L=f&&A===R&&R.visualViewport?R.visualViewport.height:A[D];S-=L-r.height,S*=l?1:-1}if(i===kl||(i===Tl||i===kc)&&a===Aw){k=Cc;var F=f&&A===R&&R.visualViewport?R.visualViewport.width:A[B];g-=F-r.width,g*=l?1:-1}}var W=Object.assign({position:o},u&&C3e),V=c===!0?A3e({x:g,y:S},ku(n)):{x:g,y:S};if(g=V.x,S=V.y,l){var Z;return Object.assign({},W,(Z={},Z[C]=x?"0":"",Z[k]=w?"0":"",Z.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",Z))}return Object.assign({},W,(t={},t[C]=x?S+"px":"",t[k]=w?g+"px":"",t.transform="",t))}function _3e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:Pf(t.placement),variation:qv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,PY(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,PY(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const R3e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_3e,data:{}};var FC={passive:!0};function I3e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=ku(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",n.update,FC)}),o&&l.addEventListener("resize",n.update,FC),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",n.update,FC)}),o&&l.removeEventListener("resize",n.update,FC)}}const D3e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I3e,data:{}};var N3e={left:"right",right:"left",bottom:"top",top:"bottom"};function O4(e){return e.replace(/left|right|bottom|top/g,function(t){return N3e[t]})}var P3e={start:"end",end:"start"};function MY(e){return e.replace(/start|end/g,function(t){return P3e[t]})}function oF(e){var t=ku(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lF(e){return Qv(v0(e)).left+oF(e).scrollLeft}function M3e(e,t){var n=ku(e),r=v0(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=Ioe();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+lF(e),y:l}}function L3e(e){var t,n=v0(e),r=oF(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Jg(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Jg(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+lF(e),l=-r.scrollTop;return ep(i||n).direction==="rtl"&&(o+=Jg(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function uF(e){var t=ep(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Loe(e){return["html","body","#document"].indexOf(zf(e))>=0?e.ownerDocument.body:yc(e)&&uF(e)?e:Loe(SR(e))}function C2(e,t){var n;t===void 0&&(t=[]);var r=Loe(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ku(r),s=i?[a].concat(a.visualViewport||[],uF(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(C2(SR(s)))}function T8(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $3e(e,t){var n=Qv(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function LY(e,t,n){return t===_oe?T8(M3e(e,n)):u1(t)?$3e(t,n):T8(L3e(v0(e)))}function F3e(e){var t=C2(SR(e)),n=["absolute","fixed"].indexOf(ep(e).position)>=0,r=n&&yc(e)?iT(e):e;return u1(r)?t.filter(function(i){return u1(i)&&Doe(i,r)&&zf(i)!=="body"}):[]}function B3e(e,t,n,r){var i=t==="clippingParents"?F3e(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,u){var c=LY(e,u,r);return l.top=Jg(c.top,l.top),l.right=H_(c.right,l.right),l.bottom=H_(c.bottom,l.bottom),l.left=Jg(c.left,l.left),l},LY(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function $oe(e){var t=e.reference,n=e.element,r=e.placement,i=r?Pf(r):null,a=r?qv(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case Tl:l={x:s,y:t.y-n.height};break;case kc:l={x:s,y:t.y+t.height};break;case Cc:l={x:t.x+t.width,y:o};break;case kl:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?sF(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case Vv:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Aw:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function _w(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?a3e:o,u=n.rootBoundary,c=u===void 0?_oe:u,f=n.elementContext,h=f===void 0?dE:f,g=n.altBoundary,b=g===void 0?!1:g,S=n.padding,E=S===void 0?0:S,w=Poe(typeof E!="number"?E:Moe(E,rT)),x=h===dE?s3e:dE,k=e.rects.popper,C=e.elements[b?x:h],R=B3e(u1(C)?C:C.contextElement||v0(e.elements.popper),l,c,s),A=Qv(e.elements.reference),D=$oe({reference:A,element:k,strategy:"absolute",placement:i}),B=T8(Object.assign({},k,D)),L=h===dE?B:A,F={top:R.top-L.top+w.top,bottom:L.bottom-R.bottom+w.bottom,left:R.left-L.left+w.left,right:L.right-R.right+w.right},W=e.modifiersData.offset;if(h===dE&&W){var V=W[i];Object.keys(F).forEach(function(Z){var Q=[Cc,kc].indexOf(Z)>=0?1:-1,H=[Tl,kc].indexOf(Z)>=0?"y":"x";F[Z]+=V[H]*Q})}return F}function U3e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Roe:l,c=qv(r),f=c?o?DY:DY.filter(function(b){return qv(b)===c}):rT,h=f.filter(function(b){return u.indexOf(b)>=0});h.length===0&&(h=f);var g=h.reduce(function(b,S){return b[S]=_w(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[Pf(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function z3e(e){if(Pf(e)===rF)return[];var t=O4(e);return[MY(e),t,MY(t)]}function j3e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,S=n.allowedAutoPlacements,E=t.options.placement,w=Pf(E),x=w===E,k=l||(x||!b?[O4(E)]:z3e(E)),C=[E].concat(k).reduce(function(ye,Oe){return ye.concat(Pf(Oe)===rF?U3e(t,{placement:Oe,boundary:c,rootBoundary:f,padding:u,flipVariations:b,allowedAutoPlacements:S}):Oe)},[]),R=t.rects.reference,A=t.rects.popper,D=new Map,B=!0,L=C[0],F=0;F=0,H=Q?"width":"height",J=_w(t,{placement:W,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),K=Q?Z?Cc:kl:Z?kc:Tl;R[H]>A[H]&&(K=O4(K));var X=O4(K),te=[];if(a&&te.push(J[V]<=0),o&&te.push(J[K]<=0,J[X]<=0),te.every(function(ye){return ye})){L=W,B=!1;break}D.set(W,te)}if(B)for(var z=b?3:1,Te=function(Oe){var ie=C.find(function(_e){var Ie=D.get(_e);if(Ie)return Ie.slice(0,Oe).every(function(qe){return qe})});if(ie)return L=ie,"break"},be=z;be>0;be--){var ee=Te(be);if(ee==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const H3e={name:"flip",enabled:!0,phase:"main",fn:j3e,requiresIfExists:["offset"],data:{_skip:!1}};function $Y(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function FY(e){return[Tl,Cc,kc,kl].some(function(t){return e[t]>=0})}function V3e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=_w(t,{elementContext:"reference"}),o=_w(t,{altBoundary:!0}),l=$Y(s,r),u=$Y(o,i,a),c=FY(l),f=FY(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const W3e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V3e};function Q3e(e,t,n){var r=Pf(e),i=[kl,Tl].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[kl,Cc].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function q3e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=Roe.reduce(function(c,f){return c[f]=Q3e(f,t.rects,a),c},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const G3e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:q3e};function Y3e(e){var t=e.state,n=e.name;t.modifiersData[n]=$oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Z3e={name:"popperOffsets",enabled:!0,phase:"read",fn:Y3e,data:{}};function X3e(e){return e==="x"?"y":"x"}function K3e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,b=n.tetherOffset,S=b===void 0?0:b,E=_w(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),w=Pf(t.placement),x=qv(t.placement),k=!x,C=sF(w),R=X3e(C),A=t.modifiersData.popperOffsets,D=t.rects.reference,B=t.rects.popper,L=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,F=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(A){if(a){var Z,Q=C==="y"?Tl:kl,H=C==="y"?kc:Cc,J=C==="y"?"height":"width",K=A[C],X=K+E[Q],te=K-E[H],z=g?-B[J]/2:0,Te=x===Vv?D[J]:B[J],be=x===Vv?-B[J]:-D[J],ee=t.elements.arrow,ye=g&&ee?aF(ee):{width:0,height:0},Oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Noe(),ie=Oe[Q],_e=Oe[H],Ie=k2(0,D[J],ye[J]),qe=k?D[J]/2-z-Ie-ie-F.mainAxis:Te-Ie-ie-F.mainAxis,st=k?-D[J]/2+z+Ie+_e+F.mainAxis:be+Ie+_e+F.mainAxis,Pe=t.elements.arrow&&iT(t.elements.arrow),tt=Pe?C==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,Ve=(Z=W==null?void 0:W[C])!=null?Z:0,Xe=K+qe-Ve-tt,et=K+st-Ve,dt=k2(g?H_(X,Xe):X,K,g?Jg(te,et):te);A[C]=dt,V[C]=dt-K}if(o){var At,Je=C==="x"?Tl:kl,pe=C==="x"?kc:Cc,le=A[R],he=R==="y"?"height":"width",je=le+E[Je],Ze=le-E[pe],We=[Tl,kl].indexOf(w)!==-1,fe=(At=W==null?void 0:W[R])!=null?At:0,xe=We?je:le-D[he]-B[he]-fe+F.altAxis,ve=We?le+D[he]+B[he]-fe-F.altAxis:Ze,De=g&&We?E3e(xe,le,ve):k2(g?xe:je,le,g?ve:Ze);A[R]=De,V[R]=De-le}t.modifiersData[r]=V}}const J3e={name:"preventOverflow",enabled:!0,phase:"main",fn:K3e,requiresIfExists:["offset"]};function e5e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function t5e(e){return e===ku(e)||!yc(e)?oF(e):e5e(e)}function n5e(e){var t=e.getBoundingClientRect(),n=Wv(t.width)/e.offsetWidth||1,r=Wv(t.height)/e.offsetHeight||1;return n!==1||r!==1}function r5e(e,t,n){n===void 0&&(n=!1);var r=yc(t),i=yc(t)&&n5e(t),a=v0(t),s=Qv(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((zf(t)!=="body"||uF(a))&&(o=t5e(t)),yc(t)?(l=Qv(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=lF(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function i5e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function a5e(e){var t=i5e(e);return g3e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function s5e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function o5e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var BY={placement:"bottom",modifiers:[],strategy:"absolute"};function UY(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(d5e(i)||document.body)},[i,a]),la(()=>{if(s&&!a)return Cw(n,s),()=>{Cw(n,null)}},[n,s,a]),a){if(N.isValidElement(r)){const u={ref:l};return N.cloneElement(r,u)}return I.jsx(N.Fragment,{children:r})}return I.jsx(N.Fragment,{children:s&&T1.createPortal(r,s)})}),Boe="Popper";function f5e(e){return Coe(Boe,e)}Z_e(Boe,["root"]);const h5e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],p5e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function m5e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function k8(e){return typeof e=="function"?e():e}function g5e(e){return e.nodeType!==void 0}const b5e=()=>Lt({root:["root"]},c_e(f5e)),y5e={},v5e=N.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:h,slotProps:g={},slots:b={},TransitionProps:S}=t,E=at(t,h5e),w=N.useRef(null),x=Jn(w,n),k=N.useRef(null),C=Jn(k,h),R=N.useRef(C);la(()=>{R.current=C},[C]),N.useImperativeHandle(h,()=>k.current,[]);const A=m5e(c,s),[D,B]=N.useState(A),[L,F]=N.useState(k8(i));N.useEffect(()=>{k.current&&k.current.forceUpdate()}),N.useEffect(()=>{i&&F(k8(i))},[i]),la(()=>{if(!L||!u)return;const H=X=>{B(X.placement)};let J=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{H(X)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const K=c5e(L,w.current,M({placement:A},f,{modifiers:J}));return R.current(K),()=>{K.destroy(),R.current(null)}},[L,o,l,u,f,A]);const W={placement:D};S!==null&&(W.TransitionProps=S);const V=b5e(),Z=(r=b.root)!=null?r:"div",Q=cr({elementType:Z,externalSlotProps:g.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:V.root});return I.jsx(Z,M({},Q,{children:typeof a=="function"?a(W):a}))}),O5e=N.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:h=y5e,popperRef:g,style:b,transition:S=!1,slotProps:E={},slots:w={}}=t,x=at(t,p5e),[k,C]=N.useState(!0),R=()=>{C(!1)},A=()=>{C(!0)};if(!l&&!c&&(!S||k))return null;let D;if(a)D=a;else if(r){const F=k8(r);D=F&&g5e(F)?Ei(F).body:Ei(null).body}const B=!c&&l&&(!S||k)?"none":void 0,L=S?{in:c,onEnter:R,onExited:A}:void 0;return I.jsx(Foe,{disablePortal:o,container:D,children:I.jsx(v5e,M({anchorEl:r,direction:s,disablePortal:o,modifiers:u,ref:n,open:S?!k:c,placement:f,popperOptions:h,popperRef:g,slotProps:E,slots:w},x,{style:M({position:"fixed",top:0,left:0,display:B},b),TransitionProps:L,children:i}))})});function S5e(e){const t=Ei(e);return t.body===e?Tc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function A2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zY(e){return parseInt(Tc(e).getComputedStyle(e).paddingRight,10)||0}function E5e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function jY(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!E5e(s);o&&l&&A2(s,i)})}function hN(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function w5e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(S5e(r)){const s=uoe(Ei(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${zY(r)+s}px`;const o=Ei(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${zY(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Ei(r).body;else{const s=r.parentElement,o=Tc(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function x5e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class T5e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&A2(t.modalRef,!1);const i=x5e(n);jY(n,t.mount,t.modalRef,i,!0);const a=hN(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=hN(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=w5e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=hN(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&A2(t.modalRef,n),jY(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&A2(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function k5e(e){return typeof e=="function"?e():e}function C5e(e){return e?e.props.hasOwnProperty("in"):!1}const A5e=new T5e;function _5e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=A5e,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:u,open:c,rootRef:f}=e,h=N.useRef({}),g=N.useRef(null),b=N.useRef(null),S=Jn(b,f),[E,w]=N.useState(!c),x=C5e(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const C=()=>Ei(g.current),R=()=>(h.current.modalRef=b.current,h.current.mount=g.current,h.current),A=()=>{i.mount(R(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},D=on(()=>{const J=k5e(t)||C().body;i.add(R(),J),b.current&&A()}),B=N.useCallback(()=>i.isTopModal(R()),[i]),L=on(J=>{g.current=J,J&&(c&&B()?A():b.current&&A2(b.current,k))}),F=N.useCallback(()=>{i.remove(R(),k)},[k,i]);N.useEffect(()=>()=>{F()},[F]),N.useEffect(()=>{c?D():(!x||!a)&&F()},[c,F,x,a,D]);const W=J=>K=>{var X;(X=J.onKeyDown)==null||X.call(J,K),!(K.key!=="Escape"||K.which===229||!B())&&(n||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},V=J=>K=>{var X;(X=J.onClick)==null||X.call(J,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(J={})=>{const K=T2(e);delete K.onTransitionEnter,delete K.onTransitionExited;const X=M({},K,J);return M({role:"presentation"},X,{onKeyDown:W(X),ref:S})},getBackdropProps:(J={})=>{const K=J;return M({"aria-hidden":!0},K,{onClick:V(K),open:c})},getTransitionProps:()=>{const J=()=>{w(!1),s&&s()},K=()=>{w(!0),o&&o(),a&&F()};return{onEnter:F_(J,l==null?void 0:l.props.onEnter),onExited:F_(K,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:L,isTopModal:B,exited:E,hasTransition:x}}const R5e=2;function Uoe(e,t){return e-t}function HY(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},M5e=e=>e;let jC;function WY(){return jC===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?jC=CSS.supports("touch-action","none"):jC=!0),jC}function L5e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:u,onChange:c,onChangeCommitted:f,orientation:h="horizontal",rootRef:g,scale:b=M5e,step:S=1,tabIndex:E,value:w}=e,x=N.useRef(),[k,C]=N.useState(-1),[R,A]=N.useState(-1),[D,B]=N.useState(!1),L=N.useRef(0),[F,W]=ws({controlled:w,default:n??l,name:"Slider"}),V=c&&((fe,xe,ve)=>{const De=fe.nativeEvent||fe,$e=new De.constructor(De.type,De);Object.defineProperty($e,"target",{writable:!0,value:{value:xe,name:u}}),c($e,xe,ve)}),Z=Array.isArray(F);let Q=Z?F.slice().sort(Uoe):[F];Q=Q.map(fe=>fe==null?l:ry(fe,l,o));const H=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((fe,xe)=>({value:l+S*xe})):s||[],J=H.map(fe=>fe.value),{isFocusVisibleRef:K,onBlur:X,onFocus:te,ref:z}=oR(),[Te,be]=N.useState(-1),ee=N.useRef(),ye=Jn(z,ee),Oe=Jn(g,ye),ie=fe=>xe=>{var ve;const De=Number(xe.currentTarget.getAttribute("data-index"));te(xe),K.current===!0&&be(De),A(De),fe==null||(ve=fe.onFocus)==null||ve.call(fe,xe)},_e=fe=>xe=>{var ve;X(xe),K.current===!1&&be(-1),A(-1),fe==null||(ve=fe.onBlur)==null||ve.call(fe,xe)};la(()=>{if(r&&ee.current.contains(document.activeElement)){var fe;(fe=document.activeElement)==null||fe.blur()}},[r]),r&&k!==-1&&C(-1),r&&Te!==-1&&be(-1);const Ie=fe=>xe=>{var ve;(ve=fe.onChange)==null||ve.call(fe,xe);const De=Number(xe.currentTarget.getAttribute("data-index")),$e=Q[De],vt=J.indexOf($e);let Wt=xe.target.valueAsNumber;if(H&&S==null){const Kt=J[J.length-1];Wt>Kt?Wt=Kt:Wt{const{current:ve}=ee,{width:De,height:$e,bottom:vt,left:Wt}=ve.getBoundingClientRect();let Kt;st.indexOf("vertical")===0?Kt=(vt-fe.y)/$e:Kt=(fe.x-Wt)/De,st.indexOf("-reverse")!==-1&&(Kt=1-Kt);let gt;if(gt=I5e(Kt,l,o),S)gt=N5e(gt,S,l);else{const ut=HY(J,gt);gt=J[ut]}gt=ry(gt,l,o);let Gt=0;if(Z){xe?Gt=qe.current:Gt=HY(Q,gt),i&&(gt=ry(gt,Q[Gt-1]||-1/0,Q[Gt+1]||1/0));const ut=gt;gt=VY({values:Q,newValue:gt,index:Gt}),i&&xe||(Gt=gt.indexOf(ut),qe.current=Gt)}return{newValue:gt,activeIndex:Gt}},tt=on(fe=>{const xe=BC(fe,x);if(!xe)return;if(L.current+=1,fe.type==="mousemove"&&fe.buttons===0){Ve(fe);return}const{newValue:ve,activeIndex:De}=Pe({finger:xe,move:!0});UC({sliderRef:ee,activeIndex:De,setActive:C}),W(ve),!D&&L.current>R5e&&B(!0),V&&!zC(ve,F)&&V(fe,ve,De)}),Ve=on(fe=>{const xe=BC(fe,x);if(B(!1),!xe)return;const{newValue:ve}=Pe({finger:xe,move:!0});C(-1),fe.type==="touchend"&&A(-1),f&&f(fe,ve),x.current=void 0,et()}),Xe=on(fe=>{if(r)return;WY()||fe.preventDefault();const xe=fe.changedTouches[0];xe!=null&&(x.current=xe.identifier);const ve=BC(fe,x);if(ve!==!1){const{newValue:$e,activeIndex:vt}=Pe({finger:ve});UC({sliderRef:ee,activeIndex:vt,setActive:C}),W($e),V&&!zC($e,F)&&V(fe,$e,vt)}L.current=0;const De=Ei(ee.current);De.addEventListener("touchmove",tt,{passive:!0}),De.addEventListener("touchend",Ve,{passive:!0})}),et=N.useCallback(()=>{const fe=Ei(ee.current);fe.removeEventListener("mousemove",tt),fe.removeEventListener("mouseup",Ve),fe.removeEventListener("touchmove",tt),fe.removeEventListener("touchend",Ve)},[Ve,tt]);N.useEffect(()=>{const{current:fe}=ee;return fe.addEventListener("touchstart",Xe,{passive:WY()}),()=>{fe.removeEventListener("touchstart",Xe),et()}},[et,Xe]),N.useEffect(()=>{r&&et()},[r,et]);const dt=fe=>xe=>{var ve;if((ve=fe.onMouseDown)==null||ve.call(fe,xe),r||xe.defaultPrevented||xe.button!==0)return;xe.preventDefault();const De=BC(xe,x);if(De!==!1){const{newValue:vt,activeIndex:Wt}=Pe({finger:De});UC({sliderRef:ee,activeIndex:Wt,setActive:C}),W(vt),V&&!zC(vt,F)&&V(xe,vt,Wt)}L.current=0;const $e=Ei(ee.current);$e.addEventListener("mousemove",tt,{passive:!0}),$e.addEventListener("mouseup",Ve)},At=V_(Z?Q[0]:l,l,o),Je=V_(Q[Q.length-1],l,o)-At,pe=(fe={})=>{const xe=T2(fe),ve={onMouseDown:dt(xe||{})},De=M({},xe,ve);return M({},fe,{ref:Oe},De)},le=fe=>xe=>{var ve;(ve=fe.onMouseOver)==null||ve.call(fe,xe);const De=Number(xe.currentTarget.getAttribute("data-index"));A(De)},he=fe=>xe=>{var ve;(ve=fe.onMouseLeave)==null||ve.call(fe,xe),A(-1)};return{active:k,axis:st,axisProps:P5e,dragging:D,focusedThumbIndex:Te,getHiddenInputProps:(fe={})=>{var xe;const ve=T2(fe),De={onChange:Ie(ve||{}),onFocus:ie(ve||{}),onBlur:_e(ve||{})},$e=M({},ve,De);return M({tabIndex:E,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":b(o),"aria-valuemin":b(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(xe=e.step)!=null?xe:void 0,disabled:r},fe,$e,{style:M({},SCe,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:pe,getThumbProps:(fe={})=>{const xe=T2(fe),ve={onMouseOver:le(xe||{}),onMouseLeave:he(xe||{})};return M({},fe,xe,ve)},marks:H,open:R,range:Z,rootRef:Oe,trackLeap:Je,trackOffset:At,values:Q,getThumbStyle:fe=>({pointerEvents:k!==-1&&k!==fe?"none":void 0})}}const $5e=["onChange","maxRows","minRows","style","value"];function HC(e){return parseInt(e,10)||0}const F5e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function QY(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const zoe=N.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=at(t,$5e),{current:u}=N.useRef(o!=null),c=N.useRef(null),f=Jn(n,c),h=N.useRef(null),g=N.useRef(0),[b,S]=N.useState({outerHeightStyle:0}),E=N.useCallback(()=>{const C=c.current,A=Tc(C).getComputedStyle(C);if(A.width==="0px")return{outerHeightStyle:0};const D=h.current;D.style.width=A.width,D.value=C.value||t.placeholder||"x",D.value.slice(-1)===` -`&&(D.value+=" ");const B=A.boxSizing,L=HC(A.paddingBottom)+HC(A.paddingTop),F=HC(A.borderBottomWidth)+HC(A.borderTopWidth),W=D.scrollHeight;D.value="x";const V=D.scrollHeight;let Z=W;a&&(Z=Math.max(Number(a)*V,Z)),i&&(Z=Math.min(Number(i)*V,Z)),Z=Math.max(Z,V);const Q=Z+(B==="border-box"?L+F:0),H=Math.abs(Z-W)<=1;return{outerHeightStyle:Q,overflow:H}},[i,a,t.placeholder]),w=(C,R)=>{const{outerHeightStyle:A,overflow:D}=R;return g.current<20&&(A>0&&Math.abs((C.outerHeightStyle||0)-A)>1||C.overflow!==D)?(g.current+=1,{overflow:D,outerHeightStyle:A}):C},x=N.useCallback(()=>{const C=E();QY(C)||S(R=>w(R,C))},[E]);la(()=>{const C=()=>{const W=E();QY(W)||T1.flushSync(()=>{S(V=>w(V,W))})},R=()=>{g.current=0,C()};let A;const D=SO(R),B=c.current,L=Tc(B);L.addEventListener("resize",D);let F;return typeof ResizeObserver<"u"&&(F=new ResizeObserver(R),F.observe(B)),()=>{D.clear(),cancelAnimationFrame(A),L.removeEventListener("resize",D),F&&F.disconnect()}},[E]),la(()=>{x()}),N.useEffect(()=>{g.current=0},[o]);const k=C=>{g.current=0,u||x(),r&&r(C)};return I.jsxs(N.Fragment,{children:[I.jsx("textarea",M({value:o,onChange:k,ref:f,rows:a,style:M({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},s)},l)),I.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:M({},F5e.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function qY(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function B5e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:u})=>{let c=s?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=qY(c));const f=c?o.filter(h=>{let g=(a||u)(h);return n&&(g=g.toLowerCase()),t&&(g=qY(g)),i==="start"?g.indexOf(c)===0:g.indexOf(c)>-1}):o;return typeof r=="number"?f.slice(0,r):f}}function pN(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function j5e(e){const{unstable_isActiveElementInListbox:t=z5e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:g,disabledItemsFocusable:b=!1,disableListWrap:S=!1,filterOptions:E=U5e,filterSelectedOptions:w=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:C,getOptionLabel:R=nt=>{var Be;return(Be=nt.label)!=null?Be:nt},groupBy:A,handleHomeEndKeys:D=!e.freeSolo,id:B,includeInputInList:L=!1,inputValue:F,isOptionEqualToValue:W=(nt,Be)=>nt===Be,multiple:V=!1,onChange:Z,onClose:Q,onHighlightChange:H,onInputChange:J,onOpen:K,open:X,openOnFocus:te=!1,options:z,readOnly:Te=!1,selectOnFocus:be=!e.freeSolo,value:ee}=e,ye=Td(B);let Oe=R;Oe=nt=>{const Be=R(nt);return typeof Be!="string"?String(Be):Be};const ie=N.useRef(!1),_e=N.useRef(!0),Ie=N.useRef(null),qe=N.useRef(null),[st,Pe]=N.useState(null),[tt,Ve]=N.useState(-1),Xe=i?0:-1,et=N.useRef(Xe),[dt,At]=ws({controlled:ee,default:c,name:u}),[Je,pe]=ws({controlled:F,default:"",name:u,state:"inputValue"}),[le,he]=N.useState(!1),je=N.useCallback((nt,Be)=>{if(!(V?dt.length!(w&&(V?dt:[dt]).some(Be=>Be!==null&&W(nt,Be)))),{inputValue:ve&&fe?"":Je,getOptionLabel:Oe}):[],vt=yCe({filteredOptions:$e,value:dt,inputValue:Je});N.useEffect(()=>{const nt=dt!==vt.value;le&&!nt||x&&!nt||je(null,dt)},[dt,je,le,vt.value,x]);const Wt=Ze&&$e.length>0&&!Te,Kt=on(nt=>{nt===-1?Ie.current.focus():st.querySelector(`[data-tag-index="${nt}"]`).focus()});N.useEffect(()=>{V&&tt>dt.length-1&&(Ve(-1),Kt(-1))},[dt,V,tt,Kt]);function gt(nt,Be){if(!qe.current||nt<0||nt>=$e.length)return-1;let Dt=nt;for(;;){const en=qe.current.querySelector(`[data-option-index="${Dt}"]`),Vn=b?!1:!en||en.disabled||en.getAttribute("aria-disabled")==="true";if(en&&en.hasAttribute("tabindex")&&!Vn)return Dt;if(Be==="next"?Dt=(Dt+1)%$e.length:Dt=(Dt-1+$e.length)%$e.length,Dt===nt)return-1}}const Gt=on(({event:nt,index:Be,reason:Dt="auto"})=>{if(et.current=Be,Be===-1?Ie.current.removeAttribute("aria-activedescendant"):Ie.current.setAttribute("aria-activedescendant",`${ye}-option-${Be}`),H&&H(nt,Be===-1?null:$e[Be],Dt),!qe.current)return;const en=qe.current.querySelector(`[role="option"].${n}-focused`);en&&(en.classList.remove(`${n}-focused`),en.classList.remove(`${n}-focusVisible`));let Vn=qe.current;if(qe.current.getAttribute("role")!=="listbox"&&(Vn=qe.current.parentElement.querySelector('[role="listbox"]')),!Vn)return;if(Be===-1){Vn.scrollTop=0;return}const Zr=qe.current.querySelector(`[data-option-index="${Be}"]`);if(Zr&&(Zr.classList.add(`${n}-focused`),Dt==="keyboard"&&Zr.classList.add(`${n}-focusVisible`),Vn.scrollHeight>Vn.clientHeight&&Dt!=="mouse"&&Dt!=="touch")){const Er=Zr,In=Vn.clientHeight+Vn.scrollTop,Wn=Er.offsetTop+Er.offsetHeight;Wn>In?Vn.scrollTop=Wn-Vn.clientHeight:Er.offsetTop-Er.offsetHeight*(A?1.3:0){if(!De)return;const Zr=gt((()=>{const Er=$e.length-1;if(Be==="reset")return Xe;if(Be==="start")return 0;if(Be==="end")return Er;const In=et.current+Be;return In<0?In===-1&&L?-1:S&&et.current!==-1||Math.abs(Be)>1?0:Er:In>Er?In===Er+1&&L?-1:S||Math.abs(Be)>1?Er:0:In})(),Dt);if(Gt({index:Zr,reason:en,event:nt}),r&&Be!=="reset")if(Zr===-1)Ie.current.value=Je;else{const Er=Oe($e[Zr]);Ie.current.value=Er,Er.toLowerCase().indexOf(Je.toLowerCase())===0&&Je.length>0&&Ie.current.setSelectionRange(Je.length,Er.length)}}),wt=()=>{const nt=(Be,Dt)=>{const en=Be?Oe(Be):"",Vn=Dt?Oe(Dt):"";return en===Vn};if(et.current!==-1&&vt.filteredOptions&&vt.filteredOptions.length!==$e.length&&vt.inputValue===Je&&(V?dt.length===vt.value.length&&vt.value.every((Be,Dt)=>Oe(dt[Dt])===Oe(Be)):nt(vt.value,dt))){const Be=vt.filteredOptions[et.current];if(Be&&$e.some(en=>Oe(en)===Oe(Be)))return!0}return!1},Xt=N.useCallback(()=>{if(!De||wt())return;const nt=V?dt[0]:dt;if($e.length===0||nt==null){ut({diff:"reset"});return}if(qe.current){if(nt!=null){const Be=$e[et.current];if(V&&Be&&pN(dt,en=>W(Be,en))!==-1)return;const Dt=pN($e,en=>W(en,nt));Dt===-1?ut({diff:"reset"}):Gt({index:Dt});return}if(et.current>=$e.length-1){Gt({index:$e.length-1});return}Gt({index:et.current})}},[$e.length,V?!1:dt,w,ut,Gt,De,Je,V]),Ln=on(nt=>{Cw(qe,nt),nt&&Xt()});N.useEffect(()=>{Xt()},[Xt]);const $n=nt=>{Ze||(We(!0),xe(!0),K&&K(nt))},jn=(nt,Be)=>{Ze&&(We(!1),Q&&Q(nt,Be))},ar=(nt,Be,Dt,en)=>{if(V){if(dt.length===Be.length&&dt.every((Vn,Zr)=>Vn===Be[Zr]))return}else if(dt===Be)return;Z&&Z(nt,Be,Dt,en),At(Be)},Ur=N.useRef(!1),Me=(nt,Be,Dt="selectOption",en="options")=>{let Vn=Dt,Zr=Be;if(V){Zr=Array.isArray(dt)?dt.slice():[];const Er=pN(Zr,In=>W(Be,In));Er===-1?Zr.push(Be):en!=="freeSolo"&&(Zr.splice(Er,1),Vn="removeOption")}je(nt,Zr),ar(nt,Zr,Vn,{option:Be}),!h&&(!nt||!nt.ctrlKey&&!nt.metaKey)&&jn(nt,Vn),(s===!0||s==="touch"&&Ur.current||s==="mouse"&&!Ur.current)&&Ie.current.blur()};function Ue(nt,Be){if(nt===-1)return-1;let Dt=nt;for(;;){if(Be==="next"&&Dt===dt.length||Be==="previous"&&Dt===-1)return-1;const en=st.querySelector(`[data-tag-index="${Dt}"]`);if(!en||!en.hasAttribute("tabindex")||en.disabled||en.getAttribute("aria-disabled")==="true")Dt+=Be==="next"?1:-1;else return Dt}}const lt=(nt,Be)=>{if(!V)return;Je===""&&jn(nt,"toggleInput");let Dt=tt;tt===-1?Je===""&&Be==="previous"&&(Dt=dt.length-1):(Dt+=Be==="next"?1:-1,Dt<0&&(Dt=0),Dt===dt.length&&(Dt=-1)),Dt=Ue(Dt,Be),Ve(Dt),Kt(Dt)},Nt=nt=>{ie.current=!0,pe(""),J&&J(nt,"","clear"),ar(nt,V?[]:null,"clear")},Qt=nt=>Be=>{if(nt.onKeyDown&&nt.onKeyDown(Be),!Be.defaultMuiPrevented&&(tt!==-1&&["ArrowLeft","ArrowRight"].indexOf(Be.key)===-1&&(Ve(-1),Kt(-1)),Be.which!==229))switch(Be.key){case"Home":De&&D&&(Be.preventDefault(),ut({diff:"start",direction:"next",reason:"keyboard",event:Be}));break;case"End":De&&D&&(Be.preventDefault(),ut({diff:"end",direction:"previous",reason:"keyboard",event:Be}));break;case"PageUp":Be.preventDefault(),ut({diff:-GY,direction:"previous",reason:"keyboard",event:Be}),$n(Be);break;case"PageDown":Be.preventDefault(),ut({diff:GY,direction:"next",reason:"keyboard",event:Be}),$n(Be);break;case"ArrowDown":Be.preventDefault(),ut({diff:1,direction:"next",reason:"keyboard",event:Be}),$n(Be);break;case"ArrowUp":Be.preventDefault(),ut({diff:-1,direction:"previous",reason:"keyboard",event:Be}),$n(Be);break;case"ArrowLeft":lt(Be,"previous");break;case"ArrowRight":lt(Be,"next");break;case"Enter":if(et.current!==-1&&De){const Dt=$e[et.current],en=k?k(Dt):!1;if(Be.preventDefault(),en)return;Me(Be,Dt,"selectOption"),r&&Ie.current.setSelectionRange(Ie.current.value.length,Ie.current.value.length)}else x&&Je!==""&&ve===!1&&(V&&Be.preventDefault(),Me(Be,Je,"createOption","freeSolo"));break;case"Escape":De?(Be.preventDefault(),Be.stopPropagation(),jn(Be,"escape")):l&&(Je!==""||V&&dt.length>0)&&(Be.preventDefault(),Be.stopPropagation(),Nt(Be));break;case"Backspace":if(V&&!Te&&Je===""&&dt.length>0){const Dt=tt===-1?dt.length-1:tt,en=dt.slice();en.splice(Dt,1),ar(Be,en,"removeOption",{option:dt[Dt]})}break;case"Delete":if(V&&!Te&&Je===""&&dt.length>0&&tt!==-1){const Dt=tt,en=dt.slice();en.splice(Dt,1),ar(Be,en,"removeOption",{option:dt[Dt]})}break}},Hn=nt=>{he(!0),te&&!ie.current&&$n(nt)},yn=nt=>{if(t(qe)){Ie.current.focus();return}he(!1),_e.current=!0,ie.current=!1,a&&et.current!==-1&&De?Me(nt,$e[et.current],"blur"):a&&x&&Je!==""?Me(nt,Je,"blur","freeSolo"):o&&je(nt,dt),jn(nt,"blur")},rn=nt=>{const Be=nt.target.value;Je!==Be&&(pe(Be),xe(!1),J&&J(nt,Be,"input")),Be===""?!f&&!V&&ar(nt,null,"clear"):$n(nt)},Yt=nt=>{const Be=Number(nt.currentTarget.getAttribute("data-option-index"));et.current!==Be&&Gt({event:nt,index:Be,reason:"mouse"})},xn=nt=>{Gt({event:nt,index:Number(nt.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ur.current=!0},Qe=nt=>{const Be=Number(nt.currentTarget.getAttribute("data-option-index"));Me(nt,$e[Be],"selectOption"),Ur.current=!1},Ye=nt=>Be=>{const Dt=dt.slice();Dt.splice(nt,1),ar(Be,Dt,"removeOption",{option:dt[nt]})},ot=nt=>{Ze?jn(nt,"toggleInput"):$n(nt)},yt=nt=>{nt.currentTarget.contains(nt.target)&&nt.target.getAttribute("id")!==ye&&nt.preventDefault()},Yn=nt=>{nt.currentTarget.contains(nt.target)&&(Ie.current.focus(),be&&_e.current&&Ie.current.selectionEnd-Ie.current.selectionStart===0&&Ie.current.select(),_e.current=!1)},pn=nt=>{!g&&(Je===""||!Ze)&&ot(nt)};let Fn=x&&Je.length>0;Fn=Fn||(V?dt.length>0:dt!==null);let Pi=$e;return A&&(Pi=$e.reduce((nt,Be,Dt)=>{const en=A(Be);return nt.length>0&&nt[nt.length-1].group===en?nt[nt.length-1].options.push(Be):nt.push({key:Dt,index:Dt,group:en,options:[Be]}),nt},[])),g&&le&&yn(),{getRootProps:(nt={})=>M({"aria-owns":Wt?`${ye}-listbox`:null},nt,{onKeyDown:Qt(nt),onMouseDown:yt,onClick:Yn}),getInputLabelProps:()=>({id:`${ye}-label`,htmlFor:ye}),getInputProps:()=>({id:ye,value:Je,onBlur:yn,onFocus:Hn,onChange:rn,onMouseDown:pn,"aria-activedescendant":De?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Wt?`${ye}-listbox`:void 0,"aria-expanded":Wt,autoComplete:"off",ref:Ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Nt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ot}),getTagProps:({index:nt})=>M({key:nt,"data-tag-index":nt,tabIndex:-1},!Te&&{onDelete:Ye(nt)}),getListboxProps:()=>({role:"listbox",id:`${ye}-listbox`,"aria-labelledby":`${ye}-label`,ref:Ln,onMouseDown:nt=>{nt.preventDefault()}}),getOptionProps:({index:nt,option:Be})=>{var Dt;const en=(V?dt:[dt]).some(Zr=>Zr!=null&&W(Be,Zr)),Vn=k?k(Be):!1;return{key:(Dt=C==null?void 0:C(Be))!=null?Dt:Oe(Be),tabIndex:-1,role:"option",id:`${ye}-option-${nt}`,onMouseMove:Yt,onClick:Qe,onTouchStart:xn,"data-option-index":nt,"aria-disabled":Vn,"aria-selected":en}},id:ye,inputValue:Je,value:dt,dirty:Fn,expanded:De&&st,popupOpen:De,focused:le||tt!==-1,anchorEl:st,setAnchorEl:Pe,focusedTag:tt,groupedOptions:Pi}}const H5e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],V5e=Re(O5e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W5e=N.forwardRef(function(t,n){var r;const i=gR(),a=_t({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:h,modifiers:g,open:b,placement:S,popperOptions:E,popperRef:w,transition:x,slots:k,slotProps:C}=a,R=at(a,H5e),A=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,D=M({anchorEl:s,container:c,disablePortal:f,keepMounted:h,modifiers:g,open:b,placement:S,popperOptions:E,popperRef:w,transition:x},R);return I.jsx(V5e,M({as:o,direction:i==null?void 0:i.direction,slots:{root:A},slotProps:C??u},D,{ref:n}))}),wO=W5e;function Q5e(e){return Bt("MuiListSubheader",e)}Ut("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const q5e=["className","color","component","disableGutters","disableSticky","inset"],G5e=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${ht(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return Lt(s,Q5e,t)},Y5e=Re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ht(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>M({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),joe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:u=!1}=r,c=at(r,q5e),f=M({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:u}),h=G5e(f);return I.jsx(Y5e,M({as:s,className:ft(h.root,i),ref:n,ownerState:f},c))});joe.muiSkipListHighlight=!0;const Z5e=joe,X5e=Wa(I.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function K5e(e){return Bt("MuiChip",e)}const J5e=Ut("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Xr=J5e,eRe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],tRe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,u={root:["root",l,n&&"disabled",`size${ht(r)}`,`color${ht(i)}`,o&&"clickable",o&&`clickableColor${ht(i)}`,s&&"deletable",s&&`deletableColor${ht(i)}`,`${l}${ht(i)}`],label:["label",`label${ht(r)}`],avatar:["avatar",`avatar${ht(r)}`,`avatarColor${ht(i)}`],icon:["icon",`icon${ht(r)}`,`iconColor${ht(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ht(r)}`,`deleteIconColor${ht(i)}`,`deleteIcon${ht(l)}Color${ht(i)}`]};return Lt(u,K5e,t)},nRe=Re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${Xr.avatar}`]:t.avatar},{[`& .${Xr.avatar}`]:t[`avatar${ht(o)}`]},{[`& .${Xr.avatar}`]:t[`avatarColor${ht(r)}`]},{[`& .${Xr.icon}`]:t.icon},{[`& .${Xr.icon}`]:t[`icon${ht(o)}`]},{[`& .${Xr.icon}`]:t[`iconColor${ht(i)}`]},{[`& .${Xr.deleteIcon}`]:t.deleteIcon},{[`& .${Xr.deleteIcon}`]:t[`deleteIcon${ht(o)}`]},{[`& .${Xr.deleteIcon}`]:t[`deleteIconColor${ht(r)}`]},{[`& .${Xr.deleteIcon}`]:t[`deleteIcon${ht(l)}Color${ht(r)}`]},t.root,t[`size${ht(o)}`],t[`color${ht(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${ht(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ht(r)}`],t[l],t[`${l}${ht(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return M({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Xr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Xr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Xr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Xr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Xr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Xr.icon}`]:M({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&M({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Xr.deleteIcon}`]:M({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Rn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Rn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Rn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Xr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Xr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>M({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Xr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Xr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>M({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Xr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Xr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Xr.avatar}`]:{marginLeft:4},[`& .${Xr.avatarSmall}`]:{marginLeft:2},[`& .${Xr.icon}`]:{marginLeft:4},[`& .${Xr.iconSmall}`]:{marginLeft:2},[`& .${Xr.deleteIcon}`]:{marginRight:5},[`& .${Xr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Rn(e.palette[t.color].main,.7)}`,[`&.${Xr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Xr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Xr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Rn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),rRe=Re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ht(r)}`]]}})(({ownerState:e})=>M({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function YY(e){return e.key==="Backspace"||e.key==="Delete"}const iRe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:h,onClick:g,onDelete:b,onKeyDown:S,onKeyUp:E,size:w="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:C=!1}=r,R=at(r,eRe),A=N.useRef(null),D=Jn(A,n),B=te=>{te.stopPropagation(),b&&b(te)},L=te=>{te.currentTarget===te.target&&YY(te)&&te.preventDefault(),S&&S(te)},F=te=>{te.currentTarget===te.target&&(b&&YY(te)?b(te):te.key==="Escape"&&A.current&&A.current.blur()),E&&E(te)},W=s!==!1&&g?!0:s,V=W||b?Tu:l||"div",Z=M({},r,{component:V,disabled:c,size:w,color:o,iconColor:N.isValidElement(f)&&f.props.color||o,onDelete:!!b,clickable:W,variant:x}),Q=tRe(Z),H=V===Tu?M({component:l||"div",focusVisibleClassName:Q.focusVisible},b&&{disableRipple:!0}):{};let J=null;b&&(J=u&&N.isValidElement(u)?N.cloneElement(u,{className:ft(u.props.className,Q.deleteIcon),onClick:B}):I.jsx(X5e,{className:ft(Q.deleteIcon),onClick:B}));let K=null;i&&N.isValidElement(i)&&(K=N.cloneElement(i,{className:ft(Q.avatar,i.props.className)}));let X=null;return f&&N.isValidElement(f)&&(X=N.cloneElement(f,{className:ft(Q.icon,f.props.className)})),I.jsxs(nRe,M({as:V,className:ft(Q.root,a),disabled:W&&c?!0:void 0,onClick:g,onKeyDown:L,onKeyUp:F,ref:D,tabIndex:C&&c?-1:k,ownerState:Z},H,R,{children:[K||X,I.jsx(rRe,{className:ft(Q.label),ownerState:Z,children:h}),J]}))}),cF=iRe;function O0({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const aRe=N.createContext(void 0),ER=aRe;function Vf(){return N.useContext(ER)}function Hoe(e){return I.jsx(SAe,M({},e,{defaultTheme:vR,themeId:s1}))}function ZY(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function W_(e,t=!1){return e&&(ZY(e.value)&&e.value!==""||t&&ZY(e.defaultValue)&&e.defaultValue!=="")}function sRe(e){return e.startAdornment}function oRe(e){return Bt("MuiInputBase",e)}const lRe=Ut("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),lu=lRe,uRe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],wR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ht(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},xR=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},cRe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:h,startAdornment:g,type:b}=e,S={root:["root",`color${ht(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",h&&h!=="medium"&&`size${ht(h)}`,c&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Lt(S,oRe,t)},TR=Re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:wR})(({theme:e,ownerState:t})=>M({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${lu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&M({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),kR=Re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=M({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return M({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${lu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${lu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),dRe=I.jsx(Hoe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fRe=N.forwardRef(function(t,n){var r;const i=_t({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:g,endAdornment:b,fullWidth:S=!1,id:E,inputComponent:w="input",inputProps:x={},inputRef:k,maxRows:C,minRows:R,multiline:A=!1,name:D,onBlur:B,onChange:L,onClick:F,onFocus:W,onKeyDown:V,onKeyUp:Z,placeholder:Q,readOnly:H,renderSuffix:J,rows:K,slotProps:X={},slots:te={},startAdornment:z,type:Te="text",value:be}=i,ee=at(i,uRe),ye=x.value!=null?x.value:be,{current:Oe}=N.useRef(ye!=null),ie=N.useRef(),_e=N.useCallback(De=>{},[]),Ie=Jn(ie,k,x.ref,_e),[qe,st]=N.useState(!1),Pe=Vf(),tt=O0({props:i,muiFormControl:Pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});tt.focused=Pe?Pe.focused:qe,N.useEffect(()=>{!Pe&&h&&qe&&(st(!1),B&&B())},[Pe,h,qe,B]);const Ve=Pe&&Pe.onFilled,Xe=Pe&&Pe.onEmpty,et=N.useCallback(De=>{W_(De)?Ve&&Ve():Xe&&Xe()},[Ve,Xe]);la(()=>{Oe&&et({value:ye})},[ye,et,Oe]);const dt=De=>{if(tt.disabled){De.stopPropagation();return}W&&W(De),x.onFocus&&x.onFocus(De),Pe&&Pe.onFocus?Pe.onFocus(De):st(!0)},At=De=>{B&&B(De),x.onBlur&&x.onBlur(De),Pe&&Pe.onBlur?Pe.onBlur(De):st(!1)},Je=(De,...$e)=>{if(!Oe){const vt=De.target||ie.current;if(vt==null)throw new Error(Km(1));et({value:vt.value})}x.onChange&&x.onChange(De,...$e),L&&L(De,...$e)};N.useEffect(()=>{et(ie.current)},[]);const pe=De=>{ie.current&&De.currentTarget===De.target&&ie.current.focus(),F&&F(De)};let le=w,he=x;A&&le==="input"&&(K?he=M({type:void 0,minRows:K,maxRows:K},he):he=M({type:void 0,maxRows:C,minRows:R},he),le=zoe);const je=De=>{et(De.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};N.useEffect(()=>{Pe&&Pe.setAdornedStart(!!z)},[Pe,z]);const Ze=M({},i,{color:tt.color||"primary",disabled:tt.disabled,endAdornment:b,error:tt.error,focused:tt.focused,formControl:Pe,fullWidth:S,hiddenLabel:tt.hiddenLabel,multiline:A,size:tt.size,startAdornment:z,type:Te}),We=cRe(Ze),fe=te.root||u.Root||TR,xe=X.root||c.root||{},ve=te.input||u.Input||kR;return he=M({},he,(r=X.input)!=null?r:c.input),I.jsxs(N.Fragment,{children:[!g&&dRe,I.jsxs(fe,M({},xe,!Nf(fe)&&{ownerState:M({},Ze,xe.ownerState)},{ref:n,onClick:pe},ee,{className:ft(We.root,xe.className,l,H&&"MuiInputBase-readOnly"),children:[z,I.jsx(ER.Provider,{value:null,children:I.jsx(ve,M({ownerState:Ze,"aria-invalid":tt.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:f,disabled:tt.disabled,id:E,onAnimationStart:je,name:D,placeholder:Q,readOnly:H,required:tt.required,rows:K,value:ye,onKeyDown:V,onKeyUp:Z,type:Te},he,!Nf(ve)&&{as:le,ownerState:M({},Ze,he.ownerState)},{ref:Ie,className:ft(We.input,he.className,H&&"MuiInputBase-readOnly"),onBlur:At,onChange:Je,onFocus:dt}))}),b,J?J(M({},tt,{startAdornment:z})):null]}))]})}),dF=fRe;function hRe(e){return Bt("MuiInput",e)}const pRe=M({},lu,Ut("MuiInput",["root","underline","input"])),fm=pRe;function mRe(e){return Bt("MuiOutlinedInput",e)}const gRe=M({},lu,Ut("MuiOutlinedInput",["root","notchedOutline","input"])),af=gRe;function bRe(e){return Bt("MuiFilledInput",e)}const yRe=M({},lu,Ut("MuiFilledInput",["root","underline","input"])),uu=yRe,Voe=Wa(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function vRe(e){return Bt("MuiAutocomplete",e)}const ORe=Ut("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),_r=ORe;var XY,KY;const SRe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],ERe=["ref"],wRe=["key"],xRe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:u,size:c}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ht(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Lt(f,vRe,t)},TRe=Re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${_r.tag}`]:t.tag},{[`& .${_r.tag}`]:t[`tagSize${ht(o)}`]},{[`& .${_r.inputRoot}`]:t.inputRoot},{[`& .${_r.input}`]:t.input},{[`& .${_r.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>M({[`&.${_r.focused} .${_r.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${_r.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${_r.tag}`]:M({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${_r.inputRoot}`]:{flexWrap:"wrap",[`.${_r.hasPopupIcon}&, .${_r.hasClearIcon}&`]:{paddingRight:30},[`.${_r.hasPopupIcon}.${_r.hasClearIcon}&`]:{paddingRight:56},[`& .${_r.input}`]:{width:0,minWidth:30}},[`& .${fm.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${fm.root}.${lu.sizeSmall}`]:{[`& .${fm.input}`]:{padding:"2px 4px 3px 0"}},[`& .${af.root}`]:{padding:9,[`.${_r.hasPopupIcon}&, .${_r.hasClearIcon}&`]:{paddingRight:39},[`.${_r.hasPopupIcon}.${_r.hasClearIcon}&`]:{paddingRight:65},[`& .${_r.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${_r.endAdornment}`]:{right:9}},[`& .${af.root}.${lu.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${_r.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${uu.root}`]:{paddingTop:19,paddingLeft:8,[`.${_r.hasPopupIcon}&, .${_r.hasClearIcon}&`]:{paddingRight:39},[`.${_r.hasPopupIcon}.${_r.hasClearIcon}&`]:{paddingRight:65},[`& .${uu.input}`]:{padding:"7px 4px"},[`& .${_r.endAdornment}`]:{right:9}},[`& .${uu.root}.${lu.sizeSmall}`]:{paddingBottom:1,[`& .${uu.input}`]:{padding:"2.5px 4px"}},[`& .${lu.hiddenLabel}`]:{paddingTop:8},[`& .${uu.root}.${lu.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${_r.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${uu.root}.${lu.hiddenLabel}.${lu.sizeSmall}`]:{[`& .${_r.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${_r.input}`]:M({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),kRe=Re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),CRe=Re(wa,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),ARe=Re(wa,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>M({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>M({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),_Re=Re(wO,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_r.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>M({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),RRe=Re(Zs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>M({},e.typography.body1,{overflow:"auto"})),IRe=Re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),DRe=Re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),NRe=Re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${_r.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${_r.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${_r.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_r.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_r.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),PRe=Re(Z5e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),MRe=Re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${_r.option}`]:{paddingLeft:24}}),LRe=N.forwardRef(function(t,n){var r,i,a,s;const o=_t({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:f=!1,ChipProps:h,className:g,clearIcon:b=XY||(XY=I.jsx(M_e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:E=!1,clearText:w="Clear",closeText:x="Close",componentsProps:k={},defaultValue:C=o.multiple?[]:null,disableClearable:R=!1,disableCloseOnSelect:A=!1,disabled:D=!1,disabledItemsFocusable:B=!1,disableListWrap:L=!1,disablePortal:F=!1,filterSelectedOptions:W=!1,forcePopupIcon:V="auto",freeSolo:Z=!1,fullWidth:Q=!1,getLimitTagsText:H=Be=>`+${Be}`,getOptionLabel:J,groupBy:K,handleHomeEndKeys:X=!o.freeSolo,includeInputInList:te=!1,limitTags:z=-1,ListboxComponent:Te="ul",ListboxProps:be,loading:ee=!1,loadingText:ye="Loading…",multiple:Oe=!1,noOptionsText:ie="No options",openOnFocus:_e=!1,openText:Ie="Open",PaperComponent:qe=Zs,PopperComponent:st=wO,popupIcon:Pe=KY||(KY=I.jsx(Voe,{})),readOnly:tt=!1,renderGroup:Ve,renderInput:Xe,renderOption:et,renderTags:dt,selectOnFocus:At=!o.freeSolo,size:Je="medium",slotProps:pe={}}=o,le=at(o,SRe),{getRootProps:he,getInputProps:je,getInputLabelProps:Ze,getPopupIndicatorProps:We,getClearProps:fe,getTagProps:xe,getListboxProps:ve,getOptionProps:De,value:$e,dirty:vt,expanded:Wt,id:Kt,popupOpen:gt,focused:Gt,focusedTag:ut,anchorEl:wt,setAnchorEl:Xt,inputValue:Ln,groupedOptions:$n}=j5e(M({},o,{componentName:"Autocomplete"})),jn=!R&&!D&&vt&&!tt,ar=(!Z||V===!0)&&V!==!1,{onMouseDown:Ur}=je(),{ref:Me}=be??{},Ue=ve(),{ref:lt}=Ue,Nt=at(Ue,ERe),Qt=Jn(lt,Me),yn=J||(Be=>{var Dt;return(Dt=Be.label)!=null?Dt:Be}),rn=M({},o,{disablePortal:F,expanded:Wt,focused:Gt,fullWidth:Q,getOptionLabel:yn,hasClearIcon:jn,hasPopupIcon:ar,inputFocused:ut===-1,popupOpen:gt,size:Je}),Yt=xRe(rn);let xn;if(Oe&&$e.length>0){const Be=Dt=>M({className:Yt.tag,disabled:D},xe(Dt));dt?xn=dt($e,Be,rn):xn=$e.map((Dt,en)=>I.jsx(cF,M({label:yn(Dt),size:Je},Be({index:en}),h)))}if(z>-1&&Array.isArray(xn)){const Be=xn.length-z;!Gt&&Be>0&&(xn=xn.splice(0,z),xn.push(I.jsx("span",{className:Yt.tag,children:H(Be)},xn.length)))}const Ye=Ve||(Be=>I.jsxs("li",{children:[I.jsx(PRe,{className:Yt.groupLabel,ownerState:rn,component:"div",children:Be.group}),I.jsx(MRe,{className:Yt.groupUl,ownerState:rn,children:Be.children})]},Be.key)),yt=et||((Be,Dt)=>{const{key:en}=Be,Vn=at(Be,wRe);return I.jsx("li",M({},Vn,{children:yn(Dt)}),en)}),Yn=(Be,Dt)=>{const en=De({option:Be,index:Dt});return yt(M({},en,{className:Yt.option}),Be,{selected:en["aria-selected"],index:Dt,inputValue:Ln},rn)},pn=(r=pe.clearIndicator)!=null?r:k.clearIndicator,Fn=(i=pe.paper)!=null?i:k.paper,Pi=(a=pe.popper)!=null?a:k.popper,nt=(s=pe.popupIndicator)!=null?s:k.popupIndicator;return I.jsxs(N.Fragment,{children:[I.jsx(TRe,M({ref:n,className:ft(Yt.root,g),ownerState:rn},he(le),{children:Xe({id:Kt,disabled:D,fullWidth:!0,size:Je==="small"?"small":void 0,InputLabelProps:Ze(),InputProps:M({ref:Xt,className:Yt.inputRoot,startAdornment:xn,onClick:Be=>{Be.target===Be.currentTarget&&Ur(Be)}},(jn||ar)&&{endAdornment:I.jsxs(kRe,{className:Yt.endAdornment,ownerState:rn,children:[jn?I.jsx(CRe,M({},fe(),{"aria-label":w,title:w,ownerState:rn},pn,{className:ft(Yt.clearIndicator,pn==null?void 0:pn.className),children:b})):null,ar?I.jsx(ARe,M({},We(),{disabled:D,"aria-label":gt?x:Ie,title:gt?x:Ie,ownerState:rn},nt,{className:ft(Yt.popupIndicator,nt==null?void 0:nt.className),children:Pe})):null]})}),inputProps:M({className:Yt.input,disabled:D,readOnly:tt},je())})})),wt?I.jsx(_Re,M({as:st,disablePortal:F,style:{width:wt?wt.clientWidth:null},ownerState:rn,role:"presentation",anchorEl:wt,open:gt},Pi,{className:ft(Yt.popper,Pi==null?void 0:Pi.className),children:I.jsxs(RRe,M({ownerState:rn,as:qe},Fn,{className:ft(Yt.paper,Fn==null?void 0:Fn.className),children:[ee&&$n.length===0?I.jsx(IRe,{className:Yt.loading,ownerState:rn,children:ye}):null,$n.length===0&&!Z&&!ee?I.jsx(DRe,{className:Yt.noOptions,ownerState:rn,role:"presentation",onMouseDown:Be=>{Be.preventDefault()},children:ie}):null,$n.length>0?I.jsx(NRe,M({as:Te,className:Yt.listbox,ownerState:rn},Nt,be,{ref:Qt,children:$n.map((Be,Dt)=>K?Ye({key:Be.key,group:Be.group,children:Be.options.map((en,Vn)=>Yn(en,Be.index+Vn))}):Yn(Be,Dt))})):null]}))})):null]})}),$Re=LRe,FRe=Wa(I.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function BRe(e){return Bt("MuiAvatar",e)}const URe=Ut("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),zRe=URe,jRe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],HRe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Lt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},BRe,t)},VRe=Re("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:M({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:M({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),WRe=Re("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),QRe=Re(FRe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function qRe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=N.useState(!1);return N.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const GRe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",imgProps:l,sizes:u,src:c,srcSet:f,variant:h="circular"}=r,g=at(r,jRe);let b=null;const S=qRe(M({},l,{src:c,srcSet:f})),E=c||f,w=E&&S!=="error",x=M({},r,{colorDefault:!w,component:o,variant:h}),k=HRe(x);return w?b=I.jsx(WRe,M({alt:i,srcSet:f,src:c,sizes:u,ownerState:x,className:k.img},l)):a!=null&&a!==""&&typeof a!="boolean"?b=a:E&&i?b=i[0]:b=I.jsx(QRe,{ownerState:x,className:k.fallback}),I.jsx(VRe,M({as:o,ownerState:x,className:ft(k.root,s),ref:n},g,{children:b}))}),fF=GRe;function YRe(e){return Bt("MuiAvatarGroup",e)}const ZRe=Ut("MuiAvatarGroup",["root","avatar"]),XRe=ZRe,KRe=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],JY={small:-16,medium:null},JRe=e=>{const{classes:t}=e;return Lt({root:["root"],avatar:["avatar"]},YRe,t)},eIe=Re("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>M({[`& .${XRe.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&JY[t.spacing]!==void 0?JY[t.spacing]:-t.spacing;return{[`& .${zRe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),tIe=N.forwardRef(function(t,n){var r;const i=_t({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:u=5,renderSurplus:c,slotProps:f={},spacing:h="medium",total:g,variant:b="circular"}=i,S=at(i,KRe);let E=u<2?2:u;const w=M({},i,{max:u,spacing:h,component:o,variant:b}),x=JRe(w),k=N.Children.toArray(a).filter(L=>N.isValidElement(L)),C=g||k.length;C===E&&(E+=1),E=Math.min(C+1,E);const R=Math.min(k.length,E-1),A=Math.max(C-E,C-R,0),D=c?c(A):`+${A}`,B=(r=f.additionalAvatar)!=null?r:l.additionalAvatar;return I.jsxs(eIe,M({as:o,ownerState:w,className:ft(x.root,s),ref:n},S,{children:[A?I.jsx(fF,M({variant:b},B,{className:ft(x.avatar,B==null?void 0:B.className),children:D})):null,k.slice(0,R).reverse().map(L=>N.cloneElement(L,{className:ft(L.props.className,x.avatar),variant:L.props.variant||b}))]}))}),nIe=tIe,rIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],iIe={entering:{opacity:1},entered:{opacity:1}},aIe=N.forwardRef(function(t,n){const r=Ni(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:u,onEnter:c,onEntered:f,onEntering:h,onExit:g,onExited:b,onExiting:S,style:E,timeout:w=i,TransitionComponent:x=nT}=t,k=at(t,rIe),C=N.useRef(null),R=Jn(C,o.ref,n),A=Q=>H=>{if(Q){const J=C.current;H===void 0?Q(J):Q(J,H)}},D=A(h),B=A((Q,H)=>{nF(Q);const J=e0({style:E,timeout:w,easing:l},{mode:"enter"});Q.style.webkitTransition=r.transitions.create("opacity",J),Q.style.transition=r.transitions.create("opacity",J),c&&c(Q,H)}),L=A(f),F=A(S),W=A(Q=>{const H=e0({style:E,timeout:w,easing:l},{mode:"exit"});Q.style.webkitTransition=r.transitions.create("opacity",H),Q.style.transition=r.transitions.create("opacity",H),g&&g(Q)}),V=A(b),Z=Q=>{a&&a(C.current,Q)};return I.jsx(x,M({appear:s,in:u,nodeRef:C,onEnter:B,onEntered:L,onEntering:D,onExit:W,onExited:V,onExiting:F,addEndListener:Z,timeout:w},k,{children:(Q,H)=>N.cloneElement(o,M({style:M({opacity:0,visibility:Q==="exited"&&!u?"hidden":void 0},iIe[Q],E,o.props.style),ref:R},H))}))}),tp=aIe;function sIe(e){return Bt("MuiBackdrop",e)}Ut("MuiBackdrop",["root","invisible"]);const oIe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lIe=e=>{const{classes:t,invisible:n}=e;return Lt({root:["root",n&&"invisible"]},sIe,t)},uIe=Re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>M({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),cIe=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",components:c={},componentsProps:f={},invisible:h=!1,open:g,slotProps:b={},slots:S={},TransitionComponent:E=tp,transitionDuration:w}=s,x=at(s,oIe),k=M({},s,{component:u,invisible:h}),C=lIe(k),R=(r=b.root)!=null?r:f.root;return I.jsx(E,M({in:g,timeout:w},x,{children:I.jsx(uIe,M({"aria-hidden":!0},R,{as:(i=(a=S.root)!=null?a:c.Root)!=null?i:u,className:ft(C.root,l,R==null?void 0:R.className),ownerState:M({},k,R==null?void 0:R.ownerState),classes:C,ref:n,children:o}))}))}),aT=cIe,dIe=Ut("MuiBox",["root"]),fIe=dIe,hIe=Y$(),pIe=TAe({themeId:s1,defaultTheme:hIe,defaultClassName:fIe.root,generateClassName:z$.generate}),Ts=pIe;function mIe(e){return Bt("MuiButton",e)}const gIe=Ut("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),VC=gIe,bIe=N.createContext({}),yIe=bIe,vIe=N.createContext(void 0),OIe=vIe,SIe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],EIe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${ht(t)}`,`size${ht(i)}`,`${a}Size${ht(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ht(i)}`],endIcon:["endIcon",`iconSize${ht(i)}`]},l=Lt(o,mIe,s);return M({},s,l)},Woe=e=>M({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),wIe=Re(Tu,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ht(n.color)}`],t[`size${ht(n.size)}`],t[`${n.variant}Size${ht(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return M({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":M({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${VC.focusVisible}`]:M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${VC.disabled}`]:M({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Rn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${VC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${VC.disabled}`]:{boxShadow:"none"}}),xIe=Re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ht(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Woe(e))),TIe=Re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ht(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Woe(e))),kIe=N.forwardRef(function(t,n){const r=N.useContext(yIe),i=N.useContext(OIe),a=lR(r,t),s=_t({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:S,fullWidth:E=!1,size:w="medium",startIcon:x,type:k,variant:C="text"}=s,R=at(s,SIe),A=M({},s,{color:l,component:u,disabled:f,disableElevation:h,disableFocusRipple:g,fullWidth:E,size:w,type:k,variant:C}),D=EIe(A),B=x&&I.jsx(xIe,{className:D.startIcon,ownerState:A,children:x}),L=b&&I.jsx(TIe,{className:D.endIcon,ownerState:A,children:b}),F=i||"";return I.jsxs(wIe,M({ownerState:A,className:ft(r.className,D.root,c,F),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:ft(D.focusVisible,S),ref:n,type:k},R,{classes:D,children:[B,o,L]}))}),Ws=kIe;function CIe(e){return Bt("MuiCard",e)}Ut("MuiCard",["root"]);const AIe=["className","raised"],_Ie=e=>{const{classes:t}=e;return Lt({root:["root"]},CIe,t)},RIe=Re(Zs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),IIe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=at(r,AIe),o=M({},r,{raised:a}),l=_Ie(o);return I.jsx(RIe,M({className:ft(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))}),hF=IIe;function DIe(e){return Bt("MuiCardActionArea",e)}const NIe=Ut("MuiCardActionArea",["root","focusVisible","focusHighlight"]),mN=NIe,PIe=["children","className","focusVisibleClassName"],MIe=e=>{const{classes:t}=e;return Lt({root:["root"],focusHighlight:["focusHighlight"]},DIe,t)},LIe=Re(Tu,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${mN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${mN.focusVisible} .${mN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),$Ie=Re("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),FIe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=at(r,PIe),l=r,u=MIe(l);return I.jsxs(LIe,M({className:ft(u.root,a),focusVisibleClassName:ft(s,u.focusVisible),ref:n,ownerState:l},o,{children:[i,I.jsx($Ie,{className:u.focusHighlight,ownerState:l})]}))}),Qoe=FIe;function BIe(e){return Bt("MuiCardContent",e)}Ut("MuiCardContent",["root"]);const UIe=["className","component"],zIe=e=>{const{classes:t}=e;return Lt({root:["root"]},BIe,t)},jIe=Re("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),HIe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=at(r,UIe),o=M({},r,{component:a}),l=zIe(o);return I.jsx(jIe,M({as:a,className:ft(l.root,i),ownerState:o,ref:n},s))}),VIe=HIe;function WIe(e){return Bt("PrivateSwitchBase",e)}Ut("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const QIe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],qIe=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${ht(i)}`],input:["input"]};return Lt(a,WIe,t)},GIe=Re(Tu)(({ownerState:e})=>M({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),YIe=Re("input",{shouldForwardProp:Cs})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ZIe=N.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:h,inputProps:g,inputRef:b,name:S,onBlur:E,onChange:w,onFocus:x,readOnly:k,required:C=!1,tabIndex:R,type:A,value:D}=t,B=at(t,QIe),[L,F]=ws({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),W=Vf(),V=te=>{x&&x(te),W&&W.onFocus&&W.onFocus(te)},Z=te=>{E&&E(te),W&&W.onBlur&&W.onBlur(te)},Q=te=>{if(te.nativeEvent.defaultPrevented)return;const z=te.target.checked;F(z),w&&w(te,z)};let H=l;W&&typeof H>"u"&&(H=W.disabled);const J=A==="checkbox"||A==="radio",K=M({},t,{checked:L,disabled:H,disableFocusRipple:u,edge:c}),X=qIe(K);return I.jsxs(GIe,M({component:"span",className:ft(X.root,s),centerRipple:!0,focusRipple:!u,disabled:H,tabIndex:null,role:void 0,onFocus:V,onBlur:Z,ownerState:K,ref:n},B,{children:[I.jsx(YIe,M({autoFocus:r,checked:i,defaultChecked:o,className:X.input,disabled:H,id:J?h:void 0,name:S,onChange:Q,readOnly:k,ref:b,required:C,ownerState:K,tabIndex:R,type:A},A==="checkbox"&&D===void 0?{}:{value:D},g)),L?a:f]}))}),pF=ZIe,XIe=Wa(I.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),KIe=Wa(I.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),JIe=Wa(I.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function e6e(e){return Bt("MuiCheckbox",e)}const t6e=Ut("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),gN=t6e,n6e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],r6e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${ht(r)}`,`size${ht(i)}`]},s=Lt(a,e6e,t);return M({},t,s)},i6e=Re(pF,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ht(n.size)}`],n.color!=="default"&&t[`color${ht(n.color)}`]]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${gN.checked}, &.${gN.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${gN.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),a6e=I.jsx(KIe,{}),s6e=I.jsx(XIe,{}),o6e=I.jsx(JIe,{}),l6e=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiCheckbox"}),{checkedIcon:s=a6e,color:o="primary",icon:l=s6e,indeterminate:u=!1,indeterminateIcon:c=o6e,inputProps:f,size:h="medium",className:g}=a,b=at(a,n6e),S=u?c:l,E=u?c:s,w=M({},a,{color:o,indeterminate:u,size:h}),x=r6e(w);return I.jsx(i6e,M({type:"checkbox",inputProps:M({"data-indeterminate":u},f),icon:N.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:h}),checkedIcon:N.cloneElement(E,{fontSize:(i=E.props.fontSize)!=null?i:h}),ownerState:w,ref:n,className:ft(x.root,g)},b,{classes:x}))}),CR=l6e;function u6e(e){return Bt("MuiCircularProgress",e)}Ut("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const c6e=["className","color","disableShrink","size","style","thickness","value","variant"];let AR=e=>e,eZ,tZ,nZ,rZ;const Gp=44,d6e=Yx(eZ||(eZ=AR` +`),rc.rippleVisible,g_e,T8,({theme:e})=>e.transitions.easing.easeInOut,rc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,rc.child,rc.childLeaving,b_e,T8,({theme:e})=>e.transitions.easing.easeInOut,rc.childPulsate,y_e,({theme:e})=>e.transitions.easing.easeInOut),S_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=at(r,p_e),[l,u]=N.useState([]),c=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=N.useRef(!1),g=Ig(),b=N.useRef(null),S=N.useRef(null),w=N.useCallback(C=>{const{pulsate:R,rippleX:A,rippleY:D,rippleSize:B,cb:L}=C;u(F=>[...F,I.jsx(O_e,{classes:{ripple:dt(a.ripple,rc.ripple),rippleVisible:dt(a.rippleVisible,rc.rippleVisible),ripplePulsate:dt(a.ripplePulsate,rc.ripplePulsate),child:dt(a.child,rc.child),childLeaving:dt(a.childLeaving,rc.childLeaving),childPulsate:dt(a.childPulsate,rc.childPulsate)},timeout:T8,pulsate:R,rippleX:A,rippleY:D,rippleSize:B},c.current)]),c.current+=1,f.current=L},[a]),E=N.useCallback((C={},R={},A=()=>{})=>{const{pulsate:D=!1,center:B=i||R.pulsate,fakeElement:L=!1}=R;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const F=L?null:S.current,W=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,Z,Q;if(B||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)V=Math.round(W.width/2),Z=Math.round(W.height/2);else{const{clientX:H,clientY:J}=C.touches&&C.touches.length>0?C.touches[0]:C;V=Math.round(H-W.left),Z=Math.round(J-W.top)}if(B)Q=Math.sqrt((2*W.width**2+W.height**2)/3),Q%2===0&&(Q+=1);else{const H=Math.max(Math.abs((F?F.clientWidth:0)-V),V)*2+2,J=Math.max(Math.abs((F?F.clientHeight:0)-Z),Z)*2+2;Q=Math.sqrt(H**2+J**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{w({pulsate:D,rippleX:V,rippleY:Z,rippleSize:Q,cb:A})},g.start(m_e,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:D,rippleX:V,rippleY:Z,rippleSize:Q,cb:A})},[i,w,g]),x=N.useCallback(()=>{E({},{pulsate:!0})},[E]),k=N.useCallback((C,R)=>{if(g.clear(),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{k(C,R)});return}b.current=null,u(A=>A.length>0?A.slice(1):A),f.current=R},[g]);return N.useImperativeHandle(n,()=>({pulsate:x,start:E,stop:k}),[x,E,k]),I.jsx(v_e,M({className:dt(rc.root,a.root,s),ref:S},o,{children:I.jsx(nF,{component:null,exit:!0,children:l})}))}),E_e=S_e;function w_e(e){return $t("MuiButtonBase",e)}const x_e=Ft("MuiButtonBase",["root","disabled","focusVisible"]),T_e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],k_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=Mt({root:["root",t&&"disabled",n&&"focusVisible"]},w_e,i);return n&&r&&(s.root+=` ${r}`),s},C_e=Re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${x_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),A_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:g="a",onBlur:b,onClick:S,onContextMenu:w,onDragLeave:E,onFocus:x,onFocusVisible:k,onKeyDown:C,onKeyUp:R,onMouseDown:A,onMouseLeave:D,onMouseUp:B,onTouchEnd:L,onTouchMove:F,onTouchStart:W,tabIndex:V=0,TouchRippleProps:Z,touchRippleRef:Q,type:H}=r,J=at(r,T_e),K=N.useRef(null),X=N.useRef(null),te=Jn(X,Q),{isFocusVisibleRef:z,onFocus:Te,onBlur:be,ref:ee}=cR(),[ye,Oe]=N.useState(!1);u&&ye&&Oe(!1),N.useImperativeHandle(i,()=>({focusVisible:()=>{Oe(!0),K.current.focus()}}),[]);const[ie,_e]=N.useState(!1);N.useEffect(()=>{_e(!0)},[]);const Ie=ie&&!c&&!u;N.useEffect(()=>{ye&&h&&!c&&ie&&X.current.pulsate()},[c,h,ye,ie]);function qe($e,vt,Wt=f){return on(Kt=>(vt&&vt(Kt),!Wt&&X.current&&X.current[$e](Kt),!0))}const st=qe("start",A),Pe=qe("stop",w),tt=qe("stop",E),Ve=qe("stop",B),Xe=qe("stop",$e=>{ye&&$e.preventDefault(),D&&D($e)}),et=qe("start",W),ft=qe("stop",L),At=qe("stop",F),Je=qe("stop",$e=>{be($e),z.current===!1&&Oe(!1),b&&b($e)},!1),pe=on($e=>{K.current||(K.current=$e.currentTarget),Te($e),z.current===!0&&(Oe(!0),k&&k($e)),x&&x($e)}),le=()=>{const $e=K.current;return l&&l!=="button"&&!($e.tagName==="A"&&$e.href)},he=N.useRef(!1),je=on($e=>{h&&!he.current&&ye&&X.current&&$e.key===" "&&(he.current=!0,X.current.stop($e,()=>{X.current.start($e)})),$e.target===$e.currentTarget&&le()&&$e.key===" "&&$e.preventDefault(),C&&C($e),$e.target===$e.currentTarget&&le()&&$e.key==="Enter"&&!u&&($e.preventDefault(),S&&S($e))}),Ze=on($e=>{h&&$e.key===" "&&X.current&&ye&&!$e.defaultPrevented&&(he.current=!1,X.current.stop($e,()=>{X.current.pulsate($e)})),R&&R($e),S&&$e.target===$e.currentTarget&&le()&&$e.key===" "&&!$e.defaultPrevented&&S($e)});let We=l;We==="button"&&(J.href||J.to)&&(We=g);const fe={};We==="button"?(fe.type=H===void 0?"button":H,fe.disabled=u):(!J.href&&!J.to&&(fe.role="button"),u&&(fe["aria-disabled"]=u));const xe=Jn(n,ee,K),ve=M({},r,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:h,tabIndex:V,focusVisible:ye}),De=k_e(ve);return I.jsxs(C_e,M({as:We,className:dt(De.root,o),ownerState:ve,onBlur:Je,onClick:S,onContextMenu:Pe,onFocus:pe,onKeyDown:je,onKeyUp:Ze,onMouseDown:st,onMouseLeave:Xe,onMouseUp:Ve,onDragLeave:tt,onTouchEnd:ft,onTouchMove:At,onTouchStart:et,ref:xe,tabIndex:u?-1:V,type:H},fe,J,{children:[s,Ie?I.jsx(E_e,M({ref:te,center:a},Z)):null]}))}),Tu=A_e;function __e(e){return $t("MuiIconButton",e)}const R_e=Ft("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),I_e=["edge","children","className","color","disabled","disableFocusRipple","size"],D_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ht(r)}`,i&&`edge${ht(i)}`,`size${ht(a)}`]};return Mt(s,__e,t)},N_e=Re(Tu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ht(n.color)}`],n.edge&&t[`edge${ht(n.edge)}`],t[`size${ht(n.size)}`]]}})(({theme:e,ownerState:t})=>M({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return M({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&M({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":M({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${R_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),P_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=at(r,I_e),h=M({},r,{edge:i,color:o,disabled:l,disableFocusRipple:u,size:c}),g=D_e(h);return I.jsx(N_e,M({className:dt(g.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:h},f,{children:a}))}),wa=P_e,M_e=Wa(I.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function L_e(e){return $t("MuiTypography",e)}Ft("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],F_e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${ht(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Mt(o,L_e,s)},B_e=Re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ht(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>M({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),IY={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},U_e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},z_e=e=>U_e[e]||e,j_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTypography"}),i=z_e(r.color),a=OR(M({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:h="body1",variantMapping:g=IY}=a,b=at(a,$_e),S=M({},a,{align:s,color:i,className:o,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:h,variantMapping:g}),w=l||(f?"p":g[h]||IY[h])||"span",E=F_e(S);return I.jsx(B_e,M({as:w,ref:n,ownerState:S,className:dt(E.root,o)},b))}),Sr=j_e;function H_e(e){return $t("MuiAppBar",e)}Ft("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const V_e=["className","color","enableColorOnDark","position"],W_e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ht(t)}`,`position${ht(n)}`]};return Mt(i,H_e,r)},FC=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Q_e=Re(Ts,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ht(n.position)}`],t[`color${ht(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return M({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&M({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&M({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&M({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:FC(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:FC(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:FC(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:FC(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),q_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=at(r,V_e),u=M({},r,{color:a,position:o,enableColorOnDark:s}),c=W_e(u);return I.jsx(Q_e,M({square:!0,component:"header",ownerState:u,elevation:4,className:dt(c.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))}),koe=q_e,Coe="base";function G_e(e){return`${Coe}--${e}`}function Y_e(e,t){return`${Coe}-${e}-${t}`}function Aoe(e,t){const n=foe[t];return n?G_e(n):Y_e(e,t)}function Z_e(e,t){const n={};return t.forEach(r=>{n[r]=Aoe(e,r)}),n}function DY(e){return e.substring(2).toLowerCase()}function X_e(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=Jn(t.ref,o),f=on(b=>{const S=u.current;u.current=!1;const w=Ei(o.current);if(!l.current||!o.current||"clientX"in b&&X_e(b,w))return;if(s.current){s.current=!1;return}let E;b.composedPath?E=b.composedPath().indexOf(o.current)>-1:E=!w.documentElement.contains(b.target)||o.current.contains(b.target),!E&&(n||!S)&&i(b)}),h=b=>S=>{u.current=!0;const w=t.props[b];w&&w(S)},g={ref:c};return a!==!1&&(g[a]=h(a)),N.useEffect(()=>{if(a!==!1){const b=DY(a),S=Ei(o.current),w=()=>{s.current=!0};return S.addEventListener(b,f),S.addEventListener("touchmove",w),()=>{S.removeEventListener(b,f),S.removeEventListener("touchmove",w)}}},[f,a]),r!==!1&&(g[r]=h(r)),N.useEffect(()=>{if(r!==!1){const b=DY(r),S=Ei(o.current);return S.addEventListener(b,f),()=>{S.removeEventListener(b,f)}}},[f,r]),I.jsx(N.Fragment,{children:N.cloneElement(t,g)})}const J_e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function e3e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function t3e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function n3e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||t3e(e))}function r3e(e){const t=[],n=[];return Array.from(e.querySelectorAll(J_e)).forEach((r,i)=>{const a=e3e(r);a===-1||!n3e(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function i3e(){return!0}function _oe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=r3e,isEnabled:s=i3e,open:o}=e,l=N.useRef(!1),u=N.useRef(null),c=N.useRef(null),f=N.useRef(null),h=N.useRef(null),g=N.useRef(!1),b=N.useRef(null),S=Jn(t.ref,b),w=N.useRef(null);N.useEffect(()=>{!o||!b.current||(g.current=!n)},[n,o]),N.useEffect(()=>{if(!o||!b.current)return;const k=Ei(b.current);return b.current.contains(k.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[o]),N.useEffect(()=>{if(!o||!b.current)return;const k=Ei(b.current),C=D=>{w.current=D,!(r||!s()||D.key!=="Tab")&&k.activeElement===b.current&&D.shiftKey&&(l.current=!0,c.current&&c.current.focus())},R=()=>{const D=b.current;if(D===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(D.contains(k.activeElement)||r&&k.activeElement!==u.current&&k.activeElement!==c.current)return;if(k.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let B=[];if((k.activeElement===u.current||k.activeElement===c.current)&&(B=a(b.current)),B.length>0){var L,F;const W=!!((L=w.current)!=null&&L.shiftKey&&((F=w.current)==null?void 0:F.key)==="Tab"),V=B[0],Z=B[B.length-1];typeof V!="string"&&typeof Z!="string"&&(W?Z.focus():V.focus())}else D.focus()};k.addEventListener("focusin",R),k.addEventListener("keydown",C,!0);const A=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(A),k.removeEventListener("focusin",R),k.removeEventListener("keydown",C,!0)}},[n,r,i,s,o,a]);const E=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0,h.current=k.target;const C=t.props.onFocus;C&&C(k)},x=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0};return I.jsxs(N.Fragment,{children:[I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:S,onFocus:E}),I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:c,"data-testid":"sentinelEnd"})]})}var Tl="top",Cc="bottom",Ac="right",kl="left",iF="auto",rT=[Tl,Cc,Ac,kl],Vv="start",Aw="end",a3e="clippingParents",Roe="viewport",dE="popper",s3e="reference",NY=rT.reduce(function(e,t){return e.concat([t+"-"+Vv,t+"-"+Aw])},[]),Ioe=[].concat(rT,[iF]).reduce(function(e,t){return e.concat([t,t+"-"+Vv,t+"-"+Aw])},[]),o3e="beforeRead",l3e="read",u3e="afterRead",c3e="beforeMain",d3e="main",f3e="afterMain",h3e="beforeWrite",p3e="write",m3e="afterWrite",g3e=[o3e,l3e,u3e,c3e,d3e,f3e,h3e,p3e,m3e];function zf(e){return e?(e.nodeName||"").toLowerCase():null}function ku(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function u1(e){var t=ku(e).Element;return e instanceof t||e instanceof Element}function yc(e){var t=ku(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function aF(e){if(typeof ShadowRoot>"u")return!1;var t=ku(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function b3e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!yc(a)||!zf(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function y3e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,u){return l[u]="",l},{});!yc(i)||!zf(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const v3e={name:"applyStyles",enabled:!0,phase:"write",fn:b3e,effect:y3e,requires:["computeStyles"]};function Pf(e){return e.split("-")[0]}var Jg=Math.max,V_=Math.min,Wv=Math.round;function k8(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Doe(){return!/^((?!chrome|android).)*safari/i.test(k8())}function Qv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&yc(e)&&(i=e.offsetWidth>0&&Wv(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Wv(r.height)/e.offsetHeight||1);var s=u1(e)?ku(e):window,o=s.visualViewport,l=!Doe()&&n,u=(r.left+(l&&o?o.offsetLeft:0))/i,c=(r.top+(l&&o?o.offsetTop:0))/a,f=r.width/i,h=r.height/a;return{width:f,height:h,top:c,right:u+f,bottom:c+h,left:u,x:u,y:c}}function sF(e){var t=Qv(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Noe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&aF(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ep(e){return ku(e).getComputedStyle(e)}function O3e(e){return["table","td","th"].indexOf(zf(e))>=0}function v0(e){return((u1(e)?e.ownerDocument:e.document)||window.document).documentElement}function xR(e){return zf(e)==="html"?e:e.assignedSlot||e.parentNode||(aF(e)?e.host:null)||v0(e)}function PY(e){return!yc(e)||ep(e).position==="fixed"?null:e.offsetParent}function S3e(e){var t=/firefox/i.test(k8()),n=/Trident/i.test(k8());if(n&&yc(e)){var r=ep(e);if(r.position==="fixed")return null}var i=xR(e);for(aF(i)&&(i=i.host);yc(i)&&["html","body"].indexOf(zf(i))<0;){var a=ep(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function iT(e){for(var t=ku(e),n=PY(e);n&&O3e(n)&&ep(n).position==="static";)n=PY(n);return n&&(zf(n)==="html"||zf(n)==="body"&&ep(n).position==="static")?t:n||S3e(e)||t}function oF(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function k2(e,t,n){return Jg(e,V_(t,n))}function E3e(e,t,n){var r=k2(e,t,n);return r>n?n:r}function Poe(){return{top:0,right:0,bottom:0,left:0}}function Moe(e){return Object.assign({},Poe(),e)}function Loe(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var w3e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Moe(typeof t!="number"?t:Loe(t,rT))};function x3e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Pf(n.placement),l=oF(o),u=[kl,Ac].indexOf(o)>=0,c=u?"height":"width";if(!(!a||!s)){var f=w3e(i.padding,n),h=sF(a),g=l==="y"?Tl:kl,b=l==="y"?Cc:Ac,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],w=s[l]-n.rects.reference[l],E=iT(a),x=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,k=S/2-w/2,C=f[g],R=x-h[c]-f[b],A=x/2-h[c]/2+k,D=k2(C,A,R),B=l;n.modifiersData[r]=(t={},t[B]=D,t.centerOffset=D-A,t)}}function T3e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Noe(t.elements.popper,i)&&(t.elements.arrow=i))}const k3e={name:"arrow",enabled:!0,phase:"main",fn:x3e,effect:T3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qv(e){return e.split("-")[1]}var C3e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function A3e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Wv(n*i)/i||0,y:Wv(r*i)/i||0}}function MY(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,h=s.x,g=h===void 0?0:h,b=s.y,S=b===void 0?0:b,w=typeof c=="function"?c({x:g,y:S}):{x:g,y:S};g=w.x,S=w.y;var E=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=kl,C=Tl,R=window;if(u){var A=iT(n),D="clientHeight",B="clientWidth";if(A===ku(n)&&(A=v0(n),ep(A).position!=="static"&&o==="absolute"&&(D="scrollHeight",B="scrollWidth")),A=A,i===Tl||(i===kl||i===Ac)&&a===Aw){C=Cc;var L=f&&A===R&&R.visualViewport?R.visualViewport.height:A[D];S-=L-r.height,S*=l?1:-1}if(i===kl||(i===Tl||i===Cc)&&a===Aw){k=Ac;var F=f&&A===R&&R.visualViewport?R.visualViewport.width:A[B];g-=F-r.width,g*=l?1:-1}}var W=Object.assign({position:o},u&&C3e),V=c===!0?A3e({x:g,y:S},ku(n)):{x:g,y:S};if(g=V.x,S=V.y,l){var Z;return Object.assign({},W,(Z={},Z[C]=x?"0":"",Z[k]=E?"0":"",Z.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",Z))}return Object.assign({},W,(t={},t[C]=x?S+"px":"",t[k]=E?g+"px":"",t.transform="",t))}function _3e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:Pf(t.placement),variation:qv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,MY(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,MY(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const R3e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_3e,data:{}};var BC={passive:!0};function I3e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=ku(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",n.update,BC)}),o&&l.addEventListener("resize",n.update,BC),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",n.update,BC)}),o&&l.removeEventListener("resize",n.update,BC)}}const D3e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I3e,data:{}};var N3e={left:"right",right:"left",bottom:"top",top:"bottom"};function S4(e){return e.replace(/left|right|bottom|top/g,function(t){return N3e[t]})}var P3e={start:"end",end:"start"};function LY(e){return e.replace(/start|end/g,function(t){return P3e[t]})}function lF(e){var t=ku(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function uF(e){return Qv(v0(e)).left+lF(e).scrollLeft}function M3e(e,t){var n=ku(e),r=v0(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=Doe();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+uF(e),y:l}}function L3e(e){var t,n=v0(e),r=lF(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Jg(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Jg(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+uF(e),l=-r.scrollTop;return ep(i||n).direction==="rtl"&&(o+=Jg(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function cF(e){var t=ep(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function $oe(e){return["html","body","#document"].indexOf(zf(e))>=0?e.ownerDocument.body:yc(e)&&cF(e)?e:$oe(xR(e))}function C2(e,t){var n;t===void 0&&(t=[]);var r=$oe(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ku(r),s=i?[a].concat(a.visualViewport||[],cF(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(C2(xR(s)))}function C8(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $3e(e,t){var n=Qv(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function $Y(e,t,n){return t===Roe?C8(M3e(e,n)):u1(t)?$3e(t,n):C8(L3e(v0(e)))}function F3e(e){var t=C2(xR(e)),n=["absolute","fixed"].indexOf(ep(e).position)>=0,r=n&&yc(e)?iT(e):e;return u1(r)?t.filter(function(i){return u1(i)&&Noe(i,r)&&zf(i)!=="body"}):[]}function B3e(e,t,n,r){var i=t==="clippingParents"?F3e(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,u){var c=$Y(e,u,r);return l.top=Jg(c.top,l.top),l.right=V_(c.right,l.right),l.bottom=V_(c.bottom,l.bottom),l.left=Jg(c.left,l.left),l},$Y(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Foe(e){var t=e.reference,n=e.element,r=e.placement,i=r?Pf(r):null,a=r?qv(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case Tl:l={x:s,y:t.y-n.height};break;case Cc:l={x:s,y:t.y+t.height};break;case Ac:l={x:t.x+t.width,y:o};break;case kl:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?oF(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case Vv:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Aw:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function _w(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?a3e:o,u=n.rootBoundary,c=u===void 0?Roe:u,f=n.elementContext,h=f===void 0?dE:f,g=n.altBoundary,b=g===void 0?!1:g,S=n.padding,w=S===void 0?0:S,E=Moe(typeof w!="number"?w:Loe(w,rT)),x=h===dE?s3e:dE,k=e.rects.popper,C=e.elements[b?x:h],R=B3e(u1(C)?C:C.contextElement||v0(e.elements.popper),l,c,s),A=Qv(e.elements.reference),D=Foe({reference:A,element:k,strategy:"absolute",placement:i}),B=C8(Object.assign({},k,D)),L=h===dE?B:A,F={top:R.top-L.top+E.top,bottom:L.bottom-R.bottom+E.bottom,left:R.left-L.left+E.left,right:L.right-R.right+E.right},W=e.modifiersData.offset;if(h===dE&&W){var V=W[i];Object.keys(F).forEach(function(Z){var Q=[Ac,Cc].indexOf(Z)>=0?1:-1,H=[Tl,Cc].indexOf(Z)>=0?"y":"x";F[Z]+=V[H]*Q})}return F}function U3e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Ioe:l,c=qv(r),f=c?o?NY:NY.filter(function(b){return qv(b)===c}):rT,h=f.filter(function(b){return u.indexOf(b)>=0});h.length===0&&(h=f);var g=h.reduce(function(b,S){return b[S]=_w(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[Pf(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function z3e(e){if(Pf(e)===iF)return[];var t=S4(e);return[LY(e),t,LY(t)]}function j3e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,S=n.allowedAutoPlacements,w=t.options.placement,E=Pf(w),x=E===w,k=l||(x||!b?[S4(w)]:z3e(w)),C=[w].concat(k).reduce(function(ye,Oe){return ye.concat(Pf(Oe)===iF?U3e(t,{placement:Oe,boundary:c,rootBoundary:f,padding:u,flipVariations:b,allowedAutoPlacements:S}):Oe)},[]),R=t.rects.reference,A=t.rects.popper,D=new Map,B=!0,L=C[0],F=0;F=0,H=Q?"width":"height",J=_w(t,{placement:W,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),K=Q?Z?Ac:kl:Z?Cc:Tl;R[H]>A[H]&&(K=S4(K));var X=S4(K),te=[];if(a&&te.push(J[V]<=0),o&&te.push(J[K]<=0,J[X]<=0),te.every(function(ye){return ye})){L=W,B=!1;break}D.set(W,te)}if(B)for(var z=b?3:1,Te=function(Oe){var ie=C.find(function(_e){var Ie=D.get(_e);if(Ie)return Ie.slice(0,Oe).every(function(qe){return qe})});if(ie)return L=ie,"break"},be=z;be>0;be--){var ee=Te(be);if(ee==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const H3e={name:"flip",enabled:!0,phase:"main",fn:j3e,requiresIfExists:["offset"],data:{_skip:!1}};function FY(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function BY(e){return[Tl,Ac,Cc,kl].some(function(t){return e[t]>=0})}function V3e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=_w(t,{elementContext:"reference"}),o=_w(t,{altBoundary:!0}),l=FY(s,r),u=FY(o,i,a),c=BY(l),f=BY(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const W3e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V3e};function Q3e(e,t,n){var r=Pf(e),i=[kl,Tl].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[kl,Ac].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function q3e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=Ioe.reduce(function(c,f){return c[f]=Q3e(f,t.rects,a),c},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const G3e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:q3e};function Y3e(e){var t=e.state,n=e.name;t.modifiersData[n]=Foe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Z3e={name:"popperOffsets",enabled:!0,phase:"read",fn:Y3e,data:{}};function X3e(e){return e==="x"?"y":"x"}function K3e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,b=n.tetherOffset,S=b===void 0?0:b,w=_w(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),E=Pf(t.placement),x=qv(t.placement),k=!x,C=oF(E),R=X3e(C),A=t.modifiersData.popperOffsets,D=t.rects.reference,B=t.rects.popper,L=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,F=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(A){if(a){var Z,Q=C==="y"?Tl:kl,H=C==="y"?Cc:Ac,J=C==="y"?"height":"width",K=A[C],X=K+w[Q],te=K-w[H],z=g?-B[J]/2:0,Te=x===Vv?D[J]:B[J],be=x===Vv?-B[J]:-D[J],ee=t.elements.arrow,ye=g&&ee?sF(ee):{width:0,height:0},Oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Poe(),ie=Oe[Q],_e=Oe[H],Ie=k2(0,D[J],ye[J]),qe=k?D[J]/2-z-Ie-ie-F.mainAxis:Te-Ie-ie-F.mainAxis,st=k?-D[J]/2+z+Ie+_e+F.mainAxis:be+Ie+_e+F.mainAxis,Pe=t.elements.arrow&&iT(t.elements.arrow),tt=Pe?C==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,Ve=(Z=W==null?void 0:W[C])!=null?Z:0,Xe=K+qe-Ve-tt,et=K+st-Ve,ft=k2(g?V_(X,Xe):X,K,g?Jg(te,et):te);A[C]=ft,V[C]=ft-K}if(o){var At,Je=C==="x"?Tl:kl,pe=C==="x"?Cc:Ac,le=A[R],he=R==="y"?"height":"width",je=le+w[Je],Ze=le-w[pe],We=[Tl,kl].indexOf(E)!==-1,fe=(At=W==null?void 0:W[R])!=null?At:0,xe=We?je:le-D[he]-B[he]-fe+F.altAxis,ve=We?le+D[he]+B[he]-fe-F.altAxis:Ze,De=g&&We?E3e(xe,le,ve):k2(g?xe:je,le,g?ve:Ze);A[R]=De,V[R]=De-le}t.modifiersData[r]=V}}const J3e={name:"preventOverflow",enabled:!0,phase:"main",fn:K3e,requiresIfExists:["offset"]};function e5e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function t5e(e){return e===ku(e)||!yc(e)?lF(e):e5e(e)}function n5e(e){var t=e.getBoundingClientRect(),n=Wv(t.width)/e.offsetWidth||1,r=Wv(t.height)/e.offsetHeight||1;return n!==1||r!==1}function r5e(e,t,n){n===void 0&&(n=!1);var r=yc(t),i=yc(t)&&n5e(t),a=v0(t),s=Qv(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((zf(t)!=="body"||cF(a))&&(o=t5e(t)),yc(t)?(l=Qv(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=uF(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function i5e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function a5e(e){var t=i5e(e);return g3e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function s5e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function o5e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var UY={placement:"bottom",modifiers:[],strategy:"absolute"};function zY(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(d5e(i)||document.body)},[i,a]),la(()=>{if(s&&!a)return Cw(n,s),()=>{Cw(n,null)}},[n,s,a]),a){if(N.isValidElement(r)){const u={ref:l};return N.cloneElement(r,u)}return I.jsx(N.Fragment,{children:r})}return I.jsx(N.Fragment,{children:s&&T1.createPortal(r,s)})}),Uoe="Popper";function f5e(e){return Aoe(Uoe,e)}Z_e(Uoe,["root"]);const h5e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],p5e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function m5e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function A8(e){return typeof e=="function"?e():e}function g5e(e){return e.nodeType!==void 0}const b5e=()=>Mt({root:["root"]},c_e(f5e)),y5e={},v5e=N.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:h,slotProps:g={},slots:b={},TransitionProps:S}=t,w=at(t,h5e),E=N.useRef(null),x=Jn(E,n),k=N.useRef(null),C=Jn(k,h),R=N.useRef(C);la(()=>{R.current=C},[C]),N.useImperativeHandle(h,()=>k.current,[]);const A=m5e(c,s),[D,B]=N.useState(A),[L,F]=N.useState(A8(i));N.useEffect(()=>{k.current&&k.current.forceUpdate()}),N.useEffect(()=>{i&&F(A8(i))},[i]),la(()=>{if(!L||!u)return;const H=X=>{B(X.placement)};let J=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{H(X)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const K=c5e(L,E.current,M({placement:A},f,{modifiers:J}));return R.current(K),()=>{K.destroy(),R.current(null)}},[L,o,l,u,f,A]);const W={placement:D};S!==null&&(W.TransitionProps=S);const V=b5e(),Z=(r=b.root)!=null?r:"div",Q=cr({elementType:Z,externalSlotProps:g.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:V.root});return I.jsx(Z,M({},Q,{children:typeof a=="function"?a(W):a}))}),O5e=N.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:h=y5e,popperRef:g,style:b,transition:S=!1,slotProps:w={},slots:E={}}=t,x=at(t,p5e),[k,C]=N.useState(!0),R=()=>{C(!1)},A=()=>{C(!0)};if(!l&&!c&&(!S||k))return null;let D;if(a)D=a;else if(r){const F=A8(r);D=F&&g5e(F)?Ei(F).body:Ei(null).body}const B=!c&&l&&(!S||k)?"none":void 0,L=S?{in:c,onEnter:R,onExited:A}:void 0;return I.jsx(Boe,{disablePortal:o,container:D,children:I.jsx(v5e,M({anchorEl:r,direction:s,disablePortal:o,modifiers:u,ref:n,open:S?!k:c,placement:f,popperOptions:h,popperRef:g,slotProps:w,slots:E},x,{style:M({position:"fixed",top:0,left:0,display:B},b),TransitionProps:L,children:i}))})});function S5e(e){const t=Ei(e);return t.body===e?kc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function A2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jY(e){return parseInt(kc(e).getComputedStyle(e).paddingRight,10)||0}function E5e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function HY(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!E5e(s);o&&l&&A2(s,i)})}function mN(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function w5e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(S5e(r)){const s=coe(Ei(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${jY(r)+s}px`;const o=Ei(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${jY(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Ei(r).body;else{const s=r.parentElement,o=kc(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function x5e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class T5e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&A2(t.modalRef,!1);const i=x5e(n);HY(n,t.mount,t.modalRef,i,!0);const a=mN(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=mN(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=w5e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=mN(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&A2(t.modalRef,n),HY(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&A2(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function k5e(e){return typeof e=="function"?e():e}function C5e(e){return e?e.props.hasOwnProperty("in"):!1}const A5e=new T5e;function _5e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=A5e,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:u,open:c,rootRef:f}=e,h=N.useRef({}),g=N.useRef(null),b=N.useRef(null),S=Jn(b,f),[w,E]=N.useState(!c),x=C5e(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const C=()=>Ei(g.current),R=()=>(h.current.modalRef=b.current,h.current.mount=g.current,h.current),A=()=>{i.mount(R(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},D=on(()=>{const J=k5e(t)||C().body;i.add(R(),J),b.current&&A()}),B=N.useCallback(()=>i.isTopModal(R()),[i]),L=on(J=>{g.current=J,J&&(c&&B()?A():b.current&&A2(b.current,k))}),F=N.useCallback(()=>{i.remove(R(),k)},[k,i]);N.useEffect(()=>()=>{F()},[F]),N.useEffect(()=>{c?D():(!x||!a)&&F()},[c,F,x,a,D]);const W=J=>K=>{var X;(X=J.onKeyDown)==null||X.call(J,K),!(K.key!=="Escape"||K.which===229||!B())&&(n||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},V=J=>K=>{var X;(X=J.onClick)==null||X.call(J,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(J={})=>{const K=T2(e);delete K.onTransitionEnter,delete K.onTransitionExited;const X=M({},K,J);return M({role:"presentation"},X,{onKeyDown:W(X),ref:S})},getBackdropProps:(J={})=>{const K=J;return M({"aria-hidden":!0},K,{onClick:V(K),open:c})},getTransitionProps:()=>{const J=()=>{E(!1),s&&s()},K=()=>{E(!0),o&&o(),a&&F()};return{onEnter:B_(J,l==null?void 0:l.props.onEnter),onExited:B_(K,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:L,isTopModal:B,exited:w,hasTransition:x}}const R5e=2;function zoe(e,t){return e-t}function VY(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},M5e=e=>e;let HC;function QY(){return HC===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?HC=CSS.supports("touch-action","none"):HC=!0),HC}function L5e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:u,onChange:c,onChangeCommitted:f,orientation:h="horizontal",rootRef:g,scale:b=M5e,step:S=1,tabIndex:w,value:E}=e,x=N.useRef(),[k,C]=N.useState(-1),[R,A]=N.useState(-1),[D,B]=N.useState(!1),L=N.useRef(0),[F,W]=ws({controlled:E,default:n??l,name:"Slider"}),V=c&&((fe,xe,ve)=>{const De=fe.nativeEvent||fe,$e=new De.constructor(De.type,De);Object.defineProperty($e,"target",{writable:!0,value:{value:xe,name:u}}),c($e,xe,ve)}),Z=Array.isArray(F);let Q=Z?F.slice().sort(zoe):[F];Q=Q.map(fe=>fe==null?l:ry(fe,l,o));const H=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((fe,xe)=>({value:l+S*xe})):s||[],J=H.map(fe=>fe.value),{isFocusVisibleRef:K,onBlur:X,onFocus:te,ref:z}=cR(),[Te,be]=N.useState(-1),ee=N.useRef(),ye=Jn(z,ee),Oe=Jn(g,ye),ie=fe=>xe=>{var ve;const De=Number(xe.currentTarget.getAttribute("data-index"));te(xe),K.current===!0&&be(De),A(De),fe==null||(ve=fe.onFocus)==null||ve.call(fe,xe)},_e=fe=>xe=>{var ve;X(xe),K.current===!1&&be(-1),A(-1),fe==null||(ve=fe.onBlur)==null||ve.call(fe,xe)};la(()=>{if(r&&ee.current.contains(document.activeElement)){var fe;(fe=document.activeElement)==null||fe.blur()}},[r]),r&&k!==-1&&C(-1),r&&Te!==-1&&be(-1);const Ie=fe=>xe=>{var ve;(ve=fe.onChange)==null||ve.call(fe,xe);const De=Number(xe.currentTarget.getAttribute("data-index")),$e=Q[De],vt=J.indexOf($e);let Wt=xe.target.valueAsNumber;if(H&&S==null){const Kt=J[J.length-1];Wt>Kt?Wt=Kt:Wt{const{current:ve}=ee,{width:De,height:$e,bottom:vt,left:Wt}=ve.getBoundingClientRect();let Kt;st.indexOf("vertical")===0?Kt=(vt-fe.y)/$e:Kt=(fe.x-Wt)/De,st.indexOf("-reverse")!==-1&&(Kt=1-Kt);let gt;if(gt=I5e(Kt,l,o),S)gt=N5e(gt,S,l);else{const ut=VY(J,gt);gt=J[ut]}gt=ry(gt,l,o);let Gt=0;if(Z){xe?Gt=qe.current:Gt=VY(Q,gt),i&&(gt=ry(gt,Q[Gt-1]||-1/0,Q[Gt+1]||1/0));const ut=gt;gt=WY({values:Q,newValue:gt,index:Gt}),i&&xe||(Gt=gt.indexOf(ut),qe.current=Gt)}return{newValue:gt,activeIndex:Gt}},tt=on(fe=>{const xe=UC(fe,x);if(!xe)return;if(L.current+=1,fe.type==="mousemove"&&fe.buttons===0){Ve(fe);return}const{newValue:ve,activeIndex:De}=Pe({finger:xe,move:!0});zC({sliderRef:ee,activeIndex:De,setActive:C}),W(ve),!D&&L.current>R5e&&B(!0),V&&!jC(ve,F)&&V(fe,ve,De)}),Ve=on(fe=>{const xe=UC(fe,x);if(B(!1),!xe)return;const{newValue:ve}=Pe({finger:xe,move:!0});C(-1),fe.type==="touchend"&&A(-1),f&&f(fe,ve),x.current=void 0,et()}),Xe=on(fe=>{if(r)return;QY()||fe.preventDefault();const xe=fe.changedTouches[0];xe!=null&&(x.current=xe.identifier);const ve=UC(fe,x);if(ve!==!1){const{newValue:$e,activeIndex:vt}=Pe({finger:ve});zC({sliderRef:ee,activeIndex:vt,setActive:C}),W($e),V&&!jC($e,F)&&V(fe,$e,vt)}L.current=0;const De=Ei(ee.current);De.addEventListener("touchmove",tt,{passive:!0}),De.addEventListener("touchend",Ve,{passive:!0})}),et=N.useCallback(()=>{const fe=Ei(ee.current);fe.removeEventListener("mousemove",tt),fe.removeEventListener("mouseup",Ve),fe.removeEventListener("touchmove",tt),fe.removeEventListener("touchend",Ve)},[Ve,tt]);N.useEffect(()=>{const{current:fe}=ee;return fe.addEventListener("touchstart",Xe,{passive:QY()}),()=>{fe.removeEventListener("touchstart",Xe),et()}},[et,Xe]),N.useEffect(()=>{r&&et()},[r,et]);const ft=fe=>xe=>{var ve;if((ve=fe.onMouseDown)==null||ve.call(fe,xe),r||xe.defaultPrevented||xe.button!==0)return;xe.preventDefault();const De=UC(xe,x);if(De!==!1){const{newValue:vt,activeIndex:Wt}=Pe({finger:De});zC({sliderRef:ee,activeIndex:Wt,setActive:C}),W(vt),V&&!jC(vt,F)&&V(xe,vt,Wt)}L.current=0;const $e=Ei(ee.current);$e.addEventListener("mousemove",tt,{passive:!0}),$e.addEventListener("mouseup",Ve)},At=W_(Z?Q[0]:l,l,o),Je=W_(Q[Q.length-1],l,o)-At,pe=(fe={})=>{const xe=T2(fe),ve={onMouseDown:ft(xe||{})},De=M({},xe,ve);return M({},fe,{ref:Oe},De)},le=fe=>xe=>{var ve;(ve=fe.onMouseOver)==null||ve.call(fe,xe);const De=Number(xe.currentTarget.getAttribute("data-index"));A(De)},he=fe=>xe=>{var ve;(ve=fe.onMouseLeave)==null||ve.call(fe,xe),A(-1)};return{active:k,axis:st,axisProps:P5e,dragging:D,focusedThumbIndex:Te,getHiddenInputProps:(fe={})=>{var xe;const ve=T2(fe),De={onChange:Ie(ve||{}),onFocus:ie(ve||{}),onBlur:_e(ve||{})},$e=M({},ve,De);return M({tabIndex:w,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":b(o),"aria-valuemin":b(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(xe=e.step)!=null?xe:void 0,disabled:r},fe,$e,{style:M({},SCe,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:pe,getThumbProps:(fe={})=>{const xe=T2(fe),ve={onMouseOver:le(xe||{}),onMouseLeave:he(xe||{})};return M({},fe,xe,ve)},marks:H,open:R,range:Z,rootRef:Oe,trackLeap:Je,trackOffset:At,values:Q,getThumbStyle:fe=>({pointerEvents:k!==-1&&k!==fe?"none":void 0})}}const $5e=["onChange","maxRows","minRows","style","value"];function VC(e){return parseInt(e,10)||0}const F5e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function qY(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const joe=N.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=at(t,$5e),{current:u}=N.useRef(o!=null),c=N.useRef(null),f=Jn(n,c),h=N.useRef(null),g=N.useRef(0),[b,S]=N.useState({outerHeightStyle:0}),w=N.useCallback(()=>{const C=c.current,A=kc(C).getComputedStyle(C);if(A.width==="0px")return{outerHeightStyle:0};const D=h.current;D.style.width=A.width,D.value=C.value||t.placeholder||"x",D.value.slice(-1)===` +`&&(D.value+=" ");const B=A.boxSizing,L=VC(A.paddingBottom)+VC(A.paddingTop),F=VC(A.borderBottomWidth)+VC(A.borderTopWidth),W=D.scrollHeight;D.value="x";const V=D.scrollHeight;let Z=W;a&&(Z=Math.max(Number(a)*V,Z)),i&&(Z=Math.min(Number(i)*V,Z)),Z=Math.max(Z,V);const Q=Z+(B==="border-box"?L+F:0),H=Math.abs(Z-W)<=1;return{outerHeightStyle:Q,overflow:H}},[i,a,t.placeholder]),E=(C,R)=>{const{outerHeightStyle:A,overflow:D}=R;return g.current<20&&(A>0&&Math.abs((C.outerHeightStyle||0)-A)>1||C.overflow!==D)?(g.current+=1,{overflow:D,outerHeightStyle:A}):C},x=N.useCallback(()=>{const C=w();qY(C)||S(R=>E(R,C))},[w]);la(()=>{const C=()=>{const W=w();qY(W)||T1.flushSync(()=>{S(V=>E(V,W))})},R=()=>{g.current=0,C()};let A;const D=SO(R),B=c.current,L=kc(B);L.addEventListener("resize",D);let F;return typeof ResizeObserver<"u"&&(F=new ResizeObserver(R),F.observe(B)),()=>{D.clear(),cancelAnimationFrame(A),L.removeEventListener("resize",D),F&&F.disconnect()}},[w]),la(()=>{x()}),N.useEffect(()=>{g.current=0},[o]);const k=C=>{g.current=0,u||x(),r&&r(C)};return I.jsxs(N.Fragment,{children:[I.jsx("textarea",M({value:o,onChange:k,ref:f,rows:a,style:M({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},s)},l)),I.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:M({},F5e.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function GY(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function B5e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:u})=>{let c=s?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=GY(c));const f=c?o.filter(h=>{let g=(a||u)(h);return n&&(g=g.toLowerCase()),t&&(g=GY(g)),i==="start"?g.indexOf(c)===0:g.indexOf(c)>-1}):o;return typeof r=="number"?f.slice(0,r):f}}function gN(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function j5e(e){const{unstable_isActiveElementInListbox:t=z5e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:g,disabledItemsFocusable:b=!1,disableListWrap:S=!1,filterOptions:w=U5e,filterSelectedOptions:E=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:C,getOptionLabel:R=nt=>{var Be;return(Be=nt.label)!=null?Be:nt},groupBy:A,handleHomeEndKeys:D=!e.freeSolo,id:B,includeInputInList:L=!1,inputValue:F,isOptionEqualToValue:W=(nt,Be)=>nt===Be,multiple:V=!1,onChange:Z,onClose:Q,onHighlightChange:H,onInputChange:J,onOpen:K,open:X,openOnFocus:te=!1,options:z,readOnly:Te=!1,selectOnFocus:be=!e.freeSolo,value:ee}=e,ye=Td(B);let Oe=R;Oe=nt=>{const Be=R(nt);return typeof Be!="string"?String(Be):Be};const ie=N.useRef(!1),_e=N.useRef(!0),Ie=N.useRef(null),qe=N.useRef(null),[st,Pe]=N.useState(null),[tt,Ve]=N.useState(-1),Xe=i?0:-1,et=N.useRef(Xe),[ft,At]=ws({controlled:ee,default:c,name:u}),[Je,pe]=ws({controlled:F,default:"",name:u,state:"inputValue"}),[le,he]=N.useState(!1),je=N.useCallback((nt,Be)=>{if(!(V?ft.length!(E&&(V?ft:[ft]).some(Be=>Be!==null&&W(nt,Be)))),{inputValue:ve&&fe?"":Je,getOptionLabel:Oe}):[],vt=yCe({filteredOptions:$e,value:ft,inputValue:Je});N.useEffect(()=>{const nt=ft!==vt.value;le&&!nt||x&&!nt||je(null,ft)},[ft,je,le,vt.value,x]);const Wt=Ze&&$e.length>0&&!Te,Kt=on(nt=>{nt===-1?Ie.current.focus():st.querySelector(`[data-tag-index="${nt}"]`).focus()});N.useEffect(()=>{V&&tt>ft.length-1&&(Ve(-1),Kt(-1))},[ft,V,tt,Kt]);function gt(nt,Be){if(!qe.current||nt<0||nt>=$e.length)return-1;let Dt=nt;for(;;){const en=qe.current.querySelector(`[data-option-index="${Dt}"]`),Vn=b?!1:!en||en.disabled||en.getAttribute("aria-disabled")==="true";if(en&&en.hasAttribute("tabindex")&&!Vn)return Dt;if(Be==="next"?Dt=(Dt+1)%$e.length:Dt=(Dt-1+$e.length)%$e.length,Dt===nt)return-1}}const Gt=on(({event:nt,index:Be,reason:Dt="auto"})=>{if(et.current=Be,Be===-1?Ie.current.removeAttribute("aria-activedescendant"):Ie.current.setAttribute("aria-activedescendant",`${ye}-option-${Be}`),H&&H(nt,Be===-1?null:$e[Be],Dt),!qe.current)return;const en=qe.current.querySelector(`[role="option"].${n}-focused`);en&&(en.classList.remove(`${n}-focused`),en.classList.remove(`${n}-focusVisible`));let Vn=qe.current;if(qe.current.getAttribute("role")!=="listbox"&&(Vn=qe.current.parentElement.querySelector('[role="listbox"]')),!Vn)return;if(Be===-1){Vn.scrollTop=0;return}const Zr=qe.current.querySelector(`[data-option-index="${Be}"]`);if(Zr&&(Zr.classList.add(`${n}-focused`),Dt==="keyboard"&&Zr.classList.add(`${n}-focusVisible`),Vn.scrollHeight>Vn.clientHeight&&Dt!=="mouse"&&Dt!=="touch")){const wr=Zr,In=Vn.clientHeight+Vn.scrollTop,Wn=wr.offsetTop+wr.offsetHeight;Wn>In?Vn.scrollTop=Wn-Vn.clientHeight:wr.offsetTop-wr.offsetHeight*(A?1.3:0){if(!De)return;const Zr=gt((()=>{const wr=$e.length-1;if(Be==="reset")return Xe;if(Be==="start")return 0;if(Be==="end")return wr;const In=et.current+Be;return In<0?In===-1&&L?-1:S&&et.current!==-1||Math.abs(Be)>1?0:wr:In>wr?In===wr+1&&L?-1:S||Math.abs(Be)>1?wr:0:In})(),Dt);if(Gt({index:Zr,reason:en,event:nt}),r&&Be!=="reset")if(Zr===-1)Ie.current.value=Je;else{const wr=Oe($e[Zr]);Ie.current.value=wr,wr.toLowerCase().indexOf(Je.toLowerCase())===0&&Je.length>0&&Ie.current.setSelectionRange(Je.length,wr.length)}}),wt=()=>{const nt=(Be,Dt)=>{const en=Be?Oe(Be):"",Vn=Dt?Oe(Dt):"";return en===Vn};if(et.current!==-1&&vt.filteredOptions&&vt.filteredOptions.length!==$e.length&&vt.inputValue===Je&&(V?ft.length===vt.value.length&&vt.value.every((Be,Dt)=>Oe(ft[Dt])===Oe(Be)):nt(vt.value,ft))){const Be=vt.filteredOptions[et.current];if(Be&&$e.some(en=>Oe(en)===Oe(Be)))return!0}return!1},Xt=N.useCallback(()=>{if(!De||wt())return;const nt=V?ft[0]:ft;if($e.length===0||nt==null){ut({diff:"reset"});return}if(qe.current){if(nt!=null){const Be=$e[et.current];if(V&&Be&&gN(ft,en=>W(Be,en))!==-1)return;const Dt=gN($e,en=>W(en,nt));Dt===-1?ut({diff:"reset"}):Gt({index:Dt});return}if(et.current>=$e.length-1){Gt({index:$e.length-1});return}Gt({index:et.current})}},[$e.length,V?!1:ft,E,ut,Gt,De,Je,V]),Ln=on(nt=>{Cw(qe,nt),nt&&Xt()});N.useEffect(()=>{Xt()},[Xt]);const $n=nt=>{Ze||(We(!0),xe(!0),K&&K(nt))},jn=(nt,Be)=>{Ze&&(We(!1),Q&&Q(nt,Be))},ar=(nt,Be,Dt,en)=>{if(V){if(ft.length===Be.length&&ft.every((Vn,Zr)=>Vn===Be[Zr]))return}else if(ft===Be)return;Z&&Z(nt,Be,Dt,en),At(Be)},Ur=N.useRef(!1),Me=(nt,Be,Dt="selectOption",en="options")=>{let Vn=Dt,Zr=Be;if(V){Zr=Array.isArray(ft)?ft.slice():[];const wr=gN(Zr,In=>W(Be,In));wr===-1?Zr.push(Be):en!=="freeSolo"&&(Zr.splice(wr,1),Vn="removeOption")}je(nt,Zr),ar(nt,Zr,Vn,{option:Be}),!h&&(!nt||!nt.ctrlKey&&!nt.metaKey)&&jn(nt,Vn),(s===!0||s==="touch"&&Ur.current||s==="mouse"&&!Ur.current)&&Ie.current.blur()};function Ue(nt,Be){if(nt===-1)return-1;let Dt=nt;for(;;){if(Be==="next"&&Dt===ft.length||Be==="previous"&&Dt===-1)return-1;const en=st.querySelector(`[data-tag-index="${Dt}"]`);if(!en||!en.hasAttribute("tabindex")||en.disabled||en.getAttribute("aria-disabled")==="true")Dt+=Be==="next"?1:-1;else return Dt}}const lt=(nt,Be)=>{if(!V)return;Je===""&&jn(nt,"toggleInput");let Dt=tt;tt===-1?Je===""&&Be==="previous"&&(Dt=ft.length-1):(Dt+=Be==="next"?1:-1,Dt<0&&(Dt=0),Dt===ft.length&&(Dt=-1)),Dt=Ue(Dt,Be),Ve(Dt),Kt(Dt)},Nt=nt=>{ie.current=!0,pe(""),J&&J(nt,"","clear"),ar(nt,V?[]:null,"clear")},Qt=nt=>Be=>{if(nt.onKeyDown&&nt.onKeyDown(Be),!Be.defaultMuiPrevented&&(tt!==-1&&["ArrowLeft","ArrowRight"].indexOf(Be.key)===-1&&(Ve(-1),Kt(-1)),Be.which!==229))switch(Be.key){case"Home":De&&D&&(Be.preventDefault(),ut({diff:"start",direction:"next",reason:"keyboard",event:Be}));break;case"End":De&&D&&(Be.preventDefault(),ut({diff:"end",direction:"previous",reason:"keyboard",event:Be}));break;case"PageUp":Be.preventDefault(),ut({diff:-YY,direction:"previous",reason:"keyboard",event:Be}),$n(Be);break;case"PageDown":Be.preventDefault(),ut({diff:YY,direction:"next",reason:"keyboard",event:Be}),$n(Be);break;case"ArrowDown":Be.preventDefault(),ut({diff:1,direction:"next",reason:"keyboard",event:Be}),$n(Be);break;case"ArrowUp":Be.preventDefault(),ut({diff:-1,direction:"previous",reason:"keyboard",event:Be}),$n(Be);break;case"ArrowLeft":lt(Be,"previous");break;case"ArrowRight":lt(Be,"next");break;case"Enter":if(et.current!==-1&&De){const Dt=$e[et.current],en=k?k(Dt):!1;if(Be.preventDefault(),en)return;Me(Be,Dt,"selectOption"),r&&Ie.current.setSelectionRange(Ie.current.value.length,Ie.current.value.length)}else x&&Je!==""&&ve===!1&&(V&&Be.preventDefault(),Me(Be,Je,"createOption","freeSolo"));break;case"Escape":De?(Be.preventDefault(),Be.stopPropagation(),jn(Be,"escape")):l&&(Je!==""||V&&ft.length>0)&&(Be.preventDefault(),Be.stopPropagation(),Nt(Be));break;case"Backspace":if(V&&!Te&&Je===""&&ft.length>0){const Dt=tt===-1?ft.length-1:tt,en=ft.slice();en.splice(Dt,1),ar(Be,en,"removeOption",{option:ft[Dt]})}break;case"Delete":if(V&&!Te&&Je===""&&ft.length>0&&tt!==-1){const Dt=tt,en=ft.slice();en.splice(Dt,1),ar(Be,en,"removeOption",{option:ft[Dt]})}break}},Hn=nt=>{he(!0),te&&!ie.current&&$n(nt)},yn=nt=>{if(t(qe)){Ie.current.focus();return}he(!1),_e.current=!0,ie.current=!1,a&&et.current!==-1&&De?Me(nt,$e[et.current],"blur"):a&&x&&Je!==""?Me(nt,Je,"blur","freeSolo"):o&&je(nt,ft),jn(nt,"blur")},rn=nt=>{const Be=nt.target.value;Je!==Be&&(pe(Be),xe(!1),J&&J(nt,Be,"input")),Be===""?!f&&!V&&ar(nt,null,"clear"):$n(nt)},Yt=nt=>{const Be=Number(nt.currentTarget.getAttribute("data-option-index"));et.current!==Be&&Gt({event:nt,index:Be,reason:"mouse"})},xn=nt=>{Gt({event:nt,index:Number(nt.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ur.current=!0},Qe=nt=>{const Be=Number(nt.currentTarget.getAttribute("data-option-index"));Me(nt,$e[Be],"selectOption"),Ur.current=!1},Ye=nt=>Be=>{const Dt=ft.slice();Dt.splice(nt,1),ar(Be,Dt,"removeOption",{option:ft[nt]})},ot=nt=>{Ze?jn(nt,"toggleInput"):$n(nt)},yt=nt=>{nt.currentTarget.contains(nt.target)&&nt.target.getAttribute("id")!==ye&&nt.preventDefault()},Yn=nt=>{nt.currentTarget.contains(nt.target)&&(Ie.current.focus(),be&&_e.current&&Ie.current.selectionEnd-Ie.current.selectionStart===0&&Ie.current.select(),_e.current=!1)},pn=nt=>{!g&&(Je===""||!Ze)&&ot(nt)};let Fn=x&&Je.length>0;Fn=Fn||(V?ft.length>0:ft!==null);let Pi=$e;return A&&(Pi=$e.reduce((nt,Be,Dt)=>{const en=A(Be);return nt.length>0&&nt[nt.length-1].group===en?nt[nt.length-1].options.push(Be):nt.push({key:Dt,index:Dt,group:en,options:[Be]}),nt},[])),g&&le&&yn(),{getRootProps:(nt={})=>M({"aria-owns":Wt?`${ye}-listbox`:null},nt,{onKeyDown:Qt(nt),onMouseDown:yt,onClick:Yn}),getInputLabelProps:()=>({id:`${ye}-label`,htmlFor:ye}),getInputProps:()=>({id:ye,value:Je,onBlur:yn,onFocus:Hn,onChange:rn,onMouseDown:pn,"aria-activedescendant":De?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Wt?`${ye}-listbox`:void 0,"aria-expanded":Wt,autoComplete:"off",ref:Ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Nt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ot}),getTagProps:({index:nt})=>M({key:nt,"data-tag-index":nt,tabIndex:-1},!Te&&{onDelete:Ye(nt)}),getListboxProps:()=>({role:"listbox",id:`${ye}-listbox`,"aria-labelledby":`${ye}-label`,ref:Ln,onMouseDown:nt=>{nt.preventDefault()}}),getOptionProps:({index:nt,option:Be})=>{var Dt;const en=(V?ft:[ft]).some(Zr=>Zr!=null&&W(Be,Zr)),Vn=k?k(Be):!1;return{key:(Dt=C==null?void 0:C(Be))!=null?Dt:Oe(Be),tabIndex:-1,role:"option",id:`${ye}-option-${nt}`,onMouseMove:Yt,onClick:Qe,onTouchStart:xn,"data-option-index":nt,"aria-disabled":Vn,"aria-selected":en}},id:ye,inputValue:Je,value:ft,dirty:Fn,expanded:De&&st,popupOpen:De,focused:le||tt!==-1,anchorEl:st,setAnchorEl:Pe,focusedTag:tt,groupedOptions:Pi}}const H5e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],V5e=Re(O5e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W5e=N.forwardRef(function(t,n){var r;const i=vR(),a=_t({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:h,modifiers:g,open:b,placement:S,popperOptions:w,popperRef:E,transition:x,slots:k,slotProps:C}=a,R=at(a,H5e),A=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,D=M({anchorEl:s,container:c,disablePortal:f,keepMounted:h,modifiers:g,open:b,placement:S,popperOptions:w,popperRef:E,transition:x},R);return I.jsx(V5e,M({as:o,direction:i==null?void 0:i.direction,slots:{root:A},slotProps:C??u},D,{ref:n}))}),wO=W5e;function Q5e(e){return $t("MuiListSubheader",e)}Ft("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const q5e=["className","color","component","disableGutters","disableSticky","inset"],G5e=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${ht(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return Mt(s,Q5e,t)},Y5e=Re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ht(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>M({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Hoe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:u=!1}=r,c=at(r,q5e),f=M({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:u}),h=G5e(f);return I.jsx(Y5e,M({as:s,className:dt(h.root,i),ref:n,ownerState:f},c))});Hoe.muiSkipListHighlight=!0;const Z5e=Hoe,X5e=Wa(I.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function K5e(e){return $t("MuiChip",e)}const J5e=Ft("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Xr=J5e,eRe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],tRe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,u={root:["root",l,n&&"disabled",`size${ht(r)}`,`color${ht(i)}`,o&&"clickable",o&&`clickableColor${ht(i)}`,s&&"deletable",s&&`deletableColor${ht(i)}`,`${l}${ht(i)}`],label:["label",`label${ht(r)}`],avatar:["avatar",`avatar${ht(r)}`,`avatarColor${ht(i)}`],icon:["icon",`icon${ht(r)}`,`iconColor${ht(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ht(r)}`,`deleteIconColor${ht(i)}`,`deleteIcon${ht(l)}Color${ht(i)}`]};return Mt(u,K5e,t)},nRe=Re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${Xr.avatar}`]:t.avatar},{[`& .${Xr.avatar}`]:t[`avatar${ht(o)}`]},{[`& .${Xr.avatar}`]:t[`avatarColor${ht(r)}`]},{[`& .${Xr.icon}`]:t.icon},{[`& .${Xr.icon}`]:t[`icon${ht(o)}`]},{[`& .${Xr.icon}`]:t[`iconColor${ht(i)}`]},{[`& .${Xr.deleteIcon}`]:t.deleteIcon},{[`& .${Xr.deleteIcon}`]:t[`deleteIcon${ht(o)}`]},{[`& .${Xr.deleteIcon}`]:t[`deleteIconColor${ht(r)}`]},{[`& .${Xr.deleteIcon}`]:t[`deleteIcon${ht(l)}Color${ht(r)}`]},t.root,t[`size${ht(o)}`],t[`color${ht(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${ht(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ht(r)}`],t[l],t[`${l}${ht(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return M({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Xr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Xr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Xr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Xr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Xr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Xr.icon}`]:M({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&M({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Xr.deleteIcon}`]:M({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Rn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Rn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Rn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Xr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Xr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>M({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Xr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Xr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>M({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Xr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Xr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Xr.avatar}`]:{marginLeft:4},[`& .${Xr.avatarSmall}`]:{marginLeft:2},[`& .${Xr.icon}`]:{marginLeft:4},[`& .${Xr.iconSmall}`]:{marginLeft:2},[`& .${Xr.deleteIcon}`]:{marginRight:5},[`& .${Xr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Rn(e.palette[t.color].main,.7)}`,[`&.${Xr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Xr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Xr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Rn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),rRe=Re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ht(r)}`]]}})(({ownerState:e})=>M({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function ZY(e){return e.key==="Backspace"||e.key==="Delete"}const iRe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:h,onClick:g,onDelete:b,onKeyDown:S,onKeyUp:w,size:E="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:C=!1}=r,R=at(r,eRe),A=N.useRef(null),D=Jn(A,n),B=te=>{te.stopPropagation(),b&&b(te)},L=te=>{te.currentTarget===te.target&&ZY(te)&&te.preventDefault(),S&&S(te)},F=te=>{te.currentTarget===te.target&&(b&&ZY(te)?b(te):te.key==="Escape"&&A.current&&A.current.blur()),w&&w(te)},W=s!==!1&&g?!0:s,V=W||b?Tu:l||"div",Z=M({},r,{component:V,disabled:c,size:E,color:o,iconColor:N.isValidElement(f)&&f.props.color||o,onDelete:!!b,clickable:W,variant:x}),Q=tRe(Z),H=V===Tu?M({component:l||"div",focusVisibleClassName:Q.focusVisible},b&&{disableRipple:!0}):{};let J=null;b&&(J=u&&N.isValidElement(u)?N.cloneElement(u,{className:dt(u.props.className,Q.deleteIcon),onClick:B}):I.jsx(X5e,{className:dt(Q.deleteIcon),onClick:B}));let K=null;i&&N.isValidElement(i)&&(K=N.cloneElement(i,{className:dt(Q.avatar,i.props.className)}));let X=null;return f&&N.isValidElement(f)&&(X=N.cloneElement(f,{className:dt(Q.icon,f.props.className)})),I.jsxs(nRe,M({as:V,className:dt(Q.root,a),disabled:W&&c?!0:void 0,onClick:g,onKeyDown:L,onKeyUp:F,ref:D,tabIndex:C&&c?-1:k,ownerState:Z},H,R,{children:[K||X,I.jsx(rRe,{className:dt(Q.label),ownerState:Z,children:h}),J]}))}),dF=iRe;function O0({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const aRe=N.createContext(void 0),TR=aRe;function Vf(){return N.useContext(TR)}function Voe(e){return I.jsx(SAe,M({},e,{defaultTheme:ER,themeId:s1}))}function XY(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Q_(e,t=!1){return e&&(XY(e.value)&&e.value!==""||t&&XY(e.defaultValue)&&e.defaultValue!=="")}function sRe(e){return e.startAdornment}function oRe(e){return $t("MuiInputBase",e)}const lRe=Ft("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),lu=lRe,uRe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],kR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ht(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},CR=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},cRe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:h,startAdornment:g,type:b}=e,S={root:["root",`color${ht(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",h&&h!=="medium"&&`size${ht(h)}`,c&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Mt(S,oRe,t)},AR=Re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:kR})(({theme:e,ownerState:t})=>M({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${lu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&M({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_R=Re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:CR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=M({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return M({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${lu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${lu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),dRe=I.jsx(Voe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fRe=N.forwardRef(function(t,n){var r;const i=_t({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:g,endAdornment:b,fullWidth:S=!1,id:w,inputComponent:E="input",inputProps:x={},inputRef:k,maxRows:C,minRows:R,multiline:A=!1,name:D,onBlur:B,onChange:L,onClick:F,onFocus:W,onKeyDown:V,onKeyUp:Z,placeholder:Q,readOnly:H,renderSuffix:J,rows:K,slotProps:X={},slots:te={},startAdornment:z,type:Te="text",value:be}=i,ee=at(i,uRe),ye=x.value!=null?x.value:be,{current:Oe}=N.useRef(ye!=null),ie=N.useRef(),_e=N.useCallback(De=>{},[]),Ie=Jn(ie,k,x.ref,_e),[qe,st]=N.useState(!1),Pe=Vf(),tt=O0({props:i,muiFormControl:Pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});tt.focused=Pe?Pe.focused:qe,N.useEffect(()=>{!Pe&&h&&qe&&(st(!1),B&&B())},[Pe,h,qe,B]);const Ve=Pe&&Pe.onFilled,Xe=Pe&&Pe.onEmpty,et=N.useCallback(De=>{Q_(De)?Ve&&Ve():Xe&&Xe()},[Ve,Xe]);la(()=>{Oe&&et({value:ye})},[ye,et,Oe]);const ft=De=>{if(tt.disabled){De.stopPropagation();return}W&&W(De),x.onFocus&&x.onFocus(De),Pe&&Pe.onFocus?Pe.onFocus(De):st(!0)},At=De=>{B&&B(De),x.onBlur&&x.onBlur(De),Pe&&Pe.onBlur?Pe.onBlur(De):st(!1)},Je=(De,...$e)=>{if(!Oe){const vt=De.target||ie.current;if(vt==null)throw new Error(Jm(1));et({value:vt.value})}x.onChange&&x.onChange(De,...$e),L&&L(De,...$e)};N.useEffect(()=>{et(ie.current)},[]);const pe=De=>{ie.current&&De.currentTarget===De.target&&ie.current.focus(),F&&F(De)};let le=E,he=x;A&&le==="input"&&(K?he=M({type:void 0,minRows:K,maxRows:K},he):he=M({type:void 0,maxRows:C,minRows:R},he),le=joe);const je=De=>{et(De.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};N.useEffect(()=>{Pe&&Pe.setAdornedStart(!!z)},[Pe,z]);const Ze=M({},i,{color:tt.color||"primary",disabled:tt.disabled,endAdornment:b,error:tt.error,focused:tt.focused,formControl:Pe,fullWidth:S,hiddenLabel:tt.hiddenLabel,multiline:A,size:tt.size,startAdornment:z,type:Te}),We=cRe(Ze),fe=te.root||u.Root||AR,xe=X.root||c.root||{},ve=te.input||u.Input||_R;return he=M({},he,(r=X.input)!=null?r:c.input),I.jsxs(N.Fragment,{children:[!g&&dRe,I.jsxs(fe,M({},xe,!Nf(fe)&&{ownerState:M({},Ze,xe.ownerState)},{ref:n,onClick:pe},ee,{className:dt(We.root,xe.className,l,H&&"MuiInputBase-readOnly"),children:[z,I.jsx(TR.Provider,{value:null,children:I.jsx(ve,M({ownerState:Ze,"aria-invalid":tt.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:f,disabled:tt.disabled,id:w,onAnimationStart:je,name:D,placeholder:Q,readOnly:H,required:tt.required,rows:K,value:ye,onKeyDown:V,onKeyUp:Z,type:Te},he,!Nf(ve)&&{as:le,ownerState:M({},Ze,he.ownerState)},{ref:Ie,className:dt(We.input,he.className,H&&"MuiInputBase-readOnly"),onBlur:At,onChange:Je,onFocus:ft}))}),b,J?J(M({},tt,{startAdornment:z})):null]}))]})}),fF=fRe;function hRe(e){return $t("MuiInput",e)}const pRe=M({},lu,Ft("MuiInput",["root","underline","input"])),hm=pRe;function mRe(e){return $t("MuiOutlinedInput",e)}const gRe=M({},lu,Ft("MuiOutlinedInput",["root","notchedOutline","input"])),af=gRe;function bRe(e){return $t("MuiFilledInput",e)}const yRe=M({},lu,Ft("MuiFilledInput",["root","underline","input"])),uu=yRe,Woe=Wa(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function vRe(e){return $t("MuiAutocomplete",e)}const ORe=Ft("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),_r=ORe;var KY,JY;const SRe=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],ERe=["ref"],wRe=["key"],xRe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:u,size:c}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ht(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Mt(f,vRe,t)},TRe=Re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${_r.tag}`]:t.tag},{[`& .${_r.tag}`]:t[`tagSize${ht(o)}`]},{[`& .${_r.inputRoot}`]:t.inputRoot},{[`& .${_r.input}`]:t.input},{[`& .${_r.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>M({[`&.${_r.focused} .${_r.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${_r.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${_r.tag}`]:M({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${_r.inputRoot}`]:{flexWrap:"wrap",[`.${_r.hasPopupIcon}&, .${_r.hasClearIcon}&`]:{paddingRight:30},[`.${_r.hasPopupIcon}.${_r.hasClearIcon}&`]:{paddingRight:56},[`& .${_r.input}`]:{width:0,minWidth:30}},[`& .${hm.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${hm.root}.${lu.sizeSmall}`]:{[`& .${hm.input}`]:{padding:"2px 4px 3px 0"}},[`& .${af.root}`]:{padding:9,[`.${_r.hasPopupIcon}&, .${_r.hasClearIcon}&`]:{paddingRight:39},[`.${_r.hasPopupIcon}.${_r.hasClearIcon}&`]:{paddingRight:65},[`& .${_r.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${_r.endAdornment}`]:{right:9}},[`& .${af.root}.${lu.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${_r.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${uu.root}`]:{paddingTop:19,paddingLeft:8,[`.${_r.hasPopupIcon}&, .${_r.hasClearIcon}&`]:{paddingRight:39},[`.${_r.hasPopupIcon}.${_r.hasClearIcon}&`]:{paddingRight:65},[`& .${uu.input}`]:{padding:"7px 4px"},[`& .${_r.endAdornment}`]:{right:9}},[`& .${uu.root}.${lu.sizeSmall}`]:{paddingBottom:1,[`& .${uu.input}`]:{padding:"2.5px 4px"}},[`& .${lu.hiddenLabel}`]:{paddingTop:8},[`& .${uu.root}.${lu.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${_r.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${uu.root}.${lu.hiddenLabel}.${lu.sizeSmall}`]:{[`& .${_r.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${_r.input}`]:M({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),kRe=Re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),CRe=Re(wa,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),ARe=Re(wa,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>M({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>M({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),_Re=Re(wO,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_r.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>M({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),RRe=Re(Ts,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>M({},e.typography.body1,{overflow:"auto"})),IRe=Re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),DRe=Re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),NRe=Re("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${_r.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${_r.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${_r.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_r.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_r.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),PRe=Re(Z5e,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),MRe=Re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${_r.option}`]:{paddingLeft:24}}),LRe=N.forwardRef(function(t,n){var r,i,a,s;const o=_t({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:f=!1,ChipProps:h,className:g,clearIcon:b=KY||(KY=I.jsx(M_e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:w=!1,clearText:E="Clear",closeText:x="Close",componentsProps:k={},defaultValue:C=o.multiple?[]:null,disableClearable:R=!1,disableCloseOnSelect:A=!1,disabled:D=!1,disabledItemsFocusable:B=!1,disableListWrap:L=!1,disablePortal:F=!1,filterSelectedOptions:W=!1,forcePopupIcon:V="auto",freeSolo:Z=!1,fullWidth:Q=!1,getLimitTagsText:H=Be=>`+${Be}`,getOptionLabel:J,groupBy:K,handleHomeEndKeys:X=!o.freeSolo,includeInputInList:te=!1,limitTags:z=-1,ListboxComponent:Te="ul",ListboxProps:be,loading:ee=!1,loadingText:ye="Loading…",multiple:Oe=!1,noOptionsText:ie="No options",openOnFocus:_e=!1,openText:Ie="Open",PaperComponent:qe=Ts,PopperComponent:st=wO,popupIcon:Pe=JY||(JY=I.jsx(Woe,{})),readOnly:tt=!1,renderGroup:Ve,renderInput:Xe,renderOption:et,renderTags:ft,selectOnFocus:At=!o.freeSolo,size:Je="medium",slotProps:pe={}}=o,le=at(o,SRe),{getRootProps:he,getInputProps:je,getInputLabelProps:Ze,getPopupIndicatorProps:We,getClearProps:fe,getTagProps:xe,getListboxProps:ve,getOptionProps:De,value:$e,dirty:vt,expanded:Wt,id:Kt,popupOpen:gt,focused:Gt,focusedTag:ut,anchorEl:wt,setAnchorEl:Xt,inputValue:Ln,groupedOptions:$n}=j5e(M({},o,{componentName:"Autocomplete"})),jn=!R&&!D&&vt&&!tt,ar=(!Z||V===!0)&&V!==!1,{onMouseDown:Ur}=je(),{ref:Me}=be??{},Ue=ve(),{ref:lt}=Ue,Nt=at(Ue,ERe),Qt=Jn(lt,Me),yn=J||(Be=>{var Dt;return(Dt=Be.label)!=null?Dt:Be}),rn=M({},o,{disablePortal:F,expanded:Wt,focused:Gt,fullWidth:Q,getOptionLabel:yn,hasClearIcon:jn,hasPopupIcon:ar,inputFocused:ut===-1,popupOpen:gt,size:Je}),Yt=xRe(rn);let xn;if(Oe&&$e.length>0){const Be=Dt=>M({className:Yt.tag,disabled:D},xe(Dt));ft?xn=ft($e,Be,rn):xn=$e.map((Dt,en)=>I.jsx(dF,M({label:yn(Dt),size:Je},Be({index:en}),h)))}if(z>-1&&Array.isArray(xn)){const Be=xn.length-z;!Gt&&Be>0&&(xn=xn.splice(0,z),xn.push(I.jsx("span",{className:Yt.tag,children:H(Be)},xn.length)))}const Ye=Ve||(Be=>I.jsxs("li",{children:[I.jsx(PRe,{className:Yt.groupLabel,ownerState:rn,component:"div",children:Be.group}),I.jsx(MRe,{className:Yt.groupUl,ownerState:rn,children:Be.children})]},Be.key)),yt=et||((Be,Dt)=>{const{key:en}=Be,Vn=at(Be,wRe);return I.jsx("li",M({},Vn,{children:yn(Dt)}),en)}),Yn=(Be,Dt)=>{const en=De({option:Be,index:Dt});return yt(M({},en,{className:Yt.option}),Be,{selected:en["aria-selected"],index:Dt,inputValue:Ln},rn)},pn=(r=pe.clearIndicator)!=null?r:k.clearIndicator,Fn=(i=pe.paper)!=null?i:k.paper,Pi=(a=pe.popper)!=null?a:k.popper,nt=(s=pe.popupIndicator)!=null?s:k.popupIndicator;return I.jsxs(N.Fragment,{children:[I.jsx(TRe,M({ref:n,className:dt(Yt.root,g),ownerState:rn},he(le),{children:Xe({id:Kt,disabled:D,fullWidth:!0,size:Je==="small"?"small":void 0,InputLabelProps:Ze(),InputProps:M({ref:Xt,className:Yt.inputRoot,startAdornment:xn,onClick:Be=>{Be.target===Be.currentTarget&&Ur(Be)}},(jn||ar)&&{endAdornment:I.jsxs(kRe,{className:Yt.endAdornment,ownerState:rn,children:[jn?I.jsx(CRe,M({},fe(),{"aria-label":E,title:E,ownerState:rn},pn,{className:dt(Yt.clearIndicator,pn==null?void 0:pn.className),children:b})):null,ar?I.jsx(ARe,M({},We(),{disabled:D,"aria-label":gt?x:Ie,title:gt?x:Ie,ownerState:rn},nt,{className:dt(Yt.popupIndicator,nt==null?void 0:nt.className),children:Pe})):null]})}),inputProps:M({className:Yt.input,disabled:D,readOnly:tt},je())})})),wt?I.jsx(_Re,M({as:st,disablePortal:F,style:{width:wt?wt.clientWidth:null},ownerState:rn,role:"presentation",anchorEl:wt,open:gt},Pi,{className:dt(Yt.popper,Pi==null?void 0:Pi.className),children:I.jsxs(RRe,M({ownerState:rn,as:qe},Fn,{className:dt(Yt.paper,Fn==null?void 0:Fn.className),children:[ee&&$n.length===0?I.jsx(IRe,{className:Yt.loading,ownerState:rn,children:ye}):null,$n.length===0&&!Z&&!ee?I.jsx(DRe,{className:Yt.noOptions,ownerState:rn,role:"presentation",onMouseDown:Be=>{Be.preventDefault()},children:ie}):null,$n.length>0?I.jsx(NRe,M({as:Te,className:Yt.listbox,ownerState:rn},Nt,be,{ref:Qt,children:$n.map((Be,Dt)=>K?Ye({key:Be.key,group:Be.group,children:Be.options.map((en,Vn)=>Yn(en,Be.index+Vn))}):Yn(Be,Dt))})):null]}))})):null]})}),$Re=LRe,FRe=Wa(I.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function BRe(e){return $t("MuiAvatar",e)}const URe=Ft("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),zRe=URe,jRe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],HRe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Mt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},BRe,t)},VRe=Re("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:M({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:M({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),WRe=Re("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),QRe=Re(FRe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function qRe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=N.useState(!1);return N.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const GRe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",imgProps:l,sizes:u,src:c,srcSet:f,variant:h="circular"}=r,g=at(r,jRe);let b=null;const S=qRe(M({},l,{src:c,srcSet:f})),w=c||f,E=w&&S!=="error",x=M({},r,{colorDefault:!E,component:o,variant:h}),k=HRe(x);return E?b=I.jsx(WRe,M({alt:i,srcSet:f,src:c,sizes:u,ownerState:x,className:k.img},l)):a!=null&&a!==""&&typeof a!="boolean"?b=a:w&&i?b=i[0]:b=I.jsx(QRe,{ownerState:x,className:k.fallback}),I.jsx(VRe,M({as:o,ownerState:x,className:dt(k.root,s),ref:n},g,{children:b}))}),q_=GRe;function YRe(e){return $t("MuiAvatarGroup",e)}const ZRe=Ft("MuiAvatarGroup",["root","avatar"]),XRe=ZRe,KRe=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],eZ={small:-16,medium:null},JRe=e=>{const{classes:t}=e;return Mt({root:["root"],avatar:["avatar"]},YRe,t)},eIe=Re("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>M({[`& .${XRe.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&eZ[t.spacing]!==void 0?eZ[t.spacing]:-t.spacing;return{[`& .${zRe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),tIe=N.forwardRef(function(t,n){var r;const i=_t({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:u=5,renderSurplus:c,slotProps:f={},spacing:h="medium",total:g,variant:b="circular"}=i,S=at(i,KRe);let w=u<2?2:u;const E=M({},i,{max:u,spacing:h,component:o,variant:b}),x=JRe(E),k=N.Children.toArray(a).filter(L=>N.isValidElement(L)),C=g||k.length;C===w&&(w+=1),w=Math.min(C+1,w);const R=Math.min(k.length,w-1),A=Math.max(C-w,C-R,0),D=c?c(A):`+${A}`,B=(r=f.additionalAvatar)!=null?r:l.additionalAvatar;return I.jsxs(eIe,M({as:o,ownerState:E,className:dt(x.root,s),ref:n},S,{children:[A?I.jsx(q_,M({variant:b},B,{className:dt(x.avatar,B==null?void 0:B.className),children:D})):null,k.slice(0,R).reverse().map(L=>N.cloneElement(L,{className:dt(L.props.className,x.avatar),variant:L.props.variant||b}))]}))}),nIe=tIe,rIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],iIe={entering:{opacity:1},entered:{opacity:1}},aIe=N.forwardRef(function(t,n){const r=Ni(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:u,onEnter:c,onEntered:f,onEntering:h,onExit:g,onExited:b,onExiting:S,style:w,timeout:E=i,TransitionComponent:x=nT}=t,k=at(t,rIe),C=N.useRef(null),R=Jn(C,o.ref,n),A=Q=>H=>{if(Q){const J=C.current;H===void 0?Q(J):Q(J,H)}},D=A(h),B=A((Q,H)=>{rF(Q);const J=t0({style:w,timeout:E,easing:l},{mode:"enter"});Q.style.webkitTransition=r.transitions.create("opacity",J),Q.style.transition=r.transitions.create("opacity",J),c&&c(Q,H)}),L=A(f),F=A(S),W=A(Q=>{const H=t0({style:w,timeout:E,easing:l},{mode:"exit"});Q.style.webkitTransition=r.transitions.create("opacity",H),Q.style.transition=r.transitions.create("opacity",H),g&&g(Q)}),V=A(b),Z=Q=>{a&&a(C.current,Q)};return I.jsx(x,M({appear:s,in:u,nodeRef:C,onEnter:B,onEntered:L,onEntering:D,onExit:W,onExited:V,onExiting:F,addEndListener:Z,timeout:E},k,{children:(Q,H)=>N.cloneElement(o,M({style:M({opacity:0,visibility:Q==="exited"&&!u?"hidden":void 0},iIe[Q],w,o.props.style),ref:R},H))}))}),tp=aIe;function sIe(e){return $t("MuiBackdrop",e)}Ft("MuiBackdrop",["root","invisible"]);const oIe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lIe=e=>{const{classes:t,invisible:n}=e;return Mt({root:["root",n&&"invisible"]},sIe,t)},uIe=Re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>M({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),cIe=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",components:c={},componentsProps:f={},invisible:h=!1,open:g,slotProps:b={},slots:S={},TransitionComponent:w=tp,transitionDuration:E}=s,x=at(s,oIe),k=M({},s,{component:u,invisible:h}),C=lIe(k),R=(r=b.root)!=null?r:f.root;return I.jsx(w,M({in:g,timeout:E},x,{children:I.jsx(uIe,M({"aria-hidden":!0},R,{as:(i=(a=S.root)!=null?a:c.Root)!=null?i:u,className:dt(C.root,l,R==null?void 0:R.className),ownerState:M({},k,R==null?void 0:R.ownerState),classes:C,ref:n,children:o}))}))}),aT=cIe,dIe=Ft("MuiBox",["root"]),fIe=dIe,hIe=Z$(),pIe=TAe({themeId:s1,defaultTheme:hIe,defaultClassName:fIe.root,generateClassName:j$.generate}),ks=pIe;function mIe(e){return $t("MuiButton",e)}const gIe=Ft("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),WC=gIe,bIe=N.createContext({}),yIe=bIe,vIe=N.createContext(void 0),OIe=vIe,SIe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],EIe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${ht(t)}`,`size${ht(i)}`,`${a}Size${ht(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ht(i)}`],endIcon:["endIcon",`iconSize${ht(i)}`]},l=Mt(o,mIe,s);return M({},s,l)},Qoe=e=>M({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),wIe=Re(Tu,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ht(n.color)}`],t[`size${ht(n.size)}`],t[`${n.variant}Size${ht(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return M({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":M({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${WC.focusVisible}`]:M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${WC.disabled}`]:M({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Rn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${WC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${WC.disabled}`]:{boxShadow:"none"}}),xIe=Re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ht(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Qoe(e))),TIe=Re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ht(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Qoe(e))),kIe=N.forwardRef(function(t,n){const r=N.useContext(yIe),i=N.useContext(OIe),a=dR(r,t),s=_t({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:S,fullWidth:w=!1,size:E="medium",startIcon:x,type:k,variant:C="text"}=s,R=at(s,SIe),A=M({},s,{color:l,component:u,disabled:f,disableElevation:h,disableFocusRipple:g,fullWidth:w,size:E,type:k,variant:C}),D=EIe(A),B=x&&I.jsx(xIe,{className:D.startIcon,ownerState:A,children:x}),L=b&&I.jsx(TIe,{className:D.endIcon,ownerState:A,children:b}),F=i||"";return I.jsxs(wIe,M({ownerState:A,className:dt(r.className,D.root,c,F),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:dt(D.focusVisible,S),ref:n,type:k},R,{classes:D,children:[B,o,L]}))}),Qs=kIe;function CIe(e){return $t("MuiCard",e)}Ft("MuiCard",["root"]);const AIe=["className","raised"],_Ie=e=>{const{classes:t}=e;return Mt({root:["root"]},CIe,t)},RIe=Re(Ts,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),IIe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=at(r,AIe),o=M({},r,{raised:a}),l=_Ie(o);return I.jsx(RIe,M({className:dt(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))}),hF=IIe;function DIe(e){return $t("MuiCardActionArea",e)}const NIe=Ft("MuiCardActionArea",["root","focusVisible","focusHighlight"]),bN=NIe,PIe=["children","className","focusVisibleClassName"],MIe=e=>{const{classes:t}=e;return Mt({root:["root"],focusHighlight:["focusHighlight"]},DIe,t)},LIe=Re(Tu,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${bN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${bN.focusVisible} .${bN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),$Ie=Re("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),FIe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=at(r,PIe),l=r,u=MIe(l);return I.jsxs(LIe,M({className:dt(u.root,a),focusVisibleClassName:dt(s,u.focusVisible),ref:n,ownerState:l},o,{children:[i,I.jsx($Ie,{className:u.focusHighlight,ownerState:l})]}))}),qoe=FIe;function BIe(e){return $t("MuiCardContent",e)}Ft("MuiCardContent",["root"]);const UIe=["className","component"],zIe=e=>{const{classes:t}=e;return Mt({root:["root"]},BIe,t)},jIe=Re("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),HIe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=at(r,UIe),o=M({},r,{component:a}),l=zIe(o);return I.jsx(jIe,M({as:a,className:dt(l.root,i),ownerState:o,ref:n},s))}),VIe=HIe;function WIe(e){return $t("PrivateSwitchBase",e)}Ft("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const QIe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],qIe=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${ht(i)}`],input:["input"]};return Mt(a,WIe,t)},GIe=Re(Tu)(({ownerState:e})=>M({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),YIe=Re("input",{shouldForwardProp:As})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ZIe=N.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:h,inputProps:g,inputRef:b,name:S,onBlur:w,onChange:E,onFocus:x,readOnly:k,required:C=!1,tabIndex:R,type:A,value:D}=t,B=at(t,QIe),[L,F]=ws({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),W=Vf(),V=te=>{x&&x(te),W&&W.onFocus&&W.onFocus(te)},Z=te=>{w&&w(te),W&&W.onBlur&&W.onBlur(te)},Q=te=>{if(te.nativeEvent.defaultPrevented)return;const z=te.target.checked;F(z),E&&E(te,z)};let H=l;W&&typeof H>"u"&&(H=W.disabled);const J=A==="checkbox"||A==="radio",K=M({},t,{checked:L,disabled:H,disableFocusRipple:u,edge:c}),X=qIe(K);return I.jsxs(GIe,M({component:"span",className:dt(X.root,s),centerRipple:!0,focusRipple:!u,disabled:H,tabIndex:null,role:void 0,onFocus:V,onBlur:Z,ownerState:K,ref:n},B,{children:[I.jsx(YIe,M({autoFocus:r,checked:i,defaultChecked:o,className:X.input,disabled:H,id:J?h:void 0,name:S,onChange:Q,readOnly:k,ref:b,required:C,ownerState:K,tabIndex:R,type:A},A==="checkbox"&&D===void 0?{}:{value:D},g)),L?a:f]}))}),pF=ZIe,XIe=Wa(I.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),KIe=Wa(I.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),JIe=Wa(I.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function e6e(e){return $t("MuiCheckbox",e)}const t6e=Ft("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),yN=t6e,n6e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],r6e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${ht(r)}`,`size${ht(i)}`]},s=Mt(a,e6e,t);return M({},t,s)},i6e=Re(pF,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ht(n.size)}`],n.color!=="default"&&t[`color${ht(n.color)}`]]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${yN.checked}, &.${yN.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${yN.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),a6e=I.jsx(KIe,{}),s6e=I.jsx(XIe,{}),o6e=I.jsx(JIe,{}),l6e=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiCheckbox"}),{checkedIcon:s=a6e,color:o="primary",icon:l=s6e,indeterminate:u=!1,indeterminateIcon:c=o6e,inputProps:f,size:h="medium",className:g}=a,b=at(a,n6e),S=u?c:l,w=u?c:s,E=M({},a,{color:o,indeterminate:u,size:h}),x=r6e(E);return I.jsx(i6e,M({type:"checkbox",inputProps:M({"data-indeterminate":u},f),icon:N.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:h}),checkedIcon:N.cloneElement(w,{fontSize:(i=w.props.fontSize)!=null?i:h}),ownerState:E,ref:n,className:dt(x.root,g)},b,{classes:x}))}),RR=l6e;function u6e(e){return $t("MuiCircularProgress",e)}Ft("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const c6e=["className","color","disableShrink","size","style","thickness","value","variant"];let IR=e=>e,tZ,nZ,rZ,iZ;const Yp=44,d6e=Yx(tZ||(tZ=IR` 0% { transform: rotate(0deg); } @@ -134,7 +134,7 @@ Error generating stack: `+a.message+` 100% { transform: rotate(360deg); } -`)),f6e=Yx(tZ||(tZ=AR` +`)),f6e=Yx(nZ||(nZ=IR` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -149,12 +149,12 @@ Error generating stack: `+a.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),h6e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${ht(r)}`],svg:["svg"],circle:["circle",`circle${ht(n)}`,i&&"circleDisableShrink"]};return Lt(a,u6e,t)},p6e=Re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ht(n.color)}`]]}})(({ownerState:e,theme:t})=>M({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&F$(nZ||(nZ=AR` +`)),h6e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${ht(r)}`],svg:["svg"],circle:["circle",`circle${ht(n)}`,i&&"circleDisableShrink"]};return Mt(a,u6e,t)},p6e=Re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ht(n.color)}`]]}})(({ownerState:e,theme:t})=>M({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&B$(rZ||(rZ=IR` animation: ${0} 1.4s linear infinite; - `),d6e)),m6e=Re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),g6e=Re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ht(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>M({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&F$(rZ||(rZ=AR` + `),d6e)),m6e=Re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),g6e=Re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ht(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>M({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&B$(iZ||(iZ=IR` animation: ${0} 1.4s ease-in-out infinite; - `),f6e)),b6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,h=at(r,c6e),g=M({},r,{color:a,disableShrink:s,size:o,thickness:u,value:c,variant:f}),b=h6e(g),S={},E={},w={};if(f==="determinate"){const x=2*Math.PI*((Gp-u)/2);S.strokeDasharray=x.toFixed(3),w["aria-valuenow"]=Math.round(c),S.strokeDashoffset=`${((100-c)/100*x).toFixed(3)}px`,E.transform="rotate(-90deg)"}return I.jsx(p6e,M({className:ft(b.root,i),style:M({width:o,height:o},E,l),ownerState:g,ref:n,role:"progressbar"},w,h,{children:I.jsx(m6e,{className:b.svg,ownerState:g,viewBox:`${Gp/2} ${Gp/2} ${Gp} ${Gp}`,children:I.jsx(g6e,{className:b.circle,style:S,ownerState:g,cx:Gp,cy:Gp,r:(Gp-u)/2,fill:"none",strokeWidth:u})})}))}),bp=b6e,y6e=XAe({createStyledComponent:Re("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ht(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>_t({props:e,name:"MuiContainer"})}),qoe=y6e,v6e=(e,t)=>M({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),O6e=e=>M({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),S6e=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=M({html:v6e(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:M({margin:0},O6e(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function E6e(e){const t=_t({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return I.jsxs(N.Fragment,{children:[I.jsx(Hoe,{styles:i=>S6e(i,r)}),n]})}function w6e(e){return Bt("MuiModal",e)}Ut("MuiModal",["root","hidden","backdrop"]);const x6e=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],T6e=e=>{const{open:t,exited:n,classes:r}=e;return Lt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},w6e,r)},k6e=Re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>M({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),C6e=Re(aT,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),A6e=N.forwardRef(function(t,n){var r,i,a,s,o,l;const u=_t({name:"MuiModal",props:t}),{BackdropComponent:c=C6e,BackdropProps:f,className:h,closeAfterTransition:g=!1,children:b,container:S,component:E,components:w={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:R=!1,disablePortal:A=!1,disableRestoreFocus:D=!1,disableScrollLock:B=!1,hideBackdrop:L=!1,keepMounted:F=!1,onBackdropClick:W,open:V,slotProps:Z,slots:Q}=u,H=at(u,x6e),J=M({},u,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:C,disableEscapeKeyDown:R,disablePortal:A,disableRestoreFocus:D,disableScrollLock:B,hideBackdrop:L,keepMounted:F}),{getRootProps:K,getBackdropProps:X,getTransitionProps:te,portalRef:z,isTopModal:Te,exited:be,hasTransition:ee}=_5e(M({},J,{rootRef:n})),ye=M({},J,{exited:be}),Oe=T6e(ye),ie={};if(b.props.tabIndex===void 0&&(ie.tabIndex="-1"),ee){const{onEnter:Ve,onExited:Xe}=te();ie.onEnter=Ve,ie.onExited=Xe}const _e=(r=(i=Q==null?void 0:Q.root)!=null?i:w.Root)!=null?r:k6e,Ie=(a=(s=Q==null?void 0:Q.backdrop)!=null?s:w.Backdrop)!=null?a:c,qe=(o=Z==null?void 0:Z.root)!=null?o:x.root,st=(l=Z==null?void 0:Z.backdrop)!=null?l:x.backdrop,Pe=cr({elementType:_e,externalSlotProps:qe,externalForwardedProps:H,getSlotProps:K,additionalProps:{ref:n,as:E},ownerState:ye,className:ft(h,qe==null?void 0:qe.className,Oe==null?void 0:Oe.root,!ye.open&&ye.exited&&(Oe==null?void 0:Oe.hidden))}),tt=cr({elementType:Ie,externalSlotProps:st,additionalProps:f,getSlotProps:Ve=>X(M({},Ve,{onClick:Xe=>{W&&W(Xe),Ve!=null&&Ve.onClick&&Ve.onClick(Xe)}})),className:ft(st==null?void 0:st.className,f==null?void 0:f.className,Oe==null?void 0:Oe.backdrop),ownerState:ye});return!F&&!V&&(!ee||be)?null:I.jsx(Foe,{ref:z,container:S,disablePortal:A,children:I.jsxs(_e,M({},Pe,{children:[!L&&c?I.jsx(Ie,M({},tt)):null,I.jsx(Aoe,{disableEnforceFocus:C,disableAutoFocus:k,disableRestoreFocus:D,isEnabled:Te,open:V,children:N.cloneElement(b,ie)})]}))})}),S0=A6e;function _6e(e){return Bt("MuiDialog",e)}const _2=Ut("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),R6e=N.createContext({}),I6e=R6e,D6e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],N6e=Re(aT,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),P6e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${ht(n)}`],paper:["paper",`paperScroll${ht(n)}`,`paperWidth${ht(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Lt(s,_6e,t)},M6e=Re(S0,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),L6e=Re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ht(n.scroll)}`]]}})(({ownerState:e})=>M({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),$6e=Re(Zs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ht(n.scroll)}`],t[`paperWidth${ht(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>M({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_2.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${_2.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${_2.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),F6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDialog"}),i=Ni(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,BackdropComponent:l,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:b=!1,maxWidth:S="sm",onBackdropClick:E,onClose:w,open:x,PaperComponent:k=Zs,PaperProps:C={},scroll:R="paper",TransitionComponent:A=tp,transitionDuration:D=a,TransitionProps:B}=r,L=at(r,D6e),F=M({},r,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:b,maxWidth:S,scroll:R}),W=P6e(F),V=N.useRef(),Z=K=>{V.current=K.target===K.currentTarget},Q=K=>{V.current&&(V.current=null,E&&E(K),w&&w(K,"backdropClick"))},H=Td(o),J=N.useMemo(()=>({titleId:H}),[H]);return I.jsx(M6e,M({className:ft(W.root,f),closeAfterTransition:!0,components:{Backdrop:N6e},componentsProps:{backdrop:M({transitionDuration:D,as:l},u)},disableEscapeKeyDown:h,onClose:w,open:x,ref:n,onClick:Q,ownerState:F},L,{children:I.jsx(A,M({appear:!0,in:x,timeout:D,role:"presentation"},B,{children:I.jsx(L6e,{className:ft(W.container),onMouseDown:Z,ownerState:F,children:I.jsx($6e,M({as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":H},C,{className:ft(W.paper,C.className),ownerState:F,children:I.jsx(I6e.Provider,{value:J,children:c})}))})}))}))}),B6e=F6e;function U6e(e){return Bt("MuiDialogActions",e)}Ut("MuiDialogActions",["root","spacing"]);const z6e=["className","disableSpacing"],j6e=e=>{const{classes:t,disableSpacing:n}=e;return Lt({root:["root",!n&&"spacing"]},U6e,t)},H6e=Re("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>M({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),V6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=r,s=at(r,z6e),o=M({},r,{disableSpacing:a}),l=j6e(o);return I.jsx(H6e,M({className:ft(l.root,i),ownerState:o,ref:n},s))}),W6e=V6e;function Q6e(e){return Bt("MuiDialogContent",e)}Ut("MuiDialogContent",["root","dividers"]);const q6e=Ut("MuiDialogTitle",["root"]),G6e=q6e,Y6e=["className","dividers"],Z6e=e=>{const{classes:t,dividers:n}=e;return Lt({root:["root",n&&"dividers"]},Q6e,t)},X6e=Re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>M({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${G6e.root} + &`]:{paddingTop:0}})),K6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=r,s=at(r,Y6e),o=M({},r,{dividers:a}),l=Z6e(o);return I.jsx(X6e,M({className:ft(l.root,i),ownerState:o,ref:n},s))}),J6e=K6e;function eDe(e){return Bt("MuiDivider",e)}const tDe=Ut("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),iZ=tDe,nDe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],rDe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return Lt({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},eDe,r)},iDe=Re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>M({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Rn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>M({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>M({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>M({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>M({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),aDe=Re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>M({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Goe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=o!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth"}=r,b=at(r,nDe),S=M({},r,{absolute:i,component:o,flexItem:l,light:u,orientation:c,role:f,textAlign:h,variant:g}),E=rDe(S);return I.jsx(iDe,M({as:o,className:ft(E.root,s),role:f,ref:n,ownerState:S},b,{children:a?I.jsx(aDe,{className:E.wrapper,ownerState:S,children:a}):null}))});Goe.muiSkipListHighlight=!0;const c1=Goe,sDe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function oDe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=Tc(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=a.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function lDe(e){return typeof e=="function"?e():e}function WC(e,t,n){const r=lDe(n),i=oDe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const uDe=N.forwardRef(function(t,n){const r=Ni(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:u,direction:c="down",easing:f=i,in:h,onEnter:g,onEntered:b,onEntering:S,onExit:E,onExited:w,onExiting:x,style:k,timeout:C=a,TransitionComponent:R=nT}=t,A=at(t,sDe),D=N.useRef(null),B=Jn(l.ref,D,n),L=X=>te=>{X&&(te===void 0?X(D.current):X(D.current,te))},F=L((X,te)=>{WC(c,X,u),nF(X),g&&g(X,te)}),W=L((X,te)=>{const z=e0({timeout:C,style:k,easing:f},{mode:"enter"});X.style.webkitTransition=r.transitions.create("-webkit-transform",M({},z)),X.style.transition=r.transitions.create("transform",M({},z)),X.style.webkitTransform="none",X.style.transform="none",S&&S(X,te)}),V=L(b),Z=L(x),Q=L(X=>{const te=e0({timeout:C,style:k,easing:f},{mode:"exit"});X.style.webkitTransition=r.transitions.create("-webkit-transform",te),X.style.transition=r.transitions.create("transform",te),WC(c,X,u),E&&E(X)}),H=L(X=>{X.style.webkitTransition="",X.style.transition="",w&&w(X)}),J=X=>{s&&s(D.current,X)},K=N.useCallback(()=>{D.current&&WC(c,D.current,u)},[c,u]);return N.useEffect(()=>{if(h||c==="down"||c==="right")return;const X=SO(()=>{D.current&&WC(c,D.current,u)}),te=Tc(D.current);return te.addEventListener("resize",X),()=>{X.clear(),te.removeEventListener("resize",X)}},[c,h,u]),N.useEffect(()=>{h||K()},[h,K]),I.jsx(R,M({nodeRef:D,onEnter:F,onEntered:V,onEntering:W,onExit:Q,onExited:H,onExiting:Z,addEndListener:J,appear:o,in:h,timeout:C},A,{children:(X,te)=>N.cloneElement(l,M({ref:B,style:M({visibility:X==="exited"&&!h?"hidden":void 0},k,l.props.style)},te))}))}),Yoe=uDe;function cDe(e){return Bt("MuiDrawer",e)}Ut("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const dDe=["BackdropProps"],fDe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Zoe=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},hDe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ht(n)}`,r!=="temporary"&&`paperAnchorDocked${ht(n)}`]};return Lt(i,cDe,t)},pDe=Re(S0,{name:"MuiDrawer",slot:"Root",overridesResolver:Zoe})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),aZ=Re("div",{shouldForwardProp:Cs,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Zoe})({flex:"0 0 auto"}),mDe=Re(Zs,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ht(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ht(n.anchor)}`]]}})(({theme:e,ownerState:t})=>M({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Xoe={left:"right",right:"left",top:"down",bottom:"up"};function gDe(e){return["left","right"].indexOf(e)!==-1}function bDe(e,t){return e.direction==="rtl"&&gDe(t)?Xoe[t]:t}const yDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDrawer"}),i=Ni(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:o,children:l,className:u,elevation:c=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:g,open:b=!1,PaperProps:S={},SlideProps:E,TransitionComponent:w=Yoe,transitionDuration:x=a,variant:k="temporary"}=r,C=at(r.ModalProps,dDe),R=at(r,fDe),A=N.useRef(!1);N.useEffect(()=>{A.current=!0},[]);const D=bDe(i,s),L=M({},r,{anchor:s,elevation:c,open:b,variant:k},R),F=hDe(L),W=I.jsx(mDe,M({elevation:k==="temporary"?c:0,square:!0},S,{className:ft(F.paper,S.className),ownerState:L,children:l}));if(k==="permanent")return I.jsx(aZ,M({className:ft(F.root,F.docked,u),ownerState:L,ref:n},R,{children:W}));const V=I.jsx(w,M({in:b,direction:Xoe[D],timeout:x,appear:A.current},E,{children:W}));return k==="persistent"?I.jsx(aZ,M({className:ft(F.root,F.docked,u),ownerState:L,ref:n},R,{children:V})):I.jsx(pDe,M({BackdropProps:M({},o,h,{transitionDuration:x}),className:ft(F.root,F.modal,u),open:b,ownerState:L,onClose:g,hideBackdrop:f,ref:n},R,C,{children:V}))}),vDe=yDe,ODe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],SDe=e=>{const{classes:t,disableUnderline:n}=e,i=Lt({root:["root",!n&&"underline"],input:["input"]},bRe,t);return M({},t,i)},EDe=Re(TR,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wR(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return M({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${uu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${uu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${uu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${uu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${uu.disabled}, .${uu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${uu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&M({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),wDe=Re(kR,{name:"MuiFilledInput",slot:"Input",overridesResolver:xR})(({theme:e,ownerState:t})=>M({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Koe=N.forwardRef(function(t,n){var r,i,a,s;const o=_t({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:h=!1,slotProps:g,slots:b={},type:S="text"}=o,E=at(o,ODe),w=M({},o,{fullWidth:c,inputComponent:f,multiline:h,type:S}),x=SDe(o),k={root:{ownerState:w},input:{ownerState:w}},C=g??u?yo(k,g??u):k,R=(r=(i=b.root)!=null?i:l.Root)!=null?r:EDe,A=(a=(s=b.input)!=null?s:l.Input)!=null?a:wDe;return I.jsx(dF,M({slots:{root:R,input:A},componentsProps:C,fullWidth:c,inputComponent:f,multiline:h,ref:n,type:S},E,{classes:x}))});Koe.muiName="Input";const Joe=Koe;function xDe(e){return Bt("MuiFormControl",e)}Ut("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const TDe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],kDe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ht(n)}`,r&&"fullWidth"]};return Lt(i,xDe,t)},CDe=Re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,t[`margin${ht(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>M({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ADe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:h=!1,margin:g="none",required:b=!1,size:S="medium",variant:E="outlined"}=r,w=at(r,TDe),x=M({},r,{color:s,component:o,disabled:l,error:u,fullWidth:f,hiddenLabel:h,margin:g,required:b,size:S,variant:E}),k=kDe(x),[C,R]=N.useState(()=>{let Z=!1;return i&&N.Children.forEach(i,Q=>{if(!E2(Q,["Input","Select"]))return;const H=E2(Q,["Select"])?Q.props.input:Q;H&&sRe(H.props)&&(Z=!0)}),Z}),[A,D]=N.useState(()=>{let Z=!1;return i&&N.Children.forEach(i,Q=>{E2(Q,["Input","Select"])&&(W_(Q.props,!0)||W_(Q.props.inputProps,!0))&&(Z=!0)}),Z}),[B,L]=N.useState(!1);l&&B&&L(!1);const F=c!==void 0&&!l?c:B;let W;const V=N.useMemo(()=>({adornedStart:C,setAdornedStart:R,color:s,disabled:l,error:u,filled:A,focused:F,fullWidth:f,hiddenLabel:h,size:S,onBlur:()=>{L(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{L(!0)},registerEffect:W,required:b,variant:E}),[C,s,l,u,A,F,f,h,W,b,S,E]);return I.jsx(ER.Provider,{value:V,children:I.jsx(CDe,M({as:o,ownerState:x,className:ft(k.root,a),ref:n},w,{children:i}))})}),kd=ADe,_De=a4e({createStyledComponent:Re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>_t({props:e,name:"MuiStack"})}),lr=_De;function RDe(e){return Bt("MuiFormControlLabel",e)}const IDe=Ut("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),JE=IDe,DDe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],NDe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${ht(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Lt(s,RDe,t)},PDe=Re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${JE.label}`]:t.label},t.root,t[`labelPlacement${ht(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>M({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${JE.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${JE.label}`]:{[`&.${JE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),MDe=Re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${JE.error}`]:{color:(e.vars||e).palette.error.main}})),LDe=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:h="end",required:g,slotProps:b={}}=a,S=at(a,DDe),E=Vf(),w=(r=u??l.props.disabled)!=null?r:E==null?void 0:E.disabled,x=g??l.props.required,k={disabled:w,required:x};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof l.props[L]>"u"&&typeof a[L]<"u"&&(k[L]=a[L])});const C=O0({props:a,muiFormControl:E,states:["error"]}),R=M({},a,{disabled:w,labelPlacement:h,required:x,error:C.error}),A=NDe(R),D=(i=b.typography)!=null?i:o.typography;let B=f;return B!=null&&B.type!==xr&&!c&&(B=I.jsx(xr,M({component:"span"},D,{className:ft(A.label,D==null?void 0:D.className),children:B}))),I.jsxs(PDe,M({className:ft(A.root,s),ownerState:R,ref:n},S,{children:[N.cloneElement(l,k),x?I.jsxs(lr,{display:"block",children:[B,I.jsxs(MDe,{ownerState:R,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):B]}))}),Rw=LDe;function $De(e){return Bt("MuiFormGroup",e)}Ut("MuiFormGroup",["root","row","error"]);const FDe=["className","row"],BDe=e=>{const{classes:t,row:n,error:r}=e;return Lt({root:["root",n&&"row",r&&"error"]},$De,t)},UDe=Re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>M({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),zDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=at(r,FDe),o=Vf(),l=O0({props:r,muiFormControl:o,states:["error"]}),u=M({},r,{row:a,error:l.error}),c=BDe(u);return I.jsx(UDe,M({className:ft(c.root,i),ownerState:u,ref:n},s))}),mF=zDe;function jDe(e){return Bt("MuiFormHelperText",e)}const HDe=Ut("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),sZ=HDe;var oZ;const VDe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],WDe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${ht(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return Lt(u,jDe,t)},QDe=Re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ht(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${sZ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sZ.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),qDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=at(r,VDe),l=Vf(),u=O0({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=M({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=WDe(c);return I.jsx(QDe,M({as:s,ownerState:c,className:ft(f.root,a),ref:n},o,{children:i===" "?oZ||(oZ=I.jsx("span",{className:"notranslate",children:"​"})):i}))}),xO=qDe;function GDe(e){return Bt("MuiFormLabel",e)}const R2=Ut("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),YDe=["children","className","color","component","disabled","error","filled","focused","required"],ZDe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${ht(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return Lt(l,GDe,t)},XDe=Re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${R2.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${R2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${R2.error}`]:{color:(e.vars||e).palette.error.main}})),KDe=Re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${R2.error}`]:{color:(e.vars||e).palette.error.main}})),JDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=at(r,YDe),l=Vf(),u=O0({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=M({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=ZDe(c);return I.jsxs(XDe,M({as:s,ownerState:c,className:ft(f.root,a),ref:n},o,{children:[i,u.required&&I.jsxs(KDe,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),_R=JDe,eNe=N.createContext(),lZ=eNe;function tNe(e){return Bt("MuiGrid",e)}const nNe=[0,1,2,3,4,5,6,7,8,9,10],rNe=["column-reverse","column","row-reverse","row"],iNe=["nowrap","wrap-reverse","wrap"],fE=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Iw=Ut("MuiGrid",["root","container","item","zeroMinWidth",...nNe.map(e=>`spacing-xs-${e}`),...rNe.map(e=>`direction-xs-${e}`),...iNe.map(e=>`wrap-xs-${e}`),...fE.map(e=>`grid-xs-${e}`),...fE.map(e=>`grid-sm-${e}`),...fE.map(e=>`grid-md-${e}`),...fE.map(e=>`grid-lg-${e}`),...fE.map(e=>`grid-xl-${e}`)]),aNe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Xy(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function sNe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Kg({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${Xy(c)})`;u={flexBasis:f,maxWidth:f}}}a=M({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function oNe({theme:e,ownerState:t}){const n=Kg({values:t.direction,breakpoints:e.breakpoints.values});return _l({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Iw.item}`]={maxWidth:"none"}),i})}function ele({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function lNe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=Kg({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=ele({breakpoints:e.breakpoints.values,values:a})),i=_l({theme:e},a,(o,l)=>{var u;const c=e.spacing(o);return c!=="0px"?{marginTop:`-${Xy(c)}`,[`& > .${Iw.item}`]:{paddingTop:Xy(c)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Iw.item}`]:{paddingTop:0}}})}return i}function uNe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=Kg({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=ele({breakpoints:e.breakpoints.values,values:a})),i=_l({theme:e},a,(o,l)=>{var u;const c=e.spacing(o);return c!=="0px"?{width:`calc(100% + ${Xy(c)})`,marginLeft:`-${Xy(c)}`,[`& > .${Iw.item}`]:{paddingLeft:Xy(c)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Iw.item}`]:{paddingLeft:0}}})}return i}function cNe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const dNe=Re("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=cNe(s,u,t));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(t[`grid-${h}-${String(g)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...f]}})(({ownerState:e})=>M({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),oNe,lNe,uNe,sNe);function fNe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const hNe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let u=[];n&&(u=fNe(a,l));const c=[];l.forEach(h=>{const g=e[h];g&&c.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...c]};return Lt(f,tNe,t)},pNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiGrid"}),{breakpoints:i}=Ni(),a=bR(r),{className:s,columns:o,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:b=0,wrap:S="wrap",zeroMinWidth:E=!1}=a,w=at(a,aNe),x=g||b,k=l||b,C=N.useContext(lZ),R=c?o||12:C,A={},D=M({},w);i.keys.forEach(F=>{w[F]!=null&&(A[F]=w[F],delete D[F])});const B=M({},a,{columns:R,container:c,direction:f,item:h,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:E,spacing:b},A,{breakpoints:i.keys}),L=hNe(B);return I.jsx(lZ.Provider,{value:R,children:I.jsx(dNe,M({ownerState:B,className:ft(L.root,s),as:u,ref:n},D))})}),_y=pNe,mNe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function C8(e){return`scale(${e}, ${e**2})`}const gNe={entering:{opacity:1,transform:C8(1)},entered:{opacity:1,transform:"none"}},bN=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),tle=N.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:h,onExiting:g,style:b,timeout:S="auto",TransitionComponent:E=nT}=t,w=at(t,mNe),x=Ig(),k=N.useRef(),C=Ni(),R=N.useRef(null),A=Jn(R,a.ref,n),D=H=>J=>{if(H){const K=R.current;J===void 0?H(K):H(K,J)}},B=D(c),L=D((H,J)=>{nF(H);const{duration:K,delay:X,easing:te}=e0({style:b,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=C.transitions.getAutoHeightDuration(H.clientHeight),k.current=z):z=K,H.style.transition=[C.transitions.create("opacity",{duration:z,delay:X}),C.transitions.create("transform",{duration:bN?z:z*.666,delay:X,easing:te})].join(","),l&&l(H,J)}),F=D(u),W=D(g),V=D(H=>{const{duration:J,delay:K,easing:X}=e0({style:b,timeout:S,easing:s},{mode:"exit"});let te;S==="auto"?(te=C.transitions.getAutoHeightDuration(H.clientHeight),k.current=te):te=J,H.style.transition=[C.transitions.create("opacity",{duration:te,delay:K}),C.transitions.create("transform",{duration:bN?te:te*.666,delay:bN?K:K||te*.333,easing:X})].join(","),H.style.opacity=0,H.style.transform=C8(.75),f&&f(H)}),Z=D(h),Q=H=>{S==="auto"&&x.start(k.current||0,H),r&&r(R.current,H)};return I.jsx(E,M({appear:i,in:o,nodeRef:R,onEnter:L,onEntered:F,onEntering:B,onExit:V,onExited:Z,onExiting:W,addEndListener:Q,timeout:S==="auto"?null:S},w,{children:(H,J)=>N.cloneElement(a,M({style:M({opacity:0,transform:C8(.75),visibility:H==="exited"&&!o?"hidden":void 0},gNe[H],b,a.props.style),ref:A},J))}))});tle.muiSupportAuto=!0;const Q_=tle;function bNe(e,t,n,r,i){const[a,s]=N.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return la(()=>{let o=!0;if(!n)return;const l=n(e),u=()=>{o&&s(l.matches)};return u(),l.addListener(u),()=>{o=!1,l.removeListener(u)}},[e,n]),a}const nle=N.useSyncExternalStore;function yNe(e,t,n,r,i){const a=N.useCallback(()=>t,[t]),s=N.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return a},[a,e,r,i,n]),[o,l]=N.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const c=n(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[a,n,e]);return nle(l,o,s)}function TO(e,t={}){const n=gR(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=voe({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(nle!==void 0?yNe:bNe)(l,i,a,s,o)}function vNe(e){return Bt("MuiIcon",e)}Ut("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ONe=["baseClassName","className","color","component","fontSize"],SNe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ht(t)}`,`fontSize${ht(n)}`]};return Lt(i,vNe,r)},ENe=Re("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ht(n.color)}`],t[`fontSize${ht(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),rle=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:s="inherit",component:o="span",fontSize:l="medium"}=r,u=at(r,ONe),c=M({},r,{baseClassName:i,color:s,component:o,fontSize:l}),f=SNe(c);return I.jsx(ENe,M({as:o,className:ft(i,"notranslate",f.root,a),ownerState:c,"aria-hidden":!0,ref:n},u))});rle.muiName="Icon";const wNe=rle,xNe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],TNe=e=>{const{classes:t,disableUnderline:n}=e,i=Lt({root:["root",!n&&"underline"],input:["input"]},hRe,t);return M({},t,i)},kNe=Re(TR,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...wR(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),M({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${fm.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fm.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${fm.disabled}, .${fm.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${fm.disabled}:before`]:{borderBottomStyle:"dotted"}})}),CNe=Re(kR,{name:"MuiInput",slot:"Input",overridesResolver:xR})({}),ile=N.forwardRef(function(t,n){var r,i,a,s;const o=_t({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:h="input",multiline:g=!1,slotProps:b,slots:S={},type:E="text"}=o,w=at(o,xNe),x=TNe(o),C={root:{ownerState:{disableUnderline:l}}},R=b??c?yo(b??c,C):C,A=(r=(i=S.root)!=null?i:u.Root)!=null?r:kNe,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:CNe;return I.jsx(dF,M({slots:{root:A,input:D},slotProps:R,fullWidth:f,inputComponent:h,multiline:g,ref:n,type:E},w,{classes:x}))});ile.muiName="Input";const ale=ile;function ANe(e){return Bt("MuiInputAdornment",e)}const _Ne=Ut("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),uZ=_Ne;var cZ;const RNe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],INe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ht(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},DNe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${ht(i)}`,s,r&&"hiddenLabel",a&&`size${ht(a)}`]};return Lt(o,ANe,t)},NNe=Re("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:INe})(({theme:e,ownerState:t})=>M({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${uZ.positionStart}&:not(.${uZ.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),PNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:u,variant:c}=r,f=at(r,RNe),h=Vf()||{};let g=c;c&&h.variant,h&&!g&&(g=h.variant);const b=M({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:o,position:u,variant:g}),S=DNe(b);return I.jsx(ER.Provider,{value:null,children:I.jsx(NNe,M({as:s,ownerState:b,className:ft(S.root,a),ref:n},f,{children:typeof i=="string"&&!l?I.jsx(xr,{color:"text.secondary",children:i}):I.jsxs(N.Fragment,{children:[u==="start"?cZ||(cZ=I.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),Dw=PNe;function MNe(e){return Bt("MuiInputLabel",e)}Ut("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const LNe=["disableAnimation","margin","shrink","variant","className"],$Ne=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${ht(r)}`,s],asterisk:[o&&"asterisk"]},u=Lt(l,MNe,t);return M({},t,u)},FNe=Re(_R,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${R2.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>M({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&M({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&M({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&M({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),BNe=N.forwardRef(function(t,n){const r=_t({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=at(r,LNe),l=Vf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=O0({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=M({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),h=$Ne(f);return I.jsx(FNe,M({"data-shrink":u,ownerState:f,ref:n,className:ft(h.root,s)},o,{classes:h}))}),sle=BNe,UNe=N.createContext({}),md=UNe;function zNe(e){return Bt("MuiList",e)}Ut("MuiList",["root","padding","dense","subheader"]);const jNe=["children","className","component","dense","disablePadding","subheader"],HNe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Lt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},zNe,t)},VNe=Re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>M({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),WNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:u}=r,c=at(r,jNe),f=N.useMemo(()=>({dense:o}),[o]),h=M({},r,{component:s,dense:o,disablePadding:l}),g=HNe(h);return I.jsx(md.Provider,{value:f,children:I.jsxs(VNe,M({as:s,className:ft(g.root,a),ref:n,ownerState:h},c,{children:[u,i]}))})}),ole=WNe;function QNe(e){return Bt("MuiListItem",e)}const qNe=Ut("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ay=qNe;function GNe(e){return Bt("MuiListItemButton",e)}const YNe=Ut("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),sy=YNe,ZNe=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],XNe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},KNe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,u=Lt({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},GNe,n);return M({},n,u)},JNe=Re(Tu,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:XNe})(({theme:e,ownerState:t})=>M({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),ePe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:f,selected:h=!1,className:g}=r,b=at(r,ZNe),S=N.useContext(md),E=N.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:u}),[i,S.dense,l,u]),w=N.useRef(null);la(()=>{a&&w.current&&w.current.focus()},[a]);const x=M({},r,{alignItems:i,dense:E.dense,disableGutters:u,divider:c,selected:h}),k=KNe(x),C=Jn(w,n);return I.jsx(md.Provider,{value:E,children:I.jsx(JNe,M({ref:C,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:ft(k.focusVisible,f),ownerState:x,className:ft(k.root,g)},b,{classes:k,children:o}))})}),dZ=ePe;function tPe(e){return Bt("MuiListItemSecondaryAction",e)}Ut("MuiListItemSecondaryAction",["root","disableGutters"]);const nPe=["className"],rPe=e=>{const{disableGutters:t,classes:n}=e;return Lt({root:["root",t&&"disableGutters"]},tPe,n)},iPe=Re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>M({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),lle=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=at(r,nPe),s=N.useContext(md),o=M({},r,{disableGutters:s.disableGutters}),l=rPe(o);return I.jsx(iPe,M({className:ft(l.root,i),ownerState:o,ref:n},a))});lle.muiName="ListItemSecondaryAction";const gF=lle,aPe=["className"],sPe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],oPe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},lPe=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:u,selected:c}=e;return Lt({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},QNe,r)},uPe=Re("div",{name:"MuiListItem",slot:"Root",overridesResolver:oPe})(({theme:e,ownerState:t})=>M({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&M({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${sy.root}`]:{paddingRight:48}},{[`&.${ay.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ay.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ay.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ay.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ay.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),cPe=Re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),dPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:g}={},dense:b=!1,disabled:S=!1,disableGutters:E=!1,disablePadding:w=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:C,selected:R=!1,slotProps:A={},slots:D={}}=r,B=at(r.ContainerProps,aPe),L=at(r,sPe),F=N.useContext(md),W=N.useMemo(()=>({dense:b||F.dense||!1,alignItems:i,disableGutters:E}),[i,F.dense,b,E]),V=N.useRef(null);la(()=>{a&&V.current&&V.current.focus()},[a]);const Z=N.Children.toArray(o),Q=Z.length&&E2(Z[Z.length-1],["ListItemSecondaryAction"]),H=M({},r,{alignItems:i,autoFocus:a,button:s,dense:W.dense,disabled:S,disableGutters:E,disablePadding:w,divider:x,hasSecondaryAction:Q,selected:R}),J=lPe(H),K=Jn(V,n),X=D.root||c.Root||uPe,te=A.root||f.root||{},z=M({className:ft(J.root,te.className,l),disabled:S},L);let Te=u||"li";return s&&(z.component=u||"div",z.focusVisibleClassName=ft(ay.focusVisible,k),Te=Tu),Q?(Te=!z.component&&!u?"div":Te,h==="li"&&(Te==="li"?Te="div":z.component==="li"&&(z.component="div")),I.jsx(md.Provider,{value:W,children:I.jsxs(cPe,M({as:h,className:ft(J.container,g),ref:K,ownerState:H},B,{children:[I.jsx(X,M({},te,!Nf(X)&&{as:Te,ownerState:M({},H,te.ownerState)},z,{children:Z})),Z.pop()]}))})):I.jsx(md.Provider,{value:W,children:I.jsxs(X,M({},te,{as:Te,ref:K},!Nf(X)&&{ownerState:M({},H,te.ownerState)},z,{children:[Z,C&&I.jsx(gF,{children:C})]}))})}),A8=dPe;function fPe(e){return Bt("MuiListItemIcon",e)}const hPe=Ut("MuiListItemIcon",["root","alignItemsFlexStart"]),fZ=hPe,pPe=["className"],mPe=e=>{const{alignItems:t,classes:n}=e;return Lt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},fPe,n)},gPe=Re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>M({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),bPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=at(r,pPe),s=N.useContext(md),o=M({},r,{alignItems:s.alignItems}),l=mPe(o);return I.jsx(gPe,M({className:ft(l.root,i),ownerState:o,ref:n},a))}),Nw=bPe;function yPe(e){return Bt("MuiListItemText",e)}const vPe=Ut("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),q_=vPe,OPe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],SPe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Lt({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},yPe,t)},EPe=Re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${q_.primary}`]:t.primary},{[`& .${q_.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>M({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),wPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,h=at(r,OPe),{dense:g}=N.useContext(md);let b=l??i,S=c;const E=M({},r,{disableTypography:s,inset:o,primary:!!b,secondary:!!S,dense:g}),w=SPe(E);return b!=null&&b.type!==xr&&!s&&(b=I.jsx(xr,M({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:b}))),S!=null&&S.type!==xr&&!s&&(S=I.jsx(xr,M({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},f,{children:S}))),I.jsxs(EPe,M({className:ft(w.root,a),ownerState:E,ref:n},h,{children:[b,S]}))}),t0=wPe,xPe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yN(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function hZ(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ule(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function hE(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!ule(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const TPe=N.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,h=at(t,xPe),g=N.useRef(null),b=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});la(()=>{i&&g.current.focus()},[i]),N.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,C)=>{const R=!g.current.style.width;if(k.clientHeight{const C=g.current,R=k.key,A=Ei(C).activeElement;if(R==="ArrowDown")k.preventDefault(),hE(C,A,u,l,yN);else if(R==="ArrowUp")k.preventDefault(),hE(C,A,u,l,hZ);else if(R==="Home")k.preventDefault(),hE(C,null,u,l,yN);else if(R==="End")k.preventDefault(),hE(C,null,u,l,hZ);else if(R.length===1){const D=b.current,B=R.toLowerCase(),L=performance.now();D.keys.length>0&&(L-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&B!==D.keys[0]&&(D.repeating=!1)),D.lastTime=L,D.keys.push(B);const F=A&&!D.repeating&&ule(A,D);D.previousKeyMatched&&(F||hE(C,A,!1,l,yN,D))?k.preventDefault():D.previousKeyMatched=!1}c&&c(k)},E=Jn(g,n);let w=-1;N.Children.forEach(s,(k,C)=>{if(!N.isValidElement(k)){w===C&&(w+=1,w>=s.length&&(w=-1));return}k.props.disabled||(f==="selectedMenu"&&k.props.selected||w===-1)&&(w=C),w===C&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const x=N.Children.map(s,(k,C)=>{if(C===w){const R={};return a&&(R.autoFocus=!0),k.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),N.cloneElement(k,R)}return k});return I.jsx(ole,M({role:"menu",ref:E,className:o,onKeyDown:S,tabIndex:i?0:-1},h,{children:x}))}),kO=TPe;function kPe(e){return Bt("MuiPopover",e)}Ut("MuiPopover",["root","paper"]);const CPe=["onEntering"],APe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_Pe=["slotProps"];function pZ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function mZ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function gZ(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function vN(e){return typeof e=="function"?e():e}const RPe=e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"]},kPe,t)},IPe=Re(S0,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cle=Re(Zs,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),DPe=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:h,className:g,container:b,elevation:S=8,marginThreshold:E=16,open:w,PaperProps:x={},slots:k,slotProps:C,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:A=Q_,transitionDuration:D="auto",TransitionProps:{onEntering:B}={},disableScrollLock:L=!1}=s,F=at(s.TransitionProps,CPe),W=at(s,APe),V=(r=C==null?void 0:C.paper)!=null?r:x,Z=N.useRef(),Q=Jn(Z,V.ref),H=M({},s,{anchorOrigin:u,anchorReference:f,elevation:S,marginThreshold:E,externalPaperSlotProps:V,transformOrigin:R,TransitionComponent:A,transitionDuration:D,TransitionProps:F}),J=RPe(H),K=N.useCallback(()=>{if(f==="anchorPosition")return c;const Ve=vN(l),et=(Ve&&Ve.nodeType===1?Ve:Ei(Z.current).body).getBoundingClientRect();return{top:et.top+pZ(et,u.vertical),left:et.left+mZ(et,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),X=N.useCallback(Ve=>({vertical:pZ(Ve,R.vertical),horizontal:mZ(Ve,R.horizontal)}),[R.horizontal,R.vertical]),te=N.useCallback(Ve=>{const Xe={width:Ve.offsetWidth,height:Ve.offsetHeight},et=X(Xe);if(f==="none")return{top:null,left:null,transformOrigin:gZ(et)};const dt=K();let At=dt.top-et.vertical,Je=dt.left-et.horizontal;const pe=At+Xe.height,le=Je+Xe.width,he=Tc(vN(l)),je=he.innerHeight-E,Ze=he.innerWidth-E;if(E!==null&&Atje){const We=pe-je;At-=We,et.vertical+=We}if(E!==null&&JeZe){const We=le-Ze;Je-=We,et.horizontal+=We}return{top:`${Math.round(At)}px`,left:`${Math.round(Je)}px`,transformOrigin:gZ(et)}},[l,f,K,X,E]),[z,Te]=N.useState(w),be=N.useCallback(()=>{const Ve=Z.current;if(!Ve)return;const Xe=te(Ve);Xe.top!==null&&(Ve.style.top=Xe.top),Xe.left!==null&&(Ve.style.left=Xe.left),Ve.style.transformOrigin=Xe.transformOrigin,Te(!0)},[te]);N.useEffect(()=>(L&&window.addEventListener("scroll",be),()=>window.removeEventListener("scroll",be)),[l,L,be]);const ee=(Ve,Xe)=>{B&&B(Ve,Xe),be()},ye=()=>{Te(!1)};N.useEffect(()=>{w&&be()}),N.useImperativeHandle(o,()=>w?{updatePosition:()=>{be()}}:null,[w,be]),N.useEffect(()=>{if(!w)return;const Ve=SO(()=>{be()}),Xe=Tc(l);return Xe.addEventListener("resize",Ve),()=>{Ve.clear(),Xe.removeEventListener("resize",Ve)}},[l,w,be]);let Oe=D;D==="auto"&&!A.muiSupportAuto&&(Oe=void 0);const ie=b||(l?Ei(vN(l)).body:void 0),_e=(i=k==null?void 0:k.root)!=null?i:IPe,Ie=(a=k==null?void 0:k.paper)!=null?a:cle,qe=cr({elementType:Ie,externalSlotProps:M({},V,{style:z?V.style:M({},V.style,{opacity:0})}),additionalProps:{elevation:S,ref:Q},ownerState:H,className:ft(J.paper,V==null?void 0:V.className)}),st=cr({elementType:_e,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:W,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ie,open:w},ownerState:H,className:ft(J.root,g)}),{slotProps:Pe}=st,tt=at(st,_Pe);return I.jsx(_e,M({},tt,!Nf(_e)&&{slotProps:Pe,disableScrollLock:L},{children:I.jsx(A,M({appear:!0,in:w,onEntering:ee,onExited:ye,timeout:Oe},F,{children:I.jsx(Ie,M({},qe,{children:h}))}))}))}),RR=DPe;function NPe(e){return Bt("MuiMenu",e)}Ut("MuiMenu",["root","paper","list"]);const PPe=["onEntering"],MPe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],LPe={vertical:"top",horizontal:"right"},$Pe={vertical:"top",horizontal:"left"},FPe=e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"],list:["list"]},NPe,t)},BPe=Re(RR,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),UPe=Re(cle,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zPe=Re(kO,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),jPe=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:h,PaperProps:g={},PopoverClasses:b,transitionDuration:S="auto",TransitionProps:{onEntering:E}={},variant:w="selectedMenu",slots:x={},slotProps:k={}}=a,C=at(a.TransitionProps,PPe),R=at(a,MPe),A=Ni(),D=A.direction==="rtl",B=M({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:E,PaperProps:g,transitionDuration:S,TransitionProps:C,variant:w}),L=FPe(B),F=s&&!u&&h,W=N.useRef(null),V=(te,z)=>{W.current&&W.current.adjustStyleForScrollbar(te,A),E&&E(te,z)},Z=te=>{te.key==="Tab"&&(te.preventDefault(),f&&f(te,"tabKeyDown"))};let Q=-1;N.Children.map(o,(te,z)=>{N.isValidElement(te)&&(te.props.disabled||(w==="selectedMenu"&&te.props.selected||Q===-1)&&(Q=z))});const H=(r=x.paper)!=null?r:UPe,J=(i=k.paper)!=null?i:g,K=cr({elementType:x.root,externalSlotProps:k.root,ownerState:B,className:[L.root,l]}),X=cr({elementType:H,externalSlotProps:J,ownerState:B,className:L.paper});return I.jsx(BPe,M({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?LPe:$Pe,slots:{paper:H,root:x.root},slotProps:{root:K,paper:X},open:h,ref:n,transitionDuration:S,TransitionProps:M({onEntering:V},C),ownerState:B},R,{classes:b,children:I.jsx(zPe,M({onKeyDown:Z,actions:W,autoFocus:s&&(Q===-1||u),autoFocusItem:F,variant:w},c,{className:ft(L.list,c.className),children:o}))}))}),HPe=jPe;function VPe(e){return Bt("MuiMenuItem",e)}const WPe=Ut("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),pE=WPe,QPe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],qPe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},GPe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=Lt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},VPe,s);return M({},s,l)},YPe=Re(Tu,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:qPe})(({theme:e,ownerState:t})=>M({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pE.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pE.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pE.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pE.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${iZ.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${iZ.inset}`]:{marginLeft:52},[`& .${q_.root}`]:{marginTop:0,marginBottom:0},[`& .${q_.inset}`]:{paddingLeft:36},[`& .${fZ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&M({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fZ.root} svg`]:{fontSize:"1.25rem"}}))),ZPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:h}=r,g=at(r,QPe),b=N.useContext(md),S=N.useMemo(()=>({dense:s||b.dense||!1,disableGutters:l}),[b.dense,s,l]),E=N.useRef(null);la(()=>{i&&E.current&&E.current.focus()},[i]);const w=M({},r,{dense:S.dense,divider:o,disableGutters:l}),x=GPe(r),k=Jn(E,n);let C;return r.disabled||(C=f!==void 0?f:-1),I.jsx(md.Provider,{value:S,children:I.jsx(YPe,M({ref:k,role:c,tabIndex:C,component:a,focusVisibleClassName:ft(x.focusVisible,u),className:ft(x.root,h)},g,{ownerState:w,classes:x}))})}),np=ZPe;function XPe(e){return Bt("MuiNativeSelect",e)}const KPe=Ut("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),bF=KPe,JPe=["className","disabled","error","IconComponent","inputRef","variant"],e7e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ht(n)}`,a&&"iconOpen",r&&"disabled"]};return Lt(o,XPe,t)},dle=({ownerState:e,theme:t})=>M({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":M({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${bF.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),t7e=Re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${bF.multiple}`]:t.multiple}]}})(dle),fle=({ownerState:e,theme:t})=>M({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${bF.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),n7e=Re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ht(n.variant)}`],n.open&&t.iconOpen]}})(fle),r7e=N.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,u=at(t,JPe),c=M({},t,{disabled:i,variant:l,error:a}),f=e7e(c);return I.jsxs(N.Fragment,{children:[I.jsx(t7e,M({ownerState:c,className:ft(f.select,r),disabled:i,ref:o||n},u)),t.multiple?null:I.jsx(n7e,{as:s,ownerState:c,className:f.icon})]})}),i7e=r7e;var bZ;const a7e=["children","classes","className","label","notched"],s7e=Re("fieldset",{shouldForwardProp:Cs})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),o7e=Re("legend",{shouldForwardProp:Cs})(({ownerState:e,theme:t})=>M({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&M({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function l7e(e){const{className:t,label:n,notched:r}=e,i=at(e,a7e),a=n!=null&&n!=="",s=M({},e,{notched:r,withLabel:a});return I.jsx(s7e,M({"aria-hidden":!0,className:t,ownerState:s},i,{children:I.jsx(o7e,{ownerState:s,children:a?I.jsx("span",{children:n}):bZ||(bZ=I.jsx("span",{className:"notranslate",children:"​"}))})}))}const u7e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],c7e=e=>{const{classes:t}=e,r=Lt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mRe,t);return M({},t,r)},d7e=Re(TR,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:wR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return M({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${af.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${af.focused} .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${af.error} .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${af.disabled} .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&M({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),f7e=Re(l7e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),h7e=Re(kR,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xR})(({theme:e,ownerState:t})=>M({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),hle=N.forwardRef(function(t,n){var r,i,a,s,o;const l=_t({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:h,multiline:g=!1,notched:b,slots:S={},type:E="text"}=l,w=at(l,u7e),x=c7e(l),k=Vf(),C=O0({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=M({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:k,fullWidth:c,hiddenLabel:C.hiddenLabel,multiline:g,size:C.size,type:E}),A=(r=(i=S.root)!=null?i:u.Root)!=null?r:d7e,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:h7e;return I.jsx(dF,M({slots:{root:A,input:D},renderSuffix:B=>I.jsx(f7e,{ownerState:R,className:x.notchedOutline,label:h!=null&&h!==""&&C.required?o||(o=I.jsxs(N.Fragment,{children:[h," ","*"]})):h,notched:typeof b<"u"?b:!!(B.startAdornment||B.filled||B.focused)}),fullWidth:c,inputComponent:f,multiline:g,ref:n,type:E},w,{classes:M({},x,{notchedOutline:null})}))});hle.muiName="Input";const ple=hle,p7e=Wa(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),m7e=Wa(I.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),g7e=Re("span",{shouldForwardProp:Cs})({position:"relative",display:"flex"}),b7e=Re(p7e)({transform:"scale(1)"}),y7e=Re(m7e)(({theme:e,ownerState:t})=>M({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function mle(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=M({},e,{checked:t});return I.jsxs(g7e,{className:n.root,ownerState:i,children:[I.jsx(b7e,{fontSize:r,className:n.background,ownerState:i}),I.jsx(y7e,{fontSize:r,className:n.dot,ownerState:i})]})}const v7e=N.createContext(void 0),gle=v7e;function O7e(){return N.useContext(gle)}function S7e(e){return Bt("MuiRadio",e)}const yZ=Ut("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),E7e=["checked","checkedIcon","color","icon","name","onChange","size","className"],w7e=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ht(n)}`,r!=="medium"&&`size${ht(r)}`]};return M({},t,Lt(i,S7e,t))},x7e=Re(pF,{shouldForwardProp:e=>Cs(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ht(n.size)}`],t[`color${ht(n.color)}`]]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${yZ.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${yZ.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function T7e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const vZ=I.jsx(mle,{checked:!0}),OZ=I.jsx(mle,{}),k7e=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=vZ,color:l="primary",icon:u=OZ,name:c,onChange:f,size:h="medium",className:g}=a,b=at(a,E7e),S=M({},a,{color:l,size:h}),E=w7e(S),w=O7e();let x=s;const k=F_(f,w&&w.onChange);let C=c;return w&&(typeof x>"u"&&(x=T7e(w.value,a.value)),typeof C>"u"&&(C=w.name)),I.jsx(x7e,M({type:"radio",icon:N.cloneElement(u,{fontSize:(r=OZ.props.fontSize)!=null?r:h}),checkedIcon:N.cloneElement(o,{fontSize:(i=vZ.props.fontSize)!=null?i:h}),ownerState:S,classes:E,name:C,checked:x,onChange:k,ref:n,className:ft(E.root,g)},b))}),SZ=k7e,C7e=["actions","children","defaultValue","name","onChange","value"],A7e=N.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:a,name:s,onChange:o,value:l}=t,u=at(t,C7e),c=N.useRef(null),[f,h]=ws({controlled:l,default:a,name:"RadioGroup"});N.useImperativeHandle(r,()=>({focus:()=>{let E=c.current.querySelector("input:not(:disabled):checked");E||(E=c.current.querySelector("input:not(:disabled)")),E&&E.focus()}}),[]);const g=Jn(n,c),b=Td(s),S=N.useMemo(()=>({name:b,onChange(E){h(E.target.value),o&&o(E,E.target.value)},value:f}),[b,o,h,f]);return I.jsx(gle.Provider,{value:S,children:I.jsx(mF,M({role:"radiogroup",ref:g},u,{children:i}))})}),_7e=A7e;function R7e(e){return Bt("MuiSelect",e)}const mE=Ut("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var EZ;const I7e=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],D7e=Re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${mE.select}`]:t.select},{[`&.${mE.select}`]:t[n.variant]},{[`&.${mE.error}`]:t.error},{[`&.${mE.multiple}`]:t.multiple}]}})(dle,{[`&.${mE.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),N7e=Re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ht(n.variant)}`],n.open&&t.iconOpen]}})(fle),P7e=Re("input",{shouldForwardProp:e=>Z$(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function wZ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function M7e(e){return e==null||typeof e=="string"&&!e.trim()}const L7e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ht(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Lt(o,R7e,t)},$7e=N.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:h,displayEmpty:g,error:b=!1,IconComponent:S,inputRef:E,labelId:w,MenuProps:x={},multiple:k,name:C,onBlur:R,onChange:A,onClose:D,onFocus:B,onOpen:L,open:F,readOnly:W,renderValue:V,SelectDisplayProps:Z={},tabIndex:Q,value:H,variant:J="standard"}=t,K=at(t,I7e),[X,te]=ws({controlled:H,default:f,name:"Select"}),[z,Te]=ws({controlled:F,default:c,name:"Select"}),be=N.useRef(null),ee=N.useRef(null),[ye,Oe]=N.useState(null),{current:ie}=N.useRef(F!=null),[_e,Ie]=N.useState(),qe=Jn(n,E),st=N.useCallback(gt=>{ee.current=gt,gt&&Oe(gt)},[]),Pe=ye==null?void 0:ye.parentNode;N.useImperativeHandle(qe,()=>({focus:()=>{ee.current.focus()},node:be.current,value:X}),[X]),N.useEffect(()=>{c&&z&&ye&&!ie&&(Ie(o?null:Pe.clientWidth),ee.current.focus())},[ye,o]),N.useEffect(()=>{s&&ee.current.focus()},[s]),N.useEffect(()=>{if(!w)return;const gt=Ei(ee.current).getElementById(w);if(gt){const Gt=()=>{getSelection().isCollapsed&&ee.current.focus()};return gt.addEventListener("click",Gt),()=>{gt.removeEventListener("click",Gt)}}},[w]);const tt=(gt,Gt)=>{gt?L&&L(Gt):D&&D(Gt),ie||(Ie(o?null:Pe.clientWidth),Te(gt))},Ve=gt=>{gt.button===0&&(gt.preventDefault(),ee.current.focus(),tt(!0,gt))},Xe=gt=>{tt(!1,gt)},et=N.Children.toArray(l),dt=gt=>{const Gt=et.find(ut=>ut.props.value===gt.target.value);Gt!==void 0&&(te(Gt.props.value),A&&A(gt,Gt))},At=gt=>Gt=>{let ut;if(Gt.currentTarget.hasAttribute("tabindex")){if(k){ut=Array.isArray(X)?X.slice():[];const wt=X.indexOf(gt.props.value);wt===-1?ut.push(gt.props.value):ut.splice(wt,1)}else ut=gt.props.value;if(gt.props.onClick&>.props.onClick(Gt),X!==ut&&(te(ut),A)){const wt=Gt.nativeEvent||Gt,Xt=new wt.constructor(wt.type,wt);Object.defineProperty(Xt,"target",{writable:!0,value:{value:ut,name:C}}),A(Xt,gt)}k||tt(!1,Gt)}},Je=gt=>{W||[" ","ArrowUp","ArrowDown","Enter"].indexOf(gt.key)!==-1&&(gt.preventDefault(),tt(!0,gt))},pe=ye!==null&&z,le=gt=>{!pe&&R&&(Object.defineProperty(gt,"target",{writable:!0,value:{value:X,name:C}}),R(gt))};delete K["aria-invalid"];let he,je;const Ze=[];let We=!1;(W_({value:X})||g)&&(V?he=V(X):We=!0);const fe=et.map(gt=>{if(!N.isValidElement(gt))return null;let Gt;if(k){if(!Array.isArray(X))throw new Error(Km(2));Gt=X.some(ut=>wZ(ut,gt.props.value)),Gt&&We&&Ze.push(gt.props.children)}else Gt=wZ(X,gt.props.value),Gt&&We&&(je=gt.props.children);return N.cloneElement(gt,{"aria-selected":Gt?"true":"false",onClick:At(gt),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),gt.props.onKeyUp&>.props.onKeyUp(ut)},role:"option",selected:Gt,value:void 0,"data-value":gt.props.value})});We&&(k?Ze.length===0?he=null:he=Ze.reduce((gt,Gt,ut)=>(gt.push(Gt),ut{const{classes:t}=e;return t},yF={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Cs(e)&&e!=="variant",slot:"Root"},j7e=Re(ale,yF)(""),H7e=Re(ple,yF)(""),V7e=Re(Joe,yF)(""),ble=N.forwardRef(function(t,n){const r=_t({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Voe,id:f,input:h,inputProps:g,label:b,labelId:S,MenuProps:E,multiple:w=!1,native:x=!1,onClose:k,onOpen:C,open:R,renderValue:A,SelectDisplayProps:D,variant:B="outlined"}=r,L=at(r,B7e),F=x?i7e:F7e,W=Vf(),V=O0({props:r,muiFormControl:W,states:["variant","error"]}),Z=V.variant||B,Q=M({},r,{variant:Z,classes:s}),H=z7e(Q),J=at(H,U7e),K=h||{standard:I.jsx(j7e,{ownerState:Q}),outlined:I.jsx(H7e,{label:b,ownerState:Q}),filled:I.jsx(V7e,{ownerState:Q})}[Z],X=Jn(n,K.ref);return I.jsx(N.Fragment,{children:N.cloneElement(K,M({inputComponent:F,inputProps:M({children:a,error:V.error,IconComponent:c,variant:Z,type:void 0,multiple:w},x?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:S,MenuProps:E,onClose:k,onOpen:C,open:R,renderValue:A,SelectDisplayProps:M({id:f},D)},g,{classes:g?yo(J,g.classes):J},h?h.props.inputProps:{})},(w&&x||u)&&Z==="outlined"?{notched:!0}:{},{ref:X,className:ft(K.props.className,o,H.root)},!h&&{variant:Z},L))})});ble.muiName="Select";const yle=ble,W7e=e=>!e||!Nf(e);function Q7e(e){return Bt("MuiSlider",e)}const cd=Ut("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),q7e=e=>{const{open:t}=e;return{offset:ft(t&&cd.valueLabelOpen),circle:cd.valueLabelCircle,label:cd.valueLabelLabel}};function G7e(e){const{children:t,className:n,value:r}=e,i=q7e(e);return t?N.cloneElement(t,{className:ft(t.props.className)},I.jsxs(N.Fragment,{children:[t.props.children,I.jsx("span",{className:ft(i.offset,n),"aria-hidden":!0,children:I.jsx("span",{className:i.circle,children:I.jsx("span",{className:i.label,children:r})})})]})):null}const Y7e=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function xZ(e){return e}const Z7e=Re("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ht(n.color)}`],n.size!=="medium"&&t[`size${ht(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>M({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&M({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&M({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${cd.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${cd.dragging}`]:{[`& .${cd.thumb}, & .${cd.track}`]:{transition:"none"}}})),X7e=Re("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>M({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),K7e=Re("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?tT(e.palette[t.color].main,.62):eT(e.palette[t.color].main,.5);return M({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),J7e=Re("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ht(n.color)}`],n.size!=="medium"&&t[`thumbSize${ht(n.size)}`]]}})(({theme:e,ownerState:t})=>M({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":M({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${cd.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Rn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${cd.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Rn(e.palette[t.color].main,.16)}`},[`&.${cd.disabled}`]:{"&:hover":{boxShadow:"none"}}})),e8e=Re(G7e,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>M({[`&.${cd.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),t8e=Re("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Z$(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>M({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),n8e=Re("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Z$(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>M({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),r8e=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${ht(o)}`,l&&`size${ht(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${ht(l)}`,o&&`thumbColor${ht(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Lt(u,Q7e,s)},i8e=({children:e})=>e,a8e=N.forwardRef(function(t,n){var r,i,a,s,o,l,u,c,f,h,g,b,S,E,w,x,k,C,R,A,D,B,L,F;const W=_t({props:t,name:"MuiSlider"}),Z=Ni().direction==="rtl",{"aria-label":Q,"aria-valuetext":H,"aria-labelledby":J,component:K="span",components:X={},componentsProps:te={},color:z="primary",classes:Te,className:be,disableSwap:ee=!1,disabled:ye=!1,getAriaLabel:Oe,getAriaValueText:ie,marks:_e=!1,max:Ie=100,min:qe=0,orientation:st="horizontal",size:Pe="medium",step:tt=1,scale:Ve=xZ,slotProps:Xe,slots:et,track:dt="normal",valueLabelDisplay:At="off",valueLabelFormat:Je=xZ}=W,pe=at(W,Y7e),le=M({},W,{isRtl:Z,max:Ie,min:qe,classes:Te,disabled:ye,disableSwap:ee,orientation:st,marks:_e,color:z,size:Pe,step:tt,scale:Ve,track:dt,valueLabelDisplay:At,valueLabelFormat:Je}),{axisProps:he,getRootProps:je,getHiddenInputProps:Ze,getThumbProps:We,open:fe,active:xe,axis:ve,focusedThumbIndex:De,range:$e,dragging:vt,marks:Wt,values:Kt,trackOffset:gt,trackLeap:Gt,getThumbStyle:ut}=L5e(M({},le,{rootRef:n}));le.marked=Wt.length>0&&Wt.some(nt=>nt.label),le.dragging=vt,le.focusedThumbIndex=De;const wt=r8e(le),Xt=(r=(i=et==null?void 0:et.root)!=null?i:X.Root)!=null?r:Z7e,Ln=(a=(s=et==null?void 0:et.rail)!=null?s:X.Rail)!=null?a:X7e,$n=(o=(l=et==null?void 0:et.track)!=null?l:X.Track)!=null?o:K7e,jn=(u=(c=et==null?void 0:et.thumb)!=null?c:X.Thumb)!=null?u:J7e,ar=(f=(h=et==null?void 0:et.valueLabel)!=null?h:X.ValueLabel)!=null?f:e8e,Ur=(g=(b=et==null?void 0:et.mark)!=null?b:X.Mark)!=null?g:t8e,Me=(S=(E=et==null?void 0:et.markLabel)!=null?E:X.MarkLabel)!=null?S:n8e,Ue=(w=(x=et==null?void 0:et.input)!=null?x:X.Input)!=null?w:"input",lt=(k=Xe==null?void 0:Xe.root)!=null?k:te.root,Nt=(C=Xe==null?void 0:Xe.rail)!=null?C:te.rail,Qt=(R=Xe==null?void 0:Xe.track)!=null?R:te.track,Hn=(A=Xe==null?void 0:Xe.thumb)!=null?A:te.thumb,yn=(D=Xe==null?void 0:Xe.valueLabel)!=null?D:te.valueLabel,rn=(B=Xe==null?void 0:Xe.mark)!=null?B:te.mark,Yt=(L=Xe==null?void 0:Xe.markLabel)!=null?L:te.markLabel,xn=(F=Xe==null?void 0:Xe.input)!=null?F:te.input,Qe=cr({elementType:Xt,getSlotProps:je,externalSlotProps:lt,externalForwardedProps:pe,additionalProps:M({},W7e(Xt)&&{as:K}),ownerState:M({},le,lt==null?void 0:lt.ownerState),className:[wt.root,be]}),Ye=cr({elementType:Ln,externalSlotProps:Nt,ownerState:le,className:wt.rail}),ot=cr({elementType:$n,externalSlotProps:Qt,additionalProps:{style:M({},he[ve].offset(gt),he[ve].leap(Gt))},ownerState:M({},le,Qt==null?void 0:Qt.ownerState),className:wt.track}),yt=cr({elementType:jn,getSlotProps:We,externalSlotProps:Hn,ownerState:M({},le,Hn==null?void 0:Hn.ownerState),className:wt.thumb}),Yn=cr({elementType:ar,externalSlotProps:yn,ownerState:M({},le,yn==null?void 0:yn.ownerState),className:wt.valueLabel}),pn=cr({elementType:Ur,externalSlotProps:rn,ownerState:le,className:wt.mark}),Fn=cr({elementType:Me,externalSlotProps:Yt,ownerState:le,className:wt.markLabel}),Pi=cr({elementType:Ue,getSlotProps:Ze,externalSlotProps:xn,ownerState:le});return I.jsxs(Xt,M({},Qe,{children:[I.jsx(Ln,M({},Ye)),I.jsx($n,M({},ot)),Wt.filter(nt=>nt.value>=qe&&nt.value<=Ie).map((nt,Be)=>{const Dt=V_(nt.value,qe,Ie),en=he[ve].offset(Dt);let Vn;return dt===!1?Vn=Kt.indexOf(nt.value)!==-1:Vn=dt==="normal"&&($e?nt.value>=Kt[0]&&nt.value<=Kt[Kt.length-1]:nt.value<=Kt[0])||dt==="inverted"&&($e?nt.value<=Kt[0]||nt.value>=Kt[Kt.length-1]:nt.value>=Kt[0]),I.jsxs(N.Fragment,{children:[I.jsx(Ur,M({"data-index":Be},pn,!Nf(Ur)&&{markActive:Vn},{style:M({},en,pn.style),className:ft(pn.className,Vn&&wt.markActive)})),nt.label!=null?I.jsx(Me,M({"aria-hidden":!0,"data-index":Be},Fn,!Nf(Me)&&{markLabelActive:Vn},{style:M({},en,Fn.style),className:ft(wt.markLabel,Fn.className,Vn&&wt.markLabelActive),children:nt.label})):null]},Be)}),Kt.map((nt,Be)=>{const Dt=V_(nt,qe,Ie),en=he[ve].offset(Dt),Vn=At==="off"?i8e:ar;return I.jsx(Vn,M({},!Nf(Vn)&&{valueLabelFormat:Je,valueLabelDisplay:At,value:typeof Je=="function"?Je(Ve(nt),Be):Je,index:Be,open:fe===Be||xe===Be||At==="on",disabled:ye},Yn,{children:I.jsx(jn,M({"data-index":Be},yt,{className:ft(wt.thumb,yt.className,xe===Be&&wt.active,De===Be&&wt.focusVisible),style:M({},en,ut(Be),yt.style),children:I.jsx(Ue,M({"data-index":Be,"aria-label":Oe?Oe(Be):Q,"aria-valuenow":Ve(nt),"aria-labelledby":J,"aria-valuetext":ie?ie(Ve(nt),Be):H,value:Kt[Be]},Pi))}))}),Be)})]}))}),s8e=a8e;function o8e(e){return Bt("MuiTooltip",e)}const l8e=Ut("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),km=l8e,u8e=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function c8e(e){return Math.round(e*1e5)/1e5}const d8e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ht(a.split("-")[0])}`],arrow:["arrow"]};return Lt(s,o8e,t)},f8e=Re(wO,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>M({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${km.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${km.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${km.arrow}`]:M({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${km.arrow}`]:M({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),h8e=Re("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ht(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>M({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Rn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${c8e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${km.popper}[data-popper-placement*="left"] &`]:M({transformOrigin:"right center"},t.isRtl?M({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):M({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${km.popper}[data-popper-placement*="right"] &`]:M({transformOrigin:"left center"},t.isRtl?M({marginRight:"14px"},t.touch&&{marginRight:"24px"}):M({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${km.popper}[data-popper-placement*="top"] &`]:M({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${km.popper}[data-popper-placement*="bottom"] &`]:M({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),p8e=Re("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Rn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let QC=!1;const TZ=new Zx;let gE={x:0,y:0};function qC(e,t){return n=>{t&&t(n),e(n)}}const m8e=N.forwardRef(function(t,n){var r,i,a,s,o,l,u,c,f,h,g,b,S,E,w,x,k,C,R;const A=_t({props:t,name:"MuiTooltip"}),{arrow:D=!1,children:B,components:L={},componentsProps:F={},describeChild:W=!1,disableFocusListener:V=!1,disableHoverListener:Z=!1,disableInteractive:Q=!1,disableTouchListener:H=!1,enterDelay:J=100,enterNextDelay:K=0,enterTouchDelay:X=700,followCursor:te=!1,id:z,leaveDelay:Te=0,leaveTouchDelay:be=1500,onClose:ee,onOpen:ye,open:Oe,placement:ie="bottom",PopperComponent:_e,PopperProps:Ie={},slotProps:qe={},slots:st={},title:Pe,TransitionComponent:tt=Q_,TransitionProps:Ve}=A,Xe=at(A,u8e),et=N.isValidElement(B)?B:I.jsx("span",{children:B}),dt=Ni(),At=dt.direction==="rtl",[Je,pe]=N.useState(),[le,he]=N.useState(null),je=N.useRef(!1),Ze=Q||te,We=Ig(),fe=Ig(),xe=Ig(),ve=Ig(),[De,$e]=ws({controlled:Oe,default:!1,name:"Tooltip",state:"open"});let vt=De;const Wt=Td(z),Kt=N.useRef(),gt=on(()=>{Kt.current!==void 0&&(document.body.style.WebkitUserSelect=Kt.current,Kt.current=void 0),ve.clear()});N.useEffect(()=>gt,[gt]);const Gt=In=>{TZ.clear(),QC=!0,$e(!0),ye&&!vt&&ye(In)},ut=on(In=>{TZ.start(800+Te,()=>{QC=!1}),$e(!1),ee&&vt&&ee(In),We.start(dt.transitions.duration.shortest,()=>{je.current=!1})}),wt=In=>{je.current&&In.type!=="touchstart"||(Je&&Je.removeAttribute("title"),fe.clear(),xe.clear(),J||QC&&K?fe.start(QC?K:J,()=>{Gt(In)}):Gt(In))},Xt=In=>{fe.clear(),xe.start(Te,()=>{ut(In)})},{isFocusVisibleRef:Ln,onBlur:$n,onFocus:jn,ref:ar}=oR(),[,Ur]=N.useState(!1),Me=In=>{$n(In),Ln.current===!1&&(Ur(!1),Xt(In))},Ue=In=>{Je||pe(In.currentTarget),jn(In),Ln.current===!0&&(Ur(!0),wt(In))},lt=In=>{je.current=!0;const Wn=et.props;Wn.onTouchStart&&Wn.onTouchStart(In)},Nt=wt,Qt=Xt,Hn=In=>{lt(In),xe.clear(),We.clear(),gt(),Kt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(X,()=>{document.body.style.WebkitUserSelect=Kt.current,wt(In)})},yn=In=>{et.props.onTouchEnd&&et.props.onTouchEnd(In),gt(),xe.start(be,()=>{ut(In)})};N.useEffect(()=>{if(!vt)return;function In(Wn){(Wn.key==="Escape"||Wn.key==="Esc")&&ut(Wn)}return document.addEventListener("keydown",In),()=>{document.removeEventListener("keydown",In)}},[ut,vt]);const rn=Jn(et.ref,ar,pe,n);!Pe&&Pe!==0&&(vt=!1);const Yt=N.useRef(),xn=In=>{const Wn=et.props;Wn.onMouseMove&&Wn.onMouseMove(In),gE={x:In.clientX,y:In.clientY},Yt.current&&Yt.current.update()},Qe={},Ye=typeof Pe=="string";W?(Qe.title=!vt&&Ye&&!Z?Pe:null,Qe["aria-describedby"]=vt?Wt:null):(Qe["aria-label"]=Ye?Pe:null,Qe["aria-labelledby"]=vt&&!Ye?Wt:null);const ot=M({},Qe,Xe,et.props,{className:ft(Xe.className,et.props.className),onTouchStart:lt,ref:rn},te?{onMouseMove:xn}:{}),yt={};H||(ot.onTouchStart=Hn,ot.onTouchEnd=yn),Z||(ot.onMouseOver=qC(Nt,ot.onMouseOver),ot.onMouseLeave=qC(Qt,ot.onMouseLeave),Ze||(yt.onMouseOver=Nt,yt.onMouseLeave=Qt)),V||(ot.onFocus=qC(Ue,ot.onFocus),ot.onBlur=qC(Me,ot.onBlur),Ze||(yt.onFocus=Ue,yt.onBlur=Me));const Yn=N.useMemo(()=>{var In;let Wn=[{name:"arrow",enabled:!!le,options:{element:le,padding:4}}];return(In=Ie.popperOptions)!=null&&In.modifiers&&(Wn=Wn.concat(Ie.popperOptions.modifiers)),M({},Ie.popperOptions,{modifiers:Wn})},[le,Ie]),pn=M({},A,{isRtl:At,arrow:D,disableInteractive:Ze,placement:ie,PopperComponentProp:_e,touch:je.current}),Fn=d8e(pn),Pi=(r=(i=st.popper)!=null?i:L.Popper)!=null?r:f8e,nt=(a=(s=(o=st.transition)!=null?o:L.Transition)!=null?s:tt)!=null?a:Q_,Be=(l=(u=st.tooltip)!=null?u:L.Tooltip)!=null?l:h8e,Dt=(c=(f=st.arrow)!=null?f:L.Arrow)!=null?c:p8e,en=KE(Pi,M({},Ie,(h=qe.popper)!=null?h:F.popper,{className:ft(Fn.popper,Ie==null?void 0:Ie.className,(g=(b=qe.popper)!=null?b:F.popper)==null?void 0:g.className)}),pn),Vn=KE(nt,M({},Ve,(S=qe.transition)!=null?S:F.transition),pn),Zr=KE(Be,M({},(E=qe.tooltip)!=null?E:F.tooltip,{className:ft(Fn.tooltip,(w=(x=qe.tooltip)!=null?x:F.tooltip)==null?void 0:w.className)}),pn),Er=KE(Dt,M({},(k=qe.arrow)!=null?k:F.arrow,{className:ft(Fn.arrow,(C=(R=qe.arrow)!=null?R:F.arrow)==null?void 0:C.className)}),pn);return I.jsxs(N.Fragment,{children:[N.cloneElement(et,ot),I.jsx(Pi,M({as:_e??wO,placement:ie,anchorEl:te?{getBoundingClientRect:()=>({top:gE.y,left:gE.x,right:gE.x,bottom:gE.y,width:0,height:0})}:Je,popperRef:Yt,open:Je?vt:!1,id:Wt,transition:!0},yt,en,{popperOptions:Yn,children:({TransitionProps:In})=>I.jsx(nt,M({timeout:dt.transitions.duration.shorter},In,Vn,{children:I.jsxs(Be,M({},Zr,{children:[Pe,D?I.jsx(Dt,M({},Er,{ref:he})):null]}))}))}))]})}),wg=m8e;function g8e(e){return Bt("MuiSwitch",e)}const b8e=Ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Fo=b8e,y8e=["className","color","edge","size","sx"],v8e=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${ht(n)}`,`size${ht(r)}`],switchBase:["switchBase",`color${ht(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Lt(o,g8e,t);return M({},t,l)},O8e=Re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ht(n.edge)}`],t[`size${ht(n.size)}`]]}})(({ownerState:e})=>M({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Fo.thumb}`]:{width:16,height:16},[`& .${Fo.switchBase}`]:{padding:4,[`&.${Fo.checked}`]:{transform:"translateX(16px)"}}})),S8e=Re(pF,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Fo.input}`]:t.input},n.color!=="default"&&t[`color${ht(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Fo.checked}`]:{transform:"translateX(20px)"},[`&.${Fo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Fo.checked} + .${Fo.track}`]:{opacity:.5},[`&.${Fo.disabled} + .${Fo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Fo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>M({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Fo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?tT(e.palette[t.color].main,.62):eT(e.palette[t.color].main,.55)}`}},[`&.${Fo.checked} + .${Fo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),E8e=Re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),w8e=Re("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),x8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,u=at(r,y8e),c=M({},r,{color:a,edge:s,size:o}),f=v8e(c),h=I.jsx(w8e,{className:f.thumb,ownerState:c});return I.jsxs(O8e,{className:ft(f.root,i),sx:l,ownerState:c,children:[I.jsx(S8e,M({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:c},u,{classes:M({},f,{root:f.switchBase})})),I.jsx(E8e,{className:f.track,ownerState:c})]})}),T8e=x8e;function k8e(e){return Bt("MuiTab",e)}const C8e=Ut("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),lg=C8e,A8e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],_8e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:s,selected:o,disabled:l}=e,u={root:["root",a&&s&&"labelIcon",`textColor${ht(n)}`,r&&"fullWidth",i&&"wrapped",o&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Lt(u,k8e,t)},R8e=Re(Tu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ht(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>M({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${lg.iconWrapper}`]:M({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${lg.selected}`]:{opacity:1},[`&.${lg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${lg.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${lg.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${lg.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${lg.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),I8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:o,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:h,onClick:g,onFocus:b,selected:S,selectionFollowsFocus:E,textColor:w="inherit",value:x,wrapped:k=!1}=r,C=at(r,A8e),R=M({},r,{disabled:a,disableFocusRipple:s,selected:S,icon:!!l,iconPosition:u,label:!!f,fullWidth:o,textColor:w,wrapped:k}),A=_8e(R),D=l&&f&&N.isValidElement(l)?N.cloneElement(l,{className:ft(A.iconWrapper,l.props.className)}):l,B=F=>{!S&&h&&h(F,x),g&&g(F)},L=F=>{E&&!S&&h&&h(F,x),b&&b(F)};return I.jsxs(R8e,M({focusRipple:!s,className:ft(A.root,i),ref:n,role:"tab","aria-selected":S,disabled:a,onClick:B,onFocus:L,ownerState:R,tabIndex:S?0:-1},C,{children:[u==="top"||u==="start"?I.jsxs(N.Fragment,{children:[D,f]}):I.jsxs(N.Fragment,{children:[f,D]}),c]}))}),kZ=I8e,D8e=N.createContext(),vle=D8e;function N8e(e){return Bt("MuiTable",e)}Ut("MuiTable",["root","stickyHeader"]);const P8e=["className","component","padding","size","stickyHeader"],M8e=e=>{const{classes:t,stickyHeader:n}=e;return Lt({root:["root",n&&"stickyHeader"]},N8e,t)},L8e=Re("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>M({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":M({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),CZ="table",$8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTable"}),{className:i,component:a=CZ,padding:s="normal",size:o="medium",stickyHeader:l=!1}=r,u=at(r,P8e),c=M({},r,{component:a,padding:s,size:o,stickyHeader:l}),f=M8e(c),h=N.useMemo(()=>({padding:s,size:o,stickyHeader:l}),[s,o,l]);return I.jsx(vle.Provider,{value:h,children:I.jsx(L8e,M({as:a,role:a===CZ?null:"table",ref:n,className:ft(f.root,i),ownerState:c},u))})}),F8e=$8e,B8e=N.createContext(),IR=B8e;function U8e(e){return Bt("MuiTableBody",e)}Ut("MuiTableBody",["root"]);const z8e=["className","component"],j8e=e=>{const{classes:t}=e;return Lt({root:["root"]},U8e,t)},H8e=Re("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),V8e={variant:"body"},AZ="tbody",W8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableBody"}),{className:i,component:a=AZ}=r,s=at(r,z8e),o=M({},r,{component:a}),l=j8e(o);return I.jsx(IR.Provider,{value:V8e,children:I.jsx(H8e,M({className:ft(l.root,i),as:a,ref:n,role:a===AZ?null:"rowgroup",ownerState:o},s))})}),Q8e=W8e;function q8e(e){return Bt("MuiTableCell",e)}const G8e=Ut("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Y8e=G8e,Z8e=["align","className","component","padding","scope","size","sortDirection","variant"],X8e=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ht(r)}`,i!=="normal"&&`padding${ht(i)}`,`size${ht(a)}`]};return Lt(o,q8e,t)},K8e=Re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ht(n.size)}`],n.padding!=="normal"&&t[`padding${ht(n.padding)}`],n.align!=="inherit"&&t[`align${ht(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>M({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?tT(Rn(e.palette.divider,1),.88):eT(Rn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Y8e.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),J8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:l,size:u,sortDirection:c,variant:f}=r,h=at(r,Z8e),g=N.useContext(vle),b=N.useContext(IR),S=b&&b.variant==="head";let E;s?E=s:E=S?"th":"td";let w=l;E==="td"?w=void 0:!w&&S&&(w="col");const x=f||b&&b.variant,k=M({},r,{align:i,component:E,padding:o||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:c,stickyHeader:x==="head"&&g&&g.stickyHeader,variant:x}),C=X8e(k);let R=null;return c&&(R=c==="asc"?"ascending":"descending"),I.jsx(K8e,M({as:E,ref:n,className:ft(C.root,a),"aria-sort":R,scope:w,ownerState:k},h))}),qb=J8e;function eMe(e){return Bt("MuiTableContainer",e)}Ut("MuiTableContainer",["root"]);const tMe=["className","component"],nMe=e=>{const{classes:t}=e;return Lt({root:["root"]},eMe,t)},rMe=Re("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),iMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,s=at(r,tMe),o=M({},r,{component:a}),l=nMe(o);return I.jsx(rMe,M({ref:n,as:a,className:ft(l.root,i),ownerState:o},s))}),aMe=iMe;function sMe(e){return Bt("MuiTableHead",e)}Ut("MuiTableHead",["root"]);const oMe=["className","component"],lMe=e=>{const{classes:t}=e;return Lt({root:["root"]},sMe,t)},uMe=Re("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),cMe={variant:"head"},_Z="thead",dMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableHead"}),{className:i,component:a=_Z}=r,s=at(r,oMe),o=M({},r,{component:a}),l=lMe(o);return I.jsx(IR.Provider,{value:cMe,children:I.jsx(uMe,M({as:a,className:ft(l.root,i),ref:n,role:a===_Z?null:"rowgroup",ownerState:o},s))})}),fMe=dMe;function hMe(e){return Bt("MuiToolbar",e)}Ut("MuiToolbar",["root","gutters","regular","dense"]);const pMe=["className","component","disableGutters","variant"],mMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Lt({root:["root",!n&&"gutters",r]},hMe,t)},gMe=Re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>M({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),bMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=at(r,pMe),u=M({},r,{component:a,disableGutters:s,variant:o}),c=mMe(u);return I.jsx(gMe,M({as:a,className:ft(c.root,i),ref:n,ownerState:u},l))}),Ole=bMe,yMe=Wa(I.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),vMe=Wa(I.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function OMe(e){return Bt("MuiTableRow",e)}const SMe=Ut("MuiTableRow",["root","selected","hover","head","footer"]),RZ=SMe,EMe=["className","component","hover","selected"],wMe=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Lt({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},OMe,t)},xMe=Re("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${RZ.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${RZ.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),IZ="tr",TMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableRow"}),{className:i,component:a=IZ,hover:s=!1,selected:o=!1}=r,l=at(r,EMe),u=N.useContext(IR),c=M({},r,{component:a,hover:s,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=wMe(c);return I.jsx(xMe,M({as:a,ref:n,className:ft(f.root,i),role:a===IZ?null:"row",ownerState:c},l))}),DZ=TMe;function kMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function CMe(e,t,n,r={},i=()=>{}){const{ease:a=kMe,duration:s=300}=r;let o=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=h=>{if(u){i(new Error("Animation cancelled"));return}o===null&&(o=h);const g=Math.min(1,(h-o)/s);if(t[e]=a(g)*(n-l)+l,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const AMe=["onChange"],_Me={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function RMe(e){const{onChange:t}=e,n=at(e,AMe),r=N.useRef(),i=N.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return la(()=>{const s=SO(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),o=Tc(i.current);return o.addEventListener("resize",s),()=>{s.clear(),o.removeEventListener("resize",s)}},[t]),N.useEffect(()=>{a(),t(r.current)},[t]),I.jsx("div",M({style:_Me,ref:i},n))}function IMe(e){return Bt("MuiTabScrollButton",e)}const DMe=Ut("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),NMe=DMe,PMe=["className","slots","slotProps","direction","orientation","disabled"],MMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Lt({root:["root",n,r&&"disabled"]},IMe,t)},LMe=Re(Tu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>M({width:40,flexShrink:0,opacity:.8,[`&.${NMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),$Me=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiTabScrollButton"}),{className:s,slots:o={},slotProps:l={},direction:u}=a,c=at(a,PMe),h=Ni().direction==="rtl",g=M({isRtl:h},a),b=MMe(g),S=(r=o.StartScrollButtonIcon)!=null?r:yMe,E=(i=o.EndScrollButtonIcon)!=null?i:vMe,w=cr({elementType:S,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),x=cr({elementType:E,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return I.jsx(LMe,M({component:"div",className:ft(b.root,s),ref:n,role:null,ownerState:g,tabIndex:null},c,{children:u==="left"?I.jsx(S,M({},w)):I.jsx(E,M({},x))}))}),FMe=$Me;function BMe(e){return Bt("MuiTabs",e)}const UMe=Ut("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),S4=UMe,zMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],NZ=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,PZ=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,GC=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},jMe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:s,scrollButtonsHideMobile:o,classes:l}=e;return Lt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",o&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},BMe,l)},HMe=Re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${S4.scrollButtons}`]:t.scrollButtons},{[`& .${S4.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>M({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${S4.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),VMe=Re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>M({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),WMe=Re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>M({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),QMe=Re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>M({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),qMe=Re(RMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),MZ={},GMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTabs"}),i=Ni(),a=i.direction==="rtl",{"aria-label":s,"aria-labelledby":o,action:l,centered:u=!1,children:c,className:f,component:h="div",allowScrollButtonsMobile:g=!1,indicatorColor:b="primary",onChange:S,orientation:E="horizontal",ScrollButtonComponent:w=FMe,scrollButtons:x="auto",selectionFollowsFocus:k,slots:C={},slotProps:R={},TabIndicatorProps:A={},TabScrollButtonProps:D={},textColor:B="primary",value:L,variant:F="standard",visibleScrollbar:W=!1}=r,V=at(r,zMe),Z=F==="scrollable",Q=E==="vertical",H=Q?"scrollTop":"scrollLeft",J=Q?"top":"left",K=Q?"bottom":"right",X=Q?"clientHeight":"clientWidth",te=Q?"height":"width",z=M({},r,{component:h,allowScrollButtonsMobile:g,indicatorColor:b,orientation:E,vertical:Q,scrollButtons:x,textColor:B,variant:F,visibleScrollbar:W,fixed:!Z,hideScrollbar:Z&&!W,scrollableX:Z&&!Q,scrollableY:Z&&Q,centered:u&&!Z,scrollButtonsHideMobile:!g}),Te=jMe(z),be=cr({elementType:C.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:z}),ee=cr({elementType:C.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:z}),[ye,Oe]=N.useState(!1),[ie,_e]=N.useState(MZ),[Ie,qe]=N.useState(!1),[st,Pe]=N.useState(!1),[tt,Ve]=N.useState(!1),[Xe,et]=N.useState({overflow:"hidden",scrollbarWidth:0}),dt=new Map,At=N.useRef(null),Je=N.useRef(null),pe=()=>{const ut=At.current;let wt;if(ut){const Ln=ut.getBoundingClientRect();wt={clientWidth:ut.clientWidth,scrollLeft:ut.scrollLeft,scrollTop:ut.scrollTop,scrollLeftNormalized:bCe(ut,i.direction),scrollWidth:ut.scrollWidth,top:Ln.top,bottom:Ln.bottom,left:Ln.left,right:Ln.right}}let Xt;if(ut&&L!==!1){const Ln=Je.current.children;if(Ln.length>0){const $n=Ln[dt.get(L)];Xt=$n?$n.getBoundingClientRect():null}}return{tabsMeta:wt,tabMeta:Xt}},le=on(()=>{const{tabsMeta:ut,tabMeta:wt}=pe();let Xt=0,Ln;if(Q)Ln="top",wt&&ut&&(Xt=wt.top-ut.top+ut.scrollTop);else if(Ln=a?"right":"left",wt&&ut){const jn=a?ut.scrollLeftNormalized+ut.clientWidth-ut.scrollWidth:ut.scrollLeft;Xt=(a?-1:1)*(wt[Ln]-ut[Ln]+jn)}const $n={[Ln]:Xt,[te]:wt?wt[te]:0};if(isNaN(ie[Ln])||isNaN(ie[te]))_e($n);else{const jn=Math.abs(ie[Ln]-$n[Ln]),ar=Math.abs(ie[te]-$n[te]);(jn>=1||ar>=1)&&_e($n)}}),he=(ut,{animation:wt=!0}={})=>{wt?CMe(H,At.current,ut,{duration:i.transitions.duration.standard}):At.current[H]=ut},je=ut=>{let wt=At.current[H];Q?wt+=ut:(wt+=ut*(a?-1:1),wt*=a&&coe()==="reverse"?-1:1),he(wt)},Ze=()=>{const ut=At.current[X];let wt=0;const Xt=Array.from(Je.current.children);for(let Ln=0;Lnut){Ln===0&&(wt=ut);break}wt+=$n[X]}return wt},We=()=>{je(-1*Ze())},fe=()=>{je(Ze())},xe=N.useCallback(ut=>{et({overflow:null,scrollbarWidth:ut})},[]),ve=()=>{const ut={};ut.scrollbarSizeListener=Z?I.jsx(qMe,{onChange:xe,className:ft(Te.scrollableX,Te.hideScrollbar)}):null;const Xt=Z&&(x==="auto"&&(Ie||st)||x===!0);return ut.scrollButtonStart=Xt?I.jsx(w,M({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:be},orientation:E,direction:a?"right":"left",onClick:We,disabled:!Ie},D,{className:ft(Te.scrollButtons,D.className)})):null,ut.scrollButtonEnd=Xt?I.jsx(w,M({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ee},orientation:E,direction:a?"left":"right",onClick:fe,disabled:!st},D,{className:ft(Te.scrollButtons,D.className)})):null,ut},De=on(ut=>{const{tabsMeta:wt,tabMeta:Xt}=pe();if(!(!Xt||!wt)){if(Xt[J]wt[K]){const Ln=wt[H]+(Xt[K]-wt[K]);he(Ln,{animation:ut})}}}),$e=on(()=>{Z&&x!==!1&&Ve(!tt)});N.useEffect(()=>{const ut=SO(()=>{At.current&&le()});let wt;const Xt=jn=>{jn.forEach(ar=>{ar.removedNodes.forEach(Ur=>{var Me;(Me=wt)==null||Me.unobserve(Ur)}),ar.addedNodes.forEach(Ur=>{var Me;(Me=wt)==null||Me.observe(Ur)})}),ut(),$e()},Ln=Tc(At.current);Ln.addEventListener("resize",ut);let $n;return typeof ResizeObserver<"u"&&(wt=new ResizeObserver(ut),Array.from(Je.current.children).forEach(jn=>{wt.observe(jn)})),typeof MutationObserver<"u"&&($n=new MutationObserver(Xt),$n.observe(Je.current,{childList:!0})),()=>{var jn,ar;ut.clear(),Ln.removeEventListener("resize",ut),(jn=$n)==null||jn.disconnect(),(ar=wt)==null||ar.disconnect()}},[le,$e]),N.useEffect(()=>{const ut=Array.from(Je.current.children),wt=ut.length;if(typeof IntersectionObserver<"u"&&wt>0&&Z&&x!==!1){const Xt=ut[0],Ln=ut[wt-1],$n={root:At.current,threshold:.99},jn=Ue=>{qe(!Ue[0].isIntersecting)},ar=new IntersectionObserver(jn,$n);ar.observe(Xt);const Ur=Ue=>{Pe(!Ue[0].isIntersecting)},Me=new IntersectionObserver(Ur,$n);return Me.observe(Ln),()=>{ar.disconnect(),Me.disconnect()}}},[Z,x,tt,c==null?void 0:c.length]),N.useEffect(()=>{Oe(!0)},[]),N.useEffect(()=>{le()}),N.useEffect(()=>{De(MZ!==ie)},[De,ie]),N.useImperativeHandle(l,()=>({updateIndicator:le,updateScrollButtons:$e}),[le,$e]);const vt=I.jsx(QMe,M({},A,{className:ft(Te.indicator,A.className),ownerState:z,style:M({},ie,A.style)}));let Wt=0;const Kt=N.Children.map(c,ut=>{if(!N.isValidElement(ut))return null;const wt=ut.props.value===void 0?Wt:ut.props.value;dt.set(wt,Wt);const Xt=wt===L;return Wt+=1,N.cloneElement(ut,M({fullWidth:F==="fullWidth",indicator:Xt&&!ye&&vt,selected:Xt,selectionFollowsFocus:k,onChange:S,textColor:B,value:wt},Wt===1&&L===!1&&!ut.props.tabIndex?{tabIndex:0}:{}))}),gt=ut=>{const wt=Je.current,Xt=Ei(wt).activeElement;if(Xt.getAttribute("role")!=="tab")return;let $n=E==="horizontal"?"ArrowLeft":"ArrowUp",jn=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&a&&($n="ArrowRight",jn="ArrowLeft"),ut.key){case $n:ut.preventDefault(),GC(wt,Xt,PZ);break;case jn:ut.preventDefault(),GC(wt,Xt,NZ);break;case"Home":ut.preventDefault(),GC(wt,null,NZ);break;case"End":ut.preventDefault(),GC(wt,null,PZ);break}},Gt=ve();return I.jsxs(HMe,M({className:ft(Te.root,f),ownerState:z,ref:n,as:h},V,{children:[Gt.scrollButtonStart,Gt.scrollbarSizeListener,I.jsxs(VMe,{className:Te.scroller,ownerState:z,style:{overflow:Xe.overflow,[Q?`margin${a?"Left":"Right"}`:"marginBottom"]:W?void 0:-Xe.scrollbarWidth},ref:At,children:[I.jsx(WMe,{"aria-label":s,"aria-labelledby":o,"aria-orientation":E==="vertical"?"vertical":null,className:Te.flexContainer,ownerState:z,onKeyDown:gt,ref:Je,role:"tablist",children:Kt}),ye&&vt]}),Gt.scrollButtonEnd]}))}),YMe=GMe;function ZMe(e){return Bt("MuiTextField",e)}Ut("MuiTextField",["root"]);const XMe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],KMe={standard:ale,filled:Joe,outlined:ple},JMe=e=>{const{classes:t}=e;return Lt({root:["root"]},ZMe,t)},eLe=Re(kd,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tLe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:b,id:S,InputLabelProps:E,inputProps:w,InputProps:x,inputRef:k,label:C,maxRows:R,minRows:A,multiline:D=!1,name:B,onBlur:L,onChange:F,onFocus:W,placeholder:V,required:Z=!1,rows:Q,select:H=!1,SelectProps:J,type:K,value:X,variant:te="outlined"}=r,z=at(r,XMe),Te=M({},r,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:g,multiline:D,required:Z,select:H,variant:te}),be=JMe(Te),ee={};te==="outlined"&&(E&&typeof E.shrink<"u"&&(ee.notched=E.shrink),ee.label=C),H&&((!J||!J.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const ye=Td(S),Oe=b&&ye?`${ye}-helper-text`:void 0,ie=C&&ye?`${ye}-label`:void 0,_e=KMe[te],Ie=I.jsx(_e,M({"aria-describedby":Oe,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:g,multiline:D,name:B,rows:Q,maxRows:R,minRows:A,type:K,value:X,id:ye,inputRef:k,onBlur:L,onChange:F,onFocus:W,placeholder:V,inputProps:w},ee,x));return I.jsxs(eLe,M({className:ft(be.root,o),disabled:c,error:f,fullWidth:g,ref:n,required:Z,color:l,variant:te,ownerState:Te},z,{children:[C!=null&&C!==""&&I.jsx(sle,M({htmlFor:ye,id:ie},E,{children:C})),H?I.jsx(yle,M({"aria-describedby":Oe,id:ye,labelId:ie,value:X,input:Ie},J,{children:s})):Ie,b&&I.jsx(xO,M({id:Oe},h,{children:b}))]}))}),E0=tLe;function nLe(e){return Bt("MuiToggleButton",e)}const rLe=Ut("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Ry=rLe,iLe=N.createContext({}),Sle=iLe,aLe=N.createContext(void 0),Ele=aLe;function sLe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const oLe=["value"],lLe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],uLe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${ht(a)}`,s]};return Lt(o,nLe,t)},cLe=Re(Tu,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${ht(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),M({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${Ry.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ry.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Rn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Rn(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),dLe=N.forwardRef(function(t,n){const r=N.useContext(Sle),{value:i}=r,a=at(r,oLe),s=N.useContext(Ele),o=lR(M({},a,{selected:sLe(t.value,i)}),t),l=_t({props:o,name:"MuiToggleButton"}),{children:u,className:c,color:f="standard",disabled:h=!1,disableFocusRipple:g=!1,fullWidth:b=!1,onChange:S,onClick:E,selected:w,size:x="medium",value:k}=l,C=at(l,lLe),R=M({},l,{color:f,disabled:h,disableFocusRipple:g,fullWidth:b,size:x}),A=uLe(R),D=L=>{E&&(E(L,k),L.defaultPrevented)||S&&S(L,k)},B=s||"";return I.jsx(cLe,M({className:ft(a.className,A.root,c,B),disabled:h,focusRipple:!g,ref:n,onClick:D,onChange:S,value:k,ownerState:R,"aria-pressed":w},C,{children:u}))}),ON=dLe;function fLe(e){return Bt("MuiToggleButtonGroup",e)}const hLe=Ut("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),qi=hLe,pLe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],mLe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${ht(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Lt(a,fLe,t)},gLe=Re("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qi.grouped}`]:t.grouped},{[`& .${qi.grouped}`]:t[`grouped${ht(n.orientation)}`]},{[`& .${qi.firstButton}`]:t.firstButton},{[`& .${qi.lastButton}`]:t.lastButton},{[`& .${qi.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>M({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${qi.grouped}`]:M({},e.orientation==="horizontal"?{[`&.${qi.selected} + .${qi.grouped}.${qi.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${qi.selected} + .${qi.grouped}.${qi.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${qi.firstButton},& .${qi.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${qi.lastButton},& .${qi.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${qi.firstButton},& .${qi.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${qi.lastButton},& .${qi.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${qi.lastButton}.${Ry.disabled},& .${qi.middleButton}.${Ry.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${qi.lastButton}.${Ry.disabled},& .${qi.middleButton}.${Ry.disabled}`]:{borderTop:"1px solid transparent"}})),bLe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:f="horizontal",size:h="medium",value:g}=r,b=at(r,pLe),S=M({},r,{disabled:o,fullWidth:u,orientation:f,size:h}),E=mLe(S),w=N.useCallback((D,B)=>{if(!c)return;const L=g&&g.indexOf(B);let F;g&&L>=0?(F=g.slice(),F.splice(L,1)):F=g?g.concat(B):[B],c(D,F)},[c,g]),x=N.useCallback((D,B)=>{c&&c(D,g===B?null:B)},[c,g]),k=N.useMemo(()=>({className:E.grouped,onChange:l?x:w,value:g,size:h,fullWidth:u,color:s,disabled:o}),[E.grouped,l,x,w,g,h,u,s,o]),C=vCe(i),R=C.length,A=D=>{const B=D===0,L=D===R-1;return B&&L?"":B?E.firstButton:L?E.lastButton:E.middleButton};return I.jsx(gLe,M({role:"group",className:ft(E.root,a),ref:n,ownerState:S},b,{children:I.jsx(Sle.Provider,{value:k,children:C.map((D,B)=>I.jsx(Ele.Provider,{value:A(B),children:D},B))})}))}),yLe=bLe;var wle={exports:{}},xle={};/** + `),f6e)),b6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,h=at(r,c6e),g=M({},r,{color:a,disableShrink:s,size:o,thickness:u,value:c,variant:f}),b=h6e(g),S={},w={},E={};if(f==="determinate"){const x=2*Math.PI*((Yp-u)/2);S.strokeDasharray=x.toFixed(3),E["aria-valuenow"]=Math.round(c),S.strokeDashoffset=`${((100-c)/100*x).toFixed(3)}px`,w.transform="rotate(-90deg)"}return I.jsx(p6e,M({className:dt(b.root,i),style:M({width:o,height:o},w,l),ownerState:g,ref:n,role:"progressbar"},E,h,{children:I.jsx(m6e,{className:b.svg,ownerState:g,viewBox:`${Yp/2} ${Yp/2} ${Yp} ${Yp}`,children:I.jsx(g6e,{className:b.circle,style:S,ownerState:g,cx:Yp,cy:Yp,r:(Yp-u)/2,fill:"none",strokeWidth:u})})}))}),yp=b6e,y6e=XAe({createStyledComponent:Re("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ht(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>_t({props:e,name:"MuiContainer"})}),Goe=y6e,v6e=(e,t)=>M({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),O6e=e=>M({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),S6e=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=M({html:v6e(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:M({margin:0},O6e(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function E6e(e){const t=_t({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return I.jsxs(N.Fragment,{children:[I.jsx(Voe,{styles:i=>S6e(i,r)}),n]})}function w6e(e){return $t("MuiModal",e)}Ft("MuiModal",["root","hidden","backdrop"]);const x6e=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],T6e=e=>{const{open:t,exited:n,classes:r}=e;return Mt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},w6e,r)},k6e=Re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>M({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),C6e=Re(aT,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),A6e=N.forwardRef(function(t,n){var r,i,a,s,o,l;const u=_t({name:"MuiModal",props:t}),{BackdropComponent:c=C6e,BackdropProps:f,className:h,closeAfterTransition:g=!1,children:b,container:S,component:w,components:E={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:R=!1,disablePortal:A=!1,disableRestoreFocus:D=!1,disableScrollLock:B=!1,hideBackdrop:L=!1,keepMounted:F=!1,onBackdropClick:W,open:V,slotProps:Z,slots:Q}=u,H=at(u,x6e),J=M({},u,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:C,disableEscapeKeyDown:R,disablePortal:A,disableRestoreFocus:D,disableScrollLock:B,hideBackdrop:L,keepMounted:F}),{getRootProps:K,getBackdropProps:X,getTransitionProps:te,portalRef:z,isTopModal:Te,exited:be,hasTransition:ee}=_5e(M({},J,{rootRef:n})),ye=M({},J,{exited:be}),Oe=T6e(ye),ie={};if(b.props.tabIndex===void 0&&(ie.tabIndex="-1"),ee){const{onEnter:Ve,onExited:Xe}=te();ie.onEnter=Ve,ie.onExited=Xe}const _e=(r=(i=Q==null?void 0:Q.root)!=null?i:E.Root)!=null?r:k6e,Ie=(a=(s=Q==null?void 0:Q.backdrop)!=null?s:E.Backdrop)!=null?a:c,qe=(o=Z==null?void 0:Z.root)!=null?o:x.root,st=(l=Z==null?void 0:Z.backdrop)!=null?l:x.backdrop,Pe=cr({elementType:_e,externalSlotProps:qe,externalForwardedProps:H,getSlotProps:K,additionalProps:{ref:n,as:w},ownerState:ye,className:dt(h,qe==null?void 0:qe.className,Oe==null?void 0:Oe.root,!ye.open&&ye.exited&&(Oe==null?void 0:Oe.hidden))}),tt=cr({elementType:Ie,externalSlotProps:st,additionalProps:f,getSlotProps:Ve=>X(M({},Ve,{onClick:Xe=>{W&&W(Xe),Ve!=null&&Ve.onClick&&Ve.onClick(Xe)}})),className:dt(st==null?void 0:st.className,f==null?void 0:f.className,Oe==null?void 0:Oe.backdrop),ownerState:ye});return!F&&!V&&(!ee||be)?null:I.jsx(Boe,{ref:z,container:S,disablePortal:A,children:I.jsxs(_e,M({},Pe,{children:[!L&&c?I.jsx(Ie,M({},tt)):null,I.jsx(_oe,{disableEnforceFocus:C,disableAutoFocus:k,disableRestoreFocus:D,isEnabled:Te,open:V,children:N.cloneElement(b,ie)})]}))})}),S0=A6e;function _6e(e){return $t("MuiDialog",e)}const _2=Ft("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),R6e=N.createContext({}),I6e=R6e,D6e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],N6e=Re(aT,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),P6e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${ht(n)}`],paper:["paper",`paperScroll${ht(n)}`,`paperWidth${ht(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Mt(s,_6e,t)},M6e=Re(S0,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),L6e=Re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ht(n.scroll)}`]]}})(({ownerState:e})=>M({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),$6e=Re(Ts,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ht(n.scroll)}`],t[`paperWidth${ht(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>M({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_2.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${_2.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${_2.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),F6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDialog"}),i=Ni(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,BackdropComponent:l,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:b=!1,maxWidth:S="sm",onBackdropClick:w,onClose:E,open:x,PaperComponent:k=Ts,PaperProps:C={},scroll:R="paper",TransitionComponent:A=tp,transitionDuration:D=a,TransitionProps:B}=r,L=at(r,D6e),F=M({},r,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:b,maxWidth:S,scroll:R}),W=P6e(F),V=N.useRef(),Z=K=>{V.current=K.target===K.currentTarget},Q=K=>{V.current&&(V.current=null,w&&w(K),E&&E(K,"backdropClick"))},H=Td(o),J=N.useMemo(()=>({titleId:H}),[H]);return I.jsx(M6e,M({className:dt(W.root,f),closeAfterTransition:!0,components:{Backdrop:N6e},componentsProps:{backdrop:M({transitionDuration:D,as:l},u)},disableEscapeKeyDown:h,onClose:E,open:x,ref:n,onClick:Q,ownerState:F},L,{children:I.jsx(A,M({appear:!0,in:x,timeout:D,role:"presentation"},B,{children:I.jsx(L6e,{className:dt(W.container),onMouseDown:Z,ownerState:F,children:I.jsx($6e,M({as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":H},C,{className:dt(W.paper,C.className),ownerState:F,children:I.jsx(I6e.Provider,{value:J,children:c})}))})}))}))}),B6e=F6e;function U6e(e){return $t("MuiDialogActions",e)}Ft("MuiDialogActions",["root","spacing"]);const z6e=["className","disableSpacing"],j6e=e=>{const{classes:t,disableSpacing:n}=e;return Mt({root:["root",!n&&"spacing"]},U6e,t)},H6e=Re("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>M({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),V6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=r,s=at(r,z6e),o=M({},r,{disableSpacing:a}),l=j6e(o);return I.jsx(H6e,M({className:dt(l.root,i),ownerState:o,ref:n},s))}),W6e=V6e;function Q6e(e){return $t("MuiDialogContent",e)}Ft("MuiDialogContent",["root","dividers"]);const q6e=Ft("MuiDialogTitle",["root"]),G6e=q6e,Y6e=["className","dividers"],Z6e=e=>{const{classes:t,dividers:n}=e;return Mt({root:["root",n&&"dividers"]},Q6e,t)},X6e=Re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>M({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${G6e.root} + &`]:{paddingTop:0}})),K6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=r,s=at(r,Y6e),o=M({},r,{dividers:a}),l=Z6e(o);return I.jsx(X6e,M({className:dt(l.root,i),ownerState:o,ref:n},s))}),J6e=K6e;function eDe(e){return $t("MuiDivider",e)}const tDe=Ft("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),aZ=tDe,nDe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],rDe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return Mt({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},eDe,r)},iDe=Re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>M({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Rn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>M({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>M({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>M({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>M({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),aDe=Re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>M({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Yoe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=o!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth"}=r,b=at(r,nDe),S=M({},r,{absolute:i,component:o,flexItem:l,light:u,orientation:c,role:f,textAlign:h,variant:g}),w=rDe(S);return I.jsx(iDe,M({as:o,className:dt(w.root,s),role:f,ref:n,ownerState:S},b,{children:a?I.jsx(aDe,{className:w.wrapper,ownerState:S,children:a}):null}))});Yoe.muiSkipListHighlight=!0;const c1=Yoe,sDe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function oDe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=kc(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=a.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function lDe(e){return typeof e=="function"?e():e}function QC(e,t,n){const r=lDe(n),i=oDe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const uDe=N.forwardRef(function(t,n){const r=Ni(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:u,direction:c="down",easing:f=i,in:h,onEnter:g,onEntered:b,onEntering:S,onExit:w,onExited:E,onExiting:x,style:k,timeout:C=a,TransitionComponent:R=nT}=t,A=at(t,sDe),D=N.useRef(null),B=Jn(l.ref,D,n),L=X=>te=>{X&&(te===void 0?X(D.current):X(D.current,te))},F=L((X,te)=>{QC(c,X,u),rF(X),g&&g(X,te)}),W=L((X,te)=>{const z=t0({timeout:C,style:k,easing:f},{mode:"enter"});X.style.webkitTransition=r.transitions.create("-webkit-transform",M({},z)),X.style.transition=r.transitions.create("transform",M({},z)),X.style.webkitTransform="none",X.style.transform="none",S&&S(X,te)}),V=L(b),Z=L(x),Q=L(X=>{const te=t0({timeout:C,style:k,easing:f},{mode:"exit"});X.style.webkitTransition=r.transitions.create("-webkit-transform",te),X.style.transition=r.transitions.create("transform",te),QC(c,X,u),w&&w(X)}),H=L(X=>{X.style.webkitTransition="",X.style.transition="",E&&E(X)}),J=X=>{s&&s(D.current,X)},K=N.useCallback(()=>{D.current&&QC(c,D.current,u)},[c,u]);return N.useEffect(()=>{if(h||c==="down"||c==="right")return;const X=SO(()=>{D.current&&QC(c,D.current,u)}),te=kc(D.current);return te.addEventListener("resize",X),()=>{X.clear(),te.removeEventListener("resize",X)}},[c,h,u]),N.useEffect(()=>{h||K()},[h,K]),I.jsx(R,M({nodeRef:D,onEnter:F,onEntered:V,onEntering:W,onExit:Q,onExited:H,onExiting:Z,addEndListener:J,appear:o,in:h,timeout:C},A,{children:(X,te)=>N.cloneElement(l,M({ref:B,style:M({visibility:X==="exited"&&!h?"hidden":void 0},k,l.props.style)},te))}))}),Zoe=uDe;function cDe(e){return $t("MuiDrawer",e)}Ft("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const dDe=["BackdropProps"],fDe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Xoe=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},hDe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ht(n)}`,r!=="temporary"&&`paperAnchorDocked${ht(n)}`]};return Mt(i,cDe,t)},pDe=Re(S0,{name:"MuiDrawer",slot:"Root",overridesResolver:Xoe})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),sZ=Re("div",{shouldForwardProp:As,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Xoe})({flex:"0 0 auto"}),mDe=Re(Ts,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ht(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ht(n.anchor)}`]]}})(({theme:e,ownerState:t})=>M({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Koe={left:"right",right:"left",top:"down",bottom:"up"};function gDe(e){return["left","right"].indexOf(e)!==-1}function bDe(e,t){return e.direction==="rtl"&&gDe(t)?Koe[t]:t}const yDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDrawer"}),i=Ni(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:o,children:l,className:u,elevation:c=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:g,open:b=!1,PaperProps:S={},SlideProps:w,TransitionComponent:E=Zoe,transitionDuration:x=a,variant:k="temporary"}=r,C=at(r.ModalProps,dDe),R=at(r,fDe),A=N.useRef(!1);N.useEffect(()=>{A.current=!0},[]);const D=bDe(i,s),L=M({},r,{anchor:s,elevation:c,open:b,variant:k},R),F=hDe(L),W=I.jsx(mDe,M({elevation:k==="temporary"?c:0,square:!0},S,{className:dt(F.paper,S.className),ownerState:L,children:l}));if(k==="permanent")return I.jsx(sZ,M({className:dt(F.root,F.docked,u),ownerState:L,ref:n},R,{children:W}));const V=I.jsx(E,M({in:b,direction:Koe[D],timeout:x,appear:A.current},w,{children:W}));return k==="persistent"?I.jsx(sZ,M({className:dt(F.root,F.docked,u),ownerState:L,ref:n},R,{children:V})):I.jsx(pDe,M({BackdropProps:M({},o,h,{transitionDuration:x}),className:dt(F.root,F.modal,u),open:b,ownerState:L,onClose:g,hideBackdrop:f,ref:n},R,C,{children:V}))}),vDe=yDe,ODe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],SDe=e=>{const{classes:t,disableUnderline:n}=e,i=Mt({root:["root",!n&&"underline"],input:["input"]},bRe,t);return M({},t,i)},EDe=Re(AR,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...kR(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return M({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${uu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${uu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${uu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${uu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${uu.disabled}, .${uu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${uu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&M({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),wDe=Re(_R,{name:"MuiFilledInput",slot:"Input",overridesResolver:CR})(({theme:e,ownerState:t})=>M({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Joe=N.forwardRef(function(t,n){var r,i,a,s;const o=_t({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:h=!1,slotProps:g,slots:b={},type:S="text"}=o,w=at(o,ODe),E=M({},o,{fullWidth:c,inputComponent:f,multiline:h,type:S}),x=SDe(o),k={root:{ownerState:E},input:{ownerState:E}},C=g??u?yo(k,g??u):k,R=(r=(i=b.root)!=null?i:l.Root)!=null?r:EDe,A=(a=(s=b.input)!=null?s:l.Input)!=null?a:wDe;return I.jsx(fF,M({slots:{root:R,input:A},componentsProps:C,fullWidth:c,inputComponent:f,multiline:h,ref:n,type:S},w,{classes:x}))});Joe.muiName="Input";const ele=Joe;function xDe(e){return $t("MuiFormControl",e)}Ft("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const TDe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],kDe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ht(n)}`,r&&"fullWidth"]};return Mt(i,xDe,t)},CDe=Re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,t[`margin${ht(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>M({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),ADe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:h=!1,margin:g="none",required:b=!1,size:S="medium",variant:w="outlined"}=r,E=at(r,TDe),x=M({},r,{color:s,component:o,disabled:l,error:u,fullWidth:f,hiddenLabel:h,margin:g,required:b,size:S,variant:w}),k=kDe(x),[C,R]=N.useState(()=>{let Z=!1;return i&&N.Children.forEach(i,Q=>{if(!E2(Q,["Input","Select"]))return;const H=E2(Q,["Select"])?Q.props.input:Q;H&&sRe(H.props)&&(Z=!0)}),Z}),[A,D]=N.useState(()=>{let Z=!1;return i&&N.Children.forEach(i,Q=>{E2(Q,["Input","Select"])&&(Q_(Q.props,!0)||Q_(Q.props.inputProps,!0))&&(Z=!0)}),Z}),[B,L]=N.useState(!1);l&&B&&L(!1);const F=c!==void 0&&!l?c:B;let W;const V=N.useMemo(()=>({adornedStart:C,setAdornedStart:R,color:s,disabled:l,error:u,filled:A,focused:F,fullWidth:f,hiddenLabel:h,size:S,onBlur:()=>{L(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{L(!0)},registerEffect:W,required:b,variant:w}),[C,s,l,u,A,F,f,h,W,b,S,w]);return I.jsx(TR.Provider,{value:V,children:I.jsx(CDe,M({as:o,ownerState:x,className:dt(k.root,a),ref:n},E,{children:i}))})}),kd=ADe,_De=a4e({createStyledComponent:Re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>_t({props:e,name:"MuiStack"})}),lr=_De;function RDe(e){return $t("MuiFormControlLabel",e)}const IDe=Ft("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),JE=IDe,DDe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],NDe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${ht(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Mt(s,RDe,t)},PDe=Re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${JE.label}`]:t.label},t.root,t[`labelPlacement${ht(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>M({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${JE.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${JE.label}`]:{[`&.${JE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),MDe=Re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${JE.error}`]:{color:(e.vars||e).palette.error.main}})),LDe=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:h="end",required:g,slotProps:b={}}=a,S=at(a,DDe),w=Vf(),E=(r=u??l.props.disabled)!=null?r:w==null?void 0:w.disabled,x=g??l.props.required,k={disabled:E,required:x};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof l.props[L]>"u"&&typeof a[L]<"u"&&(k[L]=a[L])});const C=O0({props:a,muiFormControl:w,states:["error"]}),R=M({},a,{disabled:E,labelPlacement:h,required:x,error:C.error}),A=NDe(R),D=(i=b.typography)!=null?i:o.typography;let B=f;return B!=null&&B.type!==Sr&&!c&&(B=I.jsx(Sr,M({component:"span"},D,{className:dt(A.label,D==null?void 0:D.className),children:B}))),I.jsxs(PDe,M({className:dt(A.root,s),ownerState:R,ref:n},S,{children:[N.cloneElement(l,k),x?I.jsxs(lr,{display:"block",children:[B,I.jsxs(MDe,{ownerState:R,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):B]}))}),Rw=LDe;function $De(e){return $t("MuiFormGroup",e)}Ft("MuiFormGroup",["root","row","error"]);const FDe=["className","row"],BDe=e=>{const{classes:t,row:n,error:r}=e;return Mt({root:["root",n&&"row",r&&"error"]},$De,t)},UDe=Re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>M({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),zDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=at(r,FDe),o=Vf(),l=O0({props:r,muiFormControl:o,states:["error"]}),u=M({},r,{row:a,error:l.error}),c=BDe(u);return I.jsx(UDe,M({className:dt(c.root,i),ownerState:u,ref:n},s))}),mF=zDe;function jDe(e){return $t("MuiFormHelperText",e)}const HDe=Ft("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),oZ=HDe;var lZ;const VDe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],WDe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${ht(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return Mt(u,jDe,t)},QDe=Re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ht(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${oZ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${oZ.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),qDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=at(r,VDe),l=Vf(),u=O0({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=M({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=WDe(c);return I.jsx(QDe,M({as:s,ownerState:c,className:dt(f.root,a),ref:n},o,{children:i===" "?lZ||(lZ=I.jsx("span",{className:"notranslate",children:"​"})):i}))}),xO=qDe;function GDe(e){return $t("MuiFormLabel",e)}const R2=Ft("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),YDe=["children","className","color","component","disabled","error","filled","focused","required"],ZDe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${ht(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return Mt(l,GDe,t)},XDe=Re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${R2.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${R2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${R2.error}`]:{color:(e.vars||e).palette.error.main}})),KDe=Re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${R2.error}`]:{color:(e.vars||e).palette.error.main}})),JDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=at(r,YDe),l=Vf(),u=O0({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=M({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=ZDe(c);return I.jsxs(XDe,M({as:s,ownerState:c,className:dt(f.root,a),ref:n},o,{children:[i,u.required&&I.jsxs(KDe,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),DR=JDe,eNe=N.createContext(),uZ=eNe;function tNe(e){return $t("MuiGrid",e)}const nNe=[0,1,2,3,4,5,6,7,8,9,10],rNe=["column-reverse","column","row-reverse","row"],iNe=["nowrap","wrap-reverse","wrap"],fE=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Iw=Ft("MuiGrid",["root","container","item","zeroMinWidth",...nNe.map(e=>`spacing-xs-${e}`),...rNe.map(e=>`direction-xs-${e}`),...iNe.map(e=>`wrap-xs-${e}`),...fE.map(e=>`grid-xs-${e}`),...fE.map(e=>`grid-sm-${e}`),...fE.map(e=>`grid-md-${e}`),...fE.map(e=>`grid-lg-${e}`),...fE.map(e=>`grid-xl-${e}`)]),aNe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Xy(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function sNe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=Kg({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${Xy(c)})`;u={flexBasis:f,maxWidth:f}}}a=M({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function oNe({theme:e,ownerState:t}){const n=Kg({values:t.direction,breakpoints:e.breakpoints.values});return _l({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${Iw.item}`]={maxWidth:"none"}),i})}function tle({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function lNe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=Kg({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=tle({breakpoints:e.breakpoints.values,values:a})),i=_l({theme:e},a,(o,l)=>{var u;const c=e.spacing(o);return c!=="0px"?{marginTop:`-${Xy(c)}`,[`& > .${Iw.item}`]:{paddingTop:Xy(c)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${Iw.item}`]:{paddingTop:0}}})}return i}function uNe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=Kg({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=tle({breakpoints:e.breakpoints.values,values:a})),i=_l({theme:e},a,(o,l)=>{var u;const c=e.spacing(o);return c!=="0px"?{width:`calc(100% + ${Xy(c)})`,marginLeft:`-${Xy(c)}`,[`& > .${Iw.item}`]:{paddingLeft:Xy(c)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Iw.item}`]:{paddingLeft:0}}})}return i}function cNe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const dNe=Re("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=cNe(s,u,t));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(t[`grid-${h}-${String(g)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...f]}})(({ownerState:e})=>M({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),oNe,lNe,uNe,sNe);function fNe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const hNe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let u=[];n&&(u=fNe(a,l));const c=[];l.forEach(h=>{const g=e[h];g&&c.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...c]};return Mt(f,tNe,t)},pNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiGrid"}),{breakpoints:i}=Ni(),a=OR(r),{className:s,columns:o,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:b=0,wrap:S="wrap",zeroMinWidth:w=!1}=a,E=at(a,aNe),x=g||b,k=l||b,C=N.useContext(uZ),R=c?o||12:C,A={},D=M({},E);i.keys.forEach(F=>{E[F]!=null&&(A[F]=E[F],delete D[F])});const B=M({},a,{columns:R,container:c,direction:f,item:h,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:w,spacing:b},A,{breakpoints:i.keys}),L=hNe(B);return I.jsx(uZ.Provider,{value:R,children:I.jsx(dNe,M({ownerState:B,className:dt(L.root,s),as:u,ref:n},D))})}),_y=pNe,mNe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _8(e){return`scale(${e}, ${e**2})`}const gNe={entering:{opacity:1,transform:_8(1)},entered:{opacity:1,transform:"none"}},vN=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nle=N.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:h,onExiting:g,style:b,timeout:S="auto",TransitionComponent:w=nT}=t,E=at(t,mNe),x=Ig(),k=N.useRef(),C=Ni(),R=N.useRef(null),A=Jn(R,a.ref,n),D=H=>J=>{if(H){const K=R.current;J===void 0?H(K):H(K,J)}},B=D(c),L=D((H,J)=>{rF(H);const{duration:K,delay:X,easing:te}=t0({style:b,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=C.transitions.getAutoHeightDuration(H.clientHeight),k.current=z):z=K,H.style.transition=[C.transitions.create("opacity",{duration:z,delay:X}),C.transitions.create("transform",{duration:vN?z:z*.666,delay:X,easing:te})].join(","),l&&l(H,J)}),F=D(u),W=D(g),V=D(H=>{const{duration:J,delay:K,easing:X}=t0({style:b,timeout:S,easing:s},{mode:"exit"});let te;S==="auto"?(te=C.transitions.getAutoHeightDuration(H.clientHeight),k.current=te):te=J,H.style.transition=[C.transitions.create("opacity",{duration:te,delay:K}),C.transitions.create("transform",{duration:vN?te:te*.666,delay:vN?K:K||te*.333,easing:X})].join(","),H.style.opacity=0,H.style.transform=_8(.75),f&&f(H)}),Z=D(h),Q=H=>{S==="auto"&&x.start(k.current||0,H),r&&r(R.current,H)};return I.jsx(w,M({appear:i,in:o,nodeRef:R,onEnter:L,onEntered:F,onEntering:B,onExit:V,onExited:Z,onExiting:W,addEndListener:Q,timeout:S==="auto"?null:S},E,{children:(H,J)=>N.cloneElement(a,M({style:M({opacity:0,transform:_8(.75),visibility:H==="exited"&&!o?"hidden":void 0},gNe[H],b,a.props.style),ref:A},J))}))});nle.muiSupportAuto=!0;const G_=nle;function bNe(e,t,n,r,i){const[a,s]=N.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return la(()=>{let o=!0;if(!n)return;const l=n(e),u=()=>{o&&s(l.matches)};return u(),l.addListener(u),()=>{o=!1,l.removeListener(u)}},[e,n]),a}const rle=N.useSyncExternalStore;function yNe(e,t,n,r,i){const a=N.useCallback(()=>t,[t]),s=N.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return a},[a,e,r,i,n]),[o,l]=N.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const c=n(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[a,n,e]);return rle(l,o,s)}function TO(e,t={}){const n=vR(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=Ooe({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(rle!==void 0?yNe:bNe)(l,i,a,s,o)}function vNe(e){return $t("MuiIcon",e)}Ft("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ONe=["baseClassName","className","color","component","fontSize"],SNe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ht(t)}`,`fontSize${ht(n)}`]};return Mt(i,vNe,r)},ENe=Re("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ht(n.color)}`],t[`fontSize${ht(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),ile=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:s="inherit",component:o="span",fontSize:l="medium"}=r,u=at(r,ONe),c=M({},r,{baseClassName:i,color:s,component:o,fontSize:l}),f=SNe(c);return I.jsx(ENe,M({as:o,className:dt(i,"notranslate",f.root,a),ownerState:c,"aria-hidden":!0,ref:n},u))});ile.muiName="Icon";const wNe=ile,xNe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],TNe=e=>{const{classes:t,disableUnderline:n}=e,i=Mt({root:["root",!n&&"underline"],input:["input"]},hRe,t);return M({},t,i)},kNe=Re(AR,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...kR(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),M({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${hm.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hm.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hm.disabled}, .${hm.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${hm.disabled}:before`]:{borderBottomStyle:"dotted"}})}),CNe=Re(_R,{name:"MuiInput",slot:"Input",overridesResolver:CR})({}),ale=N.forwardRef(function(t,n){var r,i,a,s;const o=_t({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:h="input",multiline:g=!1,slotProps:b,slots:S={},type:w="text"}=o,E=at(o,xNe),x=TNe(o),C={root:{ownerState:{disableUnderline:l}}},R=b??c?yo(b??c,C):C,A=(r=(i=S.root)!=null?i:u.Root)!=null?r:kNe,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:CNe;return I.jsx(fF,M({slots:{root:A,input:D},slotProps:R,fullWidth:f,inputComponent:h,multiline:g,ref:n,type:w},E,{classes:x}))});ale.muiName="Input";const sle=ale;function ANe(e){return $t("MuiInputAdornment",e)}const _Ne=Ft("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),cZ=_Ne;var dZ;const RNe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],INe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ht(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},DNe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${ht(i)}`,s,r&&"hiddenLabel",a&&`size${ht(a)}`]};return Mt(o,ANe,t)},NNe=Re("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:INe})(({theme:e,ownerState:t})=>M({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${cZ.positionStart}&:not(.${cZ.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),PNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:u,variant:c}=r,f=at(r,RNe),h=Vf()||{};let g=c;c&&h.variant,h&&!g&&(g=h.variant);const b=M({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:o,position:u,variant:g}),S=DNe(b);return I.jsx(TR.Provider,{value:null,children:I.jsx(NNe,M({as:s,ownerState:b,className:dt(S.root,a),ref:n},f,{children:typeof i=="string"&&!l?I.jsx(Sr,{color:"text.secondary",children:i}):I.jsxs(N.Fragment,{children:[u==="start"?dZ||(dZ=I.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),Dw=PNe;function MNe(e){return $t("MuiInputLabel",e)}Ft("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const LNe=["disableAnimation","margin","shrink","variant","className"],$Ne=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${ht(r)}`,s],asterisk:[o&&"asterisk"]},u=Mt(l,MNe,t);return M({},t,u)},FNe=Re(DR,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${R2.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>M({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&M({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&M({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&M({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),BNe=N.forwardRef(function(t,n){const r=_t({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=at(r,LNe),l=Vf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=O0({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=M({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),h=$Ne(f);return I.jsx(FNe,M({"data-shrink":u,ownerState:f,ref:n,className:dt(h.root,s)},o,{classes:h}))}),ole=BNe,UNe=N.createContext({}),vc=UNe;function zNe(e){return $t("MuiList",e)}Ft("MuiList",["root","padding","dense","subheader"]);const jNe=["children","className","component","dense","disablePadding","subheader"],HNe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Mt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},zNe,t)},VNe=Re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>M({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),WNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:u}=r,c=at(r,jNe),f=N.useMemo(()=>({dense:o}),[o]),h=M({},r,{component:s,dense:o,disablePadding:l}),g=HNe(h);return I.jsx(vc.Provider,{value:f,children:I.jsxs(VNe,M({as:s,className:dt(g.root,a),ref:n,ownerState:h},c,{children:[u,i]}))})}),gF=WNe;function QNe(e){return $t("MuiListItem",e)}const qNe=Ft("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),ay=qNe;function GNe(e){return $t("MuiListItemButton",e)}const YNe=Ft("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),sy=YNe,ZNe=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],XNe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},KNe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,u=Mt({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},GNe,n);return M({},n,u)},JNe=Re(Tu,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:XNe})(({theme:e,ownerState:t})=>M({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),ePe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:f,selected:h=!1,className:g}=r,b=at(r,ZNe),S=N.useContext(vc),w=N.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:u}),[i,S.dense,l,u]),E=N.useRef(null);la(()=>{a&&E.current&&E.current.focus()},[a]);const x=M({},r,{alignItems:i,dense:w.dense,disableGutters:u,divider:c,selected:h}),k=KNe(x),C=Jn(E,n);return I.jsx(vc.Provider,{value:w,children:I.jsx(JNe,M({ref:C,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:dt(k.focusVisible,f),ownerState:x,className:dt(k.root,g)},b,{classes:k,children:o}))})}),fZ=ePe;function tPe(e){return $t("MuiListItemSecondaryAction",e)}Ft("MuiListItemSecondaryAction",["root","disableGutters"]);const nPe=["className"],rPe=e=>{const{disableGutters:t,classes:n}=e;return Mt({root:["root",t&&"disableGutters"]},tPe,n)},iPe=Re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>M({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),lle=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=at(r,nPe),s=N.useContext(vc),o=M({},r,{disableGutters:s.disableGutters}),l=rPe(o);return I.jsx(iPe,M({className:dt(l.root,i),ownerState:o,ref:n},a))});lle.muiName="ListItemSecondaryAction";const bF=lle,aPe=["className"],sPe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],oPe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},lPe=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:u,selected:c}=e;return Mt({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},QNe,r)},uPe=Re("div",{name:"MuiListItem",slot:"Root",overridesResolver:oPe})(({theme:e,ownerState:t})=>M({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&M({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${sy.root}`]:{paddingRight:48}},{[`&.${ay.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ay.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ay.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ay.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ay.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),cPe=Re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),dPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:g}={},dense:b=!1,disabled:S=!1,disableGutters:w=!1,disablePadding:E=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:C,selected:R=!1,slotProps:A={},slots:D={}}=r,B=at(r.ContainerProps,aPe),L=at(r,sPe),F=N.useContext(vc),W=N.useMemo(()=>({dense:b||F.dense||!1,alignItems:i,disableGutters:w}),[i,F.dense,b,w]),V=N.useRef(null);la(()=>{a&&V.current&&V.current.focus()},[a]);const Z=N.Children.toArray(o),Q=Z.length&&E2(Z[Z.length-1],["ListItemSecondaryAction"]),H=M({},r,{alignItems:i,autoFocus:a,button:s,dense:W.dense,disabled:S,disableGutters:w,disablePadding:E,divider:x,hasSecondaryAction:Q,selected:R}),J=lPe(H),K=Jn(V,n),X=D.root||c.Root||uPe,te=A.root||f.root||{},z=M({className:dt(J.root,te.className,l),disabled:S},L);let Te=u||"li";return s&&(z.component=u||"div",z.focusVisibleClassName=dt(ay.focusVisible,k),Te=Tu),Q?(Te=!z.component&&!u?"div":Te,h==="li"&&(Te==="li"?Te="div":z.component==="li"&&(z.component="div")),I.jsx(vc.Provider,{value:W,children:I.jsxs(cPe,M({as:h,className:dt(J.container,g),ref:K,ownerState:H},B,{children:[I.jsx(X,M({},te,!Nf(X)&&{as:Te,ownerState:M({},H,te.ownerState)},z,{children:Z})),Z.pop()]}))})):I.jsx(vc.Provider,{value:W,children:I.jsxs(X,M({},te,{as:Te,ref:K},!Nf(X)&&{ownerState:M({},H,te.ownerState)},z,{children:[Z,C&&I.jsx(bF,{children:C})]}))})}),Y_=dPe;function fPe(e){return $t("MuiListItemAvatar",e)}Ft("MuiListItemAvatar",["root","alignItemsFlexStart"]);const hPe=["className"],pPe=e=>{const{alignItems:t,classes:n}=e;return Mt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},fPe,n)},mPe=Re("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>M({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),gPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemAvatar"}),{className:i}=r,a=at(r,hPe),s=N.useContext(vc),o=M({},r,{alignItems:s.alignItems}),l=pPe(o);return I.jsx(mPe,M({className:dt(l.root,i),ownerState:o,ref:n},a))}),bPe=gPe;function yPe(e){return $t("MuiListItemIcon",e)}const vPe=Ft("MuiListItemIcon",["root","alignItemsFlexStart"]),hZ=vPe,OPe=["className"],SPe=e=>{const{alignItems:t,classes:n}=e;return Mt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},yPe,n)},EPe=Re("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>M({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),wPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=at(r,OPe),s=N.useContext(vc),o=M({},r,{alignItems:s.alignItems}),l=SPe(o);return I.jsx(EPe,M({className:dt(l.root,i),ownerState:o,ref:n},a))}),Nw=wPe;function xPe(e){return $t("MuiListItemText",e)}const TPe=Ft("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Z_=TPe,kPe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],CPe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Mt({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},xPe,t)},APe=Re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Z_.primary}`]:t.primary},{[`& .${Z_.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>M({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),_Pe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,h=at(r,kPe),{dense:g}=N.useContext(vc);let b=l??i,S=c;const w=M({},r,{disableTypography:s,inset:o,primary:!!b,secondary:!!S,dense:g}),E=CPe(w);return b!=null&&b.type!==Sr&&!s&&(b=I.jsx(Sr,M({variant:g?"body2":"body1",className:E.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:b}))),S!=null&&S.type!==Sr&&!s&&(S=I.jsx(Sr,M({variant:"body2",className:E.secondary,color:"text.secondary",display:"block"},f,{children:S}))),I.jsxs(APe,M({className:dt(E.root,a),ownerState:w,ref:n},h,{children:[b,S]}))}),np=_Pe,RPe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ON(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function pZ(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ule(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function hE(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!ule(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const IPe=N.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,h=at(t,RPe),g=N.useRef(null),b=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});la(()=>{i&&g.current.focus()},[i]),N.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,C)=>{const R=!g.current.style.width;if(k.clientHeight{const C=g.current,R=k.key,A=Ei(C).activeElement;if(R==="ArrowDown")k.preventDefault(),hE(C,A,u,l,ON);else if(R==="ArrowUp")k.preventDefault(),hE(C,A,u,l,pZ);else if(R==="Home")k.preventDefault(),hE(C,null,u,l,ON);else if(R==="End")k.preventDefault(),hE(C,null,u,l,pZ);else if(R.length===1){const D=b.current,B=R.toLowerCase(),L=performance.now();D.keys.length>0&&(L-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&B!==D.keys[0]&&(D.repeating=!1)),D.lastTime=L,D.keys.push(B);const F=A&&!D.repeating&&ule(A,D);D.previousKeyMatched&&(F||hE(C,A,!1,l,ON,D))?k.preventDefault():D.previousKeyMatched=!1}c&&c(k)},w=Jn(g,n);let E=-1;N.Children.forEach(s,(k,C)=>{if(!N.isValidElement(k)){E===C&&(E+=1,E>=s.length&&(E=-1));return}k.props.disabled||(f==="selectedMenu"&&k.props.selected||E===-1)&&(E=C),E===C&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(E+=1,E>=s.length&&(E=-1))});const x=N.Children.map(s,(k,C)=>{if(C===E){const R={};return a&&(R.autoFocus=!0),k.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),N.cloneElement(k,R)}return k});return I.jsx(gF,M({role:"menu",ref:w,className:o,onKeyDown:S,tabIndex:i?0:-1},h,{children:x}))}),kO=IPe;function DPe(e){return $t("MuiPopover",e)}Ft("MuiPopover",["root","paper"]);const NPe=["onEntering"],PPe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],MPe=["slotProps"];function mZ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function gZ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function bZ(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function SN(e){return typeof e=="function"?e():e}const LPe=e=>{const{classes:t}=e;return Mt({root:["root"],paper:["paper"]},DPe,t)},$Pe=Re(S0,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cle=Re(Ts,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),FPe=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:h,className:g,container:b,elevation:S=8,marginThreshold:w=16,open:E,PaperProps:x={},slots:k,slotProps:C,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:A=G_,transitionDuration:D="auto",TransitionProps:{onEntering:B}={},disableScrollLock:L=!1}=s,F=at(s.TransitionProps,NPe),W=at(s,PPe),V=(r=C==null?void 0:C.paper)!=null?r:x,Z=N.useRef(),Q=Jn(Z,V.ref),H=M({},s,{anchorOrigin:u,anchorReference:f,elevation:S,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:R,TransitionComponent:A,transitionDuration:D,TransitionProps:F}),J=LPe(H),K=N.useCallback(()=>{if(f==="anchorPosition")return c;const Ve=SN(l),et=(Ve&&Ve.nodeType===1?Ve:Ei(Z.current).body).getBoundingClientRect();return{top:et.top+mZ(et,u.vertical),left:et.left+gZ(et,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),X=N.useCallback(Ve=>({vertical:mZ(Ve,R.vertical),horizontal:gZ(Ve,R.horizontal)}),[R.horizontal,R.vertical]),te=N.useCallback(Ve=>{const Xe={width:Ve.offsetWidth,height:Ve.offsetHeight},et=X(Xe);if(f==="none")return{top:null,left:null,transformOrigin:bZ(et)};const ft=K();let At=ft.top-et.vertical,Je=ft.left-et.horizontal;const pe=At+Xe.height,le=Je+Xe.width,he=kc(SN(l)),je=he.innerHeight-w,Ze=he.innerWidth-w;if(w!==null&&Atje){const We=pe-je;At-=We,et.vertical+=We}if(w!==null&&JeZe){const We=le-Ze;Je-=We,et.horizontal+=We}return{top:`${Math.round(At)}px`,left:`${Math.round(Je)}px`,transformOrigin:bZ(et)}},[l,f,K,X,w]),[z,Te]=N.useState(E),be=N.useCallback(()=>{const Ve=Z.current;if(!Ve)return;const Xe=te(Ve);Xe.top!==null&&(Ve.style.top=Xe.top),Xe.left!==null&&(Ve.style.left=Xe.left),Ve.style.transformOrigin=Xe.transformOrigin,Te(!0)},[te]);N.useEffect(()=>(L&&window.addEventListener("scroll",be),()=>window.removeEventListener("scroll",be)),[l,L,be]);const ee=(Ve,Xe)=>{B&&B(Ve,Xe),be()},ye=()=>{Te(!1)};N.useEffect(()=>{E&&be()}),N.useImperativeHandle(o,()=>E?{updatePosition:()=>{be()}}:null,[E,be]),N.useEffect(()=>{if(!E)return;const Ve=SO(()=>{be()}),Xe=kc(l);return Xe.addEventListener("resize",Ve),()=>{Ve.clear(),Xe.removeEventListener("resize",Ve)}},[l,E,be]);let Oe=D;D==="auto"&&!A.muiSupportAuto&&(Oe=void 0);const ie=b||(l?Ei(SN(l)).body:void 0),_e=(i=k==null?void 0:k.root)!=null?i:$Pe,Ie=(a=k==null?void 0:k.paper)!=null?a:cle,qe=cr({elementType:Ie,externalSlotProps:M({},V,{style:z?V.style:M({},V.style,{opacity:0})}),additionalProps:{elevation:S,ref:Q},ownerState:H,className:dt(J.paper,V==null?void 0:V.className)}),st=cr({elementType:_e,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:W,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ie,open:E},ownerState:H,className:dt(J.root,g)}),{slotProps:Pe}=st,tt=at(st,MPe);return I.jsx(_e,M({},tt,!Nf(_e)&&{slotProps:Pe,disableScrollLock:L},{children:I.jsx(A,M({appear:!0,in:E,onEntering:ee,onExited:ye,timeout:Oe},F,{children:I.jsx(Ie,M({},qe,{children:h}))}))}))}),sT=FPe;function BPe(e){return $t("MuiMenu",e)}Ft("MuiMenu",["root","paper","list"]);const UPe=["onEntering"],zPe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],jPe={vertical:"top",horizontal:"right"},HPe={vertical:"top",horizontal:"left"},VPe=e=>{const{classes:t}=e;return Mt({root:["root"],paper:["paper"],list:["list"]},BPe,t)},WPe=Re(sT,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QPe=Re(cle,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qPe=Re(kO,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),GPe=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:h,PaperProps:g={},PopoverClasses:b,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},variant:E="selectedMenu",slots:x={},slotProps:k={}}=a,C=at(a.TransitionProps,UPe),R=at(a,zPe),A=Ni(),D=A.direction==="rtl",B=M({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:w,PaperProps:g,transitionDuration:S,TransitionProps:C,variant:E}),L=VPe(B),F=s&&!u&&h,W=N.useRef(null),V=(te,z)=>{W.current&&W.current.adjustStyleForScrollbar(te,A),w&&w(te,z)},Z=te=>{te.key==="Tab"&&(te.preventDefault(),f&&f(te,"tabKeyDown"))};let Q=-1;N.Children.map(o,(te,z)=>{N.isValidElement(te)&&(te.props.disabled||(E==="selectedMenu"&&te.props.selected||Q===-1)&&(Q=z))});const H=(r=x.paper)!=null?r:QPe,J=(i=k.paper)!=null?i:g,K=cr({elementType:x.root,externalSlotProps:k.root,ownerState:B,className:[L.root,l]}),X=cr({elementType:H,externalSlotProps:J,ownerState:B,className:L.paper});return I.jsx(WPe,M({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?jPe:HPe,slots:{paper:H,root:x.root},slotProps:{root:K,paper:X},open:h,ref:n,transitionDuration:S,TransitionProps:M({onEntering:V},C),ownerState:B},R,{classes:b,children:I.jsx(qPe,M({onKeyDown:Z,actions:W,autoFocus:s&&(Q===-1||u),autoFocusItem:F,variant:E},c,{className:dt(L.list,c.className),children:o}))}))}),YPe=GPe;function ZPe(e){return $t("MuiMenuItem",e)}const XPe=Ft("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),pE=XPe,KPe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],JPe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},e7e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=Mt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},ZPe,s);return M({},s,l)},t7e=Re(Tu,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:JPe})(({theme:e,ownerState:t})=>M({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pE.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pE.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pE.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pE.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${aZ.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${aZ.inset}`]:{marginLeft:52},[`& .${Z_.root}`]:{marginTop:0,marginBottom:0},[`& .${Z_.inset}`]:{paddingLeft:36},[`& .${hZ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&M({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${hZ.root} svg`]:{fontSize:"1.25rem"}}))),n7e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:h}=r,g=at(r,KPe),b=N.useContext(vc),S=N.useMemo(()=>({dense:s||b.dense||!1,disableGutters:l}),[b.dense,s,l]),w=N.useRef(null);la(()=>{i&&w.current&&w.current.focus()},[i]);const E=M({},r,{dense:S.dense,divider:o,disableGutters:l}),x=e7e(r),k=Jn(w,n);let C;return r.disabled||(C=f!==void 0?f:-1),I.jsx(vc.Provider,{value:S,children:I.jsx(t7e,M({ref:k,role:c,tabIndex:C,component:a,focusVisibleClassName:dt(x.focusVisible,u),className:dt(x.root,h)},g,{ownerState:E,classes:x}))})}),rp=n7e;function r7e(e){return $t("MuiNativeSelect",e)}const i7e=Ft("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),yF=i7e,a7e=["className","disabled","error","IconComponent","inputRef","variant"],s7e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ht(n)}`,a&&"iconOpen",r&&"disabled"]};return Mt(o,r7e,t)},dle=({ownerState:e,theme:t})=>M({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":M({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${yF.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),o7e=Re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:As,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${yF.multiple}`]:t.multiple}]}})(dle),fle=({ownerState:e,theme:t})=>M({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${yF.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),l7e=Re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ht(n.variant)}`],n.open&&t.iconOpen]}})(fle),u7e=N.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,u=at(t,a7e),c=M({},t,{disabled:i,variant:l,error:a}),f=s7e(c);return I.jsxs(N.Fragment,{children:[I.jsx(o7e,M({ownerState:c,className:dt(f.select,r),disabled:i,ref:o||n},u)),t.multiple?null:I.jsx(l7e,{as:s,ownerState:c,className:f.icon})]})}),c7e=u7e;var yZ;const d7e=["children","classes","className","label","notched"],f7e=Re("fieldset",{shouldForwardProp:As})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),h7e=Re("legend",{shouldForwardProp:As})(({ownerState:e,theme:t})=>M({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&M({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function p7e(e){const{className:t,label:n,notched:r}=e,i=at(e,d7e),a=n!=null&&n!=="",s=M({},e,{notched:r,withLabel:a});return I.jsx(f7e,M({"aria-hidden":!0,className:t,ownerState:s},i,{children:I.jsx(h7e,{ownerState:s,children:a?I.jsx("span",{children:n}):yZ||(yZ=I.jsx("span",{className:"notranslate",children:"​"}))})}))}const m7e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],g7e=e=>{const{classes:t}=e,r=Mt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mRe,t);return M({},t,r)},b7e=Re(AR,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:kR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return M({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${af.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${af.focused} .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${af.error} .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${af.disabled} .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&M({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),y7e=Re(p7e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),v7e=Re(_R,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:CR})(({theme:e,ownerState:t})=>M({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),hle=N.forwardRef(function(t,n){var r,i,a,s,o;const l=_t({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:h,multiline:g=!1,notched:b,slots:S={},type:w="text"}=l,E=at(l,m7e),x=g7e(l),k=Vf(),C=O0({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=M({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:k,fullWidth:c,hiddenLabel:C.hiddenLabel,multiline:g,size:C.size,type:w}),A=(r=(i=S.root)!=null?i:u.Root)!=null?r:b7e,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:v7e;return I.jsx(fF,M({slots:{root:A,input:D},renderSuffix:B=>I.jsx(y7e,{ownerState:R,className:x.notchedOutline,label:h!=null&&h!==""&&C.required?o||(o=I.jsxs(N.Fragment,{children:[h," ","*"]})):h,notched:typeof b<"u"?b:!!(B.startAdornment||B.filled||B.focused)}),fullWidth:c,inputComponent:f,multiline:g,ref:n,type:w},E,{classes:M({},x,{notchedOutline:null})}))});hle.muiName="Input";const ple=hle,O7e=Wa(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),S7e=Wa(I.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),E7e=Re("span",{shouldForwardProp:As})({position:"relative",display:"flex"}),w7e=Re(O7e)({transform:"scale(1)"}),x7e=Re(S7e)(({theme:e,ownerState:t})=>M({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function mle(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=M({},e,{checked:t});return I.jsxs(E7e,{className:n.root,ownerState:i,children:[I.jsx(w7e,{fontSize:r,className:n.background,ownerState:i}),I.jsx(x7e,{fontSize:r,className:n.dot,ownerState:i})]})}const T7e=N.createContext(void 0),gle=T7e;function k7e(){return N.useContext(gle)}function C7e(e){return $t("MuiRadio",e)}const vZ=Ft("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),A7e=["checked","checkedIcon","color","icon","name","onChange","size","className"],_7e=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ht(n)}`,r!=="medium"&&`size${ht(r)}`]};return M({},t,Mt(i,C7e,t))},R7e=Re(pF,{shouldForwardProp:e=>As(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ht(n.size)}`],t[`color${ht(n.color)}`]]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${vZ.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${vZ.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function I7e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const OZ=I.jsx(mle,{checked:!0}),SZ=I.jsx(mle,{}),D7e=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=OZ,color:l="primary",icon:u=SZ,name:c,onChange:f,size:h="medium",className:g}=a,b=at(a,A7e),S=M({},a,{color:l,size:h}),w=_7e(S),E=k7e();let x=s;const k=B_(f,E&&E.onChange);let C=c;return E&&(typeof x>"u"&&(x=I7e(E.value,a.value)),typeof C>"u"&&(C=E.name)),I.jsx(R7e,M({type:"radio",icon:N.cloneElement(u,{fontSize:(r=SZ.props.fontSize)!=null?r:h}),checkedIcon:N.cloneElement(o,{fontSize:(i=OZ.props.fontSize)!=null?i:h}),ownerState:S,classes:w,name:C,checked:x,onChange:k,ref:n,className:dt(w.root,g)},b))}),EZ=D7e,N7e=["actions","children","defaultValue","name","onChange","value"],P7e=N.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:a,name:s,onChange:o,value:l}=t,u=at(t,N7e),c=N.useRef(null),[f,h]=ws({controlled:l,default:a,name:"RadioGroup"});N.useImperativeHandle(r,()=>({focus:()=>{let w=c.current.querySelector("input:not(:disabled):checked");w||(w=c.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const g=Jn(n,c),b=Td(s),S=N.useMemo(()=>({name:b,onChange(w){h(w.target.value),o&&o(w,w.target.value)},value:f}),[b,o,h,f]);return I.jsx(gle.Provider,{value:S,children:I.jsx(mF,M({role:"radiogroup",ref:g},u,{children:i}))})}),M7e=P7e;function L7e(e){return $t("MuiSelect",e)}const mE=Ft("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var wZ;const $7e=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],F7e=Re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${mE.select}`]:t.select},{[`&.${mE.select}`]:t[n.variant]},{[`&.${mE.error}`]:t.error},{[`&.${mE.multiple}`]:t.multiple}]}})(dle,{[`&.${mE.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),B7e=Re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ht(n.variant)}`],n.open&&t.iconOpen]}})(fle),U7e=Re("input",{shouldForwardProp:e=>X$(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function xZ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function z7e(e){return e==null||typeof e=="string"&&!e.trim()}const j7e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ht(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Mt(o,L7e,t)},H7e=N.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:h,displayEmpty:g,error:b=!1,IconComponent:S,inputRef:w,labelId:E,MenuProps:x={},multiple:k,name:C,onBlur:R,onChange:A,onClose:D,onFocus:B,onOpen:L,open:F,readOnly:W,renderValue:V,SelectDisplayProps:Z={},tabIndex:Q,value:H,variant:J="standard"}=t,K=at(t,$7e),[X,te]=ws({controlled:H,default:f,name:"Select"}),[z,Te]=ws({controlled:F,default:c,name:"Select"}),be=N.useRef(null),ee=N.useRef(null),[ye,Oe]=N.useState(null),{current:ie}=N.useRef(F!=null),[_e,Ie]=N.useState(),qe=Jn(n,w),st=N.useCallback(gt=>{ee.current=gt,gt&&Oe(gt)},[]),Pe=ye==null?void 0:ye.parentNode;N.useImperativeHandle(qe,()=>({focus:()=>{ee.current.focus()},node:be.current,value:X}),[X]),N.useEffect(()=>{c&&z&&ye&&!ie&&(Ie(o?null:Pe.clientWidth),ee.current.focus())},[ye,o]),N.useEffect(()=>{s&&ee.current.focus()},[s]),N.useEffect(()=>{if(!E)return;const gt=Ei(ee.current).getElementById(E);if(gt){const Gt=()=>{getSelection().isCollapsed&&ee.current.focus()};return gt.addEventListener("click",Gt),()=>{gt.removeEventListener("click",Gt)}}},[E]);const tt=(gt,Gt)=>{gt?L&&L(Gt):D&&D(Gt),ie||(Ie(o?null:Pe.clientWidth),Te(gt))},Ve=gt=>{gt.button===0&&(gt.preventDefault(),ee.current.focus(),tt(!0,gt))},Xe=gt=>{tt(!1,gt)},et=N.Children.toArray(l),ft=gt=>{const Gt=et.find(ut=>ut.props.value===gt.target.value);Gt!==void 0&&(te(Gt.props.value),A&&A(gt,Gt))},At=gt=>Gt=>{let ut;if(Gt.currentTarget.hasAttribute("tabindex")){if(k){ut=Array.isArray(X)?X.slice():[];const wt=X.indexOf(gt.props.value);wt===-1?ut.push(gt.props.value):ut.splice(wt,1)}else ut=gt.props.value;if(gt.props.onClick&>.props.onClick(Gt),X!==ut&&(te(ut),A)){const wt=Gt.nativeEvent||Gt,Xt=new wt.constructor(wt.type,wt);Object.defineProperty(Xt,"target",{writable:!0,value:{value:ut,name:C}}),A(Xt,gt)}k||tt(!1,Gt)}},Je=gt=>{W||[" ","ArrowUp","ArrowDown","Enter"].indexOf(gt.key)!==-1&&(gt.preventDefault(),tt(!0,gt))},pe=ye!==null&&z,le=gt=>{!pe&&R&&(Object.defineProperty(gt,"target",{writable:!0,value:{value:X,name:C}}),R(gt))};delete K["aria-invalid"];let he,je;const Ze=[];let We=!1;(Q_({value:X})||g)&&(V?he=V(X):We=!0);const fe=et.map(gt=>{if(!N.isValidElement(gt))return null;let Gt;if(k){if(!Array.isArray(X))throw new Error(Jm(2));Gt=X.some(ut=>xZ(ut,gt.props.value)),Gt&&We&&Ze.push(gt.props.children)}else Gt=xZ(X,gt.props.value),Gt&&We&&(je=gt.props.children);return N.cloneElement(gt,{"aria-selected":Gt?"true":"false",onClick:At(gt),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),gt.props.onKeyUp&>.props.onKeyUp(ut)},role:"option",selected:Gt,value:void 0,"data-value":gt.props.value})});We&&(k?Ze.length===0?he=null:he=Ze.reduce((gt,Gt,ut)=>(gt.push(Gt),ut{const{classes:t}=e;return t},vF={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>As(e)&&e!=="variant",slot:"Root"},G7e=Re(sle,vF)(""),Y7e=Re(ple,vF)(""),Z7e=Re(ele,vF)(""),ble=N.forwardRef(function(t,n){const r=_t({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Woe,id:f,input:h,inputProps:g,label:b,labelId:S,MenuProps:w,multiple:E=!1,native:x=!1,onClose:k,onOpen:C,open:R,renderValue:A,SelectDisplayProps:D,variant:B="outlined"}=r,L=at(r,W7e),F=x?c7e:V7e,W=Vf(),V=O0({props:r,muiFormControl:W,states:["variant","error"]}),Z=V.variant||B,Q=M({},r,{variant:Z,classes:s}),H=q7e(Q),J=at(H,Q7e),K=h||{standard:I.jsx(G7e,{ownerState:Q}),outlined:I.jsx(Y7e,{label:b,ownerState:Q}),filled:I.jsx(Z7e,{ownerState:Q})}[Z],X=Jn(n,K.ref);return I.jsx(N.Fragment,{children:N.cloneElement(K,M({inputComponent:F,inputProps:M({children:a,error:V.error,IconComponent:c,variant:Z,type:void 0,multiple:E},x?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:S,MenuProps:w,onClose:k,onOpen:C,open:R,renderValue:A,SelectDisplayProps:M({id:f},D)},g,{classes:g?yo(J,g.classes):J},h?h.props.inputProps:{})},(E&&x||u)&&Z==="outlined"?{notched:!0}:{},{ref:X,className:dt(K.props.className,o,H.root)},!h&&{variant:Z},L))})});ble.muiName="Select";const yle=ble,X7e=e=>!e||!Nf(e);function K7e(e){return $t("MuiSlider",e)}const dd=Ft("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),J7e=e=>{const{open:t}=e;return{offset:dt(t&&dd.valueLabelOpen),circle:dd.valueLabelCircle,label:dd.valueLabelLabel}};function e8e(e){const{children:t,className:n,value:r}=e,i=J7e(e);return t?N.cloneElement(t,{className:dt(t.props.className)},I.jsxs(N.Fragment,{children:[t.props.children,I.jsx("span",{className:dt(i.offset,n),"aria-hidden":!0,children:I.jsx("span",{className:i.circle,children:I.jsx("span",{className:i.label,children:r})})})]})):null}const t8e=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function TZ(e){return e}const n8e=Re("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ht(n.color)}`],n.size!=="medium"&&t[`size${ht(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>M({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&M({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&M({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${dd.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${dd.dragging}`]:{[`& .${dd.thumb}, & .${dd.track}`]:{transition:"none"}}})),r8e=Re("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>M({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),i8e=Re("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?tT(e.palette[t.color].main,.62):eT(e.palette[t.color].main,.5);return M({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),a8e=Re("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ht(n.color)}`],n.size!=="medium"&&t[`thumbSize${ht(n.size)}`]]}})(({theme:e,ownerState:t})=>M({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":M({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${dd.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Rn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${dd.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Rn(e.palette[t.color].main,.16)}`},[`&.${dd.disabled}`]:{"&:hover":{boxShadow:"none"}}})),s8e=Re(e8e,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>M({[`&.${dd.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),o8e=Re("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>X$(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>M({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),l8e=Re("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>X$(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>M({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),u8e=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${ht(o)}`,l&&`size${ht(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${ht(l)}`,o&&`thumbColor${ht(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Mt(u,K7e,s)},c8e=({children:e})=>e,d8e=N.forwardRef(function(t,n){var r,i,a,s,o,l,u,c,f,h,g,b,S,w,E,x,k,C,R,A,D,B,L,F;const W=_t({props:t,name:"MuiSlider"}),Z=Ni().direction==="rtl",{"aria-label":Q,"aria-valuetext":H,"aria-labelledby":J,component:K="span",components:X={},componentsProps:te={},color:z="primary",classes:Te,className:be,disableSwap:ee=!1,disabled:ye=!1,getAriaLabel:Oe,getAriaValueText:ie,marks:_e=!1,max:Ie=100,min:qe=0,orientation:st="horizontal",size:Pe="medium",step:tt=1,scale:Ve=TZ,slotProps:Xe,slots:et,track:ft="normal",valueLabelDisplay:At="off",valueLabelFormat:Je=TZ}=W,pe=at(W,t8e),le=M({},W,{isRtl:Z,max:Ie,min:qe,classes:Te,disabled:ye,disableSwap:ee,orientation:st,marks:_e,color:z,size:Pe,step:tt,scale:Ve,track:ft,valueLabelDisplay:At,valueLabelFormat:Je}),{axisProps:he,getRootProps:je,getHiddenInputProps:Ze,getThumbProps:We,open:fe,active:xe,axis:ve,focusedThumbIndex:De,range:$e,dragging:vt,marks:Wt,values:Kt,trackOffset:gt,trackLeap:Gt,getThumbStyle:ut}=L5e(M({},le,{rootRef:n}));le.marked=Wt.length>0&&Wt.some(nt=>nt.label),le.dragging=vt,le.focusedThumbIndex=De;const wt=u8e(le),Xt=(r=(i=et==null?void 0:et.root)!=null?i:X.Root)!=null?r:n8e,Ln=(a=(s=et==null?void 0:et.rail)!=null?s:X.Rail)!=null?a:r8e,$n=(o=(l=et==null?void 0:et.track)!=null?l:X.Track)!=null?o:i8e,jn=(u=(c=et==null?void 0:et.thumb)!=null?c:X.Thumb)!=null?u:a8e,ar=(f=(h=et==null?void 0:et.valueLabel)!=null?h:X.ValueLabel)!=null?f:s8e,Ur=(g=(b=et==null?void 0:et.mark)!=null?b:X.Mark)!=null?g:o8e,Me=(S=(w=et==null?void 0:et.markLabel)!=null?w:X.MarkLabel)!=null?S:l8e,Ue=(E=(x=et==null?void 0:et.input)!=null?x:X.Input)!=null?E:"input",lt=(k=Xe==null?void 0:Xe.root)!=null?k:te.root,Nt=(C=Xe==null?void 0:Xe.rail)!=null?C:te.rail,Qt=(R=Xe==null?void 0:Xe.track)!=null?R:te.track,Hn=(A=Xe==null?void 0:Xe.thumb)!=null?A:te.thumb,yn=(D=Xe==null?void 0:Xe.valueLabel)!=null?D:te.valueLabel,rn=(B=Xe==null?void 0:Xe.mark)!=null?B:te.mark,Yt=(L=Xe==null?void 0:Xe.markLabel)!=null?L:te.markLabel,xn=(F=Xe==null?void 0:Xe.input)!=null?F:te.input,Qe=cr({elementType:Xt,getSlotProps:je,externalSlotProps:lt,externalForwardedProps:pe,additionalProps:M({},X7e(Xt)&&{as:K}),ownerState:M({},le,lt==null?void 0:lt.ownerState),className:[wt.root,be]}),Ye=cr({elementType:Ln,externalSlotProps:Nt,ownerState:le,className:wt.rail}),ot=cr({elementType:$n,externalSlotProps:Qt,additionalProps:{style:M({},he[ve].offset(gt),he[ve].leap(Gt))},ownerState:M({},le,Qt==null?void 0:Qt.ownerState),className:wt.track}),yt=cr({elementType:jn,getSlotProps:We,externalSlotProps:Hn,ownerState:M({},le,Hn==null?void 0:Hn.ownerState),className:wt.thumb}),Yn=cr({elementType:ar,externalSlotProps:yn,ownerState:M({},le,yn==null?void 0:yn.ownerState),className:wt.valueLabel}),pn=cr({elementType:Ur,externalSlotProps:rn,ownerState:le,className:wt.mark}),Fn=cr({elementType:Me,externalSlotProps:Yt,ownerState:le,className:wt.markLabel}),Pi=cr({elementType:Ue,getSlotProps:Ze,externalSlotProps:xn,ownerState:le});return I.jsxs(Xt,M({},Qe,{children:[I.jsx(Ln,M({},Ye)),I.jsx($n,M({},ot)),Wt.filter(nt=>nt.value>=qe&&nt.value<=Ie).map((nt,Be)=>{const Dt=W_(nt.value,qe,Ie),en=he[ve].offset(Dt);let Vn;return ft===!1?Vn=Kt.indexOf(nt.value)!==-1:Vn=ft==="normal"&&($e?nt.value>=Kt[0]&&nt.value<=Kt[Kt.length-1]:nt.value<=Kt[0])||ft==="inverted"&&($e?nt.value<=Kt[0]||nt.value>=Kt[Kt.length-1]:nt.value>=Kt[0]),I.jsxs(N.Fragment,{children:[I.jsx(Ur,M({"data-index":Be},pn,!Nf(Ur)&&{markActive:Vn},{style:M({},en,pn.style),className:dt(pn.className,Vn&&wt.markActive)})),nt.label!=null?I.jsx(Me,M({"aria-hidden":!0,"data-index":Be},Fn,!Nf(Me)&&{markLabelActive:Vn},{style:M({},en,Fn.style),className:dt(wt.markLabel,Fn.className,Vn&&wt.markLabelActive),children:nt.label})):null]},Be)}),Kt.map((nt,Be)=>{const Dt=W_(nt,qe,Ie),en=he[ve].offset(Dt),Vn=At==="off"?c8e:ar;return I.jsx(Vn,M({},!Nf(Vn)&&{valueLabelFormat:Je,valueLabelDisplay:At,value:typeof Je=="function"?Je(Ve(nt),Be):Je,index:Be,open:fe===Be||xe===Be||At==="on",disabled:ye},Yn,{children:I.jsx(jn,M({"data-index":Be},yt,{className:dt(wt.thumb,yt.className,xe===Be&&wt.active,De===Be&&wt.focusVisible),style:M({},en,ut(Be),yt.style),children:I.jsx(Ue,M({"data-index":Be,"aria-label":Oe?Oe(Be):Q,"aria-valuenow":Ve(nt),"aria-labelledby":J,"aria-valuetext":ie?ie(Ve(nt),Be):H,value:Kt[Be]},Pi))}))}),Be)})]}))}),f8e=d8e;function h8e(e){return $t("MuiTooltip",e)}const p8e=Ft("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cm=p8e,m8e=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function g8e(e){return Math.round(e*1e5)/1e5}const b8e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ht(a.split("-")[0])}`],arrow:["arrow"]};return Mt(s,h8e,t)},y8e=Re(wO,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>M({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Cm.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cm.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cm.arrow}`]:M({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Cm.arrow}`]:M({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),v8e=Re("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ht(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>M({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Rn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${g8e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Cm.popper}[data-popper-placement*="left"] &`]:M({transformOrigin:"right center"},t.isRtl?M({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):M({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Cm.popper}[data-popper-placement*="right"] &`]:M({transformOrigin:"left center"},t.isRtl?M({marginRight:"14px"},t.touch&&{marginRight:"24px"}):M({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Cm.popper}[data-popper-placement*="top"] &`]:M({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Cm.popper}[data-popper-placement*="bottom"] &`]:M({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),O8e=Re("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Rn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let qC=!1;const kZ=new Zx;let gE={x:0,y:0};function GC(e,t){return n=>{t&&t(n),e(n)}}const S8e=N.forwardRef(function(t,n){var r,i,a,s,o,l,u,c,f,h,g,b,S,w,E,x,k,C,R;const A=_t({props:t,name:"MuiTooltip"}),{arrow:D=!1,children:B,components:L={},componentsProps:F={},describeChild:W=!1,disableFocusListener:V=!1,disableHoverListener:Z=!1,disableInteractive:Q=!1,disableTouchListener:H=!1,enterDelay:J=100,enterNextDelay:K=0,enterTouchDelay:X=700,followCursor:te=!1,id:z,leaveDelay:Te=0,leaveTouchDelay:be=1500,onClose:ee,onOpen:ye,open:Oe,placement:ie="bottom",PopperComponent:_e,PopperProps:Ie={},slotProps:qe={},slots:st={},title:Pe,TransitionComponent:tt=G_,TransitionProps:Ve}=A,Xe=at(A,m8e),et=N.isValidElement(B)?B:I.jsx("span",{children:B}),ft=Ni(),At=ft.direction==="rtl",[Je,pe]=N.useState(),[le,he]=N.useState(null),je=N.useRef(!1),Ze=Q||te,We=Ig(),fe=Ig(),xe=Ig(),ve=Ig(),[De,$e]=ws({controlled:Oe,default:!1,name:"Tooltip",state:"open"});let vt=De;const Wt=Td(z),Kt=N.useRef(),gt=on(()=>{Kt.current!==void 0&&(document.body.style.WebkitUserSelect=Kt.current,Kt.current=void 0),ve.clear()});N.useEffect(()=>gt,[gt]);const Gt=In=>{kZ.clear(),qC=!0,$e(!0),ye&&!vt&&ye(In)},ut=on(In=>{kZ.start(800+Te,()=>{qC=!1}),$e(!1),ee&&vt&&ee(In),We.start(ft.transitions.duration.shortest,()=>{je.current=!1})}),wt=In=>{je.current&&In.type!=="touchstart"||(Je&&Je.removeAttribute("title"),fe.clear(),xe.clear(),J||qC&&K?fe.start(qC?K:J,()=>{Gt(In)}):Gt(In))},Xt=In=>{fe.clear(),xe.start(Te,()=>{ut(In)})},{isFocusVisibleRef:Ln,onBlur:$n,onFocus:jn,ref:ar}=cR(),[,Ur]=N.useState(!1),Me=In=>{$n(In),Ln.current===!1&&(Ur(!1),Xt(In))},Ue=In=>{Je||pe(In.currentTarget),jn(In),Ln.current===!0&&(Ur(!0),wt(In))},lt=In=>{je.current=!0;const Wn=et.props;Wn.onTouchStart&&Wn.onTouchStart(In)},Nt=wt,Qt=Xt,Hn=In=>{lt(In),xe.clear(),We.clear(),gt(),Kt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(X,()=>{document.body.style.WebkitUserSelect=Kt.current,wt(In)})},yn=In=>{et.props.onTouchEnd&&et.props.onTouchEnd(In),gt(),xe.start(be,()=>{ut(In)})};N.useEffect(()=>{if(!vt)return;function In(Wn){(Wn.key==="Escape"||Wn.key==="Esc")&&ut(Wn)}return document.addEventListener("keydown",In),()=>{document.removeEventListener("keydown",In)}},[ut,vt]);const rn=Jn(et.ref,ar,pe,n);!Pe&&Pe!==0&&(vt=!1);const Yt=N.useRef(),xn=In=>{const Wn=et.props;Wn.onMouseMove&&Wn.onMouseMove(In),gE={x:In.clientX,y:In.clientY},Yt.current&&Yt.current.update()},Qe={},Ye=typeof Pe=="string";W?(Qe.title=!vt&&Ye&&!Z?Pe:null,Qe["aria-describedby"]=vt?Wt:null):(Qe["aria-label"]=Ye?Pe:null,Qe["aria-labelledby"]=vt&&!Ye?Wt:null);const ot=M({},Qe,Xe,et.props,{className:dt(Xe.className,et.props.className),onTouchStart:lt,ref:rn},te?{onMouseMove:xn}:{}),yt={};H||(ot.onTouchStart=Hn,ot.onTouchEnd=yn),Z||(ot.onMouseOver=GC(Nt,ot.onMouseOver),ot.onMouseLeave=GC(Qt,ot.onMouseLeave),Ze||(yt.onMouseOver=Nt,yt.onMouseLeave=Qt)),V||(ot.onFocus=GC(Ue,ot.onFocus),ot.onBlur=GC(Me,ot.onBlur),Ze||(yt.onFocus=Ue,yt.onBlur=Me));const Yn=N.useMemo(()=>{var In;let Wn=[{name:"arrow",enabled:!!le,options:{element:le,padding:4}}];return(In=Ie.popperOptions)!=null&&In.modifiers&&(Wn=Wn.concat(Ie.popperOptions.modifiers)),M({},Ie.popperOptions,{modifiers:Wn})},[le,Ie]),pn=M({},A,{isRtl:At,arrow:D,disableInteractive:Ze,placement:ie,PopperComponentProp:_e,touch:je.current}),Fn=b8e(pn),Pi=(r=(i=st.popper)!=null?i:L.Popper)!=null?r:y8e,nt=(a=(s=(o=st.transition)!=null?o:L.Transition)!=null?s:tt)!=null?a:G_,Be=(l=(u=st.tooltip)!=null?u:L.Tooltip)!=null?l:v8e,Dt=(c=(f=st.arrow)!=null?f:L.Arrow)!=null?c:O8e,en=KE(Pi,M({},Ie,(h=qe.popper)!=null?h:F.popper,{className:dt(Fn.popper,Ie==null?void 0:Ie.className,(g=(b=qe.popper)!=null?b:F.popper)==null?void 0:g.className)}),pn),Vn=KE(nt,M({},Ve,(S=qe.transition)!=null?S:F.transition),pn),Zr=KE(Be,M({},(w=qe.tooltip)!=null?w:F.tooltip,{className:dt(Fn.tooltip,(E=(x=qe.tooltip)!=null?x:F.tooltip)==null?void 0:E.className)}),pn),wr=KE(Dt,M({},(k=qe.arrow)!=null?k:F.arrow,{className:dt(Fn.arrow,(C=(R=qe.arrow)!=null?R:F.arrow)==null?void 0:C.className)}),pn);return I.jsxs(N.Fragment,{children:[N.cloneElement(et,ot),I.jsx(Pi,M({as:_e??wO,placement:ie,anchorEl:te?{getBoundingClientRect:()=>({top:gE.y,left:gE.x,right:gE.x,bottom:gE.y,width:0,height:0})}:Je,popperRef:Yt,open:Je?vt:!1,id:Wt,transition:!0},yt,en,{popperOptions:Yn,children:({TransitionProps:In})=>I.jsx(nt,M({timeout:ft.transitions.duration.shorter},In,Vn,{children:I.jsxs(Be,M({},Zr,{children:[Pe,D?I.jsx(Dt,M({},wr,{ref:he})):null]}))}))}))]})}),wg=S8e;function E8e(e){return $t("MuiSwitch",e)}const w8e=Ft("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Fo=w8e,x8e=["className","color","edge","size","sx"],T8e=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${ht(n)}`,`size${ht(r)}`],switchBase:["switchBase",`color${ht(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Mt(o,E8e,t);return M({},t,l)},k8e=Re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ht(n.edge)}`],t[`size${ht(n.size)}`]]}})(({ownerState:e})=>M({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Fo.thumb}`]:{width:16,height:16},[`& .${Fo.switchBase}`]:{padding:4,[`&.${Fo.checked}`]:{transform:"translateX(16px)"}}})),C8e=Re(pF,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Fo.input}`]:t.input},n.color!=="default"&&t[`color${ht(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Fo.checked}`]:{transform:"translateX(20px)"},[`&.${Fo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Fo.checked} + .${Fo.track}`]:{opacity:.5},[`&.${Fo.disabled} + .${Fo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Fo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>M({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Fo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?tT(e.palette[t.color].main,.62):eT(e.palette[t.color].main,.55)}`}},[`&.${Fo.checked} + .${Fo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),A8e=Re("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),_8e=Re("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),R8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,u=at(r,x8e),c=M({},r,{color:a,edge:s,size:o}),f=T8e(c),h=I.jsx(_8e,{className:f.thumb,ownerState:c});return I.jsxs(k8e,{className:dt(f.root,i),sx:l,ownerState:c,children:[I.jsx(C8e,M({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:c},u,{classes:M({},f,{root:f.switchBase})})),I.jsx(A8e,{className:f.track,ownerState:c})]})}),I8e=R8e;function D8e(e){return $t("MuiTab",e)}const N8e=Ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),lg=N8e,P8e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],M8e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:s,selected:o,disabled:l}=e,u={root:["root",a&&s&&"labelIcon",`textColor${ht(n)}`,r&&"fullWidth",i&&"wrapped",o&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Mt(u,D8e,t)},L8e=Re(Tu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ht(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>M({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${lg.iconWrapper}`]:M({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${lg.selected}`]:{opacity:1},[`&.${lg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${lg.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${lg.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${lg.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${lg.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),$8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:o,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:h,onClick:g,onFocus:b,selected:S,selectionFollowsFocus:w,textColor:E="inherit",value:x,wrapped:k=!1}=r,C=at(r,P8e),R=M({},r,{disabled:a,disableFocusRipple:s,selected:S,icon:!!l,iconPosition:u,label:!!f,fullWidth:o,textColor:E,wrapped:k}),A=M8e(R),D=l&&f&&N.isValidElement(l)?N.cloneElement(l,{className:dt(A.iconWrapper,l.props.className)}):l,B=F=>{!S&&h&&h(F,x),g&&g(F)},L=F=>{w&&!S&&h&&h(F,x),b&&b(F)};return I.jsxs(L8e,M({focusRipple:!s,className:dt(A.root,i),ref:n,role:"tab","aria-selected":S,disabled:a,onClick:B,onFocus:L,ownerState:R,tabIndex:S?0:-1},C,{children:[u==="top"||u==="start"?I.jsxs(N.Fragment,{children:[D,f]}):I.jsxs(N.Fragment,{children:[f,D]}),c]}))}),CZ=$8e,F8e=N.createContext(),vle=F8e;function B8e(e){return $t("MuiTable",e)}Ft("MuiTable",["root","stickyHeader"]);const U8e=["className","component","padding","size","stickyHeader"],z8e=e=>{const{classes:t,stickyHeader:n}=e;return Mt({root:["root",n&&"stickyHeader"]},B8e,t)},j8e=Re("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>M({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":M({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),AZ="table",H8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTable"}),{className:i,component:a=AZ,padding:s="normal",size:o="medium",stickyHeader:l=!1}=r,u=at(r,U8e),c=M({},r,{component:a,padding:s,size:o,stickyHeader:l}),f=z8e(c),h=N.useMemo(()=>({padding:s,size:o,stickyHeader:l}),[s,o,l]);return I.jsx(vle.Provider,{value:h,children:I.jsx(j8e,M({as:a,role:a===AZ?null:"table",ref:n,className:dt(f.root,i),ownerState:c},u))})}),V8e=H8e,W8e=N.createContext(),NR=W8e;function Q8e(e){return $t("MuiTableBody",e)}Ft("MuiTableBody",["root"]);const q8e=["className","component"],G8e=e=>{const{classes:t}=e;return Mt({root:["root"]},Q8e,t)},Y8e=Re("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Z8e={variant:"body"},_Z="tbody",X8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableBody"}),{className:i,component:a=_Z}=r,s=at(r,q8e),o=M({},r,{component:a}),l=G8e(o);return I.jsx(NR.Provider,{value:Z8e,children:I.jsx(Y8e,M({className:dt(l.root,i),as:a,ref:n,role:a===_Z?null:"rowgroup",ownerState:o},s))})}),K8e=X8e;function J8e(e){return $t("MuiTableCell",e)}const eMe=Ft("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),tMe=eMe,nMe=["align","className","component","padding","scope","size","sortDirection","variant"],rMe=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ht(r)}`,i!=="normal"&&`padding${ht(i)}`,`size${ht(a)}`]};return Mt(o,J8e,t)},iMe=Re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ht(n.size)}`],n.padding!=="normal"&&t[`padding${ht(n.padding)}`],n.align!=="inherit"&&t[`align${ht(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>M({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?tT(Rn(e.palette.divider,1),.88):eT(Rn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${tMe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),aMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:l,size:u,sortDirection:c,variant:f}=r,h=at(r,nMe),g=N.useContext(vle),b=N.useContext(NR),S=b&&b.variant==="head";let w;s?w=s:w=S?"th":"td";let E=l;w==="td"?E=void 0:!E&&S&&(E="col");const x=f||b&&b.variant,k=M({},r,{align:i,component:w,padding:o||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:c,stickyHeader:x==="head"&&g&&g.stickyHeader,variant:x}),C=rMe(k);let R=null;return c&&(R=c==="asc"?"ascending":"descending"),I.jsx(iMe,M({as:w,ref:n,className:dt(C.root,a),"aria-sort":R,scope:E,ownerState:k},h))}),qb=aMe;function sMe(e){return $t("MuiTableContainer",e)}Ft("MuiTableContainer",["root"]);const oMe=["className","component"],lMe=e=>{const{classes:t}=e;return Mt({root:["root"]},sMe,t)},uMe=Re("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),cMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,s=at(r,oMe),o=M({},r,{component:a}),l=lMe(o);return I.jsx(uMe,M({ref:n,as:a,className:dt(l.root,i),ownerState:o},s))}),dMe=cMe;function fMe(e){return $t("MuiTableHead",e)}Ft("MuiTableHead",["root"]);const hMe=["className","component"],pMe=e=>{const{classes:t}=e;return Mt({root:["root"]},fMe,t)},mMe=Re("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),gMe={variant:"head"},RZ="thead",bMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableHead"}),{className:i,component:a=RZ}=r,s=at(r,hMe),o=M({},r,{component:a}),l=pMe(o);return I.jsx(NR.Provider,{value:gMe,children:I.jsx(mMe,M({as:a,className:dt(l.root,i),ref:n,role:a===RZ?null:"rowgroup",ownerState:o},s))})}),yMe=bMe;function vMe(e){return $t("MuiToolbar",e)}Ft("MuiToolbar",["root","gutters","regular","dense"]);const OMe=["className","component","disableGutters","variant"],SMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Mt({root:["root",!n&&"gutters",r]},vMe,t)},EMe=Re("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>M({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),wMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=at(r,OMe),u=M({},r,{component:a,disableGutters:s,variant:o}),c=SMe(u);return I.jsx(EMe,M({as:a,className:dt(c.root,i),ref:n,ownerState:u},l))}),Ole=wMe,xMe=Wa(I.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),TMe=Wa(I.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function kMe(e){return $t("MuiTableRow",e)}const CMe=Ft("MuiTableRow",["root","selected","hover","head","footer"]),IZ=CMe,AMe=["className","component","hover","selected"],_Me=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Mt({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},kMe,t)},RMe=Re("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${IZ.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${IZ.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),DZ="tr",IMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableRow"}),{className:i,component:a=DZ,hover:s=!1,selected:o=!1}=r,l=at(r,AMe),u=N.useContext(NR),c=M({},r,{component:a,hover:s,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=_Me(c);return I.jsx(RMe,M({as:a,ref:n,className:dt(f.root,i),role:a===DZ?null:"row",ownerState:c},l))}),NZ=IMe;function DMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function NMe(e,t,n,r={},i=()=>{}){const{ease:a=DMe,duration:s=300}=r;let o=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=h=>{if(u){i(new Error("Animation cancelled"));return}o===null&&(o=h);const g=Math.min(1,(h-o)/s);if(t[e]=a(g)*(n-l)+l,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const PMe=["onChange"],MMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function LMe(e){const{onChange:t}=e,n=at(e,PMe),r=N.useRef(),i=N.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return la(()=>{const s=SO(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),o=kc(i.current);return o.addEventListener("resize",s),()=>{s.clear(),o.removeEventListener("resize",s)}},[t]),N.useEffect(()=>{a(),t(r.current)},[t]),I.jsx("div",M({style:MMe,ref:i},n))}function $Me(e){return $t("MuiTabScrollButton",e)}const FMe=Ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),BMe=FMe,UMe=["className","slots","slotProps","direction","orientation","disabled"],zMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Mt({root:["root",n,r&&"disabled"]},$Me,t)},jMe=Re(Tu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>M({width:40,flexShrink:0,opacity:.8,[`&.${BMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),HMe=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiTabScrollButton"}),{className:s,slots:o={},slotProps:l={},direction:u}=a,c=at(a,UMe),h=Ni().direction==="rtl",g=M({isRtl:h},a),b=zMe(g),S=(r=o.StartScrollButtonIcon)!=null?r:xMe,w=(i=o.EndScrollButtonIcon)!=null?i:TMe,E=cr({elementType:S,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),x=cr({elementType:w,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return I.jsx(jMe,M({component:"div",className:dt(b.root,s),ref:n,role:null,ownerState:g,tabIndex:null},c,{children:u==="left"?I.jsx(S,M({},E)):I.jsx(w,M({},x))}))}),VMe=HMe;function WMe(e){return $t("MuiTabs",e)}const QMe=Ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),E4=QMe,qMe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],PZ=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,MZ=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,YC=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},GMe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:s,scrollButtonsHideMobile:o,classes:l}=e;return Mt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",o&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},WMe,l)},YMe=Re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${E4.scrollButtons}`]:t.scrollButtons},{[`& .${E4.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>M({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${E4.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ZMe=Re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>M({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),XMe=Re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>M({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),KMe=Re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>M({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),JMe=Re(LMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),LZ={},eLe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTabs"}),i=Ni(),a=i.direction==="rtl",{"aria-label":s,"aria-labelledby":o,action:l,centered:u=!1,children:c,className:f,component:h="div",allowScrollButtonsMobile:g=!1,indicatorColor:b="primary",onChange:S,orientation:w="horizontal",ScrollButtonComponent:E=VMe,scrollButtons:x="auto",selectionFollowsFocus:k,slots:C={},slotProps:R={},TabIndicatorProps:A={},TabScrollButtonProps:D={},textColor:B="primary",value:L,variant:F="standard",visibleScrollbar:W=!1}=r,V=at(r,qMe),Z=F==="scrollable",Q=w==="vertical",H=Q?"scrollTop":"scrollLeft",J=Q?"top":"left",K=Q?"bottom":"right",X=Q?"clientHeight":"clientWidth",te=Q?"height":"width",z=M({},r,{component:h,allowScrollButtonsMobile:g,indicatorColor:b,orientation:w,vertical:Q,scrollButtons:x,textColor:B,variant:F,visibleScrollbar:W,fixed:!Z,hideScrollbar:Z&&!W,scrollableX:Z&&!Q,scrollableY:Z&&Q,centered:u&&!Z,scrollButtonsHideMobile:!g}),Te=GMe(z),be=cr({elementType:C.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:z}),ee=cr({elementType:C.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:z}),[ye,Oe]=N.useState(!1),[ie,_e]=N.useState(LZ),[Ie,qe]=N.useState(!1),[st,Pe]=N.useState(!1),[tt,Ve]=N.useState(!1),[Xe,et]=N.useState({overflow:"hidden",scrollbarWidth:0}),ft=new Map,At=N.useRef(null),Je=N.useRef(null),pe=()=>{const ut=At.current;let wt;if(ut){const Ln=ut.getBoundingClientRect();wt={clientWidth:ut.clientWidth,scrollLeft:ut.scrollLeft,scrollTop:ut.scrollTop,scrollLeftNormalized:bCe(ut,i.direction),scrollWidth:ut.scrollWidth,top:Ln.top,bottom:Ln.bottom,left:Ln.left,right:Ln.right}}let Xt;if(ut&&L!==!1){const Ln=Je.current.children;if(Ln.length>0){const $n=Ln[ft.get(L)];Xt=$n?$n.getBoundingClientRect():null}}return{tabsMeta:wt,tabMeta:Xt}},le=on(()=>{const{tabsMeta:ut,tabMeta:wt}=pe();let Xt=0,Ln;if(Q)Ln="top",wt&&ut&&(Xt=wt.top-ut.top+ut.scrollTop);else if(Ln=a?"right":"left",wt&&ut){const jn=a?ut.scrollLeftNormalized+ut.clientWidth-ut.scrollWidth:ut.scrollLeft;Xt=(a?-1:1)*(wt[Ln]-ut[Ln]+jn)}const $n={[Ln]:Xt,[te]:wt?wt[te]:0};if(isNaN(ie[Ln])||isNaN(ie[te]))_e($n);else{const jn=Math.abs(ie[Ln]-$n[Ln]),ar=Math.abs(ie[te]-$n[te]);(jn>=1||ar>=1)&&_e($n)}}),he=(ut,{animation:wt=!0}={})=>{wt?NMe(H,At.current,ut,{duration:i.transitions.duration.standard}):At.current[H]=ut},je=ut=>{let wt=At.current[H];Q?wt+=ut:(wt+=ut*(a?-1:1),wt*=a&&doe()==="reverse"?-1:1),he(wt)},Ze=()=>{const ut=At.current[X];let wt=0;const Xt=Array.from(Je.current.children);for(let Ln=0;Lnut){Ln===0&&(wt=ut);break}wt+=$n[X]}return wt},We=()=>{je(-1*Ze())},fe=()=>{je(Ze())},xe=N.useCallback(ut=>{et({overflow:null,scrollbarWidth:ut})},[]),ve=()=>{const ut={};ut.scrollbarSizeListener=Z?I.jsx(JMe,{onChange:xe,className:dt(Te.scrollableX,Te.hideScrollbar)}):null;const Xt=Z&&(x==="auto"&&(Ie||st)||x===!0);return ut.scrollButtonStart=Xt?I.jsx(E,M({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:be},orientation:w,direction:a?"right":"left",onClick:We,disabled:!Ie},D,{className:dt(Te.scrollButtons,D.className)})):null,ut.scrollButtonEnd=Xt?I.jsx(E,M({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ee},orientation:w,direction:a?"left":"right",onClick:fe,disabled:!st},D,{className:dt(Te.scrollButtons,D.className)})):null,ut},De=on(ut=>{const{tabsMeta:wt,tabMeta:Xt}=pe();if(!(!Xt||!wt)){if(Xt[J]wt[K]){const Ln=wt[H]+(Xt[K]-wt[K]);he(Ln,{animation:ut})}}}),$e=on(()=>{Z&&x!==!1&&Ve(!tt)});N.useEffect(()=>{const ut=SO(()=>{At.current&&le()});let wt;const Xt=jn=>{jn.forEach(ar=>{ar.removedNodes.forEach(Ur=>{var Me;(Me=wt)==null||Me.unobserve(Ur)}),ar.addedNodes.forEach(Ur=>{var Me;(Me=wt)==null||Me.observe(Ur)})}),ut(),$e()},Ln=kc(At.current);Ln.addEventListener("resize",ut);let $n;return typeof ResizeObserver<"u"&&(wt=new ResizeObserver(ut),Array.from(Je.current.children).forEach(jn=>{wt.observe(jn)})),typeof MutationObserver<"u"&&($n=new MutationObserver(Xt),$n.observe(Je.current,{childList:!0})),()=>{var jn,ar;ut.clear(),Ln.removeEventListener("resize",ut),(jn=$n)==null||jn.disconnect(),(ar=wt)==null||ar.disconnect()}},[le,$e]),N.useEffect(()=>{const ut=Array.from(Je.current.children),wt=ut.length;if(typeof IntersectionObserver<"u"&&wt>0&&Z&&x!==!1){const Xt=ut[0],Ln=ut[wt-1],$n={root:At.current,threshold:.99},jn=Ue=>{qe(!Ue[0].isIntersecting)},ar=new IntersectionObserver(jn,$n);ar.observe(Xt);const Ur=Ue=>{Pe(!Ue[0].isIntersecting)},Me=new IntersectionObserver(Ur,$n);return Me.observe(Ln),()=>{ar.disconnect(),Me.disconnect()}}},[Z,x,tt,c==null?void 0:c.length]),N.useEffect(()=>{Oe(!0)},[]),N.useEffect(()=>{le()}),N.useEffect(()=>{De(LZ!==ie)},[De,ie]),N.useImperativeHandle(l,()=>({updateIndicator:le,updateScrollButtons:$e}),[le,$e]);const vt=I.jsx(KMe,M({},A,{className:dt(Te.indicator,A.className),ownerState:z,style:M({},ie,A.style)}));let Wt=0;const Kt=N.Children.map(c,ut=>{if(!N.isValidElement(ut))return null;const wt=ut.props.value===void 0?Wt:ut.props.value;ft.set(wt,Wt);const Xt=wt===L;return Wt+=1,N.cloneElement(ut,M({fullWidth:F==="fullWidth",indicator:Xt&&!ye&&vt,selected:Xt,selectionFollowsFocus:k,onChange:S,textColor:B,value:wt},Wt===1&&L===!1&&!ut.props.tabIndex?{tabIndex:0}:{}))}),gt=ut=>{const wt=Je.current,Xt=Ei(wt).activeElement;if(Xt.getAttribute("role")!=="tab")return;let $n=w==="horizontal"?"ArrowLeft":"ArrowUp",jn=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&a&&($n="ArrowRight",jn="ArrowLeft"),ut.key){case $n:ut.preventDefault(),YC(wt,Xt,MZ);break;case jn:ut.preventDefault(),YC(wt,Xt,PZ);break;case"Home":ut.preventDefault(),YC(wt,null,PZ);break;case"End":ut.preventDefault(),YC(wt,null,MZ);break}},Gt=ve();return I.jsxs(YMe,M({className:dt(Te.root,f),ownerState:z,ref:n,as:h},V,{children:[Gt.scrollButtonStart,Gt.scrollbarSizeListener,I.jsxs(ZMe,{className:Te.scroller,ownerState:z,style:{overflow:Xe.overflow,[Q?`margin${a?"Left":"Right"}`:"marginBottom"]:W?void 0:-Xe.scrollbarWidth},ref:At,children:[I.jsx(XMe,{"aria-label":s,"aria-labelledby":o,"aria-orientation":w==="vertical"?"vertical":null,className:Te.flexContainer,ownerState:z,onKeyDown:gt,ref:Je,role:"tablist",children:Kt}),ye&&vt]}),Gt.scrollButtonEnd]}))}),tLe=eLe;function nLe(e){return $t("MuiTextField",e)}Ft("MuiTextField",["root"]);const rLe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],iLe={standard:sle,filled:ele,outlined:ple},aLe=e=>{const{classes:t}=e;return Mt({root:["root"]},nLe,t)},sLe=Re(kd,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oLe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:b,id:S,InputLabelProps:w,inputProps:E,InputProps:x,inputRef:k,label:C,maxRows:R,minRows:A,multiline:D=!1,name:B,onBlur:L,onChange:F,onFocus:W,placeholder:V,required:Z=!1,rows:Q,select:H=!1,SelectProps:J,type:K,value:X,variant:te="outlined"}=r,z=at(r,rLe),Te=M({},r,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:g,multiline:D,required:Z,select:H,variant:te}),be=aLe(Te),ee={};te==="outlined"&&(w&&typeof w.shrink<"u"&&(ee.notched=w.shrink),ee.label=C),H&&((!J||!J.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const ye=Td(S),Oe=b&&ye?`${ye}-helper-text`:void 0,ie=C&&ye?`${ye}-label`:void 0,_e=iLe[te],Ie=I.jsx(_e,M({"aria-describedby":Oe,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:g,multiline:D,name:B,rows:Q,maxRows:R,minRows:A,type:K,value:X,id:ye,inputRef:k,onBlur:L,onChange:F,onFocus:W,placeholder:V,inputProps:E},ee,x));return I.jsxs(sLe,M({className:dt(be.root,o),disabled:c,error:f,fullWidth:g,ref:n,required:Z,color:l,variant:te,ownerState:Te},z,{children:[C!=null&&C!==""&&I.jsx(ole,M({htmlFor:ye,id:ie},w,{children:C})),H?I.jsx(yle,M({"aria-describedby":Oe,id:ye,labelId:ie,value:X,input:Ie},J,{children:s})):Ie,b&&I.jsx(xO,M({id:Oe},h,{children:b}))]}))}),E0=oLe;function lLe(e){return $t("MuiToggleButton",e)}const uLe=Ft("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Ry=uLe,cLe=N.createContext({}),Sle=cLe,dLe=N.createContext(void 0),Ele=dLe;function fLe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const hLe=["value"],pLe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],mLe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${ht(a)}`,s]};return Mt(o,lLe,t)},gLe=Re(Tu,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${ht(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),M({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${Ry.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ry.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Rn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Rn(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),bLe=N.forwardRef(function(t,n){const r=N.useContext(Sle),{value:i}=r,a=at(r,hLe),s=N.useContext(Ele),o=dR(M({},a,{selected:fLe(t.value,i)}),t),l=_t({props:o,name:"MuiToggleButton"}),{children:u,className:c,color:f="standard",disabled:h=!1,disableFocusRipple:g=!1,fullWidth:b=!1,onChange:S,onClick:w,selected:E,size:x="medium",value:k}=l,C=at(l,pLe),R=M({},l,{color:f,disabled:h,disableFocusRipple:g,fullWidth:b,size:x}),A=mLe(R),D=L=>{w&&(w(L,k),L.defaultPrevented)||S&&S(L,k)},B=s||"";return I.jsx(gLe,M({className:dt(a.className,A.root,c,B),disabled:h,focusRipple:!g,ref:n,onClick:D,onChange:S,value:k,ownerState:R,"aria-pressed":E},C,{children:u}))}),EN=bLe;function yLe(e){return $t("MuiToggleButtonGroup",e)}const vLe=Ft("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),qi=vLe,OLe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],SLe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${ht(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Mt(a,yLe,t)},ELe=Re("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qi.grouped}`]:t.grouped},{[`& .${qi.grouped}`]:t[`grouped${ht(n.orientation)}`]},{[`& .${qi.firstButton}`]:t.firstButton},{[`& .${qi.lastButton}`]:t.lastButton},{[`& .${qi.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>M({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${qi.grouped}`]:M({},e.orientation==="horizontal"?{[`&.${qi.selected} + .${qi.grouped}.${qi.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${qi.selected} + .${qi.grouped}.${qi.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${qi.firstButton},& .${qi.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${qi.lastButton},& .${qi.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${qi.firstButton},& .${qi.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${qi.lastButton},& .${qi.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${qi.lastButton}.${Ry.disabled},& .${qi.middleButton}.${Ry.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${qi.lastButton}.${Ry.disabled},& .${qi.middleButton}.${Ry.disabled}`]:{borderTop:"1px solid transparent"}})),wLe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:f="horizontal",size:h="medium",value:g}=r,b=at(r,OLe),S=M({},r,{disabled:o,fullWidth:u,orientation:f,size:h}),w=SLe(S),E=N.useCallback((D,B)=>{if(!c)return;const L=g&&g.indexOf(B);let F;g&&L>=0?(F=g.slice(),F.splice(L,1)):F=g?g.concat(B):[B],c(D,F)},[c,g]),x=N.useCallback((D,B)=>{c&&c(D,g===B?null:B)},[c,g]),k=N.useMemo(()=>({className:w.grouped,onChange:l?x:E,value:g,size:h,fullWidth:u,color:s,disabled:o}),[w.grouped,l,x,E,g,h,u,s,o]),C=vCe(i),R=C.length,A=D=>{const B=D===0,L=D===R-1;return B&&L?"":B?w.firstButton:L?w.lastButton:w.middleButton};return I.jsx(ELe,M({role:"group",className:dt(w.root,a),ref:n,ownerState:S},b,{children:I.jsx(Sle.Provider,{value:k,children:C.map((D,B)=>I.jsx(Ele.Provider,{value:A(B),children:D},B))})}))}),xLe=wLe;var wle={exports:{}},xle={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -162,7 +162,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sT=N;function vLe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OLe=typeof Object.is=="function"?Object.is:vLe,SLe=sT.useSyncExternalStore,ELe=sT.useRef,wLe=sT.useEffect,xLe=sT.useMemo,TLe=sT.useDebugValue;xle.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ELe(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=xLe(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&s.hasValue){var b=s.value;if(i(b,g))return f=b}return f=g}if(b=f,OLe(c,g))return b;var S=r(g);return i!==void 0&&i(b,S)?b:(c=g,f=S)}var u=!1,c,f,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var o=SLe(e,a[0],a[1]);return wLe(function(){s.hasValue=!0,s.value=o},[o]),TLe(o),o};wle.exports=xle;var kLe=wle.exports,yu="default"in Mv?hn:Mv,LZ=Symbol.for("react-redux-context"),$Z=typeof globalThis<"u"?globalThis:{};function CLe(){if(!yu.createContext)return{};const e=$Z[LZ]??($Z[LZ]=new Map);let t=e.get(yu.createContext);return t||(t=yu.createContext(null),e.set(yu.createContext,t)),t}var n0=CLe(),ALe=()=>{throw new Error("uSES not initialized!")};function vF(e=n0){return function(){return yu.useContext(e)}}var Tle=vF(),kle=ALe,_Le=e=>{kle=e},RLe=(e,t)=>e===t;function ILe(e=n0){const t=e===n0?Tle:vF(e),n=(r,i={})=>{const{equalityFn:a=RLe,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();yu.useRef(!0);const h=yu.useCallback({[r.name](b){return r(b)}}[r.name],[r,c,s.stabilityCheck]),g=kle(l.addNestedSub,o.getState,u||o.getState,h,a);return yu.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var pi=ILe();function DLe(e){e()}function NLe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){DLe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var FZ={notify(){},get:()=>[]};function PLe(e,t){let n,r=FZ,i=0,a=!1;function s(S){c();const E=r.subscribe(S);let w=!1;return()=>{w||(w=!0,E(),f())}}function o(){r.notify()}function l(){b.onStateChange&&b.onStateChange()}function u(){return a}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=NLe())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=FZ)}function h(){a||(a=!0,c())}function g(){a&&(a=!1,f())}const b={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:u,trySubscribe:h,tryUnsubscribe:g,getListeners:()=>r};return b}var MLe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LLe=MLe?yu.useLayoutEffect:yu.useEffect;function $Le({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=yu.useMemo(()=>{const u=PLe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=yu.useMemo(()=>e.getState(),[e]);LLe(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,o]);const l=t||n0;return yu.createElement(l.Provider,{value:s},n)}var FLe=$Le;function Cle(e=n0){const t=e===n0?Tle:vF(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var BLe=Cle();function ULe(e=n0){const t=e===n0?BLe:Cle(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Du=ULe();_Le(kLe.useSyncExternalStoreWithSelector);/** + */var oT=N;function TLe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kLe=typeof Object.is=="function"?Object.is:TLe,CLe=oT.useSyncExternalStore,ALe=oT.useRef,_Le=oT.useEffect,RLe=oT.useMemo,ILe=oT.useDebugValue;xle.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ALe(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=RLe(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&s.hasValue){var b=s.value;if(i(b,g))return f=b}return f=g}if(b=f,kLe(c,g))return b;var S=r(g);return i!==void 0&&i(b,S)?b:(c=g,f=S)}var u=!1,c,f,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var o=CLe(e,a[0],a[1]);return _Le(function(){s.hasValue=!0,s.value=o},[o]),ILe(o),o};wle.exports=xle;var DLe=wle.exports,yu="default"in Mv?hn:Mv,$Z=Symbol.for("react-redux-context"),FZ=typeof globalThis<"u"?globalThis:{};function NLe(){if(!yu.createContext)return{};const e=FZ[$Z]??(FZ[$Z]=new Map);let t=e.get(yu.createContext);return t||(t=yu.createContext(null),e.set(yu.createContext,t)),t}var n0=NLe(),PLe=()=>{throw new Error("uSES not initialized!")};function OF(e=n0){return function(){return yu.useContext(e)}}var Tle=OF(),kle=PLe,MLe=e=>{kle=e},LLe=(e,t)=>e===t;function $Le(e=n0){const t=e===n0?Tle:OF(e),n=(r,i={})=>{const{equalityFn:a=LLe,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();yu.useRef(!0);const h=yu.useCallback({[r.name](b){return r(b)}}[r.name],[r,c,s.stabilityCheck]),g=kle(l.addNestedSub,o.getState,u||o.getState,h,a);return yu.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var pi=$Le();function FLe(e){e()}function BLe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){FLe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var BZ={notify(){},get:()=>[]};function ULe(e,t){let n,r=BZ,i=0,a=!1;function s(S){c();const w=r.subscribe(S);let E=!1;return()=>{E||(E=!0,w(),f())}}function o(){r.notify()}function l(){b.onStateChange&&b.onStateChange()}function u(){return a}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=BLe())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=BZ)}function h(){a||(a=!0,c())}function g(){a&&(a=!1,f())}const b={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:u,trySubscribe:h,tryUnsubscribe:g,getListeners:()=>r};return b}var zLe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jLe=zLe?yu.useLayoutEffect:yu.useEffect;function HLe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=yu.useMemo(()=>{const u=ULe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=yu.useMemo(()=>e.getState(),[e]);jLe(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,o]);const l=t||n0;return yu.createElement(l.Provider,{value:s},n)}var VLe=HLe;function Cle(e=n0){const t=e===n0?Tle:OF(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var WLe=Cle();function QLe(e=n0){const t=e===n0?WLe:Cle(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Du=QLe();MLe(DLe.useSyncExternalStoreWithSelector);/** * @remix-run/router v1.14.2 * * Copyright (c) Remix Software Inc. @@ -171,8 +171,8 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function d1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jLe(){return Math.random().toString(36).substr(2,8)}function UZ(e,t){return{usr:e.state,key:e.key,idx:t}}function Pw(e,t,n,r){return n===void 0&&(n=null),Sa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yp(t):t,{state:n,key:t&&t.key||r||jLe()})}function oT(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yp(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function HLe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=Ia.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Sa({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){o=Ia.Pop;let E=c(),w=E==null?null:E-u;u=E,l&&l({action:o,location:S.location,delta:w})}function h(E,w){o=Ia.Push;let x=Pw(S.location,E,w);n&&n(x,E),u=c()+1;let k=UZ(x,u),C=S.createHref(x);try{s.pushState(k,"",C)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(C)}a&&l&&l({action:o,location:S.location,delta:1})}function g(E,w){o=Ia.Replace;let x=Pw(S.location,E,w);n&&n(x,E),u=c();let k=UZ(x,u),C=S.createHref(x);s.replaceState(k,"",C),a&&l&&l({action:o,location:S.location,delta:0})}function b(E){let w=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof E=="string"?E:oT(E);return Rr(w,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,w)}let S={get action(){return o},get location(){return e(i,s)},listen(E){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(BZ,f),l=E,()=>{i.removeEventListener(BZ,f),l=null}},createHref(E){return t(i,E)},createURL:b,encodeLocation(E){let w=b(E);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:g,go(E){return s.go(E)}};return S}var va;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(va||(va={}));const VLe=new Set(["lazy","caseSensitive","path","id","index","children"]);function WLe(e){return e.index===!0}function _8(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,a],o=typeof i.id=="string"?i.id:s.join("-");if(Rr(i.index!==!0||!i.children,"Cannot specify children on an index route"),Rr(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),WLe(i)){let l=Sa({},i,t(i),{id:o});return r[o]=l,l}else{let l=Sa({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=_8(i.children,t,s,r)),l}})}function Iy(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?yp(t):t,i=lT(r.pathname||"/",n);if(i==null)return null;let a=Ale(e);qLe(a);let s=null;for(let o=0;s==null&&o{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(Rr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=jm([r,l.relativePath]),c=n.concat(l);a.children&&a.children.length>0&&(Rr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ale(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:e9e(u,a.index),routesMeta:c})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of _le(a.path))i(a,s,l)}),t}function _le(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=_le(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function qLe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:t9e(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const GLe=/^:[\w-]+$/,YLe=3,ZLe=2,XLe=1,KLe=10,JLe=-2,zZ=e=>e==="*";function e9e(e,t){let n=e.split("/"),r=n.length;return n.some(zZ)&&(r+=JLe),t&&(r+=ZLe),n.filter(i=>!zZ(i)).reduce((i,a)=>i+(GLe.test(a)?YLe:a===""?XLe:KLe),r)}function t9e(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function n9e(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let s=0;s{let{paramName:h,isOptional:g}=c;if(h==="*"){let S=o[f]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const b=o[f];return g&&!b?u[h]=void 0:u[h]=s9e(b||"",h),u},{}),pathname:a,pathnameBase:s,pattern:e}}function i9e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),d1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function a9e(e){try{return decodeURI(e)}catch(t){return d1(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function s9e(e,t){try{return decodeURIComponent(e)}catch(n){return d1(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function lT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function o9e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?yp(e):e;return{pathname:n?n.startsWith("/")?n:l9e(n,t):t,search:c9e(r),hash:d9e(i)}}function l9e(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function SN(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Rle(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function OF(e,t){let n=Rle(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function SF(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=yp(e):(i=Sa({},e),Rr(!i.pathname||!i.pathname.includes("?"),SN("?","pathname","search",i)),Rr(!i.pathname||!i.pathname.includes("#"),SN("#","pathname","hash",i)),Rr(!i.search||!i.search.includes("#"),SN("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}o=f>=0?t[f]:"/"}let l=o9e(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const jm=e=>e.join("/").replace(/\/\/+/g,"/"),u9e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),c9e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,d9e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class EF{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function wF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ile=["post","put","patch","delete"],f9e=new Set(Ile),h9e=["get",...Ile],p9e=new Set(h9e),m9e=new Set([301,302,303,307,308]),g9e=new Set([307,308]),EN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},b9e={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Dle=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y9e=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Nle="remix-router-transitions";function v9e(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Rr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let Me=e.detectErrorBoundary;i=Ue=>({hasErrorBoundary:Me(Ue)})}else i=y9e;let a={},s=_8(e.routes,i,void 0,a),o,l=e.basename||"/",u=Sa({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,f=new Set,h=null,g=null,b=null,S=e.hydrationData!=null,E=Iy(s,e.history.location,l),w=null;if(E==null){let Me=ec(404,{pathname:e.history.location.pathname}),{matches:Ue,route:lt}=YZ(s);E=Ue,w={[lt.id]:Me}}let x,k=E.some(Me=>Me.route.lazy),C=E.some(Me=>Me.route.loader);if(k)x=!1;else if(!C)x=!0;else if(u.v7_partialHydration){let Me=e.hydrationData?e.hydrationData.loaderData:null,Ue=e.hydrationData?e.hydrationData.errors:null;x=E.every(lt=>lt.route.loader&<.route.loader.hydrate!==!0&&(Me&&Me[lt.route.id]!==void 0||Ue&&Ue[lt.route.id]!==void 0))}else x=e.hydrationData!=null;let R,A={historyAction:e.history.action,location:e.history.location,matches:E,initialized:x,navigation:EN,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||w,fetchers:new Map,blockers:new Map},D=Ia.Pop,B=!1,L,F=!1,W=new Map,V=null,Z=!1,Q=!1,H=[],J=[],K=new Map,X=0,te=-1,z=new Map,Te=new Set,be=new Map,ee=new Map,ye=new Set,Oe=new Map,ie=new Map,_e=!1;function Ie(){if(c=e.history.listen(Me=>{let{action:Ue,location:lt,delta:Nt}=Me;if(_e){_e=!1;return}d1(ie.size===0||Nt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Qt=wt({currentLocation:A.location,nextLocation:lt,historyAction:Ue});if(Qt&&Nt!=null){_e=!0,e.history.go(Nt*-1),ut(Qt,{state:"blocked",location:lt,proceed(){ut(Qt,{state:"proceeding",proceed:void 0,reset:void 0,location:lt}),e.history.go(Nt)},reset(){let Hn=new Map(A.blockers);Hn.set(Qt,bE),Pe({blockers:Hn})}});return}return et(Ue,lt)}),n){R9e(t,W);let Me=()=>I9e(t,W);t.addEventListener("pagehide",Me),V=()=>t.removeEventListener("pagehide",Me)}return A.initialized||et(Ia.Pop,A.location,{initialHydration:!0}),R}function qe(){c&&c(),V&&V(),f.clear(),L&&L.abort(),A.fetchers.forEach((Me,Ue)=>ve(Ue)),A.blockers.forEach((Me,Ue)=>Gt(Ue))}function st(Me){return f.add(Me),()=>f.delete(Me)}function Pe(Me,Ue){Ue===void 0&&(Ue={}),A=Sa({},A,Me);let lt=[],Nt=[];u.v7_fetcherPersist&&A.fetchers.forEach((Qt,Hn)=>{Qt.state==="idle"&&(ye.has(Hn)?Nt.push(Hn):lt.push(Hn))}),[...f].forEach(Qt=>Qt(A,{deletedFetchers:Nt,unstable_viewTransitionOpts:Ue.viewTransitionOpts,unstable_flushSync:Ue.flushSync===!0})),u.v7_fetcherPersist&&(lt.forEach(Qt=>A.fetchers.delete(Qt)),Nt.forEach(Qt=>ve(Qt)))}function tt(Me,Ue,lt){var Nt,Qt;let{flushSync:Hn}=lt===void 0?{}:lt,yn=A.actionData!=null&&A.navigation.formMethod!=null&&Jc(A.navigation.formMethod)&&A.navigation.state==="loading"&&((Nt=Me.state)==null?void 0:Nt._isRedirect)!==!0,rn;Ue.actionData?Object.keys(Ue.actionData).length>0?rn=Ue.actionData:rn=null:yn?rn=A.actionData:rn=null;let Yt=Ue.loaderData?GZ(A.loaderData,Ue.loaderData,Ue.matches||[],Ue.errors):A.loaderData,xn=A.blockers;xn.size>0&&(xn=new Map(xn),xn.forEach((ot,yt)=>xn.set(yt,bE)));let Qe=B===!0||A.navigation.formMethod!=null&&Jc(A.navigation.formMethod)&&((Qt=Me.state)==null?void 0:Qt._isRedirect)!==!0;o&&(s=o,o=void 0),Z||D===Ia.Pop||(D===Ia.Push?e.history.push(Me,Me.state):D===Ia.Replace&&e.history.replace(Me,Me.state));let Ye;if(D===Ia.Pop){let ot=W.get(A.location.pathname);ot&&ot.has(Me.pathname)?Ye={currentLocation:A.location,nextLocation:Me}:W.has(Me.pathname)&&(Ye={currentLocation:Me,nextLocation:A.location})}else if(F){let ot=W.get(A.location.pathname);ot?ot.add(Me.pathname):(ot=new Set([Me.pathname]),W.set(A.location.pathname,ot)),Ye={currentLocation:A.location,nextLocation:Me}}Pe(Sa({},Ue,{actionData:rn,loaderData:Yt,historyAction:D,location:Me,initialized:!0,navigation:EN,revalidation:"idle",restoreScrollPosition:ar(Me,Ue.matches||A.matches),preventScrollReset:Qe,blockers:xn}),{viewTransitionOpts:Ye,flushSync:Hn===!0}),D=Ia.Pop,B=!1,F=!1,Z=!1,Q=!1,H=[],J=[]}async function Ve(Me,Ue){if(typeof Me=="number"){e.history.go(Me);return}let lt=R8(A.location,A.matches,l,u.v7_prependBasename,Me,u.v7_relativeSplatPath,Ue==null?void 0:Ue.fromRouteId,Ue==null?void 0:Ue.relative),{path:Nt,submission:Qt,error:Hn}=jZ(u.v7_normalizeFormMethod,!1,lt,Ue),yn=A.location,rn=Pw(A.location,Nt,Ue&&Ue.state);rn=Sa({},rn,e.history.encodeLocation(rn));let Yt=Ue&&Ue.replace!=null?Ue.replace:void 0,xn=Ia.Push;Yt===!0?xn=Ia.Replace:Yt===!1||Qt!=null&&Jc(Qt.formMethod)&&Qt.formAction===A.location.pathname+A.location.search&&(xn=Ia.Replace);let Qe=Ue&&"preventScrollReset"in Ue?Ue.preventScrollReset===!0:void 0,Ye=(Ue&&Ue.unstable_flushSync)===!0,ot=wt({currentLocation:yn,nextLocation:rn,historyAction:xn});if(ot){ut(ot,{state:"blocked",location:rn,proceed(){ut(ot,{state:"proceeding",proceed:void 0,reset:void 0,location:rn}),Ve(Me,Ue)},reset(){let yt=new Map(A.blockers);yt.set(ot,bE),Pe({blockers:yt})}});return}return await et(xn,rn,{submission:Qt,pendingError:Hn,preventScrollReset:Qe,replace:Ue&&Ue.replace,enableViewTransition:Ue&&Ue.unstable_viewTransition,flushSync:Ye})}function Xe(){if(Ze(),Pe({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){et(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}et(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function et(Me,Ue,lt){L&&L.abort(),L=null,D=Me,Z=(lt&<.startUninterruptedRevalidation)===!0,jn(A.location,A.matches),B=(lt&<.preventScrollReset)===!0,F=(lt&<.enableViewTransition)===!0;let Nt=o||s,Qt=lt&<.overrideNavigation,Hn=Iy(Nt,Ue,l),yn=(lt&<.flushSync)===!0;if(!Hn){let yt=ec(404,{pathname:Ue.pathname}),{matches:Yn,route:pn}=YZ(Nt);Xt(),tt(Ue,{matches:Yn,loaderData:{},errors:{[pn.id]:yt}},{flushSync:yn});return}if(A.initialized&&!Q&&x9e(A.location,Ue)&&!(lt&<.submission&&Jc(lt.submission.formMethod))){tt(Ue,{matches:Hn},{flushSync:yn});return}L=new AbortController;let rn=vE(e.history,Ue,L.signal,lt&<.submission),Yt,xn;if(lt&<.pendingError)xn={[I2(Hn).route.id]:lt.pendingError};else if(lt&<.submission&&Jc(lt.submission.formMethod)){let yt=await dt(rn,Ue,lt.submission,Hn,{replace:lt.replace,flushSync:yn});if(yt.shortCircuited)return;Yt=yt.pendingActionData,xn=yt.pendingActionError,Qt=wN(Ue,lt.submission),yn=!1,rn=new Request(rn.url,{signal:rn.signal})}let{shortCircuited:Qe,loaderData:Ye,errors:ot}=await At(rn,Ue,Hn,Qt,lt&<.submission,lt&<.fetcherSubmission,lt&<.replace,lt&<.initialHydration===!0,yn,Yt,xn);Qe||(L=null,tt(Ue,Sa({matches:Hn},Yt?{actionData:Yt}:{},{loaderData:Ye,errors:ot})))}async function dt(Me,Ue,lt,Nt,Qt){Qt===void 0&&(Qt={}),Ze();let Hn=A9e(Ue,lt);Pe({navigation:Hn},{flushSync:Qt.flushSync===!0});let yn,rn=D8(Nt,Ue);if(!rn.route.action&&!rn.route.lazy)yn={type:va.error,error:ec(405,{method:Me.method,pathname:Ue.pathname,routeId:rn.route.id})};else if(yn=await yE("action",Me,rn,Nt,a,i,l,u.v7_relativeSplatPath),Me.signal.aborted)return{shortCircuited:!0};if(Pg(yn)){let Yt;return Qt&&Qt.replace!=null?Yt=Qt.replace:Yt=yn.location===A.location.pathname+A.location.search,await he(A,yn,{submission:lt,replace:Yt}),{shortCircuited:!0}}if(Dy(yn)){let Yt=I2(Nt,rn.route.id);return(Qt&&Qt.replace)!==!0&&(D=Ia.Push),{pendingActionData:{},pendingActionError:{[Yt.route.id]:yn.error}}}if(Ng(yn))throw ec(400,{type:"defer-action"});return{pendingActionData:{[rn.route.id]:yn.data}}}async function At(Me,Ue,lt,Nt,Qt,Hn,yn,rn,Yt,xn,Qe){let Ye=Nt||wN(Ue,Qt),ot=Qt||Hn||KZ(Ye),yt=o||s,[Yn,pn]=HZ(e.history,A,lt,ot,Ue,u.v7_partialHydration&&rn===!0,Q,H,J,ye,be,Te,yt,l,xn,Qe);if(Xt(Wn=>!(lt&<.some(ti=>ti.route.id===Wn))||Yn&&Yn.some(ti=>ti.route.id===Wn)),te=++X,Yn.length===0&&pn.length===0){let Wn=Wt();return tt(Ue,Sa({matches:lt,loaderData:{},errors:Qe||null},xn?{actionData:xn}:{},Wn?{fetchers:new Map(A.fetchers)}:{}),{flushSync:Yt}),{shortCircuited:!0}}if(!Z&&(!u.v7_partialHydration||!rn)){pn.forEach(ti=>{let qa=A.fetchers.get(ti.key),Fc=OE(void 0,qa?qa.data:void 0);A.fetchers.set(ti.key,Fc)});let Wn=xn||A.actionData;Pe(Sa({navigation:Ye},Wn?Object.keys(Wn).length===0?{actionData:null}:{actionData:Wn}:{},pn.length>0?{fetchers:new Map(A.fetchers)}:{}),{flushSync:Yt})}pn.forEach(Wn=>{K.has(Wn.key)&&$e(Wn.key),Wn.controller&&K.set(Wn.key,Wn.controller)});let Fn=()=>pn.forEach(Wn=>$e(Wn.key));L&&L.signal.addEventListener("abort",Fn);let{results:Pi,loaderResults:nt,fetcherResults:Be}=await je(A.matches,lt,Yn,pn,Me);if(Me.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",Fn),pn.forEach(Wn=>K.delete(Wn.key));let Dt=ZZ(Pi);if(Dt){if(Dt.idx>=Yn.length){let Wn=pn[Dt.idx-Yn.length].key;Te.add(Wn)}return await he(A,Dt.result,{replace:yn}),{shortCircuited:!0}}let{loaderData:en,errors:Vn}=qZ(A,lt,Yn,nt,Qe,pn,Be,Oe);Oe.forEach((Wn,ti)=>{Wn.subscribe(qa=>{(qa||Wn.done)&&Oe.delete(ti)})});let Zr=Wt(),Er=Kt(te),In=Zr||Er||pn.length>0;return Sa({loaderData:en,errors:Vn},In?{fetchers:new Map(A.fetchers)}:{})}function Je(Me,Ue,lt,Nt){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");K.has(Me)&&$e(Me);let Qt=(Nt&&Nt.unstable_flushSync)===!0,Hn=o||s,yn=R8(A.location,A.matches,l,u.v7_prependBasename,lt,u.v7_relativeSplatPath,Ue,Nt==null?void 0:Nt.relative),rn=Iy(Hn,yn,l);if(!rn){fe(Me,Ue,ec(404,{pathname:yn}),{flushSync:Qt});return}let{path:Yt,submission:xn,error:Qe}=jZ(u.v7_normalizeFormMethod,!0,yn,Nt);if(Qe){fe(Me,Ue,Qe,{flushSync:Qt});return}let Ye=D8(rn,Yt);if(B=(Nt&&Nt.preventScrollReset)===!0,xn&&Jc(xn.formMethod)){pe(Me,Ue,Yt,Ye,rn,Qt,xn);return}be.set(Me,{routeId:Ue,path:Yt}),le(Me,Ue,Yt,Ye,rn,Qt,xn)}async function pe(Me,Ue,lt,Nt,Qt,Hn,yn){if(Ze(),be.delete(Me),!Nt.route.action&&!Nt.route.lazy){let ti=ec(405,{method:yn.formMethod,pathname:lt,routeId:Ue});fe(Me,Ue,ti,{flushSync:Hn});return}let rn=A.fetchers.get(Me);We(Me,_9e(yn,rn),{flushSync:Hn});let Yt=new AbortController,xn=vE(e.history,lt,Yt.signal,yn);K.set(Me,Yt);let Qe=X,Ye=await yE("action",xn,Nt,Qt,a,i,l,u.v7_relativeSplatPath);if(xn.signal.aborted){K.get(Me)===Yt&&K.delete(Me);return}if(u.v7_fetcherPersist&&ye.has(Me)){if(Pg(Ye)||Dy(Ye)){We(Me,em(void 0));return}}else{if(Pg(Ye))if(K.delete(Me),te>Qe){We(Me,em(void 0));return}else return Te.add(Me),We(Me,OE(yn)),he(A,Ye,{fetcherSubmission:yn});if(Dy(Ye)){fe(Me,Ue,Ye.error);return}}if(Ng(Ye))throw ec(400,{type:"defer-action"});let ot=A.navigation.location||A.location,yt=vE(e.history,ot,Yt.signal),Yn=o||s,pn=A.navigation.state!=="idle"?Iy(Yn,A.navigation.location,l):A.matches;Rr(pn,"Didn't find any matches after fetcher action");let Fn=++X;z.set(Me,Fn);let Pi=OE(yn,Ye.data);A.fetchers.set(Me,Pi);let[nt,Be]=HZ(e.history,A,pn,yn,ot,!1,Q,H,J,ye,be,Te,Yn,l,{[Nt.route.id]:Ye.data},void 0);Be.filter(ti=>ti.key!==Me).forEach(ti=>{let qa=ti.key,Fc=A.fetchers.get(qa),kp=OE(void 0,Fc?Fc.data:void 0);A.fetchers.set(qa,kp),K.has(qa)&&$e(qa),ti.controller&&K.set(qa,ti.controller)}),Pe({fetchers:new Map(A.fetchers)});let Dt=()=>Be.forEach(ti=>$e(ti.key));Yt.signal.addEventListener("abort",Dt);let{results:en,loaderResults:Vn,fetcherResults:Zr}=await je(A.matches,pn,nt,Be,yt);if(Yt.signal.aborted)return;Yt.signal.removeEventListener("abort",Dt),z.delete(Me),K.delete(Me),Be.forEach(ti=>K.delete(ti.key));let Er=ZZ(en);if(Er){if(Er.idx>=nt.length){let ti=Be[Er.idx-nt.length].key;Te.add(ti)}return he(A,Er.result)}let{loaderData:In,errors:Wn}=qZ(A,A.matches,nt,Vn,void 0,Be,Zr,Oe);if(A.fetchers.has(Me)){let ti=em(Ye.data);A.fetchers.set(Me,ti)}Kt(Fn),A.navigation.state==="loading"&&Fn>te?(Rr(D,"Expected pending action"),L&&L.abort(),tt(A.navigation.location,{matches:pn,loaderData:In,errors:Wn,fetchers:new Map(A.fetchers)})):(Pe({errors:Wn,loaderData:GZ(A.loaderData,In,pn,Wn),fetchers:new Map(A.fetchers)}),Q=!1)}async function le(Me,Ue,lt,Nt,Qt,Hn,yn){let rn=A.fetchers.get(Me);We(Me,OE(yn,rn?rn.data:void 0),{flushSync:Hn});let Yt=new AbortController,xn=vE(e.history,lt,Yt.signal);K.set(Me,Yt);let Qe=X,Ye=await yE("loader",xn,Nt,Qt,a,i,l,u.v7_relativeSplatPath);if(Ng(Ye)&&(Ye=await Lle(Ye,xn.signal,!0)||Ye),K.get(Me)===Yt&&K.delete(Me),!xn.signal.aborted){if(ye.has(Me)){We(Me,em(void 0));return}if(Pg(Ye))if(te>Qe){We(Me,em(void 0));return}else{Te.add(Me),await he(A,Ye);return}if(Dy(Ye)){fe(Me,Ue,Ye.error);return}Rr(!Ng(Ye),"Unhandled fetcher deferred data"),We(Me,em(Ye.data))}}async function he(Me,Ue,lt){let{submission:Nt,fetcherSubmission:Qt,replace:Hn}=lt===void 0?{}:lt;Ue.revalidate&&(Q=!0);let yn=Pw(Me.location,Ue.location,{_isRedirect:!0});if(Rr(yn,"Expected a location on the redirect navigation"),n){let ot=!1;if(Ue.reloadDocument)ot=!0;else if(Dle.test(Ue.location)){const yt=e.history.createURL(Ue.location);ot=yt.origin!==t.location.origin||lT(yt.pathname,l)==null}if(ot){Hn?t.location.replace(Ue.location):t.location.assign(Ue.location);return}}L=null;let rn=Hn===!0?Ia.Replace:Ia.Push,{formMethod:Yt,formAction:xn,formEncType:Qe}=Me.navigation;!Nt&&!Qt&&Yt&&xn&&Qe&&(Nt=KZ(Me.navigation));let Ye=Nt||Qt;if(g9e.has(Ue.status)&&Ye&&Jc(Ye.formMethod))await et(rn,yn,{submission:Sa({},Ye,{formAction:Ue.location}),preventScrollReset:B});else{let ot=wN(yn,Nt);await et(rn,yn,{overrideNavigation:ot,fetcherSubmission:Qt,preventScrollReset:B})}}async function je(Me,Ue,lt,Nt,Qt){let Hn=await Promise.all([...lt.map(Yt=>yE("loader",Qt,Yt,Ue,a,i,l,u.v7_relativeSplatPath)),...Nt.map(Yt=>Yt.matches&&Yt.match&&Yt.controller?yE("loader",vE(e.history,Yt.path,Yt.controller.signal),Yt.match,Yt.matches,a,i,l,u.v7_relativeSplatPath):{type:va.error,error:ec(404,{pathname:Yt.path})})]),yn=Hn.slice(0,lt.length),rn=Hn.slice(lt.length);return await Promise.all([XZ(Me,lt,yn,yn.map(()=>Qt.signal),!1,A.loaderData),XZ(Me,Nt.map(Yt=>Yt.match),rn,Nt.map(Yt=>Yt.controller?Yt.controller.signal:null),!0)]),{results:Hn,loaderResults:yn,fetcherResults:rn}}function Ze(){Q=!0,H.push(...Xt()),be.forEach((Me,Ue)=>{K.has(Ue)&&(J.push(Ue),$e(Ue))})}function We(Me,Ue,lt){lt===void 0&&(lt={}),A.fetchers.set(Me,Ue),Pe({fetchers:new Map(A.fetchers)},{flushSync:(lt&<.flushSync)===!0})}function fe(Me,Ue,lt,Nt){Nt===void 0&&(Nt={});let Qt=I2(A.matches,Ue);ve(Me),Pe({errors:{[Qt.route.id]:lt},fetchers:new Map(A.fetchers)},{flushSync:(Nt&&Nt.flushSync)===!0})}function xe(Me){return u.v7_fetcherPersist&&(ee.set(Me,(ee.get(Me)||0)+1),ye.has(Me)&&ye.delete(Me)),A.fetchers.get(Me)||b9e}function ve(Me){let Ue=A.fetchers.get(Me);K.has(Me)&&!(Ue&&Ue.state==="loading"&&z.has(Me))&&$e(Me),be.delete(Me),z.delete(Me),Te.delete(Me),ye.delete(Me),A.fetchers.delete(Me)}function De(Me){if(u.v7_fetcherPersist){let Ue=(ee.get(Me)||0)-1;Ue<=0?(ee.delete(Me),ye.add(Me)):ee.set(Me,Ue)}else ve(Me);Pe({fetchers:new Map(A.fetchers)})}function $e(Me){let Ue=K.get(Me);Rr(Ue,"Expected fetch controller: "+Me),Ue.abort(),K.delete(Me)}function vt(Me){for(let Ue of Me){let lt=xe(Ue),Nt=em(lt.data);A.fetchers.set(Ue,Nt)}}function Wt(){let Me=[],Ue=!1;for(let lt of Te){let Nt=A.fetchers.get(lt);Rr(Nt,"Expected fetcher: "+lt),Nt.state==="loading"&&(Te.delete(lt),Me.push(lt),Ue=!0)}return vt(Me),Ue}function Kt(Me){let Ue=[];for(let[lt,Nt]of z)if(Nt0}function gt(Me,Ue){let lt=A.blockers.get(Me)||bE;return ie.get(Me)!==Ue&&ie.set(Me,Ue),lt}function Gt(Me){A.blockers.delete(Me),ie.delete(Me)}function ut(Me,Ue){let lt=A.blockers.get(Me)||bE;Rr(lt.state==="unblocked"&&Ue.state==="blocked"||lt.state==="blocked"&&Ue.state==="blocked"||lt.state==="blocked"&&Ue.state==="proceeding"||lt.state==="blocked"&&Ue.state==="unblocked"||lt.state==="proceeding"&&Ue.state==="unblocked","Invalid blocker state transition: "+lt.state+" -> "+Ue.state);let Nt=new Map(A.blockers);Nt.set(Me,Ue),Pe({blockers:Nt})}function wt(Me){let{currentLocation:Ue,nextLocation:lt,historyAction:Nt}=Me;if(ie.size===0)return;ie.size>1&&d1(!1,"A router only supports one blocker at a time");let Qt=Array.from(ie.entries()),[Hn,yn]=Qt[Qt.length-1],rn=A.blockers.get(Hn);if(!(rn&&rn.state==="proceeding")&&yn({currentLocation:Ue,nextLocation:lt,historyAction:Nt}))return Hn}function Xt(Me){let Ue=[];return Oe.forEach((lt,Nt)=>{(!Me||Me(Nt))&&(lt.cancel(),Ue.push(Nt),Oe.delete(Nt))}),Ue}function Ln(Me,Ue,lt){if(h=Me,b=Ue,g=lt||null,!S&&A.navigation===EN){S=!0;let Nt=ar(A.location,A.matches);Nt!=null&&Pe({restoreScrollPosition:Nt})}return()=>{h=null,b=null,g=null}}function $n(Me,Ue){return g&&g(Me,Ue.map(Nt=>QLe(Nt,A.loaderData)))||Me.key}function jn(Me,Ue){if(h&&b){let lt=$n(Me,Ue);h[lt]=b()}}function ar(Me,Ue){if(h){let lt=$n(Me,Ue),Nt=h[lt];if(typeof Nt=="number")return Nt}return null}function Ur(Me){a={},o=_8(Me,i,void 0,a)}return R={get basename(){return l},get future(){return u},get state(){return A},get routes(){return s},get window(){return t},initialize:Ie,subscribe:st,enableScrollRestoration:Ln,navigate:Ve,fetch:Je,revalidate:Xe,createHref:Me=>e.history.createHref(Me),encodeLocation:Me=>e.history.encodeLocation(Me),getFetcher:xe,deleteFetcher:De,dispose:qe,getBlocker:gt,deleteBlocker:Gt,_internalFetchControllers:K,_internalActiveDeferreds:Oe,_internalSetRoutes:Ur},R}function O9e(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function R8(e,t,n,r,i,a,s,o){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let c=SF(i||".",OF(l,a),lT(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!xF(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:jm([n,c.pathname])),oT(c)}function jZ(e,t,n,r){if(!r||!O9e(r))return{path:n};if(r.formMethod&&!C9e(r.formMethod))return{path:n,error:ec(405,{method:r.formMethod})};let i=()=>({path:n,error:ec(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=Mle(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Jc(s))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[S,E]=b;return""+g+S+"="+E+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!Jc(s))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}Rr(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=I8(r.formData),u=r.formData;else if(r.body instanceof FormData)l=I8(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=QZ(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=QZ(l)}catch{return i()}let c={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Jc(c.formMethod))return{path:n,submission:c};let f=yp(n);return t&&f.search&&xF(f.search)&&l.append("index",""),f.search="?"+l,{path:oT(f),submission:c}}function S9e(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function HZ(e,t,n,r,i,a,s,o,l,u,c,f,h,g,b,S){let E=S?Object.values(S)[0]:b?Object.values(b)[0]:void 0,w=e.createURL(t.location),x=e.createURL(i),k=S?Object.keys(S)[0]:void 0,R=S9e(n,k).filter((D,B)=>{let{route:L}=D;if(L.lazy)return!0;if(L.loader==null)return!1;if(a)return L.loader.hydrate?!0:t.loaderData[L.id]===void 0&&(!t.errors||t.errors[L.id]===void 0);if(E9e(t.loaderData,t.matches[B],D)||o.some(V=>V===D.route.id))return!0;let F=t.matches[B],W=D;return VZ(D,Sa({currentUrl:w,currentParams:F.params,nextUrl:x,nextParams:W.params},r,{actionResult:E,defaultShouldRevalidate:s||w.pathname+w.search===x.pathname+x.search||w.search!==x.search||Ple(F,W)}))}),A=[];return c.forEach((D,B)=>{if(a||!n.some(Z=>Z.route.id===D.routeId)||u.has(B))return;let L=Iy(h,D.path,g);if(!L){A.push({key:B,routeId:D.routeId,path:D.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(B),W=D8(L,D.path),V=!1;f.has(B)?V=!1:l.includes(B)?V=!0:F&&F.state!=="idle"&&F.data===void 0?V=s:V=VZ(W,Sa({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:s})),V&&A.push({key:B,routeId:D.routeId,path:D.path,matches:L,match:W,controller:new AbortController})}),[R,A]}function E9e(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Ple(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function VZ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function WZ(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Rr(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";d1(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!VLe.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,Sa({},t(i),{lazy:void 0}))}async function yE(e,t,n,r,i,a,s,o,l){l===void 0&&(l={});let u,c,f,h=S=>{let E,w=new Promise((x,k)=>E=k);return f=()=>E(),t.signal.addEventListener("abort",f),Promise.race([S({request:t,params:n.params,context:l.requestContext}),w])};try{let S=n.route[e];if(n.route.lazy)if(S){let E,w=await Promise.all([h(S).catch(x=>{E=x}),WZ(n.route,a,i)]);if(E)throw E;c=w[0]}else if(await WZ(n.route,a,i),S=n.route[e],S)c=await h(S);else if(e==="action"){let E=new URL(t.url),w=E.pathname+E.search;throw ec(405,{method:t.method,pathname:w,routeId:n.route.id})}else return{type:va.data,data:void 0};else if(S)c=await h(S);else{let E=new URL(t.url),w=E.pathname+E.search;throw ec(404,{pathname:w})}Rr(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(S){u=va.error,c=S}finally{f&&t.signal.removeEventListener("abort",f)}if(k9e(c)){let S=c.status;if(m9e.has(S)){let w=c.headers.get("Location");if(Rr(w,"Redirects returned/thrown from loaders/actions must have a Location header"),!Dle.test(w))w=R8(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,w,o);else if(!l.isStaticRequest){let x=new URL(t.url),k=w.startsWith("//")?new URL(x.protocol+w):new URL(w),C=lT(k.pathname,s)!=null;k.origin===x.origin&&C&&(w=k.pathname+k.search+k.hash)}if(l.isStaticRequest)throw c.headers.set("Location",w),c;return{type:va.redirect,status:S,location:w,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===va.error?va.error:va.data,response:c};let E;try{let w=c.headers.get("Content-Type");w&&/\bapplication\/json\b/.test(w)?c.body==null?E=null:E=await c.json():E=await c.text()}catch(w){return{type:va.error,error:w}}return u===va.error?{type:u,error:new EF(S,c.statusText,E),headers:c.headers}:{type:va.data,data:E,statusCode:c.status,headers:c.headers}}if(u===va.error)return{type:u,error:c};if(T9e(c)){var g,b;return{type:va.deferred,deferredData:c,statusCode:(g=c.init)==null?void 0:g.status,headers:((b=c.init)==null?void 0:b.headers)&&new Headers(c.init.headers)}}return{type:va.data,data:c}}function vE(e,t,n,r){let i=e.createURL(Mle(t)).toString(),a={signal:n};if(r&&Jc(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=I8(r.formData):a.body=r.formData}return new Request(i,a)}function I8(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function QZ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function w9e(e,t,n,r,i){let a={},s=null,o,l=!1,u={};return n.forEach((c,f)=>{let h=t[f].route.id;if(Rr(!Pg(c),"Cannot handle redirect results in processLoaderData"),Dy(c)){let g=I2(e,h),b=c.error;r&&(b=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=b),a[h]=void 0,l||(l=!0,o=wF(c.error)?c.error.status:500),c.headers&&(u[h]=c.headers)}else Ng(c)?(i.set(h,c.deferredData),a[h]=c.deferredData.data):a[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(o=c.statusCode),c.headers&&(u[h]=c.headers)}),r&&(s=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:u}}function qZ(e,t,n,r,i,a,s,o){let{loaderData:l,errors:u}=w9e(t,n,r,i,o);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function YZ(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ec(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,s="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?o="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?o="defer() is not supported in actions":a==="invalid-body"&&(o="Unable to encode submission body")):e===403?(s="Forbidden",o='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",o='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?o="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(o='Invalid request method "'+i.toUpperCase()+'"')),new EF(e||500,s,new Error(o),!0)}function ZZ(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Pg(n))return{result:n,idx:t}}}function Mle(e){let t=typeof e=="string"?yp(e):e;return oT(Sa({},t,{hash:""}))}function x9e(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ng(e){return e.type===va.deferred}function Dy(e){return e.type===va.error}function Pg(e){return(e&&e.type)===va.redirect}function T9e(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function k9e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function C9e(e){return p9e.has(e.toLowerCase())}function Jc(e){return f9e.has(e.toLowerCase())}async function XZ(e,t,n,r,i,a){for(let s=0;sf.route.id===l.route.id),c=u!=null&&!Ple(u,l)&&(a&&a[l.route.id])!==void 0;if(Ng(o)&&(i||c)){let f=r[s];Rr(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Lle(o,f,i).then(h=>{h&&(n[s]=h||n[s])})}}}async function Lle(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:va.data,data:e.deferredData.unwrappedData}}catch(i){return{type:va.error,error:i}}return{type:va.data,data:e.deferredData.data}}}function xF(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function D8(e,t){let n=typeof t=="string"?yp(t).search:t.search;if(e[e.length-1].route.index&&xF(n||""))return e[e.length-1];let r=Rle(e);return r[r.length-1]}function KZ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function wN(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function A9e(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function OE(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function _9e(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function em(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function R9e(e,t){try{let n=e.sessionStorage.getItem(Nle);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function I9e(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Nle,JSON.stringify(n))}catch(r){d1(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function d1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GLe(){return Math.random().toString(36).substr(2,8)}function zZ(e,t){return{usr:e.state,key:e.key,idx:t}}function Pw(e,t,n,r){return n===void 0&&(n=null),Sa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vp(t):t,{state:n,key:t&&t.key||r||GLe()})}function lT(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function vp(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function YLe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=Ia.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Sa({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){o=Ia.Pop;let w=c(),E=w==null?null:w-u;u=w,l&&l({action:o,location:S.location,delta:E})}function h(w,E){o=Ia.Push;let x=Pw(S.location,w,E);n&&n(x,w),u=c()+1;let k=zZ(x,u),C=S.createHref(x);try{s.pushState(k,"",C)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(C)}a&&l&&l({action:o,location:S.location,delta:1})}function g(w,E){o=Ia.Replace;let x=Pw(S.location,w,E);n&&n(x,w),u=c();let k=zZ(x,u),C=S.createHref(x);s.replaceState(k,"",C),a&&l&&l({action:o,location:S.location,delta:0})}function b(w){let E=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof w=="string"?w:lT(w);return Rr(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 e(i,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(UZ,f),l=w,()=>{i.removeEventListener(UZ,f),l=null}},createHref(w){return t(i,w)},createURL:b,encodeLocation(w){let E=b(w);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:h,replace:g,go(w){return s.go(w)}};return S}var va;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(va||(va={}));const ZLe=new Set(["lazy","caseSensitive","path","id","index","children"]);function XLe(e){return e.index===!0}function R8(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,a],o=typeof i.id=="string"?i.id:s.join("-");if(Rr(i.index!==!0||!i.children,"Cannot specify children on an index route"),Rr(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),XLe(i)){let l=Sa({},i,t(i),{id:o});return r[o]=l,l}else{let l=Sa({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=R8(i.children,t,s,r)),l}})}function Iy(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?vp(t):t,i=uT(r.pathname||"/",n);if(i==null)return null;let a=Ale(e);JLe(a);let s=null;for(let o=0;s==null&&o{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(Rr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Hm([r,l.relativePath]),c=n.concat(l);a.children&&a.children.length>0&&(Rr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ale(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:s9e(u,a.index),routesMeta:c})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of _le(a.path))i(a,s,l)}),t}function _le(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=_le(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function JLe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:o9e(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const e9e=/^:[\w-]+$/,t9e=3,n9e=2,r9e=1,i9e=10,a9e=-2,jZ=e=>e==="*";function s9e(e,t){let n=e.split("/"),r=n.length;return n.some(jZ)&&(r+=a9e),t&&(r+=n9e),n.filter(i=>!jZ(i)).reduce((i,a)=>i+(e9e.test(a)?t9e:a===""?r9e:i9e),r)}function o9e(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function l9e(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let s=0;s{let{paramName:h,isOptional:g}=c;if(h==="*"){let S=o[f]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const b=o[f];return g&&!b?u[h]=void 0:u[h]=f9e(b||"",h),u},{}),pathname:a,pathnameBase:s,pattern:e}}function c9e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),d1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function d9e(e){try{return decodeURI(e)}catch(t){return d1(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function f9e(e,t){try{return decodeURIComponent(e)}catch(n){return d1(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function uT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function h9e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?vp(e):e;return{pathname:n?n.startsWith("/")?n:p9e(n,t):t,search:g9e(r),hash:b9e(i)}}function p9e(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function wN(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Rle(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function SF(e,t){let n=Rle(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function EF(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=vp(e):(i=Sa({},e),Rr(!i.pathname||!i.pathname.includes("?"),wN("?","pathname","search",i)),Rr(!i.pathname||!i.pathname.includes("#"),wN("#","pathname","hash",i)),Rr(!i.search||!i.search.includes("#"),wN("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}o=f>=0?t[f]:"/"}let l=h9e(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Hm=e=>e.join("/").replace(/\/\/+/g,"/"),m9e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),g9e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,b9e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class wF{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function xF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ile=["post","put","patch","delete"],y9e=new Set(Ile),v9e=["get",...Ile],O9e=new Set(v9e),S9e=new Set([301,302,303,307,308]),E9e=new Set([307,308]),xN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},w9e={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Dle=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,x9e=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Nle="remix-router-transitions";function T9e(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Rr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let Me=e.detectErrorBoundary;i=Ue=>({hasErrorBoundary:Me(Ue)})}else i=x9e;let a={},s=R8(e.routes,i,void 0,a),o,l=e.basename||"/",u=Sa({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,f=new Set,h=null,g=null,b=null,S=e.hydrationData!=null,w=Iy(s,e.history.location,l),E=null;if(w==null){let Me=ec(404,{pathname:e.history.location.pathname}),{matches:Ue,route:lt}=ZZ(s);w=Ue,E={[lt.id]:Me}}let x,k=w.some(Me=>Me.route.lazy),C=w.some(Me=>Me.route.loader);if(k)x=!1;else if(!C)x=!0;else if(u.v7_partialHydration){let Me=e.hydrationData?e.hydrationData.loaderData:null,Ue=e.hydrationData?e.hydrationData.errors:null;x=w.every(lt=>lt.route.loader&<.route.loader.hydrate!==!0&&(Me&&Me[lt.route.id]!==void 0||Ue&&Ue[lt.route.id]!==void 0))}else x=e.hydrationData!=null;let R,A={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:xN,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},D=Ia.Pop,B=!1,L,F=!1,W=new Map,V=null,Z=!1,Q=!1,H=[],J=[],K=new Map,X=0,te=-1,z=new Map,Te=new Set,be=new Map,ee=new Map,ye=new Set,Oe=new Map,ie=new Map,_e=!1;function Ie(){if(c=e.history.listen(Me=>{let{action:Ue,location:lt,delta:Nt}=Me;if(_e){_e=!1;return}d1(ie.size===0||Nt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Qt=wt({currentLocation:A.location,nextLocation:lt,historyAction:Ue});if(Qt&&Nt!=null){_e=!0,e.history.go(Nt*-1),ut(Qt,{state:"blocked",location:lt,proceed(){ut(Qt,{state:"proceeding",proceed:void 0,reset:void 0,location:lt}),e.history.go(Nt)},reset(){let Hn=new Map(A.blockers);Hn.set(Qt,bE),Pe({blockers:Hn})}});return}return et(Ue,lt)}),n){L9e(t,W);let Me=()=>$9e(t,W);t.addEventListener("pagehide",Me),V=()=>t.removeEventListener("pagehide",Me)}return A.initialized||et(Ia.Pop,A.location,{initialHydration:!0}),R}function qe(){c&&c(),V&&V(),f.clear(),L&&L.abort(),A.fetchers.forEach((Me,Ue)=>ve(Ue)),A.blockers.forEach((Me,Ue)=>Gt(Ue))}function st(Me){return f.add(Me),()=>f.delete(Me)}function Pe(Me,Ue){Ue===void 0&&(Ue={}),A=Sa({},A,Me);let lt=[],Nt=[];u.v7_fetcherPersist&&A.fetchers.forEach((Qt,Hn)=>{Qt.state==="idle"&&(ye.has(Hn)?Nt.push(Hn):lt.push(Hn))}),[...f].forEach(Qt=>Qt(A,{deletedFetchers:Nt,unstable_viewTransitionOpts:Ue.viewTransitionOpts,unstable_flushSync:Ue.flushSync===!0})),u.v7_fetcherPersist&&(lt.forEach(Qt=>A.fetchers.delete(Qt)),Nt.forEach(Qt=>ve(Qt)))}function tt(Me,Ue,lt){var Nt,Qt;let{flushSync:Hn}=lt===void 0?{}:lt,yn=A.actionData!=null&&A.navigation.formMethod!=null&&ed(A.navigation.formMethod)&&A.navigation.state==="loading"&&((Nt=Me.state)==null?void 0:Nt._isRedirect)!==!0,rn;Ue.actionData?Object.keys(Ue.actionData).length>0?rn=Ue.actionData:rn=null:yn?rn=A.actionData:rn=null;let Yt=Ue.loaderData?YZ(A.loaderData,Ue.loaderData,Ue.matches||[],Ue.errors):A.loaderData,xn=A.blockers;xn.size>0&&(xn=new Map(xn),xn.forEach((ot,yt)=>xn.set(yt,bE)));let Qe=B===!0||A.navigation.formMethod!=null&&ed(A.navigation.formMethod)&&((Qt=Me.state)==null?void 0:Qt._isRedirect)!==!0;o&&(s=o,o=void 0),Z||D===Ia.Pop||(D===Ia.Push?e.history.push(Me,Me.state):D===Ia.Replace&&e.history.replace(Me,Me.state));let Ye;if(D===Ia.Pop){let ot=W.get(A.location.pathname);ot&&ot.has(Me.pathname)?Ye={currentLocation:A.location,nextLocation:Me}:W.has(Me.pathname)&&(Ye={currentLocation:Me,nextLocation:A.location})}else if(F){let ot=W.get(A.location.pathname);ot?ot.add(Me.pathname):(ot=new Set([Me.pathname]),W.set(A.location.pathname,ot)),Ye={currentLocation:A.location,nextLocation:Me}}Pe(Sa({},Ue,{actionData:rn,loaderData:Yt,historyAction:D,location:Me,initialized:!0,navigation:xN,revalidation:"idle",restoreScrollPosition:ar(Me,Ue.matches||A.matches),preventScrollReset:Qe,blockers:xn}),{viewTransitionOpts:Ye,flushSync:Hn===!0}),D=Ia.Pop,B=!1,F=!1,Z=!1,Q=!1,H=[],J=[]}async function Ve(Me,Ue){if(typeof Me=="number"){e.history.go(Me);return}let lt=I8(A.location,A.matches,l,u.v7_prependBasename,Me,u.v7_relativeSplatPath,Ue==null?void 0:Ue.fromRouteId,Ue==null?void 0:Ue.relative),{path:Nt,submission:Qt,error:Hn}=HZ(u.v7_normalizeFormMethod,!1,lt,Ue),yn=A.location,rn=Pw(A.location,Nt,Ue&&Ue.state);rn=Sa({},rn,e.history.encodeLocation(rn));let Yt=Ue&&Ue.replace!=null?Ue.replace:void 0,xn=Ia.Push;Yt===!0?xn=Ia.Replace:Yt===!1||Qt!=null&&ed(Qt.formMethod)&&Qt.formAction===A.location.pathname+A.location.search&&(xn=Ia.Replace);let Qe=Ue&&"preventScrollReset"in Ue?Ue.preventScrollReset===!0:void 0,Ye=(Ue&&Ue.unstable_flushSync)===!0,ot=wt({currentLocation:yn,nextLocation:rn,historyAction:xn});if(ot){ut(ot,{state:"blocked",location:rn,proceed(){ut(ot,{state:"proceeding",proceed:void 0,reset:void 0,location:rn}),Ve(Me,Ue)},reset(){let yt=new Map(A.blockers);yt.set(ot,bE),Pe({blockers:yt})}});return}return await et(xn,rn,{submission:Qt,pendingError:Hn,preventScrollReset:Qe,replace:Ue&&Ue.replace,enableViewTransition:Ue&&Ue.unstable_viewTransition,flushSync:Ye})}function Xe(){if(Ze(),Pe({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){et(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}et(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function et(Me,Ue,lt){L&&L.abort(),L=null,D=Me,Z=(lt&<.startUninterruptedRevalidation)===!0,jn(A.location,A.matches),B=(lt&<.preventScrollReset)===!0,F=(lt&<.enableViewTransition)===!0;let Nt=o||s,Qt=lt&<.overrideNavigation,Hn=Iy(Nt,Ue,l),yn=(lt&<.flushSync)===!0;if(!Hn){let yt=ec(404,{pathname:Ue.pathname}),{matches:Yn,route:pn}=ZZ(Nt);Xt(),tt(Ue,{matches:Yn,loaderData:{},errors:{[pn.id]:yt}},{flushSync:yn});return}if(A.initialized&&!Q&&R9e(A.location,Ue)&&!(lt&<.submission&&ed(lt.submission.formMethod))){tt(Ue,{matches:Hn},{flushSync:yn});return}L=new AbortController;let rn=vE(e.history,Ue,L.signal,lt&<.submission),Yt,xn;if(lt&<.pendingError)xn={[I2(Hn).route.id]:lt.pendingError};else if(lt&<.submission&&ed(lt.submission.formMethod)){let yt=await ft(rn,Ue,lt.submission,Hn,{replace:lt.replace,flushSync:yn});if(yt.shortCircuited)return;Yt=yt.pendingActionData,xn=yt.pendingActionError,Qt=TN(Ue,lt.submission),yn=!1,rn=new Request(rn.url,{signal:rn.signal})}let{shortCircuited:Qe,loaderData:Ye,errors:ot}=await At(rn,Ue,Hn,Qt,lt&<.submission,lt&<.fetcherSubmission,lt&<.replace,lt&<.initialHydration===!0,yn,Yt,xn);Qe||(L=null,tt(Ue,Sa({matches:Hn},Yt?{actionData:Yt}:{},{loaderData:Ye,errors:ot})))}async function ft(Me,Ue,lt,Nt,Qt){Qt===void 0&&(Qt={}),Ze();let Hn=P9e(Ue,lt);Pe({navigation:Hn},{flushSync:Qt.flushSync===!0});let yn,rn=N8(Nt,Ue);if(!rn.route.action&&!rn.route.lazy)yn={type:va.error,error:ec(405,{method:Me.method,pathname:Ue.pathname,routeId:rn.route.id})};else if(yn=await yE("action",Me,rn,Nt,a,i,l,u.v7_relativeSplatPath),Me.signal.aborted)return{shortCircuited:!0};if(Pg(yn)){let Yt;return Qt&&Qt.replace!=null?Yt=Qt.replace:Yt=yn.location===A.location.pathname+A.location.search,await he(A,yn,{submission:lt,replace:Yt}),{shortCircuited:!0}}if(Dy(yn)){let Yt=I2(Nt,rn.route.id);return(Qt&&Qt.replace)!==!0&&(D=Ia.Push),{pendingActionData:{},pendingActionError:{[Yt.route.id]:yn.error}}}if(Ng(yn))throw ec(400,{type:"defer-action"});return{pendingActionData:{[rn.route.id]:yn.data}}}async function At(Me,Ue,lt,Nt,Qt,Hn,yn,rn,Yt,xn,Qe){let Ye=Nt||TN(Ue,Qt),ot=Qt||Hn||JZ(Ye),yt=o||s,[Yn,pn]=VZ(e.history,A,lt,ot,Ue,u.v7_partialHydration&&rn===!0,Q,H,J,ye,be,Te,yt,l,xn,Qe);if(Xt(Wn=>!(lt&<.some(ti=>ti.route.id===Wn))||Yn&&Yn.some(ti=>ti.route.id===Wn)),te=++X,Yn.length===0&&pn.length===0){let Wn=Wt();return tt(Ue,Sa({matches:lt,loaderData:{},errors:Qe||null},xn?{actionData:xn}:{},Wn?{fetchers:new Map(A.fetchers)}:{}),{flushSync:Yt}),{shortCircuited:!0}}if(!Z&&(!u.v7_partialHydration||!rn)){pn.forEach(ti=>{let qa=A.fetchers.get(ti.key),Bc=OE(void 0,qa?qa.data:void 0);A.fetchers.set(ti.key,Bc)});let Wn=xn||A.actionData;Pe(Sa({navigation:Ye},Wn?Object.keys(Wn).length===0?{actionData:null}:{actionData:Wn}:{},pn.length>0?{fetchers:new Map(A.fetchers)}:{}),{flushSync:Yt})}pn.forEach(Wn=>{K.has(Wn.key)&&$e(Wn.key),Wn.controller&&K.set(Wn.key,Wn.controller)});let Fn=()=>pn.forEach(Wn=>$e(Wn.key));L&&L.signal.addEventListener("abort",Fn);let{results:Pi,loaderResults:nt,fetcherResults:Be}=await je(A.matches,lt,Yn,pn,Me);if(Me.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",Fn),pn.forEach(Wn=>K.delete(Wn.key));let Dt=XZ(Pi);if(Dt){if(Dt.idx>=Yn.length){let Wn=pn[Dt.idx-Yn.length].key;Te.add(Wn)}return await he(A,Dt.result,{replace:yn}),{shortCircuited:!0}}let{loaderData:en,errors:Vn}=GZ(A,lt,Yn,nt,Qe,pn,Be,Oe);Oe.forEach((Wn,ti)=>{Wn.subscribe(qa=>{(qa||Wn.done)&&Oe.delete(ti)})});let Zr=Wt(),wr=Kt(te),In=Zr||wr||pn.length>0;return Sa({loaderData:en,errors:Vn},In?{fetchers:new Map(A.fetchers)}:{})}function Je(Me,Ue,lt,Nt){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");K.has(Me)&&$e(Me);let Qt=(Nt&&Nt.unstable_flushSync)===!0,Hn=o||s,yn=I8(A.location,A.matches,l,u.v7_prependBasename,lt,u.v7_relativeSplatPath,Ue,Nt==null?void 0:Nt.relative),rn=Iy(Hn,yn,l);if(!rn){fe(Me,Ue,ec(404,{pathname:yn}),{flushSync:Qt});return}let{path:Yt,submission:xn,error:Qe}=HZ(u.v7_normalizeFormMethod,!0,yn,Nt);if(Qe){fe(Me,Ue,Qe,{flushSync:Qt});return}let Ye=N8(rn,Yt);if(B=(Nt&&Nt.preventScrollReset)===!0,xn&&ed(xn.formMethod)){pe(Me,Ue,Yt,Ye,rn,Qt,xn);return}be.set(Me,{routeId:Ue,path:Yt}),le(Me,Ue,Yt,Ye,rn,Qt,xn)}async function pe(Me,Ue,lt,Nt,Qt,Hn,yn){if(Ze(),be.delete(Me),!Nt.route.action&&!Nt.route.lazy){let ti=ec(405,{method:yn.formMethod,pathname:lt,routeId:Ue});fe(Me,Ue,ti,{flushSync:Hn});return}let rn=A.fetchers.get(Me);We(Me,M9e(yn,rn),{flushSync:Hn});let Yt=new AbortController,xn=vE(e.history,lt,Yt.signal,yn);K.set(Me,Yt);let Qe=X,Ye=await yE("action",xn,Nt,Qt,a,i,l,u.v7_relativeSplatPath);if(xn.signal.aborted){K.get(Me)===Yt&&K.delete(Me);return}if(u.v7_fetcherPersist&&ye.has(Me)){if(Pg(Ye)||Dy(Ye)){We(Me,tm(void 0));return}}else{if(Pg(Ye))if(K.delete(Me),te>Qe){We(Me,tm(void 0));return}else return Te.add(Me),We(Me,OE(yn)),he(A,Ye,{fetcherSubmission:yn});if(Dy(Ye)){fe(Me,Ue,Ye.error);return}}if(Ng(Ye))throw ec(400,{type:"defer-action"});let ot=A.navigation.location||A.location,yt=vE(e.history,ot,Yt.signal),Yn=o||s,pn=A.navigation.state!=="idle"?Iy(Yn,A.navigation.location,l):A.matches;Rr(pn,"Didn't find any matches after fetcher action");let Fn=++X;z.set(Me,Fn);let Pi=OE(yn,Ye.data);A.fetchers.set(Me,Pi);let[nt,Be]=VZ(e.history,A,pn,yn,ot,!1,Q,H,J,ye,be,Te,Yn,l,{[Nt.route.id]:Ye.data},void 0);Be.filter(ti=>ti.key!==Me).forEach(ti=>{let qa=ti.key,Bc=A.fetchers.get(qa),Cp=OE(void 0,Bc?Bc.data:void 0);A.fetchers.set(qa,Cp),K.has(qa)&&$e(qa),ti.controller&&K.set(qa,ti.controller)}),Pe({fetchers:new Map(A.fetchers)});let Dt=()=>Be.forEach(ti=>$e(ti.key));Yt.signal.addEventListener("abort",Dt);let{results:en,loaderResults:Vn,fetcherResults:Zr}=await je(A.matches,pn,nt,Be,yt);if(Yt.signal.aborted)return;Yt.signal.removeEventListener("abort",Dt),z.delete(Me),K.delete(Me),Be.forEach(ti=>K.delete(ti.key));let wr=XZ(en);if(wr){if(wr.idx>=nt.length){let ti=Be[wr.idx-nt.length].key;Te.add(ti)}return he(A,wr.result)}let{loaderData:In,errors:Wn}=GZ(A,A.matches,nt,Vn,void 0,Be,Zr,Oe);if(A.fetchers.has(Me)){let ti=tm(Ye.data);A.fetchers.set(Me,ti)}Kt(Fn),A.navigation.state==="loading"&&Fn>te?(Rr(D,"Expected pending action"),L&&L.abort(),tt(A.navigation.location,{matches:pn,loaderData:In,errors:Wn,fetchers:new Map(A.fetchers)})):(Pe({errors:Wn,loaderData:YZ(A.loaderData,In,pn,Wn),fetchers:new Map(A.fetchers)}),Q=!1)}async function le(Me,Ue,lt,Nt,Qt,Hn,yn){let rn=A.fetchers.get(Me);We(Me,OE(yn,rn?rn.data:void 0),{flushSync:Hn});let Yt=new AbortController,xn=vE(e.history,lt,Yt.signal);K.set(Me,Yt);let Qe=X,Ye=await yE("loader",xn,Nt,Qt,a,i,l,u.v7_relativeSplatPath);if(Ng(Ye)&&(Ye=await Lle(Ye,xn.signal,!0)||Ye),K.get(Me)===Yt&&K.delete(Me),!xn.signal.aborted){if(ye.has(Me)){We(Me,tm(void 0));return}if(Pg(Ye))if(te>Qe){We(Me,tm(void 0));return}else{Te.add(Me),await he(A,Ye);return}if(Dy(Ye)){fe(Me,Ue,Ye.error);return}Rr(!Ng(Ye),"Unhandled fetcher deferred data"),We(Me,tm(Ye.data))}}async function he(Me,Ue,lt){let{submission:Nt,fetcherSubmission:Qt,replace:Hn}=lt===void 0?{}:lt;Ue.revalidate&&(Q=!0);let yn=Pw(Me.location,Ue.location,{_isRedirect:!0});if(Rr(yn,"Expected a location on the redirect navigation"),n){let ot=!1;if(Ue.reloadDocument)ot=!0;else if(Dle.test(Ue.location)){const yt=e.history.createURL(Ue.location);ot=yt.origin!==t.location.origin||uT(yt.pathname,l)==null}if(ot){Hn?t.location.replace(Ue.location):t.location.assign(Ue.location);return}}L=null;let rn=Hn===!0?Ia.Replace:Ia.Push,{formMethod:Yt,formAction:xn,formEncType:Qe}=Me.navigation;!Nt&&!Qt&&Yt&&xn&&Qe&&(Nt=JZ(Me.navigation));let Ye=Nt||Qt;if(E9e.has(Ue.status)&&Ye&&ed(Ye.formMethod))await et(rn,yn,{submission:Sa({},Ye,{formAction:Ue.location}),preventScrollReset:B});else{let ot=TN(yn,Nt);await et(rn,yn,{overrideNavigation:ot,fetcherSubmission:Qt,preventScrollReset:B})}}async function je(Me,Ue,lt,Nt,Qt){let Hn=await Promise.all([...lt.map(Yt=>yE("loader",Qt,Yt,Ue,a,i,l,u.v7_relativeSplatPath)),...Nt.map(Yt=>Yt.matches&&Yt.match&&Yt.controller?yE("loader",vE(e.history,Yt.path,Yt.controller.signal),Yt.match,Yt.matches,a,i,l,u.v7_relativeSplatPath):{type:va.error,error:ec(404,{pathname:Yt.path})})]),yn=Hn.slice(0,lt.length),rn=Hn.slice(lt.length);return await Promise.all([KZ(Me,lt,yn,yn.map(()=>Qt.signal),!1,A.loaderData),KZ(Me,Nt.map(Yt=>Yt.match),rn,Nt.map(Yt=>Yt.controller?Yt.controller.signal:null),!0)]),{results:Hn,loaderResults:yn,fetcherResults:rn}}function Ze(){Q=!0,H.push(...Xt()),be.forEach((Me,Ue)=>{K.has(Ue)&&(J.push(Ue),$e(Ue))})}function We(Me,Ue,lt){lt===void 0&&(lt={}),A.fetchers.set(Me,Ue),Pe({fetchers:new Map(A.fetchers)},{flushSync:(lt&<.flushSync)===!0})}function fe(Me,Ue,lt,Nt){Nt===void 0&&(Nt={});let Qt=I2(A.matches,Ue);ve(Me),Pe({errors:{[Qt.route.id]:lt},fetchers:new Map(A.fetchers)},{flushSync:(Nt&&Nt.flushSync)===!0})}function xe(Me){return u.v7_fetcherPersist&&(ee.set(Me,(ee.get(Me)||0)+1),ye.has(Me)&&ye.delete(Me)),A.fetchers.get(Me)||w9e}function ve(Me){let Ue=A.fetchers.get(Me);K.has(Me)&&!(Ue&&Ue.state==="loading"&&z.has(Me))&&$e(Me),be.delete(Me),z.delete(Me),Te.delete(Me),ye.delete(Me),A.fetchers.delete(Me)}function De(Me){if(u.v7_fetcherPersist){let Ue=(ee.get(Me)||0)-1;Ue<=0?(ee.delete(Me),ye.add(Me)):ee.set(Me,Ue)}else ve(Me);Pe({fetchers:new Map(A.fetchers)})}function $e(Me){let Ue=K.get(Me);Rr(Ue,"Expected fetch controller: "+Me),Ue.abort(),K.delete(Me)}function vt(Me){for(let Ue of Me){let lt=xe(Ue),Nt=tm(lt.data);A.fetchers.set(Ue,Nt)}}function Wt(){let Me=[],Ue=!1;for(let lt of Te){let Nt=A.fetchers.get(lt);Rr(Nt,"Expected fetcher: "+lt),Nt.state==="loading"&&(Te.delete(lt),Me.push(lt),Ue=!0)}return vt(Me),Ue}function Kt(Me){let Ue=[];for(let[lt,Nt]of z)if(Nt0}function gt(Me,Ue){let lt=A.blockers.get(Me)||bE;return ie.get(Me)!==Ue&&ie.set(Me,Ue),lt}function Gt(Me){A.blockers.delete(Me),ie.delete(Me)}function ut(Me,Ue){let lt=A.blockers.get(Me)||bE;Rr(lt.state==="unblocked"&&Ue.state==="blocked"||lt.state==="blocked"&&Ue.state==="blocked"||lt.state==="blocked"&&Ue.state==="proceeding"||lt.state==="blocked"&&Ue.state==="unblocked"||lt.state==="proceeding"&&Ue.state==="unblocked","Invalid blocker state transition: "+lt.state+" -> "+Ue.state);let Nt=new Map(A.blockers);Nt.set(Me,Ue),Pe({blockers:Nt})}function wt(Me){let{currentLocation:Ue,nextLocation:lt,historyAction:Nt}=Me;if(ie.size===0)return;ie.size>1&&d1(!1,"A router only supports one blocker at a time");let Qt=Array.from(ie.entries()),[Hn,yn]=Qt[Qt.length-1],rn=A.blockers.get(Hn);if(!(rn&&rn.state==="proceeding")&&yn({currentLocation:Ue,nextLocation:lt,historyAction:Nt}))return Hn}function Xt(Me){let Ue=[];return Oe.forEach((lt,Nt)=>{(!Me||Me(Nt))&&(lt.cancel(),Ue.push(Nt),Oe.delete(Nt))}),Ue}function Ln(Me,Ue,lt){if(h=Me,b=Ue,g=lt||null,!S&&A.navigation===xN){S=!0;let Nt=ar(A.location,A.matches);Nt!=null&&Pe({restoreScrollPosition:Nt})}return()=>{h=null,b=null,g=null}}function $n(Me,Ue){return g&&g(Me,Ue.map(Nt=>KLe(Nt,A.loaderData)))||Me.key}function jn(Me,Ue){if(h&&b){let lt=$n(Me,Ue);h[lt]=b()}}function ar(Me,Ue){if(h){let lt=$n(Me,Ue),Nt=h[lt];if(typeof Nt=="number")return Nt}return null}function Ur(Me){a={},o=R8(Me,i,void 0,a)}return R={get basename(){return l},get future(){return u},get state(){return A},get routes(){return s},get window(){return t},initialize:Ie,subscribe:st,enableScrollRestoration:Ln,navigate:Ve,fetch:Je,revalidate:Xe,createHref:Me=>e.history.createHref(Me),encodeLocation:Me=>e.history.encodeLocation(Me),getFetcher:xe,deleteFetcher:De,dispose:qe,getBlocker:gt,deleteBlocker:Gt,_internalFetchControllers:K,_internalActiveDeferreds:Oe,_internalSetRoutes:Ur},R}function k9e(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function I8(e,t,n,r,i,a,s,o){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let c=EF(i||".",SF(l,a),uT(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!TF(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Hm([n,c.pathname])),lT(c)}function HZ(e,t,n,r){if(!r||!k9e(r))return{path:n};if(r.formMethod&&!N9e(r.formMethod))return{path:n,error:ec(405,{method:r.formMethod})};let i=()=>({path:n,error:ec(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=Mle(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ed(s))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[S,w]=b;return""+g+S+"="+w+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!ed(s))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}Rr(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=D8(r.formData),u=r.formData;else if(r.body instanceof FormData)l=D8(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=qZ(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=qZ(l)}catch{return i()}let c={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ed(c.formMethod))return{path:n,submission:c};let f=vp(n);return t&&f.search&&TF(f.search)&&l.append("index",""),f.search="?"+l,{path:lT(f),submission:c}}function C9e(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function VZ(e,t,n,r,i,a,s,o,l,u,c,f,h,g,b,S){let w=S?Object.values(S)[0]:b?Object.values(b)[0]:void 0,E=e.createURL(t.location),x=e.createURL(i),k=S?Object.keys(S)[0]:void 0,R=C9e(n,k).filter((D,B)=>{let{route:L}=D;if(L.lazy)return!0;if(L.loader==null)return!1;if(a)return L.loader.hydrate?!0:t.loaderData[L.id]===void 0&&(!t.errors||t.errors[L.id]===void 0);if(A9e(t.loaderData,t.matches[B],D)||o.some(V=>V===D.route.id))return!0;let F=t.matches[B],W=D;return WZ(D,Sa({currentUrl:E,currentParams:F.params,nextUrl:x,nextParams:W.params},r,{actionResult:w,defaultShouldRevalidate:s||E.pathname+E.search===x.pathname+x.search||E.search!==x.search||Ple(F,W)}))}),A=[];return c.forEach((D,B)=>{if(a||!n.some(Z=>Z.route.id===D.routeId)||u.has(B))return;let L=Iy(h,D.path,g);if(!L){A.push({key:B,routeId:D.routeId,path:D.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(B),W=N8(L,D.path),V=!1;f.has(B)?V=!1:l.includes(B)?V=!0:F&&F.state!=="idle"&&F.data===void 0?V=s:V=WZ(W,Sa({currentUrl:E,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),V&&A.push({key:B,routeId:D.routeId,path:D.path,matches:L,match:W,controller:new AbortController})}),[R,A]}function A9e(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Ple(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function WZ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function QZ(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Rr(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";d1(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!ZLe.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,Sa({},t(i),{lazy:void 0}))}async function yE(e,t,n,r,i,a,s,o,l){l===void 0&&(l={});let u,c,f,h=S=>{let w,E=new Promise((x,k)=>w=k);return f=()=>w(),t.signal.addEventListener("abort",f),Promise.race([S({request:t,params:n.params,context:l.requestContext}),E])};try{let S=n.route[e];if(n.route.lazy)if(S){let w,E=await Promise.all([h(S).catch(x=>{w=x}),QZ(n.route,a,i)]);if(w)throw w;c=E[0]}else if(await QZ(n.route,a,i),S=n.route[e],S)c=await h(S);else if(e==="action"){let w=new URL(t.url),E=w.pathname+w.search;throw ec(405,{method:t.method,pathname:E,routeId:n.route.id})}else return{type:va.data,data:void 0};else if(S)c=await h(S);else{let w=new URL(t.url),E=w.pathname+w.search;throw ec(404,{pathname:E})}Rr(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(S){u=va.error,c=S}finally{f&&t.signal.removeEventListener("abort",f)}if(D9e(c)){let S=c.status;if(S9e.has(S)){let E=c.headers.get("Location");if(Rr(E,"Redirects returned/thrown from loaders/actions must have a Location header"),!Dle.test(E))E=I8(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,E,o);else if(!l.isStaticRequest){let x=new URL(t.url),k=E.startsWith("//")?new URL(x.protocol+E):new URL(E),C=uT(k.pathname,s)!=null;k.origin===x.origin&&C&&(E=k.pathname+k.search+k.hash)}if(l.isStaticRequest)throw c.headers.set("Location",E),c;return{type:va.redirect,status:S,location:E,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===va.error?va.error:va.data,response:c};let w;try{let E=c.headers.get("Content-Type");E&&/\bapplication\/json\b/.test(E)?c.body==null?w=null:w=await c.json():w=await c.text()}catch(E){return{type:va.error,error:E}}return u===va.error?{type:u,error:new wF(S,c.statusText,w),headers:c.headers}:{type:va.data,data:w,statusCode:c.status,headers:c.headers}}if(u===va.error)return{type:u,error:c};if(I9e(c)){var g,b;return{type:va.deferred,deferredData:c,statusCode:(g=c.init)==null?void 0:g.status,headers:((b=c.init)==null?void 0:b.headers)&&new Headers(c.init.headers)}}return{type:va.data,data:c}}function vE(e,t,n,r){let i=e.createURL(Mle(t)).toString(),a={signal:n};if(r&&ed(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=D8(r.formData):a.body=r.formData}return new Request(i,a)}function D8(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function qZ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function _9e(e,t,n,r,i){let a={},s=null,o,l=!1,u={};return n.forEach((c,f)=>{let h=t[f].route.id;if(Rr(!Pg(c),"Cannot handle redirect results in processLoaderData"),Dy(c)){let g=I2(e,h),b=c.error;r&&(b=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=b),a[h]=void 0,l||(l=!0,o=xF(c.error)?c.error.status:500),c.headers&&(u[h]=c.headers)}else Ng(c)?(i.set(h,c.deferredData),a[h]=c.deferredData.data):a[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(o=c.statusCode),c.headers&&(u[h]=c.headers)}),r&&(s=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:u}}function GZ(e,t,n,r,i,a,s,o){let{loaderData:l,errors:u}=_9e(t,n,r,i,o);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ZZ(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ec(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,s="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?o="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?o="defer() is not supported in actions":a==="invalid-body"&&(o="Unable to encode submission body")):e===403?(s="Forbidden",o='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",o='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?o="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(o='Invalid request method "'+i.toUpperCase()+'"')),new wF(e||500,s,new Error(o),!0)}function XZ(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Pg(n))return{result:n,idx:t}}}function Mle(e){let t=typeof e=="string"?vp(e):e;return lT(Sa({},t,{hash:""}))}function R9e(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ng(e){return e.type===va.deferred}function Dy(e){return e.type===va.error}function Pg(e){return(e&&e.type)===va.redirect}function I9e(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function D9e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function N9e(e){return O9e.has(e.toLowerCase())}function ed(e){return y9e.has(e.toLowerCase())}async function KZ(e,t,n,r,i,a){for(let s=0;sf.route.id===l.route.id),c=u!=null&&!Ple(u,l)&&(a&&a[l.route.id])!==void 0;if(Ng(o)&&(i||c)){let f=r[s];Rr(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Lle(o,f,i).then(h=>{h&&(n[s]=h||n[s])})}}}async function Lle(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:va.data,data:e.deferredData.unwrappedData}}catch(i){return{type:va.error,error:i}}return{type:va.data,data:e.deferredData.data}}}function TF(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function N8(e,t){let n=typeof t=="string"?vp(t).search:t.search;if(e[e.length-1].route.index&&TF(n||""))return e[e.length-1];let r=Rle(e);return r[r.length-1]}function JZ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function TN(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function P9e(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function OE(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function M9e(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function tm(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function L9e(e,t){try{let n=e.sessionStorage.getItem(Nle);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function $9e(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Nle,JSON.stringify(n))}catch(r){d1(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.3 * * Copyright (c) Remix Software Inc. @@ -181,7 +181,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),N.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let f=SF(u,JSON.parse(s),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:jm([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,a,e])}const N9e=N.createContext(null);function P9e(e){let t=N.useContext(vp).outlet;return t&&N.createElement(N9e.Provider,{value:e},t)}function x0(){let{matches:e}=N.useContext(vp),t=e[e.length-1];return t?t.params:{}}function M9e(e,t,n,r){cT()||Rr(!1);let{navigator:i}=N.useContext(uT),{matches:a}=N.useContext(vp),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=w0(),c;if(t){var f;let E=typeof t=="string"?yp(t):t;l==="/"||(f=E.pathname)!=null&&f.startsWith(l)||Rr(!1),c=E}else c=u;let h=c.pathname||"/",g=l==="/"?h:h.slice(l.length)||"/",b=Iy(e,{pathname:g}),S=U9e(b&&b.map(E=>Object.assign({},E,{params:Object.assign({},o,E.params),pathname:jm([l,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?l:jm([l,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),a,n,r);return t&&S?N.createElement(NR.Provider,{value:{location:Mw({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ia.Pop}},S):S}function L9e(){let e=jle(),t=wF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:i},n):null,null)}const $9e=N.createElement(L9e,null);class F9e extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?N.createElement(vp.Provider,{value:this.props.routeContext},N.createElement(Fle.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function B9e(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(DR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(vp.Provider,{value:t},r)}function U9e(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let c=s.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id]));c>=0||Rr(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,h)=>{let g,b=!1,S=null,E=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,S=f.route.errorElement||$9e,l&&(u<0&&h===0?(W9e("route-fallback",!1),b=!0,E=null):u===h&&(b=!0,E=f.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,h+1)),x=()=>{let k;return g?k=S:b?k=E:f.route.Component?k=N.createElement(f.route.Component,null):f.route.element?k=f.route.element:k=c,N.createElement(B9e,{match:f,routeContext:{outlet:c,matches:w,isDataRoute:n!=null},children:k})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?N.createElement(F9e,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:x(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):x()},null)}var Ule=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ule||{}),G_=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(G_||{});function z9e(e){let t=N.useContext(DR);return t||Rr(!1),t}function j9e(e){let t=N.useContext($le);return t||Rr(!1),t}function H9e(e){let t=N.useContext(vp);return t||Rr(!1),t}function zle(e){let t=H9e(),n=t.matches[t.matches.length-1];return n.route.id||Rr(!1),n.route.id}function jle(){var e;let t=N.useContext(Fle),n=j9e(G_.UseRouteError),r=zle(G_.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function V9e(){let{router:e}=z9e(Ule.UseNavigateStable),t=zle(G_.UseNavigateStable),n=N.useRef(!1);return Ble(()=>{n.current=!0}),N.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Mw({fromRouteId:t},a)))},[e,t])}const JZ={};function W9e(e,t,n){!t&&!JZ[e]&&(JZ[e]=!0)}function TF(e){let{to:t,replace:n,state:r,relative:i}=e;cT()||Rr(!1);let{future:a,static:s}=N.useContext(uT),{matches:o}=N.useContext(vp),{pathname:l}=w0(),u=Wf(),c=SF(t,OF(o,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return N.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function kF(e){return P9e(e.context)}function Q9e(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ia.Pop,navigator:a,static:s=!1,future:o}=e;cT()&&Rr(!1);let l=t.replace(/^\/*/,"/"),u=N.useMemo(()=>({basename:l,navigator:a,static:s,future:Mw({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=yp(r));let{pathname:c="/",search:f="",hash:h="",state:g=null,key:b="default"}=r,S=N.useMemo(()=>{let E=lT(c,l);return E==null?null:{location:{pathname:E,search:f,hash:h,state:g,key:b},navigationType:i}},[l,c,f,h,g,b,i]);return S==null?null:N.createElement(uT.Provider,{value:u},N.createElement(NR.Provider,{children:n,value:S}))}new Promise(()=>{});function q9e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:N.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),N.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let f=EF(u,JSON.parse(s),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Hm([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,a,e])}const B9e=N.createContext(null);function U9e(e){let t=N.useContext(Op).outlet;return t&&N.createElement(B9e.Provider,{value:e},t)}function x0(){let{matches:e}=N.useContext(Op),t=e[e.length-1];return t?t.params:{}}function z9e(e,t,n,r){dT()||Rr(!1);let{navigator:i}=N.useContext(cT),{matches:a}=N.useContext(Op),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=w0(),c;if(t){var f;let w=typeof t=="string"?vp(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Rr(!1),c=w}else c=u;let h=c.pathname||"/",g=l==="/"?h:h.slice(l.length)||"/",b=Iy(e,{pathname:g}),S=Q9e(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},o,w.params),pathname:Hm([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Hm([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,n,r);return t&&S?N.createElement(MR.Provider,{value:{location:Mw({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ia.Pop}},S):S}function j9e(){let e=jle(),t=xF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:i},n):null,null)}const H9e=N.createElement(j9e,null);class V9e extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?N.createElement(Op.Provider,{value:this.props.routeContext},N.createElement(Fle.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function W9e(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(PR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(Op.Provider,{value:t},r)}function Q9e(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let c=s.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id]));c>=0||Rr(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,h)=>{let g,b=!1,S=null,w=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,S=f.route.errorElement||H9e,l&&(u<0&&h===0?(X9e("route-fallback",!1),b=!0,w=null):u===h&&(b=!0,w=f.route.hydrateFallbackElement||null)));let E=t.concat(s.slice(0,h+1)),x=()=>{let k;return g?k=S:b?k=w:f.route.Component?k=N.createElement(f.route.Component,null):f.route.element?k=f.route.element:k=c,N.createElement(W9e,{match:f,routeContext:{outlet:c,matches:E,isDataRoute:n!=null},children:k})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?N.createElement(V9e,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):x()},null)}var Ule=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ule||{}),X_=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(X_||{});function q9e(e){let t=N.useContext(PR);return t||Rr(!1),t}function G9e(e){let t=N.useContext($le);return t||Rr(!1),t}function Y9e(e){let t=N.useContext(Op);return t||Rr(!1),t}function zle(e){let t=Y9e(),n=t.matches[t.matches.length-1];return n.route.id||Rr(!1),n.route.id}function jle(){var e;let t=N.useContext(Fle),n=G9e(X_.UseRouteError),r=zle(X_.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Z9e(){let{router:e}=q9e(Ule.UseNavigateStable),t=zle(X_.UseNavigateStable),n=N.useRef(!1);return Ble(()=>{n.current=!0}),N.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Mw({fromRouteId:t},a)))},[e,t])}const eX={};function X9e(e,t,n){!t&&!eX[e]&&(eX[e]=!0)}function kF(e){let{to:t,replace:n,state:r,relative:i}=e;dT()||Rr(!1);let{future:a,static:s}=N.useContext(cT),{matches:o}=N.useContext(Op),{pathname:l}=w0(),u=Wf(),c=EF(t,SF(o,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return N.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function CF(e){return U9e(e.context)}function K9e(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ia.Pop,navigator:a,static:s=!1,future:o}=e;dT()&&Rr(!1);let l=t.replace(/^\/*/,"/"),u=N.useMemo(()=>({basename:l,navigator:a,static:s,future:Mw({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=vp(r));let{pathname:c="/",search:f="",hash:h="",state:g=null,key:b="default"}=r,S=N.useMemo(()=>{let w=uT(c,l);return w==null?null:{location:{pathname:w,search:f,hash:h,state:g,key:b},navigationType:i}},[l,c,f,h,g,b,i]);return S==null?null:N.createElement(cT.Provider,{value:u},N.createElement(MR.Provider,{children:n,value:S}))}new Promise(()=>{});function J9e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:N.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.3 * * Copyright (c) Remix Software Inc. @@ -190,27 +190,27 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function G9e(e,t){let n=N8(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}function Y9e(e,t){return v9e({basename:t==null?void 0:t.basename,future:Y_({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:zLe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Z9e(),routes:e,mapRouteProperties:q9e,window:t==null?void 0:t.window}).initialize()}function Z9e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Y_({},t,{errors:X9e(t.errors)})),t}function X9e(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new EF(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let s=new a(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const K9e=N.createContext({isTransitioning:!1}),J9e=N.createContext(new Map),e$e="startTransition",eX=Mv[e$e],t$e="flushSync",tX=LTe[t$e];function n$e(e){eX?eX(e):e()}function SE(e){tX?tX(e):e()}class r$e{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function i$e(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=N.useState(n.state),[s,o]=N.useState(),[l,u]=N.useState({isTransitioning:!1}),[c,f]=N.useState(),[h,g]=N.useState(),[b,S]=N.useState(),E=N.useRef(new Map),{v7_startTransition:w}=r||{},x=N.useCallback(D=>{w?n$e(D):D()},[w]),k=N.useCallback((D,B)=>{let{deletedFetchers:L,unstable_flushSync:F,unstable_viewTransitionOpts:W}=B;L.forEach(Z=>E.current.delete(Z)),D.fetchers.forEach((Z,Q)=>{Z.data!==void 0&&E.current.set(Q,Z.data)});let V=n.window==null||typeof n.window.document.startViewTransition!="function";if(!W||V){F?SE(()=>a(D)):x(()=>a(D));return}if(F){SE(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let Z=n.window.document.startViewTransition(()=>{SE(()=>a(D))});Z.finished.finally(()=>{SE(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})})}),SE(()=>g(Z));return}h?(c&&c.resolve(),h.skipTransition(),S({state:D,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(o(D),u({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[n.window,h,c,E,x]);N.useLayoutEffect(()=>n.subscribe(k),[n,k]),N.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new r$e)},[l]),N.useEffect(()=>{if(c&&s&&n.window){let D=s,B=c.promise,L=n.window.document.startViewTransition(async()=>{x(()=>a(D)),await B});L.finished.finally(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})}),g(L)}},[x,s,c,n.window]),N.useEffect(()=>{c&&s&&i.location.key===s.location.key&&c.resolve()},[c,h,i.location,s]),N.useEffect(()=>{!l.isTransitioning&&b&&(o(b.state),u({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),S(void 0))},[l.isTransitioning,b]),N.useEffect(()=>{},[]);let C=N.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:D=>n.navigate(D),push:(D,B,L)=>n.navigate(D,{state:B,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(D,B,L)=>n.navigate(D,{replace:!0,state:B,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),R=n.basename||"/",A=N.useMemo(()=>({router:n,navigator:C,static:!1,basename:R}),[n,C,R]);return N.createElement(N.Fragment,null,N.createElement(DR.Provider,{value:A},N.createElement($le.Provider,{value:i},N.createElement(J9e.Provider,{value:E.current},N.createElement(K9e.Provider,{value:l},N.createElement(Q9e,{basename:R,location:i.location,navigationType:i.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?N.createElement(a$e,{routes:n.routes,future:n.future,state:i}):t))))),null)}function a$e(e){let{routes:t,future:n,state:r}=e;return M9e(t,void 0,r,n)}var nX;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(nX||(nX={}));var rX;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(rX||(rX={}));function CF(e){let t=N.useRef(N8(e)),n=N.useRef(!1),r=w0(),i=N.useMemo(()=>G9e(r.search,n.current?null:t.current),[r.search]),a=Wf(),s=N.useCallback((o,l)=>{const u=N8(typeof o=="function"?o(i):o);n.current=!0,a("?"+u,l)},[a,i]);return[i,s]}function $s(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var s$e=typeof Symbol=="function"&&Symbol.observable||"@@observable",iX=s$e,xN=()=>Math.random().toString(36).substring(7).split("").join("."),o$e={INIT:`@@redux/INIT${xN()}`,REPLACE:`@@redux/REPLACE${xN()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${xN()}`},Z_=o$e;function AF(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _F(e,t,n){if(typeof e!="function")throw new Error($s(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error($s(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error($s(1));return n(_F)(e,t)}let r=e,i=t,a=new Map,s=a,o=0,l=!1;function u(){s===a&&(s=new Map,a.forEach((E,w)=>{s.set(w,E)}))}function c(){if(l)throw new Error($s(3));return i}function f(E){if(typeof E!="function")throw new Error($s(4));if(l)throw new Error($s(5));let w=!0;u();const x=o++;return s.set(x,E),function(){if(w){if(l)throw new Error($s(6));w=!1,u(),s.delete(x),a=null}}}function h(E){if(!AF(E))throw new Error($s(7));if(typeof E.type>"u")throw new Error($s(8));if(typeof E.type!="string")throw new Error($s(17));if(l)throw new Error($s(9));try{l=!0,i=r(i,E)}finally{l=!1}return(a=s).forEach(x=>{x()}),E}function g(E){if(typeof E!="function")throw new Error($s(10));r=E,h({type:Z_.REPLACE})}function b(){const E=f;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error($s(11));function x(){const C=w;C.next&&C.next(c())}return x(),{unsubscribe:E(x)}},[iX](){return this}}}return h({type:Z_.INIT}),{dispatch:h,subscribe:f,getState:c,replaceReducer:g,[iX]:b}}function l$e(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Z_.INIT})>"u")throw new Error($s(12));if(typeof n(void 0,{type:Z_.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($s(13))})}function Hle(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw o&&o.type,new Error($s(14));u[f]=b,l=l||b!==g}return l=l||r.length!==Object.keys(s).length,l?u:s}}function X_(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function u$e(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error($s(15))};const s={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},o=e.map(l=>l(s));return a=X_(...o)(i.dispatch),{...i,dispatch:a}}}function c$e(e){return AF(e)&&"type"in e&&typeof e.type=="string"}var Vle=Symbol.for("immer-nothing"),aX=Symbol.for("immer-draftable"),Cu=Symbol.for("immer-state");function ld(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Gv=Object.getPrototypeOf;function r0(e){return!!e&&!!e[Cu]}function rp(e){var t;return e?Wle(e)||Array.isArray(e)||!!e[aX]||!!((t=e.constructor)!=null&&t[aX])||MR(e)||LR(e):!1}var d$e=Object.prototype.constructor.toString();function Wle(e){if(!e||typeof e!="object")return!1;const t=Gv(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===d$e}function Lw(e,t){PR(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function PR(e){const t=e[Cu];return t?t.type_:Array.isArray(e)?1:MR(e)?2:LR(e)?3:0}function P8(e,t){return PR(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Qle(e,t,n){const r=PR(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function f$e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function MR(e){return e instanceof Map}function LR(e){return e instanceof Set}function Eg(e){return e.copy_||e.base_}function M8(e,t){if(MR(e))return new Map(e);if(LR(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Wle(e))return Gv(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Cu];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=h$e),Object.freeze(e),t&&Lw(e,(n,r)=>RF(r,!0))),e}function h$e(){ld(2)}function $R(e){return Object.isFrozen(e)}var p$e={};function f1(e){const t=p$e[e];return t||ld(0,e),t}var $w;function qle(){return $w}function m$e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sX(e,t){t&&(f1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function L8(e){$8(e),e.drafts_.forEach(g$e),e.drafts_=null}function $8(e){e===$w&&($w=e.parent_)}function oX(e){return $w=m$e($w,e)}function g$e(e){const t=e[Cu];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lX(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Cu].modified_&&(L8(t),ld(4)),rp(e)&&(e=K_(t,e),t.parent_||J_(t,e)),t.patches_&&f1("Patches").generateReplacementPatches_(n[Cu].base_,e,t.patches_,t.inversePatches_)):e=K_(t,n,[]),L8(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Vle?e:void 0}function K_(e,t,n){if($R(t))return t;const r=t[Cu];if(!r)return Lw(t,(i,a)=>uX(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return J_(e,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),Lw(a,(o,l)=>uX(e,r,i,o,l,n,s)),J_(e,i,!1),n&&e.patches_&&f1("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function uX(e,t,n,r,i,a,s){if(r0(i)){const o=a&&t&&t.type_!==3&&!P8(t.assigned_,r)?a.concat(r):void 0,l=K_(e,i,o);if(Qle(n,r,l),r0(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(rp(i)&&!$R(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;K_(e,i),(!t||!t.scope_.parent_)&&J_(e,i)}}function J_(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&RF(t,n)}function b$e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:qle(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=IF;n&&(i=[r],a=Fw);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var IF={get(e,t){if(t===Cu)return e;const n=Eg(e);if(!P8(n,t))return y$e(e,n,t);const r=n[t];return e.finalized_||!rp(r)?r:r===TN(e.base_,t)?(kN(e),e.copy_[t]=B8(r,e)):r},has(e,t){return t in Eg(e)},ownKeys(e){return Reflect.ownKeys(Eg(e))},set(e,t,n){const r=Gle(Eg(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=TN(Eg(e),t),a=i==null?void 0:i[Cu];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(f$e(n,i)&&(n!==void 0||P8(e.base_,t)))return!0;kN(e),F8(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return TN(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,kN(e),F8(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Eg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ld(11)},getPrototypeOf(e){return Gv(e.base_)},setPrototypeOf(){ld(12)}},Fw={};Lw(IF,(e,t)=>{Fw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Fw.deleteProperty=function(e,t){return Fw.set.call(this,e,t,void 0)};Fw.set=function(e,t,n){return IF.set.call(this,e[0],t,n,e[0])};function TN(e,t){const n=e[Cu];return(n?Eg(n):e)[t]}function y$e(e,t,n){var i;const r=Gle(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Gle(e,t){if(!(t in e))return;let n=Gv(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Gv(n)}}function F8(e){e.modified_||(e.modified_=!0,e.parent_&&F8(e.parent_))}function kN(e){e.copy_||(e.copy_=M8(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var v$e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(l=a,...u){return s.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&ld(6),r!==void 0&&typeof r!="function"&&ld(7);let i;if(rp(t)){const a=oX(this),s=B8(t,void 0);let o=!0;try{i=n(s),o=!1}finally{o?L8(a):$8(a)}return sX(a,r),lX(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Vle&&(i=void 0),this.autoFreeze_&&RF(i,!0),r){const a=[],s=[];f1("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else ld(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,l=>t(l,...o));let r,i;return[this.produce(t,n,(s,o)=>{r=s,i=o}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){rp(e)||ld(8),r0(e)&&(e=Yle(e));const t=oX(this),n=B8(e,void 0);return n[Cu].isManual_=!0,$8(t),n}finishDraft(e,t){const n=e&&e[Cu];(!n||!n.isManual_)&&ld(9);const{scope_:r}=n;return sX(r,t),lX(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=f1("Patches").applyPatches_;return r0(e)?r(e,t):this.produce(e,i=>r(i,t))}};function B8(e,t){const n=MR(e)?f1("MapSet").proxyMap_(e,t):LR(e)?f1("MapSet").proxySet_(e,t):b$e(e,t);return(t?t.scope_:qle()).drafts_.push(n),n}function Yle(e){return r0(e)||ld(10,e),Zle(e)}function Zle(e){if(!rp(e)||$R(e))return e;const t=e[Cu];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=M8(e,t.scope_.immer_.useStrictShallowCopy_)}else n=M8(e,!0);return Lw(n,(r,i)=>{Qle(n,r,Zle(i))}),t&&(t.finalized_=!1),n}var Au=new v$e,Xle=Au.produce;Au.produceWithPatches.bind(Au);Au.setAutoFreeze.bind(Au);Au.setUseStrictShallowCopy.bind(Au);Au.applyPatches.bind(Au);Au.createDraft.bind(Au);Au.finishDraft.bind(Au);function O$e(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function S$e(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function E$e(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var cX=e=>Array.isArray(e)?e:[e];function w$e(e){const t=Array.isArray(e[0])?e[0]:e;return E$e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function x$e(e,t){const n=[],{length:r}=e;for(let i=0;i{n=YC(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function Kle(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,s=0,o,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),O$e(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:f,memoizeOptions:h=[],argsMemoize:g=DF,argsMemoizeOptions:b=[],devModeChecks:S={}}=c,E=cX(h),w=cX(b),x=w$e(i),k=f(function(){return a++,u.apply(null,arguments)},...E),C=g(function(){s++;const A=x$e(x,arguments);return o=k.apply(null,A),o},...w);return Object.assign(C,{resultFunc:u,memoizedResultFunc:k,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>o,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var A$e=Kle(DF),_$e=Object.assign((e,t=A$e)=>{S$e(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((s,o,l)=>(s[n[l]]=o,s),{}))},{withTypes:()=>_$e});function Jle(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var R$e=Jle(),I$e=Jle,D$e=(...e)=>{const t=Kle(...e),n=Object.assign((...r)=>{const i=t(...r),a=(s,...o)=>i(r0(s)?Yle(s):s,...o);return Object.assign(a,i),a},{withTypes:()=>n});return n};D$e(DF);var N$e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?X_:X_.apply(null,arguments)};function Yv(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Cl(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>c$e(r)&&r.type===e,n}var eue=class e2 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e2.prototype)}static get[Symbol.species](){return e2}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e2(...t[0].concat(this)):new e2(...t.concat(this))}};function fX(e){return rp(e)?Xle(e,()=>{}):e}function hX(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Cl(10));const r=n.insert(t,e);return e.set(t,r),r}function P$e(e){return typeof e=="boolean"}var M$e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new eue;return n&&(P$e(n)?s.push(R$e):s.push(I$e(n.extraArgument))),s},L$e="RTK_autoBatch",tue=e=>t=>{setTimeout(t,e)},$$e=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tue(10),F$e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const o=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?$$e:e.type==="callback"?e.queueNotification:tue(e.timeout),u=()=>{s=!1,a&&(a=!1,o.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>i&&c(),h=r.subscribe(f);return o.add(c),()=>{h(),o.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[L$e]),a=!i,a&&(s||(s=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},B$e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new eue(e);return r&&i.push(F$e(typeof r=="object"?r:void 0)),i},U$e=!0;function z$e(e){const t=M$e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof n=="function")o=n;else if(AF(n))o=Hle(n);else throw new Error(Cl(1));let l;typeof r=="function"?l=r(t):l=t();let u=X_;i&&(u=N$e({trace:!U$e,...typeof i=="object"&&i}));const c=u$e(...l),f=B$e(c);let h=typeof s=="function"?s(f):f();const g=u(...h);return _F(o,a,g)}function nue(e){const t={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Cl(28));if(o in t)throw new Error(Cl(29));return t[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function j$e(e){return typeof e=="function"}function H$e(e,t){let[n,r,i]=nue(t),a;if(j$e(e))a=()=>fX(e());else{const o=fX(e);a=()=>o}function s(o=a(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,f)=>{if(f)if(r0(c)){const g=f(c,l);return g===void 0?c:g}else{if(rp(c))return Xle(c,h=>f(h,l));{const h=f(c,l);if(h===void 0){if(c===null)return c;throw new Error(Cl(9))}return h}}return c},o)}return s.getInitialState=a,s}var V$e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",W$e=(e=21)=>{let t="",n=e;for(;n--;)t+=V$e[Math.random()*64|0];return t},Q$e=Symbol.for("rtk-slice-createasyncthunk");function q$e(e,t){return`${e}/${t}`}function G$e({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Q$e];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Cl(11));typeof process<"u";const o=(typeof i.reducers=="function"?i.reducers(Z$e()):i.reducers)||{},l=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(k,C){const R=typeof k=="string"?k:k.type;if(!R)throw new Error(Cl(12));if(R in u.sliceCaseReducersByType)throw new Error(Cl(13));return u.sliceCaseReducersByType[R]=C,c},addMatcher(k,C){return u.sliceMatchers.push({matcher:k,reducer:C}),c},exposeAction(k,C){return u.actionCreators[k]=C,c},exposeCaseReducer(k,C){return u.sliceCaseReducersByName[k]=C,c}};l.forEach(k=>{const C=o[k],R={reducerName:k,type:q$e(a,k),createNotation:typeof i.reducers=="function"};K$e(C)?eFe(R,C,c,t):X$e(R,C,c)});function f(){const[k={},C=[],R=void 0]=typeof i.extraReducers=="function"?nue(i.extraReducers):[i.extraReducers],A={...k,...u.sliceCaseReducersByType};return H$e(i.initialState,D=>{for(let B in A)D.addCase(B,A[B]);for(let B of u.sliceMatchers)D.addMatcher(B.matcher,B.reducer);for(let B of C)D.addMatcher(B.matcher,B.reducer);R&&D.addDefaultCase(R)})}const h=k=>k,g=new Map;let b;function S(k,C){return b||(b=f()),b(k,C)}function E(){return b||(b=f()),b.getInitialState()}function w(k,C=!1){function R(D){let B=D[k];return typeof B>"u"&&C&&(B=E()),B}function A(D=h){const B=hX(g,C,{insert:()=>new WeakMap});return hX(B,D,{insert:()=>{const L={};for(const[F,W]of Object.entries(i.selectors??{}))L[F]=Y$e(W,D,E,C);return L}})}return{reducerPath:k,getSelectors:A,get selectors(){return A(R)},selectSlice:R}}const x={name:a,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...w(s),injectInto(k,{reducerPath:C,...R}={}){const A=C??s;return k.inject({reducerPath:A,reducer:S},R),{...x,...w(A,!0)}}};return x}}function Y$e(e,t,n,r){function i(a,...s){let o=t(a);return typeof o>"u"&&r&&(o=n()),e(o,...s)}return i.unwrapped=e,i}var k1=G$e();function Z$e(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function X$e({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!J$e(r))throw new Error(Cl(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?Yv(e,s):Yv(e))}function K$e(e){return e._reducerDefinitionType==="asyncThunk"}function J$e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function eFe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Cl(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:u,options:c}=n,f=i(e,a,c);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),o&&r.addCase(f.pending,o),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||ZC,pending:o||ZC,rejected:l||ZC,settled:u||ZC})}function ZC(){}var tFe=(e,t)=>{if(typeof e!="function")throw new Error(Cl(32))},NF="listenerMiddleware",nFe=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Yv(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Cl(21));return tFe(a),{predicate:i,type:t,effect:a}},rFe=Object.assign(e=>{const{type:t,predicate:n,effect:r}=nFe(e);return{id:W$e(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Cl(22))}}},{withTypes:()=>rFe}),iFe=Object.assign(Yv(`${NF}/add`),{withTypes:()=>iFe});Yv(`${NF}/removeAll`);var aFe=Object.assign(Yv(`${NF}/remove`),{withTypes:()=>aFe});function Cl(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const sFe={theme:"default",drawerOpen:!0},rue=k1({name:"editor",initialState:sFe,reducers:{setTheme:(e,t)=>{e.theme=t.payload},setDrawerOpen:(e,t)=>{e.drawerOpen=t.payload}}}),{setTheme:iue,setDrawerOpen:oFe}=rue.actions,PF=e=>e.config,lFe=rue.reducer;function aue(e,t){return function(){return e.apply(t,arguments)}}const{toString:uFe}=Object.prototype,{getPrototypeOf:MF}=Object,FR=(e=>t=>{const n=uFe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qf=e=>(e=e.toLowerCase(),t=>FR(t)===e),BR=e=>t=>typeof t===e,{isArray:CO}=Array,Bw=BR("undefined");function cFe(e){return e!==null&&!Bw(e)&&e.constructor!==null&&!Bw(e.constructor)&&vc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sue=Qf("ArrayBuffer");function dFe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sue(e.buffer),t}const fFe=BR("string"),vc=BR("function"),oue=BR("number"),UR=e=>e!==null&&typeof e=="object",hFe=e=>e===!0||e===!1,E4=e=>{if(FR(e)!=="object")return!1;const t=MF(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pFe=Qf("Date"),mFe=Qf("File"),gFe=Qf("Blob"),bFe=Qf("FileList"),yFe=e=>UR(e)&&vc(e.pipe),vFe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vc(e.append)&&((t=FR(e))==="formdata"||t==="object"&&vc(e.toString)&&e.toString()==="[object FormData]"))},OFe=Qf("URLSearchParams"),SFe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dT(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),CO(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const uue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cue=e=>!Bw(e)&&e!==uue;function U8(){const{caseless:e}=cue(this)&&this||{},t={},n=(r,i)=>{const a=e&&lue(t,i)||i;E4(t[a])&&E4(r)?t[a]=U8(t[a],r):E4(r)?t[a]=U8({},r):CO(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(dT(t,(i,a)=>{n&&vc(i)?e[a]=aue(i,n):e[a]=i},{allOwnKeys:r}),e),wFe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xFe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},TFe=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&MF(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kFe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},CFe=e=>{if(!e)return null;if(CO(e))return e;let t=e.length;if(!oue(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},AFe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&MF(Uint8Array)),_Fe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},RFe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},IFe=Qf("HTMLFormElement"),DFe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),pX=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NFe=Qf("RegExp"),due=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};dT(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},PFe=e=>{due(e,(t,n)=>{if(vc(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(vc(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},MFe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return CO(e)?r(e):r(String(e).split(t)),n},LFe=()=>{},$Fe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),CN="abcdefghijklmnopqrstuvwxyz",mX="0123456789",fue={DIGIT:mX,ALPHA:CN,ALPHA_DIGIT:CN+CN.toUpperCase()+mX},FFe=(e=16,t=fue.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function BFe(e){return!!(e&&vc(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const UFe=e=>{const t=new Array(10),n=(r,i)=>{if(UR(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=CO(r)?[]:{};return dT(r,(s,o)=>{const l=n(s,i+1);!Bw(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},zFe=Qf("AsyncFunction"),jFe=e=>e&&(UR(e)||vc(e))&&vc(e.then)&&vc(e.catch),kt={isArray:CO,isArrayBuffer:sue,isBuffer:cFe,isFormData:vFe,isArrayBufferView:dFe,isString:fFe,isNumber:oue,isBoolean:hFe,isObject:UR,isPlainObject:E4,isUndefined:Bw,isDate:pFe,isFile:mFe,isBlob:gFe,isRegExp:NFe,isFunction:vc,isStream:yFe,isURLSearchParams:OFe,isTypedArray:AFe,isFileList:bFe,forEach:dT,merge:U8,extend:EFe,trim:SFe,stripBOM:wFe,inherits:xFe,toFlatObject:TFe,kindOf:FR,kindOfTest:Qf,endsWith:kFe,toArray:CFe,forEachEntry:_Fe,matchAll:RFe,isHTMLForm:IFe,hasOwnProperty:pX,hasOwnProp:pX,reduceDescriptors:due,freezeMethods:PFe,toObjectSet:MFe,toCamelCase:DFe,noop:LFe,toFiniteNumber:$Fe,findKey:lue,global:uue,isContextDefined:cue,ALPHABET:fue,generateString:FFe,isSpecCompliantForm:BFe,toJSONObject:UFe,isAsyncFn:zFe,isThenable:jFe};function Vr(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}kt.inherits(Vr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:kt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hue=Vr.prototype,pue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pue[e]={value:e}});Object.defineProperties(Vr,pue);Object.defineProperty(hue,"isAxiosError",{value:!0});Vr.from=(e,t,n,r,i,a)=>{const s=Object.create(hue);return kt.toFlatObject(e,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Vr.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const HFe=null;function z8(e){return kt.isPlainObject(e)||kt.isArray(e)}function mue(e){return kt.endsWith(e,"[]")?e.slice(0,-2):e}function gX(e,t,n){return e?e.concat(t).map(function(i,a){return i=mue(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function VFe(e){return kt.isArray(e)&&!e.some(z8)}const WFe=kt.toFlatObject(kt,{},null,function(t){return/^is[A-Z]/.test(t)});function zR(e,t,n){if(!kt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=kt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,E){return!kt.isUndefined(E[S])});const r=n.metaTokens,i=n.visitor||c,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&kt.isSpecCompliantForm(t);if(!kt.isFunction(i))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(kt.isDate(b))return b.toISOString();if(!l&&kt.isBlob(b))throw new Vr("Blob is not supported. Use a Buffer instead.");return kt.isArrayBuffer(b)||kt.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function c(b,S,E){let w=b;if(b&&!E&&typeof b=="object"){if(kt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(kt.isArray(b)&&VFe(b)||(kt.isFileList(b)||kt.endsWith(S,"[]"))&&(w=kt.toArray(b)))return S=mue(S),w.forEach(function(k,C){!(kt.isUndefined(k)||k===null)&&t.append(s===!0?gX([S],C,a):s===null?S:S+"[]",u(k))}),!1}return z8(b)?!0:(t.append(gX(E,S,a),u(b)),!1)}const f=[],h=Object.assign(WFe,{defaultVisitor:c,convertValue:u,isVisitable:z8});function g(b,S){if(!kt.isUndefined(b)){if(f.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(b),kt.forEach(b,function(w,x){(!(kt.isUndefined(w)||w===null)&&i.call(t,w,kt.isString(x)?x.trim():x,S,h))===!0&&g(w,S?S.concat(x):[x])}),f.pop()}}if(!kt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function bX(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function LF(e,t){this._pairs=[],e&&zR(e,this,t)}const gue=LF.prototype;gue.append=function(t,n){this._pairs.push([t,n])};gue.toString=function(t){const n=t?function(r){return t.call(this,r,bX)}:bX;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function QFe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bue(e,t,n){if(!t)return e;const r=n&&n.encode||QFe,i=n&&n.serialize;let a;if(i?a=i(t,n):a=kt.isURLSearchParams(t)?t.toString():new LF(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class yX{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){kt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qFe=typeof URLSearchParams<"u"?URLSearchParams:LF,GFe=typeof FormData<"u"?FormData:null,YFe=typeof Blob<"u"?Blob:null,ZFe={isBrowser:!0,classes:{URLSearchParams:qFe,FormData:GFe,Blob:YFe},protocols:["http","https","file","blob","url","data"]},vue=typeof window<"u"&&typeof document<"u",XFe=(e=>vue&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),KFe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",JFe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vue,hasStandardBrowserEnv:XFe,hasStandardBrowserWebWorkerEnv:KFe},Symbol.toStringTag,{value:"Module"})),Sf={...JFe,...ZFe};function eBe(e,t){return zR(e,new Sf.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Sf.isNode&&kt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function tBe(e){return kt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nBe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&kt.isArray(i)?i.length:s,l?(kt.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!kt.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&kt.isArray(i[s])&&(i[s]=nBe(i[s])),!o)}if(kt.isFormData(e)&&kt.isFunction(e.entries)){const n={};return kt.forEachEntry(e,(r,i)=>{t(tBe(r),i,n,0)}),n}return null}function rBe(e,t,n){if(kt.isString(e))try{return(t||JSON.parse)(e),kt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const $F={transitional:yue,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=kt.isObject(t);if(a&&kt.isHTMLForm(t)&&(t=new FormData(t)),kt.isFormData(t))return i?JSON.stringify(Oue(t)):t;if(kt.isArrayBuffer(t)||kt.isBuffer(t)||kt.isStream(t)||kt.isFile(t)||kt.isBlob(t))return t;if(kt.isArrayBufferView(t))return t.buffer;if(kt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return eBe(t,this.formSerializer).toString();if((o=kt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return zR(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),rBe(t)):t}],transformResponse:[function(t){const n=this.transitional||$F.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&kt.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?Vr.from(o,Vr.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Sf.classes.FormData,Blob:Sf.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};kt.forEach(["delete","get","head","post","put","patch"],e=>{$F.headers[e]={}});const FF=$F,iBe=kt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),aBe=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&iBe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},vX=Symbol("internals");function EE(e){return e&&String(e).trim().toLowerCase()}function w4(e){return e===!1||e==null?e:kt.isArray(e)?e.map(w4):String(e)}function sBe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const oBe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function AN(e,t,n,r,i){if(kt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!kt.isString(t)){if(kt.isString(r))return t.indexOf(r)!==-1;if(kt.isRegExp(r))return r.test(t)}}function lBe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function uBe(e,t){const n=kt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}class jR{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,u){const c=EE(l);if(!c)throw new Error("header name must be a non-empty string");const f=kt.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=w4(o))}const s=(o,l)=>kt.forEach(o,(u,c)=>a(u,c,l));return kt.isPlainObject(t)||t instanceof this.constructor?s(t,n):kt.isString(t)&&(t=t.trim())&&!oBe(t)?s(aBe(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=EE(t),t){const r=kt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return sBe(i);if(kt.isFunction(n))return n.call(this,i,r);if(kt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=EE(t),t){const r=kt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||AN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=EE(s),s){const o=kt.findKey(r,s);o&&(!n||AN(r,r[o],o,n))&&(delete r[o],i=!0)}}return kt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||AN(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return kt.forEach(this,(i,a)=>{const s=kt.findKey(r,a);if(s){n[s]=w4(i),delete n[a];return}const o=t?lBe(a):String(a).trim();o!==a&&delete n[a],n[o]=w4(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return kt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&kt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[vX]=this[vX]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=EE(s);r[o]||(uBe(i,s),r[o]=!0)}return kt.isArray(t)?t.forEach(a):a(t),this}}jR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);kt.reduceDescriptors(jR.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});kt.freezeMethods(jR);const Vh=jR;function _N(e,t){const n=this||FF,r=t||n,i=Vh.from(r.headers);let a=r.data;return kt.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Sue(e){return!!(e&&e.__CANCEL__)}function fT(e,t,n){Vr.call(this,e??"canceled",Vr.ERR_CANCELED,t,n),this.name="CanceledError"}kt.inherits(fT,Vr,{__CANCEL__:!0});function cBe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Vr("Request failed with status code "+n.status,[Vr.ERR_BAD_REQUEST,Vr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const dBe=Sf.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];kt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),kt.isString(r)&&s.push("path="+r),kt.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fBe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hBe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Eue(e,t){return e&&!fBe(t)?hBe(e,t):t}const pBe=Sf.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let s=a;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const o=kt.isString(s)?i(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function mBe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gBe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[a];s||(s=u),n[i]=l,r[i]=u;let f=a,h=0;for(;f!==i;)h+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-s{const a=i.loaded,s=i.lengthComputable?i.total:void 0,o=a-n,l=r(o),u=a<=s;n=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const bBe=typeof XMLHttpRequest<"u",yBe=bBe&&function(e){return new Promise(function(n,r){let i=e.data;const a=Vh.from(e.headers).normalize();let{responseType:s,withXSRFToken:o}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(kt.isFormData(i)){if(Sf.hasStandardBrowserEnv||Sf.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((c=a.getContentType())!==!1){const[S,...E]=c?c.split(";").map(w=>w.trim()).filter(Boolean):[];a.setContentType([S||"multipart/form-data",...E].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const S=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(S+":"+E))}const h=Eue(e.baseURL,e.url);f.open(e.method.toUpperCase(),bue(h,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function g(){if(!f)return;const S=Vh.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:e,request:f};cBe(function(k){n(k),u()},function(k){r(k),u()},w),f=null}if("onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(r(new Vr("Request aborted",Vr.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new Vr("Network Error",Vr.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||yue;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),r(new Vr(E,w.clarifyTimeoutError?Vr.ETIMEDOUT:Vr.ECONNABORTED,e,f)),f=null},Sf.hasStandardBrowserEnv&&(o&&kt.isFunction(o)&&(o=o(e)),o||o!==!1&&pBe(h))){const S=e.xsrfHeaderName&&e.xsrfCookieName&&dBe.read(e.xsrfCookieName);S&&a.set(e.xsrfHeaderName,S)}i===void 0&&a.setContentType(null),"setRequestHeader"in f&&kt.forEach(a.toJSON(),function(E,w){f.setRequestHeader(w,E)}),kt.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",OX(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",OX(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=S=>{f&&(r(!S||S.type?new fT(null,e,f):S),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const b=mBe(h);if(b&&Sf.protocols.indexOf(b)===-1){r(new Vr("Unsupported protocol "+b+":",Vr.ERR_BAD_REQUEST,e));return}f.send(i||null)})},j8={http:HFe,xhr:yBe};kt.forEach(j8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const SX=e=>`- ${e}`,vBe=e=>kt.isFunction(e)||e===null||e===!1,wue={getAdapter:e=>{e=kt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since : -`+a.map(SX).join(` -`):" "+SX(a[0]):"as no adapter specified";throw new Vr("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:j8};function RN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fT(null,e)}function EX(e){return RN(e),e.headers=Vh.from(e.headers),e.data=_N.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wue.getAdapter(e.adapter||FF.adapter)(e).then(function(r){return RN(e),r.data=_N.call(e,e.transformResponse,r),r.headers=Vh.from(r.headers),r},function(r){return Sue(r)||(RN(e),r&&r.response&&(r.response.data=_N.call(e,e.transformResponse,r.response),r.response.headers=Vh.from(r.response.headers))),Promise.reject(r)})}const wX=e=>e instanceof Vh?e.toJSON():e;function Zv(e,t){t=t||{};const n={};function r(u,c,f){return kt.isPlainObject(u)&&kt.isPlainObject(c)?kt.merge.call({caseless:f},u,c):kt.isPlainObject(c)?kt.merge({},c):kt.isArray(c)?c.slice():c}function i(u,c,f){if(kt.isUndefined(c)){if(!kt.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function a(u,c){if(!kt.isUndefined(c))return r(void 0,c)}function s(u,c){if(kt.isUndefined(c)){if(!kt.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function o(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,c)=>i(wX(u),wX(c),!0)};return kt.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,h=f(e[c],t[c],c);kt.isUndefined(h)&&f!==o||(n[c]=h)}),n}const xue="1.6.7",BF={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{BF[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xX={};BF.transitional=function(t,n,r){function i(a,s){return"[Axios v"+xue+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new Vr(i(s," has been removed"+(n?" in "+n:"")),Vr.ERR_DEPRECATED);return n&&!xX[s]&&(xX[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};function OBe(e,t,n){if(typeof e!="object")throw new Vr("options must be an object",Vr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new Vr("option "+a+" must be "+l,Vr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Vr("Unknown option "+a,Vr.ERR_BAD_OPTION)}}const H8={assertOptions:OBe,validators:BF},Yp=H8.validators;class e3{constructor(t){this.defaults=t,this.interceptors={request:new yX,response:new yX}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Zv(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&H8.assertOptions(r,{silentJSONParsing:Yp.transitional(Yp.boolean),forcedJSONParsing:Yp.transitional(Yp.boolean),clarifyTimeoutError:Yp.transitional(Yp.boolean)},!1),i!=null&&(kt.isFunction(i)?n.paramsSerializer={serialize:i}:H8.assertOptions(i,{encode:Yp.function,serialize:Yp.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&kt.merge(a.common,a[n.method]);a&&kt.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=Vh.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,o.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let c,f=0,h;if(!l){const b=[EX.bind(this),void 0];for(b.unshift.apply(b,o),b.push.apply(b,u),h=b.length,c=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new fT(a,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new UF(function(i){t=i}),cancel:t}}}const SBe=UF;function EBe(e){return function(n){return e.apply(null,n)}}function wBe(e){return kt.isObject(e)&&e.isAxiosError===!0}const V8={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(V8).forEach(([e,t])=>{V8[t]=e});const xBe=V8;function Tue(e){const t=new x4(e),n=aue(x4.prototype.request,t);return kt.extend(n,x4.prototype,t,{allOwnKeys:!0}),kt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Tue(Zv(e,i))},n}const Sr=Tue(FF);Sr.Axios=x4;Sr.CanceledError=fT;Sr.CancelToken=SBe;Sr.isCancel=Sue;Sr.VERSION=xue;Sr.toFormData=zR;Sr.AxiosError=Vr;Sr.Cancel=Sr.CanceledError;Sr.all=function(t){return Promise.all(t)};Sr.spread=EBe;Sr.isAxiosError=wBe;Sr.mergeConfig=Zv;Sr.AxiosHeaders=Vh;Sr.formToJSON=e=>Oue(kt.isHTMLForm(e)?new FormData(e):e);Sr.getAdapter=wue.getAdapter;Sr.HttpStatusCode=xBe;Sr.default=Sr;const TBe={mode:"both",shareRole:null,doc:null,client:null,cmView:null},kue=k1({name:"editor",initialState:TBe,reducers:{setMode:(e,t)=>{e.mode=t.payload},setShareRole:(e,t)=>{e.shareRole=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload},setCmView:(e,t)=>{Object.assign(e,{cmView:t.payload})}}}),{setMode:W8,setDoc:t3,setClient:n3,setShareRole:kBe,setCmView:CBe}=kue.actions,AO=e=>e.editor,ABe=kue.reducer,_Be={data:null},Cue=k1({name:"user",initialState:_Be,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:Q8}=Cue.actions,zF=e=>e.user,RBe=Cue.reducer;var _O=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xv=typeof window>"u"||"Deno"in window;function tc(){}function IBe(e,t){return typeof e=="function"?e(t):e}function q8(e){return typeof e=="number"&&e>=0&&e!==1/0}function Aue(e,t){return Math.max(e+(t||0)-Date.now(),0)}function TX(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==jF(s,t.options))return!1}else if(!Uw(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||typeof i<"u"&&i!==t.state.fetchStatus||a&&!a(t))}function kX(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(h1(t.options.mutationKey)!==h1(a))return!1}else if(!Uw(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function jF(e,t){return((t==null?void 0:t.queryKeyHashFn)||h1)(e)}function h1(e){return JSON.stringify(e,(t,n)=>G8(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Uw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Uw(e[n],t[n])):!1}function _ue(e,t){if(e===t)return e;const n=CX(e)&&CX(t);if(n||G8(e)&&G8(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!AX(n)||!n.hasOwnProperty("isPrototypeOf"))}function AX(e){return Object.prototype.toString.call(e)==="[object Object]"}function DBe(e){return new Promise(t=>{setTimeout(t,e)})}function Y8(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?_ue(e,t):t}function NBe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function PBe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var jg,gm,vv,mie,MBe=(mie=class extends _O{constructor(){super();En(this,jg,void 0);En(this,gm,void 0);En(this,vv,void 0);sn(this,vv,t=>{if(!Xv&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Le(this,gm)||this.setEventListener(Le(this,vv))}onUnsubscribe(){var t;this.hasListeners()||((t=Le(this,gm))==null||t.call(this),sn(this,gm,void 0))}setEventListener(t){var n;sn(this,vv,t),(n=Le(this,gm))==null||n.call(this),sn(this,gm,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Le(this,jg)!==t&&(sn(this,jg,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof Le(this,jg)=="boolean"?Le(this,jg):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},jg=new WeakMap,gm=new WeakMap,vv=new WeakMap,mie),i3=new MBe,Ov,bm,Sv,gie,LBe=(gie=class extends _O{constructor(){super();En(this,Ov,!0);En(this,bm,void 0);En(this,Sv,void 0);sn(this,Sv,t=>{if(!Xv&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Le(this,bm)||this.setEventListener(Le(this,Sv))}onUnsubscribe(){var t;this.hasListeners()||((t=Le(this,bm))==null||t.call(this),sn(this,bm,void 0))}setEventListener(t){var n;sn(this,Sv,t),(n=Le(this,bm))==null||n.call(this),sn(this,bm,t(this.setOnline.bind(this)))}setOnline(t){Le(this,Ov)!==t&&(sn(this,Ov,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Le(this,Ov)}},Ov=new WeakMap,bm=new WeakMap,Sv=new WeakMap,gie),a3=new LBe;function $Be(e){return Math.min(1e3*2**e,3e4)}function HR(e){return(e??"online")==="online"?a3.isOnline():!0}var Rue=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function IN(e){return e instanceof Rue}function Iue(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((E,w)=>{a=E,s=w}),l=E=>{var w;r||(g(new Rue(E)),(w=e.abort)==null||w.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>!i3.isFocused()||e.networkMode!=="always"&&!a3.isOnline(),h=E=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,E),i==null||i(),a(E))},g=E=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,E),i==null||i(),s(E))},b=()=>new Promise(E=>{var w;i=x=>{const k=r||!f();return k&&E(x),k},(w=e.onPause)==null||w.call(e)}).then(()=>{var E;i=void 0,r||(E=e.onContinue)==null||E.call(e)}),S=()=>{if(r)return;let E;try{E=e.fn()}catch(w){E=Promise.reject(w)}Promise.resolve(E).then(h).catch(w=>{var A;if(r)return;const x=e.retry??(Xv?0:3),k=e.retryDelay??$Be,C=typeof k=="function"?k(n,w):k,R=x===!0||typeof x=="number"&&n{if(f())return b()}).then(()=>{t?g(w):S()})})};return HR(e.networkMode)?S():b().then(S),{promise:o,cancel:l,continue:()=>(i==null?void 0:i())?o:Promise.resolve(),cancelRetry:u,continueRetry:c}}function FBe(){let e=[],t=0,n=h=>{h()},r=h=>{h()},i=h=>setTimeout(h,0);const a=h=>{i=h},s=h=>{let g;t++;try{g=h()}finally{t--,t||u()}return g},o=h=>{t?e.push(h):i(()=>{n(h)})},l=h=>(...g)=>{o(()=>{h(...g)})},u=()=>{const h=e;e=[],h.length&&i(()=>{r(()=>{h.forEach(g=>{n(g)})})})};return{batch:s,batchCalls:l,schedule:o,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{r=h},setScheduler:a}}var rs=FBe(),Hg,bie,Due=(bie=class{constructor(){En(this,Hg,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),q8(this.gcTime)&&sn(this,Hg,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xv?1/0:5*60*1e3))}clearGcTimeout(){Le(this,Hg)&&(clearTimeout(Le(this,Hg)),sn(this,Hg,void 0))}},Hg=new WeakMap,bie),Ev,wv,Xu,ym,Ku,ys,Rx,Vg,xv,T4,Xc,Ah,yie,BBe=(yie=class extends Due{constructor(t){super();En(this,xv);En(this,Xc);En(this,Ev,void 0);En(this,wv,void 0);En(this,Xu,void 0);En(this,ym,void 0);En(this,Ku,void 0);En(this,ys,void 0);En(this,Rx,void 0);En(this,Vg,void 0);sn(this,Vg,!1),sn(this,Rx,t.defaultOptions),or(this,xv,T4).call(this,t.options),sn(this,ys,[]),sn(this,Xu,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,sn(this,Ev,t.state||UBe(this.options)),this.state=Le(this,Ev),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!Le(this,ys).length&&this.state.fetchStatus==="idle"&&Le(this,Xu).remove(this)}setData(t,n){const r=Y8(this.state.data,t,this.options);return or(this,Xc,Ah).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){or(this,Xc,Ah).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=Le(this,ym);return(r=Le(this,Ku))==null||r.cancel(t),n?n.then(tc).catch(tc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Le(this,Ev))}isActive(){return Le(this,ys).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||Le(this,ys).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Aue(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=Le(this,ys).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Le(this,Ku))==null||n.continue()}onOnline(){var n;const t=Le(this,ys).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Le(this,Ku))==null||n.continue()}addObserver(t){Le(this,ys).includes(t)||(Le(this,ys).push(t),this.clearGcTimeout(),Le(this,Xu).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){Le(this,ys).includes(t)&&(sn(this,ys,Le(this,ys).filter(n=>n!==t)),Le(this,ys).length||(Le(this,Ku)&&(Le(this,Vg)?Le(this,Ku).cancel({revert:!0}):Le(this,Ku).cancelRetry()),this.scheduleGc()),Le(this,Xu).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return Le(this,ys).length}invalidate(){this.state.isInvalidated||or(this,Xc,Ah).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Le(this,ym))return(u=Le(this,Ku))==null||u.continueRetry(),Le(this,ym)}if(t&&or(this,xv,T4).call(this,t),!this.options.queryFn){const g=Le(this,ys).find(b=>b.options.queryFn);g&&or(this,xv,T4).call(this,g.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},a=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(sn(this,Vg,!0),r.signal)})};a(i);const s=()=>this.options.queryFn?(sn(this,Vg,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};a(o),(c=this.options.behavior)==null||c.onFetch(o,this),sn(this,wv,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&or(this,Xc,Ah).call(this,{type:"fetch",meta:(h=o.fetchOptions)==null?void 0:h.meta});const l=g=>{var b,S,E,w;IN(g)&&g.silent||or(this,Xc,Ah).call(this,{type:"error",error:g}),IN(g)||((S=(b=Le(this,Xu).config).onError)==null||S.call(b,g,this),(w=(E=Le(this,Xu).config).onSettled)==null||w.call(E,this.state.data,g,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return sn(this,Ku,Iue({fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var b,S,E,w;if(typeof g>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(g),(S=(b=Le(this,Xu).config).onSuccess)==null||S.call(b,g,this),(w=(E=Le(this,Xu).config).onSettled)==null||w.call(E,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(g,b)=>{or(this,Xc,Ah).call(this,{type:"failed",failureCount:g,error:b})},onPause:()=>{or(this,Xc,Ah).call(this,{type:"pause"})},onContinue:()=>{or(this,Xc,Ah).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode})),sn(this,ym,Le(this,Ku).promise),Le(this,ym)}},Ev=new WeakMap,wv=new WeakMap,Xu=new WeakMap,ym=new WeakMap,Ku=new WeakMap,ys=new WeakMap,Rx=new WeakMap,Vg=new WeakMap,xv=new WeakSet,T4=function(t){this.options={...Le(this,Rx),...t},this.updateGcTime(this.options.gcTime)},Xc=new WeakSet,Ah=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:HR(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return IN(i)&&i.revert&&Le(this,wv)?{...Le(this,wv),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,...t.state}}};this.state=n(this.state),rs.batch(()=>{Le(this,ys).forEach(r=>{r.onQueryUpdate()}),Le(this,Xu).notify({query:this,type:"updated",action:t})})},yie);function UBe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,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 lf,vie,Nue=(vie=class extends _O{constructor(t={}){super();En(this,lf,void 0);this.config=t,sn(this,lf,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??jF(i,n);let s=this.get(a);return s||(s=new BBe({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Le(this,lf).has(t.queryHash)||(Le(this,lf).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Le(this,lf).get(t.queryHash);n&&(t.destroy(),n===t&&Le(this,lf).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){rs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Le(this,lf).get(t)}getAll(){return[...Le(this,lf).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>TX(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>TX(t,r)):n}notify(t){rs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){rs.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){rs.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lf=new WeakMap,vie),uf,Ix,ru,Tv,cf,tm,Oie,zBe=(Oie=class extends Due{constructor(t){super();En(this,cf);En(this,uf,void 0);En(this,Ix,void 0);En(this,ru,void 0);En(this,Tv,void 0);this.mutationId=t.mutationId,sn(this,Ix,t.defaultOptions),sn(this,ru,t.mutationCache),sn(this,uf,[]),this.state=t.state||Pue(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...Le(this,Ix),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Le(this,uf).includes(t)||(Le(this,uf).push(t),this.clearGcTimeout(),Le(this,ru).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){sn(this,uf,Le(this,uf).filter(n=>n!==t)),this.scheduleGc(),Le(this,ru).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Le(this,uf).length||(this.state.status==="pending"?this.scheduleGc():Le(this,ru).remove(this))}continue(){var t;return((t=Le(this,Tv))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,l,u,c,f,h,g,b,S,E,w,x,k,C,R,A,D;const n=()=>(sn(this,Tv,Iue({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(B,L)=>{or(this,cf,tm).call(this,{type:"failed",failureCount:B,error:L})},onPause:()=>{or(this,cf,tm).call(this,{type:"pause"})},onContinue:()=>{or(this,cf,tm).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),Le(this,Tv).promise),r=this.state.status==="pending";try{if(!r){or(this,cf,tm).call(this,{type:"pending",variables:t}),await((a=(i=Le(this,ru).config).onMutate)==null?void 0:a.call(i,t,this));const L=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));L!==this.state.context&&or(this,cf,tm).call(this,{type:"pending",context:L,variables:t})}const B=await n();return await((u=(l=Le(this,ru).config).onSuccess)==null?void 0:u.call(l,B,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,B,t,this.state.context)),await((g=(h=Le(this,ru).config).onSettled)==null?void 0:g.call(h,B,null,this.state.variables,this.state.context,this)),await((S=(b=this.options).onSettled)==null?void 0:S.call(b,B,null,t,this.state.context)),or(this,cf,tm).call(this,{type:"success",data:B}),B}catch(B){try{throw await((w=(E=Le(this,ru).config).onError)==null?void 0:w.call(E,B,t,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,B,t,this.state.context)),await((R=(C=Le(this,ru).config).onSettled)==null?void 0:R.call(C,void 0,B,this.state.variables,this.state.context,this)),await((D=(A=this.options).onSettled)==null?void 0:D.call(A,void 0,B,t,this.state.context)),B}finally{or(this,cf,tm).call(this,{type:"error",error:B})}}}},uf=new WeakMap,Ix=new WeakMap,ru=new WeakMap,Tv=new WeakMap,cf=new WeakSet,tm=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!HR(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),rs.batch(()=>{Le(this,uf).forEach(r=>{r.onMutationUpdate(t)}),Le(this,ru).notify({mutation:this,type:"updated",action:t})})},Oie);function Pue(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ju,Dx,Wg,Sie,jBe=(Sie=class extends _O{constructor(t={}){super();En(this,Ju,void 0);En(this,Dx,void 0);En(this,Wg,void 0);this.config=t,sn(this,Ju,[]),sn(this,Dx,0)}build(t,n,r){const i=new zBe({mutationCache:this,mutationId:++yC(this,Dx)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){Le(this,Ju).push(t),this.notify({type:"added",mutation:t})}remove(t){sn(this,Ju,Le(this,Ju).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){rs.batch(()=>{Le(this,Ju).forEach(t=>{this.remove(t)})})}getAll(){return Le(this,Ju)}find(t){const n={exact:!0,...t};return Le(this,Ju).find(r=>kX(n,r))}findAll(t={}){return Le(this,Ju).filter(n=>kX(t,n))}notify(t){rs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return sn(this,Wg,(Le(this,Wg)??Promise.resolve()).then(()=>{const t=Le(this,Ju).filter(n=>n.state.isPaused);return rs.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(tc)),Promise.resolve()))}).then(()=>{sn(this,Wg,void 0)})),Le(this,Wg)}},Ju=new WeakMap,Dx=new WeakMap,Wg=new WeakMap,Sie);function Z8(e){return{onFetch:(t,n)=>{const r=async()=>{var b,S,E,w,x;const i=t.options,a=(E=(S=(b=t.fetchOptions)==null?void 0:b.meta)==null?void 0:S.fetchMore)==null?void 0:E.direction,s=((w=t.state.data)==null?void 0:w.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),h=async(k,C,R)=>{if(u)return Promise.reject();if(C==null&&k.pages.length)return Promise.resolve(k);const A={queryKey:t.queryKey,pageParam:C,direction:R?"backward":"forward",meta:t.options.meta};c(A);const D=await f(A),{maxPages:B}=t.options,L=R?PBe:NBe;return{pages:L(k.pages,D,B),pageParams:L(k.pageParams,C,B)}};let g;if(a&&s.length){const k=a==="backward",C=k?Mue:X8,R={pages:s,pageParams:o},A=C(i,R);g=await h(R,A,k)}else{g=await h(l,o[0]??i.initialPageParam);const k=e??s.length;for(let C=1;C{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function X8(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function Mue(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function HBe(e,t){return t?X8(e,t)!=null:!1}function VBe(e,t){return!t||!e.getPreviousPageParam?!1:Mue(e,t)!=null}var Ka,vm,Om,kv,Cv,Sm,Av,_v,Eie,WBe=(Eie=class{constructor(e={}){En(this,Ka,void 0);En(this,vm,void 0);En(this,Om,void 0);En(this,kv,void 0);En(this,Cv,void 0);En(this,Sm,void 0);En(this,Av,void 0);En(this,_v,void 0);sn(this,Ka,e.queryCache||new Nue),sn(this,vm,e.mutationCache||new jBe),sn(this,Om,e.defaultOptions||{}),sn(this,kv,new Map),sn(this,Cv,new Map),sn(this,Sm,0)}mount(){yC(this,Sm)._++,Le(this,Sm)===1&&(sn(this,Av,i3.subscribe(()=>{i3.isFocused()&&(this.resumePausedMutations(),Le(this,Ka).onFocus())})),sn(this,_v,a3.subscribe(()=>{a3.isOnline()&&(this.resumePausedMutations(),Le(this,Ka).onOnline())})))}unmount(){var e,t;yC(this,Sm)._--,Le(this,Sm)===0&&((e=Le(this,Av))==null||e.call(this),sn(this,Av,void 0),(t=Le(this,_v))==null||t.call(this),sn(this,_v,void 0))}isFetching(e){return Le(this,Ka).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Le(this,vm).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=Le(this,Ka).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=Le(this,Ka).find({queryKey:e}),i=r==null?void 0:r.state.data,a=IBe(t,i);if(typeof a>"u")return;const s=this.defaultQueryOptions({queryKey:e});return Le(this,Ka).build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return rs.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=Le(this,Ka).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=Le(this,Ka);rs.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Le(this,Ka),r={type:"active",...e};return rs.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=rs.batch(()=>Le(this,Ka).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(tc).catch(tc)}invalidateQueries(e={},t={}){return rs.batch(()=>{if(Le(this,Ka).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=rs.batch(()=>Le(this,Ka).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(tc)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(tc)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=Le(this,Ka).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tc).catch(tc)}fetchInfiniteQuery(e){return e.behavior=Z8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tc).catch(tc)}resumePausedMutations(){return Le(this,vm).resumePausedMutations()}getQueryCache(){return Le(this,Ka)}getMutationCache(){return Le(this,vm)}getDefaultOptions(){return Le(this,Om)}setDefaultOptions(e){sn(this,Om,e)}setQueryDefaults(e,t){Le(this,kv).set(h1(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Le(this,kv).values()];let n={};return t.forEach(r=>{Uw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Le(this,Cv).set(h1(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Le(this,Cv).values()];let n={};return t.forEach(r=>{Uw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...Le(this,Om).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jF(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Le(this,Om).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Le(this,Ka).clear(),Le(this,vm).clear()}},Ka=new WeakMap,vm=new WeakMap,Om=new WeakMap,kv=new WeakMap,Cv=new WeakMap,Sm=new WeakMap,Av=new WeakMap,_v=new WeakMap,Eie),ml,Fi,Nx,Bo,Qg,Rv,df,Px,Iv,Dv,qg,Gg,Em,Nv,Yg,t2,Mx,K8,Lx,J8,$x,eM,Fx,tM,Bx,nM,Ux,rM,zx,iM,v5,$ue,wie,Lue=(wie=class extends _O{constructor(t,n){super();En(this,Yg);En(this,Mx);En(this,Lx);En(this,$x);En(this,Fx);En(this,Bx);En(this,Ux);En(this,zx);En(this,v5);En(this,ml,void 0);En(this,Fi,void 0);En(this,Nx,void 0);En(this,Bo,void 0);En(this,Qg,void 0);En(this,Rv,void 0);En(this,df,void 0);En(this,Px,void 0);En(this,Iv,void 0);En(this,Dv,void 0);En(this,qg,void 0);En(this,Gg,void 0);En(this,Em,void 0);En(this,Nv,new Set);this.options=n,sn(this,ml,t),sn(this,df,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Le(this,Fi).addObserver(this),_X(Le(this,Fi),this.options)?or(this,Yg,t2).call(this):this.updateResult(),or(this,Fx,tM).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return aM(Le(this,Fi),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return aM(Le(this,Fi),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,or(this,Bx,nM).call(this),or(this,Ux,rM).call(this),Le(this,Fi).removeObserver(this)}setOptions(t,n){const r=this.options,i=Le(this,Fi);if(this.options=Le(this,ml).defaultQueryOptions(t),r3(r,this.options)||Le(this,ml).getQueryCache().notify({type:"observerOptionsUpdated",query:Le(this,Fi),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),or(this,zx,iM).call(this);const a=this.hasListeners();a&&RX(Le(this,Fi),i,this.options,r)&&or(this,Yg,t2).call(this),this.updateResult(n),a&&(Le(this,Fi)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&or(this,Mx,K8).call(this);const s=or(this,Lx,J8).call(this);a&&(Le(this,Fi)!==i||this.options.enabled!==r.enabled||s!==Le(this,Em))&&or(this,$x,eM).call(this,s)}getOptimisticResult(t){const n=Le(this,ml).getQueryCache().build(Le(this,ml),t),r=this.createResult(n,t);return qBe(this,r)&&(sn(this,Bo,r),sn(this,Rv,this.options),sn(this,Qg,Le(this,Fi).state)),r}getCurrentResult(){return Le(this,Bo)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(Le(this,Nv).add(r),t[r])})}),n}getCurrentQuery(){return Le(this,Fi)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Le(this,ml).defaultQueryOptions(t),r=Le(this,ml).getQueryCache().build(Le(this,ml),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return or(this,Yg,t2).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Le(this,Bo)))}createResult(t,n){var A;const r=Le(this,Fi),i=this.options,a=Le(this,Bo),s=Le(this,Qg),o=Le(this,Rv),u=t!==r?t.state:Le(this,Nx),{state:c}=t;let{error:f,errorUpdatedAt:h,fetchStatus:g,status:b}=c,S=!1,E;if(n._optimisticResults){const D=this.hasListeners(),B=!D&&_X(t,n),L=D&&RX(t,r,n,i);(B||L)&&(g=HR(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(b="pending")),n._optimisticResults==="isRestoring"&&(g="idle")}if(n.select&&typeof c.data<"u")if(a&&c.data===(s==null?void 0:s.data)&&n.select===Le(this,Px))E=Le(this,Iv);else try{sn(this,Px,n.select),E=n.select(c.data),E=Y8(a==null?void 0:a.data,E,n),sn(this,Iv,E),sn(this,df,null)}catch(D){sn(this,df,D)}else E=c.data;if(typeof n.placeholderData<"u"&&typeof E>"u"&&b==="pending"){let D;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))D=a.data;else if(D=typeof n.placeholderData=="function"?n.placeholderData((A=Le(this,Dv))==null?void 0:A.state.data,Le(this,Dv)):n.placeholderData,n.select&&typeof D<"u")try{D=n.select(D),sn(this,df,null)}catch(B){sn(this,df,B)}typeof D<"u"&&(b="success",E=Y8(a==null?void 0:a.data,D,n),S=!0)}Le(this,df)&&(f=Le(this,df),E=Le(this,Iv),h=Date.now(),b="error");const w=g==="fetching",x=b==="pending",k=b==="error",C=x&&w;return{status:b,fetchStatus:g,isPending:x,isSuccess:b==="success",isError:k,isInitialLoading:C,isLoading:C,data:E,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:k&&c.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:S,isRefetchError:k&&c.dataUpdatedAt!==0,isStale:HF(t,n),refetch:this.refetch}}updateResult(t){const n=Le(this,Bo),r=this.createResult(Le(this,Fi),this.options);if(sn(this,Qg,Le(this,Fi).state),sn(this,Rv,this.options),Le(this,Qg).data!==void 0&&sn(this,Dv,Le(this,Fi)),r3(r,n))return;sn(this,Bo,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!Le(this,Nv).size)return!0;const l=new Set(o??Le(this,Nv));return this.options.throwOnError&&l.add("error"),Object.keys(Le(this,Bo)).some(u=>{const c=u;return Le(this,Bo)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),or(this,v5,$ue).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&or(this,Fx,tM).call(this)}},ml=new WeakMap,Fi=new WeakMap,Nx=new WeakMap,Bo=new WeakMap,Qg=new WeakMap,Rv=new WeakMap,df=new WeakMap,Px=new WeakMap,Iv=new WeakMap,Dv=new WeakMap,qg=new WeakMap,Gg=new WeakMap,Em=new WeakMap,Nv=new WeakMap,Yg=new WeakSet,t2=function(t){or(this,zx,iM).call(this);let n=Le(this,Fi).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(tc)),n},Mx=new WeakSet,K8=function(){if(or(this,Bx,nM).call(this),Xv||Le(this,Bo).isStale||!q8(this.options.staleTime))return;const n=Aue(Le(this,Bo).dataUpdatedAt,this.options.staleTime)+1;sn(this,qg,setTimeout(()=>{Le(this,Bo).isStale||this.updateResult()},n))},Lx=new WeakSet,J8=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Le(this,Fi)):this.options.refetchInterval)??!1},$x=new WeakSet,eM=function(t){or(this,Ux,rM).call(this),sn(this,Em,t),!(Xv||this.options.enabled===!1||!q8(Le(this,Em))||Le(this,Em)===0)&&sn(this,Gg,setInterval(()=>{(this.options.refetchIntervalInBackground||i3.isFocused())&&or(this,Yg,t2).call(this)},Le(this,Em)))},Fx=new WeakSet,tM=function(){or(this,Mx,K8).call(this),or(this,$x,eM).call(this,or(this,Lx,J8).call(this))},Bx=new WeakSet,nM=function(){Le(this,qg)&&(clearTimeout(Le(this,qg)),sn(this,qg,void 0))},Ux=new WeakSet,rM=function(){Le(this,Gg)&&(clearInterval(Le(this,Gg)),sn(this,Gg,void 0))},zx=new WeakSet,iM=function(){const t=Le(this,ml).getQueryCache().build(Le(this,ml),this.options);if(t===Le(this,Fi))return;const n=Le(this,Fi);sn(this,Fi,t),sn(this,Nx,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},v5=new WeakSet,$ue=function(t){rs.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Le(this,Bo))}),Le(this,ml).getQueryCache().notify({query:Le(this,Fi),type:"observerResultsUpdated"})})},wie);function QBe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _X(e,t){return QBe(e,t)||e.state.dataUpdatedAt>0&&aM(e,t,t.refetchOnMount)}function aM(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&HF(e,t)}return!1}function RX(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&HF(e,n)}function HF(e,t){return e.isStaleByTime(t.staleTime)}function qBe(e,t){return!r3(e.getCurrentResult(),t)}var GBe=class extends Lue{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Z8()},t)}getOptimisticResult(e){return e.behavior=Z8(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var l,u,c,f;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a}=r,s=i&&((u=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:u.direction)==="forward",o=i&&((f=(c=n.fetchMeta)==null?void 0:c.fetchMore)==null?void 0:f.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:HBe(t,n.data),hasPreviousPage:VBe(t,n.data),isFetchingNextPage:s,isFetchingPreviousPage:o,isRefetching:a&&!s&&!o}}},wm,Mh,iu,Lh,Pv,k4,jx,sM,xie,YBe=(xie=class extends _O{constructor(n,r){super();En(this,Pv);En(this,jx);En(this,wm,void 0);En(this,Mh,void 0);En(this,iu,void 0);En(this,Lh,void 0);sn(this,Mh,void 0),sn(this,wm,n),this.setOptions(r),this.bindMethods(),or(this,Pv,k4).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Le(this,wm).defaultMutationOptions(n),r3(r,this.options)||Le(this,wm).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Le(this,iu),observer:this}),(i=Le(this,iu))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&h1(r.mutationKey)!==h1(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=Le(this,iu))==null||n.removeObserver(this)}onMutationUpdate(n){or(this,Pv,k4).call(this),or(this,jx,sM).call(this,n)}getCurrentResult(){return Le(this,Mh)}reset(){var n;(n=Le(this,iu))==null||n.removeObserver(this),sn(this,iu,void 0),or(this,Pv,k4).call(this),or(this,jx,sM).call(this)}mutate(n,r){var i;return sn(this,Lh,r),(i=Le(this,iu))==null||i.removeObserver(this),sn(this,iu,Le(this,wm).getMutationCache().build(Le(this,wm),this.options)),Le(this,iu).addObserver(this),Le(this,iu).execute(n)}},wm=new WeakMap,Mh=new WeakMap,iu=new WeakMap,Lh=new WeakMap,Pv=new WeakSet,k4=function(){var r;const n=((r=Le(this,iu))==null?void 0:r.state)??Pue();sn(this,Mh,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},jx=new WeakSet,sM=function(n){rs.batch(()=>{var r,i,a,s,o,l,u,c;if(Le(this,Lh)&&this.hasListeners()){const f=Le(this,Mh).variables,h=Le(this,Mh).context;(n==null?void 0:n.type)==="success"?((i=(r=Le(this,Lh)).onSuccess)==null||i.call(r,n.data,f,h),(s=(a=Le(this,Lh)).onSettled)==null||s.call(a,n.data,null,f,h)):(n==null?void 0:n.type)==="error"&&((l=(o=Le(this,Lh)).onError)==null||l.call(o,n.error,f,h),(c=(u=Le(this,Lh)).onSettled)==null||c.call(u,void 0,n.error,f,h))}this.listeners.forEach(f=>{f(Le(this,Mh))})})},xie),Fue=N.createContext(void 0),hT=e=>{const t=N.useContext(Fue);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ZBe=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.createElement(Fue.Provider,{value:e},t)),Bue=N.createContext(!1),XBe=()=>N.useContext(Bue);Bue.Provider;function KBe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var JBe=N.createContext(KBe()),eUe=()=>N.useContext(JBe);function Uue(e,t){return typeof e=="function"?e(...t):!!e}var tUe=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},nUe=e=>{N.useEffect(()=>{e.clearReset()},[e])},rUe=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Uue(n,[e.error,r]),iUe=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},aUe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,sUe=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function zue(e,t,n){const r=hT(n),i=XBe(),a=eUe(),s=r.defaultQueryOptions(e);s._optimisticResults=i?"isRestoring":"optimistic",iUe(s),tUe(s,a),nUe(a);const[o]=N.useState(()=>new t(r,s)),l=o.getOptimisticResult(s);if(N.useSyncExternalStore(N.useCallback(u=>{const c=i?()=>{}:o.subscribe(rs.batchCalls(u));return o.updateResult(),c},[o,i]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),N.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),aUe(s,l))throw sUe(s,o,a);if(rUe({result:l,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:o.trackResult(l)}function RO(e,t){return zue(e,Lue,t)}function T0(e,t){const n=hT(t),[r]=N.useState(()=>new YBe(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);const i=N.useSyncExternalStore(N.useCallback(s=>r.subscribe(rs.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=N.useCallback((s,o)=>{r.mutate(s,o).catch(oUe)},[r]);if(i.error&&Uue(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function oUe(){}function VF(e,t){return zue(e,GBe,t)}const lUe={data:null},jue=k1({name:"document",initialState:lUe,reducers:{setDocumentData:(e,t)=>{e.data=t.payload}}}),{setDocumentData:s3}=jue.actions,WF=e=>e.document,uUe=jue.reducer,Hue=e=>["workspaces",e,"documents"],cUe=(e,t)=>["workpsaces",e,"documents",t],dUe=e=>VF({queryKey:Hue(e||""),queryFn:async({pageParam:n})=>(await Sr.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:30}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),fUe=(e,t)=>{const n=Du(),r=RO({queryKey:cUe(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await Sr.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}});return N.useEffect(()=>(r.data&&n(s3(r.data)),()=>{n(s3(null))}),[n,r.data]),r},hUe=e=>{const t=hT();return T0({mutationFn:async n=>(await Sr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Hue(e)})}})},pUe=(e,t)=>T0({mutationFn:async n=>(await Sr.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data}),mUe={data:null},Vue=k1({name:"workspace",initialState:mUe,reducers:{setWorkspaceData:(e,t)=>{e.data=t.payload}}}),{setWorkspaceData:IX}=Vue.actions,pT=e=>e.workspace,gUe=Vue.reducer,bUe=e=>["workspaces",e],Wue=()=>["workspaces"],QF=e=>{const t=Du(),n=RO({queryKey:bUe(e||""),enabled:!!e,queryFn:async()=>(await Sr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});return N.useEffect(()=>(n.data&&t(IX(n.data)),()=>{t(IX(null))}),[t,n.data]),n},yUe=()=>VF({queryKey:Wue(),queryFn:async({pageParam:t})=>(await Sr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),vUe=()=>{const e=hT();return T0({mutationFn:async t=>(await Sr.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:Wue()})}})},OUe=e=>T0({mutationFn:async t=>(await Sr.post(`/workspaces/${e}/invite-token`,t)).data}),SUe=()=>T0({mutationFn:async e=>(await Sr.post("/workspaces/join",e)).data});function o3(){return o3=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?(L(u),F.current=u):(L(ye),F.current=ye),E&&E({position:F.current})}}},[r,t,S,b,h,c,B,o,u,E,a]),te=N.useCallback(function(){r||(L(a),F.current=a)},[r,a]);return{position:B,endPosition:V,isDragging:R,separatorProps:o3({},Q,{onPointerDown:K,onKeyDown:X,onDoubleClick:te}),setPosition:L,splitterProps:o3({},Q,{onPointerDown:K,onKeyDown:X,onDoubleClick:te})}},kUe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(TUe({axis:e.axis,disabled:t!==void 0&&t,initial:n===void 0?0:n,min:r===void 0?0:r,max:i===void 0?1/0:i,reverse:e.reverse,onResizeStart:e.onResizeStart,onResizeEnd:e.onResizeEnd,containerRef:e.containerRef}))};const CUe=e=>{const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),t},AUe=(e,t=100,n=!1)=>{const r=CUe(e),i=N.useRef(),a=[t,n,r];function s(){i.current&&clearTimeout(i.current),i.current=void 0}N.useEffect(()=>s,a);function o(){i.current=void 0}return N.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(o,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},a)},_Ue=(e,t,n)=>{const r=N.useState(e);return[r[0],AUe(r[1],t,n)]};function DN(e,t,n,r){const i=N.useRef(n),a=N.useRef(r);N.useEffect(()=>{i.current=n,a.current=r}),N.useEffect(()=>{const s=e&&"current"in e?e.current:e;if(!s)return;let o=0;function l(...c){o||i.current.apply(this,c)}s.addEventListener(t,l);const u=a.current;return()=>{o=1,s.removeEventListener(t,l),u&&u()}},[e,t])}const RUe={},D2=typeof window>"u"?null:window,IUe=D2&&typeof D2.visualViewport<"u"?D2.visualViewport:null,DX=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],DUe=function(e){e===void 0&&(e=RUe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[a,s]=_Ue(typeof document>"u"?[r,i]:DX,t,n),o=()=>s(DX);return DN(D2,"resize",o),DN(IUe,"resize",o),DN(D2,"orientationchange",o),a},NUe=e=>DUe(e)[0];class Kr{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=Kv(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),C4.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=Kv(this,t,n);let r=[];return this.decompose(t,n,r,0),C4.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new N2(this),a=new N2(t);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(t=1){return new N2(this,t)}iterRange(t,n=this.length){return new Gue(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Yue(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?Kr.empty:t.length<=32?new Na(t):C4.from(Na.split(t,[]))}}class Na extends Kr{constructor(t,n=PUe(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.text[a],o=i+s.length;if((n?r:o)>=t)return new MUe(i,o,r,s);i=o+1,r++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new Na(NX(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),o=A4(a.text,s.text.slice(),0,a.length);if(o.length<=32)r.push(new Na(o,s.length+a.length));else{let l=o.length>>1;r.push(new Na(o.slice(0,l)),new Na(o.slice(l)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof Na))return super.replace(t,n,r);[t,n]=Kv(this,t,n);let i=A4(this.text,A4(r.text,NX(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new Na(i,a):C4.from(Na.split(i,[]),a)}sliceString(t,n=this.length,r=` -`){[t,n]=Kv(this,t,n);let i="";for(let a=0,s=0;a<=n&&st&&s&&(i+=r),ta&&(i+=o.slice(Math.max(0,t-a),n-a)),a=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new Na(r,i)),r=[],i=-1);return i>-1&&n.push(new Na(r,i)),n}}let C4=class oy extends Kr{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.children[a],o=i+s.length,l=r+s.lines-1;if((n?l:o)>=t)return s.lineInner(t,n,r,i);i=o+1,r=l+1}}decompose(t,n,r,i){for(let a=0,s=0;s<=n&&a=s){let u=i&((s<=t?1:0)|(l>=n?2:0));s>=t&&l<=n&&!u?r.push(o):o.decompose(t-s,n-s,r,u)}s=l+1}}replace(t,n,r){if([t,n]=Kv(this,t,n),r.lines=a&&n<=o){let l=s.replace(t-a,n-a,r),u=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new oy(c,this.length-(n-t)+r.length)}return super.replace(a,o,l)}a=o+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` -`){[t,n]=Kv(this,t,n);let i="";for(let a=0,s=0;at&&a&&(i+=r),ts&&(i+=o.sliceString(t-s,n-s,r)),s=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof oy))return 0;let r=0,[i,a,s,o]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==s||a==o)return r;let l=this.children[i],u=t.children[a];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let g of t)r+=g.lines;if(r<32){let g=[];for(let b of t)b.flatten(g);return new Na(g,n)}let i=Math.max(32,r>>5),a=i<<1,s=i>>1,o=[],l=0,u=-1,c=[];function f(g){let b;if(g.lines>a&&g instanceof oy)for(let S of g.children)f(S);else g.lines>s&&(l>s||!l)?(h(),o.push(g)):g instanceof Na&&l&&(b=c[c.length-1])instanceof Na&&g.lines+b.lines<=32?(l+=g.lines,u+=g.length+1,c[c.length-1]=new Na(b.text.concat(g.text),b.length+1+g.length)):(l+g.lines>i&&h(),l+=g.lines,u+=g.length+1,c.push(g))}function h(){l!=0&&(o.push(c.length==1?c[0]:oy.from(c,u)),u=-1,l=c.length=0)}for(let g of t)f(g);return h(),o.length==1?o[0]:new oy(o,n)}};Kr.empty=new Na([""],0);function PUe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function A4(e,t,n=0,r=1e9){for(let i=0,a=0,s=!0;a=n&&(l>r&&(o=o.slice(0,r-i)),i0?1:(t instanceof Na?t.text.length:t.children.length)<<1]}nextInner(t,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 Na?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,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(i instanceof Na){let l=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[s+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Na?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Gue{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new N2(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=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;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Yue{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:i}=this.inner.next(t);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"&&(Kr.prototype[Symbol.iterator]=function(){return this.iter()},N2.prototype[Symbol.iterator]=Gue.prototype[Symbol.iterator]=Yue.prototype[Symbol.iterator]=function(){return this});let MUe=class{constructor(t,n,r,i){this.from=t,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}};function Kv(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let Ky="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=1;ee)return Ky[t-1]<=e;return!1}function PX(e){return e>=127462&&e<=127487}const MX=8205;function Qs(e,t,n=!0,r=!0){return(n?Zue:$Ue)(e,t,r)}function Zue(e,t,n){if(t==e.length)return t;t&&Xue(e.charCodeAt(t))&&Kue(e.charCodeAt(t-1))&&t--;let r=zs(e,t);for(t+=uc(r);t=0&&PX(zs(e,s));)a++,s-=2;if(a%2==0)break;t+=2}else break}return t}function $Ue(e,t,n){for(;t>0;){let r=Zue(e,t-2,n);if(r=56320&&e<57344}function Kue(e){return e>=55296&&e<56320}function zs(e,t){let n=e.charCodeAt(t);if(!Kue(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Xue(r)?(n-55296<<10)+(r-56320)+65536:n}function qF(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function uc(e){return e<65536?1:2}const oM=/\r\n?|\n/;var Hs=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Hs||(Hs={}));class Mf{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return a+(t-i);a+=o}else{if(r!=Hs.Simple&&u>=t&&(r==Hs.TrackDel&&it||r==Hs.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!o)return t==i||n<0?a:a+l;a+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return a}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&o>=t)return in?"cover":!0;i=o}return!1}toString(){let t="";for(let n=0;n=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Mf(t)}static create(t){return new Mf(t)}}class ts extends Mf{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return lM(this,(n,r,i,a,s)=>t=t.replace(i,i+(r-n),s),!1),t}mapDesc(t,n=!1){return uM(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,a=0;i=0){n[i]=o,n[i+1]=s;let l=i>>1;for(;r.length0&&Cm(r,n,a.text),a.forward(c),o+=c}let u=t[s++];for(;o>1].toJSON()))}return t}static of(t,n,r){let i=[],a=[],s=0,o=null;function l(c=!1){if(!c&&!i.length)return;sh||f<0||h>n)throw new RangeError(`Invalid change range ${f} to ${h} (in doc of length ${n})`);let b=g?typeof g=="string"?Kr.of(g.split(r||oM)):g:Kr.empty,S=b.length;if(f==h&&S==0)return;fs&&po(i,f-s,-1),po(i,h-f,S),Cm(a,i,b),s=h}}return u(t),l(!o),o}static empty(t){return new ts(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;io&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function Cm(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)o=e.sections[s++],l=e.sections[s++];t(i,u,a,c,f),i=u,a=c}}}function uM(e,t,n,r=!1){let i=[],a=r?[]:null,s=new zw(e),o=new zw(t);for(let l=-1;;)if(s.ins==-1&&o.ins==-1){let u=Math.min(s.len,o.len);po(i,u,-1),s.forward(u),o.forward(u)}else if(o.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(o.len=0&&l=0){let u=0,c=s.len;for(;c;)if(o.ins==-1){let f=Math.min(c,o.len);u+=f,c-=f,o.forward(f)}else if(o.ins==0&&o.lenl||s.ins>=0&&s.len>l)&&(o||r.length>u),a.forward2(l),s.forward(l)}}}}class zw{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?Kr.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?Kr.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class Mg{constructor(t,n,r){this.from=t,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 t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new Mg(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return Ot.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return Ot.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ot.range(t.anchor,t.head)}static create(t,n,r){return new Mg(t,n,r)}}class Ot{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:Ot.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;rt.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ot(t.ranges.map(n=>Mg.fromJSON(n)),t.main)}static single(t,n=t){return new Ot([Ot.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;it?8:0)|a)}static normalized(t,n=0){let r=t[n];t.sort((i,a)=>i.from-a.from),n=t.indexOf(r);for(let i=1;ia.head?Ot.range(l,o):Ot.range(o,l))}}return new Ot(t,n)}}function ece(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let GF=0;class Sn{constructor(t,n,r,i,a){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=GF++,this.default=t([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(t={}){return new Sn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:YF),!!t.static,t.enables)}of(t){return new _4([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new _4(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new _4(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function YF(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class _4{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=GF++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,a=this.id,s=t[a]>>1,o=this.type==2,l=!1,u=!1,c=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:((n=t[f.id])!==null&&n!==void 0?n:1)&1||c.push(t[f.id]);return{create(f){return f.values[s]=r(f),1},update(f,h){if(l&&h.docChanged||u&&(h.docChanged||h.selection)||cM(f,c)){let g=r(f);if(o?!LX(g,f.values[s],i):!i(g,f.values[s]))return f.values[s]=g,1}return 0},reconfigure:(f,h)=>{let g,b=h.config.address[a];if(b!=null){let S=u3(h,b);if(this.dependencies.every(E=>E instanceof Sn?h.facet(E)===f.facet(E):E instanceof As?h.field(E,!1)==f.field(E,!1):!0)||(o?LX(g=r(f),S,i):i(g=r(f),S)))return f.values[s]=S,0}else g=r(f);return f.values[s]=g,1}}}}function LX(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),a=r.filter(l=>!(l&1)),s=e[t.id]>>1;function o(l){let u=[];for(let c=0;cr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet($X).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[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(t){return[this,$X.of({field:this,create:t})]}get extension(){return this}}const xg={lowest:4,low:3,default:2,high:1,highest:0};function wE(e){return t=>new tce(t,e)}const k0={highest:wE(xg.highest),high:wE(xg.high),default:wE(xg.default),low:wE(xg.low),lowest:wE(xg.lowest)};class tce{constructor(t,n){this.inner=t,this.prec=n}}class VR{of(t){return new dM(this,t)}reconfigure(t){return VR.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class dM{constructor(t,n){this.compartment=t,this.inner=n}}class l3{constructor(t,n,r,i,a,s){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],a=Object.create(null),s=new Map;for(let h of BUe(t,n,s))h instanceof As?i.push(h):(a[h.facet.id]||(a[h.facet.id]=[])).push(h);let o=Object.create(null),l=[],u=[];for(let h of i)o[h.id]=u.length<<1,u.push(g=>h.slot(g));let c=r==null?void 0:r.config.facets;for(let h in a){let g=a[h],b=g[0].facet,S=c&&c[h]||[];if(g.every(E=>E.type==0))if(o[b.id]=l.length<<1|1,YF(S,g))l.push(r.facet(b));else{let E=b.combine(g.map(w=>w.value));l.push(r&&b.compare(E,r.facet(b))?r.facet(b):E)}else{for(let E of g)E.type==0?(o[E.id]=l.length<<1|1,l.push(E.value)):(o[E.id]=u.length<<1,u.push(w=>E.dynamicSlot(w)));o[b.id]=u.length<<1,u.push(E=>FUe(E,b,g))}}let f=u.map(h=>h(o));return new l3(t,s,f,o,l,a)}}function BUe(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(s,o){let l=i.get(s);if(l!=null){if(l<=o)return;let u=r[l].indexOf(s);u>-1&&r[l].splice(u,1),s instanceof dM&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let u of s)a(u,o);else if(s instanceof dM){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(s.compartment)||s.inner;n.set(s.compartment,u),a(u,o)}else if(s instanceof tce)a(s.inner,s.prec);else if(s instanceof As)r[o].push(s),s.provides&&a(s.provides,o);else if(s instanceof _4)r[o].push(s),s.facet.extensions&&a(s.facet.extensions,xg.default);else{let u=s.extension;if(!u)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(u,o)}}return a(e,xg.default),r.reduce((s,o)=>s.concat(o))}function P2(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function u3(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const nce=Sn.define(),fM=Sn.define({combine:e=>e.some(t=>t),static:!0}),rce=Sn.define({combine:e=>e.length?e[0]:void 0,static:!0}),ice=Sn.define(),ace=Sn.define(),sce=Sn.define(),oce=Sn.define({combine:e=>e.length?e[0]:!1});class Cd{constructor(t,n){this.type=t,this.value=n}static define(){return new UUe}}class UUe{of(t){return new Cd(this,t)}}class zUe{constructor(t){this.map=t}of(t){return new dr(this,t)}}class dr{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new dr(this.type,n)}is(t){return this.type==t}static define(t={}){return new zUe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let a=i.map(n);a&&r.push(a)}return r}}dr.reconfigure=dr.define();dr.appendConfig=dr.define();let xs=class n2{constructor(t,n,r,i,a,s){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=s,this._doc=null,this._state=null,r&&ece(r,n.newLength),a.some(o=>o.type==n2.time)||(this.annotations=a.concat(n2.time.of(Date.now())))}static create(t,n,r,i,a,s){return new n2(t,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(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(n2.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}};xs.time=Cd.define();xs.userEvent=Cd.define();xs.addToHistory=Cd.define();xs.remote=Cd.define();function jUe(e,t){let n=[];for(let r=0,i=0;;){let a,s;if(r=e[r]))a=e[r++],s=e[r++];else if(i=0;i--){let a=r[i](e);a instanceof xs?e=a:Array.isArray(a)&&a.length==1&&a[0]instanceof xs?e=a[0]:e=uce(t,Jy(a),!1)}return e}function VUe(e){let t=e.startState,n=t.facet(sce),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=lce(r,hM(t,a,e.changes.newLength),!0))}return r==e?e:xs.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const WUe=[];function Jy(e){return e==null?WUe:Array.isArray(e)?e:[e]}var Xi=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Xi||(Xi={}));const QUe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let pM;try{pM=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function qUe(e){if(pM)return pM.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||QUe.test(n)))return!0}return!1}function GUe(e){return t=>{if(!/\S/.test(t))return Xi.Space;if(qUe(t))return Xi.Word;for(let n=0;n-1)return Xi.Word;return Xi.Other}}class Hr{constructor(t,n,r,i,a,s){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=a,s&&(s._state=this);for(let o=0;oi.set(u,l)),n=null),i.set(o.value.compartment,o.value.extension)):o.is(dr.reconfigure)?(n=null,r=o.value):o.is(dr.appendConfig)&&(n=null,r=Jy(r).concat(o.value));let a;n?a=t.startState.values.slice():(n=l3.resolve(r,i,this),a=new Hr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let s=t.startState.facet(fM)?t.newSelection:t.newSelection.asSingle();new Hr(n,t.newDoc,s,a,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:Ot.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),a=[r.range],s=Jy(r.effects);for(let o=1;os.spec.fromJSON(o,l)))}}return Hr.create({doc:t.doc,selection:Ot.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=l3.resolve(t.extensions||[],new Map),r=t.doc instanceof Kr?t.doc:Kr.of((t.doc||"").split(n.staticFacet(Hr.lineSeparator)||oM)),i=t.selection?t.selection instanceof Ot?t.selection:Ot.single(t.selection.anchor,t.selection.head):Ot.single(0);return ece(i,r.length),n.staticFacet(fM)||(i=i.asSingle()),new Hr(n,r,i,n.dynamicSlots.map(()=>null),(a,s)=>s.create(a),null)}get tabSize(){return this.facet(Hr.tabSize)}get lineBreak(){return this.facet(Hr.lineSeparator)||` -`}get readOnly(){return this.facet(oce)}phrase(t,...n){for(let r of this.facet(Hr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let a=+(i||1);return!a||a>n.length?r:n[a-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let a of this.facet(nce))for(let s of a(this,n,r))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){return GUe(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),a=this.charCategorizer(t),s=t-r,o=t-r;for(;s>0;){let l=Qs(n,s,!1);if(a(n.slice(l,s))!=Xi.Word)break;s=l}for(;oe.length?e[0]:4});Hr.lineSeparator=rce;Hr.readOnly=oce;Hr.phrases=Sn.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(i=>e[i]==t[i])}});Hr.languageData=nce;Hr.changeFilter=ice;Hr.transactionFilter=ace;Hr.transactionExtender=sce;VR.reconfigure=dr.define();function qf(e,t,n={}){let r={};for(let i of e)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 t)r[i]===void 0&&(r[i]=t[i]);return r}class p1{eq(t){return this==t}range(t,n=t){return mM.create(t,n,this)}}p1.prototype.startSide=p1.prototype.endSide=0;p1.prototype.point=!1;p1.prototype.mapMode=Hs.TrackDel;let mM=class cce{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new cce(t,n,r)}};function gM(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class ZF{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let a=r?this.to:this.from;for(let s=i,o=a.length;;){if(s==o)return s;let l=s+o>>1,u=a[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==s)return u>=0?s:o;u>=0?o=l:s=l+1}}between(t,n,r,i){for(let a=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,a);ag||h==g&&u.startSide>0&&u.endSide<=0)continue;(g-h||u.endSide-u.startSide)<0||(s<0&&(s=h),u.point&&(o=Math.max(o,g-h)),r.push(u),i.push(h-s),a.push(g-s))}return{mapped:r.length?new ZF(i,a,r,o):null,pos:s}}}class Br{constructor(t,n,r,i){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(t,n,r,i){return new Br(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,s=t.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(gM)),this.isEmpty)return n.length?Br.of(n):this;let o=new dce(this,null,-1).goto(0),l=0,u=[],c=new i0;for(;o.value||l=0){let f=n[l++];c.addInner(f.from,f.to,f.value)||u.push(f)}else o.rangeIndex==1&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ao.to||a=a&&t<=a+s.length&&s.between(a,t-a,n-a,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return jw.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return jw.from(t).goto(n)}static compare(t,n,r,i,a=-1){let s=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),o=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),l=FX(s,o,r),u=new xE(s,l,a),c=new xE(o,l,a);r.iterGaps((f,h,g)=>BX(u,f,c,h,g,i)),r.empty&&r.length==0&&BX(u,0,c,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let a=t.filter(c=>!c.isEmpty&&n.indexOf(c)<0),s=n.filter(c=>!c.isEmpty&&t.indexOf(c)<0);if(a.length!=s.length)return!1;if(!a.length)return!0;let o=FX(a,s),l=new xE(a,o,0).goto(r),u=new xE(s,o,0).goto(r);for(;;){if(l.to!=u.to||!bM(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(t,n,r,i,a=-1){let s=new xE(t,null,a).goto(n),o=n,l=s.openStart;for(;;){let u=Math.min(s.to,r);if(s.point){let c=s.activeForPoint(s.to),f=s.pointFromo&&(i.span(o,u,s.active,l),l=s.openEnd(u));if(s.to>r)return l+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(t,n=!1){let r=new i0;for(let i of t instanceof mM?[t]:n?YUe(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Br.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Br.empty;i=i.nextLayer)n=new Br(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Br.empty=new Br([],[],null,-1);function YUe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(gM);t=r}return e}Br.empty.nextLayer=Br.empty;class i0{finishChunk(t){this.chunks.push(new ZF(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,t&&(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(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new i0)).add(t,n,r)}addInner(t,n,r){let i=t-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(t-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=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-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(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(Br.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Br.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function FX(e,t,n){let r=new Map;for(let a of e)for(let s=0;s=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new dce(s,n,r,a));return i.length==1?i[0]:new jw(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,n=-1e9){for(let r of this.heap)r.goto(t,n);for(let r=this.heap.length>>1;r>=0;r--)NN(this.heap,r);return this.next(),this}forward(t,n){for(let r of this.heap)r.forward(t,n);for(let r=this.heap.length>>1;r>=0;r--)NN(this.heap,r);(this.to-t||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 t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),NN(this.heap,0)}}}function NN(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class xE{constructor(t,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=jw.from(t,n,r)}goto(t,n=-1e9){return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}forward(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}removeActive(t){XC(this.active,t),XC(this.activeTo,t),XC(this.activeRank,t),this.minActive=UX(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n0;)n++;KC(this.active,n,r),KC(this.activeTo,n,i),KC(this.activeRank,n,a),t&&KC(t,n,this.cursor.from),this.minActive=UX(this.active,this.activeTo)}next(){let t=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]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&XC(r,i)}else if(this.cursor.value)if(this.cursor.from>t){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=0&&r[i]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function BX(e,t,n,r,i,a){e.goto(t),n.goto(r);let s=r+i,o=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,c=u<0?e.to+l:n.to,f=Math.min(c,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&bM(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(o,f,e.point,n.point):f>o&&!bM(e.active,n.active)&&a.compareRange(o,f,e.active,n.active),c>s)break;o=c,u<=0&&e.next(),u>=0&&n.next()}}function bM(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function UX(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;a+=e.charCodeAt(i)==9?n-a%n:1,i=Qs(e,i)}return r===!0?-1:e.length}const vM="ͼ",zX=typeof Symbol>"u"?"__"+vM:Symbol.for(vM),OM=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),jX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class a0{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function a(s,o,l,u){let c=[],f=/^@(\w+)\b/.exec(s[0]),h=f&&f[1]=="keyframes";if(f&&o==null)return l.push(s[0]+";");for(let g in o){let b=o[g];if(/&/.test(g))a(g.split(/,\s*/).map(S=>s.map(E=>S.replace(/&/,E))).reduce((S,E)=>S.concat(E)),b,l);else if(b&&typeof b=="object"){if(!f)throw new RangeError("The value of a property ("+g+") should be a primitive value.");a(i(g),b,c,h)}else b!=null&&c.push(g.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+b+";")}(c.length||h)&&l.push((r&&!f&&!u?s.map(r):s).join(", ")+" {"+c.join(" ")+"}")}for(let s in t)a(i(s),t[s],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=jX[zX]||1;return jX[zX]=t+1,vM+t.toString(36)}static mount(t,n,r){let i=t[OM],a=r&&r.nonce;i?a&&i.setNonce(a):i=new ZUe(t,a),i.mount(Array.isArray(n)?n:[n])}}let HX=new Map;class ZUe{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let a=HX.get(r);if(a)return t.adoptedStyleSheets=[a.sheet,...t.adoptedStyleSheets],t[OM]=a;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],HX.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let a=t.head||t;a.insertBefore(this.styleTag,a.firstChild)}this.modules=[],t[OM]=this}mount(t){let n=this.sheet,r=0,i=0;for(let a=0;a-1&&(this.modules.splice(o,1),i--,o=-1),o==-1){if(this.modules.splice(i++,0,s),n)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},XUe=typeof navigator<"u"&&/Mac/.test(navigator.platform),KUe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var js=0;js<10;js++)s0[48+js]=s0[96+js]=String(js);for(var js=1;js<=24;js++)s0[js+111]="F"+js;for(var js=65;js<=90;js++)s0[js]=String.fromCharCode(js+32),Hw[js]=String.fromCharCode(js);for(var PN in s0)Hw.hasOwnProperty(PN)||(Hw[PN]=s0[PN]);function JUe(e){var t=XUe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||KUe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Hw:s0)[e.keyCode]||e.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 c3(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function SM(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function eze(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function R4(e,t){if(!t.anchorNode)return!1;try{return SM(e,t.anchorNode)}catch{return!1}}function Vw(e){return e.nodeType==3?m1(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function M2(e,t,n,r){return n?VX(e,t,n,r,-1)||VX(e,t,n,r,1):!1}function Ww(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function VX(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:ip(e))){if(e.nodeName=="DIV")return!1;let a=e.parentNode;if(!a||a.nodeType!=1)return!1;t=Ww(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?ip(e):0}else return!1}}function ip(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function XF(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function tze(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function fce(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function nze(e,t,n,r,i,a,s,o){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,f=!1;c&&!f;)if(c.nodeType==1){let h,g=c==l.body,b=1,S=1;if(g)h=tze(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let x=c.getBoundingClientRect();({scaleX:b,scaleY:S}=fce(c,x)),h={left:x.left,right:x.left+c.clientWidth*b,top:x.top,bottom:x.top+c.clientHeight*S}}let E=0,w=0;if(i=="nearest")t.top0&&t.bottom>h.bottom+w&&(w=t.bottom-h.bottom+w+s)):t.bottom>h.bottom&&(w=t.bottom-h.bottom+s,n<0&&t.top-w0&&t.right>h.right+E&&(E=t.right-h.right+E+a)):t.right>h.right&&(E=t.right-h.right+a,n<0&&t.leftn.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class ize{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?ip(n):0),r,Math.min(t.focusOffset,r?ip(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Gb=null;function hce(e){if(e.setActive)return e.setActive();if(Gb)return e.focus(Gb);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Gb==null?{get preventScroll(){return Gb={preventScroll:!0},!0}}:void 0),!Gb){Gb=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class go{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new go(t.parentNode,Ww(t),n)}static after(t,n){return new go(t.parentNode,Ww(t)+1,n)}}const KF=[];class zi{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(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,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=zi.get(a);(!o||!o.parent&&o.canReuseDOM(s))&&s.reuseDOM(a)}s.sync(t,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=QX(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=QX(a)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let i=ip(t)==0?0:n==0?-1:1;for(;;){let a=t.parentNode;if(a==this.dom)break;i==0&&a.firstChild!=a.lastChild&&(t==a.firstChild?i=-1:i=1),t=a}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!zi.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(t,n,r=0){let i=-1,a=-1,s=-1,o=-1;for(let l=0,u=r,c=r;ln)return f.domBoundsAround(t,n,u);if(h>=t&&i==-1&&(i=l,a=u),u>n&&f.dom.parentNode==this.dom){s=l,o=c;break}c=h,u=h+f.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=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=KF){this.markDirty();for(let i=t;ithis.pos||t==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function bce(e,t,n,r,i,a,s,o,l){let{children:u}=e,c=u.length?u[t]:null,f=a.length?a[a.length-1]:null,h=f?f.breakAfter:s;if(!(t==r&&c&&!s&&!h&&a.length<2&&c.merge(n,i,a.length?f:null,n==0,o,l))){if(r0&&(!s&&a.length&&c.merge(n,c.length,a[0],!1,o,0)?c.breakAfter=a.shift().breakAfter:(n2);var wn={mac:YX||/Mac/.test(mu.platform),windows:/Win/.test(mu.platform),linux:/Linux|X11/.test(mu.platform),ie:WR,ie_version:vce?EM.documentMode||6:xM?+xM[1]:wM?+wM[1]:0,gecko:qX,gecko_version:qX?+(/Firefox\/(\d+)/.exec(mu.userAgent)||[0,0])[1]:0,chrome:!!MN,chrome_version:MN?+MN[1]:0,ios:YX,android:/Android\b/.test(mu.userAgent),webkit:GX,safari:Oce,webkit_version:GX?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:EM.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const oze=256;class ap extends zi{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,n,r){return this.flags&8||r&&(!(r instanceof ap)||this.length-(n-t)+r.length>oze||r.flags&8)?!1:(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(t){let n=new ap(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(t,n){return t==this.dom?n:n?this.text.length:0}domAtPos(t){return new go(this.dom,t)}domBoundsAround(t,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,n){return lze(this.dom,t,n)}}class sp extends zi{constructor(t,n=[],r=0){super(),this.mark=t,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(t){if(pce(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,a,s){return r&&(!(r instanceof sp&&r.mark.eq(this.mark))||t&&a<=0||nt&&n.push(r=t&&(i=a),r=l,a++}let s=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new sp(this.mark,n,s)}domAtPos(t){return Sce(this,t)}coordsAt(t,n){return wce(this,t,n)}}function lze(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,a=t,s=0;t==0&&n<0||t==r&&n>=0?wn.chrome||wn.gecko||(t?(i--,s=1):a=0)?0:o.length-1];return wn.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(o,u=>u.width)||l),s?XF(l,s<0):l||null}class Am extends zi{static create(t,n,r){return new Am(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=Am.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,a,s){return r&&(!(r instanceof Am)||!this.widget.compare(r.widget)||t>0&&a<=0||n0)?go.before(this.dom):go.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),a=null;if(!i.length)return null;let s=this.side?this.side<0:t>0;for(let o=s?i.length-1:0;a=i[o],!(t>0?o==0:o==i.length-1||a.top0?go.before(this.dom):go.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Kr.empty}get isHidden(){return!0}}ap.prototype.children=Am.prototype.children=Jv.prototype.children=KF;function Sce(e,t){let n=e.dom,{children:r}=e,i=0;for(let a=0;ia&&t0;a--){let s=r[a-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let a=i;a0&&t instanceof sp&&i.length&&(r=i[i.length-1])instanceof sp&&r.mark.eq(t.mark)?Ece(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function wce(e,t,n){let r=null,i=-1,a=null,s=-1;function o(u,c){for(let f=0,h=0;f=c&&(g.children.length?o(g,c-h):(!a||a.isHidden&&n>0)&&(b>c||h==b&&g.getSide()>0)?(a=g,s=c-h):(h-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||e[a]!==t[a]))return!1;return!0}function kM(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,i=="style"?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,i=="style"?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function cze(e){let t=Object.create(null);for(let n=0;n0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){JF(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){Ece(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=TM(n,this.attrs||{})),r&&(this.attrs=TM({class:r},this.attrs||{}))}domAtPos(t){return Sce(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(pce(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&&(kM(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,n);let i=this.dom.lastChild;for(;i&&zi.get(i)instanceof sp;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=zi.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!wn.ios||!this.children.some(a=>a instanceof ap))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof ap)||/[^ -~]/.test(r.text))return null;let i=Vw(r.dom);if(i.length!=1)return null;t+=i[0].width,n=i[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:n}:null}coordsAt(t,n){let r=wce(this,t,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=n){if(a instanceof Ja)return a;if(s>n)break}i=s+a.breakAfter}return null}}class Hm extends zi{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,a,s){return r&&(!(r instanceof Hm)||!this.widget.compare(r.widget)||t>0&&a<=0||n0}}class Ad{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var qo=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(qo||(qo={}));class An extends p1{constructor(t,n,r,i){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(t){return new mT(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new o0(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:a,end:s}=xce(t,n);r=(a?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new o0(t,r,i,n,t.widget||null,!0)}static line(t){return new gT(t)}static set(t,n=!1){return Br.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}An.none=Br.empty;class mT extends An{constructor(t){let{start:n,end:r}=xce(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var n,r;return this==t||t instanceof mT&&this.tagName==t.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(t.class||((r=t.attrs)===null||r===void 0?void 0:r.class))&&JF(this.attrs,t.attrs,"class")}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}mT.prototype.point=!1;class gT extends An{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof gT&&this.spec.class==t.spec.class&&JF(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}gT.prototype.mapMode=Hs.TrackBefore;gT.prototype.point=!0;class o0 extends An{constructor(t,n,r,i,a,s){super(n,r,a,t),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?Hs.TrackBefore:Hs.TrackAfter:Hs.TrackDel}get type(){return this.startSide!=this.endSide?qo.WidgetRange:this.startSide<=0?qo.WidgetBefore:qo.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof o0&&dze(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}o0.prototype.point=!0;function xce(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function dze(e,t){return e==t||!!(e&&t&&e.compare(t))}function CM(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}class L2{constructor(t,n,r,i){this.doc=t,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=t.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Hm&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Ja),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(JC(new Jv(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof Hm)&&this.getLine()}buildText(t,n,r){for(;t>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,t--;continue}else this.text=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(JC(new ap(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,a,s){if(this.disallowBlockEffectsFor[s]&&r instanceof o0){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-t;if(r instanceof o0)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Hm(r.widget||new XX("div"),o,r));else{let l=Am.create(r.widget||new XX("span"),o,o?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&a<=i.length&&(t0),c=!l.isEditable&&(ti.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(JC(new Jv(1),i),a),a=i.length+Math.max(0,a-i.length)),f.append(JC(l,i),a),this.atCursorPos=c,this.pendingBuffer=c?ti.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(t,n,r,i,a){let s=new L2(t,n,r,a);return s.openEnd=Br.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function JC(e,t){for(let n of t)e=new sp(n,[e],e.length);return e}class XX extends Ad{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var Hi=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Hi||(Hi={}));const g1=Hi.LTR,eB=Hi.RTL;function Tce(e){let t=[];for(let n=0;n=n){if(o.level==r)return s;(a<0||(i!=0?i<0?o.fromn:t[a].level>o.level))&&(a=s)}}if(a<0)throw new RangeError("Index out of range");return a}}function Cce(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;S-=3)if(Kd[S+1]==-g){let E=Kd[S+2],w=E&2?i:E&4?E&1?a:i:0;w&&(Si[f]=Si[Kd[S]]=w),o=S;break}}else{if(Kd.length==189)break;Kd[o++]=f,Kd[o++]=h,Kd[o++]=l}else if((b=Si[f])==2||b==1){let S=b==i;l=S?0:1;for(let E=o-3;E>=0;E-=3){let w=Kd[E+2];if(w&2)break;if(S)Kd[E+2]|=2;else{if(w&4)break;Kd[E+2]|=4}}}}}function bze(e,t,n,r){for(let i=0,a=r;i<=n.length;i++){let s=i?n[i-1].to:e,o=il;)b==E&&(b=n[--S].from,E=S?n[S-1].to:e),Si[--b]=g;l=c}else a=u,l++}}}function _M(e,t,n,r,i,a,s){let o=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&s.push(new _m(l,S.from,g));let E=S.direction==g1!=!(g%2);RM(e,E?r+1:r,i,S.inner,S.from,S.to,s),l=S.to}b=S.to}else{if(b==n||(c?Si[b]!=o:Si[b]==o))break;b++}h?_M(e,l,b,r+1,i,h,s):lt;){let c=!0,f=!1;if(!u||l>a[u-1].to){let S=Si[l-1];S!=o&&(c=!1,f=S==16)}let h=!c&&o==1?[]:null,g=c?r:r+1,b=l;e:for(;;)if(u&&b==a[u-1].to){if(f)break e;let S=a[--u];if(!c)for(let E=S.from,w=u;;){if(E==t)break e;if(w&&a[w-1].to==E)E=a[--w].from;else{if(Si[E-1]==o)break e;break}}if(h)h.push(S);else{S.toSi.length;)Si[Si.length]=256;let r=[],i=t==g1?0:1;return RM(e,i,i,n,0,e.length,r),r}function Ace(e){return[new _m(0,e,0)]}let _ce="";function vze(e,t,n,r,i){var a;let s=r.head-e.from,o=_m.find(t,s,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),l=t[o],u=l.side(i,n);if(s==u){let h=o+=i?1:-1;if(h<0||h>=t.length)return null;l=t[o=h],s=l.side(!i,n),u=l.side(i,n)}let c=Qs(e.text,s,l.forward(i,n));(cl.to)&&(c=u),_ce=e.text.slice(Math.min(s,c),Math.max(s,c));let f=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];return f&&c==u&&f.level+(i?0:1)e.some(t=>t)}),$ce=Sn.define({combine:e=>e.some(t=>t)});class tv{constructor(t,n="nearest",r="nearest",i=5,a=5,s=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=s}map(t){return t.empty?this:new tv(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new tv(Ot.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const eA=dr.define({map:(e,t)=>e.map(t)});function Oc(e,t,n){let r=e.facet(Nce);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const QR=Sn.define({combine:e=>e.length?e[0]:!0});let Sze=0;const r2=Sn.define();class ua{constructor(t,n,r,i,a){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:s}=n||{};return new ua(Sze++,t,r,i,o=>{let l=[r2.of(o)];return s&&l.push(Qw.of(u=>{let c=u.plugin(o);return c?s(c):An.none})),a&&l.push(a(o)),l})}static fromClass(t,n){return ua.define(r=>new t(r),n)}}class LN{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){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(Oc(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(t)}catch(n){Oc(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){Oc(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Fce=Sn.define(),tB=Sn.define(),Qw=Sn.define(),Bce=Sn.define(),nB=Sn.define(),Uce=Sn.define();function KX(e,t){let n=e.state.facet(Uce);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(e):a),i=[];return Br.spans(r,t.from,t.to,{point(){},span(a,s,o,l){let u=a-t.from,c=s-t.from,f=i;for(let h=o.length-1;h>=0;h--,l--){let g=o[h].spec.bidiIsolate,b;if(g==null&&(g=Oze(t.text,u,c)),l>0&&f.length&&(b=f[f.length-1]).to==u&&b.direction==g)b.to=c,f=b.inner;else{let S={from:u,to:c,direction:g,inner:[]};f.push(S),f=S.inner}}}}),i}const zce=Sn.define();function jce(e){let t=0,n=0,r=0,i=0;for(let a of e.state.facet(zce)){let s=a(e);s&&(s.left!=null&&(t=Math.max(t,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:t,right:n,top:r,bottom:i}}const i2=Sn.define();class Sc{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new Sc(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toAc)break;a+=2}if(!l)return r;new Sc(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),s=l.toA,o=l.toB}}}class d3{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=ts.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,l)=>i.push(new Sc(a,s,o,l))),this.changedRanges=i}static create(t,n,r){return new d3(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class JX extends zi{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new Ja],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Sc(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!Aze(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let a=i>-1?wze(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new Sc(u,c,t.changes.mapPos(u,-1),t.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(wn.ie||wn.chrome)&&!a&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.updateDeco(),l=kze(s,o,t.changes);return r=Sc.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,a),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,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=wn.chrome||wn.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=0?i[s]:null;if(!o)break;let{fromA:l,toA:u,fromB:c,toB:f}=o,h,g,b,S;if(r&&r.range.fromBc){let C=L2.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),R=L2.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);g=C.breakAtStart,b=C.openStart,S=R.openEnd;let A=this.compositionView(r);R.breakAtStart?A.breakAfter=1:R.content.length&&A.merge(A.length,A.length,R.content[0],!1,R.openStart,0)&&(A.breakAfter=R.content[0].breakAfter,R.content.shift()),C.content.length&&A.merge(0,0,C.content[C.content.length-1],!0,0,C.openEnd)&&C.content.pop(),h=C.content.concat(A).concat(R.content)}else({content:h,breakAtStart:g,openStart:b,openEnd:S}=L2.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:E,off:w}=a.findPos(u,1),{i:x,off:k}=a.findPos(l,-1);bce(this,x,k,E,w,h,g,b,S)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new ap(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new sp(i,[n],n.length);let r=new Ja;return r.append(n,0),r}fixCompositionDOM(t){let n=(a,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let o=zi.get(a);o&&o!=s&&(o.dom=null),s.setDOM(a)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let a=t.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?t.marks[a].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,a=!i&&R4(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,l=this.moveToLine(this.domAtPos(o.anchor)),u=o.empty?l:this.moveToLine(this.domAtPos(o.head));if(wn.gecko&&o.empty&&!this.hasComposition&&Eze(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new go(f,0),s=!0}let c=this.view.observer.selectionRange;(s||!c.focusNode||(!M2(l.node,l.offset,c.anchorNode,c.anchorOffset)||!M2(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,o))&&(this.view.observer.ignore(()=>{wn.android&&wn.chrome&&this.dom.contains(c.focusNode)&&Cze(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=c3(this.view.root);if(f)if(o.empty){if(wn.gecko){let h=xze(l.node,l.offset);if(h&&h!=3){let g=Vce(l.node,l.offset,h==1?1:-1);g&&(l=new go(g.node,g.offset))}}f.collapse(l.node,l.offset),o.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=o.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset)}catch{}}else{let h=document.createRange();o.anchor>o.head&&([l,u]=[u,l]),h.setEnd(u.node,u.offset),h.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(h)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new go(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new go(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&M2(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=c3(t.root),{anchorNode:i,anchorOffset:a}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=Ja.find(this,n.head);if(!s)return;let o=s.posAtStart;if(n.head==o||n.head==o+s.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(n.head+n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let f=t.observer.selectionRange;t.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,a)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let a=zi.get(n.childNodes[i]);a instanceof Ja&&(r=a.domAtPos(a.length))}return r?new go(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=zi.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n=0;s--){let o=this.children[s],l=a-o.breakAfter,u=l-o.length;if(lt||o.covers(1))&&(!r||o instanceof Ja&&!(r instanceof Ja&&n>=0))&&(r=o,i=u),a=u}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof Ja))return null;for(;i.children.length;){let{i:o,off:l}=i.childPos(r,1);for(;;o++){if(o==i.children.length)return null;if((i=i.children[o]).length)break}r=l}if(!(i instanceof ap))return null;let a=Qs(i.text,r);if(a==r)return null;let s=m1(i.dom,r,a).getClientRects();for(let o=0;oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==Hi.LTR;for(let u=0,c=0;ci)break;if(u>=r){let g=f.dom.getBoundingClientRect();if(n.push(g.height),s){let b=f.dom.lastChild,S=b?Vw(b):[];if(S.length){let E=S[S.length-1],w=l?E.right-g.left:g.right-E.left;w>o&&(o=w,this.minWidth=a,this.minWidthFrom=u,this.minWidthTo=h)}}}u=h+f.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Hi.RTL:Hi.LTR}measureTextSize(){for(let a of this.children)if(a instanceof Ja){let s=a.measureTextSize();if(s)return s}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let a=Vw(t.firstChild)[0];n=t.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new gce(this.children,t,n)}computeBlockGapDeco(){let t=[],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;t.push(An.replace({widget:new eK(o),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!a)break;r=a.to+1}return An.set(t)}updateDeco(){let t=this.view.state.facet(Qw).map((i,a)=>(this.dynamicDecorationMap[a]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(Bce).map((i,a)=>{let s=typeof i=="function";return s&&(n=!0),s?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Br.join(r)));for(let i=t.length;in.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=jce(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:l}=this.view.scrollDOM;nze(this.view.scrollDOM,s,n.head0)r=r.childNodes[i-1],i=ip(r);else break}if(n>=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i=0)r=r.childNodes[i],i=0;else break}return null}function xze(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function _ze(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(i.length==0)return Ot.cursor(t);a==0?n=1:a==i.length&&(n=-1);let s=a,o=a;n<0?s=Qs(i.text,a,!1):o=Qs(i.text,a);let l=r(i.text.slice(s,o));for(;s>0;){let u=Qs(i.text,s,!1);if(r(i.text.slice(u,s))!=l)break;s=u}for(;oe?t.left-e:Math.max(0,e-t.right)}function Ize(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function $N(e,t){return e.topt.top+1}function tK(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function DM(e,t,n){let r,i,a,s,o=!1,l,u,c,f;for(let b=e.firstChild;b;b=b.nextSibling){let S=Vw(b);for(let E=0;Ek||s==k&&a>x){r=b,i=w,a=x,s=k;let C=k?n0?E0)}x==0?n>w.bottom&&(!c||c.bottomw.top)&&(u=b,f=w):c&&$N(c,w)?c=nK(c,w.bottom):f&&$N(f,w)&&(f=tK(f,w.top))}}if(c&&c.bottom>=n?(r=l,i=c):f&&f.top<=n&&(r=u,i=f),!r)return{node:e,offset:0};let h=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return rK(r,h,n);if(o&&r.contentEditable!="false")return DM(r,h,n);let g=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:g}}function rK(e,t,n){let r=e.nodeValue.length,i=-1,a=1e9,s=0;for(let o=0;on?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&f=(c.left+c.right)/2,g=h;if((wn.chrome||wn.gecko)&&m1(e,o).getBoundingClientRect().left==c.right&&(g=!h),f<=0)return{node:e,offset:o+(g?1:0)};i=o+(g?1:0),a=f}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function Wce(e,t,n,r=-1){var i,a;let s=e.contentDOM.getBoundingClientRect(),o=s.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:c,y:f}=t,h=f-o;if(h<0)return 0;if(h>u)return e.state.doc.length;for(let C=e.viewState.heightOracle.textHeight/2,R=!1;l=e.elementAtHeight(h),l.type!=qo.Text;)for(;h=r>0?l.bottom+C:l.top-C,!(h>=0&&h<=u);){if(R)return n?null:0;R=!0,r=-r}f=o+h;let g=l.from;if(ge.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:iK(e,s,l,c,f);let b=e.dom.ownerDocument,S=e.root.elementFromPoint?e.root:b,E=S.elementFromPoint(c,f);E&&!e.contentDOM.contains(E)&&(E=null),E||(c=Math.max(s.left+1,Math.min(s.right-1,c)),E=S.elementFromPoint(c,f),E&&!e.contentDOM.contains(E)&&(E=null));let w,x=-1;if(E&&((i=e.docView.nearest(E))===null||i===void 0?void 0:i.isEditable)!=!1){if(b.caretPositionFromPoint){let C=b.caretPositionFromPoint(c,f);C&&({offsetNode:w,offset:x}=C)}else if(b.caretRangeFromPoint){let C=b.caretRangeFromPoint(c,f);C&&({startContainer:w,startOffset:x}=C,(!e.contentDOM.contains(w)||wn.safari&&Dze(w,x,c)||wn.chrome&&Nze(w,x,c))&&(w=void 0))}}if(!w||!e.docView.dom.contains(w)){let C=Ja.find(e.docView,g);if(!C)return h>l.top+l.height/2?l.to:l.from;({node:w,offset:x}=DM(C.dom,c,f))}let k=e.docView.nearest(w);if(!k)return null;if(k.isWidget&&((a=k.dom)===null||a===void 0?void 0:a.nodeType)==1){let C=k.dom.getBoundingClientRect();return t.ye.defaultLineHeight*1.5){let o=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-o)*.5)/o);a+=l*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+yM(s,a,e.state.tabSize)}function Dze(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return m1(e,r-1,r).getBoundingClientRect().left>n}function Nze(e,t,n){if(t!=0)return!1;for(let i=e;;){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=e.nodeType==1?e.getBoundingClientRect():m1(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function NM(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==qo.Text))return r}return n}function Pze(e,t,n,r){let i=NM(e,t.head),a=!r||i.type!=qo.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(a){let s=e.dom.getBoundingClientRect(),o=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(o==Hi.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(l!=null)return Ot.cursor(l,n?-1:1)}return Ot.cursor(n?i.to:i.from,n?-1:1)}function aK(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let o=t,l=null;;){let u=vze(i,a,s,o,n),c=_ce;if(!u){if(i.number==(n?e.state.doc.lines:1))return o;c=` -`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(c))return o}else{if(!r)return u;l=r(c)}o=u}}function Mze(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return a=>{let s=r(a);return i==Xi.Space&&(i=s),i==s}}function Lze(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return Ot.cursor(i,t.assoc);let s=t.goalColumn,o,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),c=e.documentTop;if(u)s==null&&(s=u.left-l.left),o=a<0?u.top:u.bottom;else{let g=e.viewState.lineBlockAt(i);s==null&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-g.from))),o=(a<0?g.top:g.bottom)+c}let f=l.left+s,h=r??e.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let b=o+(h+g)*a,S=Wce(e,{x:f,y:b},!1,a);if(bl.bottom||(a<0?Si)){let E=e.docView.coordsForChar(S),w=!E||b{if(t>a&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:Ot.cursor(r,rnull),wn.gecko&&Jze(t.contentDOM.ownerDocument)}handleEvent(t){!Wze(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,n){let r=this.handlers[t];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(t){let n=Fze(t),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(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()r.keyCode==t.keyCode))&&!t.ctrlKey||Bze.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,ev(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:wn.safari&&!wn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function sK(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Oc(n.state,i)}}}function Fze(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let a in i.domEventHandlers){let s=i.domEventHandlers[a];s&&n(a).handlers.push(sK(r.value,s))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let s=i.domEventObservers[a];s&&n(a).observers.push(sK(r.value,s))}}for(let r in Od)n(r).handlers.push(Od[r]);for(let r in Sd)n(r).observers.push(Sd[r]);return t}const Qce=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Bze="dthko",qce=[16,17,18,20,91,92,224,225],tA=6;function nA(e){return Math.max(0,e)*.7+8}function Uze(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class zze{constructor(t,n,r,i){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=rze(t.contentDOM),this.atoms=t.state.facet(nB).map(s=>s(t));let a=t.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=t.state.facet(Hr.allowMultipleSelections)&&jze(t,n),this.dragging=Vze(t,n)&&Xce(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Uze(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,a=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=jce(this.view);t.clientX-s.left<=a.left+tA?r=-nA(a.left-t.clientX):t.clientX+s.right>=a.right-tA&&(r=nA(t.clientX-a.right)),t.clientY-s.top<=a.top+tA?i=-nA(a.top-t.clientY):t.clientY+s.bottom>=a.bottom-tA&&(i=nA(t.clientY-a.bottom)),this.setScrollSpeed(r,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;rthis.select(this.lastEvent),20)}}function jze(e,t){let n=e.state.facet(Rce);return n.length?n[0](t):wn.mac?t.metaKey:t.ctrlKey}function Hze(e,t){let n=e.state.facet(Ice);return n.length?n[0](t):wn.mac?!t.altKey:!t.ctrlKey}function Vze(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=c3(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}function Wze(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=zi.get(n))&&r.ignoreEvent(t))return!1;return!0}const Od=Object.create(null),Sd=Object.create(null),Gce=wn.ie&&wn.ie_version<15||wn.ios&&wn.webkit_version<604;function Qze(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),Yce(e,n.value)},50)}function Yce(e,t){let{state:n}=e,r,i=1,a=n.toText(t),s=a.lines==n.selection.ranges.length;if(PM!=null&&n.selection.ranges.every(l=>l.empty)&&PM==a.toString()){let l=-1;r=n.changeByRange(u=>{let c=n.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let f=n.toText((s?a.line(i++).text:t)+n.lineBreak);return{changes:{from:c.from,insert:f},range:Ot.cursor(u.from+f.length)}})}else s?r=n.changeByRange(l=>{let u=a.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:Ot.cursor(l.from+u.length)}}):r=n.replaceSelection(a);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Sd.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Od.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);Sd.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Sd.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Od.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(Dce))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=Yze(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new zze(e,t,n,r)),r&&e.observer.ignore(()=>hce(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function oK(e,t,n,r){if(r==1)return Ot.cursor(t,n);if(r==2)return _ze(e.state,t,n);{let i=Ja.find(e.docView,t),a=e.state.doc.lineAt(i?i.posAtEnd:t),s=i?i.posAtStart:a.from,o=i?i.posAtEnd:a.to;return oe>=t.top&&e<=t.bottom,lK=(e,t,n)=>Zce(t,n)&&e>=n.left&&e<=n.right;function qze(e,t,n,r){let i=Ja.find(e.docView,t);if(!i)return 1;let a=t-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let s=i.coordsAt(a,-1);if(s&&lK(n,r,s))return-1;let o=i.coordsAt(a,1);return o&&lK(n,r,o)?1:s&&Zce(r,s)?-1:1}function uK(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:qze(e,n,t.clientX,t.clientY)}}const Gze=wn.ie&&wn.ie_version<=11;let cK=null,dK=0,fK=0;function Xce(e){if(!Gze)return e.detail;let t=cK,n=fK;return cK=e,fK=Date.now(),dK=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(dK+1)%3:1}function Yze(e,t){let n=uK(e,t),r=Xce(t),i=e.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,s,o){let l=uK(e,a),u,c=oK(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){let f=oK(e,n.pos,n.bias,r),h=Math.min(f.from,c.from),g=Math.max(f.to,c.to);c=h1&&(u=Zze(i,l.pos))?u:o?i.addRange(c):Ot.create([c])}}}function Zze(e,t){for(let n=0;n=t)return Ot.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}Od.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let a=i.posAtStart,s=a+i.length;(a>=n.to||s<=n.from)&&(n=Ot.range(a,s))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Od.dragend=e=>(e.inputState.draggedContent=null,!1);function hK(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,s=r&&a&&Hze(e,t)?{from:a.from,to:a.to}:null,o={from:i,insert:n},l=e.state.changes(s?[s,o]:o);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Od.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&hK(e,t,r.filter(s=>s!=null).join(e.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(r[s]=o.result),a()},o.readAsText(n[s])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return hK(e,t,r,!0),!0}return!1};Od.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=Gce?null:t.clipboardData;return n?(Yce(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(Qze(e),!1)};function Xze(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function Kze(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:a}of e.selection.ranges){let s=e.doc.lineAt(a);s.number>i&&(t.push(s.text),n.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let PM=null;Od.copy=Od.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=Kze(e.state);if(!n&&!i)return!1;PM=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=Gce?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(Xze(e,n),!1)};const Kce=Cd.define();function Jce(e,t){let n=[];for(let r of e.facet(Mce)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Kce.of(!0)}):null}function ede(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Jce(e.state,t);n?e.dispatch(n):e.update([])}},10)}Sd.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),ede(e)};Sd.blur=e=>{e.observer.clearSelectionRange(),ede(e)};Sd.compositionstart=Sd.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};Sd.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,wn.chrome&&wn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};Sd.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Od.beforeinput=(e,t)=>{var n;let r;if(wn.chrome&&wn.android&&(r=Qce.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var a;(((a=window.visualViewport)===null||a===void 0?void 0:a.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const pK=new Set;function Jze(e){pK.has(e)||(pK.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const mK=["pre-wrap","normal","pre-line","break-spaces"];class eje{constructor(t){this.lineWrapping=t,this.doc=Kr.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return mK.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=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,l){this.heightSamples={};for(let u=0;u0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>D4&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return Go.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let a=this,s=r.doc;for(let o=i.length-1;o>=0;o--){let{fromA:l,toA:u,fromB:c,toB:f}=i[o],h=a.lineAt(l,Ui.ByPosNoHeight,r.setDoc(n),0,0),g=h.to>=u?h:a.lineAt(u,Ui.ByPosNoHeight,r,0,0);for(f+=g.to-u,u=g.to;o>0&&h.from<=i[o-1].toA;)l=i[o-1].fromA,c=i[o-1].fromB,o--,la*2){let o=t[n-1];o.break?t.splice(--n,1,o.left,null,o.right):t.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else if(a>i*2){let o=t[r];o.break?t.splice(r,1,o.left,null,o.right):t.splice(r,1,o.left,o.right),r+=2+o.break,a-=o.size}else break;else if(i=a&&s(this.blockAt(0,r,i,a))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(t,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class su extends tde{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new bf(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof su||i instanceof Bs&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Bs?i=new su(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Go.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(t,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Bs extends Go{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,a=i-r+1,s,o=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*a);s=l/a,this.length>a+1&&(o=(this.height-l)/(this.length-a-1))}else s=this.height/a;return{firstLine:r,lastLine:i,perLine:s,perChar:o}}blockAt(t,n,r,i){let{firstLine:a,lastLine:s,perLine:o,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),c=n.doc.lineAt(u),f=o+c.length*l,h=Math.max(r,t-f/2);return new bf(c.from,c.length,h,f,0)}else{let u=Math.max(0,Math.min(s-a,Math.floor((t-r)/o))),{from:c,length:f}=n.doc.line(a+u);return new bf(c,f,r+o*u,o,0)}}lineAt(t,n,r,i,a){if(n==Ui.ByHeight)return this.blockAt(t,r,i,a);if(n==Ui.ByPosNoHeight){let{from:g,to:b}=r.doc.lineAt(t);return new bf(g,b-g,0,0,0)}let{firstLine:s,perLine:o,perChar:l}=this.heightMetrics(r,a),u=r.doc.lineAt(t),c=o+u.length*l,f=u.number-s,h=i+o*f+l*(u.from-a-f);return new bf(u.from,u.length,Math.max(i,Math.min(h,i+this.height-c)),c,0)}forEachLine(t,n,r,i,a,s){t=Math.max(t,a),n=Math.min(n,a+this.length);let{firstLine:o,perLine:l,perChar:u}=this.heightMetrics(r,a);for(let c=t,f=i;c<=n;){let h=r.doc.lineAt(c);if(c==t){let b=h.number-o;f+=l*b+u*(t-a-b)}let g=l+u*h.length;s(new bf(h.from,h.length,f,g,0)),f+=g,c=h.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let a=r[r.length-1];a instanceof Bs?r[r.length-1]=new Bs(a.length+i):r.push(null,new Bs(i-1))}if(t>0){let a=r[0];a instanceof Bs?r[0]=new Bs(t+a.length):r.unshift(new Bs(t-1),null)}return Go.of(r)}decomposeLeft(t,n){n.push(new Bs(t-1),null)}decomposeRight(t,n){n.push(null,new Bs(this.length-t-1))}updateHeight(t,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),l=-1;for(i.from>n&&s.push(new Bs(i.from-n-1).updateHeight(t,n));o<=a&&i.more;){let c=t.doc.lineAt(o).length;s.length&&s.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=D4&&(l=-2);let h=new su(c,f);h.outdated=!1,s.push(h),o+=c+1}o<=a&&s.push(null,new Bs(a-o).updateHeight(t,o));let u=Go.of(s);return(l<0||Math.abs(u.height-this.height)>=D4||Math.abs(l-this.heightMetrics(t,n).perLine)>=D4)&&(t.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class nje extends Go{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let a=r+this.left.height;return to))return u;let c=n==Ui.ByPosNoHeight?Ui.ByPosNoHeight:Ui.ByPos;return l?u.join(this.right.lineAt(o,c,r,s,o)):this.left.lineAt(o,c,r,i,a).join(u)}forEachLine(t,n,r,i,a,s){let o=i+this.left.height,l=a+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,o,l,s);else{let u=this.lineAt(l,Ui.ByPos,r,i,a);t=t&&u.from<=n&&s(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,o,l,s)}}replace(t,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let a=[];t>0&&this.decomposeLeft(t,a);let s=a.length;for(let o of r)a.push(o);if(t>0&&gK(a,s-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t2*n.size||n.size>2*t.size?Go.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:a,right:s}=this,o=n+a.length+this.break,l=null;return i&&i.from<=n+a.length&&i.more?l=a=a.updateHeight(t,n,r,i):a.updateHeight(t,n,r),i&&i.from<=o+s.length&&i.more?l=s=s.updateHeight(t,o,r,i):s.updateHeight(t,o,r),l?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 gK(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Bs&&(r=e[t+1])instanceof Bs&&e.splice(t-1,3,new Bs(n.length+1+r.length))}const rje=5;class rB{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof su?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new su(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t=rje)&&this.addLineDeco(i,a,s)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new su(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Bs(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof su)return t;let n=new su(0,-1);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,t),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof su)&&!this.isCovered?this.nodes.push(new su(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let h=c.getBoundingClientRect();a=Math.max(a,h.left),s=Math.min(s,h.right),o=Math.max(o,h.top),l=u==e.parentNode?h.bottom:Math.min(l,h.bottom)}u=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:a-n.left,right:Math.max(a,s)-n.left,top:o-(n.top+t),bottom:Math.max(o,l)-(n.top+t)}}function oje(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class BN{constructor(t,n,r){this.from=t,this.to=n,this.size=r}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;rtypeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new eje(n),this.stateDeco=t.facet(Qw).filter(r=>typeof r!="function"),this.heightMap=Go.empty().applyChanges(this.stateDeco,Kr.empty,this.heightOracle.setDoc(t.doc),[new Sc(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=An.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:a,to:s})=>i>=a&&i<=s)){let{from:a,to:s}=this.lineBlockAt(i);t.push(new rA(a,s))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?yK:new dje(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:a2(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Qw).filter(c=>typeof c!="function");let i=t.changedRanges,a=Sc.extendWithRanges(i,ije(r,this.stateDeco,t?t.changes:ts.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),a),this.heightMap.height!=s&&(t.flags|=2),o?(this.scrollAnchorPos=t.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=a.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet($ce)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Hi.RTL:Hi.LTR;let s=this.heightOracle.mustRefreshForWrapping(a),o=n.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let u=0,c=0;if(o.width&&o.height){let{scaleX:C,scaleY:R}=fce(n,o);(this.scaleX!=C||this.scaleY!=R)&&(this.scaleX=C,this.scaleY=R,u|=8,s=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,h=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=h)&&(this.paddingTop=f,this.paddingBottom=h,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let g=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=mce(t.scrollDOM);let b=(this.printing?oje:sje)(n,this.paddingTop),S=b.top-this.pixelViewport.top,E=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let C=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(C)&&(s=!0),s||i.lineWrapping&&Math.abs(x-this.contentDOMWidth)>i.charWidth){let{lineHeight:R,charWidth:A,textHeight:D}=t.docView.measureTextSize();s=R>0&&i.refresh(a,R,A,D,x/A,C),s&&(t.docView.minWidth=0,u|=8)}S>0&&E>0?c=Math.max(S,E):S<0&&E<0&&(c=Math.min(S,E)),i.heightChanged=!1;for(let R of this.viewports){let A=R.from==this.viewport.from?C:t.docView.measureVisibleLineHeights(R);this.heightMap=(s?Go.empty().applyChanges(this.stateDeco,Kr.empty,this.heightOracle,[new Sc(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new tje(R.from,A))}i.heightChanged&&(u|=2)}let k=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return k&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,a=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,l=new rA(i.lineAt(s-r*1e3,Ui.ByHeight,a,0,0).from,i.lineAt(o+(1-r)*1e3,Ui.ByHeight,a,0,0).to);if(n){let{head:u}=n.range;if(ul.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(u,Ui.ByPos,a,0,0),h;n.y=="center"?h=(f.top+f.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u=o+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&a>1,s=i<<1;if(this.defaultTextDirection!=Hi.LTR&&!r)return[];let o=[],l=(u,c,f,h)=>{if(c-uu&&EE.from>=f.from&&E.to<=f.to&&Math.abs(E.from-u)E.fromw));if(!S){if(cE.from<=c&&E.to>=c)){let E=n.moveToLineBoundary(Ot.cursor(c),!1,!0).head;E>u&&(c=E)}S=new BN(u,c,this.gapSize(f,u,c,h))}o.push(S)};for(let u of this.viewportLines){if(u.lengthu.from&&l(u.from,h,u,c),gn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Br.spans(t,this.viewport.from,this.viewport.to,{span(i,a){n.push({from:i,to:a})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,a)=>i.from!=n[a].from||i.to!=n[a].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||a2(this.heightMap.lineAt(t,Ui.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return a2(this.heightMap.lineAt(this.scaler.fromDOM(t),Ui.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return a2(this.heightMap.blockAt(this.scaler.fromDOM(t),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 rA{constructor(t,n){this.from=t,this.to=n}}function uje(e,t,n){let r=[],i=e,a=0;return Br.spans(n,e,t,{span(){},point(s,o){s>i&&(r.push({from:i,to:s}),a+=s-i),i=o}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:a,to:s}=t[i],o=s-a;if(r<=o)return a+r;r-=o}}function aA(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function cje(e,t){for(let n of e)if(t(n))return n}const yK={toDOM(e){return e},fromDOM(e){return e},scale:1};class dje{constructor(t,n,r){let i=0,a=0,s=0;this.viewports=r.map(({from:o,to:l})=>{let u=n.lineAt(o,Ui.ByPos,t,0,0).top,c=n.lineAt(l,Ui.ByPos,t,0,0).bottom;return i+=c-u,{from:o,to:l,top:u,bottom:c,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(t){for(let n=0,r=0,i=0;;n++){let a=na2(i,t)):e._content)}const sA=Sn.define({combine:e=>e.join(" ")}),MM=Sn.define({combine:e=>e.indexOf(!0)>-1}),LM=a0.newName(),nde=a0.newName(),rde=a0.newName(),ide={"&light":"."+nde,"&dark":"."+rde};function $M(e,t,n){return new a0(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return e;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):e+" "+r}})}const fje=$M("."+LM,{"&":{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},".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:"#444"},".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},"&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:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,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"}},ide),s2="￿";class hje{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Hr.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=s2}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let a=this.text.length;this.readNode(i);let s=i.nextSibling;if(s==n)break;let o=zi.get(i),l=zi.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:vK(i))||vK(s)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>a)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(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 l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);r=a+s}}readNode(t){if(t.cmIgnore)return;let n=zi.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(pje(t,r.node,r.offset)?n:0))}}function pje(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let o=a||s?[]:yje(t),l=new hje(o,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=vje(o,this.bounds.from)}else{let o=t.observer.selectionRange,l=a&&a.node==o.focusNode&&a.offset==o.focusOffset||!SM(t.contentDOM,o.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(o.focusNode,o.focusOffset),u=s&&s.node==o.anchorNode&&s.offset==o.anchorOffset||!SM(t.contentDOM,o.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(o.anchorNode,o.anchorOffset),c=t.viewport;if(wn.ios&&t.state.selection.main.empty&&l!=u&&(c.from>0||c.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:o}=t.bounds,l=i.from,u=null;(a===8||wn.android&&t.text.length=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:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:(wn.mac||wn.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Ot.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Kr.of([" "])}):wn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=Ot.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Kr.of([" "])}),n){if(wn.ios&&e.inputState.flushIOSKey()||wn.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&ev(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||a==8&&n.insert.lengthi.head)&&ev(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&ev(e.contentDOM,"Delete",46)))return!0;let s=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,l=()=>o||(o=gje(e,n,r));return e.state.facet(Pce).some(u=>u(e,n.from,n.to,s,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let s=!1,o="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),o=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function gje(e,t,n){let r,i=e.state,a=i.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let o=a.fromt.to?i.sliceDoc(t.to,a.to):"";r=i.replaceSelection(e.state.toText(o+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let o=i.changes(t),l=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let u=e.state.sliceDoc(t.from,t.to),c,f=n&&Hce(e,n.main.head);if(f){let b=t.insert.length-(t.to-t.from);c={from:f.from,to:f.to-b}}else c=e.state.doc.lineAt(a.head);let h=a.to-t.to,g=a.to-a.from;r=i.changeByRange(b=>{if(b.from==a.from&&b.to==a.to)return{changes:o,range:l||b.map(o)};let S=b.to-h,E=S-u.length;if(b.to-b.from!=g||e.state.sliceDoc(E,S)!=u||b.to>=c.from&&b.from<=c.to)return{range:b};let w=i.changes({from:E,to:S,insert:t.insert}),x=b.to-a.to;return{changes:w,range:l?Ot.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):b.map(w)}})}else r={changes:o,selection:l&&i.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function bje(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a0&&o>0&&e.charCodeAt(s-1)==t.charCodeAt(o-1);)s--,o--;if(r=="end"){let l=Math.max(0,a-Math.min(s,o));n-=s+l-a}if(s=s?a-n:0;a-=l,o=a+(o-s),s=a}else if(o=o?a-n:0;a-=l,s=a+(s-o),o=a}return{from:a,toA:s,toB:o}}function yje(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new OK(n,r)),(i!=n||a!=r)&&t.push(new OK(i,a))),t}function vje(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?Ot.single(n+t,r+t):null}const Oje={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},UN=wn.ie&&wn.ie_version<=11;class Sje{constructor(t){this.view=t,this.active=!1,this.selectionRange=new ize,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.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(wn.ie&&wn.ie_version<=11||wn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),UN&&(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),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){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(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(QR)?r.root.activeElement!=this.dom:!R4(r.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(wn.ie&&wn.ie_version<=11||wn.android&&wn.chrome)&&!r.state.selection.main.empty&&i.focusNode&&M2(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=wn.safari&&t.root.nodeType==11&&eze(this.dom.ownerDocument)==this.dom&&Eje(this.view)||c3(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=R4(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&ev(this.dom,a.key,a.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let a of t){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:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&R4(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new mje(this.view,t,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=ade(this.view,n);return this.view.state==r&&this.view.update([]),i}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=SK(n,t.previousSibling||t.target.previousSibling,-1),i=SK(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.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)}}function SK(e,t,n){for(;t;){let r=zi.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function Eje(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,a=t.endContainer,s=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor);return M2(o.node,o.offset,a,s)&&([r,i,a,s]=[a,s,r,i]),{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:s}}class fn{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(t={}){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),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||aze(t.parent)||document,this.viewState=new bK(t.state||Hr.create(t)),t.scrollTo&&t.scrollTo.is(eA)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(r2).map(r=>new LN(r));for(let r of this.plugins)r.update(this);this.observer=new Sje(this),this.inputState=new $ze(this),this.inputState.ensureHandlers(this.plugins),this.docView=new JX(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof xs?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){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 h of t){if(h.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=h.state}if(this.destroyed){this.viewState.state=a;return}let s=this.hasFocus,o=0,l=null;t.some(h=>h.annotation(Kce))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=Jce(a,s),l||(o=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(c=null)):this.observer.clear(),a.facet(Hr.phrases)!=this.state.facet(Hr.phrases))return this.setState(a);i=d3.create(this,a,t),i.flags|=o;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let h of t){if(f&&(f=f.map(h.changes)),h.scrollIntoView){let{main:g}=h.state.selection;f=new tv(g.empty?g:Ot.cursor(g.head,g.head>g.anchor?-1:1))}for(let g of h.effects)g.is(eA)&&(f=g.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=f3.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(i2)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(sA)!=i.state.facet(sA)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let h of this.state.facet(IM))try{h(i)}catch(g){Oc(this.state,g,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!ade(this,c)&&u.force&&ev(this.contentDOM,u.key,u.keyCode)})}setState(t){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=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new bK(t),this.plugins=t.facet(r2).map(r=>new LN(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new JX(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(r2),r=t.state.facet(r2);if(n!=r){let i=[];for(let a of r){let s=n.indexOf(a);if(s<0)i.push(new LN(a));else{let o=this.plugins[s];o.mustUpdate=t,i.push(o)}}for(let a of this.plugins)a.mustUpdate!=t&&a.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&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(mce(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 l=this.viewState.measure(this);if(!l&&!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 u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(g=>{try{return g.read(this)}catch(b){return Oc(this.state,b),EK}}),f=d3.create(this,this.state,[]),h=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),h=this.docView.update(f));for(let g=0;g1||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(IM))o(n)}get themeClasses(){return LM+" "+(this.state.facet(MM)?rde:nde)+" "+this.state.facet(sA)}updateAttrs(){let t=wK(this,Fce,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(QR)?"true":"false",class:"cm-content",style:`${wn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),wK(this,tB,n);let r=this.observer.ignore(()=>{let i=kM(this.contentDOM,this.contentAttrs,n),a=kM(this.dom,this.editorAttrs,t);return i||a});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(fn.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(i2);let t=this.state.facet(fn.cspNonce);a0.mount(this.root,this.styleModules.concat(fje).reverse(),t?{nonce:t}: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(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;nr.spec==t)||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(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return FN(this,t,aK(this,t,n,r))}moveByGroup(t,n){return FN(this,t,aK(this,t,n,r=>Mze(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),a=r[n?r.length-1:0];return Ot.cursor(a.side(n,i)+t.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return Pze(this,t,n,r)}moveVertically(t,n,r){return FN(this,t,Lze(this,t,n,r))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){return this.readMeasured(),Wce(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),a=this.bidiSpans(i),s=a[_m.find(a,t-i.from,-1,n)];return XF(r,s.dir==Hi.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Lce)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>wje)return Ace(t.length);let n=this.textDirectionAt(t.from),r;for(let a of this.bidiCache)if(a.from==t.from&&a.dir==n&&(a.fresh||Cce(a.isolates,r=KX(this,t))))return a.order;r||(r=KX(this,t));let i=yze(t.text,n,r);return this.bidiCache.push(new f3(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||wn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{hce(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.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(t,n={}){return eA.of(new tv(typeof t=="number"?Ot.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return eA.of(new tv(Ot.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return ua.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return ua.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=a0.newName(),i=[sA.of(r),i2.of($M(`.${r}`,t))];return n&&n.dark&&i.push(MM.of(!0)),i}static baseTheme(t){return k0.lowest(i2.of($M("."+LM,t,ide)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&zi.get(r)||zi.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}fn.styleModule=i2;fn.inputHandler=Pce;fn.focusChangeEffect=Mce;fn.perLineTextDirection=Lce;fn.exceptionSink=Nce;fn.updateListener=IM;fn.editable=QR;fn.mouseSelectionStyle=Dce;fn.dragMovesSelection=Ice;fn.clickAddsSelectionRange=Rce;fn.decorations=Qw;fn.outerDecorations=Bce;fn.atomicRanges=nB;fn.bidiIsolatedRanges=Uce;fn.scrollMargins=zce;fn.darkTheme=MM;fn.cspNonce=Sn.define({combine:e=>e.length?e[0]:""});fn.contentAttributes=tB;fn.editorAttributes=Fce;fn.lineWrapping=fn.contentAttributes.of({class:"cm-lineWrapping"});fn.announce=dr.define();const wje=4096,EK={};class f3{constructor(t,n,r,i,a,s){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=s}static update(t,n){if(n.empty&&!t.some(a=>a.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:Hi.LTR;for(let a=Math.max(0,t.length-10);a=0;i--){let a=r[i],s=typeof a=="function"?a(e):a;s&&TM(s,n)}return n}const xje=wn.mac?"mac":wn.windows?"win":wn.linux?"linux":"key";function Tje(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,s,o;for(let l=0;lr.concat(i),[]))),n}function Cje(e,t,n){return ode(sde(e.state),t,e,n)}let hm=null;const Aje=4e3;function _je(e,t=xje){let n=Object.create(null),r=Object.create(null),i=(s,o)=>{let l=r[s];if(l==null)r[s]=o;else if(l!=o)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},a=(s,o,l,u,c)=>{var f,h;let g=n[s]||(n[s]=Object.create(null)),b=o.split(/ (?!$)/).map(w=>Tje(w,t));for(let w=1;w{let C=hm={view:k,prefix:x,scope:s};return setTimeout(()=>{hm==C&&(hm=null)},Aje),!0}]})}let S=b.join(" ");i(S,!1);let E=g[S]||(g[S]={preventDefault:!1,stopPropagation:!1,run:((h=(f=g._any)===null||f===void 0?void 0:f.run)===null||h===void 0?void 0:h.slice())||[]});l&&E.run.push(l),u&&(E.preventDefault=!0),c&&(E.stopPropagation=!0)};for(let s of e){let o=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let u of o){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let f in c)c[f].run.push(s.any)}let l=s[t]||s.key;if(l)for(let u of o)a(u,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&a(u,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return n}function ode(e,t,n,r){let i=JUe(t),a=zs(i,0),s=uc(a)==i.length&&i!=" ",o="",l=!1,u=!1,c=!1;hm&&hm.view==n&&hm.scope==r&&(o=hm.prefix+" ",qce.indexOf(t.keyCode)<0&&(u=!0,hm=null));let f=new Set,h=E=>{if(E){for(let w of E.run)if(!f.has(w)&&(f.add(w),w(n,t)))return E.stopPropagation&&(c=!0),!0;E.preventDefault&&(E.stopPropagation&&(c=!0),u=!0)}return!1},g=e[r],b,S;return g&&(h(g[o+oA(i,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(wn.windows&&t.ctrlKey&&t.altKey)&&(b=s0[t.keyCode])&&b!=i?(h(g[o+oA(b,t,!0)])||t.shiftKey&&(S=Hw[t.keyCode])!=i&&S!=b&&h(g[o+oA(S,t,!1)]))&&(l=!0):s&&t.shiftKey&&h(g[o+oA(i,t,!0)])&&(l=!0),!l&&h(g._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),l}class bT{constructor(t,n,r,i,a){this.className=t,this.left=n,this.top=r,this.width=i,this.height=a}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=lde(t);return[new bT(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return Rje(t,n,r)}}function lde(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Hi.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function TK(e,t,n){let r=Ot.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:qo.Text}}function Rje(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),a=e.textDirection==Hi.LTR,s=e.contentDOM,o=s.getBoundingClientRect(),l=lde(e),u=s.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),f=o.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),h=o.right-(c?parseInt(c.paddingRight):0),g=NM(e,r),b=NM(e,i),S=g.type==qo.Text?g:null,E=b.type==qo.Text?b:null;if(S&&(e.lineWrapping||g.widgetLineBreaks)&&(S=TK(e,r,S)),E&&(e.lineWrapping||b.widgetLineBreaks)&&(E=TK(e,i,E)),S&&E&&S.from==E.from)return x(k(n.from,n.to,S));{let R=S?k(n.from,null,S):C(g,!1),A=E?k(null,n.to,E):C(b,!0),D=[];return(S||g).to<(E||b).from-(S&&E?1:0)||g.widgetLineBreaks>1&&R.bottom+e.defaultLineHeight/2V&&Q.from=J)break;z>H&&W(Math.max(te,H),R==null&&te<=V,Math.min(z,J),A==null&&z>=Z,X.dir)}if(H=K.to+1,H>=J)break}return F.length==0&&W(V,R==null,Z,A==null,e.textDirection),{top:B,bottom:L,horizontal:F}}function C(R,A){let D=o.top+(A?R.top:R.bottom);return{top:D,bottom:D,horizontal:[]}}}function Ije(e,t){return e.constructor==t.constructor&&e.eq(t)}class Dje{constructor(t,n){this.view=t,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=t.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(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}update(t){t.startState.facet(N4)!=t.state.facet(N4)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let n=0,r=t.facet(N4);for(;n!Ije(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of t)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=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const N4=Sn.define();function ude(e){return[ua.define(t=>new Dje(t,e)),N4.of(e)]}const cde=!wn.ios,qw=Sn.define({combine(e){return qf(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function Nje(e={}){return[qw.of(e),Pje,Mje,Lje,$ce.of(!0)]}function dde(e){return e.startState.facet(qw)!=e.state.facet(qw)}const Pje=ude({above:!0,markers(e){let{state:t}=e,n=t.facet(qw),r=[];for(let i of t.selection.ranges){let a=i==t.selection.main;if(i.empty?!a||cde:n.drawRangeCursor){let s=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:Ot.cursor(i.head,i.head>i.anchor?-1:1);for(let l of bT.forRange(e,s,o))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=dde(e);return n&&kK(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){kK(t.state,e)},class:"cm-cursorLayer"});function kK(e,t){t.style.animationDuration=e.facet(qw).cursorBlinkRate+"ms"}const Mje=ude({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:bT.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||dde(e)},class:"cm-selectionLayer"}),FM={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};cde&&(FM[".cm-line"].caretColor="transparent !important",FM[".cm-content"]={caretColor:"transparent !important"});const Lje=k0.highest(fn.theme(FM)),fde=dr.define({map(e,t){return e==null?null:t.mapPos(e)}}),o2=As.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(fde)?r.value:n,e)}}),$je=ua.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(o2);n==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(o2)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(o2),n=t!=null&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(o2)!=e&&this.view.dispatch({effects:fde.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Fje(){return[o2,$je]}function CK(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),s=n,o;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}function Bje(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class Uje{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:s=1e3}=t;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,l,u,c)=>i(c,u,u+o[0].length,o,l);else if(typeof r=="function")this.addMatch=(o,l,u,c)=>{let f=r(o,l,u);f&&c(u,u+o[0].length,f)};else if(r)this.addMatch=(o,l,u,c)=>c(u,u+o[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=a,this.maxLength=s}createDeco(t){let n=new i0,r=n.add.bind(n);for(let{from:i,to:a}of Bje(t,this.maxLength))CK(t.state.doc,this.regexp,i,a,(s,o)=>this.addMatch(o,t,s,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((a,s,o,l)=>{l>t.view.viewport.from&&o1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let a of t.visibleRanges){let s=Math.max(a.from,r),o=Math.min(a.to,i);if(o>s){let l=t.state.doc.lineAt(s),u=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){c=s;break}for(;oh.push(w.range(S,E));if(l==u)for(this.regexp.lastIndex=c-l.from;(g=this.regexp.exec(l.text))&&g.indexthis.addMatch(E,t,S,b));n=n.update({filterFrom:c,filterTo:f,filter:(S,E)=>Sf,add:h})}}return n}}const BM=/x/.unicode!=null?"gu":"g",zje=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,BM),jje={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 zN=null;function Hje(){var e;if(zN==null&&typeof document<"u"&&document.body){let t=document.body.style;zN=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return zN||!1}const P4=Sn.define({combine(e){let t=qf(e,{render:null,specialChars:zje,addSpecialChars:null});return(t.replaceTabs=!Hje())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,BM)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,BM)),t}});function Vje(e={}){return[P4.of(e),Wje()]}let AK=null;function Wje(){return AK||(AK=ua.fromClass(class{constructor(e){this.view=e,this.decorations=An.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(P4)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Uje({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=zs(t[0],0);if(a==9){let s=i.lineAt(r),o=n.state.tabSize,l=vd(s.text,o,r-s.from);return An.replace({widget:new Yje((o-l%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=An.replace({widget:new Gje(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(P4);e.startState.facet(P4)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const Qje="•";function qje(e){return e>=32?Qje:e==10?"␤":String.fromCharCode(9216+e)}class Gje extends Ad{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=qje(this.code),r=t.state.phrase("Control character")+" "+(jje[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 Yje extends Ad{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function Zje(){return Kje}const Xje=An.line({class:"cm-activeLine"}),Kje=ua.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(Xje.range(i.from)),t=i.from)}return An.set(n)}},{decorations:e=>e.decorations}),UM=2e3;function Jje(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>UM||n.off>UM||t.col<0||n.col<0){let s=Math.min(t.off,n.off),o=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=o&&a.push(Ot.range(u.from+s,u.to+o))}}else{let s=Math.min(t.col,n.col),o=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),c=yM(u.text,s,e.tabSize,!0);if(c<0)a.push(Ot.cursor(u.to));else{let f=yM(u.text,o,e.tabSize);a.push(Ot.range(u.from+c,u.from+f))}}}return a}function eHe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function _K(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>UM?-1:i==r.length?eHe(e,t.clientX):vd(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function tHe(e,t){let n=_K(e,t),r=e.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=_K(e,i);if(!o)return r;let l=Jje(e.state,n,o);return l.length?s?Ot.create(l.concat(r.ranges)):Ot.create(l):r}}:null}function nHe(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return fn.mouseSelectionStyle.of((n,r)=>t(r)?tHe(n,r):null)}const rHe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},iHe={style:"cursor: crosshair"};function aHe(e={}){let[t,n]=rHe[e.key||"Alt"],r=ua.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==t||n(i))},keyup(i){(i.keyCode==t||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,fn.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?iHe:null})]}const TE="-10000px";class hde{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(a=>a),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),a=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let s=[],o=n?[]:null;for(let l=0;ln[u]=l),n.length=o.length),this.input=i,this.tooltips=a,this.tooltipViews=s,!0}}function sHe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const jN=Sn.define({combine:e=>{var t,n,r;return{position:wn.ios?"absolute":((t=e.find(i=>i.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||sHe}}}),RK=new WeakMap,iB=ua.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(jN);this.position=t.position,this.parent=t.parent,this.classes=e.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 hde(e,aB,n=>this.createTooltip(n),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(),e.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 e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(jN);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(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=TE,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(wn.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==TE&&i.style.left=="0px"){let a=i.getBoundingClientRect();r=Math.abs(a.top+1e4)>1||Math.abs(a.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,a)=>{let s=this.manager.tooltipViews[a];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(jN).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:a}=e,s=[];for(let o=0;o=Math.min(n.bottom,r.bottom)||f.rightMath.min(n.right,r.right)+.1){c.style.top=TE;continue}let g=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,b=g?7:0,S=h.right-h.left,E=(t=RK.get(u))!==null&&t!==void 0?t:h.bottom-h.top,w=u.offset||lHe,x=this.view.textDirection==Hi.LTR,k=h.width>r.right-r.left?x?r.left:r.right-h.width:x?Math.min(f.left-(g?14:0)+w.x,r.right-S):Math.max(r.left,f.left-S+(g?14:0)-w.x),C=this.above[o];!l.strictSide&&(C?f.top-(h.bottom-h.top)-w.yr.bottom)&&C==r.bottom-f.bottom>f.top-r.top&&(C=this.above[o]=!C);let R=(C?f.top-r.top:r.bottom-f.bottom)-b;if(Rk&&B.topA&&(A=C?B.top-E-2-b:B.bottom+b+2);if(this.position=="absolute"?(c.style.top=(A-e.parent.top)/a+"px",c.style.left=(k-e.parent.left)/i+"px"):(c.style.top=A/a+"px",c.style.left=k/i+"px"),g){let B=f.left+(x?w.x:-w.x)-(k+14-7);g.style.left=B/i+"px"}u.overlap!==!0&&s.push({left:k,top:A,right:D,bottom:A+E}),c.classList.toggle("cm-tooltip-above",C),c.classList.toggle("cm-tooltip-below",!C),u.positioned&&u.positioned(e.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 e of this.manager.tooltipViews)e.dom.style.top=TE}},{eventObservers:{scroll(){this.maybeMeasure()}}}),oHe=fn.baseTheme({".cm-tooltip":{zIndex:100,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"}}}),lHe={x:0,y:0},aB=Sn.define({enables:[iB,oHe]}),h3=Sn.define();class qR{static create(t){return new qR(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new hde(t,h3,n=>this.createHostedView(n),n=>n.dom.remove())}createHostedView(t){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}passProp(t){let n;for(let r of this.manager.tooltipViews){let i=r[t];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 uHe=aB.compute([h3],e=>{let t=e.facet(h3).filter(n=>n);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:qR.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class cHe{constructor(t,n,r,i,a){this.view=t,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:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.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)return;let t=Date.now()-this.lastMove.time;to.bottom||n.xo.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(c=>c.from<=i&&c.to>=i),u=l&&l.dir==Hi.RTL?-1:1;a=n.x{this.pending==o&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>Oc(t.state,l,"hover tooltip"))}else s&&t.dispatch({effects:this.setHover.of(s)})}get tooltip(){let t=this.view.plugin(iB),n=t?t.manager.tooltips.findIndex(r=>r.create==qR.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r&&i&&!dHe(i.dom,t)||this.pending){let{pos:a}=r||this.pending,s=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:a;(a==s?this.view.posAtCoords(this.lastMove)!=a:!fHe(this.view,a,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const lA=4;function dHe(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-lA&&t.clientX<=n.right+lA&&t.clientY>=n.top-lA&&t.clientY<=n.bottom+lA}function fHe(e,t,n,r,i,a){let s=e.scrollDOM.getBoundingClientRect(),o=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.righti||Math.min(s.bottom,o)=t&&l<=n}function hHe(e,t={}){let n=dr.define(),r=As.define({create(){return null},update(i,a){if(i&&(t.hideOnChange&&(a.docChanged||a.selection)||t.hideOn&&t.hideOn(a,i)))return null;if(i&&a.docChanged){let s=a.changes.mapPos(i.pos,-1,Hs.TrackDel);if(s==null)return null;let o=Object.assign(Object.create(null),i);o.pos=s,i.end!=null&&(o.end=a.changes.mapPos(i.end)),i=o}for(let s of a.effects)s.is(n)&&(i=s.value),s.is(pHe)&&(i=null);return i},provide:i=>h3.from(i)});return[r,ua.define(i=>new cHe(i,e,r,n,t.hoverTime||300)),uHe]}function pde(e,t){let n=e.plugin(iB);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const pHe=dr.define(),IK=Sn.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function Gw(e,t){let n=e.plugin(mde),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const mde=ua.fromClass(class{constructor(e){this.input=e.state.facet(Yw),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(IK);this.top=new uA(e,!0,t.topContainer),this.bottom=new uA(e,!1,t.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(e){let t=e.state.facet(IK);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new uA(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new uA(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Yw);if(n!=this.input){let r=n.filter(l=>l),i=[],a=[],s=[],o=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(e.view),o.push(c)):(c=this.panels[u],c.update&&c.update(e)),i.push(c),(c.top?a:s).push(c)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(let l of o)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>fn.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class uA{constructor(t,n,r){this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let n of this.panels)n.destroy&&t.indexOf(n)<0&&n.destroy();this.panels=t,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 t=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;t!=n.dom;)t=DK(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=DK(t)}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 t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function DK(e){let t=e.nextSibling;return e.remove(),t}const Yw=Sn.define({enables:mde});class op extends p1{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}op.prototype.elementClass="";op.prototype.toDOM=void 0;op.prototype.mapMode=Hs.TrackBefore;op.prototype.startSide=op.prototype.endSide=-1;op.prototype.point=!0;const M4=Sn.define(),mHe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Br.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},$2=Sn.define();function gHe(e){return[gde(),$2.of(Object.assign(Object.assign({},mHe),e))]}const zM=Sn.define({combine:e=>e.some(t=>t)});function gde(e){let t=[bHe];return e&&e.fixed===!1&&t.push(zM.of(!0)),t}const bHe=ua.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.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=e.state.facet($2).map(t=>new PK(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(zM),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(zM)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=Br.iter(this.view.state.facet(M4),this.view.viewport.from),r=[],i=this.gutters.map(a=>new yHe(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==qo.Text&&s){jM(n,r,o.from);for(let l of i)l.line(this.view,o,r);s=!1}else if(o.widget)for(let l of i)l.widget(this.view,o)}else if(a.type==qo.Text){jM(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();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet($2),n=e.state.facet($2),r=e.docChanged||e.heightChanged||e.viewportChanged||!Br.eq(e.startState.facet(M4),e.state.facet(M4),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let a of n){let s=t.indexOf(a);s<0?i.push(new PK(this.view,a)):(this.gutters[s].update(e),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 e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>fn.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==Hi.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function NK(e){return Array.isArray(e)?e:[e]}function jM(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class yHe{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Br.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,a=(n.top-this.height)/t.scaleY,s=n.height/t.scaleY;if(this.i==i.elements.length){let o=new bde(t,s,a,r);i.elements.push(o),i.dom.appendChild(o.dom)}else i.elements[this.i].update(t,s,a,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];jM(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(t,n,i);a&&i.unshift(a);let s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class PK{constructor(t,n){this.view=t,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 l=a.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=i.clientY;let o=t.lineBlockAtHeight(s-t.documentTop);n.domEventHandlers[r](t,o,i)&&i.preventDefault()});this.markers=NK(n.markers(t)),n.initialSpacer&&(this.spacer=new bde(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=NK(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let r=t.view.viewport;return!Br.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class bde{constructor(t,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,i)}update(t,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":""),vHe(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,s=0;;){let o=s,l=aa(o,l,u)||s(o,l,u):s}return r}})}});class HN extends op{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function VN(e,t){return e.state.facet(Ny).formatNumber(t,e.state)}const SHe=$2.compute([Ny],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(OHe)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new HN(VN(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Ny)!=t.state.facet(Ny),initialSpacer(t){return new HN(VN(t,MK(t.state.doc.lines)))},updateSpacer(t,n){let r=VN(n.view,MK(n.view.state.doc.lines));return r==t.number?t:new HN(r)},domEventHandlers:e.facet(Ny).domEventHandlers}));function EHe(e={}){return[Ny.of(e),gde(),SHe]}function MK(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(wHe.range(i)))}return Br.of(t)});function THe(){return xHe}const yde=1024;let kHe=0;class fc{constructor(t,n){this.from=t,this.to=n}}class rr{constructor(t={}){this.id=kHe++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=ss.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}rr.closedBy=new rr({deserialize:e=>e.split(" ")});rr.openedBy=new rr({deserialize:e=>e.split(" ")});rr.group=new rr({deserialize:e=>e.split(" ")});rr.isolate=new rr({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});rr.contextHash=new rr({perNode:!0});rr.lookAhead=new rr({perNode:!0});rr.mounted=new rr({perNode:!0});class Zw{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[rr.mounted.id]}}const CHe=Object.create(null);class ss{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):CHe,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new ss(t.name||"",n,t.id,r);if(t.props){for(let a of t.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(t){return this.props[t.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(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(rr.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(rr.group),a=-1;a<(i?i.length:0);a++){let s=n[a<0?r.name:i[a]];if(s)return s}}}}ss.none=new ss("",Object.create(null),0,8);class yT{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(s|_i.IncludeAnonymous);;){let u=!1;if(l.from<=a&&l.to>=i&&(!o&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(o||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:lB(ss.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new ci(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new ci(ss.none,n,r,i)))}static build(t){return IHe(t)}}ci.empty=new ci(ss.none,[],[],0);class sB{constructor(t,n){this.buffer=t,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 sB(this.buffer,this.index)}}class l0{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return ss.none}toString(){let t=[];for(let n=0;n0));l=s[l+3]);return o}slice(t,n,r){let i=this.buffer,a=new Uint16Array(n-t),s=0;for(let o=t,l=0;o=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Xw(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?o.length:-1;t!=u;t+=n){let c=o[t],f=l[t]+s.from;if(vde(i,r,f,f+c.length)){if(c instanceof l0){if(a&_i.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,n,r-f,i);if(h>-1)return new Ef(new AHe(s,c,t,f),null,h)}else if(a&_i.IncludeAnonymous||!c.type.isAnonymous||oB(c)){let h;if(!(a&_i.IgnoreMounts)&&(h=Zw.get(c))&&!h.overlay)return new vo(h.tree,f,t,s);let g=new vo(c,f,t,s);return a&_i.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(a&_i.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=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(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&_i.IgnoreOverlays)&&(i=Zw.get(this._tree))&&i.overlay){let a=t-this.from;for(let{from:s,to:o}of i.overlay)if((n>0?s<=a:s=a:o>a))return new vo(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}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 $K(e,t,n,r){let i=e.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(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function HM(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class AHe{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Ef extends Ode{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(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return a<0?null:new Ef(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&_i.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return a<0?null:new Ef(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Ef(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Ef(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],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];t.push(r.slice(i,a,s)),n.push(0)}return new ci(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Sde(e){if(!e.length)return null;let t=0,n=e[0];for(let a=1;an.from||s.to=t){let o=new vo(s.tree,s.overlay[0].from+a.from,-1,a);(i||(i=[r])).push(Xw(o,t,n,!1))}}return i?Sde(i):r}class p3{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof vo)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof vo?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],t,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(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&_i.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&_i.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&_i.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<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+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index-1)for(let a=n+t,s=t<0?-1:r._tree.children.length;a!=s;a+=t){let o=r._tree.children[a];if(this.mode&_i.IncludeAnonymous||o instanceof l0||!o.type.isAnonymous||oB(o))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let s=t;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=0;a--){if(a<0)return HM(this.node,t,i);let s=r[n.buffer[this.stack[a]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function oB(e){return e.children.some(t=>t instanceof l0||!t.type.isAnonymous||oB(t))}function IHe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=yde,reused:a=[],minRepeatType:s=r.types.length}=e,o=Array.isArray(n)?new sB(n,n.length):n,l=r.types,u=0,c=0;function f(R,A,D,B,L,F){let{id:W,start:V,end:Z,size:Q}=o,H=c;for(;Q<0;)if(o.next(),Q==-1){let z=a[W];D.push(z),B.push(V-R);return}else if(Q==-3){u=W;return}else if(Q==-4){c=W;return}else throw new RangeError(`Unrecognized record size: ${Q}`);let J=l[W],K,X,te=V-R;if(Z-V<=i&&(X=E(o.pos-A,L))){let z=new Uint16Array(X.size-X.skip),Te=o.pos-X.size,be=z.length;for(;o.pos>Te;)be=w(X.start,z,be);K=new l0(z,Z-X.start,r),te=X.start-R}else{let z=o.pos-Q;o.next();let Te=[],be=[],ee=W>=s?W:-1,ye=0,Oe=Z;for(;o.pos>z;)ee>=0&&o.id==ee&&o.size>=0?(o.end<=Oe-i&&(b(Te,be,V,ye,o.end,Oe,ee,H),ye=Te.length,Oe=o.end),o.next()):F>2500?h(V,z,Te,be):f(V,z,Te,be,ee,F+1);if(ee>=0&&ye>0&&ye-1&&ye>0){let ie=g(J);K=lB(J,Te,be,0,Te.length,0,Z-V,ie,ie)}else K=S(J,Te,be,Z-V,H-Z)}D.push(K),B.push(te)}function h(R,A,D,B){let L=[],F=0,W=-1;for(;o.pos>A;){let{id:V,start:Z,end:Q,size:H}=o;if(H>4)o.next();else{if(W>-1&&Z=0;Q-=3)V[H++]=L[Q],V[H++]=L[Q+1]-Z,V[H++]=L[Q+2]-Z,V[H++]=H;D.push(new l0(V,L[2]-Z,r)),B.push(Z-R)}}function g(R){return(A,D,B)=>{let L=0,F=A.length-1,W,V;if(F>=0&&(W=A[F])instanceof ci){if(!F&&W.type==R&&W.length==B)return W;(V=W.prop(rr.lookAhead))&&(L=D[F]+W.length+V)}return S(R,A,D,B,L)}}function b(R,A,D,B,L,F,W,V){let Z=[],Q=[];for(;R.length>B;)Z.push(R.pop()),Q.push(A.pop()+D-L);R.push(S(r.types[W],Z,Q,F-L,V-F)),A.push(L-D)}function S(R,A,D,B,L=0,F){if(u){let W=[rr.contextHash,u];F=F?[W].concat(F):[W]}if(L>25){let W=[rr.lookAhead,L];F=F?[W].concat(F):[W]}return new ci(R,A,D,B,F)}function E(R,A){let D=o.fork(),B=0,L=0,F=0,W=D.end-i,V={size:0,start:0,skip:0};e:for(let Z=D.pos-R;D.pos>Z;){let Q=D.size;if(D.id==A&&Q>=0){V.size=B,V.start=L,V.skip=F,F+=4,B+=4,D.next();continue}let H=D.pos-Q;if(Q<0||H=s?4:0,K=D.start;for(D.next();D.pos>H;){if(D.size<0)if(D.size==-3)J+=4;else break e;else D.id>=s&&(J+=4);D.next()}L=K,B+=Q,F+=J}return(A<0||B==R)&&(V.size=B,V.start=L,V.skip=F),V.size>4?V:void 0}function w(R,A,D){let{id:B,start:L,end:F,size:W}=o;if(o.next(),W>=0&&B4){let Z=o.pos-(W-4);for(;o.pos>Z;)D=w(R,A,D)}A[--D]=V,A[--D]=F-R,A[--D]=L-R,A[--D]=B}else W==-3?u=B:W==-4&&(c=B);return D}let x=[],k=[];for(;o.pos>0;)f(e.start||0,e.bufferStart||0,x,k,-1,0);let C=(t=e.length)!==null&&t!==void 0?t:x.length?k[0]+x[0].length:0;return new ci(l[e.topID],x.reverse(),k.reverse(),C)}const FK=new WeakMap;function L4(e,t){if(!e.isAnonymous||t instanceof l0||t.type!=e)return 1;let n=FK.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof ci)){n=1;break}n+=L4(e,r)}FK.set(t,n)}return n}function lB(e,t,n,r,i,a,s,o,l){let u=0;for(let b=r;b=c)break;A+=D}if(k==C+1){if(A>c){let D=b[C];g(D.children,D.positions,0,D.children.length,S[C]+x);continue}f.push(b[C])}else{let D=S[k-1]+b[k-1].length-R;f.push(lB(e,b,S,C,k,R,D,null,l))}h.push(R+x-a)}}return g(t,n,r,i,0),(o||l)(f,h,s)}class Ede{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof Ef?this.setBuffer(t.context.buffer,t.index,n):t instanceof vo&&this.map.set(t.tree,n)}get(t){return t instanceof Ef?this.getBuffer(t.context.buffer,t.index):t instanceof vo?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Wh{constructor(t,n,r,i,a=!1,s=!1){this.from=t,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(t,n=[],r=!1){let i=[new Wh(0,t.length,t,0,!1,r)];for(let a of n)a.to>t.length&&i.push(a);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],a=1,s=t.length?t[0]:null;for(let o=0,l=0,u=0;;o++){let c=o=r)for(;s&&s.from=h.from||f<=h.to||u){let g=Math.max(h.from,l)-u,b=Math.min(h.to,f)-u;h=g>=b?null:new Wh(g,b,h.tree,h.offset+u,o>0,!!c)}if(h&&i.push(h),s.to>f)break;s=anew fc(i.from,i.to)):[new fc(0,0)]:[new fc(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let a=i.advance();if(a)return a}}};class DHe{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function wde(e){return(t,n,r,i)=>new PHe(t,e,n,r,i)}class BK{constructor(t,n,r,i,a){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=a}}function UK(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class NHe{constructor(t,n,r,i,a,s,o){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=a,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const VM=new rr({perNode:!0});class PHe{constructor(t,n,r,i,a){this.nest=n,this.input=r,this.fragments=i,this.ranges=a,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new ci(r.type,r.children,r.positions,r.length,r.propValues.concat([[VM,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[rr.mounted.id]=new Zw(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)o=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(c=>c.frag.from<=i.from&&c.frag.to>=i.to&&c.mount.overlay);if(u)for(let c of u.mount.overlay){let f=c.from+u.pos,h=c.to+u.pos;f>=i.from&&h<=i.to&&!n.ranges.some(g=>g.fromf)&&n.ranges.push({from:f,to:h})}}o=!1}else if(r&&(s=MHe(r.ranges,i.from,i.to)))o=s!=2;else if(!i.type.isAnonymous&&(a=this.nest(i,this.input))&&(i.fromnew fc(f.from-i.from,f.to-i.from)):null,i.tree,c.length?c[0].from:i.from)),a.overlay?c.length&&(r={ranges:c,depth:0,prev:r}):o=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new fc(i.from,i.to)),l.fromnew fc(c.from-n.start,c.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function MHe(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function zK(e,t,n,r,i,a){if(t=t&&n.enter(r,1,_i.IgnoreOverlays|_i.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof ci)n=n.children[0];else break}return!1}}let $He=class{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(VM))!==null&&n!==void 0?n:r.to,this.inner=new jK(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(VM))!==null&&t!==void 0?t:n.to,this.inner=new jK(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let a=this.inner.cursor.node;a;a=a.parent){let s=(r=a.tree)===null||r===void 0?void 0:r.prop(rr.mounted);if(s&&s.parser==n)for(let o=this.fragI;o=a.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:a.from-l.offset,mount:s})}}}return i}};function HK(e,t){let n=null,r=t;for(let i=1,a=0;i=o)break;l.to<=s||(n||(r=n=t.slice()),l.fromo&&n.splice(a+1,0,new fc(o,l.to))):l.to>o?n[a--]=new fc(o,l.to):n.splice(a--,1))}}return r}function FHe(e,t,n,r){let i=0,a=0,s=!1,o=!1,l=-1e9,u=[];for(;;){let c=i==e.length?1e9:s?e[i].to:e[i].from,f=a==t.length?1e9:o?t[a].to:t[a].from;if(s!=o){let h=Math.max(l,n),g=Math.min(c,f,r);hnew fc(h.from+r,h.to+r)),f=FHe(t,c,l,u);for(let h=0,g=l;;h++){let b=h==f.length,S=b?u:f[h].from;if(S>g&&n.push(new Wh(g,S,i.tree,-s,a.from>=g||a.openStart,a.to<=S||a.openEnd)),b)break;g=f[h].to}}else n.push(new Wh(l,u,i.tree,-s,a.from>=s||a.openStart,a.to<=o||a.openEnd))}return n}let BHe=0;class rd{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=BHe++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new rd([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new m3;return n=>n.modified.indexOf(t)>-1?n:m3.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}}let UHe=0;class m3{constructor(){this.instances=[],this.id=UHe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(o=>o.base==t&&zHe(n,o.modified));if(r)return r;let i=[],a=new rd(i,t,n);for(let o of n)o.instances.push(a);let s=jHe(n);for(let o of t.set)if(!o.modified.length)for(let l of s)i.push(m3.get(o,l));return a}}function zHe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function jHe(e){let t=[[]];for(let n=0;nr.length-n.length)}function DO(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let a=[],s=2,o=i;for(let f=0;;){if(o=="..."&&f>0&&f+3==i.length){s=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!h)throw new RangeError("Invalid path: "+i);if(a.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),f+=h[0].length,f==i.length)break;let g=i[f++];if(f==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);o=i.slice(f)}let l=a.length-1,u=a[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new g3(r,s,l>0?a.slice(0,l):null);t[u]=c.sort(t[u])}}return xde.add(t)}const xde=new rr;class g3{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let s=i;for(let o of a)for(let l of o.set){let u=n[l.id];if(u){s=s?s+" "+u:u;break}}return s},scope:r}}function HHe(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function VHe(e,t,n,r=0,i=e.length){let a=new WHe(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,"",a.highlighters),a.flush(i)}class WHe{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,a){let{type:s,from:o,to:l}=t;if(o>=r||l<=n)return;s.isTop&&(a=this.highlighters.filter(g=>!g.scope||g.scope(s)));let u=i,c=QHe(t)||g3.empty,f=HHe(a,c.tags);if(f&&(u&&(u+=" "),u+=f,c.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,o),u),c.opaque)return;let h=t.tree&&t.tree.prop(rr.mounted);if(h&&h.overlay){let g=t.node.enter(h.overlay[0].from+o,1),b=this.highlighters.filter(E=>!E.scope||E.scope(h.tree.type)),S=t.firstChild();for(let E=0,w=o;;E++){let x=E=k||!t.nextSibling())););if(!x||k>r)break;w=x.to+o,w>n&&(this.highlightRange(g.cursor(),Math.max(n,x.from+o),Math.min(r,w),"",b),this.startSpan(Math.min(r,w),u))}S&&t.parent()}else if(t.firstChild()){h&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,a),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function QHe(e){let t=e.type.prop(xde);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const nn=rd.define,dA=nn(),om=nn(),WK=nn(om),QK=nn(om),lm=nn(),fA=nn(lm),WN=nn(lm),nf=nn(),ug=nn(nf),Jd=nn(),ef=nn(),WM=nn(),kE=nn(WM),hA=nn(),Ee={comment:dA,lineComment:nn(dA),blockComment:nn(dA),docComment:nn(dA),name:om,variableName:nn(om),typeName:WK,tagName:nn(WK),propertyName:QK,attributeName:nn(QK),className:nn(om),labelName:nn(om),namespace:nn(om),macroName:nn(om),literal:lm,string:fA,docString:nn(fA),character:nn(fA),attributeValue:nn(fA),number:WN,integer:nn(WN),float:nn(WN),bool:nn(lm),regexp:nn(lm),escape:nn(lm),color:nn(lm),url:nn(lm),keyword:Jd,self:nn(Jd),null:nn(Jd),atom:nn(Jd),unit:nn(Jd),modifier:nn(Jd),operatorKeyword:nn(Jd),controlKeyword:nn(Jd),definitionKeyword:nn(Jd),moduleKeyword:nn(Jd),operator:ef,derefOperator:nn(ef),arithmeticOperator:nn(ef),logicOperator:nn(ef),bitwiseOperator:nn(ef),compareOperator:nn(ef),updateOperator:nn(ef),definitionOperator:nn(ef),typeOperator:nn(ef),controlOperator:nn(ef),punctuation:WM,separator:nn(WM),bracket:kE,angleBracket:nn(kE),squareBracket:nn(kE),paren:nn(kE),brace:nn(kE),content:nf,heading:ug,heading1:nn(ug),heading2:nn(ug),heading3:nn(ug),heading4:nn(ug),heading5:nn(ug),heading6:nn(ug),contentSeparator:nn(nf),list:nn(nf),quote:nn(nf),emphasis:nn(nf),strong:nn(nf),link:nn(nf),monospace:nn(nf),strikethrough:nn(nf),inserted:nn(),deleted:nn(),changed:nn(),invalid:nn(),meta:hA,documentMeta:nn(hA),annotation:nn(hA),processingInstruction:nn(hA),definition:rd.defineModifier(),constant:rd.defineModifier(),function:rd.defineModifier(),standard:rd.defineModifier(),local:rd.defineModifier(),special:rd.defineModifier()};Tde([{tag:Ee.link,class:"tok-link"},{tag:Ee.heading,class:"tok-heading"},{tag:Ee.emphasis,class:"tok-emphasis"},{tag:Ee.strong,class:"tok-strong"},{tag:Ee.keyword,class:"tok-keyword"},{tag:Ee.atom,class:"tok-atom"},{tag:Ee.bool,class:"tok-bool"},{tag:Ee.url,class:"tok-url"},{tag:Ee.labelName,class:"tok-labelName"},{tag:Ee.inserted,class:"tok-inserted"},{tag:Ee.deleted,class:"tok-deleted"},{tag:Ee.literal,class:"tok-literal"},{tag:Ee.string,class:"tok-string"},{tag:Ee.number,class:"tok-number"},{tag:[Ee.regexp,Ee.escape,Ee.special(Ee.string)],class:"tok-string2"},{tag:Ee.variableName,class:"tok-variableName"},{tag:Ee.local(Ee.variableName),class:"tok-variableName tok-local"},{tag:Ee.definition(Ee.variableName),class:"tok-variableName tok-definition"},{tag:Ee.special(Ee.variableName),class:"tok-variableName2"},{tag:Ee.definition(Ee.propertyName),class:"tok-propertyName tok-definition"},{tag:Ee.typeName,class:"tok-typeName"},{tag:Ee.namespace,class:"tok-namespace"},{tag:Ee.className,class:"tok-className"},{tag:Ee.macroName,class:"tok-macroName"},{tag:Ee.propertyName,class:"tok-propertyName"},{tag:Ee.operator,class:"tok-operator"},{tag:Ee.comment,class:"tok-comment"},{tag:Ee.meta,class:"tok-meta"},{tag:Ee.invalid,class:"tok-invalid"},{tag:Ee.punctuation,class:"tok-punctuation"}]);var QN;const Lg=new rr;function cB(e){return Sn.define({combine:e?t=>t.concat(e):void 0})}const dB=new rr;class hc{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Hr.prototype.hasOwnProperty("tree")||Object.defineProperty(Hr.prototype,"tree",{get(){return Di(this)}}),this.parser=n,this.extension=[u0.of(this),Hr.languageData.of((a,s,o)=>{let l=qK(a,s,o),u=l.type.prop(Lg);if(!u)return[];let c=a.facet(u),f=l.type.prop(dB);if(f){let h=l.resolve(s-l.from,o);for(let g of f)if(g.test(h,a)){let b=a.facet(g.facet);return g.type=="replace"?b:b.concat(c)}}return c})].concat(r)}isActiveAt(t,n,r=-1){return qK(t,n,r).type.prop(Lg)==this.data}findRegions(t){let n=t.facet(u0);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,s)=>{if(a.prop(Lg)==this.data){r.push({from:s,to:s+a.length});return}let o=a.prop(rr.mounted);if(o){if(o.tree.prop(Lg)==this.data){if(o.overlay)for(let l of o.overlay)r.push({from:l.from+s,to:l.to+s});else r.push({from:s,to:s+a.length});return}else if(o.overlay){let l=r.length;if(i(o.tree,o.overlay[0].from+s),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new eO(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Di(e){let t=e.field(hc.state,!1);return t?t.tree:ci.empty}class qHe{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let CE=null;class Kw{constructor(t,n,r=[],i,a,s,o,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new Kw(t,n,[],ci.empty,0,r,[],null)}startParse(){return this.parser.startParse(new qHe(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=ci.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(Wh.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=CE;CE=this;try{return t()}finally{CE=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=GK(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,c,f,h)=>l.push({fromA:u,toA:c,fromB:f,toB:h})),r=Wh.applyChanges(r,l),i=ci.empty,a=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){o=[];for(let u of this.skipped){let c=t.mapPos(u.from,1),f=t.mapPos(u.to,-1);ct.from&&(this.fragments=GK(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(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends uB{createParse(n,r,i){let a=i[0].from,s=i[i.length-1].to;return{parsedPos:a,advance(){let l=CE;if(l){for(let u of i)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new ci(ss.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return CE}}function GK(e,t,n){return Wh.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class tO{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new tO(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Kw.create(t.facet(u0).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new tO(r)}}hc.state=As.define({create:tO.init,update(e,t){for(let n of t.effects)if(n.is(hc.setState))return n.value;return t.startState.facet(u0)!=t.state.facet(u0)?tO.init(t.state):e.apply(t)}});let kde=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(kde=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const qN=typeof navigator<"u"&&(!((QN=navigator.scheduling)===null||QN===void 0)&&QN.isInputPending)?()=>navigator.scheduling.isInputPending():null,GHe=ua.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(hc.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:t}=this.view,n=t.field(hc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=kde(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=a.context.work(()=>qN&&qN()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:hc.setState.of(new tO(a.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Oc(this.view.state,n)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),u0=Sn.define({combine(e){return e.length?e[0]:null},enables:e=>[hc.state,GHe,fn.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Jw{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class b3{constructor(t,n,r,i,a,s=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=a,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new b3(t.name,(t.alias||[]).concat(t.name).map(i=>i.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let i of t)if(i.filename&&i.filename.test(n))return i;let r=/\.([^.]+)$/.exec(n);if(r){for(let i of t)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let i of t)if(i.alias.some(a=>a==n))return i;if(r)for(let i of t)for(let a of i.alias){let s=n.indexOf(a);if(s>-1&&(a.length>2||!/\w/.test(n[s-1])&&!/\w/.test(n[s+a.length])))return i}return null}}const YHe=Sn.define(),vT=Sn.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function y3(e){let t=e.facet(vT);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function ex(e,t){let n="",r=e.tabSize,i=e.facet(vT)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let a=0;a=t?ZHe(e,n,t):null}class GR{constructor(t,n={}){this.state=t,this.options=n,this.unit=y3(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&i==t?{text:"",from:t}:(n<0?i-1&&(a+=s-this.countColumn(r,r.search(/\S|$/))),a}countColumn(t,n=t.length){return vd(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,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 OT=new rr;function ZHe(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let s=i;s!=r.node;s=s.parent)a.push(s);for(let s=a.length-1;s>=0;s--)r={node:a[s],next:r}}return Cde(r,e,n)}function Cde(e,t,n){for(let r=e;r;r=r.next){let i=KHe(r.node);if(i)return i(hB.create(t,n,r))}return 0}function XHe(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function KHe(e){let t=e.type.prop(OT);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(rr.closedBy))){let i=e.lastChild,a=i&&r.indexOf(i.name)>-1;return s=>Ade(s,!0,1,void 0,a&&!XHe(s)?i.from:void 0)}return e.parent==null?JHe:null}function JHe(){return 0}class hB extends GR{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new hB(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(eVe(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return Cde(this.context.next,this.base,this.pos)}}function eVe(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function tVe(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),s=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let o=n.to;;){let l=t.childAfter(o);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromAde(r,t,n,e)}function Ade(e,t,n,r,i){let a=e.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==e.pos+s,l=t?tVe(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*n)}const rVe=e=>e.baseIndent;function $4({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const iVe=200;function aVe(){return Hr.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+iVe)return e;let a=n.sliceString(i.from,r);if(!t.some(u=>u.test(a)))return e;let{state:s}=e,o=-1,l=[];for(let{head:u}of s.selection.ranges){let c=s.doc.lineAt(u);if(c.from==o)continue;o=c.from;let f=fB(s,c.from);if(f==null)continue;let h=/^\s*/.exec(c.text)[0],g=ex(s,f);h!=g&&l.push({from:c.from,to:c.from+h.length,insert:g})}return l.length?[e,{changes:l,sequential:!0}]:e})}const _de=Sn.define(),NO=new rr;function Rde(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(a&&o.from=t&&u.to>n&&(a=u)}}return a}function oVe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function v3(e,t,n){for(let r of e.facet(_de)){let i=r(e,t,n);if(i)return i}return sVe(e,t,n)}function Ide(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const YR=dr.define({map:Ide}),ST=dr.define({map:Ide});function Dde(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(r=>r.from<=n&&r.to>=n)||t.push(e.lineBlockAt(n));return t}const b1=As.define({create(){return An.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(YR)&&!lVe(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(pB),i=r?An.replace({widget:new mVe(r(t.state,n.value))}):YK;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(ST)&&(e=e.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(i,a)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return e},provide:e=>fn.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>a)&&(i={from:a,to:s})}),i}function lVe(e,t,n){let r=!1;return e.between(t,t,(i,a)=>{i==t&&a==n&&(r=!0)}),r}function Nde(e,t){return e.field(b1,!1)?t:t.concat(dr.appendConfig.of(Mde()))}const uVe=e=>{for(let t of Dde(e)){let n=v3(e.state,t.from,t.to);if(n)return e.dispatch({effects:Nde(e.state,[YR.of(n),Pde(e,n)])}),!0}return!1},cVe=e=>{if(!e.state.field(b1,!1))return!1;let t=[];for(let n of Dde(e)){let r=O3(e.state,n.from,n.to);r&&t.push(ST.of(r),Pde(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function Pde(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return fn.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const dVe=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(b1,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(ST.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},hVe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:uVe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:cVe},{key:"Ctrl-Alt-[",run:dVe},{key:"Ctrl-Alt-]",run:fVe}],pVe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},pB=Sn.define({combine(e){return qf(e,pVe)}});function Mde(e){let t=[b1,yVe];return e&&t.push(pB.of(e)),t}function Lde(e,t){let{state:n}=e,r=n.facet(pB),i=s=>{let o=e.lineBlockAt(e.posAtDOM(s.target)),l=O3(e.state,o.from,o.to);l&&e.dispatch({effects:ST.of(l)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);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 YK=An.replace({widget:new class extends Ad{toDOM(e){return Lde(e,null)}}});class mVe extends Ad{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Lde(t,this.value)}}const gVe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class GN extends op{constructor(t,n){super(),this.config=t,this.open=n}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){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=t.state.phrase(this.open?"Fold line":"Unfold line"),n}}function bVe(e={}){let t=Object.assign(Object.assign({},gVe),e),n=new GN(t,!0),r=new GN(t,!1),i=ua.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(u0)!=s.state.facet(u0)||s.startState.field(b1,!1)!=s.state.field(b1,!1)||Di(s.startState)!=Di(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let o=new i0;for(let l of s.viewportLineBlocks){let u=O3(s.state,l.from,l.to)?r:v3(s.state,l.from,l.to)?n:null;u&&o.add(l.from,l.from,u)}return o.finish()}}),{domEventHandlers:a}=t;return[i,gHe({class:"cm-foldGutter",markers(s){var o;return((o=s.plugin(i))===null||o===void 0?void 0:o.markers)||Br.empty},initialSpacer(){return new GN(t,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(s,o,l)=>{if(a.click&&a.click(s,o,l))return!0;let u=O3(s.state,o.from,o.to);if(u)return s.dispatch({effects:ST.of(u)}),!0;let c=v3(s.state,o.from,o.to);return c?(s.dispatch({effects:YR.of(c)}),!0):!1}})}),Mde()]}const yVe=fn.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 ET{constructor(t,n){this.specs=t;let r;function i(o){let l=a0.newName();return(r||(r=Object.create(null)))["."+l]=o,l}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof hc?o=>o.prop(Lg)==s.data:s?o=>o==s:void 0,this.style=Tde(t.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:a}).style,this.module=r?new a0(r):null,this.themeType=n.themeType}static define(t,n){return new ET(t,n||{})}}const QM=Sn.define(),$de=Sn.define({combine(e){return e.length?[e[0]]:null}});function YN(e){let t=e.facet(QM);return t.length?t:e.facet($de)}function Fde(e,t){let n=[OVe],r;return e instanceof ET&&(e.module&&n.push(fn.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push($de.of(e)):r?n.push(QM.computeN([fn.darkTheme],i=>i.facet(fn.darkTheme)==(r=="dark")?[e]:[])):n.push(QM.of(e)),n}class vVe{constructor(t){this.markCache=Object.create(null),this.tree=Di(t.state),this.decorations=this.buildDeco(t,YN(t.state))}update(t){let n=Di(t.state),r=YN(t.state),i=r!=YN(t.startState);n.length{r.add(s,o,this.markCache[l]||(this.markCache[l]=An.mark({class:l})))},i,a);return r.finish()}}const OVe=k0.high(ua.fromClass(vVe,{decorations:e=>e.decorations})),SVe=ET.define([{tag:Ee.meta,color:"#404740"},{tag:Ee.link,textDecoration:"underline"},{tag:Ee.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Ee.emphasis,fontStyle:"italic"},{tag:Ee.strong,fontWeight:"bold"},{tag:Ee.strikethrough,textDecoration:"line-through"},{tag:Ee.keyword,color:"#708"},{tag:[Ee.atom,Ee.bool,Ee.url,Ee.contentSeparator,Ee.labelName],color:"#219"},{tag:[Ee.literal,Ee.inserted],color:"#164"},{tag:[Ee.string,Ee.deleted],color:"#a11"},{tag:[Ee.regexp,Ee.escape,Ee.special(Ee.string)],color:"#e40"},{tag:Ee.definition(Ee.variableName),color:"#00f"},{tag:Ee.local(Ee.variableName),color:"#30a"},{tag:[Ee.typeName,Ee.namespace],color:"#085"},{tag:Ee.className,color:"#167"},{tag:[Ee.special(Ee.variableName),Ee.macroName],color:"#256"},{tag:Ee.definition(Ee.propertyName),color:"#00c"},{tag:Ee.comment,color:"#940"},{tag:Ee.invalid,color:"#f00"}]),EVe=fn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Bde=1e4,Ude="()[]{}",zde=Sn.define({combine(e){return qf(e,{afterCursor:!0,brackets:Ude,maxScanDistance:Bde,renderMatch:TVe})}}),wVe=An.mark({class:"cm-matchingBracket"}),xVe=An.mark({class:"cm-nonmatchingBracket"});function TVe(e){let t=[],n=e.matched?wVe:xVe;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const kVe=As.define({create(){return An.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(zde);for(let i of t.state.selection.ranges){if(!i.empty)continue;let a=wf(t.state,i.head,-1,r)||i.head>0&&wf(t.state,i.head-1,1,r)||r.afterCursor&&(wf(t.state,i.head,1,r)||i.headfn.decorations.from(e)}),CVe=[kVe,EVe];function AVe(e={}){return[zde.of(e),CVe]}const jde=new rr;function qM(e,t,n){let r=e.prop(t<0?rr.openedBy:rr.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function GM(e){let t=e.type.prop(jde);return t?t(e.node):e}function wf(e,t,n,r={}){let i=r.maxScanDistance||Bde,a=r.brackets||Ude,s=Di(e),o=s.resolveInner(t,n);for(let l=o;l;l=l.parent){let u=qM(l.type,n,a);if(u&&l.from0?t>=c.from&&tc.from&&t<=c.to))return _Ve(e,t,n,l,c,u,a)}}return RVe(e,t,n,s,o.type,i,a)}function _Ve(e,t,n,r,i,a,s){let o=r.parent,l={from:i.from,to:i.to},u=0,c=o==null?void 0:o.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(u==0&&a.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),f=0;for(let h=0;!c.next().done&&h<=a;){let g=c.value;n<0&&(h+=g.length);let b=t+h*n;for(let S=n>0?0:g.length-1,E=n>0?g.length:-1;S!=E;S+=n){let w=s.indexOf(g[S]);if(!(w<0||r.resolveInner(b+S,1).type!=i))if(w%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:b+S,to:b+S+1},matched:w>>1==l>>1};f--}}n>0&&(h+=g.length)}return c.done?{start:u,matched:!1}:null}const IVe=Object.create(null),ZK=[ss.none],XK=[],KK=Object.create(null),DVe=Object.create(null);for(let[e,t]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"]])DVe[e]=NVe(IVe,t);function ZN(e,t){XK.indexOf(e)>-1||(XK.push(e),console.warn(t))}function NVe(e,t){let n=[];for(let o of t.split(" ")){let l=[];for(let u of o.split(".")){let c=e[u]||Ee[u];c?typeof c=="function"?l.length?l=l.map(c):ZN(u,`Modifier ${u} used at start of tag`):l.length?ZN(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:ZN(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(o=>o.id),a=KK[i];if(a)return a.id;let s=KK[i]=ss.define({id:ZK.length,name:r,props:[DO({[r]:n})]});return ZK.push(s),s.id}Hi.RTL,Hi.LTR;const PVe=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=gB(e.state,n.from);return r.line?MVe(e):r.block?$Ve(e):!1};function mB(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}const MVe=mB(UVe,0),LVe=mB(Hde,0),$Ve=mB((e,t)=>Hde(e,t,BVe(t)),0);function gB(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const AE=50;function FVe(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-AE,r),s=e.sliceDoc(i,i+AE),o=/\s*$/.exec(a)[0].length,l=/^\s*/.exec(s)[0].length,u=a.length-o;if(a.slice(u-t.length,u)==t&&s.slice(l,l+n.length)==n)return{open:{pos:r-o,margin:o&&1},close:{pos:i+l,margin:l&&1}};let c,f;i-r<=2*AE?c=f=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+AE),f=e.sliceDoc(i-AE,i));let h=/^\s*/.exec(c)[0].length,g=/\s*$/.exec(f)[0].length,b=f.length-g-n.length;return c.slice(h,h+t.length)==t&&f.slice(b,b+n.length)==n?{open:{pos:r+h+t.length,margin:/\s/.test(c.charAt(h+t.length))?1:0},close:{pos:i-g-n.length,margin:/\s/.test(f.charAt(b-1))?1:0}}:null}function BVe(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function Hde(e,t,n=t.selection.ranges){let r=n.map(a=>gB(t,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,s)=>FVe(t,r[s],a.from,a.to));if(e!=2&&!i.every(a=>a))return{changes:t.changes(n.map((a,s)=>i[s]?[]:[{from:a.from,insert:r[s].open+" "},{from:a.to,insert:" "+r[s].close}]))};if(e!=1&&i.some(a=>a)){let a=[];for(let s=0,o;si&&(a==s||s>f.from)){i=f.from;let h=/^\s*/.exec(f.text)[0].length,g=h==f.length,b=f.text.slice(h,h+u.length)==u?h:-1;ha.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:o,token:l,indent:u,empty:c,single:f}of r)(f||!c)&&a.push({from:o.from+u,insert:l+" "});let s=t.changes(a);return{changes:s,selection:t.selection.map(s,1)}}else if(e!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:s,comment:o,token:l}of r)if(o>=0){let u=s.from+o,c=u+l.length;s.text[c-s.from]==" "&&c++,a.push({from:u,to:c})}return{changes:a}}return null}const YM=Cd.define(),zVe=Cd.define(),jVe=Sn.define(),Vde=Sn.define({combine(e){return qf(e,{minDepth:100,newGroupDelay:500,joinToEvent:(t,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,n)=>(r,i)=>t(r,i)||n(r,i)})}}),Wde=As.define({create(){return xf.empty},update(e,t){let n=t.state.facet(Vde),r=t.annotation(YM);if(r){let l=Sl.fromTransaction(t,r.selection),u=r.side,c=u==0?e.undone:e.done;return l?c=S3(c,c.length,n.minDepth,l):c=Gde(c,t.startState.selection),new xf(u==0?r.rest:c,u==0?c:r.rest)}let i=t.annotation(zVe);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(xs.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=Sl.fromTransaction(t),s=t.annotation(xs.time),o=t.annotation(xs.userEvent);return a?e=e.addChanges(a,s,o,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,o,n.newGroupDelay)),(i=="full"||i=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new xf(e.done.map(Sl.fromJSON),e.undone.map(Sl.fromJSON))}});function HVe(e={}){return[Wde,Vde.of(e),fn.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?Qde:t.inputType=="historyRedo"?ZM:null;return r?(t.preventDefault(),r(n)):!1}})]}function ZR(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Wde,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}const Qde=ZR(0,!1),ZM=ZR(1,!1),VVe=ZR(0,!0),WVe=ZR(1,!0);class Sl{constructor(t,n,r,i,a){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(t){return new Sl(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.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(t){return new Sl(t.changes&&ts.fromJSON(t.changes),[],t.mapped&&Mf.fromJSON(t.mapped),t.startSelection&&Ot.fromJSON(t.startSelection),t.selectionsAfter.map(Ot.fromJSON))}static fromTransaction(t,n){let r=pc;for(let i of t.startState.facet(jVe)){let a=i(t);a.length&&(r=r.concat(a))}return!r.length&&t.changes.empty?null:new Sl(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,pc)}static selection(t){return new Sl(void 0,pc,void 0,void 0,t)}}function S3(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function QVe(e,t){let n=[],r=!1;return e.iterChangedRanges((i,a)=>n.push(i,a)),t.iterChangedRanges((i,a,s,o)=>{for(let l=0;l=u&&s<=c&&(r=!0)}}),r}function qVe(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function qde(e,t){return e.length?t.length?e.concat(t):e:t}const pc=[],GVe=200;function Gde(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-GVe));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),S3(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Sl.selection([t])]}function YVe(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function XN(e,t){if(!e.length)return e;let n=e.length,r=pc;for(;n;){let i=ZVe(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=e.slice(0,n);return a[n-1]=i,a}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Sl.selection(r)]:pc}function ZVe(e,t,n){let r=qde(e.selectionsAfter.length?e.selectionsAfter.map(o=>o.map(t)):pc,n);if(!e.changes)return Sl.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(a):a;return new Sl(i,dr.mapEffects(e.effects,t),s,e.startSelection.map(a),r)}const XVe=/^(input\.type|delete)($|\.)/;class xf{constructor(t,n,r=0,i=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new xf(this.done,this.undone):this}addChanges(t,n,r,i,a){let s=this.done,o=s[s.length-1];return o&&o.changes&&!o.changes.empty&&t.changes&&(!r||XVe.test(r))&&(!o.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):XR(n,t))}function wo(e){return e.textDirectionAt(e.state.selection.main.head)==Hi.LTR}const Zde=e=>Yde(e,!wo(e)),Xde=e=>Yde(e,wo(e));function Kde(e,t){return _d(e,n=>n.empty?e.moveByGroup(n,t):XR(n,t))}const JVe=e=>Kde(e,!wo(e)),eWe=e=>Kde(e,wo(e));function tWe(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function KR(e,t,n){let r=Di(e).resolveInner(t.head),i=n?rr.closedBy:rr.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;tWe(e,u,i)?r=u:l=n?u.to:u.from}let a=r.type.prop(i),s,o;return a&&(s=n?wf(e,r.from,1):wf(e,r.to,-1))&&s.matched?o=n?s.end.to:s.end.from:o=n?r.to:r.from,Ot.cursor(o,n?-1:1)}const nWe=e=>_d(e,t=>KR(e.state,t,!wo(e))),rWe=e=>_d(e,t=>KR(e.state,t,wo(e)));function Jde(e,t){return _d(e,n=>{if(!n.empty)return XR(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const efe=e=>Jde(e,!1),tfe=e=>Jde(e,!0);function nfe(e){let t=e.scrollDOM.clientHeights.empty?e.moveVertically(s,t,n.height):XR(s,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let s=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),l=o.top+n.marginTop,u=o.bottom-n.marginBottom;s&&s.top>l&&s.bottomrfe(e,!1),XM=e=>rfe(e,!0);function C0(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let a=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&t.head!=r.from+a&&(i=Ot.cursor(r.from+a))}return i}const iWe=e=>_d(e,t=>C0(e,t,!0)),aWe=e=>_d(e,t=>C0(e,t,!1)),sWe=e=>_d(e,t=>C0(e,t,!wo(e))),oWe=e=>_d(e,t=>C0(e,t,wo(e))),lWe=e=>_d(e,t=>Ot.cursor(e.lineBlockAt(t.head).from,1)),uWe=e=>_d(e,t=>Ot.cursor(e.lineBlockAt(t.head).to,-1));function cWe(e,t,n){let r=!1,i=PO(e.selection,a=>{let s=wf(e,a.head,-1)||wf(e,a.head,1)||a.head>0&&wf(e,a.head-1,1)||a.headcWe(e,t,!1);function Dc(e,t){let n=PO(e.state.selection,r=>{let i=t(r);return Ot.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(Gf(e.state,n)),!0)}function ife(e,t){return Dc(e,n=>e.moveByChar(n,t))}const afe=e=>ife(e,!wo(e)),sfe=e=>ife(e,wo(e));function ofe(e,t){return Dc(e,n=>e.moveByGroup(n,t))}const fWe=e=>ofe(e,!wo(e)),hWe=e=>ofe(e,wo(e)),pWe=e=>Dc(e,t=>KR(e.state,t,!wo(e))),mWe=e=>Dc(e,t=>KR(e.state,t,wo(e)));function lfe(e,t){return Dc(e,n=>e.moveVertically(n,t))}const ufe=e=>lfe(e,!1),cfe=e=>lfe(e,!0);function dfe(e,t){return Dc(e,n=>e.moveVertically(n,t,nfe(e).height))}const eJ=e=>dfe(e,!1),tJ=e=>dfe(e,!0),gWe=e=>Dc(e,t=>C0(e,t,!0)),bWe=e=>Dc(e,t=>C0(e,t,!1)),yWe=e=>Dc(e,t=>C0(e,t,!wo(e))),vWe=e=>Dc(e,t=>C0(e,t,wo(e))),OWe=e=>Dc(e,t=>Ot.cursor(e.lineBlockAt(t.head).from)),SWe=e=>Dc(e,t=>Ot.cursor(e.lineBlockAt(t.head).to)),nJ=({state:e,dispatch:t})=>(t(Gf(e,{anchor:0})),!0),rJ=({state:e,dispatch:t})=>(t(Gf(e,{anchor:e.doc.length})),!0),iJ=({state:e,dispatch:t})=>(t(Gf(e,{anchor:e.selection.main.anchor,head:0})),!0),aJ=({state:e,dispatch:t})=>(t(Gf(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),EWe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),wWe=({state:e,dispatch:t})=>{let n=JR(e).map(({from:r,to:i})=>Ot.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:Ot.create(n),userEvent:"select"})),!0},xWe=({state:e,dispatch:t})=>{let n=PO(e.selection,r=>{var i;let a=Di(e).resolveStack(r.from,1);for(let s=a;s;s=s.next){let{node:o}=s;if((o.from=r.to||o.to>r.to&&o.from<=r.from)&&(!((i=o.parent)===null||i===void 0)&&i.parent))return Ot.range(o.to,o.from)}return r});return t(Gf(e,n)),!0},TWe=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=Ot.create([n.main]):n.main.empty||(r=Ot.create([Ot.cursor(n.main.head)])),r?(t(Gf(e,r)),!0):!1};function wT(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(a=>{let{from:s,to:o}=a;if(s==o){let l=t(a);ls&&(n="delete.forward",l=pA(e,l,!0)),s=Math.min(s,l),o=Math.max(o,l)}else s=pA(e,s,!1),o=pA(e,o,!0);return s==o?{range:a}:{changes:{from:s,to:o},range:Ot.cursor(s,si(e)))r.between(t,t,(i,a)=>{it&&(t=n?a:i)});return t}const ffe=(e,t)=>wT(e,n=>{let r=n.from,{state:i}=e,a=i.doc.lineAt(r),s,o;if(!t&&r>a.from&&rffe(e,!1),hfe=e=>ffe(e,!0),pfe=(e,t)=>wT(e,n=>{let r=n.head,{state:i}=e,a=i.doc.lineAt(r),s=i.charCategorizer(r);for(let o=null;;){if(r==(t?a.to:a.from)){r==n.head&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=Qs(a.text,r-a.from,t)+a.from,u=a.text.slice(Math.min(r,l)-a.from,Math.max(r,l)-a.from),c=s(u);if(o!=null&&c!=o)break;(u!=" "||r!=n.head)&&(o=c),r=l}return r}),mfe=e=>pfe(e,!1),kWe=e=>pfe(e,!0),CWe=e=>wT(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headwT(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),_We=e=>wT(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:Kr.of(["",""])},range:Ot.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},IWe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let i=r.from,a=e.doc.lineAt(i),s=i==a.from?i-1:Qs(a.text,i-a.from,!1)+a.from,o=i==a.to?i+1:Qs(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:o,insert:e.doc.slice(i,o).append(e.doc.slice(s,i))},range:Ot.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function JR(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let s=t[t.length-1];s.to=a.to,s.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function gfe(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let a of JR(e)){if(n?a.to==e.doc.length:a.from==0)continue;let s=e.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+e.lineBreak});for(let l of a.ranges)i.push(Ot.range(Math.min(e.doc.length,l.anchor+o),Math.min(e.doc.length,l.head+o)))}else{r.push({from:s.from,to:a.from},{from:a.to,insert:e.lineBreak+s.text});for(let l of a.ranges)i.push(Ot.range(l.anchor-o,l.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:Ot.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const DWe=({state:e,dispatch:t})=>gfe(e,t,!1),NWe=({state:e,dispatch:t})=>gfe(e,t,!0);function bfe(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of JR(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const PWe=({state:e,dispatch:t})=>bfe(e,t,!1),MWe=({state:e,dispatch:t})=>bfe(e,t,!0),LWe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(JR(t).map(({from:i,to:a})=>(i>0?i--:ae.moveVertically(i,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function $We(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Di(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(rr.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const FWe=yfe(!1),BWe=yfe(!0);function yfe(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:a,to:s}=i,o=t.doc.lineAt(a),l=!e&&a==s&&$We(t,a);e&&(a=s=(s<=o.to?o:t.doc.lineAt(s)).to);let u=new GR(t,{simulateBreak:a,simulateDoubleBreak:!!l}),c=fB(u,a);for(c==null&&(c=vd(/^\s*/.exec(t.doc.lineAt(a).text)[0],t.tabSize));so.from&&a{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let a=e.changes(i);return{changes:i,range:Ot.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const UWe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new GR(e,{overrideIndentation:a=>{let s=n[a];return s??-1}}),i=bB(e,(a,s,o)=>{let l=fB(r,a.from);if(l==null)return;/\S/.test(a.text)||(l=0);let u=/^\s*/.exec(a.text)[0],c=ex(e,l);(u!=c||o.frome.readOnly?!1:(t(e.update(bB(e,(n,r)=>{r.push({from:n.from,insert:e.facet(vT)})}),{userEvent:"input.indent"})),!0),Ofe=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(bB(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=vd(i,e.tabSize),s=0,o=ex(e,Math.max(0,a-y3(e)));for(;s({mac:e.key,run:e.run,shift:e.shift}))),HWe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:nWe,shift:pWe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:rWe,shift:mWe},{key:"Alt-ArrowUp",run:DWe},{key:"Shift-Alt-ArrowUp",run:PWe},{key:"Alt-ArrowDown",run:NWe},{key:"Shift-Alt-ArrowDown",run:MWe},{key:"Escape",run:TWe},{key:"Mod-Enter",run:BWe},{key:"Alt-l",mac:"Ctrl-l",run:wWe},{key:"Mod-i",run:xWe,preventDefault:!0},{key:"Mod-[",run:Ofe},{key:"Mod-]",run:vfe},{key:"Mod-Alt-\\",run:UWe},{key:"Shift-Mod-k",run:LWe},{key:"Shift-Mod-\\",run:dWe},{key:"Mod-/",run:PVe},{key:"Alt-A",run:LVe}].concat(jWe),VWe={key:"Tab",run:vfe,shift:Ofe};function Ai(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=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"?e.setAttribute(r,i):i!=null&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class nO{constructor(t,n,r=0,i=t.length,a,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=a?o=>a(sJ(o)):sJ,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 zs(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let n=qF(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=uc(t);let i=this.normalize(n);for(let a=0,s=r;;a++){let o=i.charCodeAt(a),l=this.match(o,s);if(a==i.length-1){if(l)return this.value=l,this;break}s==r&&athis.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 t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;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=E3(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let o=new nv(n,t.sliceString(n,r));return KN.set(t,o),o}if(i.from==n&&i.to==r)return i;let{text:a,from:s}=i;return s>n&&(a=t.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+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=E3(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=nv.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(wfe.prototype[Symbol.iterator]=xfe.prototype[Symbol.iterator]=function(){return this});function WWe(e){try{return new RegExp(e,yB),!0}catch{return!1}}function E3(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function JM(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=Ai("input",{class:"cm-textfield",name:"line",value:t}),r=Ai("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),e.dispatch({effects:w3.of(!1)}),e.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},Ai("label",e.state.phrase("Go to line"),": ",n)," ",Ai("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:s}=e,o=s.doc.lineAt(s.selection.main.head),[,l,u,c,f]=a,h=c?+c.slice(1):0,g=u?+u:o.number;if(u&&f){let E=g/100;l&&(E=E*(l=="-"?-1:1)+o.number/s.doc.lines),g=Math.round(s.doc.lines*E)}else u&&l&&(g=g*(l=="-"?-1:1)+o.number);let b=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),S=Ot.cursor(b.from+Math.max(0,Math.min(h,b.length)));e.dispatch({effects:[w3.of(!1),fn.scrollIntoView(S.from,{y:"center"})],selection:S}),e.focus()}return{dom:r}}const w3=dr.define(),oJ=As.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(w3)&&(e=n.value);return e},provide:e=>Yw.from(e,t=>t?JM:null)}),QWe=e=>{let t=Gw(e,JM);if(!t){let n=[w3.of(!0)];e.state.field(oJ,!1)==null&&n.push(dr.appendConfig.of([oJ,qWe])),e.dispatch({effects:n}),t=Gw(e,JM)}return t&&t.dom.querySelector("input").select(),!0},qWe=fn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),GWe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Tfe=Sn.define({combine(e){return qf(e,GWe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function YWe(e){let t=[eQe,JWe];return e&&t.push(Tfe.of(e)),t}const ZWe=An.mark({class:"cm-selectionMatch"}),XWe=An.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function lJ(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=Xi.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Xi.Word)}function KWe(e,t,n,r){return e(t.sliceDoc(n,n+1))==Xi.Word&&e(t.sliceDoc(r-1,r))==Xi.Word}const JWe=ua.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Tfe),{state:n}=e,r=n.selection;if(r.ranges.length>1)return An.none;let i=r.main,a,s=null;if(i.empty){if(!t.highlightWordAroundCursor)return An.none;let l=n.wordAt(i.head);if(!l)return An.none;s=n.charCategorizer(i.head),a=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return An.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!(lJ(s,n,i.from,i.to)&&KWe(s,n,i.from,i.to)))return An.none}else if(a=n.sliceDoc(i.from,i.to).trim(),!a)return An.none}let o=[];for(let l of e.visibleRanges){let u=new nO(n.doc,a,l.from,l.to);for(;!u.next().done;){let{from:c,to:f}=u.value;if((!s||lJ(s,n,c,f))&&(i.empty&&c<=i.from&&f>=i.to?o.push(XWe.range(c,f)):(c>=i.to||f<=i.from)&&o.push(ZWe.range(c,f)),o.length>t.maxMatches))return An.none}}return An.set(o)}},{decorations:e=>e.decorations}),eQe=fn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),tQe=({state:e,dispatch:t})=>{let{selection:n}=e,r=Ot.create(n.ranges.map(i=>e.wordAt(i.head)||Ot.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function nQe(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let s=!1,o=new nO(e.doc,t,r[r.length-1].to);;)if(o.next(),o.done){if(s)return null;o=new nO(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(l=>l.from==o.value.from))continue;if(a){let l=e.wordAt(o.value.from);if(!l||l.from!=o.value.from||l.to!=o.value.to)continue}return o.value}}const rQe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(a=>a.from===a.to))return tQe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(a=>e.sliceDoc(a.from,a.to)!=r))return!1;let i=nQe(e,r);return i?(t(e.update({selection:e.selection.addRange(Ot.range(i.from,i.to),!1),effects:fn.scrollIntoView(i.to)})),!0):!1},MO=Sn.define({combine(e){return qf(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new mQe(t),scrollToMatch:t=>fn.scrollIntoView(t)})}});class kfe{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||WWe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?` -`:r=="r"?"\r":r=="t"?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new oQe(this):new aQe(this)}getCursor(t,n=0,r){let i=t.doc?t:Hr.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?uy(this,i,n,r):ly(this,i,n,r)}}class Cfe{constructor(t){this.spec=t}}function ly(e,t,n,r){return new nO(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?iQe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function iQe(e,t){return(n,r,i,a)=>((a>n||a+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=ly(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function uy(e,t,n,r){return new wfe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?sQe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function x3(e,t){return e.slice(Qs(e,t,!1),t)}function T3(e,t){return e.slice(t,Qs(e,t))}function sQe(e){return(t,n,r)=>!r[0].length||(e(x3(r.input,r.index))!=Xi.Word||e(T3(r.input,r.index))!=Xi.Word)&&(e(T3(r.input,r.index+r[0].length))!=Xi.Word||e(x3(r.input,r.index+r[0].length))!=Xi.Word)}class oQe extends Cfe{nextMatch(t,n,r){let i=uy(this.spec,t,r,t.doc.length).next();return i.done&&(i=uy(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),s=uy(this.spec,t,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(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=uy(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const tx=dr.define(),vB=dr.define(),Vm=As.define({create(e){return new JN(eL(e).create(),null)},update(e,t){for(let n of t.effects)n.is(tx)?e=new JN(n.value.create(),e.panel):n.is(vB)&&(e=new JN(e.query,n.value?OB:null));return e},provide:e=>Yw.from(e,t=>t.panel)});class JN{constructor(t,n){this.query=t,this.panel=n}}const lQe=An.mark({class:"cm-searchMatch"}),uQe=An.mark({class:"cm-searchMatch cm-searchMatch-selected"}),cQe=ua.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Vm))}update(e){let t=e.state.field(Vm);(t!=e.startState.field(Vm)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return An.none;let{view:n}=this,r=new i0;for(let i=0,a=n.visibleRanges,s=a.length;ia[i+1].from-2*250;)l=a[++i].to;e.highlight(n.state,o,l,(u,c)=>{let f=n.state.selection.ranges.some(h=>h.from==u&&h.to==c);r.add(u,c,f?uQe:lQe)})}return r.finish()}},{decorations:e=>e.decorations});function xT(e){return t=>{let n=t.state.field(Vm,!1);return n&&n.query.spec.valid?e(t,n):Rfe(t)}}const k3=xT((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=Ot.single(r.from,r.to),a=e.state.facet(MO);return e.dispatch({selection:i,effects:[SB(e,r),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),_fe(e),!0}),C3=xT((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=Ot.single(i.from,i.to),s=e.state.facet(MO);return e.dispatch({selection:a,effects:[SB(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),_fe(e),!0}),dQe=xT((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:Ot.create(n.map(r=>Ot.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),fQe=({state:e,dispatch:t})=>{let n=e.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 nO(e.doc,e.sliceDoc(r,i));!o.next().done;){if(a.length>1e3)return!1;o.value.from==r&&(s=a.length),a.push(Ot.range(o.value.from,o.value.to))}return t(e.update({selection:Ot.create(a,s),userEvent:"select.search.matches"})),!0},uJ=xT((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let s=[],o,l,u=[];if(a.from==r&&a.to==i&&(l=n.toText(t.getReplacement(a)),s.push({from:a.from,to:a.to,insert:l}),a=t.nextMatch(n,a.from,a.to),u.push(fn.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let c=s.length==0||s[0].from>=a.to?0:a.to-a.from-l.length;o=Ot.single(a.from-c,a.to-c),u.push(SB(e,a)),u.push(n.facet(MO).scrollToMatch(o.main,e))}return e.dispatch({changes:s,selection:o,effects:u,userEvent:"input.replace"}),!0}),hQe=xT((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:a,to:s}=i;return{from:a,to:s,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:fn.announce.of(r),userEvent:"input.replace.all"}),!0});function OB(e){return e.state.facet(MO).createPanel(e)}function eL(e,t){var n,r,i,a,s;let o=e.selection.main,l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let u=e.facet(MO);return new kfe({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=t==null?void 0:t.literal)!==null&&i!==void 0?i:u.literal,regexp:(a=t==null?void 0:t.regexp)!==null&&a!==void 0?a:u.regexp,wholeWord:(s=t==null?void 0:t.wholeWord)!==null&&s!==void 0?s:u.wholeWord})}function Afe(e){let t=Gw(e,OB);return t&&t.dom.querySelector("[main-field]")}function _fe(e){let t=Afe(e);t&&t==e.root.activeElement&&t.select()}const Rfe=e=>{let t=e.state.field(Vm,!1);if(t&&t.panel){let n=Afe(e);if(n&&n!=e.root.activeElement){let r=eL(e.state,t.query.spec);r.valid&&e.dispatch({effects:tx.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[vB.of(!0),t?tx.of(eL(e.state,t.query.spec)):dr.appendConfig.of(bQe)]});return!0},Ife=e=>{let t=e.state.field(Vm,!1);if(!t||!t.panel)return!1;let n=Gw(e,OB);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:vB.of(!1)}),!0},pQe=[{key:"Mod-f",run:Rfe,scope:"editor search-panel"},{key:"F3",run:k3,shift:C3,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:k3,shift:C3,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ife,scope:"editor search-panel"},{key:"Mod-Shift-l",run:fQe},{key:"Mod-Alt-g",run:QWe},{key:"Mod-d",run:rQe,preventDefault:!0}];class mQe{constructor(t){this.view=t;let n=this.query=t.state.field(Vm).query.spec;this.commit=this.commit.bind(this),this.searchField=Ai("input",{value:n.search,placeholder:Jl(t,"Find"),"aria-label":Jl(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ai("input",{value:n.replace,placeholder:Jl(t,"Replace"),"aria-label":Jl(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ai("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Ai("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Ai("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,s){return Ai("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.dom=Ai("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>k3(t),[Jl(t,"next")]),r("prev",()=>C3(t),[Jl(t,"previous")]),r("select",()=>dQe(t),[Jl(t,"all")]),Ai("label",null,[this.caseField,Jl(t,"match case")]),Ai("label",null,[this.reField,Jl(t,"regexp")]),Ai("label",null,[this.wordField,Jl(t,"by word")]),...t.state.readOnly?[]:[Ai("br"),this.replaceField,r("replace",()=>uJ(t),[Jl(t,"replace")]),r("replaceAll",()=>hQe(t),[Jl(t,"replace all")])],Ai("button",{name:"close",onclick:()=>Ife(t),"aria-label":Jl(t,"close"),type:"button"},["×"])])}commit(){let t=new kfe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:tx.of(t)}))}keydown(t){Cje(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?C3:k3)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),uJ(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(tx)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(MO).top}}function Jl(e,t){return e.state.phrase(t)}const mA=30,gA=/[\s\.,:;?!]/;function SB(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-mA),s=Math.min(i,n+mA),o=e.state.sliceDoc(a,s);if(a!=r.from){for(let l=0;lo.length-mA;l--)if(!gA.test(o[l-1])&&gA.test(o[l])){o=o.slice(0,l);break}}return fn.announce.of(`${e.state.phrase("current match")}. ${o} ${e.state.phrase("on line")} ${r.number}.`)}const gQe=fn.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"}}),bQe=[Vm,k0.low(cQe),gQe];class EB{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=Di(this.state).resolveInner(this.pos,-1);for(;n&&t.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(t){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(Nfe(t,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function cJ(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function yQe(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let a=1;atypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:yQe(t);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:t,validFor:n}:null}}function vQe(e,t){return n=>{for(let r=Di(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(e.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return t(n)}}class dJ{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function Wm(e){return e.selection.main.from}function Nfe(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?e:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const Pfe=Cd.define();function OQe(e,t,n,r){let{main:i}=e.selection,a=n-i.from,s=r-i.from;return Object.assign(Object.assign({},e.changeByRange(o=>o!=i&&n!=r&&e.sliceDoc(o.from+a,o.from+s)!=e.sliceDoc(n,r)?{range:o}:{changes:{from:o.from+a,to:r==i.from?o.to:o.from+s,insert:t},range:Ot.cursor(o.from+a+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const fJ=new WeakMap;function SQe(e){if(!Array.isArray(e))return e;let t=fJ.get(e);return t||fJ.set(e,t=Dfe(e)),t}const A3=dr.define(),nx=dr.define();class EQe{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&R<=57||R>=97&&R<=122?2:R>=65&&R<=90?1:0:(A=qF(R))!=A.toLowerCase()?1:A!=A.toUpperCase()?2:0;(!x||D==1&&E||C==0&&D!=0)&&(n[f]==R||r[f]==R&&(h=!0)?s[f++]=x:s.length&&(w=!1)),C=D,x+=uc(R)}return f==l&&s[0]==0&&w?this.result(-100+(h?-200:0),s,t):g==l&&b==0?this.ret(-200-t.length+(S==t.length?0:-100),[0,S]):o>-1?this.ret(-700-t.length,[o,o+this.pattern.length]):g==l?this.ret(-900-t.length,[b,S]):f==l?this.result(-100+(h?-200:0)+-700+(w?0:-1100),s,t):n.length==2?!1:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],a=0;for(let s of n){let o=s+(this.astral?uc(zs(r,s)):1);a&&i[a-1]==s?i[a-1]=o:(i[a++]=s,i[a++]=o)}return this.ret(t-r.length,i)}}const Vs=Sn.define({combine(e){return qf(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:wQe,compareCompletions:(t,n)=>t.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>hJ(t(r),n(r)),optionClass:(t,n)=>r=>hJ(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function hJ(e,t){return e?t?e+" "+t:e:t}function wQe(e,t,n,r,i,a){let s=e.textDirection==Hi.RTL,o=s,l=!1,u="top",c,f,h=t.left-i.left,g=i.right-t.right,b=r.right-r.left,S=r.bottom-r.top;if(o&&h=S||x>t.top?c=n.bottom-t.top:(u="bottom",c=t.bottom-n.top)}let E=(t.bottom-t.top)/a.offsetHeight,w=(t.right-t.left)/a.offsetWidth;return{style:`${u}: ${c/E}px; max-width: ${f/w}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":o?"left":"right")}}function xQe(e){let t=e.addToOptions.slice();return e.icons&&t.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}),t.push({render(n,r,i,a){let s=document.createElement("span");s.className="cm-completionLabel";let o=n.displayLabel||n.label,l=0;for(let u=0;ul&&s.appendChild(document.createTextNode(o.slice(l,c)));let h=s.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(o.slice(c,f))),h.className="cm-completionMatchedText",l=f}return ln.position-r.position).map(n=>n.render)}function eP(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let i=Math.floor(t/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class TQe{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(n),{options:a,selected:s}=i.open,o=t.state.facet(Vs);this.optionContent=xQe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=eP(a.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let c=l.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(Vs).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:nx.of(null)})}),this.showOptions(a,i.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=i){let{options:a,selected:s,disabled:o}=r.open;(!i.open||i.open.options!=a)&&(this.range=eP(a.length,s,t.state.facet(Vs).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(t){let n=this.tooltipClass(t);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(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=eP(n.options.length,n.selected,this.view.state.facet(Vs).maxRenderedOptions),this.showOptions(n.options,t.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)==t&&this.addInfoPane(s,r)}).catch(s=>Oc(this.view.state,s,"completion info")):this.addInfoPane(a,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:i,destroy:a}=t;r.appendChild(i),this.infoDestroy=a||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){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==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&CQe(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=t.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.bottomr.from||r.from==0))if(a=h,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let g=i.appendChild(document.createElement("completion-section"));g.textContent=h}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+s,c.setAttribute("role","option");let f=this.optionClass(o);f&&(c.className=f);for(let h of this.optionContent){let g=h(o,this.view.state,this.view,l);g&&c.appendChild(g)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew TQe(n,e,t)}function CQe(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function pJ(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function AQe(e,t){let n=[],r=null,i=l=>{n.push(l);let{section:u}=l.completion;if(u){r||(r=[]);let c=typeof u=="string"?u:u.name;r.some(f=>f.name==c)||r.push(typeof u=="string"?{name:c}:u)}};for(let l of e)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let c of l.result.options)i(new dJ(c,l.source,u?u(c):[],1e9-n.length));else{let c=new EQe(t.sliceDoc(l.from,l.to));for(let f of l.result.options)if(c.match(f.label)){let h=f.displayLabel?u?u(f,c.matched):[]:c.matched;i(new dJ(f,l.source,h,c.score+(f.boost||0)))}}}if(r){let l=Object.create(null),u=0,c=(f,h)=>{var g,b;return((g=f.rank)!==null&&g!==void 0?g:1e9)-((b=h.rank)!==null&&b!==void 0?b:1e9)||(f.namec.score-u.score||o(u.completion,c.completion))){let u=l.completion;!s||s.label!=u.label||s.detail!=u.detail||s.type!=null&&u.type!=null&&s.type!=u.type||s.apply!=u.apply||s.boost!=u.boost?a.push(l):pJ(l.completion)>pJ(s)&&(a[a.length-1]=l),s=l.completion}return a}class Py{constructor(t,n,r,i,a,s){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=s}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new Py(this.options,mJ(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a){let s=AQe(t,n);if(!s.length)return i&&t.some(l=>l.state==1)?new Py(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let o=n.facet(Vs).selectOnOpen?0:-1;if(i&&i.selected!=o&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:NQe,above:a.aboveCursor},i?i.timestamp:Date.now(),o,!1)}map(t){return new Py(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class _3{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new _3(IQe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(Vs),a=(r.override||n.languageDataAt("autocomplete",Wm(n)).map(SQe)).map(o=>(this.active.find(u=>u.source==o)||new yl(o,this.active.some(u=>u.state!=0)?1:0)).update(t,r));a.length==this.active.length&&a.every((o,l)=>o==this.active[l])&&(a=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||a.some(o=>o.hasResult()&&t.changes.touchesRange(o.from,o.to))||!_Qe(a,this.active)?s=Py.build(a,n,this.id,s,r):s&&s.disabled&&!a.some(o=>o.state==1)&&(s=null),!s&&a.every(o=>o.state!=1)&&a.some(o=>o.hasResult())&&(a=a.map(o=>o.hasResult()?new yl(o.source,0):o));for(let o of t.effects)o.is(Lfe)&&(s=s&&s.setSelected(o.value,this.id));return a==this.active&&s==this.open?this:new _3(a,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:RQe}}function _Qe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const IQe=[];function tL(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class yl{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=tL(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new yl(i.source,0));for(let a of t.effects)if(a.is(A3))i=new yl(i.source,1,a.value?Wm(t.state):-1);else if(a.is(nx))i=new yl(i.source,0);else if(a.is(Mfe))for(let s of a.value)s.source==i.source&&(i=s);return i}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new yl(this.source,1)}handleChange(t){return t.changes.touchesRange(Wm(t.startState))?new yl(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new yl(this.source,this.state,t.mapPos(this.explicitPos))}}class rv extends yl{constructor(t,n,r,i,a){super(t,2,n),this.result=r,this.from=i,this.to=a}hasResult(){return!0}handleUserEvent(t,n,r){var i;let a=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),o=Wm(t.state);if((this.explicitPos<0?o<=a:os||n=="delete"&&Wm(t.startState)==this.from)return new yl(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return DQe(this.result.validFor,t.state,a,s)?new rv(this.source,l,this.result,a,s):this.result.update&&(u=this.result.update(this.result,a,s,new EB(t.state,o,l>=0)))?new rv(this.source,l,u,u.from,(i=u.to)!==null&&i!==void 0?i:Wm(t.state)):new yl(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new yl(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new rv(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function DQe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):Nfe(e,!0).test(i)}const Mfe=dr.define({map(e,t){return e.map(n=>n.map(t))}}),Lfe=dr.define(),du=As.define({create(){return _3.start()},update(e,t){return e.update(t)},provide:e=>[aB.from(e,t=>t.tooltip),fn.contentAttributes.from(e,t=>t.attrs)]});function $fe(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(du).active.find(i=>i.source==t.source);return r instanceof rv?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},OQe(e.state,n,r.from,r.to)),{annotations:Pfe.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const NQe=kQe(du,$fe);function bA(e,t="option"){return n=>{let r=n.state.field(du,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:s-1;return o<0?o=t=="page"?0:s-1:o>=s&&(o=t=="page"?s-1:0),n.dispatch({effects:Lfe.of(o)}),!0}}const PQe=e=>{let t=e.state.field(du,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(du,!1)?(e.dispatch({effects:A3.of(!0)}),!0):!1,LQe=e=>{let t=e.state.field(du,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:nx.of(null)}),!0)};class $Qe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const FQe=50,BQe=1e3,UQe=ua.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(du).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(du);if(!e.selectionSet&&!e.docChanged&&e.startState.field(du)==t)return;let n=e.transactions.some(i=>(i.selection||i.docChanged)&&!tL(i));for(let i=0;iFQe&&Date.now()-a.time>BQe){for(let s of a.context.abortListeners)try{s()}catch(o){Oc(this.view.state,o)}a.context.abortListeners=null,this.running.splice(i--,1)}else a.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(i=>i.effects.some(a=>a.is(A3)))&&(this.pendingStart=!0);let r=this.pendingStart?50:e.state.facet(Vs).activateOnTypingDelay;if(this.debounceUpdate=t.active.some(i=>i.state==1&&!this.running.some(a=>a.active.source==i.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let i of e.transactions)tL(i)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(du);for(let n of t.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=Wm(t),r=new EB(t,n,e.explicitPos==n),i=new $Qe(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:nx.of(null)}),Oc(this.view.state,a)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Vs).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(Vs);for(let r=0;rs.source==i.active.source);if(a&&a.state==1)if(i.done==null){let s=new yl(i.active.source,0);for(let o of i.updates)s=s.update(o,n);s.state!=1&&t.push(s)}else this.startQuery(a)}t.length&&this.view.dispatch({effects:Mfe.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(du,!1);if(t&&t.tooltip&&this.view.state.facet(Vs).closeOnBlur){let n=t.open&&pde(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:nx.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:A3.of(!1)}),20),this.composing=0}}}),Ffe=fn.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"},".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 zQe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class wB{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Hs.TrackDel),r=t.mapPos(this.to,1,Hs.TrackDel);return n==null||r==null?null:new wB(this.field,n,r)}}class xB{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],a=t.doc.lineAt(n),s=/^\s*/.exec(a.text)[0];for(let l of this.lines){if(r.length){let u=s,c=/^\t*/.exec(l)[0].length;for(let f=0;fnew wB(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:o}}static parse(t){let n=[],r=[],i=[],a;for(let s of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let o=a[1]?+a[1]:null,l=a[2]||a[3]||"",u=-1;for(let c=0;c=u&&f.field++}i.push(new zQe(u,r.length,a.index,a.index+l.length)),s=s.slice(0,a.index)+l+s.slice(a.index+a[0].length)}for(let o;o=/\\([{}])/.exec(s);){s=s.slice(0,o.index)+o[1]+s.slice(o.index+o[0].length);for(let l of i)l.line==r.length&&l.from>o.index&&(l.from--,l.to--)}r.push(s)}return new xB(r,i)}}let jQe=An.widget({widget:new class extends Ad{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),HQe=An.mark({class:"cm-snippetField"});class LO{constructor(t,n){this.ranges=t,this.active=n,this.deco=An.set(t.map(r=>(r.from==r.to?jQe:HQe).range(r.from,r.to)))}map(t){let n=[];for(let r of this.ranges){let i=r.map(t);if(!i)return null;n.push(i)}return new LO(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const TT=dr.define({map(e,t){return e&&e.map(t)}}),VQe=dr.define(),rx=As.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(TT))return n.value;if(n.is(VQe)&&e)return new LO(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>fn.decorations.from(e,t=>t?t.deco:An.none)});function TB(e,t){return Ot.create(e.filter(n=>n.field==t).map(n=>Ot.range(n.from,n.to)))}function WQe(e){let t=xB.parse(e);return(n,r,i,a)=>{let{text:s,ranges:o}=t.instantiate(n.state,i),l={changes:{from:i,to:a,insert:Kr.of(s)},scrollIntoView:!0,annotations:r?[Pfe.of(r),xs.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=TB(o,0)),o.some(u=>u.field>0)){let u=new LO(o,0),c=l.effects=[TT.of(u)];n.state.field(rx,!1)===void 0&&c.push(dr.appendConfig.of([rx,ZQe,XQe,Ffe]))}n.dispatch(n.state.update(l))}}function Bfe(e){return({state:t,dispatch:n})=>{let r=t.field(rx,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(s=>s.field==i+e);return n(t.update({selection:TB(r.ranges,i),effects:TT.of(a?null:new LO(r.ranges,i)),scrollIntoView:!0})),!0}}const QQe=({state:e,dispatch:t})=>e.field(rx,!1)?(t(e.update({effects:TT.of(null)})),!0):!1,qQe=Bfe(1),GQe=Bfe(-1),YQe=[{key:"Tab",run:qQe,shift:GQe},{key:"Escape",run:QQe}],gJ=Sn.define({combine(e){return e.length?e[0]:YQe}}),ZQe=k0.highest(IO.compute([gJ],e=>e.facet(gJ)));function fl(e,t){return Object.assign(Object.assign({},t),{apply:WQe(e)})}const XQe=fn.domEventHandlers({mousedown(e,t){let n=t.state.field(rx,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:TB(n.ranges,i.field),effects:TT.of(n.ranges.some(a=>a.field>i.field)?new LO(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),ix={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},$g=dr.define({map(e,t){let n=t.mapPos(e,-1,Hs.TrackAfter);return n??void 0}}),kB=new class extends p1{};kB.startSide=1;kB.endSide=-1;const Ufe=As.define({create(){return Br.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of t.effects)n.is($g)&&(e=e.update({add:[kB.range(n.value,n.value+1)]}));return e}});function KQe(){return[eqe,Ufe]}const tP="()[]{}<>";function zfe(e){for(let t=0;t{if((JQe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&uc(zs(r,0))==1||t!=i.from||n!=i.to)return!1;let a=rqe(e.state,r);return a?(e.dispatch(a),!0):!1}),tqe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=jfe(e,e.selection.main.head).brackets||ix.brackets,i=null,a=e.changeByRange(s=>{if(s.empty){let o=iqe(e.doc,s.head);for(let l of r)if(l==o&&eI(e.doc,s.head)==zfe(zs(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:Ot.cursor(s.head-l.length)}}return{range:i=s}});return i||t(e.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},nqe=[{key:"Backspace",run:tqe}];function rqe(e,t){let n=jfe(e,e.selection.main.head),r=n.brackets||ix.brackets;for(let i of r){let a=zfe(zs(i,0));if(t==i)return a==i?oqe(e,i,r.indexOf(i+i+i)>-1,n):aqe(e,i,a,n.before||ix.before);if(t==a&&Hfe(e,e.selection.main.from))return sqe(e,i,a)}return null}function Hfe(e,t){let n=!1;return e.field(Ufe).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function eI(e,t){let n=e.sliceString(t,t+2);return n.slice(0,uc(zs(n,0)))}function iqe(e,t){let n=e.sliceString(t-2,t);return uc(zs(n,0))==n.length?n:n.slice(1)}function aqe(e,t,n,r){let i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:$g.of(s.to+t.length),range:Ot.range(s.anchor+t.length,s.head+t.length)};let o=eI(e.doc,s.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:s.head},effects:$g.of(s.head+t.length),range:Ot.cursor(s.head+t.length)}:{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function sqe(e,t,n){let r=null,i=e.changeByRange(a=>a.empty&&eI(e.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:Ot.cursor(a.head+n.length)}:r={range:a});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function oqe(e,t,n,r){let i=r.stringPrefixes||ix.stringPrefixes,a=null,s=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:$g.of(o.to+t.length),range:Ot.range(o.anchor+t.length,o.head+t.length)};let l=o.head,u=eI(e.doc,l),c;if(u==t){if(bJ(e,l))return{changes:{insert:t+t,from:l},effects:$g.of(l+t.length),range:Ot.cursor(l+t.length)};if(Hfe(e,l)){let h=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+h.length,insert:h},range:Ot.cursor(l+h.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(c=yJ(e,l-2*t.length,i))>-1&&bJ(e,c))return{changes:{insert:t+t+t+t,from:l},effects:$g.of(l+t.length),range:Ot.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=Xi.Word&&yJ(e,l,i)>-1&&!lqe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:$g.of(l+t.length),range:Ot.cursor(l+t.length)}}return{range:a=o}});return a?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function bJ(e,t){let n=Di(e).resolveInner(t+1);return n.parent&&n.from==t}function lqe(e,t,n,r){let i=Di(e).resolveInner(t,-1),a=r.reduce((s,o)=>Math.max(s,o.length),0);for(let s=0;s<5;s++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),l=o.indexOf(n);if(!l||l>-1&&r.indexOf(o.slice(0,l))>-1){let c=i.firstChild;for(;c&&c.from==i.from&&c.to-c.from>n.length+l;){if(e.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let u=i.to==t&&i.parent;if(!u)break;i=u}return!1}function yJ(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Xi.Word)return t;for(let i of n){let a=t-i.length;if(e.sliceDoc(a,t)==i&&r(e.sliceDoc(a-1,a))!=Xi.Word)return a}return-1}function uqe(e={}){return[du,Vs.of(e),UQe,cqe,Ffe]}const Vfe=[{key:"Ctrl-Space",run:MQe},{key:"Escape",run:LQe},{key:"ArrowDown",run:bA(!0)},{key:"ArrowUp",run:bA(!1)},{key:"PageDown",run:bA(!0,"page")},{key:"PageUp",run:bA(!1,"page")},{key:"Enter",run:PQe}],cqe=k0.highest(IO.computeN([Vs],e=>e.facet(Vs).defaultKeymap?[Vfe]:[]));class dqe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Tg{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,a=r.facet(qfe).markerFilter;a&&(i=a(i,r));let s=An.set(i.map(o=>o.from==o.to||o.from==o.to-1&&r.doc.lineAt(o.from).to==o.from?An.widget({widget:new Oqe(o),diagnostic:o}).range(o.from):An.mark({attributes:{class:"cm-lintRange cm-lintRange-"+o.severity+(o.markClass?" "+o.markClass:"")},diagnostic:o,inclusive:!0}).range(o.from,o.to)),!0);return new Tg(s,n,rO(s))}}function rO(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,a,{spec:s})=>{if(!(t&&s.diagnostic!=t))return r=new dqe(i,a,s.diagnostic),!1}),r}function fqe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(Wfe))||e.changes.touchesRange(n.from,n.to))}function hqe(e,t){return e.field(vu,!1)?t:t.concat(dr.appendConfig.of(wqe))}const Wfe=dr.define(),CB=dr.define(),Qfe=dr.define(),vu=As.define({create(){return new Tg(An.none,null,null)},update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=rO(n,e.selected.diagnostic,i)||rO(n,null,i)}e=new Tg(n,e.panel,r)}for(let n of t.effects)n.is(Wfe)?e=Tg.init(n.value,e.panel,t.state):n.is(CB)?e=new Tg(e.diagnostics,n.value?tI.open:null,e.selected):n.is(Qfe)&&(e=new Tg(e.diagnostics,e.panel,n.value));return e},provide:e=>[Yw.from(e,t=>t.panel),fn.decorations.from(e,t=>t.diagnostics)]}),pqe=An.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function mqe(e,t,n){let{diagnostics:r}=e.state.field(vu),i=[],a=2e8,s=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:c})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(tYfe(e,n,!1)))}const bqe=e=>{let t=e.state.field(vu,!1);(!t||!t.panel)&&e.dispatch({effects:hqe(e.state,[CB.of(!0)])});let n=Gw(e,tI.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},vJ=e=>{let t=e.state.field(vu,!1);return!t||!t.panel?!1:(e.dispatch({effects:CB.of(!1)}),!0)},yqe=e=>{let t=e.state.field(vu,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},vqe=[{key:"Mod-Shift-m",run:bqe,preventDefault:!0},{key:"F8",run:yqe}],qfe=Sn.define({combine(e){return Object.assign({sources:e.map(t=>t.source).filter(t=>t!=null)},qf(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function Gfe(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ra.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function Yfe(e,t,n){var r;let i=n?Gfe(t.actions):[];return Ai("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Ai("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map((a,s)=>{let o=!1,l=h=>{if(h.preventDefault(),o)return;o=!0;let g=rO(e.state.field(vu).diagnostics,t);g&&a.apply(e,g.from,g.to)},{name:u}=a,c=i[s]?u.indexOf(i[s]):-1,f=c<0?u:[u.slice(0,c),Ai("u",u.slice(c,c+1)),u.slice(c+1)];return Ai("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[s]})"`}.`},f)}),t.source&&Ai("div",{class:"cm-diagnosticSource"},t.source))}class Oqe extends Ad{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Ai("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class OJ{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Yfe(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class tI{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)vJ(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=Gfe(a.actions);for(let o=0;o{for(let a=0;avJ(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(vu).selected;if(!t)return-1;for(let n=0;n{let u=-1,c;for(let f=r;fr&&(this.items.splice(r,u-r),i=!0)),n&&c.diagnostic==n.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),a=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),r++});r({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:o})=>{let l=o.height/this.list.offsetHeight;s.topo.bottom&&(this.list.scrollTop+=(s.bottom-o.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(vu),r=rO(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:Qfe.of(r)})}static open(t){return new tI(t)}}function Sqe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function yA(e){return Sqe(``,'width="6" height="3"')}const Eqe=fn.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:yA("#d11")},".cm-lintRange-warning":{backgroundImage:yA("orange")},".cm-lintRange-info":{backgroundImage:yA("#999")},".cm-lintRange-hint":{backgroundImage:yA("#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}}}),wqe=[vu,fn.decorations.compute([vu],e=>{let{selected:t,panel:n}=e.field(vu);return!t||!n||t.from==t.to?An.none:An.set([pqe.range(t.from,t.to)])}),hHe(mqe,{hideOn:fqe}),Eqe],xqe=[EHe(),THe(),Vje(),HVe(),bVe(),Nje(),Fje(),Hr.allowMultipleSelections.of(!0),aVe(),Fde(SVe,{fallback:!0}),AVe(),KQe(),uqe(),nHe(),aHe(),Zje(),YWe(),IO.of([...nqe,...HWe,...pQe,...KVe,...hVe,...Vfe,...vqe])];class R3{static create(t,n,r,i,a){let s=i+(i<<8)+t+(n<<4)|0;return new R3(t,n,r,s,a,[],[])}constructor(t,n,r,i,a,s,o){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=a,this.children=s,this.positions=o,this.hashProp=[[rr.contextHash,i]]}addChild(t,n){t.prop(rr.contextHash)!=this.hash&&(t=new ci(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(n)}toTree(t,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new ci(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,a,s)=>new ci(ss.none,i,a,s,this.hashProp)})}}var Zt;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(Zt||(Zt={}));class Tqe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class kqe{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return F2(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,n=0,r=0){for(let i=n;i=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Zt.OrderedList?RB:_B)(n,t,!1);return r>0&&(e.type!=Zt.BulletList||AB(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const Zfe={[Zt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(jr(Zt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Nc(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Zt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Zt.OrderedList]:SJ,[Zt.BulletList]:SJ,[Zt.Document](){return!0}};function Nc(e){return e==32||e==9||e==10||e==13}function F2(e,t=0){for(;tn&&Nc(e.charCodeAt(t-1));)t--;return t}function Xfe(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length||r<3?-1:1}function Jfe(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function _B(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||Nc(e.text.charCodeAt(e.pos+1)))&&(!n||Jfe(t,Zt.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){r++;if(r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||re.pos+1||e.next!=49)?-1:r+1-e.pos}function ehe(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function the(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,rhe=/\?>/,rL=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,rhe=/\?>/,iL=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(a)return e.append(jr(Zt.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(jr(Zt.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append(jr(Zt.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=sx.test(i),o=sx.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),c=!u&&(!o||l||s),f=!l&&(!s||u||o),h=c&&(t==42||!f||s),g=f&&(t==42||!c||o);return e.append(new id(t==95?uhe:che,n,r,(h?1:0)|(g?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(jr(Zt.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(jr(Zt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new id(RE,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new id(xJ,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let i=e.parts[r];if(i instanceof id&&(i.type==RE||i.type==xJ)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=Nqe(e,a,i.type==RE?Zt.Link:Zt.Image,i.from,n+1);if(i.type==RE)for(let o=0;ot?jr(Zt.URL,t+n,a+n):a==e.length?null:!1}}function fhe(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new id(t,n,r,(i?1:0)|(a?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof id&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let u=i.type.resolve,c=[],f=o.from,h=i.to;if(a){let S=Math.min(2,o.to-o.from,s);f=o.to-S,h=i.from+S,u=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&c.push(this.elt(o.type.mark,f,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof id&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return F2(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?jr(this.parser.getNodeType(t),n,r,i):new lhe(t,n)}}function aL(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` -`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(rr.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,u=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=phe(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let f=new ci(t.parser.nodeSet.types[Zt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(f,n.tree),t.addNode(f,c)}if(n.type.is("Block")&&(Mqe.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function phe(e,t){let n=e;for(let r=1;rvA[e]),Object.keys(vA).map(e=>_qe[e]),Object.keys(vA),Rqe,Zfe,Object.keys(rP).map(e=>rP[e]),Object.keys(rP),[]);function Bqe(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function Uqe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:wde((i,a)=>{let s=i.type.id;if(t&&(s==Zt.CodeBlock||s==Zt.FencedCode)){let o="";if(s==Zt.FencedCode){let u=i.node.getChild(Zt.CodeInfo);u&&(o=a.read(u.from,u.to))}let l=t(o);if(l)return{parser:l,overlay:u=>u.type.id==Zt.CodeText}}else if(n&&(s==Zt.HTMLBlock||s==Zt.HTMLTag))return{parser:n,overlay:Bqe(i.node,i.from,i.to)};return null})}}const zqe={resolve:"Strikethrough",mark:"StrikethroughMark"},jqe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Ee.strikethrough}},{name:"StrikethroughMark",style:Ee.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=sx.test(r),l=sx.test(i);return e.addDelimiter(zqe,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function B2(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let f=n;f-1)&&a++,s=!1,r&&(o>-1&&c(),r.push(e.elt("TableDelimiter",f+i,f+i+1))),o=l=-1):(u||h!=32&&h!=9)&&(o<0&&(o=f),l=f+1),u=!u&&h==92}return o>-1&&(a++,r&&c()),a}function kJ(e,t){for(let n=t;ni instanceof CJ)||!kJ(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return mhe.test(r)&&B2(e,t.text,t.basePos)==B2(e,r,t.basePos)},before:"SetextHeading"}]};class Vqe{nextLine(){return!1}finish(t,n){return t.addLeafElement(n,t.elt("Task",n.start,n.start+n.content.length,[t.elt("TaskMarker",n.start,n.start+3),...t.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const Wqe={defineNodes:[{name:"Task",block:!0,style:Ee.list},{name:"TaskMarker",style:Ee.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new Vqe:null},after:"SetextHeading"}]},AJ=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,_J=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Qqe=/[\w-]+\.[\w-]+($|\/)/,RJ=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,IJ=/\/[a-zA-Z\d@.]+/gy;function DJ(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&DJ(e,t,r,")")>DJ(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function NJ(e,t){RJ.lastIndex=t;let n=RJ.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const Gqe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;AJ.lastIndex=r;let i=AJ.exec(e.text),a=-1;return!i||(i[1]||i[2]?a=qqe(e.text,r+i[0].length):i[3]?a=NJ(e.text,r):(a=NJ(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(IJ.lastIndex=a,i=IJ.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},Yqe=[Hqe,Wqe,jqe,Gqe];function ghe(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new I3(t,[],n,r,r,0,[],0,i?new MJ(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=a.dynamicPrecedence(i);if(s&&(this.score+=s),r==0){this.pushState(a.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]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(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)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]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{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)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new I3(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new Jqe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){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;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.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:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,u=this.stack.length-o*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return o<<19|65536|l}}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:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class MJ{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class Jqe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>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 D3{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new D3(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.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 D3(this.stack,this.pos,this.index)}}function l2(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class F4{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const LJ=new F4;class eGe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=LJ,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.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(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.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(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,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(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,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(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=LJ,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class iv{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;bhe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}iv.prototype.contextual=iv.prototype.fallback=iv.prototype.extend=!1;class N3{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?l2(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(bhe(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}N3.prototype.contextual=iv.prototype.fallback=iv.prototype.extend=!1;class Rd{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function bhe(e,t,n,r,i,a){let s=0,o=1<0){let b=e[g];if(l.allows(b)&&(t.token.value==-1||t.token.value==b||tGe(b,t.token.value,i,a))){t.acceptToken(b);break}}let c=t.next,f=0,h=e[s+2];if(t.next<0&&h>f&&e[u+h*3-3]==65535){s=e[u+h*3-1];continue e}for(;f>1,b=u+g+(g<<1),S=e[b],E=e[b+1]||65536;if(c=E)f=g+1;else{s=e[b+2],t.advance();continue e}}break}}function $J(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function tGe(e,t,n,r){let i=$J(n,r,t);return i<0||$J(n,r,e)t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class nGe{constructor(t,n){this.fragments=t,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 t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?FJ(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?FJ(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof ci){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class rGe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new F4)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let u=0;uf.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let h=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!c.extend&&(r=f,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new F4,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new F4,{pos:r,p:i}=t;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(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new nGe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&sGe(i);if(s)return eu&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw eu&&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 eu&&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,l)=>l.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;s500&&u.buffer.length>500)if((o.score-u.score||o.buffer.length-u.buffer.length)>0)r.splice(l--,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 ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let h=this.parser.nodeSet.types[f.type.id]==f.type?a.getGoto(t.state,f.type.id):-1;if(h>-1&&f.length&&(!u||(f.prop(rr.contextHash)||0)==c))return t.useNode(f,h),eu&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(f.type.id)})`),!0;if(!(f instanceof ci)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof ci&&f.positions[0]==0)f=g;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),eu&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(b):r.push(b)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return BJ(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),eu&&console.log(c+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let f=o.split(),h=c;for(let g=0;f.forceReduce()&&g<10&&(eu&&console.log(h+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)eu&&(h=this.stackID(f)+" -> ");for(let g of o.recoverByInsert(l))eu&&console.log(c+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(u==o.pos&&(u++,l=0),o.recoverByDelete(l,u),eu&&console.log(c+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),BJ(o,r)):(!i||i.scoree;class yhe{constructor(t){this.start=t.start,this.shift=t.shift||aP,this.reduce=t.reduce||aP,this.reuse=t.reuse||aP,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class aO extends uB{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(c,l,o[u++]);else{let f=o[u+-c];for(let h=-c;h>0;h--)a(o[u++],l,f);u++}}}this.nodeSet=new yT(n.map((o,l)=>ss.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=yde;let s=l2(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new iv(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new iGe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,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,l=i[a++];if(o&&r)return l;for(let u=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Nh(this.data,a+2);else break;i=n(Nh(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Nh(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(aO.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.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]=UJ(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const oGe=54,lGe=1,uGe=55,cGe=2,dGe=56,fGe=3,zJ=4,hGe=5,P3=6,vhe=7,Ohe=8,She=9,Ehe=10,pGe=11,mGe=12,gGe=13,sP=57,bGe=14,jJ=58,whe=20,yGe=22,xhe=23,vGe=24,sL=26,The=27,OGe=28,SGe=31,EGe=34,wGe=36,xGe=37,TGe=0,kGe=1,CGe={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},AGe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},HJ={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function _Ge(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function khe(e){return e==9||e==10||e==13||e==32}let VJ=null,WJ=null,QJ=0;function oL(e,t){let n=e.pos+t;if(QJ==n&&WJ==e)return VJ;let r=e.peek(t);for(;khe(r);)r=e.peek(++t);let i="";for(;_Ge(r);)i+=String.fromCharCode(r),r=e.peek(++t);return WJ=e,QJ=n,VJ=i?i.toLowerCase():r==RGe||r==IGe?void 0:null}const Che=60,M3=62,IB=47,RGe=63,IGe=33,DGe=45;function qJ(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new qJ(oL(r,1)||"",e):e},reduce(e,t){return t==whe&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==P3||i==wGe?new qJ(oL(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),MGe=new Rd((e,t)=>{if(e.next!=Che){e.next<0&&t.context&&e.acceptToken(sP);return}e.advance();let n=e.next==IB;n&&e.advance();let r=oL(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?bGe:P3);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(pGe);if(i&&AGe[i])return e.acceptToken(sP,-2);if(t.dialectEnabled(TGe))return e.acceptToken(mGe);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(gGe)}else{if(r=="script")return e.acceptToken(vhe);if(r=="style")return e.acceptToken(Ohe);if(r=="textarea")return e.acceptToken(She);if(CGe.hasOwnProperty(r))return e.acceptToken(Ehe);i&&HJ[i]&&HJ[i][r]?e.acceptToken(sP,-1):e.acceptToken(P3)}},{contextual:!0}),LGe=new Rd(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(jJ);break}if(e.next==DGe)t++;else if(e.next==M3&&t>=2){n>=3&&e.acceptToken(jJ,-2);break}else t=0;e.advance()}});function $Ge(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const FGe=new Rd((e,t)=>{if(e.next==IB&&e.peek(1)==M3){let n=t.dialectEnabled(kGe)||$Ge(t.context);e.acceptToken(n?hGe:zJ,2)}else e.next==M3&&e.acceptToken(zJ,1)});function DB(e,t,n){let r=2+e.length;return new Rd(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==Che||a==1&&i.next==IB||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const BGe=DB("script",oGe,lGe),UGe=DB("style",uGe,cGe),zGe=DB("textarea",dGe,fGe),jGe=DO({"Text RawText":Ee.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Ee.angleBracket,TagName:Ee.tagName,"MismatchedCloseTag/TagName":[Ee.tagName,Ee.invalid],AttributeName:Ee.attributeName,"AttributeValue UnquotedAttributeValue":Ee.attributeValue,Is:Ee.definitionOperator,"EntityReference CharacterReference":Ee.character,Comment:Ee.blockComment,ProcessingInst:Ee.processingInstruction,DoctypeDecl:Ee.documentMeta}),HGe=aO.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:PGe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[jGe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let u=o.type.id;if(u==OGe)return oP(o,l,n);if(u==SGe)return oP(o,l,r);if(u==EGe)return oP(o,l,i);if(u==whe&&a.length){let c=o.node,f=c.firstChild,h=f&&GJ(f,l),g;if(h){for(let b of a)if(b.tag==h&&(!b.attrs||b.attrs(g||(g=Ahe(c,l))))){let S=c.lastChild,E=S.type.id==xGe?S.from:c.to;if(E>f.to)return{parser:b.parser,overlay:[{from:f.to,to:E}]}}}}if(s&&u==xhe){let c=o.node,f;if(f=c.firstChild){let h=s[l.read(f.from,f.to)];if(h)for(let g of h){if(g.tagName&&g.tagName!=GJ(c.parent,l))continue;let b=c.lastChild;if(b.type.id==sL){let S=b.from+1,E=b.lastChild,w=b.to-(E&&E.isError?0:1);if(w>S)return{parser:g.parser,overlay:[{from:S,to:w}]}}else if(b.type.id==The)return{parser:g.parser,overlay:[{from:b.from,to:b.to}]}}}}return null})}const VGe=99,YJ=1,WGe=100,QGe=101,ZJ=2,Rhe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],qGe=58,GGe=40,Ihe=95,YGe=91,B4=45,ZGe=46,XGe=35,KGe=37,JGe=38,eYe=92,tYe=10;function ox(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function nYe(e){return e>=48&&e<=57}const rYe=new Rd((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(ox(a)||a==B4||a==Ihe||n&&nYe(a))!n&&(a!=B4||i>0)&&(n=!0),r===i&&a==B4&&r++,e.advance();else if(a==eYe&&e.peek(1)!=tYe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==GGe?WGe:r==2&&t.canShift(ZJ)?ZJ:QGe);break}}}),iYe=new Rd(e=>{if(Rhe.includes(e.peek(-1))){let{next:t}=e;(ox(t)||t==Ihe||t==XGe||t==ZGe||t==YGe||t==qGe&&ox(e.peek(1))||t==B4||t==JGe)&&e.acceptToken(VGe)}}),aYe=new Rd(e=>{if(!Rhe.includes(e.peek(-1))){let{next:t}=e;if(t==KGe&&(e.advance(),e.acceptToken(YJ)),ox(t)){do e.advance();while(ox(e.next));e.acceptToken(YJ)}}}),sYe=DO({"AtKeyword import charset namespace keyframes media supports":Ee.definitionKeyword,"from to selector":Ee.keyword,NamespaceName:Ee.namespace,KeyframeName:Ee.labelName,KeyframeRangeName:Ee.operatorKeyword,TagName:Ee.tagName,ClassName:Ee.className,PseudoClassName:Ee.constant(Ee.className),IdName:Ee.labelName,"FeatureName PropertyName":Ee.propertyName,AttributeName:Ee.attributeName,NumberLiteral:Ee.number,KeywordQuery:Ee.keyword,UnaryQueryOp:Ee.operatorKeyword,"CallTag ValueName":Ee.atom,VariableName:Ee.variableName,Callee:Ee.operatorKeyword,Unit:Ee.unit,"UniversalSelector NestingSelector":Ee.definitionOperator,MatchOp:Ee.compareOperator,"ChildOp SiblingOp, LogicOp":Ee.logicOperator,BinOp:Ee.arithmeticOperator,Important:Ee.modifier,Comment:Ee.blockComment,ColorLiteral:Ee.color,"ParenthesizedContent StringLiteral":Ee.string,":":Ee.punctuation,"PseudoOp #":Ee.derefOperator,"; ,":Ee.separator,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace}),oYe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},lYe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},uYe={__proto__:null,not:132,only:132},cYe=aO.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[iYe,aYe,rYe,1,2,3,4,new N3("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>oYe[e]||-1},{term:58,get:e=>lYe[e]||-1},{term:101,get:e=>uYe[e]||-1}],tokenPrec:1200});let lP=null;function uP(){if(!lP&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));lP=t.sort().map(r=>({type:"property",label:r}))}return lP||[]}const XJ=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),KJ=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),dYe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),Zp=/^(\w[\w-]*|-\w[\w-]*|)$/,fYe=/^-(-[\w-]*)?$/;function hYe(e,t){var n;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(n=e.parent)===null||n===void 0?void 0:n.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:t.sliceString(r.from,r.to)=="var"}const JJ=new Ede,pYe=["Declaration"];function mYe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function Dhe(e,t,n){if(t.to-t.from>4096){let r=JJ.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(_i.IncludeAnonymous);if(s.firstChild())do for(let o of Dhe(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return JJ.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(pYe)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const gYe=e=>t=>{let{state:n,pos:r}=t,i=Di(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:uP(),validFor:Zp};if(i.name=="ValueName")return{from:i.from,options:KJ,validFor:Zp};if(i.name=="PseudoClassName")return{from:i.from,options:XJ,validFor:Zp};if(e(i)||(t.explicit||a)&&hYe(i,n.doc))return{from:e(i)||a?i.from:r,options:Dhe(n.doc,mYe(i),e),validFor:fYe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:uP(),validFor:Zp};return{from:i.from,options:dYe,validFor:Zp}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:XJ,validFor:Zp}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:KJ,validFor:Zp}:s.name=="Block"||s.name=="Styles"?{from:r,options:uP(),validFor:Zp}:null},bYe=gYe(e=>e.name=="VariableName"),L3=eO.define({name:"css",parser:cYe.configure({props:[OT.add({Declaration:$4()}),NO.add({"Block KeyframeList":Rde})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function yYe(){return new Jw(L3,L3.data.of({autocomplete:bYe}))}const vYe=309,eee=1,OYe=2,SYe=3,EYe=310,wYe=312,xYe=313,TYe=4,kYe=5,CYe=0,lL=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Nhe=125,AYe=59,uL=47,_Ye=42,RYe=43,IYe=45,DYe=60,NYe=44,PYe=new yhe({start:!1,shift(e,t){return t==TYe||t==kYe||t==wYe?e:t==xYe},strict:!1}),MYe=new Rd((e,t)=>{let{next:n}=e;(n==Nhe||n==-1||t.context)&&e.acceptToken(EYe)},{contextual:!0,fallback:!0}),LYe=new Rd((e,t)=>{let{next:n}=e,r;lL.indexOf(n)>-1||n==uL&&((r=e.peek(1))==uL||r==_Ye)||n!=Nhe&&n!=AYe&&n!=-1&&!t.context&&e.acceptToken(vYe)},{contextual:!0}),$Ye=new Rd((e,t)=>{let{next:n}=e;if((n==RYe||n==IYe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(eee);e.acceptToken(r?eee:OYe)}},{contextual:!0});function cP(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const FYe=new Rd((e,t)=>{if(e.next!=DYe||!t.dialectEnabled(CYe)||(e.advance(),e.next==uL))return;let n=0;for(;lL.indexOf(e.next)>-1;)e.advance(),n++;if(cP(e.next,!0)){for(e.advance(),n++;cP(e.next,!1);)e.advance(),n++;for(;lL.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==NYe)return;for(let r=0;;r++){if(r==7){if(!cP(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(SYe,-n)}),BYe=DO({"get set async static":Ee.modifier,"for while do if else switch try catch finally return throw break continue default case":Ee.controlKeyword,"in of await yield void typeof delete instanceof":Ee.operatorKeyword,"let var const using function class extends":Ee.definitionKeyword,"import export from":Ee.moduleKeyword,"with debugger as new":Ee.keyword,TemplateString:Ee.special(Ee.string),super:Ee.atom,BooleanLiteral:Ee.bool,this:Ee.self,null:Ee.null,Star:Ee.modifier,VariableName:Ee.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Ee.function(Ee.variableName),VariableDefinition:Ee.definition(Ee.variableName),Label:Ee.labelName,PropertyName:Ee.propertyName,PrivatePropertyName:Ee.special(Ee.propertyName),"CallExpression/MemberExpression/PropertyName":Ee.function(Ee.propertyName),"FunctionDeclaration/VariableDefinition":Ee.function(Ee.definition(Ee.variableName)),"ClassDeclaration/VariableDefinition":Ee.definition(Ee.className),PropertyDefinition:Ee.definition(Ee.propertyName),PrivatePropertyDefinition:Ee.definition(Ee.special(Ee.propertyName)),UpdateOp:Ee.updateOperator,"LineComment Hashbang":Ee.lineComment,BlockComment:Ee.blockComment,Number:Ee.number,String:Ee.string,Escape:Ee.escape,ArithOp:Ee.arithmeticOperator,LogicOp:Ee.logicOperator,BitOp:Ee.bitwiseOperator,CompareOp:Ee.compareOperator,RegExp:Ee.regexp,Equals:Ee.definitionOperator,Arrow:Ee.function(Ee.punctuation),": Spread":Ee.punctuation,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace,"InterpolationStart InterpolationEnd":Ee.special(Ee.brace),".":Ee.derefOperator,", ;":Ee.separator,"@":Ee.meta,TypeName:Ee.typeName,TypeDefinition:Ee.definition(Ee.typeName),"type enum interface implements namespace module declare":Ee.definitionKeyword,"abstract global Privacy readonly override":Ee.modifier,"is keyof unique infer":Ee.operatorKeyword,JSXAttributeValue:Ee.attributeValue,JSXText:Ee.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Ee.angleBracket,"JSXIdentifier JSXNameSpacedName":Ee.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Ee.attributeName,"JSXBuiltin/JSXIdentifier":Ee.standard(Ee.tagName)}),UYe={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},zYe={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},jYe={__proto__:null,"<":143},HYe=aO.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EjQ08SO1G0{O#>wQ08SO1G0{O#@uQ08SO1G0{O#CuQ(CYO'#ChO#EsQ(CYO1G1^O#EzQ(CYO'#JjO!,lQWO1G1dO#F[Q08SO,5?TOOQ07`-EkQWO1G3lO$2dQ^O1G3nO$6hQ^O'#HmOOQU1G3q1G3qO$6uQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6}Q^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;UQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;ZQ(CYO,5:UOOQO,5;[,5;[O$;eQ`O'#I^O$;{QWO,5@WOOQ07b1G/o1G/oO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$PQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>ZQWO1G5qO$>cQWO1G6OO$>kQrO1G6PO9ZQWO,5>}O$>uQ08SO1G5|O%[Q^O1G5|O$?VQ07hO1G5|O$?hQWO1G5{O$?hQWO1G5{O9ZQWO1G5{O$?pQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@UQWO,5?QO$'ZQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7dQWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7iQ`O1G5sO%7}Q(CYO1G0vO%8XQWO1G0vOOQO1G/p1G/pO%8dQ(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=mQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8nQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8yQ07hO7+&TO%9XQ08SO7++hO%[Q^O7++hO%9iQWO7++gO%9iQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9qQWO1G4lOOQO7+%|7+%|O#%sQWO<zQ08SO1G2ZO%A]Q08SO1G2mO%ChQ08SO1G2oO%EsQ7[O,5>yOOQO-E<]-E<]O%E}QrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FXQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5oQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5tQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&sQWO<}AN>}O%[Q^OAN?ZOOQO<qQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@gQrO'#JiO!*fQ^O'#DqO'@nQ^O'#D}O'@uQrO'#ChO'C]QrO'#ChO!*fQ^O'#EPO'CmQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EpQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:PYe,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[BYe],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#UYe[e]||-1},{term:334,get:e=>zYe[e]||-1},{term:70,get:e=>jYe[e]||-1}],tokenPrec:14638}),Phe=[fl("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),fl("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),fl("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),fl("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),fl("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),fl(`try { +`);r=i<0?n:n.slice(0,i)}return t+r.length>this.to?r.slice(0,this.to-t):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,n,r=0){this.block=N3.create(t,r,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,n,r=0){this.startContext(this.parser.getNodeType(t),n,r)}addNode(t,n,r){typeof t=="number"&&(t=new ci(this.parser.nodeSet.types[t],iO,iO,(r??this.prevLineEnd())-n)),this.block.addChild(t,n-this.block.from)}addElement(t){this.block.addChild(t.toTree(this.parser.nodeSet),t.from-this.block.from)}addLeafElement(t,n){this.addNode(this.buffer.writeElements(sL(n.children,t.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let t=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(t.toTree(this.parser.nodeSet),t.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(t){return this.ranges.length>1?ahe(this.ranges,0,t.topNode,this.ranges[0].from,this.reusePlaceholders):t}finishLeaf(t){for(let r of t.parsers)if(r.finish(this,t))return;let n=sL(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(Zt.Paragraph,t.content.length),t.start)}elt(t,n,r,i){return typeof t=="string"?jr(this.parser.getNodeType(t),n,r,i):new lhe(t,n)}get buffer(){return new ohe(this.parser.nodeSet)}}function ahe(e,t,n,r,i){let a=e[t].to,s=[],o=[],l=n.from+r;function u(c,f){for(;f?c>=a:c>a;){let h=e[t+1].from-a;r+=h,c+=h,t++,a=e[t].to}}for(let c=n.firstChild;c;c=c.nextSibling){u(c.from+r,!0);let f=c.from+r,h,g=i.get(c.tree);g?h=g:c.to+r>a?(h=ahe(e,t,c,r,i),u(c.to+r,!1)):h=c.toTree(),s.push(h),o.push(f-l)}return u(n.to+r,!1),new ci(n.type,s,o,n.to+r-l,n.tree?n.tree.propValues:void 0)}class iI extends cB{constructor(t,n,r,i,a,s,o,l,u){super(),this.nodeSet=t,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=a,this.skipContextMarkup=s,this.inlineParsers=o,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let c of t.types)this.nodeTypes[c.name]=c.id}createParse(t,n,r){let i=new Fqe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}configure(t){let n=aL(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,a=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),o=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),f=this.wrappers;if(_E(n.defineNodes)){i=Object.assign({},i);let h=r.types.slice(),g;for(let b of n.defineNodes){let{name:S,block:w,composite:E,style:x}=typeof b=="string"?{name:b}:b;if(h.some(R=>R.name==S))continue;E&&(i[h.length]=(R,A,D)=>E(A,D,R.value));let k=h.length,C=E?["Block","BlockContext"]:w?k>=Zt.ATXHeading1&&k<=Zt.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;h.push(ss.define({id:k,name:S,props:C&&[[rr.group,C]]})),x&&(g||(g={}),Array.isArray(x)||x instanceof id?g[S]=x:Object.assign(g,x))}r=new vT(h),g&&(r=r.extend(DO(g)))}if(_E(n.props)&&(r=r.extend(...n.props)),_E(n.remove))for(let h of n.remove){let g=this.blockNames.indexOf(h),b=this.inlineNames.indexOf(h);g>-1&&(a[g]=s[g]=void 0),b>-1&&(l[b]=void 0)}if(_E(n.parseBlock))for(let h of n.parseBlock){let g=o.indexOf(h.name);if(g>-1)a[g]=h.parse,s[g]=h.leaf;else{let b=h.before?SA(o,h.before):h.after?SA(o,h.after)+1:o.length-1;a.splice(b,0,h.parse),s.splice(b,0,h.leaf),o.splice(b,0,h.name)}h.endLeaf&&c.push(h.endLeaf)}if(_E(n.parseInline))for(let h of n.parseInline){let g=u.indexOf(h.name);if(g>-1)l[g]=h.parse;else{let b=h.before?SA(u,h.before):h.after?SA(u,h.after)+1:u.length-1;l.splice(b,0,h.parse),u.splice(b,0,h.name)}}return n.wrap&&(f=f.concat(n.wrap)),new iI(r,a,s,o,c,i,l,u,f)}getNodeType(t){let n=this.nodeTypes[t];if(n==null)throw new RangeError(`Unknown node type '${t}'`);return n}parseInline(t,n){let r=new Uqe(this,t,n);e:for(let i=n;i=0){i=o;continue e}}i++}return r.resolveMarkers(0)}}function _E(e){return e!=null&&e.length>0}function aL(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=aL(e[0]);if(e.length==1)return t;let n=aL(e.slice(1));if(!n||!t)return t||n;let r=(s,o)=>(s||iO).concat(o||iO),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(s,o,l,u)=>i(a(s,o,l,u),o,l,u):i:a}}function SA(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let she=[ss.none];for(let e=1,t;t=Zt[e];e++)she[e]=ss.define({id:e,name:t,props:e>=Zt.Escape?[]:[[rr.group,e in Zfe?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const iO=[];let ohe=class{constructor(t){this.nodeSet=t,this.content=[],this.nodes=[]}write(t,n,r,i=0){return this.content.push(t,n,r,4+i*4),this}writeElements(t,n=0){for(let r of t)r.writeTo(this,n);return this}finish(t,n){return ci.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:n})}},ax=class{constructor(t,n,r,i=iO){this.type=t,this.from=n,this.to=r,this.children=i}writeTo(t,n){let r=t.content.length;t.writeElements(this.children,n),t.content.push(this.type,this.from+n,this.to+n,t.content.length+4-r)}toTree(t){return new ohe(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class lhe{constructor(t,n){this.tree=t,this.from=n}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return iO}writeTo(t,n){t.nodes.push(this.tree),t.content.push(t.nodes.length-1,this.from+n,this.to+n,-1)}toTree(){return this.tree}}function jr(e,t,n,r){return new ax(e,t,n,r)}const uhe={resolve:"Emphasis",mark:"EmphasisMark"},che={resolve:"Emphasis",mark:"EmphasisMark"},RE={},TJ={};class ad{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const kJ="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let sx=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{sx=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const aP={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let i=0;i]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(jr(Zt.Autolink,n,n+1+i[0].length,[jr(Zt.LinkMark,n,n+1),jr(Zt.URL,n+1,n+i[0].length),jr(Zt.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(a)return e.append(jr(Zt.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(jr(Zt.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append(jr(Zt.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=sx.test(i),o=sx.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),c=!u&&(!o||l||s),f=!l&&(!s||u||o),h=c&&(t==42||!f||s),g=f&&(t==42||!c||o);return e.append(new ad(t==95?uhe:che,n,r,(h?1:0)|(g?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(jr(Zt.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(jr(Zt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new ad(RE,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new ad(TJ,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let i=e.parts[r];if(i instanceof ad&&(i.type==RE||i.type==TJ)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=Bqe(e,a,i.type==RE?Zt.Link:Zt.Image,i.from,n+1);if(i.type==RE)for(let o=0;ot?jr(Zt.URL,t+n,a+n):a==e.length?null:!1}}function fhe(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new ad(t,n,r,(i?1:0)|(a?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof ad&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let u=i.type.resolve,c=[],f=o.from,h=i.to;if(a){let S=Math.min(2,o.to-o.from,s);f=o.to-S,h=i.from+S,u=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&c.push(this.elt(o.type.mark,f,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof ad&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return F2(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?jr(this.parser.getNodeType(t),n,r,i):new lhe(t,n)}}function sL(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` +`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(rr.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,u=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=phe(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let f=new ci(t.parser.nodeSet.types[Zt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(f,n.tree),t.addNode(f,c)}if(n.type.is("Block")&&(zqe.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function phe(e,t){let n=e;for(let r=1;rOA[e]),Object.keys(OA).map(e=>Mqe[e]),Object.keys(OA),Lqe,Zfe,Object.keys(aP).map(e=>aP[e]),Object.keys(aP),[]);function Wqe(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function Qqe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:wde((i,a)=>{let s=i.type.id;if(t&&(s==Zt.CodeBlock||s==Zt.FencedCode)){let o="";if(s==Zt.FencedCode){let u=i.node.getChild(Zt.CodeInfo);u&&(o=a.read(u.from,u.to))}let l=t(o);if(l)return{parser:l,overlay:u=>u.type.id==Zt.CodeText}}else if(n&&(s==Zt.HTMLBlock||s==Zt.HTMLTag))return{parser:n,overlay:Wqe(i.node,i.from,i.to)};return null})}}const qqe={resolve:"Strikethrough",mark:"StrikethroughMark"},Gqe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Ee.strikethrough}},{name:"StrikethroughMark",style:Ee.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=sx.test(r),l=sx.test(i);return e.addDelimiter(qqe,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function B2(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let f=n;f-1)&&a++,s=!1,r&&(o>-1&&c(),r.push(e.elt("TableDelimiter",f+i,f+i+1))),o=l=-1):(u||h!=32&&h!=9)&&(o<0&&(o=f),l=f+1),u=!u&&h==92}return o>-1&&(a++,r&&c()),a}function CJ(e,t){for(let n=t;ni instanceof AJ)||!CJ(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return mhe.test(r)&&B2(e,t.text,t.basePos)==B2(e,r,t.basePos)},before:"SetextHeading"}]};class Zqe{nextLine(){return!1}finish(t,n){return t.addLeafElement(n,t.elt("Task",n.start,n.start+n.content.length,[t.elt("TaskMarker",n.start,n.start+3),...t.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const Xqe={defineNodes:[{name:"Task",block:!0,style:Ee.list},{name:"TaskMarker",style:Ee.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new Zqe:null},after:"SetextHeading"}]},_J=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,RJ=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Kqe=/[\w-]+\.[\w-]+($|\/)/,IJ=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,DJ=/\/[a-zA-Z\d@.]+/gy;function NJ(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&NJ(e,t,r,")")>NJ(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function PJ(e,t){IJ.lastIndex=t;let n=IJ.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const eGe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;_J.lastIndex=r;let i=_J.exec(e.text),a=-1;return!i||(i[1]||i[2]?a=Jqe(e.text,r+i[0].length):i[3]?a=PJ(e.text,r):(a=PJ(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(DJ.lastIndex=a,i=DJ.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},tGe=[Yqe,Xqe,Gqe,eGe];function ghe(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new P3(t,[],n,r,r,0,[],0,i?new LJ(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=a.dynamicPrecedence(i);if(s&&(this.score+=s),r==0){this.pushState(a.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]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(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)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]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{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)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new P3(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new aGe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){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;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.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:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,u=this.stack.length-o*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return o<<19|65536|l}}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:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class LJ{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class aGe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>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 M3{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new M3(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.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 M3(this.stack,this.pos,this.index)}}function l2(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class B4{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const $J=new B4;class sGe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=$J,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.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(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.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(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,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(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,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(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=$J,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class iv{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;bhe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}iv.prototype.contextual=iv.prototype.fallback=iv.prototype.extend=!1;class L3{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?l2(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(bhe(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}L3.prototype.contextual=iv.prototype.fallback=iv.prototype.extend=!1;class Rd{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function bhe(e,t,n,r,i,a){let s=0,o=1<0){let b=e[g];if(l.allows(b)&&(t.token.value==-1||t.token.value==b||oGe(b,t.token.value,i,a))){t.acceptToken(b);break}}let c=t.next,f=0,h=e[s+2];if(t.next<0&&h>f&&e[u+h*3-3]==65535){s=e[u+h*3-1];continue e}for(;f>1,b=u+g+(g<<1),S=e[b],w=e[b+1]||65536;if(c=w)f=g+1;else{s=e[b+2],t.advance();continue e}}break}}function FJ(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function oGe(e,t,n,r){let i=FJ(n,r,t);return i<0||FJ(n,r,e)t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class lGe{constructor(t,n){this.fragments=t,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 t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?BJ(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?BJ(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof ci){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class uGe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new B4)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let u=0;uf.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let h=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!c.extend&&(r=f,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new B4,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new B4,{pos:r,p:i}=t;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(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new lGe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&fGe(i);if(s)return eu&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw eu&&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 eu&&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,l)=>l.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;s500&&u.buffer.length>500)if((o.score-u.score||o.buffer.length-u.buffer.length)>0)r.splice(l--,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 ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let h=this.parser.nodeSet.types[f.type.id]==f.type?a.getGoto(t.state,f.type.id):-1;if(h>-1&&f.length&&(!u||(f.prop(rr.contextHash)||0)==c))return t.useNode(f,h),eu&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(f.type.id)})`),!0;if(!(f instanceof ci)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof ci&&f.positions[0]==0)f=g;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),eu&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(b):r.push(b)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return UJ(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),eu&&console.log(c+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let f=o.split(),h=c;for(let g=0;f.forceReduce()&&g<10&&(eu&&console.log(h+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)eu&&(h=this.stackID(f)+" -> ");for(let g of o.recoverByInsert(l))eu&&console.log(c+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(u==o.pos&&(u++,l=0),o.recoverByDelete(l,u),eu&&console.log(c+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),UJ(o,r)):(!i||i.scoree;class yhe{constructor(t){this.start=t.start,this.shift=t.shift||oP,this.reduce=t.reduce||oP,this.reuse=t.reuse||oP,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class aO extends cB{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(c,l,o[u++]);else{let f=o[u+-c];for(let h=-c;h>0;h--)a(o[u++],l,f);u++}}}this.nodeSet=new vT(n.map((o,l)=>ss.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=yde;let s=l2(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new iv(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new cGe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,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,l=i[a++];if(o&&r)return l;for(let u=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Nh(this.data,a+2);else break;i=n(Nh(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Nh(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(aO.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.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]=zJ(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const hGe=54,pGe=1,mGe=55,gGe=2,bGe=56,yGe=3,jJ=4,vGe=5,$3=6,vhe=7,Ohe=8,She=9,Ehe=10,OGe=11,SGe=12,EGe=13,lP=57,wGe=14,HJ=58,whe=20,xGe=22,xhe=23,TGe=24,oL=26,The=27,kGe=28,CGe=31,AGe=34,_Ge=36,RGe=37,IGe=0,DGe=1,NGe={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},PGe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},VJ={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function MGe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function khe(e){return e==9||e==10||e==13||e==32}let WJ=null,QJ=null,qJ=0;function lL(e,t){let n=e.pos+t;if(qJ==n&&QJ==e)return WJ;let r=e.peek(t);for(;khe(r);)r=e.peek(++t);let i="";for(;MGe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return QJ=e,qJ=n,WJ=i?i.toLowerCase():r==LGe||r==$Ge?void 0:null}const Che=60,F3=62,DB=47,LGe=63,$Ge=33,FGe=45;function GJ(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new GJ(lL(r,1)||"",e):e},reduce(e,t){return t==whe&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==$3||i==_Ge?new GJ(lL(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),zGe=new Rd((e,t)=>{if(e.next!=Che){e.next<0&&t.context&&e.acceptToken(lP);return}e.advance();let n=e.next==DB;n&&e.advance();let r=lL(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?wGe:$3);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(OGe);if(i&&PGe[i])return e.acceptToken(lP,-2);if(t.dialectEnabled(IGe))return e.acceptToken(SGe);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(EGe)}else{if(r=="script")return e.acceptToken(vhe);if(r=="style")return e.acceptToken(Ohe);if(r=="textarea")return e.acceptToken(She);if(NGe.hasOwnProperty(r))return e.acceptToken(Ehe);i&&VJ[i]&&VJ[i][r]?e.acceptToken(lP,-1):e.acceptToken($3)}},{contextual:!0}),jGe=new Rd(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(HJ);break}if(e.next==FGe)t++;else if(e.next==F3&&t>=2){n>=3&&e.acceptToken(HJ,-2);break}else t=0;e.advance()}});function HGe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const VGe=new Rd((e,t)=>{if(e.next==DB&&e.peek(1)==F3){let n=t.dialectEnabled(DGe)||HGe(t.context);e.acceptToken(n?vGe:jJ,2)}else e.next==F3&&e.acceptToken(jJ,1)});function NB(e,t,n){let r=2+e.length;return new Rd(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==Che||a==1&&i.next==DB||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const WGe=NB("script",hGe,pGe),QGe=NB("style",mGe,gGe),qGe=NB("textarea",bGe,yGe),GGe=DO({"Text RawText":Ee.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Ee.angleBracket,TagName:Ee.tagName,"MismatchedCloseTag/TagName":[Ee.tagName,Ee.invalid],AttributeName:Ee.attributeName,"AttributeValue UnquotedAttributeValue":Ee.attributeValue,Is:Ee.definitionOperator,"EntityReference CharacterReference":Ee.character,Comment:Ee.blockComment,ProcessingInst:Ee.processingInstruction,DoctypeDecl:Ee.documentMeta}),YGe=aO.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:UGe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[GGe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let u=o.type.id;if(u==kGe)return uP(o,l,n);if(u==CGe)return uP(o,l,r);if(u==AGe)return uP(o,l,i);if(u==whe&&a.length){let c=o.node,f=c.firstChild,h=f&&YJ(f,l),g;if(h){for(let b of a)if(b.tag==h&&(!b.attrs||b.attrs(g||(g=Ahe(c,l))))){let S=c.lastChild,w=S.type.id==RGe?S.from:c.to;if(w>f.to)return{parser:b.parser,overlay:[{from:f.to,to:w}]}}}}if(s&&u==xhe){let c=o.node,f;if(f=c.firstChild){let h=s[l.read(f.from,f.to)];if(h)for(let g of h){if(g.tagName&&g.tagName!=YJ(c.parent,l))continue;let b=c.lastChild;if(b.type.id==oL){let S=b.from+1,w=b.lastChild,E=b.to-(w&&w.isError?0:1);if(E>S)return{parser:g.parser,overlay:[{from:S,to:E}]}}else if(b.type.id==The)return{parser:g.parser,overlay:[{from:b.from,to:b.to}]}}}}return null})}const ZGe=99,ZJ=1,XGe=100,KGe=101,XJ=2,Rhe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],JGe=58,eYe=40,Ihe=95,tYe=91,U4=45,nYe=46,rYe=35,iYe=37,aYe=38,sYe=92,oYe=10;function ox(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function lYe(e){return e>=48&&e<=57}const uYe=new Rd((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(ox(a)||a==U4||a==Ihe||n&&lYe(a))!n&&(a!=U4||i>0)&&(n=!0),r===i&&a==U4&&r++,e.advance();else if(a==sYe&&e.peek(1)!=oYe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==eYe?XGe:r==2&&t.canShift(XJ)?XJ:KGe);break}}}),cYe=new Rd(e=>{if(Rhe.includes(e.peek(-1))){let{next:t}=e;(ox(t)||t==Ihe||t==rYe||t==nYe||t==tYe||t==JGe&&ox(e.peek(1))||t==U4||t==aYe)&&e.acceptToken(ZGe)}}),dYe=new Rd(e=>{if(!Rhe.includes(e.peek(-1))){let{next:t}=e;if(t==iYe&&(e.advance(),e.acceptToken(ZJ)),ox(t)){do e.advance();while(ox(e.next));e.acceptToken(ZJ)}}}),fYe=DO({"AtKeyword import charset namespace keyframes media supports":Ee.definitionKeyword,"from to selector":Ee.keyword,NamespaceName:Ee.namespace,KeyframeName:Ee.labelName,KeyframeRangeName:Ee.operatorKeyword,TagName:Ee.tagName,ClassName:Ee.className,PseudoClassName:Ee.constant(Ee.className),IdName:Ee.labelName,"FeatureName PropertyName":Ee.propertyName,AttributeName:Ee.attributeName,NumberLiteral:Ee.number,KeywordQuery:Ee.keyword,UnaryQueryOp:Ee.operatorKeyword,"CallTag ValueName":Ee.atom,VariableName:Ee.variableName,Callee:Ee.operatorKeyword,Unit:Ee.unit,"UniversalSelector NestingSelector":Ee.definitionOperator,MatchOp:Ee.compareOperator,"ChildOp SiblingOp, LogicOp":Ee.logicOperator,BinOp:Ee.arithmeticOperator,Important:Ee.modifier,Comment:Ee.blockComment,ColorLiteral:Ee.color,"ParenthesizedContent StringLiteral":Ee.string,":":Ee.punctuation,"PseudoOp #":Ee.derefOperator,"; ,":Ee.separator,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace}),hYe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},pYe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},mYe={__proto__:null,not:132,only:132},gYe=aO.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[cYe,dYe,uYe,1,2,3,4,new L3("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>hYe[e]||-1},{term:58,get:e=>pYe[e]||-1},{term:101,get:e=>mYe[e]||-1}],tokenPrec:1200});let cP=null;function dP(){if(!cP&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));cP=t.sort().map(r=>({type:"property",label:r}))}return cP||[]}const KJ=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),JJ=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),bYe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),Xp=/^(\w[\w-]*|-\w[\w-]*|)$/,yYe=/^-(-[\w-]*)?$/;function vYe(e,t){var n;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(n=e.parent)===null||n===void 0?void 0:n.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:t.sliceString(r.from,r.to)=="var"}const eee=new Ede,OYe=["Declaration"];function SYe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function Dhe(e,t,n){if(t.to-t.from>4096){let r=eee.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(_i.IncludeAnonymous);if(s.firstChild())do for(let o of Dhe(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return eee.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(OYe)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const EYe=e=>t=>{let{state:n,pos:r}=t,i=Di(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:dP(),validFor:Xp};if(i.name=="ValueName")return{from:i.from,options:JJ,validFor:Xp};if(i.name=="PseudoClassName")return{from:i.from,options:KJ,validFor:Xp};if(e(i)||(t.explicit||a)&&vYe(i,n.doc))return{from:e(i)||a?i.from:r,options:Dhe(n.doc,SYe(i),e),validFor:yYe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:dP(),validFor:Xp};return{from:i.from,options:bYe,validFor:Xp}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:KJ,validFor:Xp}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:JJ,validFor:Xp}:s.name=="Block"||s.name=="Styles"?{from:r,options:dP(),validFor:Xp}:null},wYe=EYe(e=>e.name=="VariableName"),B3=eO.define({name:"css",parser:gYe.configure({props:[ST.add({Declaration:F4()}),NO.add({"Block KeyframeList":Rde})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function xYe(){return new Jw(B3,B3.data.of({autocomplete:wYe}))}const TYe=309,tee=1,kYe=2,CYe=3,AYe=310,_Ye=312,RYe=313,IYe=4,DYe=5,NYe=0,uL=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Nhe=125,PYe=59,cL=47,MYe=42,LYe=43,$Ye=45,FYe=60,BYe=44,UYe=new yhe({start:!1,shift(e,t){return t==IYe||t==DYe||t==_Ye?e:t==RYe},strict:!1}),zYe=new Rd((e,t)=>{let{next:n}=e;(n==Nhe||n==-1||t.context)&&e.acceptToken(AYe)},{contextual:!0,fallback:!0}),jYe=new Rd((e,t)=>{let{next:n}=e,r;uL.indexOf(n)>-1||n==cL&&((r=e.peek(1))==cL||r==MYe)||n!=Nhe&&n!=PYe&&n!=-1&&!t.context&&e.acceptToken(TYe)},{contextual:!0}),HYe=new Rd((e,t)=>{let{next:n}=e;if((n==LYe||n==$Ye)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(tee);e.acceptToken(r?tee:kYe)}},{contextual:!0});function fP(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const VYe=new Rd((e,t)=>{if(e.next!=FYe||!t.dialectEnabled(NYe)||(e.advance(),e.next==cL))return;let n=0;for(;uL.indexOf(e.next)>-1;)e.advance(),n++;if(fP(e.next,!0)){for(e.advance(),n++;fP(e.next,!1);)e.advance(),n++;for(;uL.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==BYe)return;for(let r=0;;r++){if(r==7){if(!fP(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(CYe,-n)}),WYe=DO({"get set async static":Ee.modifier,"for while do if else switch try catch finally return throw break continue default case":Ee.controlKeyword,"in of await yield void typeof delete instanceof":Ee.operatorKeyword,"let var const using function class extends":Ee.definitionKeyword,"import export from":Ee.moduleKeyword,"with debugger as new":Ee.keyword,TemplateString:Ee.special(Ee.string),super:Ee.atom,BooleanLiteral:Ee.bool,this:Ee.self,null:Ee.null,Star:Ee.modifier,VariableName:Ee.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Ee.function(Ee.variableName),VariableDefinition:Ee.definition(Ee.variableName),Label:Ee.labelName,PropertyName:Ee.propertyName,PrivatePropertyName:Ee.special(Ee.propertyName),"CallExpression/MemberExpression/PropertyName":Ee.function(Ee.propertyName),"FunctionDeclaration/VariableDefinition":Ee.function(Ee.definition(Ee.variableName)),"ClassDeclaration/VariableDefinition":Ee.definition(Ee.className),PropertyDefinition:Ee.definition(Ee.propertyName),PrivatePropertyDefinition:Ee.definition(Ee.special(Ee.propertyName)),UpdateOp:Ee.updateOperator,"LineComment Hashbang":Ee.lineComment,BlockComment:Ee.blockComment,Number:Ee.number,String:Ee.string,Escape:Ee.escape,ArithOp:Ee.arithmeticOperator,LogicOp:Ee.logicOperator,BitOp:Ee.bitwiseOperator,CompareOp:Ee.compareOperator,RegExp:Ee.regexp,Equals:Ee.definitionOperator,Arrow:Ee.function(Ee.punctuation),": Spread":Ee.punctuation,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace,"InterpolationStart InterpolationEnd":Ee.special(Ee.brace),".":Ee.derefOperator,", ;":Ee.separator,"@":Ee.meta,TypeName:Ee.typeName,TypeDefinition:Ee.definition(Ee.typeName),"type enum interface implements namespace module declare":Ee.definitionKeyword,"abstract global Privacy readonly override":Ee.modifier,"is keyof unique infer":Ee.operatorKeyword,JSXAttributeValue:Ee.attributeValue,JSXText:Ee.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Ee.angleBracket,"JSXIdentifier JSXNameSpacedName":Ee.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Ee.attributeName,"JSXBuiltin/JSXIdentifier":Ee.standard(Ee.tagName)}),QYe={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},qYe={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},GYe={__proto__:null,"<":143},YYe=aO.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EjQ08SO1G0{O#>wQ08SO1G0{O#@uQ08SO1G0{O#CuQ(CYO'#ChO#EsQ(CYO1G1^O#EzQ(CYO'#JjO!,lQWO1G1dO#F[Q08SO,5?TOOQ07`-EkQWO1G3lO$2dQ^O1G3nO$6hQ^O'#HmOOQU1G3q1G3qO$6uQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6}Q^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;UQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;ZQ(CYO,5:UOOQO,5;[,5;[O$;eQ`O'#I^O$;{QWO,5@WOOQ07b1G/o1G/oO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$PQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>ZQWO1G5qO$>cQWO1G6OO$>kQrO1G6PO9ZQWO,5>}O$>uQ08SO1G5|O%[Q^O1G5|O$?VQ07hO1G5|O$?hQWO1G5{O$?hQWO1G5{O9ZQWO1G5{O$?pQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@UQWO,5?QO$'ZQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7dQWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7iQ`O1G5sO%7}Q(CYO1G0vO%8XQWO1G0vOOQO1G/p1G/pO%8dQ(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=mQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8nQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8yQ07hO7+&TO%9XQ08SO7++hO%[Q^O7++hO%9iQWO7++gO%9iQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9qQWO1G4lOOQO7+%|7+%|O#%sQWO<zQ08SO1G2ZO%A]Q08SO1G2mO%ChQ08SO1G2oO%EsQ7[O,5>yOOQO-E<]-E<]O%E}QrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FXQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5oQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5tQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&sQWO<}AN>}O%[Q^OAN?ZOOQO<qQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@gQrO'#JiO!*fQ^O'#DqO'@nQ^O'#D}O'@uQrO'#ChO'C]QrO'#ChO!*fQ^O'#EPO'CmQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EpQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:UYe,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[WYe],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#QYe[e]||-1},{term:334,get:e=>qYe[e]||-1},{term:70,get:e=>GYe[e]||-1}],tokenPrec:14638}),Phe=[fl("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),fl("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),fl("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),fl("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),fl("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),fl(`try { \${} } catch (\${error}) { \${} @@ -222,9 +222,9 @@ Error generating stack: `+a.message+` constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),fl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),fl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],VYe=Phe.concat([fl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),fl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),fl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),tee=new Ede,Mhe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function IE(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const WYe=["FunctionDeclaration"],QYe={FunctionDeclaration:IE("function"),ClassDeclaration:IE("class"),ClassExpression:()=>!0,EnumDeclaration:IE("constant"),TypeAliasDeclaration:IE("type"),NamespaceDeclaration:IE("namespace"),VariableDefinition(e,t){e.matchContext(WYe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Lhe(e,t){let n=tee.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(_i.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=QYe[s.name];if(o&&o(s,a)||Mhe.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of Lhe(e,s.node))r.push(o);return!1}}),tee.set(t,r),r}const nee=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,$he=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function qYe(e){let t=Di(e.state).resolveInner(e.pos,-1);if($he.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&nee.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)Mhe.has(i.name)&&(r=r.concat(Lhe(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:nee}}const Lf=eO.define({name:"javascript",parser:HYe.configure({props:[OT.add({IfStatement:$4({except:/^\s*({|else\b)/}),TryStatement:$4({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:rVe,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:nVe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":$4({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),NO.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Rde,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Fhe={test:e=>/^JSX/.test(e.name),facet:cB({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Bhe=Lf.configure({dialect:"ts"},"typescript"),Uhe=Lf.configure({dialect:"jsx",props:[dB.add(e=>e.isTop?[Fhe]:void 0)]}),zhe=Lf.configure({dialect:"jsx ts",props:[dB.add(e=>e.isTop?[Fhe]:void 0)]},"typescript");let jhe=e=>({label:e,type:"keyword"});const Hhe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(jhe),GYe=Hhe.concat(["declare","implements","private","protected","public"].map(jhe));function YYe(e={}){let t=e.jsx?e.typescript?zhe:Uhe:e.typescript?Bhe:Lf,n=e.typescript?VYe.concat(GYe):Phe.concat(Hhe);return new Jw(t,[Lf.data.of({autocomplete:vQe($he,Dfe(n))}),Lf.data.of({autocomplete:qYe}),e.jsx?KYe:[]])}function ZYe(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function ree(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const XYe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),KYe=fn.inputHandler.of((e,t,n,r,i)=>{if((XYe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Lf.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u;let{head:c}=l,f=Di(s).resolveInner(c-1,-1),h;if(f.name=="JSXStartTag"&&(f=f.parent),!(s.doc.sliceString(c-1,c)!=r||f.name=="JSXAttributeValue"&&f.to>c)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&f.name=="JSXStartCloseTag"){let g=f.parent,b=g.parent;if(b&&g.from==c-2&&((h=ree(s.doc,b.firstChild,c))||((u=b.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let S=`${h}>`;return{range:Ot.cursor(c+S.length,-1),changes:{from:c,insert:S}}}}else if(r==">"){let g=ZYe(f);if(g&&!/^\/?>|^<\//.test(s.doc.sliceString(c,c+2))&&(h=ree(s.doc,g,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),DE=["_blank","_self","_top","_parent"],dP=["ascii","utf-8","utf-16","latin1","latin1"],fP=["get","post","put","delete"],hP=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],tu=["true","false"],Pn={},JYe={a:{attrs:{href:null,ping:null,type:null,media:null,target:DE,hreflang:null}},abbr:Pn,address:Pn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Pn,aside:Pn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Pn,base:{attrs:{href:null,target:DE}},bdi:Pn,bdo:Pn,blockquote:{attrs:{cite:null}},body:Pn,br:Pn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:hP,formmethod:fP,formnovalidate:["novalidate"],formtarget:DE,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Pn,center:Pn,cite:Pn,code:Pn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Pn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Pn,div:Pn,dl:Pn,dt:Pn,em:Pn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Pn,figure:Pn,footer:Pn,form:{attrs:{action:null,name:null,"accept-charset":dP,autocomplete:["on","off"],enctype:hP,method:fP,novalidate:["novalidate"],target:DE}},h1:Pn,h2:Pn,h3:Pn,h4:Pn,h5:Pn,h6:Pn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Pn,hgroup:Pn,hr:Pn,html:{attrs:{manifest:null}},i:Pn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:hP,formmethod:fP,formnovalidate:["novalidate"],formtarget:DE,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Pn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Pn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Pn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:dP,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Pn,noscript:Pn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Pn,param:{attrs:{name:null,value:null}},pre:Pn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Pn,rt:Pn,ruby:Pn,samp:Pn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:dP}},section:Pn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Pn,source:{attrs:{src:null,type:null,media:null}},span:Pn,strong:Pn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Pn,summary:Pn,sup:Pn,table:Pn,tbody:Pn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Pn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Pn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Pn,time:{attrs:{datetime:null}},title:Pn,tr:Pn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Pn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Pn},Vhe={accesskey:null,class:null,contenteditable:tu,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:tu,autocorrect:tu,autocapitalize:tu,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":tu,"aria-autocomplete":["inline","list","both","none"],"aria-busy":tu,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":tu,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":tu,"aria-hidden":tu,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":tu,"aria-multiselectable":tu,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":tu,"aria-relevant":null,"aria-required":tu,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Whe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of Whe)Vhe[e]=null;let lx=class{constructor(t,n){this.tags=Object.assign(Object.assign({},JYe),t),this.globalAttrs=Object.assign(Object.assign({},Vhe),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};lx.default=new lx;function sO(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function oO(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function Qhe(e,t,n){let r=n.tags[sO(e,oO(t))];return(r==null?void 0:r.children)||n.allTags}function NB(e,t){let n=[];for(let r=oO(t);r&&!r.type.isTop;r=oO(r.parent)){let i=sO(e,r);if(i&&r.lastChild.name=="CloseTag")break;i&&n.indexOf(i)<0&&(t.name=="EndTag"||t.from>=r.firstChild.to)&&n.push(i)}return n}const qhe=/^[:\-\.\w\u00b7-\uffff]*$/;function iee(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=oO(n,!0);return{from:r,to:i,options:Qhe(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(NB(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function aee(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:NB(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:qhe}}function eZe(e,t,n,r){let i=[],a=0;for(let s of Qhe(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of NB(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function tZe(e,t,n,r,i){let a=oO(n),s=a?t.tags[sO(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:qhe}}function nZe(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let u=e.sliceDoc(s.from,s.to),c=t.globalAttrs[u];if(!c){let f=oO(n),h=f?t.tags[sO(e.doc,f)]:null;c=(h==null?void 0:h.attrs)&&h.attrs[u]}if(c){let f=e.sliceDoc(r,i).toLowerCase(),h='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,h="",g=e.sliceDoc(i,i+1)==f[0]?"":f[0],f=f.slice(1),r++):l=/^[^\s<>='"]*$/;for(let b of c)o.push({label:b,apply:h+b+g,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function Ghe(e,t){let{state:n,pos:r}=t,i=Di(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.fromGhe(r,i)}const aZe=Lf.parser.configure({top:"SingleExpression"}),Yhe=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Bhe.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Uhe.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:zhe.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:aZe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Lf.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:L3.parser}],Zhe=[{name:"style",parser:L3.parser.configure({top:"Styles"})}].concat(Whe.map(e=>({name:e,parser:Lf.parser}))),Xhe=eO.define({name:"html",parser:HGe.configure({props:[OT.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),U4=Xhe.configure({wrap:_he(Yhe,Zhe)});function sZe(e={}){let t="",n;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=_he((e.nestedLanguages||[]).concat(Yhe),(e.nestedAttributes||[]).concat(Zhe)));let r=n?Xhe.configure({wrap:n,dialect:t}):t?U4.configure({dialect:t}):U4;return new Jw(r,[U4.data.of({autocomplete:iZe(e)}),e.autoCloseTags!==!1?oZe:[],YYe().support,yYe().support])}const see=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),oZe=fn.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!U4.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u,c,f;let h=s.doc.sliceString(l.from-1,l.to)==r,{head:g}=l,b=Di(s).resolveInner(g-1,-1),S;if((b.name=="TagName"||b.name=="StartTag")&&(b=b.parent),h&&r==">"&&b.name=="OpenTag"){if(((c=(u=b.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(S=sO(s.doc,b.parent,g))&&!see.has(S)){let E=g+(s.doc.sliceString(g,g+1)===">"?1:0),w=``;return{range:l,changes:{from:g,to:E,insert:w}}}}else if(h&&r=="/"&&b.name=="IncompleteCloseTag"){let E=b.parent;if(b.from==g-2&&((f=E.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(S=sO(s.doc,E,g))&&!see.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=`${S}>`;return{range:Ot.cursor(g+x.length,-1),changes:{from:g,to:w,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Khe=cB({commentTokens:{block:{open:""}}}),Jhe=new rr,epe=Fqe.configure({props:[NO.add(e=>!e.is("Block")||e.is("Document")||cL(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Jhe.add(cL),OT.add({Document:()=>null}),Lg.add({Document:Khe})]});function cL(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function lZe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=cL(r.type))!=null&&i<=t)break;n=r}return n.to}const uZe=_de.of((e,t,n)=>{for(let r=Di(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function PB(e){return new hc(Khe,e,[uZe],"markdown")}const cZe=PB(epe),dZe=epe.configure([Yqe,Xqe,Zqe,Kqe,{props:[NO.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),tpe=PB(dZe);function fZe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=b3.matchLanguageName(e,n,!0),r instanceof b3)return r.support?r.support.language.parser:Kw.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class SA{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+rpe(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function npe(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new SA(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new SA(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let u=s[3],c=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new SA(a.parent,l,l+c,s[1],u,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let u=s[4],c=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),r.push(new SA(a.parent,l,l+c,s[1],u,f,a))}}return r}function rpe(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function pP(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=rpe(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function MB(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(vT)!=" ")return e;let r=vd(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const hZe=({state:e,dispatch:t})=>{let n=Di(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!tpe.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),u=npe(n.resolveInner(o,-1),r);for(;u.length&&u[u.length-1].from>o-l.from;)u.pop();if(!u.length)return i={range:s};let c=u[u.length-1];if(c.to-c.spaceAfter.length>o-l.from)return i={range:s};let f=o>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&f){let E=c.node.firstChild,w=c.node.getChild("ListItem","ListItem");if(E.to>=o||w&&w.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=u.length>1?u[u.length-2]:null,k,C="";x&&x.item?(k=l.from+x.from,C=x.marker(r,1)):k=l.from+(x?x.to:0);let R=[{from:k,to:o,insert:C}];return c.node.name=="OrderedList"&&pP(c.item,r,R,-2),x&&x.node.name=="OrderedList"&&pP(x.item,r,R),{range:Ot.cursor(k+C.length),changes:R}}else{let x=lee(u,e,l);return{range:Ot.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(c.node.name=="Blockquote"&&f&&l.from){let E=r.lineAt(l.from-1),w=/>\s*$/.exec(E.text);if(w&&w.index==c.from){let x=e.changes([{from:E.from+w.index,to:E.to},{from:l.from+c.from,to:l.to}]);return{range:s.map(x),changes:x}}}let h=[];c.node.name=="OrderedList"&&pP(c.item,r,h);let g=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let E=0,w=u.length-1;E<=w;E++)b+=E==w&&!g?u[E].marker(r,1):u[E].blank(El.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return b=MB(b,e),pZe(c.node,e.doc)&&(b=lee(u,e,l)+e.lineBreak+b),h.push({from:S,to:o,insert:e.lineBreak+b}),{range:Ot.cursor(S+b.length+1),changes:h}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function oee(e){return e.name=="QuoteMark"||e.name=="ListMark"}function pZe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=Di(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&tpe.isActiveAt(e,a.from)){let l=o.lineAt(s),u=npe(mZe(n,s),o);if(u.length){let c=u[u.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:Ot.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let h=l.from+c.from;if(c.item&&c.node.fromd in O?i(O,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):O[d]=p,s=(O,d,p)=>(a(O,typeof d!="symbol"?d+"":d,p),p),o;(function(O){O[O.Canceled=1]="Canceled",O[O.Unknown=2]="Unknown",O[O.InvalidArgument=3]="InvalidArgument",O[O.DeadlineExceeded=4]="DeadlineExceeded",O[O.NotFound=5]="NotFound",O[O.AlreadyExists=6]="AlreadyExists",O[O.PermissionDenied=7]="PermissionDenied",O[O.ResourceExhausted=8]="ResourceExhausted",O[O.FailedPrecondition=9]="FailedPrecondition",O[O.Aborted=10]="Aborted",O[O.OutOfRange=11]="OutOfRange",O[O.Unimplemented=12]="Unimplemented",O[O.Internal=13]="Internal",O[O.Unavailable=14]="Unavailable",O[O.DataLoss=15]="DataLoss",O[O.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(O){const d=o[O];return typeof d!="string"?O.toString():d[0].toLowerCase()+d.substring(1).replace(/[A-Z]/g,p=>"_"+p.toLowerCase())}class u extends Error{constructor(d,p=o.Unknown,y,T,$){super(c(d,p)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=d,this.code=p,this.metadata=new Headers(y??{}),this.details=T??[],this.cause=$}static from(d,p=o.Unknown){return d instanceof u?d:d instanceof Error?d.name=="AbortError"?new u(d.message,o.Canceled):new u(d.message,p,void 0,void 0,d):new u(String(d),p,void 0,void 0,d)}static[Symbol.hasInstance](d){return d instanceof Error?Object.getPrototypeOf(d)===u.prototype?!0:d.name==="ConnectError"&&"code"in d&&typeof d.code=="number"&&"metadata"in d&&"details"in d&&Array.isArray(d.details)&&"rawMessage"in d&&typeof d.rawMessage=="string"&&"cause"in d:!1}findDetails(d){const p="typeName"in d?{findMessage:T=>T===d.typeName?d:void 0}:d,y=[];for(const T of this.details){if("getType"in T){p.findMessage(T.getType().typeName)&&y.push(T);continue}const $=p.findMessage(T.type);if($)try{y.push($.fromBinary(T.value))}catch{}}return y}}function c(O,d){return O.length?`[${l(d)}] ${O}`:`[${l(d)}]`}function f(O,d){if(!O)throw new Error(d)}const h=34028234663852886e22,g=-34028234663852886e22,b=4294967295,S=2147483647,E=-2147483648;function w(O){if(typeof O!="number")throw new Error("invalid int 32: "+typeof O);if(!Number.isInteger(O)||O>S||Ob||O<0)throw new Error("invalid uint 32: "+O)}function k(O){if(typeof O!="number")throw new Error("invalid float 32: "+typeof O);if(Number.isFinite(O)&&(O>h||O({no:T.no,name:T.name,localName:O[T.no]})))}function D(O,d,p){const y=Object.create(null),T=Object.create(null),$=[];for(const q of d){const ne=L(q);$.push(ne),y[q.name]=ne,T[q.no]=ne}return{typeName:O,values:$,findName(q){return y[q]},findNumber(q){return T[q]}}}function B(O,d,p){const y={};for(const T of d){const $=L(T);y[$.localName]=$.no,y[$.no]=$.localName}return A(y,O,d),y}function L(O){return"localName"in O?O:Object.assign(Object.assign({},O),{localName:O.name})}class F{equals(d){return this.getType().runtime.util.equals(this.getType(),this,d)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(d,p){const y=this.getType(),T=y.runtime.bin,$=T.makeReadOptions(p);return T.readMessage(this,$.readerFactory(d),d.byteLength,$),this}fromJson(d,p){const y=this.getType(),T=y.runtime.json,$=T.makeReadOptions(p);return T.readMessage(y,d,$,this),this}fromJsonString(d,p){let y;try{y=JSON.parse(d)}catch(T){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${T instanceof Error?T.message:String(T)}`)}return this.fromJson(y,p)}toBinary(d){const p=this.getType(),y=p.runtime.bin,T=y.makeWriteOptions(d),$=T.writerFactory();return y.writeMessage(this,$,T),$.finish()}toJson(d){const p=this.getType(),y=p.runtime.json,T=y.makeWriteOptions(d);return y.writeMessage(this,T)}toJsonString(d){var p;const y=this.toJson(d);return JSON.stringify(y,null,(p=d==null?void 0:d.prettySpaces)!==null&&p!==void 0?p:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function W(O,d,p,y){var T;const $=(T=y==null?void 0:y.localName)!==null&&T!==void 0?T:d.substring(d.lastIndexOf(".")+1),q={[$]:function(ne){O.util.initFields(this),O.util.initPartial(ne,this)}}[$];return Object.setPrototypeOf(q.prototype,new F),Object.assign(q,{runtime:O,typeName:d,fields:O.util.newFieldList(p),fromBinary(ne,me){return new q().fromBinary(ne,me)},fromJson(ne,me){return new q().fromJson(ne,me)},fromJsonString(ne,me){return new q().fromJsonString(ne,me)},equals(ne,me){return O.util.equals(q,ne,me)}}),q}function V(){let O=0,d=0;for(let y=0;y<28;y+=7){let T=this.buf[this.pos++];if(O|=(T&127)<>4,!(p&128))return this.assertBounds(),[O,d];for(let y=3;y<=31;y+=7){let T=this.buf[this.pos++];if(d|=(T&127)<>>$,ne=!(!(q>>>7)&&d==0),me=(ne?q|128:q)&255;if(p.push(me),!ne)return}const y=O>>>28&15|(d&7)<<4,T=!!(d>>3);if(p.push((T?y|128:y)&255),!!T){for(let $=3;$<31;$=$+7){const q=d>>>$,ne=!!(q>>>7),me=(ne?q|128:q)&255;if(p.push(me),!ne)return}p.push(d>>>31&1)}}const Q=4294967296;function H(O){const d=O[0]==="-";d&&(O=O.slice(1));const p=1e6;let y=0,T=0;function $(q,ne){const me=Number(O.slice(q,ne));T*=p,y=y*p+me,y>=Q&&(T=T+(y/Q|0),y=y%Q)}return $(-24,-18),$(-18,-12),$(-12,-6),$(-6),d?z(y,T):te(y,T)}function J(O,d){let p=te(O,d);const y=p.hi&2147483648;y&&(p=z(p.lo,p.hi));const T=K(p.lo,p.hi);return y?"-"+T:T}function K(O,d){if({lo:O,hi:d}=X(O,d),d<=2097151)return String(Q*d+O);const p=O&16777215,y=(O>>>24|d<<8)&16777215,T=d>>16&65535;let $=p+y*6777216+T*6710656,q=y+T*8147497,ne=T*2;const me=1e7;return $>=me&&(q+=Math.floor($/me),$%=me),q>=me&&(ne+=Math.floor(q/me),q%=me),ne.toString()+Te(q)+Te($)}function X(O,d){return{lo:O>>>0,hi:d>>>0}}function te(O,d){return{lo:O|0,hi:d|0}}function z(O,d){return d=~d,O?O=~O+1:d+=1,te(O,d)}const Te=O=>{const d=String(O);return"0000000".slice(d.length)+d};function be(O,d){if(O>=0){for(;O>127;)d.push(O&127|128),O=O>>>7;d.push(O)}else{for(let p=0;p<9;p++)d.push(O&127|128),O=O>>7;d.push(1)}}function ee(){let O=this.buf[this.pos++],d=O&127;if(!(O&128))return this.assertBounds(),d;if(O=this.buf[this.pos++],d|=(O&127)<<7,!(O&128))return this.assertBounds(),d;if(O=this.buf[this.pos++],d|=(O&127)<<14,!(O&128))return this.assertBounds(),d;if(O=this.buf[this.pos++],d|=(O&127)<<21,!(O&128))return this.assertBounds(),d;O=this.buf[this.pos++],d|=(O&15)<<28;for(let p=5;O&128&&p<10;p++)O=this.buf[this.pos++];if(O&128)throw new Error("invalid varint");return this.assertBounds(),d>>>0}function ye(){const O=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof O.getBigInt64=="function"&&typeof O.getBigUint64=="function"&&typeof O.setBigInt64=="function"&&typeof O.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const T=BigInt("-9223372036854775808"),$=BigInt("9223372036854775807"),q=BigInt("0"),ne=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(me){const Se=typeof me=="bigint"?me:BigInt(me);if(Se>$||Sene||Sef(/^-?[0-9]+$/.test(T),`int64 invalid: ${T}`),y=T=>f(/^[0-9]+$/.test(T),`uint64 invalid: ${T}`);return{zero:"0",supported:!1,parse(T){return typeof T!="string"&&(T=T.toString()),p(T),T},uParse(T){return typeof T!="string"&&(T=T.toString()),y(T),T},enc(T){return typeof T!="string"&&(T=T.toString()),p(T),H(T)},uEnc(T){return typeof T!="string"&&(T=T.toString()),y(T),H(T)},dec(T,$){return J(T,$)},uDec(T,$){return K(T,$)}}}const Oe=ye();var ie;(function(O){O[O.DOUBLE=1]="DOUBLE",O[O.FLOAT=2]="FLOAT",O[O.INT64=3]="INT64",O[O.UINT64=4]="UINT64",O[O.INT32=5]="INT32",O[O.FIXED64=6]="FIXED64",O[O.FIXED32=7]="FIXED32",O[O.BOOL=8]="BOOL",O[O.STRING=9]="STRING",O[O.BYTES=12]="BYTES",O[O.UINT32=13]="UINT32",O[O.SFIXED32=15]="SFIXED32",O[O.SFIXED64=16]="SFIXED64",O[O.SINT32=17]="SINT32",O[O.SINT64=18]="SINT64"})(ie||(ie={}));var _e;(function(O){O[O.BIGINT=0]="BIGINT",O[O.STRING=1]="STRING"})(_e||(_e={}));function Ie(O,d,p){if(d===p)return!0;if(O==ie.BYTES){if(!(d instanceof Uint8Array)||!(p instanceof Uint8Array)||d.length!==p.length)return!1;for(let y=0;y>>0)}raw(d){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(d),this}uint32(d){for(x(d);d>127;)this.buf.push(d&127|128),d=d>>>7;return this.buf.push(d),this}int32(d){return w(d),be(d,this.buf),this}bool(d){return this.buf.push(d?1:0),this}bytes(d){return this.uint32(d.byteLength),this.raw(d)}string(d){let p=this.textEncoder.encode(d);return this.uint32(p.byteLength),this.raw(p)}float(d){k(d);let p=new Uint8Array(4);return new DataView(p.buffer).setFloat32(0,d,!0),this.raw(p)}double(d){let p=new Uint8Array(8);return new DataView(p.buffer).setFloat64(0,d,!0),this.raw(p)}fixed32(d){x(d);let p=new Uint8Array(4);return new DataView(p.buffer).setUint32(0,d,!0),this.raw(p)}sfixed32(d){w(d);let p=new Uint8Array(4);return new DataView(p.buffer).setInt32(0,d,!0),this.raw(p)}sint32(d){return w(d),d=(d<<1^d>>31)>>>0,be(d,this.buf),this}sfixed64(d){let p=new Uint8Array(8),y=new DataView(p.buffer),T=Oe.enc(d);return y.setInt32(0,T.lo,!0),y.setInt32(4,T.hi,!0),this.raw(p)}fixed64(d){let p=new Uint8Array(8),y=new DataView(p.buffer),T=Oe.uEnc(d);return y.setInt32(0,T.lo,!0),y.setInt32(4,T.hi,!0),this.raw(p)}int64(d){let p=Oe.enc(d);return Z(p.lo,p.hi,this.buf),this}sint64(d){let p=Oe.enc(d),y=p.hi>>31,T=p.lo<<1^y,$=(p.hi<<1|p.lo>>>31)^y;return Z(T,$,this.buf),this}uint64(d){let p=Oe.uEnc(d);return Z(p.lo,p.hi,this.buf),this}}class Ve{constructor(d,p){this.varint64=V,this.uint32=ee,this.buf=d,this.len=d.length,this.pos=0,this.view=new DataView(d.buffer,d.byteOffset,d.byteLength),this.textDecoder=p??new TextDecoder}tag(){let d=this.uint32(),p=d>>>3,y=d&7;if(p<=0||y<0||y>5)throw new Error("illegal tag: field no "+p+" wire type "+y);return[p,y]}skip(d,p){let y=this.pos;switch(d){case Pe.Varint:for(;this.buf[this.pos++]&128;);break;case Pe.Bit64:this.pos+=4;case Pe.Bit32:this.pos+=4;break;case Pe.LengthDelimited:let T=this.uint32();this.pos+=T;break;case Pe.StartGroup:for(;;){const[$,q]=this.tag();if(q===Pe.EndGroup){if(p!==void 0&&$!==p)throw new Error("invalid end group tag");break}this.skip(q,$)}break;default:throw new Error("cant skip wire type "+d)}return this.assertBounds(),this.buf.subarray(y,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let d=this.uint32();return d>>>1^-(d&1)}int64(){return Oe.dec(...this.varint64())}uint64(){return Oe.uDec(...this.varint64())}sint64(){let[d,p]=this.varint64(),y=-(d&1);return d=(d>>>1|(p&1)<<31)^y,p=p>>>1^y,Oe.dec(d,p)}bool(){let[d,p]=this.varint64();return d!==0||p!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Oe.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Oe.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let d=this.uint32(),p=this.pos;return this.pos+=d,this.assertBounds(),this.buf.subarray(p,p+d)}string(){return this.textDecoder.decode(this.bytes())}}function Xe(O,d,p,y){let T;return{typeName:d,extendee:p,get field(){if(!T){const $=typeof y=="function"?y():y;$.name=d.split(".").pop(),$.jsonName=`[${d}]`,T=O.util.newFieldList([$]).list()[0]}return T},runtime:O}}function et(O){const d=O.field.localName,p=Object.create(null);return p[d]=dt(O),[p,()=>p[d]]}function dt(O){const d=O.field;if(d.repeated)return[];if(d.default!==void 0)return d.default;switch(d.kind){case"enum":return d.T.values[0].no;case"scalar":return qe(d.T,d.L);case"message":const p=d.T,y=new p;return p.fieldWrapper?p.fieldWrapper.unwrapField(y):y;case"map":throw"map fields are not allowed to be extensions"}}function At(O,d){if(!d.repeated&&(d.kind=="enum"||d.kind=="scalar")){for(let p=O.length-1;p>=0;--p)if(O[p].no==d.no)return[O[p]];return[]}return O.filter(p=>p.no===d.no)}let Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pe=[];for(let O=0;O>4,q=$,T=2;break;case 2:p[y++]=(q&15)<<4|($&60)>>2,q=$,T=3;break;case 3:p[y++]=(q&3)<<6|$,T=0;break}}if(T==1)throw Error("invalid base64 string.");return p.subarray(0,y)},enc(O){let d="",p=0,y,T=0;for(let $=0;$>2],T=(y&3)<<4,p=1;break;case 1:d+=Je[T|y>>4],T=(y&15)<<2,p=2;break;case 2:d+=Je[T|y>>6],d+=Je[y&63],p=0;break}return p&&(d+=Je[T],d+="=",p==1&&(d+="=")),d}};function he(O,d,p){We(d,O);const y=d.runtime.bin.makeReadOptions(p),T=At(O.getType().runtime.bin.listUnknownFields(O),d.field),[$,q]=et(d);for(const ne of T)d.runtime.bin.readField($,y.readerFactory(ne.data),d.field,ne.wireType,y);return q()}function je(O,d,p,y){We(d,O);const T=d.runtime.bin.makeReadOptions(y),$=d.runtime.bin.makeWriteOptions(y);if(Ze(O,d)){const Se=O.getType().runtime.bin.listUnknownFields(O).filter(ze=>ze.no!=d.field.no);O.getType().runtime.bin.discardUnknownFields(O);for(const ze of Se)O.getType().runtime.bin.onUnknownField(O,ze.no,ze.wireType,ze.data)}const q=$.writerFactory();let ne=d.field;!ne.opt&&!ne.repeated&&(ne.kind=="enum"||ne.kind=="scalar")&&(ne=Object.assign(Object.assign({},d.field),{opt:!0})),d.runtime.bin.writeField(ne,p,q,$);const me=T.readerFactory(q.finish());for(;me.posy.no==d.field.no)}function We(O,d){f(O.extendee.typeName==d.getType().typeName,`extension ${O.typeName} can only be applied to message ${O.extendee.typeName}`)}function fe(O,d){const p=O.localName;if(O.repeated)return d[p].length>0;if(O.oneof)return d[O.oneof.localName].case===p;switch(O.kind){case"enum":case"scalar":return O.opt||O.req?d[p]!==void 0:O.kind=="enum"?d[p]!==O.T.values[0].no:!st(O.T,d[p]);case"message":return d[p]!==void 0;case"map":return Object.keys(d[p]).length>0}}function xe(O,d){const p=O.localName,y=!O.opt&&!O.req;if(O.repeated)d[p]=[];else if(O.oneof)d[O.oneof.localName]={case:void 0};else switch(O.kind){case"map":d[p]={};break;case"enum":d[p]=y?O.T.values[0].no:void 0;break;case"scalar":d[p]=y?qe(O.T,O.L):void 0;break;case"message":d[p]=void 0;break}}function ve(O,d){if(O===null||typeof O!="object"||!Object.getOwnPropertyNames(F.prototype).every(y=>y in O&&typeof O[y]=="function"))return!1;const p=O.getType();return p===null||typeof p!="function"||!("typeName"in p)||typeof p.typeName!="string"?!1:d===void 0?!0:p.typeName==d.typeName}function De(O,d){return ve(d)||!O.fieldWrapper?d:O.fieldWrapper.wrapField(d)}ie.DOUBLE,ie.FLOAT,ie.INT64,ie.UINT64,ie.INT32,ie.UINT32,ie.BOOL,ie.STRING,ie.BYTES;const $e={ignoreUnknownFields:!1},vt={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Wt(O){return O?Object.assign(Object.assign({},$e),O):$e}function Kt(O){return O?Object.assign(Object.assign({},vt),O):vt}const gt=Symbol(),Gt=Symbol();function ut(){return{makeReadOptions:Wt,makeWriteOptions:Kt,readMessage(O,d,p,y){if(d==null||Array.isArray(d)||typeof d!="object")throw new Error(`cannot decode message ${O.typeName} from JSON: ${wt(d)}`);y=y??new O;const T=new Map,$=p.typeRegistry;for(const[q,ne]of Object.entries(d)){const me=O.fields.findJsonName(q);if(me){if(me.oneof){if(ne===null&&me.kind=="scalar")continue;const Se=T.get(me.oneof);if(Se!==void 0)throw new Error(`cannot decode message ${O.typeName} from JSON: multiple keys for oneof "${me.oneof.name}" present: "${Se}", "${q}"`);T.set(me.oneof,q)}Xt(y,ne,me,p,O)}else{let Se=!1;if($!=null&&$.findExtension&&q.startsWith("[")&&q.endsWith("]")){const ze=$.findExtension(q.substring(1,q.length-1));if(ze&&ze.extendee.typeName==O.typeName){Se=!0;const[Ct,St]=et(ze);Xt(Ct,ne,ze.field,p,ze),je(y,ze,St(),p)}}if(!Se&&!p.ignoreUnknownFields)throw new Error(`cannot decode message ${O.typeName} from JSON: key "${q}" is unknown`)}}return y},writeMessage(O,d){const p=O.getType(),y={};let T;try{for(T of p.fields.byNumber()){if(!fe(T,O)){if(T.req)throw"required field not set";if(!d.emitDefaultValues||!ar(T))continue}const q=T.oneof?O[T.oneof.localName].value:O[T.localName],ne=Ur(T,q,d);ne!==void 0&&(y[d.useProtoFieldName?T.name:T.jsonName]=ne)}const $=d.typeRegistry;if($!=null&&$.findExtensionFor)for(const q of p.runtime.bin.listUnknownFields(O)){const ne=$.findExtensionFor(p.typeName,q.no);if(ne&&Ze(O,ne)){const me=he(O,ne,d),Se=Ur(ne.field,me,d);Se!==void 0&&(y[ne.field.jsonName]=Se)}}}catch($){const q=T?`cannot encode field ${p.typeName}.${T.name} to JSON`:`cannot encode message ${p.typeName} to JSON`,ne=$ instanceof Error?$.message:String($);throw new Error(q+(ne.length>0?`: ${ne}`:""))}return y},readScalar(O,d,p){return $n(O,d,p??_e.BIGINT,!0)},writeScalar(O,d,p){if(d!==void 0&&(p||st(O,d)))return Ue(O,d)},debug:wt}}function wt(O){if(O===null)return"null";switch(typeof O){case"object":return Array.isArray(O)?"array":"object";case"string":return O.length>100?"string":`"${O.split('"').join('\\"')}"`;default:return String(O)}}function Xt(O,d,p,y,T){let $=p.localName;if(p.repeated){if(f(p.kind!="map"),d===null)return;if(!Array.isArray(d))throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(d)}`);const q=O[$];for(const ne of d){if(ne===null)throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(ne)}`);switch(p.kind){case"message":q.push(p.T.fromJson(ne,y));break;case"enum":const me=jn(p.T,ne,y.ignoreUnknownFields,!0);me!==Gt&&q.push(me);break;case"scalar":try{q.push($n(p.T,ne,p.L,!0))}catch(Se){let ze=`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(ne)}`;throw Se instanceof Error&&Se.message.length>0&&(ze+=`: ${Se.message}`),new Error(ze)}break}}}else if(p.kind=="map"){if(d===null)return;if(typeof d!="object"||Array.isArray(d))throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(d)}`);const q=O[$];for(const[ne,me]of Object.entries(d)){if(me===null)throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: map value null`);let Se;try{Se=Ln(p.K,ne)}catch(ze){let Ct=`cannot decode map key for field ${T.typeName}.${p.name} from JSON: ${wt(d)}`;throw ze instanceof Error&&ze.message.length>0&&(Ct+=`: ${ze.message}`),new Error(Ct)}switch(p.V.kind){case"message":q[Se]=p.V.T.fromJson(me,y);break;case"enum":const ze=jn(p.V.T,me,y.ignoreUnknownFields,!0);ze!==Gt&&(q[Se]=ze);break;case"scalar":try{q[Se]=$n(p.V.T,me,_e.BIGINT,!0)}catch(Ct){let St=`cannot decode map value for field ${T.typeName}.${p.name} from JSON: ${wt(d)}`;throw Ct instanceof Error&&Ct.message.length>0&&(St+=`: ${Ct.message}`),new Error(St)}break}}}else switch(p.oneof&&(O=O[p.oneof.localName]={case:$},$="value"),p.kind){case"message":const q=p.T;if(d===null&&q.typeName!="google.protobuf.Value")return;let ne=O[$];ve(ne)?ne.fromJson(d,y):(O[$]=ne=q.fromJson(d,y),q.fieldWrapper&&!p.oneof&&(O[$]=q.fieldWrapper.unwrapField(ne)));break;case"enum":const me=jn(p.T,d,y.ignoreUnknownFields,!1);switch(me){case gt:xe(p,O);break;case Gt:break;default:O[$]=me;break}break;case"scalar":try{const Se=$n(p.T,d,p.L,!1);switch(Se){case gt:xe(p,O);break;default:O[$]=Se;break}}catch(Se){let ze=`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(d)}`;throw Se instanceof Error&&Se.message.length>0&&(ze+=`: ${Se.message}`),new Error(ze)}break}}function Ln(O,d){if(O===ie.BOOL)switch(d){case"true":d=!0;break;case"false":d=!1;break}return $n(O,d,_e.BIGINT,!0).toString()}function $n(O,d,p,y){if(d===null)return y?qe(O,p):gt;switch(O){case ie.DOUBLE:case ie.FLOAT:if(d==="NaN")return Number.NaN;if(d==="Infinity")return Number.POSITIVE_INFINITY;if(d==="-Infinity")return Number.NEGATIVE_INFINITY;if(d===""||typeof d=="string"&&d.trim().length!==d.length||typeof d!="string"&&typeof d!="number")break;const T=Number(d);if(Number.isNaN(T)||!Number.isFinite(T))break;return O==ie.FLOAT&&k(T),T;case ie.INT32:case ie.FIXED32:case ie.SFIXED32:case ie.SINT32:case ie.UINT32:let $;if(typeof d=="number"?$=d:typeof d=="string"&&d.length>0&&d.trim().length===d.length&&($=Number(d)),$===void 0)break;return O==ie.UINT32||O==ie.FIXED32?x($):w($),$;case ie.INT64:case ie.SFIXED64:case ie.SINT64:if(typeof d!="number"&&typeof d!="string")break;const q=Oe.parse(d);return p?q.toString():q;case ie.FIXED64:case ie.UINT64:if(typeof d!="number"&&typeof d!="string")break;const ne=Oe.uParse(d);return p?ne.toString():ne;case ie.BOOL:if(typeof d!="boolean")break;return d;case ie.STRING:if(typeof d!="string")break;try{encodeURIComponent(d)}catch{throw new Error("invalid UTF8")}return d;case ie.BYTES:if(d==="")return new Uint8Array(0);if(typeof d!="string")break;return le.dec(d)}throw new Error}function jn(O,d,p,y){if(d===null)return O.typeName=="google.protobuf.NullValue"?0:y?O.values[0].no:gt;switch(typeof d){case"number":if(Number.isInteger(d))return d;break;case"string":const T=O.findName(d);if(T!==void 0)return T.no;if(p)return Gt;break}throw new Error(`cannot decode enum ${O.typeName} from JSON: ${wt(d)}`)}function ar(O){return O.repeated||O.kind=="map"?!0:!(O.oneof||O.kind=="message"||O.opt||O.req)}function Ur(O,d,p){if(O.kind=="map"){f(typeof d=="object"&&d!=null);const y={},T=Object.entries(d);switch(O.V.kind){case"scalar":for(const[q,ne]of T)y[q.toString()]=Ue(O.V.T,ne);break;case"message":for(const[q,ne]of T)y[q.toString()]=ne.toJson(p);break;case"enum":const $=O.V.T;for(const[q,ne]of T)y[q.toString()]=Me($,ne,p.enumAsInteger);break}return p.emitDefaultValues||T.length>0?y:void 0}if(O.repeated){f(Array.isArray(d));const y=[];switch(O.kind){case"scalar":for(let T=0;T0?y:void 0}switch(O.kind){case"scalar":return Ue(O.T,d);case"enum":return Me(O.T,d,p.enumAsInteger);case"message":return De(O.T,d).toJson(p)}}function Me(O,d,p){var y;if(f(typeof d=="number"),O.typeName=="google.protobuf.NullValue")return null;if(p)return d;const T=O.findNumber(d);return(y=T==null?void 0:T.name)!==null&&y!==void 0?y:d}function Ue(O,d){switch(O){case ie.INT32:case ie.SFIXED32:case ie.SINT32:case ie.FIXED32:case ie.UINT32:return f(typeof d=="number"),d;case ie.FLOAT:case ie.DOUBLE:return f(typeof d=="number"),Number.isNaN(d)?"NaN":d===Number.POSITIVE_INFINITY?"Infinity":d===Number.NEGATIVE_INFINITY?"-Infinity":d;case ie.STRING:return f(typeof d=="string"),d;case ie.BOOL:return f(typeof d=="boolean"),d;case ie.UINT64:case ie.FIXED64:case ie.INT64:case ie.SFIXED64:case ie.SINT64:return f(typeof d=="bigint"||typeof d=="string"||typeof d=="number"),d.toString();case ie.BYTES:return f(d instanceof Uint8Array),le.enc(d)}}const lt=Symbol("@bufbuild/protobuf/unknown-fields"),Nt={readUnknownFields:!0,readerFactory:O=>new Ve(O)},Qt={writeUnknownFields:!0,writerFactory:()=>new tt};function Hn(O){return O?Object.assign(Object.assign({},Nt),O):Nt}function yn(O){return O?Object.assign(Object.assign({},Qt),O):Qt}function rn(){return{makeReadOptions:Hn,makeWriteOptions:yn,listUnknownFields(O){var d;return(d=O[lt])!==null&&d!==void 0?d:[]},discardUnknownFields(O){delete O[lt]},writeUnknownFields(O,d){const y=O[lt];if(y)for(const T of y)d.tag(T.no,T.wireType).raw(T.data)},onUnknownField(O,d,p,y){const T=O;Array.isArray(T[lt])||(T[lt]=[]),T[lt].push({no:d,wireType:p,data:y})},readMessage(O,d,p,y,T){const $=O.getType(),q=T?d.len:d.pos+p;let ne,me;for(;d.pos0&&(me=Ye),$){let St=O[q];if(y==Pe.LengthDelimited&&ne!=ie.STRING&&ne!=ie.BYTES){let tn=d.uint32()+d.pos;for(;d.posve(St,Ct)?St:new Ct(St));else{const St=q[T];Ct.fieldWrapper?Ct.typeName==="google.protobuf.BytesValue"?$[T]=en(St):$[T]=St:$[T]=ve(St,Ct)?St:new Ct(St)}break}}},equals(O,d,p){return d===p?!0:!d||!p?!1:O.fields.byMember().every(y=>{const T=d[y.localName],$=p[y.localName];if(y.repeated){if(T.length!==$.length)return!1;switch(y.kind){case"message":return T.every((q,ne)=>y.T.equals(q,$[ne]));case"scalar":return T.every((q,ne)=>Ie(y.T,q,$[ne]));case"enum":return T.every((q,ne)=>Ie(ie.INT32,q,$[ne]))}throw new Error(`repeated cannot contain ${y.kind}`)}switch(y.kind){case"message":return y.T.equals(T,$);case"enum":return Ie(ie.INT32,T,$);case"scalar":return Ie(y.T,T,$);case"oneof":if(T.case!==$.case)return!1;const q=y.findField(T.case);if(q===void 0)return!0;switch(q.kind){case"message":return q.T.equals(T.value,$.value);case"enum":return Ie(ie.INT32,T.value,$.value);case"scalar":return Ie(q.T,T.value,$.value)}throw new Error(`oneof cannot contain ${q.kind}`);case"map":const ne=Object.keys(T).concat(Object.keys($));switch(y.V.kind){case"message":const me=y.V.T;return ne.every(ze=>me.equals(T[ze],$[ze]));case"enum":return ne.every(ze=>Ie(ie.INT32,T[ze],$[ze]));case"scalar":const Se=y.V.T;return ne.every(ze=>Ie(Se,T[ze],$[ze]))}break}})},clone(O){const d=O.getType(),p=new d,y=p;for(const T of d.fields.byMember()){const $=O[T.localName];let q;if(T.repeated)q=$.map(Dt);else if(T.kind=="map"){q=y[T.localName];for(const[ne,me]of Object.entries($))q[ne]=Dt(me)}else T.kind=="oneof"?q=T.findField($.case)?{case:$.case,value:Dt($.value)}:{case:void 0}:q=Dt($);y[T.localName]=q}for(const T of d.runtime.bin.listUnknownFields(O))d.runtime.bin.onUnknownField(y,T.no,T.wireType,T.data);return p}}}function Dt(O){if(O===void 0)return O;if(ve(O))return O.clone();if(O instanceof Uint8Array){const d=new Uint8Array(O.byteLength);return d.set(O),d}return O}function en(O){return O instanceof Uint8Array?O:new Uint8Array(O)}function Vn(O,d,p){return{syntax:O,json:ut(),bin:rn(),util:Object.assign(Object.assign({},Be()),{newFieldList:d,initFields:p}),makeMessageType(y,T,$){return W(this,y,T,$)},makeEnum:B,makeEnumType:D,getEnumType:R,makeExtension(y,T,$){return Xe(this,y,T,$)}}}class Zr{constructor(d,p){this._fields=d,this._normalizer=p}findJsonName(d){if(!this.jsonNames){const p={};for(const y of this.list())p[y.jsonName]=p[y.name]=y;this.jsonNames=p}return this.jsonNames[d]}find(d){if(!this.numbers){const p={};for(const y of this.list())p[y.no]=y;this.numbers=p}return this.numbers[d]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((d,p)=>d.no-p.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const d=this.members;let p;for(const y of this.list())y.oneof?y.oneof!==p&&(p=y.oneof,d.push(p)):d.push(y)}return this.members}}function Er(O,d){const p=ti(O);return d?p:V1(H1(p))}function In(O){return Er(O,!1)}const Wn=ti;function ti(O){let d=!1;const p=[];for(let y=0;y`${O}$`,H1=O=>Fc.has(O)?kp(O):O,V1=O=>qa.has(O)?kp(O):O;class W1{constructor(d){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=d,this.localName=In(d)}addField(d){f(d.oneof===this,`field ${d.name} not one of ${this.name}`),this.fields.push(d)}findField(d){if(!this._lookup){this._lookup=Object.create(null);for(let p=0;pnew Zr(O,d=>Q1(d,!0)),O=>{for(const d of O.getType().fields.byMember()){if(d.opt)continue;const p=d.localName,y=O;if(d.repeated){y[p]=[];continue}switch(d.kind){case"oneof":y[p]={case:void 0};break;case"enum":y[p]=0;break;case"map":y[p]={};break;case"scalar":y[p]=qe(d.T,d.L);break}}});var Rs;(function(O){O[O.Unary=0]="Unary",O[O.ServerStreaming=1]="ServerStreaming",O[O.ClientStreaming=2]="ClientStreaming",O[O.BiDiStreaming=3]="BiDiStreaming"})(Rs||(Rs={}));var uk;(function(O){O[O.NoSideEffects=1]="NoSideEffects",O[O.Idempotent=2]="Idempotent"})(uk||(uk={}));class ds extends F{constructor(d){super(),this.seconds=Oe.zero,this.nanos=0,rt.util.initPartial(d,this)}fromJson(d,p){if(typeof d!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${rt.json.debug(d)}`);const y=d.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!y)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const T=Date.parse(y[1]+"-"+y[2]+"-"+y[3]+"T"+y[4]+":"+y[5]+":"+y[6]+(y[8]?y[8]:"Z"));if(Number.isNaN(T))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(TDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=Oe.parse(T/1e3),this.nanos=0,y[7]&&(this.nanos=parseInt("1"+y[7]+"0".repeat(9-y[7].length))-1e9),this}toJson(d){const p=Number(this.seconds)*1e3;if(pDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let y="Z";if(this.nanos>0){const T=(this.nanos+1e9).toString().substring(1);T.substring(3)==="000000"?y="."+T.substring(0,3)+"Z":T.substring(6)==="000"?y="."+T.substring(0,6)+"Z":y="."+T+"Z"}return new Date(p).toISOString().replace(".000Z",y)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return ds.fromDate(new Date)}static fromDate(d){const p=d.getTime();return new ds({seconds:Oe.parse(Math.floor(p/1e3)),nanos:p%1e3*1e6})}static fromBinary(d,p){return new ds().fromBinary(d,p)}static fromJson(d,p){return new ds().fromJson(d,p)}static fromJsonString(d,p){return new ds().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(ds,d,p)}}ds.runtime=rt,ds.typeName="google.protobuf.Timestamp",ds.fields=rt.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Lu extends F{constructor(d){super(),this.seconds=Oe.zero,this.nanos=0,rt.util.initPartial(d,this)}fromJson(d,p){if(typeof d!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${rt.json.debug(d)}`);const y=d.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(y===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${rt.json.debug(d)}`);const T=Number(y[1]);if(T>315576e6||T<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${rt.json.debug(d)}`);if(this.seconds=Oe.parse(T),typeof y[2]=="string"){const $=y[2]+"0".repeat(9-y[2].length);this.nanos=parseInt($),(T<0||Object.is(T,-0))&&(this.nanos=-this.nanos)}return this}toJson(d){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let p=this.seconds.toString();if(this.nanos!==0){let y=Math.abs(this.nanos).toString();y="0".repeat(9-y.length)+y,y.substring(3)==="000000"?y=y.substring(0,3):y.substring(6)==="000"&&(y=y.substring(0,6)),p+="."+y,this.nanos<0&&Number(this.seconds)==0&&(p="-"+p)}return p+"s"}static fromBinary(d,p){return new Lu().fromBinary(d,p)}static fromJson(d,p){return new Lu().fromJson(d,p)}static fromJsonString(d,p){return new Lu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Lu,d,p)}}Lu.runtime=rt,Lu.typeName="google.protobuf.Duration",Lu.fields=rt.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Nl extends F{constructor(d){super(),this.typeUrl="",this.value=new Uint8Array(0),rt.util.initPartial(d,this)}toJson(d){var p;if(this.typeUrl==="")return{};const y=this.typeUrlToName(this.typeUrl),T=(p=d==null?void 0:d.typeRegistry)===null||p===void 0?void 0:p.findMessage(y);if(!T)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let q=T.fromBinary(this.value).toJson(d);return(y.startsWith("google.protobuf.")||q===null||Array.isArray(q)||typeof q!="object")&&(q={value:q}),q["@type"]=this.typeUrl,q}fromJson(d,p){var y;if(d===null||Array.isArray(d)||typeof d!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${d===null?"null":Array.isArray(d)?"array":typeof d}`);if(Object.keys(d).length==0)return this;const T=d["@type"];if(typeof T!="string"||T=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const $=this.typeUrlToName(T),q=(y=p==null?void 0:p.typeRegistry)===null||y===void 0?void 0:y.findMessage($);if(!q)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${T} is not in the type registry`);let ne;if($.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(d,"value"))ne=q.fromJson(d.value,p);else{const me=Object.assign({},d);delete me["@type"],ne=q.fromJson(me,p)}return this.packFrom(ne),this}packFrom(d){this.value=d.toBinary(),this.typeUrl=this.typeNameToUrl(d.getType().typeName)}unpackTo(d){return this.is(d.getType())?(d.fromBinary(this.value),!0):!1}unpack(d){if(this.typeUrl==="")return;const p=d.findMessage(this.typeUrlToName(this.typeUrl));if(p)return p.fromBinary(this.value)}is(d){if(this.typeUrl==="")return!1;const p=this.typeUrlToName(this.typeUrl);let y="";return typeof d=="string"?y=d:y=d.typeName,p===y}typeNameToUrl(d){return`type.googleapis.com/${d}`}typeUrlToName(d){if(!d.length)throw new Error(`invalid type url: ${d}`);const p=d.lastIndexOf("/"),y=p>=0?d.substring(p+1):d;if(!y.length)throw new Error(`invalid type url: ${d}`);return y}static pack(d){const p=new Nl;return p.packFrom(d),p}static fromBinary(d,p){return new Nl().fromBinary(d,p)}static fromJson(d,p){return new Nl().fromJson(d,p)}static fromJsonString(d,p){return new Nl().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Nl,d,p)}}Nl.runtime=rt,Nl.typeName="google.protobuf.Any",Nl.fields=rt.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class Pl extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.DOUBLE,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.DOUBLE,d)}catch(y){let T='cannot decode message google.protobuf.DoubleValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Pl().fromBinary(d,p)}static fromJson(d,p){return new Pl().fromJson(d,p)}static fromJsonString(d,p){return new Pl().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Pl,d,p)}}Pl.runtime=rt,Pl.typeName="google.protobuf.DoubleValue",Pl.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Pl.fieldWrapper={wrapField(O){return new Pl({value:O})},unwrapField(O){return O.value}};class el extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.FLOAT,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.FLOAT,d)}catch(y){let T='cannot decode message google.protobuf.FloatValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new el().fromBinary(d,p)}static fromJson(d,p){return new el().fromJson(d,p)}static fromJsonString(d,p){return new el().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(el,d,p)}}el.runtime=rt,el.typeName="google.protobuf.FloatValue",el.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),el.fieldWrapper={wrapField(O){return new el({value:O})},unwrapField(O){return O.value}};class $u extends F{constructor(d){super(),this.value=Oe.zero,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.INT64,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.INT64,d)}catch(y){let T='cannot decode message google.protobuf.Int64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new $u().fromBinary(d,p)}static fromJson(d,p){return new $u().fromJson(d,p)}static fromJsonString(d,p){return new $u().fromJsonString(d,p)}static equals(d,p){return rt.util.equals($u,d,p)}}$u.runtime=rt,$u.typeName="google.protobuf.Int64Value",$u.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),$u.fieldWrapper={wrapField(O){return new $u({value:O})},unwrapField(O){return O.value}};class Ml extends F{constructor(d){super(),this.value=Oe.zero,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.UINT64,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.UINT64,d)}catch(y){let T='cannot decode message google.protobuf.UInt64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Ml().fromBinary(d,p)}static fromJson(d,p){return new Ml().fromJson(d,p)}static fromJsonString(d,p){return new Ml().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Ml,d,p)}}Ml.runtime=rt,Ml.typeName="google.protobuf.UInt64Value",Ml.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),Ml.fieldWrapper={wrapField(O){return new Ml({value:O})},unwrapField(O){return O.value}};class ko extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.INT32,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.INT32,d)}catch(y){let T='cannot decode message google.protobuf.Int32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new ko().fromBinary(d,p)}static fromJson(d,p){return new ko().fromJson(d,p)}static fromJsonString(d,p){return new ko().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(ko,d,p)}}ko.runtime=rt,ko.typeName="google.protobuf.Int32Value",ko.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),ko.fieldWrapper={wrapField(O){return new ko({value:O})},unwrapField(O){return O.value}};class Ll extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.UINT32,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.UINT32,d)}catch(y){let T='cannot decode message google.protobuf.UInt32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Ll().fromBinary(d,p)}static fromJson(d,p){return new Ll().fromJson(d,p)}static fromJsonString(d,p){return new Ll().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Ll,d,p)}}Ll.runtime=rt,Ll.typeName="google.protobuf.UInt32Value",Ll.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Ll.fieldWrapper={wrapField(O){return new Ll({value:O})},unwrapField(O){return O.value}};class Fu extends F{constructor(d){super(),this.value=!1,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.BOOL,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.BOOL,d)}catch(y){let T='cannot decode message google.protobuf.BoolValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Fu().fromBinary(d,p)}static fromJson(d,p){return new Fu().fromJson(d,p)}static fromJsonString(d,p){return new Fu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Fu,d,p)}}Fu.runtime=rt,Fu.typeName="google.protobuf.BoolValue",Fu.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Fu.fieldWrapper={wrapField(O){return new Fu({value:O})},unwrapField(O){return O.value}};class to extends F{constructor(d){super(),this.value="",rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.STRING,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.STRING,d)}catch(y){let T='cannot decode message google.protobuf.StringValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new to().fromBinary(d,p)}static fromJson(d,p){return new to().fromJson(d,p)}static fromJsonString(d,p){return new to().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(to,d,p)}}to.runtime=rt,to.typeName="google.protobuf.StringValue",to.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),to.fieldWrapper={wrapField(O){return new to({value:O})},unwrapField(O){return O.value}};class $l extends F{constructor(d){super(),this.value=new Uint8Array(0),rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.BYTES,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.BYTES,d)}catch(y){let T='cannot decode message google.protobuf.BytesValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new $l().fromBinary(d,p)}static fromJson(d,p){return new $l().fromJson(d,p)}static fromJsonString(d,p){return new $l().fromJsonString(d,p)}static equals(d,p){return rt.util.equals($l,d,p)}}$l.runtime=rt,$l.typeName="google.protobuf.BytesValue",$l.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),$l.fieldWrapper={wrapField(O){return new $l({value:O})},unwrapField(O){return O.value}};function aS(O,d,p){try{const y=le.dec(O);return d?d.fromBinary(y,p):y}catch(y){throw u.from(y,o.DataLoss)}}function S6(O,d){const p={};for(const[y,T]of Object.entries(O.methods)){const $=d(Object.assign(Object.assign({},T),{localName:y,service:O}));$!=null&&(p[y]=$)}return p}function sS(O){let d,p=new Uint8Array(0);function y(T){const $=new Uint8Array(p.length+T.length);$.set(p),$.set(T,p.length),p=$}return new ReadableStream({start(){d=O.getReader()},async pull(T){let $;for(;;){if($===void 0&&p.byteLength>=5){let me=0;for(let Se=1;Se<5;Se++)me=(me<<8)+p[Se];$={flags:p[0],length:me}}if($!==void 0&&p.byteLength>=$.length+5)break;const ne=await d.read();if(ne.done)break;y(ne.value)}if($===void 0){if(p.byteLength==0){T.close();return}T.error(new u("premature end of stream",o.DataLoss));return}const q=p.subarray(5,5+$.length);p=p.subarray(5+$.length),T.enqueue({flags:$.flags,data:q})}})}function q1(O,d){const p=new Uint8Array(d.length+5);p.set(d,5);const y=new DataView(p.buffer,p.byteOffset,p.byteLength);return y.setUint8(0,O),y.setUint32(1,d.length),p}var oS=globalThis&&globalThis.__asyncValues||function(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=O[Symbol.asyncIterator],p;return d?d.call(O):(O=typeof __values=="function"?__values(O):O[Symbol.iterator](),p={},y("next"),y("throw"),y("return"),p[Symbol.asyncIterator]=function(){return this},p);function y($){p[$]=O[$]&&function(q){return new Promise(function(ne,me){q=O[$](q),T(ne,me,q.done,q.value)})}}function T($,q,ne,me){Promise.resolve(me).then(function(Se){$({value:Se,done:ne})},q)}},Bu=globalThis&&globalThis.__await||function(O){return this instanceof Bu?(this.v=O,this):new Bu(O)},ck=globalThis&&globalThis.__asyncGenerator||function(O,d,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=p.apply(O,d||[]),T,$=[];return T={},ne("next"),ne("throw"),ne("return",q),T[Symbol.asyncIterator]=function(){return this},T;function q(mt){return function(tn){return Promise.resolve(tn).then(mt,Ct)}}function ne(mt,tn){y[mt]&&(T[mt]=function(Bn){return new Promise(function(kn,hr){$.push([mt,Bn,kn,hr])>1||me(mt,Bn)})},tn&&(T[mt]=tn(T[mt])))}function me(mt,tn){try{Se(y[mt](tn))}catch(Bn){St($[0][3],Bn)}}function Se(mt){mt.value instanceof Bu?Promise.resolve(mt.value.v).then(ze,Ct):St($[0][2],mt)}function ze(mt){me("next",mt)}function Ct(mt){me("throw",mt)}function St(mt,tn){mt(tn),$.shift(),$.length&&me($[0][0],$[0][1])}},dk=globalThis&&globalThis.__asyncDelegator||function(O){var d,p;return d={},y("next"),y("throw",function(T){throw T}),y("return"),d[Symbol.iterator]=function(){return this},d;function y(T,$){d[T]=O[T]?function(q){return(p=!p)?{value:Bu(O[T](q)),done:!1}:$?$(q):q}:$}};function E6(O){return ck(this,arguments,function*(){yield Bu(yield*dk(oS(O)))})}var lS=globalThis&&globalThis.__asyncValues||function(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=O[Symbol.asyncIterator],p;return d?d.call(O):(O=typeof __values=="function"?__values(O):O[Symbol.iterator](),p={},y("next"),y("throw"),y("return"),p[Symbol.asyncIterator]=function(){return this},p);function y($){p[$]=O[$]&&function(q){return new Promise(function(ne,me){q=O[$](q),T(ne,me,q.done,q.value)})}}function T($,q,ne,me){Promise.resolve(me).then(function(Se){$({value:Se,done:ne})},q)}},ih=globalThis&&globalThis.__await||function(O){return this instanceof ih?(this.v=O,this):new ih(O)},fk=globalThis&&globalThis.__asyncDelegator||function(O){var d,p;return d={},y("next"),y("throw",function(T){throw T}),y("return"),d[Symbol.iterator]=function(){return this},d;function y(T,$){d[T]=O[T]?function(q){return(p=!p)?{value:ih(O[T](q)),done:!1}:$?$(q):q}:$}},hk=globalThis&&globalThis.__asyncGenerator||function(O,d,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=p.apply(O,d||[]),T,$=[];return T={},ne("next"),ne("throw"),ne("return",q),T[Symbol.asyncIterator]=function(){return this},T;function q(mt){return function(tn){return Promise.resolve(tn).then(mt,Ct)}}function ne(mt,tn){y[mt]&&(T[mt]=function(Bn){return new Promise(function(kn,hr){$.push([mt,Bn,kn,hr])>1||me(mt,Bn)})},tn&&(T[mt]=tn(T[mt])))}function me(mt,tn){try{Se(y[mt](tn))}catch(Bn){St($[0][3],Bn)}}function Se(mt){mt.value instanceof ih?Promise.resolve(mt.value.v).then(ze,Ct):St($[0][2],mt)}function ze(mt){me("next",mt)}function Ct(mt){me("throw",mt)}function St(mt,tn){mt(tn),$.shift(),$.length&&me($[0][0],$[0][1])}};function w6(O,d){return S6(O,p=>{switch(p.kind){case Rs.Unary:return x6(d,O,p);case Rs.ServerStreaming:return T6(d,O,p);case Rs.ClientStreaming:return pk(d,O,p);case Rs.BiDiStreaming:return k6(d,O,p);default:return null}})}function x6(O,d,p){return async function(y,T){var $,q;const ne=await O.unary(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues);return($=T==null?void 0:T.onHeader)===null||$===void 0||$.call(T,ne.header),(q=T==null?void 0:T.onTrailer)===null||q===void 0||q.call(T,ne.trailer),ne.message}}function T6(O,d,p){return function(y,T){return mk(O.stream(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,E6([y]),T==null?void 0:T.contextValues),T)}}function pk(O,d,p){return async function(y,T){var $,q,ne,me,Se,ze;const Ct=await O.stream(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues);(Se=T==null?void 0:T.onHeader)===null||Se===void 0||Se.call(T,Ct.header);let St;try{for(var mt=!0,tn=lS(Ct.message),Bn;Bn=await tn.next(),$=Bn.done,!$;mt=!0)me=Bn.value,mt=!1,St=me}catch(kn){q={error:kn}}finally{try{!mt&&!$&&(ne=tn.return)&&await ne.call(tn)}finally{if(q)throw q.error}}if(!St)throw new u("protocol error: missing response message",o.Internal);return(ze=T==null?void 0:T.onTrailer)===null||ze===void 0||ze.call(T,Ct.trailer),St}}function k6(O,d,p){return function(y,T){return mk(O.stream(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues),T)}}function mk(O,d){const p=function(){var y,T;return hk(this,arguments,function*(){const $=yield ih(O);(y=d==null?void 0:d.onHeader)===null||y===void 0||y.call(d,$.header),yield ih(yield*fk(lS($.message))),(T=d==null?void 0:d.onTrailer)===null||T===void 0||T.call(d,$.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>p.next()})}}function C6(...O){const d=new AbortController,p=O.filter(T=>T!==void 0).concat(d.signal);for(const T of p){if(T.aborted){y.apply(T);break}T.addEventListener("abort",y)}function y(){d.signal.aborted||d.abort(G1(this));for(const T of p)T.removeEventListener("abort",y)}return d}function A6(O){const d=new AbortController,p=()=>{d.abort(new u("the operation timed out",o.DeadlineExceeded))};let y;return O!==void 0&&(O<=0?p():y=setTimeout(p,O)),{signal:d.signal,cleanup:()=>clearTimeout(y)}}function G1(O){if(!O.aborted)return;if(O.reason!==void 0)return O.reason;const d=new Error("This operation was aborted");return d.name="AbortError",d}function gk(){return{get(O){return O.id in this?this[O.id]:O.defaultValue},set(O,d){return this[O.id]=d,this},delete(O){return delete this[O.id],this}}}const uS=128;function bk(O){const d=new Headers,p=new TextDecoder().decode(O).split(`\r -`);for(const y of p){if(y==="")continue;const T=y.indexOf(":");if(T>0){const $=y.substring(0,T).trim(),q=y.substring(T+1).trim();d.append($,q)}}return d}const _6="Content-Type",R6="Grpc-Timeout",gi="Grpc-Status",di="Grpc-Message",I6="Grpc-Status-Details-Bin",D6="User-Agent",N6="X-User-Agent",P6="X-Grpc-Web",M6="application/grpc-web+proto",L6="application/grpc-web+json";class Uu extends F{constructor(d){super(),this.code=0,this.message="",this.details=[],rt.util.initPartial(d,this)}static fromBinary(d,p){return new Uu().fromBinary(d,p)}static fromJson(d,p){return new Uu().fromJson(d,p)}static fromJsonString(d,p){return new Uu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Uu,d,p)}}Uu.runtime=rt,Uu.typeName="google.rpc.Status",Uu.fields=rt.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Nl,repeated:!0}]);const $6="0";function Ba(O){var d;const p=O.get(I6);if(p!=null){const T=aS(p,Uu);if(T.code==0)return;const $=new u(T.message,T.code,O);return $.details=T.details.map(q=>({type:q.typeUrl.substring(q.typeUrl.lastIndexOf("/")+1),value:q.value})),$}const y=O.get(gi);if(y!=null){if(y===$6)return;const T=parseInt(y,10);return T in o?new u(decodeURIComponent((d=O.get(di))!==null&&d!==void 0?d:""),T,O):new u(`invalid grpc-status: ${y}`,o.Internal,O)}}function Y1(O,d,p){const y=typeof d=="string"?d:d.typeName,T=typeof p=="string"?p:p.name;return O.toString().replace(/\/?$/,`/${y}/${T}`)}function Ld(O,d){return d instanceof O?d:new O(d)}function yk(O,d){function p(y){return y.done===!0?y:{done:y.done,value:Ld(O,y.value)}}return{[Symbol.asyncIterator](){const y=d[Symbol.asyncIterator](),T={next:()=>y.next().then(p)};return y.throw!==void 0&&(T.throw=$=>y.throw($).then(p)),y.return!==void 0&&(T.return=$=>y.return($).then(p)),T}}}function Z1(O,d){var p;return(p=d==null?void 0:d.concat().reverse().reduce((y,T)=>T(y),O))!==null&&p!==void 0?p:O}function tl(O){var d;const p=Object.assign({},O);return(d=p.ignoreUnknownFields)!==null&&d!==void 0||(p.ignoreUnknownFields=!0),p}function cS(O,d,p,y){const T=d?dS(O.I,y):fS(O.I,p);return{parse:(d?dS(O.O,y):fS(O.O,p)).parse,serialize:T.serialize}}function dS(O,d){return{parse(p){try{return O.fromBinary(p,d)}catch(y){const T=y instanceof Error?y.message:String(y);throw new u(`parse binary: ${T}`,o.InvalidArgument)}},serialize(p){try{return p.toBinary(d)}catch(y){const T=y instanceof Error?y.message:String(y);throw new u(`serialize binary: ${T}`,o.Internal)}}}}function fS(O,d){var p,y;const T=(p=d==null?void 0:d.textEncoder)!==null&&p!==void 0?p:new TextEncoder,$=(y=d==null?void 0:d.textDecoder)!==null&&y!==void 0?y:new TextDecoder,q=tl(d);return{parse(ne){try{const me=$.decode(ne);return O.fromJsonString(me,q)}catch(me){throw u.from(me,o.InvalidArgument)}},serialize(ne){try{const me=ne.toJsonString(q);return T.encode(me)}catch(me){throw u.from(me,o.Internal)}}}}function vk(O){const d=Z1(O.next,O.interceptors),[p,y,T]=hS(O),$=Object.assign(Object.assign({},O.req),{message:Ld(O.req.method.I,O.req.message),signal:p});return d($).then(q=>(T(),q),y)}function Ok(O){const d=Z1(O.next,O.interceptors),[p,y,T]=hS(O),$=Object.assign(Object.assign({},O.req),{message:yk(O.req.method.I,O.req.message),signal:p});let q=!1;return p.addEventListener("abort",function(){var ne,me;const Se=O.req.message[Symbol.asyncIterator]();q||(ne=Se.throw)===null||ne===void 0||ne.call(Se,this.reason).catch(()=>{}),(me=Se.return)===null||me===void 0||me.call(Se).catch(()=>{})}),d($).then(ne=>Object.assign(Object.assign({},ne),{message:{[Symbol.asyncIterator](){const me=ne.message[Symbol.asyncIterator]();return{next(){return me.next().then(Se=>(Se.done==!0&&(q=!0,T()),Se),y)}}}}}),y)}function hS(O){const{signal:d,cleanup:p}=A6(O.timeoutMs),y=C6(O.signal,d);return[y.signal,function($){const q=u.from(d.aborted?G1(d):$);return y.abort(q),p(),Promise.reject(q)},function(){p(),y.abort()}]}function Co(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function Sk(O,d){const p=Ba(O);if(p)throw d.forEach((y,T)=>{p.metadata.append(T,y)}),p}function Ao(O,d,p,y){const T=new Headers(p??{});return T.set(_6,O?M6:L6),T.set(P6,"1"),T.set(N6,"connect-es/1.4.0"),y&&T.set(D6,"connect-es/1.4.0"),d!==void 0&&T.set(R6,`${d}m`),T}function F6(O){switch(O){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function pS(O,d){var p;if(O>=200&&O<300){const y=Ba(d);if(y)throw y;return{foundStatus:d.has(gi)}}throw new u(decodeURIComponent((p=d.get(di))!==null&&p!==void 0?p:`HTTP ${O}`),F6(O),d)}var no=globalThis&&globalThis.__await||function(O){return this instanceof no?(this.v=O,this):new no(O)},X1=globalThis&&globalThis.__asyncGenerator||function(O,d,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=p.apply(O,d||[]),T,$=[];return T={},ne("next"),ne("throw"),ne("return",q),T[Symbol.asyncIterator]=function(){return this},T;function q(mt){return function(tn){return Promise.resolve(tn).then(mt,Ct)}}function ne(mt,tn){y[mt]&&(T[mt]=function(Bn){return new Promise(function(kn,hr){$.push([mt,Bn,kn,hr])>1||me(mt,Bn)})},tn&&(T[mt]=tn(T[mt])))}function me(mt,tn){try{Se(y[mt](tn))}catch(Bn){St($[0][3],Bn)}}function Se(mt){mt.value instanceof no?Promise.resolve(mt.value.v).then(ze,Ct):St($[0][2],mt)}function ze(mt){me("next",mt)}function Ct(mt){me("throw",mt)}function St(mt,tn){mt(tn),$.shift(),$.length&&me($[0][0],$[0][1])}};function mS(O){var d;Co();const p=(d=O.useBinaryFormat)!==null&&d!==void 0?d:!0;return{async unary(y,T,$,q,ne,me,Se){var ze;const{serialize:Ct,parse:St}=cS(T,p,O.jsonOptions,O.binaryOptions);return q=q===void 0?O.defaultTimeoutMs:q<=0?void 0:q,await vk({interceptors:O.interceptors,signal:$,timeoutMs:q,req:{stream:!1,service:y,method:T,url:Y1(O.baseUrl,y,T),init:{method:"POST",credentials:(ze=O.credentials)!==null&&ze!==void 0?ze:"same-origin",redirect:"error",mode:"cors"},header:Ao(p,q,ne,!1),contextValues:Se??gk(),message:me},next:async mt=>{var tn;const kn=await((tn=O.fetch)!==null&&tn!==void 0?tn:globalThis.fetch)(mt.url,Object.assign(Object.assign({},mt.init),{headers:mt.header,signal:mt.signal,body:q1(0,Ct(mt.message))}));if(pS(kn.status,kn.headers),!kn.body)throw"missing response body";const hr=sS(kn.body).getReader();let Oi,Cr;for(;;){const qr=await hr.read();if(qr.done)break;const{flags:oi,data:$r}=qr.value;if(oi===uS){if(Oi!==void 0)throw"extra trailer";Oi=bk($r);continue}if(Cr!==void 0)throw"extra message";Cr=St($r)}if(Oi===void 0)throw"missing trailer";if(Sk(Oi,kn.headers),Cr===void 0)throw"missing message";return{stream:!1,service:y,method:T,header:kn.headers,message:Cr,trailer:Oi}}})},async stream(y,T,$,q,ne,me,Se){var ze;const{serialize:Ct,parse:St}=cS(T,p,O.jsonOptions,O.binaryOptions);function mt(Bn,kn,hr,Oi){return X1(this,arguments,function*(){const qr=sS(Bn).getReader();if(kn){if(!(yield no(qr.read())).done)throw"extra data for trailers-only";return yield no(void 0)}let oi=!1;for(;;){const $r=yield no(qr.read());if($r.done)break;const{flags:Mo,data:bh}=$r.value;if((Mo&uS)===uS){if(oi)throw"extra trailer";oi=!0;const Wp=bk(bh);Sk(Wp,Oi),Wp.forEach((vD,OD)=>hr.set(OD,vD));continue}if(oi)throw"extra message";yield yield no(St(bh))}if(!oi)throw"missing trailer"})}async function tn(Bn){if(T.kind!=Rs.ServerStreaming)throw"The fetch API does not support streaming request bodies";const kn=await Bn[Symbol.asyncIterator]().next();if(kn.done==!0)throw"missing request message";return q1(0,Ct(kn.value))}return q=q===void 0?O.defaultTimeoutMs:q<=0?void 0:q,Ok({interceptors:O.interceptors,signal:$,timeoutMs:q,req:{stream:!0,service:y,method:T,url:Y1(O.baseUrl,y,T),init:{method:"POST",credentials:(ze=O.credentials)!==null&&ze!==void 0?ze:"same-origin",redirect:"error",mode:"cors"},header:Ao(p,q,ne,!1),contextValues:Se??gk(),message:me},next:async Bn=>{var kn;const Oi=await((kn=O.fetch)!==null&&kn!==void 0?kn:globalThis.fetch)(Bn.url,Object.assign(Object.assign({},Bn.init),{headers:Bn.header,signal:Bn.signal,body:await tn(Bn.message)})),{foundStatus:Cr}=pS(Oi.status,Oi.headers);if(!Oi.body)throw"missing response body";const qr=new Headers;return Object.assign(Object.assign({},Bn),{header:Oi.headers,trailer:qr,message:mt(Oi.body,Cr,qr,Oi.headers)})}})}}}const vn=rt.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),Fl=rt.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),gS=rt.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:ro},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:zu}}]),Bc=rt.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:$0},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:K1,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:Dn},{no:6,name:"is_removed",kind:"scalar",T:8}]),K1=rt.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:J1},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:bS,repeated:!0},{no:4,name:"presence_change",kind:"message",T:L0}]),J1=rt.makeMessageType("yorkie.v1.ChangeID",()=>[{no:1,name:"client_seq",kind:"scalar",T:13},{no:2,name:"server_seq",kind:"scalar",T:3,L:1},{no:3,name:"lamport",kind:"scalar",T:3,L:1},{no:4,name:"actor_id",kind:"scalar",T:12}]),bS=rt.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:Ek,oneof:"body"},{no:2,name:"add",kind:"message",T:yS,oneof:"body"},{no:3,name:"move",kind:"message",T:P0,oneof:"body"},{no:4,name:"remove",kind:"message",T:ah,oneof:"body"},{no:5,name:"edit",kind:"message",T:wk,oneof:"body"},{no:6,name:"select",kind:"message",T:xk,oneof:"body"},{no:7,name:"style",kind:"message",T:vS,oneof:"body"},{no:8,name:"increase",kind:"message",T:eb,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:tb,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:OS,oneof:"body"}]),Ek=rt.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:Uc},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Set"}),yS=rt.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"prev_created_at",kind:"message",T:Dn},{no:3,name:"value",kind:"message",T:Uc},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Add"}),P0=rt.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"prev_created_at",kind:"message",T:Dn},{no:3,name:"created_at",kind:"message",T:Dn},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Move"}),ah=rt.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Remove"}),wk=rt.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:sh},{no:3,name:"to",kind:"message",T:sh},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:Dn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),xk=rt.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:sh},{no:3,name:"to",kind:"message",T:sh},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Select"}),vS=rt.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:sh},{no:3,name:"to",kind:"message",T:sh},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:Dn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}}],{localName:"Operation_Style"}),eb=rt.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"value",kind:"message",T:Uc},{no:3,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Increase"}),tb=rt.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:M0},{no:3,name:"to",kind:"message",T:M0},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}},{no:5,name:"contents",kind:"message",T:Ck,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_TreeEdit"}),OS=rt.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:M0},{no:3,name:"to",kind:"message",T:M0},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:Dn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}}],{localName:"Operation_TreeStyle"}),Uc=rt.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"moved_at",kind:"message",T:Dn},{no:3,name:"removed_at",kind:"message",T:Dn},{no:4,name:"type",kind:"enum",T:rt.getEnumType(vn)},{no:5,name:"value",kind:"scalar",T:12}]),ro=rt.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:nb,oneof:"body"},{no:2,name:"json_array",kind:"message",T:Tk,oneof:"body"},{no:3,name:"primitive",kind:"message",T:SS,oneof:"body"},{no:5,name:"text",kind:"message",T:io,oneof:"body"},{no:6,name:"counter",kind:"message",T:rb,oneof:"body"},{no:7,name:"tree",kind:"message",T:Cp,oneof:"body"}]),nb=rt.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:ES,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_JSONObject"}),Tk=rt.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:ib,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_JSONArray"}),SS=rt.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:Dn},{no:4,name:"moved_at",kind:"message",T:Dn},{no:5,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Primitive"}),io=rt.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:kk,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Text"}),rb=rt.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:Dn},{no:4,name:"moved_at",kind:"message",T:Dn},{no:5,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Counter"}),Cp=rt.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:xS,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Tree"}),ES=rt.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:ro}]),ib=rt.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:ib},{no:2,name:"element",kind:"message",T:ro}]),ab=rt.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:Dn},{no:3,name:"is_removed",kind:"scalar",T:8}]),kk=rt.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:wS},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:Dn},{no:4,name:"ins_prev_id",kind:"message",T:wS},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ab}}]),wS=rt.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"offset",kind:"scalar",T:5}]),xS=rt.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Bl},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:Dn},{no:5,name:"ins_prev_id",kind:"message",T:Bl},{no:6,name:"ins_next_id",kind:"message",T:Bl},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ab}}]),Ck=rt.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:xS,repeated:!0}]),Bl=rt.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"offset",kind:"scalar",T:5}]),M0=rt.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Bl},{no:2,name:"left_sibling_id",kind:"message",T:Bl}]);rt.makeMessageType("yorkie.v1.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"created_at",kind:"message",T:ds}]),rt.makeMessageType("yorkie.v1.Project",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"public_key",kind:"scalar",T:9},{no:4,name:"secret_key",kind:"scalar",T:9},{no:5,name:"auth_webhook_url",kind:"scalar",T:9},{no:6,name:"auth_webhook_methods",kind:"scalar",T:9,repeated:!0},{no:7,name:"client_deactivate_threshold",kind:"scalar",T:9},{no:8,name:"created_at",kind:"message",T:ds},{no:9,name:"updated_at",kind:"message",T:ds}]),rt.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:to},{no:2,name:"auth_webhook_url",kind:"message",T:to},{no:3,name:"auth_webhook_methods",kind:"message",T:B6},{no:4,name:"client_deactivate_threshold",kind:"message",T:to}]);const B6=rt.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"});rt.makeMessageType("yorkie.v1.DocumentSummary",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"snapshot",kind:"scalar",T:9},{no:4,name:"created_at",kind:"message",T:ds},{no:5,name:"accessed_at",kind:"message",T:ds},{no:6,name:"updated_at",kind:"message",T:ds}]);const L0=rt.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(Ap)},{no:2,name:"presence",kind:"message",T:zu}]),Ap=rt.makeEnum("yorkie.v1.PresenceChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED",localName:"UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_PUT",localName:"PUT"},{no:2,name:"CHANGE_TYPE_DELETE",localName:"DELETE"},{no:3,name:"CHANGE_TYPE_CLEAR",localName:"CLEAR"}]),zu=rt.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),$0=rt.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),sh=rt.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),Dn=rt.makeMessageType("yorkie.v1.TimeTicket",()=>[{no:1,name:"lamport",kind:"scalar",T:3,L:1},{no:2,name:"delimiter",kind:"scalar",T:13},{no:3,name:"actor_id",kind:"scalar",T:12}]),U6=rt.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),_p=rt.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(Fl)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:U6}]),Ul=rt.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),Ak=rt.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),z6=rt.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),j6=rt.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),H6=rt.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Bc}]),V6=rt.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Bc}]),W6=rt.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Bc},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),Rp=rt.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:Bc}]),He=rt.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),bt=rt.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:ct,oneof:"body"},{no:2,name:"event",kind:"message",T:_p,oneof:"body"}]),ct=rt.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),mn=rt.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Bc}]),nr=rt.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Bc}]),Qr=rt.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Bc},{no:4,name:"push_only",kind:"scalar",T:8}]),xa=rt.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Bc}]),fi=rt.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),TS=rt.makeMessageType("yorkie.v1.BroadcastResponse",[]),Q6={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:Ul,O:Ak,kind:Rs.Unary},deactivateClient:{name:"DeactivateClient",I:z6,O:j6,kind:Rs.Unary},attachDocument:{name:"AttachDocument",I:H6,O:V6,kind:Rs.Unary},detachDocument:{name:"DetachDocument",I:W6,O:Rp,kind:Rs.Unary},removeDocument:{name:"RemoveDocument",I:mn,O:nr,kind:Rs.Unary},pushPullChanges:{name:"PushPullChanges",I:Qr,O:xa,kind:Rs.Unary},watchDocument:{name:"WatchDocument",I:He,O:bt,kind:Rs.ServerStreaming},broadcast:{name:"Broadcast",I:fi,O:TS,kind:Rs.Unary}}};/** +}`,{label:"class",detail:"definition",type:"keyword"}),fl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),fl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],ZYe=Phe.concat([fl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),fl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),fl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),nee=new Ede,Mhe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function IE(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const XYe=["FunctionDeclaration"],KYe={FunctionDeclaration:IE("function"),ClassDeclaration:IE("class"),ClassExpression:()=>!0,EnumDeclaration:IE("constant"),TypeAliasDeclaration:IE("type"),NamespaceDeclaration:IE("namespace"),VariableDefinition(e,t){e.matchContext(XYe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Lhe(e,t){let n=nee.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(_i.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=KYe[s.name];if(o&&o(s,a)||Mhe.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of Lhe(e,s.node))r.push(o);return!1}}),nee.set(t,r),r}const ree=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,$he=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function JYe(e){let t=Di(e.state).resolveInner(e.pos,-1);if($he.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&ree.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)Mhe.has(i.name)&&(r=r.concat(Lhe(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:ree}}const Lf=eO.define({name:"javascript",parser:YYe.configure({props:[ST.add({IfStatement:F4({except:/^\s*({|else\b)/}),TryStatement:F4({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:uVe,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:lVe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":F4({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),NO.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Rde,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Fhe={test:e=>/^JSX/.test(e.name),facet:dB({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Bhe=Lf.configure({dialect:"ts"},"typescript"),Uhe=Lf.configure({dialect:"jsx",props:[fB.add(e=>e.isTop?[Fhe]:void 0)]}),zhe=Lf.configure({dialect:"jsx ts",props:[fB.add(e=>e.isTop?[Fhe]:void 0)]},"typescript");let jhe=e=>({label:e,type:"keyword"});const Hhe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(jhe),eZe=Hhe.concat(["declare","implements","private","protected","public"].map(jhe));function tZe(e={}){let t=e.jsx?e.typescript?zhe:Uhe:e.typescript?Bhe:Lf,n=e.typescript?ZYe.concat(eZe):Phe.concat(Hhe);return new Jw(t,[Lf.data.of({autocomplete:TQe($he,Dfe(n))}),Lf.data.of({autocomplete:JYe}),e.jsx?iZe:[]])}function nZe(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function iee(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const rZe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),iZe=fn.inputHandler.of((e,t,n,r,i)=>{if((rZe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Lf.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u;let{head:c}=l,f=Di(s).resolveInner(c-1,-1),h;if(f.name=="JSXStartTag"&&(f=f.parent),!(s.doc.sliceString(c-1,c)!=r||f.name=="JSXAttributeValue"&&f.to>c)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&f.name=="JSXStartCloseTag"){let g=f.parent,b=g.parent;if(b&&g.from==c-2&&((h=iee(s.doc,b.firstChild,c))||((u=b.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let S=`${h}>`;return{range:Ot.cursor(c+S.length,-1),changes:{from:c,insert:S}}}}else if(r==">"){let g=nZe(f);if(g&&!/^\/?>|^<\//.test(s.doc.sliceString(c,c+2))&&(h=iee(s.doc,g,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),DE=["_blank","_self","_top","_parent"],hP=["ascii","utf-8","utf-16","latin1","latin1"],pP=["get","post","put","delete"],mP=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],tu=["true","false"],Pn={},aZe={a:{attrs:{href:null,ping:null,type:null,media:null,target:DE,hreflang:null}},abbr:Pn,address:Pn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Pn,aside:Pn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Pn,base:{attrs:{href:null,target:DE}},bdi:Pn,bdo:Pn,blockquote:{attrs:{cite:null}},body:Pn,br:Pn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:mP,formmethod:pP,formnovalidate:["novalidate"],formtarget:DE,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Pn,center:Pn,cite:Pn,code:Pn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Pn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Pn,div:Pn,dl:Pn,dt:Pn,em:Pn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Pn,figure:Pn,footer:Pn,form:{attrs:{action:null,name:null,"accept-charset":hP,autocomplete:["on","off"],enctype:mP,method:pP,novalidate:["novalidate"],target:DE}},h1:Pn,h2:Pn,h3:Pn,h4:Pn,h5:Pn,h6:Pn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Pn,hgroup:Pn,hr:Pn,html:{attrs:{manifest:null}},i:Pn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:mP,formmethod:pP,formnovalidate:["novalidate"],formtarget:DE,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Pn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Pn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Pn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:hP,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Pn,noscript:Pn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Pn,param:{attrs:{name:null,value:null}},pre:Pn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Pn,rt:Pn,ruby:Pn,samp:Pn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:hP}},section:Pn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Pn,source:{attrs:{src:null,type:null,media:null}},span:Pn,strong:Pn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Pn,summary:Pn,sup:Pn,table:Pn,tbody:Pn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Pn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Pn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Pn,time:{attrs:{datetime:null}},title:Pn,tr:Pn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Pn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Pn},Vhe={accesskey:null,class:null,contenteditable:tu,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:tu,autocorrect:tu,autocapitalize:tu,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":tu,"aria-autocomplete":["inline","list","both","none"],"aria-busy":tu,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":tu,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":tu,"aria-hidden":tu,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":tu,"aria-multiselectable":tu,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":tu,"aria-relevant":null,"aria-required":tu,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Whe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of Whe)Vhe[e]=null;let lx=class{constructor(t,n){this.tags=Object.assign(Object.assign({},aZe),t),this.globalAttrs=Object.assign(Object.assign({},Vhe),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};lx.default=new lx;function sO(e,t,n=e.length){if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function oO(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function Qhe(e,t,n){let r=n.tags[sO(e,oO(t))];return(r==null?void 0:r.children)||n.allTags}function PB(e,t){let n=[];for(let r=oO(t);r&&!r.type.isTop;r=oO(r.parent)){let i=sO(e,r);if(i&&r.lastChild.name=="CloseTag")break;i&&n.indexOf(i)<0&&(t.name=="EndTag"||t.from>=r.firstChild.to)&&n.push(i)}return n}const qhe=/^[:\-\.\w\u00b7-\uffff]*$/;function aee(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=oO(n,!0);return{from:r,to:i,options:Qhe(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(PB(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function see(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:PB(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:qhe}}function sZe(e,t,n,r){let i=[],a=0;for(let s of Qhe(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of PB(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function oZe(e,t,n,r,i){let a=oO(n),s=a?t.tags[sO(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:qhe}}function lZe(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let u=e.sliceDoc(s.from,s.to),c=t.globalAttrs[u];if(!c){let f=oO(n),h=f?t.tags[sO(e.doc,f)]:null;c=(h==null?void 0:h.attrs)&&h.attrs[u]}if(c){let f=e.sliceDoc(r,i).toLowerCase(),h='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,h="",g=e.sliceDoc(i,i+1)==f[0]?"":f[0],f=f.slice(1),r++):l=/^[^\s<>='"]*$/;for(let b of c)o.push({label:b,apply:h+b+g,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function Ghe(e,t){let{state:n,pos:r}=t,i=Di(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.fromGhe(r,i)}const dZe=Lf.parser.configure({top:"SingleExpression"}),Yhe=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Bhe.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Uhe.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:zhe.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:dZe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Lf.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:B3.parser}],Zhe=[{name:"style",parser:B3.parser.configure({top:"Styles"})}].concat(Whe.map(e=>({name:e,parser:Lf.parser}))),Xhe=eO.define({name:"html",parser:YGe.configure({props:[ST.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),z4=Xhe.configure({wrap:_he(Yhe,Zhe)});function fZe(e={}){let t="",n;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=_he((e.nestedLanguages||[]).concat(Yhe),(e.nestedAttributes||[]).concat(Zhe)));let r=n?Xhe.configure({wrap:n,dialect:t}):t?z4.configure({dialect:t}):z4;return new Jw(r,[z4.data.of({autocomplete:cZe(e)}),e.autoCloseTags!==!1?hZe:[],tZe().support,xYe().support])}const oee=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),hZe=fn.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!z4.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u,c,f;let h=s.doc.sliceString(l.from-1,l.to)==r,{head:g}=l,b=Di(s).resolveInner(g-1,-1),S;if((b.name=="TagName"||b.name=="StartTag")&&(b=b.parent),h&&r==">"&&b.name=="OpenTag"){if(((c=(u=b.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(S=sO(s.doc,b.parent,g))&&!oee.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),E=``;return{range:l,changes:{from:g,to:w,insert:E}}}}else if(h&&r=="/"&&b.name=="IncompleteCloseTag"){let w=b.parent;if(b.from==g-2&&((f=w.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(S=sO(s.doc,w,g))&&!oee.has(S)){let E=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=`${S}>`;return{range:Ot.cursor(g+x.length,-1),changes:{from:g,to:E,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Khe=dB({commentTokens:{block:{open:""}}}),Jhe=new rr,epe=Vqe.configure({props:[NO.add(e=>!e.is("Block")||e.is("Document")||dL(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Jhe.add(dL),ST.add({Document:()=>null}),Lg.add({Document:Khe})]});function dL(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function pZe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=dL(r.type))!=null&&i<=t)break;n=r}return n.to}const mZe=_de.of((e,t,n)=>{for(let r=Di(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function MB(e){return new hc(Khe,e,[mZe],"markdown")}const gZe=MB(epe),bZe=epe.configure([tGe,rGe,nGe,iGe,{props:[NO.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),tpe=MB(bZe);function yZe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=O3.matchLanguageName(e,n,!0),r instanceof O3)return r.support?r.support.language.parser:Kw.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class EA{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+rpe(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function npe(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new EA(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new EA(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let u=s[3],c=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new EA(a.parent,l,l+c,s[1],u,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let u=s[4],c=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),r.push(new EA(a.parent,l,l+c,s[1],u,f,a))}}return r}function rpe(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function gP(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=rpe(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function LB(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(OT)!=" ")return e;let r=vd(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const vZe=({state:e,dispatch:t})=>{let n=Di(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!tpe.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),u=npe(n.resolveInner(o,-1),r);for(;u.length&&u[u.length-1].from>o-l.from;)u.pop();if(!u.length)return i={range:s};let c=u[u.length-1];if(c.to-c.spaceAfter.length>o-l.from)return i={range:s};let f=o>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&f){let w=c.node.firstChild,E=c.node.getChild("ListItem","ListItem");if(w.to>=o||E&&E.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=u.length>1?u[u.length-2]:null,k,C="";x&&x.item?(k=l.from+x.from,C=x.marker(r,1)):k=l.from+(x?x.to:0);let R=[{from:k,to:o,insert:C}];return c.node.name=="OrderedList"&&gP(c.item,r,R,-2),x&&x.node.name=="OrderedList"&&gP(x.item,r,R),{range:Ot.cursor(k+C.length),changes:R}}else{let x=uee(u,e,l);return{range:Ot.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(c.node.name=="Blockquote"&&f&&l.from){let w=r.lineAt(l.from-1),E=/>\s*$/.exec(w.text);if(E&&E.index==c.from){let x=e.changes([{from:w.from+E.index,to:w.to},{from:l.from+c.from,to:l.to}]);return{range:s.map(x),changes:x}}}let h=[];c.node.name=="OrderedList"&&gP(c.item,r,h);let g=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let w=0,E=u.length-1;w<=E;w++)b+=w==E&&!g?u[w].marker(r,1):u[w].blank(wl.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return b=LB(b,e),OZe(c.node,e.doc)&&(b=uee(u,e,l)+e.lineBreak+b),h.push({from:S,to:o,insert:e.lineBreak+b}),{range:Ot.cursor(S+b.length+1),changes:h}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function lee(e){return e.name=="QuoteMark"||e.name=="ListMark"}function OZe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=Di(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&tpe.isActiveAt(e,a.from)){let l=o.lineAt(s),u=npe(SZe(n,s),o);if(u.length){let c=u[u.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:Ot.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let h=l.from+c.from;if(c.item&&c.node.fromd in O?i(O,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):O[d]=p,s=(O,d,p)=>(a(O,typeof d!="symbol"?d+"":d,p),p),o;(function(O){O[O.Canceled=1]="Canceled",O[O.Unknown=2]="Unknown",O[O.InvalidArgument=3]="InvalidArgument",O[O.DeadlineExceeded=4]="DeadlineExceeded",O[O.NotFound=5]="NotFound",O[O.AlreadyExists=6]="AlreadyExists",O[O.PermissionDenied=7]="PermissionDenied",O[O.ResourceExhausted=8]="ResourceExhausted",O[O.FailedPrecondition=9]="FailedPrecondition",O[O.Aborted=10]="Aborted",O[O.OutOfRange=11]="OutOfRange",O[O.Unimplemented=12]="Unimplemented",O[O.Internal=13]="Internal",O[O.Unavailable=14]="Unavailable",O[O.DataLoss=15]="DataLoss",O[O.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(O){const d=o[O];return typeof d!="string"?O.toString():d[0].toLowerCase()+d.substring(1).replace(/[A-Z]/g,p=>"_"+p.toLowerCase())}class u extends Error{constructor(d,p=o.Unknown,y,T,$){super(c(d,p)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=d,this.code=p,this.metadata=new Headers(y??{}),this.details=T??[],this.cause=$}static from(d,p=o.Unknown){return d instanceof u?d:d instanceof Error?d.name=="AbortError"?new u(d.message,o.Canceled):new u(d.message,p,void 0,void 0,d):new u(String(d),p,void 0,void 0,d)}static[Symbol.hasInstance](d){return d instanceof Error?Object.getPrototypeOf(d)===u.prototype?!0:d.name==="ConnectError"&&"code"in d&&typeof d.code=="number"&&"metadata"in d&&"details"in d&&Array.isArray(d.details)&&"rawMessage"in d&&typeof d.rawMessage=="string"&&"cause"in d:!1}findDetails(d){const p="typeName"in d?{findMessage:T=>T===d.typeName?d:void 0}:d,y=[];for(const T of this.details){if("getType"in T){p.findMessage(T.getType().typeName)&&y.push(T);continue}const $=p.findMessage(T.type);if($)try{y.push($.fromBinary(T.value))}catch{}}return y}}function c(O,d){return O.length?`[${l(d)}] ${O}`:`[${l(d)}]`}function f(O,d){if(!O)throw new Error(d)}const h=34028234663852886e22,g=-34028234663852886e22,b=4294967295,S=2147483647,w=-2147483648;function E(O){if(typeof O!="number")throw new Error("invalid int 32: "+typeof O);if(!Number.isInteger(O)||O>S||Ob||O<0)throw new Error("invalid uint 32: "+O)}function k(O){if(typeof O!="number")throw new Error("invalid float 32: "+typeof O);if(Number.isFinite(O)&&(O>h||O({no:T.no,name:T.name,localName:O[T.no]})))}function D(O,d,p){const y=Object.create(null),T=Object.create(null),$=[];for(const q of d){const ne=L(q);$.push(ne),y[q.name]=ne,T[q.no]=ne}return{typeName:O,values:$,findName(q){return y[q]},findNumber(q){return T[q]}}}function B(O,d,p){const y={};for(const T of d){const $=L(T);y[$.localName]=$.no,y[$.no]=$.localName}return A(y,O,d),y}function L(O){return"localName"in O?O:Object.assign(Object.assign({},O),{localName:O.name})}class F{equals(d){return this.getType().runtime.util.equals(this.getType(),this,d)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(d,p){const y=this.getType(),T=y.runtime.bin,$=T.makeReadOptions(p);return T.readMessage(this,$.readerFactory(d),d.byteLength,$),this}fromJson(d,p){const y=this.getType(),T=y.runtime.json,$=T.makeReadOptions(p);return T.readMessage(y,d,$,this),this}fromJsonString(d,p){let y;try{y=JSON.parse(d)}catch(T){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${T instanceof Error?T.message:String(T)}`)}return this.fromJson(y,p)}toBinary(d){const p=this.getType(),y=p.runtime.bin,T=y.makeWriteOptions(d),$=T.writerFactory();return y.writeMessage(this,$,T),$.finish()}toJson(d){const p=this.getType(),y=p.runtime.json,T=y.makeWriteOptions(d);return y.writeMessage(this,T)}toJsonString(d){var p;const y=this.toJson(d);return JSON.stringify(y,null,(p=d==null?void 0:d.prettySpaces)!==null&&p!==void 0?p:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function W(O,d,p,y){var T;const $=(T=y==null?void 0:y.localName)!==null&&T!==void 0?T:d.substring(d.lastIndexOf(".")+1),q={[$]:function(ne){O.util.initFields(this),O.util.initPartial(ne,this)}}[$];return Object.setPrototypeOf(q.prototype,new F),Object.assign(q,{runtime:O,typeName:d,fields:O.util.newFieldList(p),fromBinary(ne,me){return new q().fromBinary(ne,me)},fromJson(ne,me){return new q().fromJson(ne,me)},fromJsonString(ne,me){return new q().fromJsonString(ne,me)},equals(ne,me){return O.util.equals(q,ne,me)}}),q}function V(){let O=0,d=0;for(let y=0;y<28;y+=7){let T=this.buf[this.pos++];if(O|=(T&127)<>4,!(p&128))return this.assertBounds(),[O,d];for(let y=3;y<=31;y+=7){let T=this.buf[this.pos++];if(d|=(T&127)<>>$,ne=!(!(q>>>7)&&d==0),me=(ne?q|128:q)&255;if(p.push(me),!ne)return}const y=O>>>28&15|(d&7)<<4,T=!!(d>>3);if(p.push((T?y|128:y)&255),!!T){for(let $=3;$<31;$=$+7){const q=d>>>$,ne=!!(q>>>7),me=(ne?q|128:q)&255;if(p.push(me),!ne)return}p.push(d>>>31&1)}}const Q=4294967296;function H(O){const d=O[0]==="-";d&&(O=O.slice(1));const p=1e6;let y=0,T=0;function $(q,ne){const me=Number(O.slice(q,ne));T*=p,y=y*p+me,y>=Q&&(T=T+(y/Q|0),y=y%Q)}return $(-24,-18),$(-18,-12),$(-12,-6),$(-6),d?z(y,T):te(y,T)}function J(O,d){let p=te(O,d);const y=p.hi&2147483648;y&&(p=z(p.lo,p.hi));const T=K(p.lo,p.hi);return y?"-"+T:T}function K(O,d){if({lo:O,hi:d}=X(O,d),d<=2097151)return String(Q*d+O);const p=O&16777215,y=(O>>>24|d<<8)&16777215,T=d>>16&65535;let $=p+y*6777216+T*6710656,q=y+T*8147497,ne=T*2;const me=1e7;return $>=me&&(q+=Math.floor($/me),$%=me),q>=me&&(ne+=Math.floor(q/me),q%=me),ne.toString()+Te(q)+Te($)}function X(O,d){return{lo:O>>>0,hi:d>>>0}}function te(O,d){return{lo:O|0,hi:d|0}}function z(O,d){return d=~d,O?O=~O+1:d+=1,te(O,d)}const Te=O=>{const d=String(O);return"0000000".slice(d.length)+d};function be(O,d){if(O>=0){for(;O>127;)d.push(O&127|128),O=O>>>7;d.push(O)}else{for(let p=0;p<9;p++)d.push(O&127|128),O=O>>7;d.push(1)}}function ee(){let O=this.buf[this.pos++],d=O&127;if(!(O&128))return this.assertBounds(),d;if(O=this.buf[this.pos++],d|=(O&127)<<7,!(O&128))return this.assertBounds(),d;if(O=this.buf[this.pos++],d|=(O&127)<<14,!(O&128))return this.assertBounds(),d;if(O=this.buf[this.pos++],d|=(O&127)<<21,!(O&128))return this.assertBounds(),d;O=this.buf[this.pos++],d|=(O&15)<<28;for(let p=5;O&128&&p<10;p++)O=this.buf[this.pos++];if(O&128)throw new Error("invalid varint");return this.assertBounds(),d>>>0}function ye(){const O=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof O.getBigInt64=="function"&&typeof O.getBigUint64=="function"&&typeof O.setBigInt64=="function"&&typeof O.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const T=BigInt("-9223372036854775808"),$=BigInt("9223372036854775807"),q=BigInt("0"),ne=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(me){const Se=typeof me=="bigint"?me:BigInt(me);if(Se>$||Sene||Sef(/^-?[0-9]+$/.test(T),`int64 invalid: ${T}`),y=T=>f(/^[0-9]+$/.test(T),`uint64 invalid: ${T}`);return{zero:"0",supported:!1,parse(T){return typeof T!="string"&&(T=T.toString()),p(T),T},uParse(T){return typeof T!="string"&&(T=T.toString()),y(T),T},enc(T){return typeof T!="string"&&(T=T.toString()),p(T),H(T)},uEnc(T){return typeof T!="string"&&(T=T.toString()),y(T),H(T)},dec(T,$){return J(T,$)},uDec(T,$){return K(T,$)}}}const Oe=ye();var ie;(function(O){O[O.DOUBLE=1]="DOUBLE",O[O.FLOAT=2]="FLOAT",O[O.INT64=3]="INT64",O[O.UINT64=4]="UINT64",O[O.INT32=5]="INT32",O[O.FIXED64=6]="FIXED64",O[O.FIXED32=7]="FIXED32",O[O.BOOL=8]="BOOL",O[O.STRING=9]="STRING",O[O.BYTES=12]="BYTES",O[O.UINT32=13]="UINT32",O[O.SFIXED32=15]="SFIXED32",O[O.SFIXED64=16]="SFIXED64",O[O.SINT32=17]="SINT32",O[O.SINT64=18]="SINT64"})(ie||(ie={}));var _e;(function(O){O[O.BIGINT=0]="BIGINT",O[O.STRING=1]="STRING"})(_e||(_e={}));function Ie(O,d,p){if(d===p)return!0;if(O==ie.BYTES){if(!(d instanceof Uint8Array)||!(p instanceof Uint8Array)||d.length!==p.length)return!1;for(let y=0;y>>0)}raw(d){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(d),this}uint32(d){for(x(d);d>127;)this.buf.push(d&127|128),d=d>>>7;return this.buf.push(d),this}int32(d){return E(d),be(d,this.buf),this}bool(d){return this.buf.push(d?1:0),this}bytes(d){return this.uint32(d.byteLength),this.raw(d)}string(d){let p=this.textEncoder.encode(d);return this.uint32(p.byteLength),this.raw(p)}float(d){k(d);let p=new Uint8Array(4);return new DataView(p.buffer).setFloat32(0,d,!0),this.raw(p)}double(d){let p=new Uint8Array(8);return new DataView(p.buffer).setFloat64(0,d,!0),this.raw(p)}fixed32(d){x(d);let p=new Uint8Array(4);return new DataView(p.buffer).setUint32(0,d,!0),this.raw(p)}sfixed32(d){E(d);let p=new Uint8Array(4);return new DataView(p.buffer).setInt32(0,d,!0),this.raw(p)}sint32(d){return E(d),d=(d<<1^d>>31)>>>0,be(d,this.buf),this}sfixed64(d){let p=new Uint8Array(8),y=new DataView(p.buffer),T=Oe.enc(d);return y.setInt32(0,T.lo,!0),y.setInt32(4,T.hi,!0),this.raw(p)}fixed64(d){let p=new Uint8Array(8),y=new DataView(p.buffer),T=Oe.uEnc(d);return y.setInt32(0,T.lo,!0),y.setInt32(4,T.hi,!0),this.raw(p)}int64(d){let p=Oe.enc(d);return Z(p.lo,p.hi,this.buf),this}sint64(d){let p=Oe.enc(d),y=p.hi>>31,T=p.lo<<1^y,$=(p.hi<<1|p.lo>>>31)^y;return Z(T,$,this.buf),this}uint64(d){let p=Oe.uEnc(d);return Z(p.lo,p.hi,this.buf),this}}class Ve{constructor(d,p){this.varint64=V,this.uint32=ee,this.buf=d,this.len=d.length,this.pos=0,this.view=new DataView(d.buffer,d.byteOffset,d.byteLength),this.textDecoder=p??new TextDecoder}tag(){let d=this.uint32(),p=d>>>3,y=d&7;if(p<=0||y<0||y>5)throw new Error("illegal tag: field no "+p+" wire type "+y);return[p,y]}skip(d,p){let y=this.pos;switch(d){case Pe.Varint:for(;this.buf[this.pos++]&128;);break;case Pe.Bit64:this.pos+=4;case Pe.Bit32:this.pos+=4;break;case Pe.LengthDelimited:let T=this.uint32();this.pos+=T;break;case Pe.StartGroup:for(;;){const[$,q]=this.tag();if(q===Pe.EndGroup){if(p!==void 0&&$!==p)throw new Error("invalid end group tag");break}this.skip(q,$)}break;default:throw new Error("cant skip wire type "+d)}return this.assertBounds(),this.buf.subarray(y,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let d=this.uint32();return d>>>1^-(d&1)}int64(){return Oe.dec(...this.varint64())}uint64(){return Oe.uDec(...this.varint64())}sint64(){let[d,p]=this.varint64(),y=-(d&1);return d=(d>>>1|(p&1)<<31)^y,p=p>>>1^y,Oe.dec(d,p)}bool(){let[d,p]=this.varint64();return d!==0||p!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Oe.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Oe.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let d=this.uint32(),p=this.pos;return this.pos+=d,this.assertBounds(),this.buf.subarray(p,p+d)}string(){return this.textDecoder.decode(this.bytes())}}function Xe(O,d,p,y){let T;return{typeName:d,extendee:p,get field(){if(!T){const $=typeof y=="function"?y():y;$.name=d.split(".").pop(),$.jsonName=`[${d}]`,T=O.util.newFieldList([$]).list()[0]}return T},runtime:O}}function et(O){const d=O.field.localName,p=Object.create(null);return p[d]=ft(O),[p,()=>p[d]]}function ft(O){const d=O.field;if(d.repeated)return[];if(d.default!==void 0)return d.default;switch(d.kind){case"enum":return d.T.values[0].no;case"scalar":return qe(d.T,d.L);case"message":const p=d.T,y=new p;return p.fieldWrapper?p.fieldWrapper.unwrapField(y):y;case"map":throw"map fields are not allowed to be extensions"}}function At(O,d){if(!d.repeated&&(d.kind=="enum"||d.kind=="scalar")){for(let p=O.length-1;p>=0;--p)if(O[p].no==d.no)return[O[p]];return[]}return O.filter(p=>p.no===d.no)}let Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pe=[];for(let O=0;O>4,q=$,T=2;break;case 2:p[y++]=(q&15)<<4|($&60)>>2,q=$,T=3;break;case 3:p[y++]=(q&3)<<6|$,T=0;break}}if(T==1)throw Error("invalid base64 string.");return p.subarray(0,y)},enc(O){let d="",p=0,y,T=0;for(let $=0;$>2],T=(y&3)<<4,p=1;break;case 1:d+=Je[T|y>>4],T=(y&15)<<2,p=2;break;case 2:d+=Je[T|y>>6],d+=Je[y&63],p=0;break}return p&&(d+=Je[T],d+="=",p==1&&(d+="=")),d}};function he(O,d,p){We(d,O);const y=d.runtime.bin.makeReadOptions(p),T=At(O.getType().runtime.bin.listUnknownFields(O),d.field),[$,q]=et(d);for(const ne of T)d.runtime.bin.readField($,y.readerFactory(ne.data),d.field,ne.wireType,y);return q()}function je(O,d,p,y){We(d,O);const T=d.runtime.bin.makeReadOptions(y),$=d.runtime.bin.makeWriteOptions(y);if(Ze(O,d)){const Se=O.getType().runtime.bin.listUnknownFields(O).filter(ze=>ze.no!=d.field.no);O.getType().runtime.bin.discardUnknownFields(O);for(const ze of Se)O.getType().runtime.bin.onUnknownField(O,ze.no,ze.wireType,ze.data)}const q=$.writerFactory();let ne=d.field;!ne.opt&&!ne.repeated&&(ne.kind=="enum"||ne.kind=="scalar")&&(ne=Object.assign(Object.assign({},d.field),{opt:!0})),d.runtime.bin.writeField(ne,p,q,$);const me=T.readerFactory(q.finish());for(;me.posy.no==d.field.no)}function We(O,d){f(O.extendee.typeName==d.getType().typeName,`extension ${O.typeName} can only be applied to message ${O.extendee.typeName}`)}function fe(O,d){const p=O.localName;if(O.repeated)return d[p].length>0;if(O.oneof)return d[O.oneof.localName].case===p;switch(O.kind){case"enum":case"scalar":return O.opt||O.req?d[p]!==void 0:O.kind=="enum"?d[p]!==O.T.values[0].no:!st(O.T,d[p]);case"message":return d[p]!==void 0;case"map":return Object.keys(d[p]).length>0}}function xe(O,d){const p=O.localName,y=!O.opt&&!O.req;if(O.repeated)d[p]=[];else if(O.oneof)d[O.oneof.localName]={case:void 0};else switch(O.kind){case"map":d[p]={};break;case"enum":d[p]=y?O.T.values[0].no:void 0;break;case"scalar":d[p]=y?qe(O.T,O.L):void 0;break;case"message":d[p]=void 0;break}}function ve(O,d){if(O===null||typeof O!="object"||!Object.getOwnPropertyNames(F.prototype).every(y=>y in O&&typeof O[y]=="function"))return!1;const p=O.getType();return p===null||typeof p!="function"||!("typeName"in p)||typeof p.typeName!="string"?!1:d===void 0?!0:p.typeName==d.typeName}function De(O,d){return ve(d)||!O.fieldWrapper?d:O.fieldWrapper.wrapField(d)}ie.DOUBLE,ie.FLOAT,ie.INT64,ie.UINT64,ie.INT32,ie.UINT32,ie.BOOL,ie.STRING,ie.BYTES;const $e={ignoreUnknownFields:!1},vt={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Wt(O){return O?Object.assign(Object.assign({},$e),O):$e}function Kt(O){return O?Object.assign(Object.assign({},vt),O):vt}const gt=Symbol(),Gt=Symbol();function ut(){return{makeReadOptions:Wt,makeWriteOptions:Kt,readMessage(O,d,p,y){if(d==null||Array.isArray(d)||typeof d!="object")throw new Error(`cannot decode message ${O.typeName} from JSON: ${wt(d)}`);y=y??new O;const T=new Map,$=p.typeRegistry;for(const[q,ne]of Object.entries(d)){const me=O.fields.findJsonName(q);if(me){if(me.oneof){if(ne===null&&me.kind=="scalar")continue;const Se=T.get(me.oneof);if(Se!==void 0)throw new Error(`cannot decode message ${O.typeName} from JSON: multiple keys for oneof "${me.oneof.name}" present: "${Se}", "${q}"`);T.set(me.oneof,q)}Xt(y,ne,me,p,O)}else{let Se=!1;if($!=null&&$.findExtension&&q.startsWith("[")&&q.endsWith("]")){const ze=$.findExtension(q.substring(1,q.length-1));if(ze&&ze.extendee.typeName==O.typeName){Se=!0;const[Ct,St]=et(ze);Xt(Ct,ne,ze.field,p,ze),je(y,ze,St(),p)}}if(!Se&&!p.ignoreUnknownFields)throw new Error(`cannot decode message ${O.typeName} from JSON: key "${q}" is unknown`)}}return y},writeMessage(O,d){const p=O.getType(),y={};let T;try{for(T of p.fields.byNumber()){if(!fe(T,O)){if(T.req)throw"required field not set";if(!d.emitDefaultValues||!ar(T))continue}const q=T.oneof?O[T.oneof.localName].value:O[T.localName],ne=Ur(T,q,d);ne!==void 0&&(y[d.useProtoFieldName?T.name:T.jsonName]=ne)}const $=d.typeRegistry;if($!=null&&$.findExtensionFor)for(const q of p.runtime.bin.listUnknownFields(O)){const ne=$.findExtensionFor(p.typeName,q.no);if(ne&&Ze(O,ne)){const me=he(O,ne,d),Se=Ur(ne.field,me,d);Se!==void 0&&(y[ne.field.jsonName]=Se)}}}catch($){const q=T?`cannot encode field ${p.typeName}.${T.name} to JSON`:`cannot encode message ${p.typeName} to JSON`,ne=$ instanceof Error?$.message:String($);throw new Error(q+(ne.length>0?`: ${ne}`:""))}return y},readScalar(O,d,p){return $n(O,d,p??_e.BIGINT,!0)},writeScalar(O,d,p){if(d!==void 0&&(p||st(O,d)))return Ue(O,d)},debug:wt}}function wt(O){if(O===null)return"null";switch(typeof O){case"object":return Array.isArray(O)?"array":"object";case"string":return O.length>100?"string":`"${O.split('"').join('\\"')}"`;default:return String(O)}}function Xt(O,d,p,y,T){let $=p.localName;if(p.repeated){if(f(p.kind!="map"),d===null)return;if(!Array.isArray(d))throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(d)}`);const q=O[$];for(const ne of d){if(ne===null)throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(ne)}`);switch(p.kind){case"message":q.push(p.T.fromJson(ne,y));break;case"enum":const me=jn(p.T,ne,y.ignoreUnknownFields,!0);me!==Gt&&q.push(me);break;case"scalar":try{q.push($n(p.T,ne,p.L,!0))}catch(Se){let ze=`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(ne)}`;throw Se instanceof Error&&Se.message.length>0&&(ze+=`: ${Se.message}`),new Error(ze)}break}}}else if(p.kind=="map"){if(d===null)return;if(typeof d!="object"||Array.isArray(d))throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(d)}`);const q=O[$];for(const[ne,me]of Object.entries(d)){if(me===null)throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: map value null`);let Se;try{Se=Ln(p.K,ne)}catch(ze){let Ct=`cannot decode map key for field ${T.typeName}.${p.name} from JSON: ${wt(d)}`;throw ze instanceof Error&&ze.message.length>0&&(Ct+=`: ${ze.message}`),new Error(Ct)}switch(p.V.kind){case"message":q[Se]=p.V.T.fromJson(me,y);break;case"enum":const ze=jn(p.V.T,me,y.ignoreUnknownFields,!0);ze!==Gt&&(q[Se]=ze);break;case"scalar":try{q[Se]=$n(p.V.T,me,_e.BIGINT,!0)}catch(Ct){let St=`cannot decode map value for field ${T.typeName}.${p.name} from JSON: ${wt(d)}`;throw Ct instanceof Error&&Ct.message.length>0&&(St+=`: ${Ct.message}`),new Error(St)}break}}}else switch(p.oneof&&(O=O[p.oneof.localName]={case:$},$="value"),p.kind){case"message":const q=p.T;if(d===null&&q.typeName!="google.protobuf.Value")return;let ne=O[$];ve(ne)?ne.fromJson(d,y):(O[$]=ne=q.fromJson(d,y),q.fieldWrapper&&!p.oneof&&(O[$]=q.fieldWrapper.unwrapField(ne)));break;case"enum":const me=jn(p.T,d,y.ignoreUnknownFields,!1);switch(me){case gt:xe(p,O);break;case Gt:break;default:O[$]=me;break}break;case"scalar":try{const Se=$n(p.T,d,p.L,!1);switch(Se){case gt:xe(p,O);break;default:O[$]=Se;break}}catch(Se){let ze=`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(d)}`;throw Se instanceof Error&&Se.message.length>0&&(ze+=`: ${Se.message}`),new Error(ze)}break}}function Ln(O,d){if(O===ie.BOOL)switch(d){case"true":d=!0;break;case"false":d=!1;break}return $n(O,d,_e.BIGINT,!0).toString()}function $n(O,d,p,y){if(d===null)return y?qe(O,p):gt;switch(O){case ie.DOUBLE:case ie.FLOAT:if(d==="NaN")return Number.NaN;if(d==="Infinity")return Number.POSITIVE_INFINITY;if(d==="-Infinity")return Number.NEGATIVE_INFINITY;if(d===""||typeof d=="string"&&d.trim().length!==d.length||typeof d!="string"&&typeof d!="number")break;const T=Number(d);if(Number.isNaN(T)||!Number.isFinite(T))break;return O==ie.FLOAT&&k(T),T;case ie.INT32:case ie.FIXED32:case ie.SFIXED32:case ie.SINT32:case ie.UINT32:let $;if(typeof d=="number"?$=d:typeof d=="string"&&d.length>0&&d.trim().length===d.length&&($=Number(d)),$===void 0)break;return O==ie.UINT32||O==ie.FIXED32?x($):E($),$;case ie.INT64:case ie.SFIXED64:case ie.SINT64:if(typeof d!="number"&&typeof d!="string")break;const q=Oe.parse(d);return p?q.toString():q;case ie.FIXED64:case ie.UINT64:if(typeof d!="number"&&typeof d!="string")break;const ne=Oe.uParse(d);return p?ne.toString():ne;case ie.BOOL:if(typeof d!="boolean")break;return d;case ie.STRING:if(typeof d!="string")break;try{encodeURIComponent(d)}catch{throw new Error("invalid UTF8")}return d;case ie.BYTES:if(d==="")return new Uint8Array(0);if(typeof d!="string")break;return le.dec(d)}throw new Error}function jn(O,d,p,y){if(d===null)return O.typeName=="google.protobuf.NullValue"?0:y?O.values[0].no:gt;switch(typeof d){case"number":if(Number.isInteger(d))return d;break;case"string":const T=O.findName(d);if(T!==void 0)return T.no;if(p)return Gt;break}throw new Error(`cannot decode enum ${O.typeName} from JSON: ${wt(d)}`)}function ar(O){return O.repeated||O.kind=="map"?!0:!(O.oneof||O.kind=="message"||O.opt||O.req)}function Ur(O,d,p){if(O.kind=="map"){f(typeof d=="object"&&d!=null);const y={},T=Object.entries(d);switch(O.V.kind){case"scalar":for(const[q,ne]of T)y[q.toString()]=Ue(O.V.T,ne);break;case"message":for(const[q,ne]of T)y[q.toString()]=ne.toJson(p);break;case"enum":const $=O.V.T;for(const[q,ne]of T)y[q.toString()]=Me($,ne,p.enumAsInteger);break}return p.emitDefaultValues||T.length>0?y:void 0}if(O.repeated){f(Array.isArray(d));const y=[];switch(O.kind){case"scalar":for(let T=0;T0?y:void 0}switch(O.kind){case"scalar":return Ue(O.T,d);case"enum":return Me(O.T,d,p.enumAsInteger);case"message":return De(O.T,d).toJson(p)}}function Me(O,d,p){var y;if(f(typeof d=="number"),O.typeName=="google.protobuf.NullValue")return null;if(p)return d;const T=O.findNumber(d);return(y=T==null?void 0:T.name)!==null&&y!==void 0?y:d}function Ue(O,d){switch(O){case ie.INT32:case ie.SFIXED32:case ie.SINT32:case ie.FIXED32:case ie.UINT32:return f(typeof d=="number"),d;case ie.FLOAT:case ie.DOUBLE:return f(typeof d=="number"),Number.isNaN(d)?"NaN":d===Number.POSITIVE_INFINITY?"Infinity":d===Number.NEGATIVE_INFINITY?"-Infinity":d;case ie.STRING:return f(typeof d=="string"),d;case ie.BOOL:return f(typeof d=="boolean"),d;case ie.UINT64:case ie.FIXED64:case ie.INT64:case ie.SFIXED64:case ie.SINT64:return f(typeof d=="bigint"||typeof d=="string"||typeof d=="number"),d.toString();case ie.BYTES:return f(d instanceof Uint8Array),le.enc(d)}}const lt=Symbol("@bufbuild/protobuf/unknown-fields"),Nt={readUnknownFields:!0,readerFactory:O=>new Ve(O)},Qt={writeUnknownFields:!0,writerFactory:()=>new tt};function Hn(O){return O?Object.assign(Object.assign({},Nt),O):Nt}function yn(O){return O?Object.assign(Object.assign({},Qt),O):Qt}function rn(){return{makeReadOptions:Hn,makeWriteOptions:yn,listUnknownFields(O){var d;return(d=O[lt])!==null&&d!==void 0?d:[]},discardUnknownFields(O){delete O[lt]},writeUnknownFields(O,d){const y=O[lt];if(y)for(const T of y)d.tag(T.no,T.wireType).raw(T.data)},onUnknownField(O,d,p,y){const T=O;Array.isArray(T[lt])||(T[lt]=[]),T[lt].push({no:d,wireType:p,data:y})},readMessage(O,d,p,y,T){const $=O.getType(),q=T?d.len:d.pos+p;let ne,me;for(;d.pos0&&(me=Ye),$){let St=O[q];if(y==Pe.LengthDelimited&&ne!=ie.STRING&&ne!=ie.BYTES){let tn=d.uint32()+d.pos;for(;d.posve(St,Ct)?St:new Ct(St));else{const St=q[T];Ct.fieldWrapper?Ct.typeName==="google.protobuf.BytesValue"?$[T]=en(St):$[T]=St:$[T]=ve(St,Ct)?St:new Ct(St)}break}}},equals(O,d,p){return d===p?!0:!d||!p?!1:O.fields.byMember().every(y=>{const T=d[y.localName],$=p[y.localName];if(y.repeated){if(T.length!==$.length)return!1;switch(y.kind){case"message":return T.every((q,ne)=>y.T.equals(q,$[ne]));case"scalar":return T.every((q,ne)=>Ie(y.T,q,$[ne]));case"enum":return T.every((q,ne)=>Ie(ie.INT32,q,$[ne]))}throw new Error(`repeated cannot contain ${y.kind}`)}switch(y.kind){case"message":return y.T.equals(T,$);case"enum":return Ie(ie.INT32,T,$);case"scalar":return Ie(y.T,T,$);case"oneof":if(T.case!==$.case)return!1;const q=y.findField(T.case);if(q===void 0)return!0;switch(q.kind){case"message":return q.T.equals(T.value,$.value);case"enum":return Ie(ie.INT32,T.value,$.value);case"scalar":return Ie(q.T,T.value,$.value)}throw new Error(`oneof cannot contain ${q.kind}`);case"map":const ne=Object.keys(T).concat(Object.keys($));switch(y.V.kind){case"message":const me=y.V.T;return ne.every(ze=>me.equals(T[ze],$[ze]));case"enum":return ne.every(ze=>Ie(ie.INT32,T[ze],$[ze]));case"scalar":const Se=y.V.T;return ne.every(ze=>Ie(Se,T[ze],$[ze]))}break}})},clone(O){const d=O.getType(),p=new d,y=p;for(const T of d.fields.byMember()){const $=O[T.localName];let q;if(T.repeated)q=$.map(Dt);else if(T.kind=="map"){q=y[T.localName];for(const[ne,me]of Object.entries($))q[ne]=Dt(me)}else T.kind=="oneof"?q=T.findField($.case)?{case:$.case,value:Dt($.value)}:{case:void 0}:q=Dt($);y[T.localName]=q}for(const T of d.runtime.bin.listUnknownFields(O))d.runtime.bin.onUnknownField(y,T.no,T.wireType,T.data);return p}}}function Dt(O){if(O===void 0)return O;if(ve(O))return O.clone();if(O instanceof Uint8Array){const d=new Uint8Array(O.byteLength);return d.set(O),d}return O}function en(O){return O instanceof Uint8Array?O:new Uint8Array(O)}function Vn(O,d,p){return{syntax:O,json:ut(),bin:rn(),util:Object.assign(Object.assign({},Be()),{newFieldList:d,initFields:p}),makeMessageType(y,T,$){return W(this,y,T,$)},makeEnum:B,makeEnumType:D,getEnumType:R,makeExtension(y,T,$){return Xe(this,y,T,$)}}}class Zr{constructor(d,p){this._fields=d,this._normalizer=p}findJsonName(d){if(!this.jsonNames){const p={};for(const y of this.list())p[y.jsonName]=p[y.name]=y;this.jsonNames=p}return this.jsonNames[d]}find(d){if(!this.numbers){const p={};for(const y of this.list())p[y.no]=y;this.numbers=p}return this.numbers[d]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((d,p)=>d.no-p.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const d=this.members;let p;for(const y of this.list())y.oneof?y.oneof!==p&&(p=y.oneof,d.push(p)):d.push(y)}return this.members}}function wr(O,d){const p=ti(O);return d?p:V1(H1(p))}function In(O){return wr(O,!1)}const Wn=ti;function ti(O){let d=!1;const p=[];for(let y=0;y`${O}$`,H1=O=>Bc.has(O)?Cp(O):O,V1=O=>qa.has(O)?Cp(O):O;class W1{constructor(d){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=d,this.localName=In(d)}addField(d){f(d.oneof===this,`field ${d.name} not one of ${this.name}`),this.fields.push(d)}findField(d){if(!this._lookup){this._lookup=Object.create(null);for(let p=0;pnew Zr(O,d=>Q1(d,!0)),O=>{for(const d of O.getType().fields.byMember()){if(d.opt)continue;const p=d.localName,y=O;if(d.repeated){y[p]=[];continue}switch(d.kind){case"oneof":y[p]={case:void 0};break;case"enum":y[p]=0;break;case"map":y[p]={};break;case"scalar":y[p]=qe(d.T,d.L);break}}});var Is;(function(O){O[O.Unary=0]="Unary",O[O.ServerStreaming=1]="ServerStreaming",O[O.ClientStreaming=2]="ClientStreaming",O[O.BiDiStreaming=3]="BiDiStreaming"})(Is||(Is={}));var ck;(function(O){O[O.NoSideEffects=1]="NoSideEffects",O[O.Idempotent=2]="Idempotent"})(ck||(ck={}));class ds extends F{constructor(d){super(),this.seconds=Oe.zero,this.nanos=0,rt.util.initPartial(d,this)}fromJson(d,p){if(typeof d!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${rt.json.debug(d)}`);const y=d.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!y)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const T=Date.parse(y[1]+"-"+y[2]+"-"+y[3]+"T"+y[4]+":"+y[5]+":"+y[6]+(y[8]?y[8]:"Z"));if(Number.isNaN(T))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(TDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=Oe.parse(T/1e3),this.nanos=0,y[7]&&(this.nanos=parseInt("1"+y[7]+"0".repeat(9-y[7].length))-1e9),this}toJson(d){const p=Number(this.seconds)*1e3;if(pDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let y="Z";if(this.nanos>0){const T=(this.nanos+1e9).toString().substring(1);T.substring(3)==="000000"?y="."+T.substring(0,3)+"Z":T.substring(6)==="000"?y="."+T.substring(0,6)+"Z":y="."+T+"Z"}return new Date(p).toISOString().replace(".000Z",y)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return ds.fromDate(new Date)}static fromDate(d){const p=d.getTime();return new ds({seconds:Oe.parse(Math.floor(p/1e3)),nanos:p%1e3*1e6})}static fromBinary(d,p){return new ds().fromBinary(d,p)}static fromJson(d,p){return new ds().fromJson(d,p)}static fromJsonString(d,p){return new ds().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(ds,d,p)}}ds.runtime=rt,ds.typeName="google.protobuf.Timestamp",ds.fields=rt.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Lu extends F{constructor(d){super(),this.seconds=Oe.zero,this.nanos=0,rt.util.initPartial(d,this)}fromJson(d,p){if(typeof d!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${rt.json.debug(d)}`);const y=d.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(y===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${rt.json.debug(d)}`);const T=Number(y[1]);if(T>315576e6||T<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${rt.json.debug(d)}`);if(this.seconds=Oe.parse(T),typeof y[2]=="string"){const $=y[2]+"0".repeat(9-y[2].length);this.nanos=parseInt($),(T<0||Object.is(T,-0))&&(this.nanos=-this.nanos)}return this}toJson(d){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let p=this.seconds.toString();if(this.nanos!==0){let y=Math.abs(this.nanos).toString();y="0".repeat(9-y.length)+y,y.substring(3)==="000000"?y=y.substring(0,3):y.substring(6)==="000"&&(y=y.substring(0,6)),p+="."+y,this.nanos<0&&Number(this.seconds)==0&&(p="-"+p)}return p+"s"}static fromBinary(d,p){return new Lu().fromBinary(d,p)}static fromJson(d,p){return new Lu().fromJson(d,p)}static fromJsonString(d,p){return new Lu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Lu,d,p)}}Lu.runtime=rt,Lu.typeName="google.protobuf.Duration",Lu.fields=rt.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Nl extends F{constructor(d){super(),this.typeUrl="",this.value=new Uint8Array(0),rt.util.initPartial(d,this)}toJson(d){var p;if(this.typeUrl==="")return{};const y=this.typeUrlToName(this.typeUrl),T=(p=d==null?void 0:d.typeRegistry)===null||p===void 0?void 0:p.findMessage(y);if(!T)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let q=T.fromBinary(this.value).toJson(d);return(y.startsWith("google.protobuf.")||q===null||Array.isArray(q)||typeof q!="object")&&(q={value:q}),q["@type"]=this.typeUrl,q}fromJson(d,p){var y;if(d===null||Array.isArray(d)||typeof d!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${d===null?"null":Array.isArray(d)?"array":typeof d}`);if(Object.keys(d).length==0)return this;const T=d["@type"];if(typeof T!="string"||T=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const $=this.typeUrlToName(T),q=(y=p==null?void 0:p.typeRegistry)===null||y===void 0?void 0:y.findMessage($);if(!q)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${T} is not in the type registry`);let ne;if($.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(d,"value"))ne=q.fromJson(d.value,p);else{const me=Object.assign({},d);delete me["@type"],ne=q.fromJson(me,p)}return this.packFrom(ne),this}packFrom(d){this.value=d.toBinary(),this.typeUrl=this.typeNameToUrl(d.getType().typeName)}unpackTo(d){return this.is(d.getType())?(d.fromBinary(this.value),!0):!1}unpack(d){if(this.typeUrl==="")return;const p=d.findMessage(this.typeUrlToName(this.typeUrl));if(p)return p.fromBinary(this.value)}is(d){if(this.typeUrl==="")return!1;const p=this.typeUrlToName(this.typeUrl);let y="";return typeof d=="string"?y=d:y=d.typeName,p===y}typeNameToUrl(d){return`type.googleapis.com/${d}`}typeUrlToName(d){if(!d.length)throw new Error(`invalid type url: ${d}`);const p=d.lastIndexOf("/"),y=p>=0?d.substring(p+1):d;if(!y.length)throw new Error(`invalid type url: ${d}`);return y}static pack(d){const p=new Nl;return p.packFrom(d),p}static fromBinary(d,p){return new Nl().fromBinary(d,p)}static fromJson(d,p){return new Nl().fromJson(d,p)}static fromJsonString(d,p){return new Nl().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Nl,d,p)}}Nl.runtime=rt,Nl.typeName="google.protobuf.Any",Nl.fields=rt.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class Pl extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.DOUBLE,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.DOUBLE,d)}catch(y){let T='cannot decode message google.protobuf.DoubleValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Pl().fromBinary(d,p)}static fromJson(d,p){return new Pl().fromJson(d,p)}static fromJsonString(d,p){return new Pl().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Pl,d,p)}}Pl.runtime=rt,Pl.typeName="google.protobuf.DoubleValue",Pl.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Pl.fieldWrapper={wrapField(O){return new Pl({value:O})},unwrapField(O){return O.value}};class el extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.FLOAT,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.FLOAT,d)}catch(y){let T='cannot decode message google.protobuf.FloatValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new el().fromBinary(d,p)}static fromJson(d,p){return new el().fromJson(d,p)}static fromJsonString(d,p){return new el().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(el,d,p)}}el.runtime=rt,el.typeName="google.protobuf.FloatValue",el.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),el.fieldWrapper={wrapField(O){return new el({value:O})},unwrapField(O){return O.value}};class $u extends F{constructor(d){super(),this.value=Oe.zero,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.INT64,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.INT64,d)}catch(y){let T='cannot decode message google.protobuf.Int64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new $u().fromBinary(d,p)}static fromJson(d,p){return new $u().fromJson(d,p)}static fromJsonString(d,p){return new $u().fromJsonString(d,p)}static equals(d,p){return rt.util.equals($u,d,p)}}$u.runtime=rt,$u.typeName="google.protobuf.Int64Value",$u.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),$u.fieldWrapper={wrapField(O){return new $u({value:O})},unwrapField(O){return O.value}};class Ml extends F{constructor(d){super(),this.value=Oe.zero,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.UINT64,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.UINT64,d)}catch(y){let T='cannot decode message google.protobuf.UInt64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Ml().fromBinary(d,p)}static fromJson(d,p){return new Ml().fromJson(d,p)}static fromJsonString(d,p){return new Ml().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Ml,d,p)}}Ml.runtime=rt,Ml.typeName="google.protobuf.UInt64Value",Ml.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),Ml.fieldWrapper={wrapField(O){return new Ml({value:O})},unwrapField(O){return O.value}};class ko extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.INT32,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.INT32,d)}catch(y){let T='cannot decode message google.protobuf.Int32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new ko().fromBinary(d,p)}static fromJson(d,p){return new ko().fromJson(d,p)}static fromJsonString(d,p){return new ko().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(ko,d,p)}}ko.runtime=rt,ko.typeName="google.protobuf.Int32Value",ko.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),ko.fieldWrapper={wrapField(O){return new ko({value:O})},unwrapField(O){return O.value}};class Ll extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.UINT32,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.UINT32,d)}catch(y){let T='cannot decode message google.protobuf.UInt32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Ll().fromBinary(d,p)}static fromJson(d,p){return new Ll().fromJson(d,p)}static fromJsonString(d,p){return new Ll().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Ll,d,p)}}Ll.runtime=rt,Ll.typeName="google.protobuf.UInt32Value",Ll.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Ll.fieldWrapper={wrapField(O){return new Ll({value:O})},unwrapField(O){return O.value}};class Fu extends F{constructor(d){super(),this.value=!1,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.BOOL,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.BOOL,d)}catch(y){let T='cannot decode message google.protobuf.BoolValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Fu().fromBinary(d,p)}static fromJson(d,p){return new Fu().fromJson(d,p)}static fromJsonString(d,p){return new Fu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Fu,d,p)}}Fu.runtime=rt,Fu.typeName="google.protobuf.BoolValue",Fu.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Fu.fieldWrapper={wrapField(O){return new Fu({value:O})},unwrapField(O){return O.value}};class to extends F{constructor(d){super(),this.value="",rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.STRING,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.STRING,d)}catch(y){let T='cannot decode message google.protobuf.StringValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new to().fromBinary(d,p)}static fromJson(d,p){return new to().fromJson(d,p)}static fromJsonString(d,p){return new to().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(to,d,p)}}to.runtime=rt,to.typeName="google.protobuf.StringValue",to.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),to.fieldWrapper={wrapField(O){return new to({value:O})},unwrapField(O){return O.value}};class $l extends F{constructor(d){super(),this.value=new Uint8Array(0),rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.BYTES,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.BYTES,d)}catch(y){let T='cannot decode message google.protobuf.BytesValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new $l().fromBinary(d,p)}static fromJson(d,p){return new $l().fromJson(d,p)}static fromJsonString(d,p){return new $l().fromJsonString(d,p)}static equals(d,p){return rt.util.equals($l,d,p)}}$l.runtime=rt,$l.typeName="google.protobuf.BytesValue",$l.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),$l.fieldWrapper={wrapField(O){return new $l({value:O})},unwrapField(O){return O.value}};function aS(O,d,p){try{const y=le.dec(O);return d?d.fromBinary(y,p):y}catch(y){throw u.from(y,o.DataLoss)}}function w6(O,d){const p={};for(const[y,T]of Object.entries(O.methods)){const $=d(Object.assign(Object.assign({},T),{localName:y,service:O}));$!=null&&(p[y]=$)}return p}function sS(O){let d,p=new Uint8Array(0);function y(T){const $=new Uint8Array(p.length+T.length);$.set(p),$.set(T,p.length),p=$}return new ReadableStream({start(){d=O.getReader()},async pull(T){let $;for(;;){if($===void 0&&p.byteLength>=5){let me=0;for(let Se=1;Se<5;Se++)me=(me<<8)+p[Se];$={flags:p[0],length:me}}if($!==void 0&&p.byteLength>=$.length+5)break;const ne=await d.read();if(ne.done)break;y(ne.value)}if($===void 0){if(p.byteLength==0){T.close();return}T.error(new u("premature end of stream",o.DataLoss));return}const q=p.subarray(5,5+$.length);p=p.subarray(5+$.length),T.enqueue({flags:$.flags,data:q})}})}function q1(O,d){const p=new Uint8Array(d.length+5);p.set(d,5);const y=new DataView(p.buffer,p.byteOffset,p.byteLength);return y.setUint8(0,O),y.setUint32(1,d.length),p}var oS=globalThis&&globalThis.__asyncValues||function(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=O[Symbol.asyncIterator],p;return d?d.call(O):(O=typeof __values=="function"?__values(O):O[Symbol.iterator](),p={},y("next"),y("throw"),y("return"),p[Symbol.asyncIterator]=function(){return this},p);function y($){p[$]=O[$]&&function(q){return new Promise(function(ne,me){q=O[$](q),T(ne,me,q.done,q.value)})}}function T($,q,ne,me){Promise.resolve(me).then(function(Se){$({value:Se,done:ne})},q)}},Bu=globalThis&&globalThis.__await||function(O){return this instanceof Bu?(this.v=O,this):new Bu(O)},dk=globalThis&&globalThis.__asyncGenerator||function(O,d,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=p.apply(O,d||[]),T,$=[];return T={},ne("next"),ne("throw"),ne("return",q),T[Symbol.asyncIterator]=function(){return this},T;function q(mt){return function(tn){return Promise.resolve(tn).then(mt,Ct)}}function ne(mt,tn){y[mt]&&(T[mt]=function(Bn){return new Promise(function(kn,hr){$.push([mt,Bn,kn,hr])>1||me(mt,Bn)})},tn&&(T[mt]=tn(T[mt])))}function me(mt,tn){try{Se(y[mt](tn))}catch(Bn){St($[0][3],Bn)}}function Se(mt){mt.value instanceof Bu?Promise.resolve(mt.value.v).then(ze,Ct):St($[0][2],mt)}function ze(mt){me("next",mt)}function Ct(mt){me("throw",mt)}function St(mt,tn){mt(tn),$.shift(),$.length&&me($[0][0],$[0][1])}},fk=globalThis&&globalThis.__asyncDelegator||function(O){var d,p;return d={},y("next"),y("throw",function(T){throw T}),y("return"),d[Symbol.iterator]=function(){return this},d;function y(T,$){d[T]=O[T]?function(q){return(p=!p)?{value:Bu(O[T](q)),done:!1}:$?$(q):q}:$}};function x6(O){return dk(this,arguments,function*(){yield Bu(yield*fk(oS(O)))})}var lS=globalThis&&globalThis.__asyncValues||function(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=O[Symbol.asyncIterator],p;return d?d.call(O):(O=typeof __values=="function"?__values(O):O[Symbol.iterator](),p={},y("next"),y("throw"),y("return"),p[Symbol.asyncIterator]=function(){return this},p);function y($){p[$]=O[$]&&function(q){return new Promise(function(ne,me){q=O[$](q),T(ne,me,q.done,q.value)})}}function T($,q,ne,me){Promise.resolve(me).then(function(Se){$({value:Se,done:ne})},q)}},ih=globalThis&&globalThis.__await||function(O){return this instanceof ih?(this.v=O,this):new ih(O)},hk=globalThis&&globalThis.__asyncDelegator||function(O){var d,p;return d={},y("next"),y("throw",function(T){throw T}),y("return"),d[Symbol.iterator]=function(){return this},d;function y(T,$){d[T]=O[T]?function(q){return(p=!p)?{value:ih(O[T](q)),done:!1}:$?$(q):q}:$}},pk=globalThis&&globalThis.__asyncGenerator||function(O,d,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=p.apply(O,d||[]),T,$=[];return T={},ne("next"),ne("throw"),ne("return",q),T[Symbol.asyncIterator]=function(){return this},T;function q(mt){return function(tn){return Promise.resolve(tn).then(mt,Ct)}}function ne(mt,tn){y[mt]&&(T[mt]=function(Bn){return new Promise(function(kn,hr){$.push([mt,Bn,kn,hr])>1||me(mt,Bn)})},tn&&(T[mt]=tn(T[mt])))}function me(mt,tn){try{Se(y[mt](tn))}catch(Bn){St($[0][3],Bn)}}function Se(mt){mt.value instanceof ih?Promise.resolve(mt.value.v).then(ze,Ct):St($[0][2],mt)}function ze(mt){me("next",mt)}function Ct(mt){me("throw",mt)}function St(mt,tn){mt(tn),$.shift(),$.length&&me($[0][0],$[0][1])}};function T6(O,d){return w6(O,p=>{switch(p.kind){case Is.Unary:return k6(d,O,p);case Is.ServerStreaming:return C6(d,O,p);case Is.ClientStreaming:return mk(d,O,p);case Is.BiDiStreaming:return A6(d,O,p);default:return null}})}function k6(O,d,p){return async function(y,T){var $,q;const ne=await O.unary(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues);return($=T==null?void 0:T.onHeader)===null||$===void 0||$.call(T,ne.header),(q=T==null?void 0:T.onTrailer)===null||q===void 0||q.call(T,ne.trailer),ne.message}}function C6(O,d,p){return function(y,T){return gk(O.stream(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,x6([y]),T==null?void 0:T.contextValues),T)}}function mk(O,d,p){return async function(y,T){var $,q,ne,me,Se,ze;const Ct=await O.stream(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues);(Se=T==null?void 0:T.onHeader)===null||Se===void 0||Se.call(T,Ct.header);let St;try{for(var mt=!0,tn=lS(Ct.message),Bn;Bn=await tn.next(),$=Bn.done,!$;mt=!0)me=Bn.value,mt=!1,St=me}catch(kn){q={error:kn}}finally{try{!mt&&!$&&(ne=tn.return)&&await ne.call(tn)}finally{if(q)throw q.error}}if(!St)throw new u("protocol error: missing response message",o.Internal);return(ze=T==null?void 0:T.onTrailer)===null||ze===void 0||ze.call(T,Ct.trailer),St}}function A6(O,d,p){return function(y,T){return gk(O.stream(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues),T)}}function gk(O,d){const p=function(){var y,T;return pk(this,arguments,function*(){const $=yield ih(O);(y=d==null?void 0:d.onHeader)===null||y===void 0||y.call(d,$.header),yield ih(yield*hk(lS($.message))),(T=d==null?void 0:d.onTrailer)===null||T===void 0||T.call(d,$.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>p.next()})}}function _6(...O){const d=new AbortController,p=O.filter(T=>T!==void 0).concat(d.signal);for(const T of p){if(T.aborted){y.apply(T);break}T.addEventListener("abort",y)}function y(){d.signal.aborted||d.abort(G1(this));for(const T of p)T.removeEventListener("abort",y)}return d}function R6(O){const d=new AbortController,p=()=>{d.abort(new u("the operation timed out",o.DeadlineExceeded))};let y;return O!==void 0&&(O<=0?p():y=setTimeout(p,O)),{signal:d.signal,cleanup:()=>clearTimeout(y)}}function G1(O){if(!O.aborted)return;if(O.reason!==void 0)return O.reason;const d=new Error("This operation was aborted");return d.name="AbortError",d}function bk(){return{get(O){return O.id in this?this[O.id]:O.defaultValue},set(O,d){return this[O.id]=d,this},delete(O){return delete this[O.id],this}}}const uS=128;function yk(O){const d=new Headers,p=new TextDecoder().decode(O).split(`\r +`);for(const y of p){if(y==="")continue;const T=y.indexOf(":");if(T>0){const $=y.substring(0,T).trim(),q=y.substring(T+1).trim();d.append($,q)}}return d}const I6="Content-Type",D6="Grpc-Timeout",gi="Grpc-Status",di="Grpc-Message",N6="Grpc-Status-Details-Bin",P6="User-Agent",M6="X-User-Agent",L6="X-Grpc-Web",$6="application/grpc-web+proto",F6="application/grpc-web+json";class Uu extends F{constructor(d){super(),this.code=0,this.message="",this.details=[],rt.util.initPartial(d,this)}static fromBinary(d,p){return new Uu().fromBinary(d,p)}static fromJson(d,p){return new Uu().fromJson(d,p)}static fromJsonString(d,p){return new Uu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Uu,d,p)}}Uu.runtime=rt,Uu.typeName="google.rpc.Status",Uu.fields=rt.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Nl,repeated:!0}]);const B6="0";function Ba(O){var d;const p=O.get(N6);if(p!=null){const T=aS(p,Uu);if(T.code==0)return;const $=new u(T.message,T.code,O);return $.details=T.details.map(q=>({type:q.typeUrl.substring(q.typeUrl.lastIndexOf("/")+1),value:q.value})),$}const y=O.get(gi);if(y!=null){if(y===B6)return;const T=parseInt(y,10);return T in o?new u(decodeURIComponent((d=O.get(di))!==null&&d!==void 0?d:""),T,O):new u(`invalid grpc-status: ${y}`,o.Internal,O)}}function Y1(O,d,p){const y=typeof d=="string"?d:d.typeName,T=typeof p=="string"?p:p.name;return O.toString().replace(/\/?$/,`/${y}/${T}`)}function Ld(O,d){return d instanceof O?d:new O(d)}function vk(O,d){function p(y){return y.done===!0?y:{done:y.done,value:Ld(O,y.value)}}return{[Symbol.asyncIterator](){const y=d[Symbol.asyncIterator](),T={next:()=>y.next().then(p)};return y.throw!==void 0&&(T.throw=$=>y.throw($).then(p)),y.return!==void 0&&(T.return=$=>y.return($).then(p)),T}}}function Z1(O,d){var p;return(p=d==null?void 0:d.concat().reverse().reduce((y,T)=>T(y),O))!==null&&p!==void 0?p:O}function tl(O){var d;const p=Object.assign({},O);return(d=p.ignoreUnknownFields)!==null&&d!==void 0||(p.ignoreUnknownFields=!0),p}function cS(O,d,p,y){const T=d?dS(O.I,y):fS(O.I,p);return{parse:(d?dS(O.O,y):fS(O.O,p)).parse,serialize:T.serialize}}function dS(O,d){return{parse(p){try{return O.fromBinary(p,d)}catch(y){const T=y instanceof Error?y.message:String(y);throw new u(`parse binary: ${T}`,o.InvalidArgument)}},serialize(p){try{return p.toBinary(d)}catch(y){const T=y instanceof Error?y.message:String(y);throw new u(`serialize binary: ${T}`,o.Internal)}}}}function fS(O,d){var p,y;const T=(p=d==null?void 0:d.textEncoder)!==null&&p!==void 0?p:new TextEncoder,$=(y=d==null?void 0:d.textDecoder)!==null&&y!==void 0?y:new TextDecoder,q=tl(d);return{parse(ne){try{const me=$.decode(ne);return O.fromJsonString(me,q)}catch(me){throw u.from(me,o.InvalidArgument)}},serialize(ne){try{const me=ne.toJsonString(q);return T.encode(me)}catch(me){throw u.from(me,o.Internal)}}}}function Ok(O){const d=Z1(O.next,O.interceptors),[p,y,T]=hS(O),$=Object.assign(Object.assign({},O.req),{message:Ld(O.req.method.I,O.req.message),signal:p});return d($).then(q=>(T(),q),y)}function Sk(O){const d=Z1(O.next,O.interceptors),[p,y,T]=hS(O),$=Object.assign(Object.assign({},O.req),{message:vk(O.req.method.I,O.req.message),signal:p});let q=!1;return p.addEventListener("abort",function(){var ne,me;const Se=O.req.message[Symbol.asyncIterator]();q||(ne=Se.throw)===null||ne===void 0||ne.call(Se,this.reason).catch(()=>{}),(me=Se.return)===null||me===void 0||me.call(Se).catch(()=>{})}),d($).then(ne=>Object.assign(Object.assign({},ne),{message:{[Symbol.asyncIterator](){const me=ne.message[Symbol.asyncIterator]();return{next(){return me.next().then(Se=>(Se.done==!0&&(q=!0,T()),Se),y)}}}}}),y)}function hS(O){const{signal:d,cleanup:p}=R6(O.timeoutMs),y=_6(O.signal,d);return[y.signal,function($){const q=u.from(d.aborted?G1(d):$);return y.abort(q),p(),Promise.reject(q)},function(){p(),y.abort()}]}function Co(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function Ek(O,d){const p=Ba(O);if(p)throw d.forEach((y,T)=>{p.metadata.append(T,y)}),p}function Ao(O,d,p,y){const T=new Headers(p??{});return T.set(I6,O?$6:F6),T.set(L6,"1"),T.set(M6,"connect-es/1.4.0"),y&&T.set(P6,"connect-es/1.4.0"),d!==void 0&&T.set(D6,`${d}m`),T}function U6(O){switch(O){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function pS(O,d){var p;if(O>=200&&O<300){const y=Ba(d);if(y)throw y;return{foundStatus:d.has(gi)}}throw new u(decodeURIComponent((p=d.get(di))!==null&&p!==void 0?p:`HTTP ${O}`),U6(O),d)}var no=globalThis&&globalThis.__await||function(O){return this instanceof no?(this.v=O,this):new no(O)},X1=globalThis&&globalThis.__asyncGenerator||function(O,d,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=p.apply(O,d||[]),T,$=[];return T={},ne("next"),ne("throw"),ne("return",q),T[Symbol.asyncIterator]=function(){return this},T;function q(mt){return function(tn){return Promise.resolve(tn).then(mt,Ct)}}function ne(mt,tn){y[mt]&&(T[mt]=function(Bn){return new Promise(function(kn,hr){$.push([mt,Bn,kn,hr])>1||me(mt,Bn)})},tn&&(T[mt]=tn(T[mt])))}function me(mt,tn){try{Se(y[mt](tn))}catch(Bn){St($[0][3],Bn)}}function Se(mt){mt.value instanceof no?Promise.resolve(mt.value.v).then(ze,Ct):St($[0][2],mt)}function ze(mt){me("next",mt)}function Ct(mt){me("throw",mt)}function St(mt,tn){mt(tn),$.shift(),$.length&&me($[0][0],$[0][1])}};function mS(O){var d;Co();const p=(d=O.useBinaryFormat)!==null&&d!==void 0?d:!0;return{async unary(y,T,$,q,ne,me,Se){var ze;const{serialize:Ct,parse:St}=cS(T,p,O.jsonOptions,O.binaryOptions);return q=q===void 0?O.defaultTimeoutMs:q<=0?void 0:q,await Ok({interceptors:O.interceptors,signal:$,timeoutMs:q,req:{stream:!1,service:y,method:T,url:Y1(O.baseUrl,y,T),init:{method:"POST",credentials:(ze=O.credentials)!==null&&ze!==void 0?ze:"same-origin",redirect:"error",mode:"cors"},header:Ao(p,q,ne,!1),contextValues:Se??bk(),message:me},next:async mt=>{var tn;const kn=await((tn=O.fetch)!==null&&tn!==void 0?tn:globalThis.fetch)(mt.url,Object.assign(Object.assign({},mt.init),{headers:mt.header,signal:mt.signal,body:q1(0,Ct(mt.message))}));if(pS(kn.status,kn.headers),!kn.body)throw"missing response body";const hr=sS(kn.body).getReader();let Oi,Cr;for(;;){const qr=await hr.read();if(qr.done)break;const{flags:oi,data:$r}=qr.value;if(oi===uS){if(Oi!==void 0)throw"extra trailer";Oi=yk($r);continue}if(Cr!==void 0)throw"extra message";Cr=St($r)}if(Oi===void 0)throw"missing trailer";if(Ek(Oi,kn.headers),Cr===void 0)throw"missing message";return{stream:!1,service:y,method:T,header:kn.headers,message:Cr,trailer:Oi}}})},async stream(y,T,$,q,ne,me,Se){var ze;const{serialize:Ct,parse:St}=cS(T,p,O.jsonOptions,O.binaryOptions);function mt(Bn,kn,hr,Oi){return X1(this,arguments,function*(){const qr=sS(Bn).getReader();if(kn){if(!(yield no(qr.read())).done)throw"extra data for trailers-only";return yield no(void 0)}let oi=!1;for(;;){const $r=yield no(qr.read());if($r.done)break;const{flags:Mo,data:bh}=$r.value;if((Mo&uS)===uS){if(oi)throw"extra trailer";oi=!0;const Qp=yk(bh);Ek(Qp,Oi),Qp.forEach((SD,ED)=>hr.set(ED,SD));continue}if(oi)throw"extra message";yield yield no(St(bh))}if(!oi)throw"missing trailer"})}async function tn(Bn){if(T.kind!=Is.ServerStreaming)throw"The fetch API does not support streaming request bodies";const kn=await Bn[Symbol.asyncIterator]().next();if(kn.done==!0)throw"missing request message";return q1(0,Ct(kn.value))}return q=q===void 0?O.defaultTimeoutMs:q<=0?void 0:q,Sk({interceptors:O.interceptors,signal:$,timeoutMs:q,req:{stream:!0,service:y,method:T,url:Y1(O.baseUrl,y,T),init:{method:"POST",credentials:(ze=O.credentials)!==null&&ze!==void 0?ze:"same-origin",redirect:"error",mode:"cors"},header:Ao(p,q,ne,!1),contextValues:Se??bk(),message:me},next:async Bn=>{var kn;const Oi=await((kn=O.fetch)!==null&&kn!==void 0?kn:globalThis.fetch)(Bn.url,Object.assign(Object.assign({},Bn.init),{headers:Bn.header,signal:Bn.signal,body:await tn(Bn.message)})),{foundStatus:Cr}=pS(Oi.status,Oi.headers);if(!Oi.body)throw"missing response body";const qr=new Headers;return Object.assign(Object.assign({},Bn),{header:Oi.headers,trailer:qr,message:mt(Oi.body,Cr,qr,Oi.headers)})}})}}}const vn=rt.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),Fl=rt.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),gS=rt.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:ro},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:zu}}]),Uc=rt.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:$0},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:K1,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:Dn},{no:6,name:"is_removed",kind:"scalar",T:8}]),K1=rt.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:J1},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:bS,repeated:!0},{no:4,name:"presence_change",kind:"message",T:L0}]),J1=rt.makeMessageType("yorkie.v1.ChangeID",()=>[{no:1,name:"client_seq",kind:"scalar",T:13},{no:2,name:"server_seq",kind:"scalar",T:3,L:1},{no:3,name:"lamport",kind:"scalar",T:3,L:1},{no:4,name:"actor_id",kind:"scalar",T:12}]),bS=rt.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:wk,oneof:"body"},{no:2,name:"add",kind:"message",T:yS,oneof:"body"},{no:3,name:"move",kind:"message",T:P0,oneof:"body"},{no:4,name:"remove",kind:"message",T:ah,oneof:"body"},{no:5,name:"edit",kind:"message",T:xk,oneof:"body"},{no:6,name:"select",kind:"message",T:Tk,oneof:"body"},{no:7,name:"style",kind:"message",T:vS,oneof:"body"},{no:8,name:"increase",kind:"message",T:eb,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:tb,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:OS,oneof:"body"}]),wk=rt.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:zc},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Set"}),yS=rt.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"prev_created_at",kind:"message",T:Dn},{no:3,name:"value",kind:"message",T:zc},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Add"}),P0=rt.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"prev_created_at",kind:"message",T:Dn},{no:3,name:"created_at",kind:"message",T:Dn},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Move"}),ah=rt.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Remove"}),xk=rt.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:sh},{no:3,name:"to",kind:"message",T:sh},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:Dn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),Tk=rt.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:sh},{no:3,name:"to",kind:"message",T:sh},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Select"}),vS=rt.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:sh},{no:3,name:"to",kind:"message",T:sh},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:Dn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}}],{localName:"Operation_Style"}),eb=rt.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"value",kind:"message",T:zc},{no:3,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Increase"}),tb=rt.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:M0},{no:3,name:"to",kind:"message",T:M0},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}},{no:5,name:"contents",kind:"message",T:Ak,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_TreeEdit"}),OS=rt.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:M0},{no:3,name:"to",kind:"message",T:M0},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:Dn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}}],{localName:"Operation_TreeStyle"}),zc=rt.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"moved_at",kind:"message",T:Dn},{no:3,name:"removed_at",kind:"message",T:Dn},{no:4,name:"type",kind:"enum",T:rt.getEnumType(vn)},{no:5,name:"value",kind:"scalar",T:12}]),ro=rt.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:nb,oneof:"body"},{no:2,name:"json_array",kind:"message",T:kk,oneof:"body"},{no:3,name:"primitive",kind:"message",T:SS,oneof:"body"},{no:5,name:"text",kind:"message",T:io,oneof:"body"},{no:6,name:"counter",kind:"message",T:rb,oneof:"body"},{no:7,name:"tree",kind:"message",T:Ap,oneof:"body"}]),nb=rt.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:ES,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_JSONObject"}),kk=rt.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:ib,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_JSONArray"}),SS=rt.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:Dn},{no:4,name:"moved_at",kind:"message",T:Dn},{no:5,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Primitive"}),io=rt.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:Ck,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Text"}),rb=rt.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:Dn},{no:4,name:"moved_at",kind:"message",T:Dn},{no:5,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Counter"}),Ap=rt.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:xS,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Tree"}),ES=rt.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:ro}]),ib=rt.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:ib},{no:2,name:"element",kind:"message",T:ro}]),ab=rt.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:Dn},{no:3,name:"is_removed",kind:"scalar",T:8}]),Ck=rt.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:wS},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:Dn},{no:4,name:"ins_prev_id",kind:"message",T:wS},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ab}}]),wS=rt.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"offset",kind:"scalar",T:5}]),xS=rt.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Bl},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:Dn},{no:5,name:"ins_prev_id",kind:"message",T:Bl},{no:6,name:"ins_next_id",kind:"message",T:Bl},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ab}}]),Ak=rt.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:xS,repeated:!0}]),Bl=rt.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"offset",kind:"scalar",T:5}]),M0=rt.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Bl},{no:2,name:"left_sibling_id",kind:"message",T:Bl}]);rt.makeMessageType("yorkie.v1.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"created_at",kind:"message",T:ds}]),rt.makeMessageType("yorkie.v1.Project",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"public_key",kind:"scalar",T:9},{no:4,name:"secret_key",kind:"scalar",T:9},{no:5,name:"auth_webhook_url",kind:"scalar",T:9},{no:6,name:"auth_webhook_methods",kind:"scalar",T:9,repeated:!0},{no:7,name:"client_deactivate_threshold",kind:"scalar",T:9},{no:8,name:"created_at",kind:"message",T:ds},{no:9,name:"updated_at",kind:"message",T:ds}]),rt.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:to},{no:2,name:"auth_webhook_url",kind:"message",T:to},{no:3,name:"auth_webhook_methods",kind:"message",T:z6},{no:4,name:"client_deactivate_threshold",kind:"message",T:to}]);const z6=rt.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"});rt.makeMessageType("yorkie.v1.DocumentSummary",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"snapshot",kind:"scalar",T:9},{no:4,name:"created_at",kind:"message",T:ds},{no:5,name:"accessed_at",kind:"message",T:ds},{no:6,name:"updated_at",kind:"message",T:ds}]);const L0=rt.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(_p)},{no:2,name:"presence",kind:"message",T:zu}]),_p=rt.makeEnum("yorkie.v1.PresenceChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED",localName:"UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_PUT",localName:"PUT"},{no:2,name:"CHANGE_TYPE_DELETE",localName:"DELETE"},{no:3,name:"CHANGE_TYPE_CLEAR",localName:"CLEAR"}]),zu=rt.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),$0=rt.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),sh=rt.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),Dn=rt.makeMessageType("yorkie.v1.TimeTicket",()=>[{no:1,name:"lamport",kind:"scalar",T:3,L:1},{no:2,name:"delimiter",kind:"scalar",T:13},{no:3,name:"actor_id",kind:"scalar",T:12}]),j6=rt.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Rp=rt.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(Fl)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:j6}]),Ul=rt.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),_k=rt.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),H6=rt.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),V6=rt.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),W6=rt.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Uc}]),Q6=rt.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Uc}]),q6=rt.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Uc},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),Ip=rt.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:Uc}]),He=rt.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),bt=rt.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:ct,oneof:"body"},{no:2,name:"event",kind:"message",T:Rp,oneof:"body"}]),ct=rt.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),mn=rt.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Uc}]),nr=rt.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Uc}]),Qr=rt.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Uc},{no:4,name:"push_only",kind:"scalar",T:8}]),xa=rt.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Uc}]),fi=rt.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),TS=rt.makeMessageType("yorkie.v1.BroadcastResponse",[]),G6={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:Ul,O:_k,kind:Is.Unary},deactivateClient:{name:"DeactivateClient",I:H6,O:V6,kind:Is.Unary},attachDocument:{name:"AttachDocument",I:W6,O:Q6,kind:Is.Unary},detachDocument:{name:"DetachDocument",I:q6,O:Ip,kind:Is.Unary},removeDocument:{name:"RemoveDocument",I:mn,O:nr,kind:Is.Unary},pushPullChanges:{name:"PushPullChanges",I:Qr,O:xa,kind:Is.Unary},watchDocument:{name:"WatchDocument",I:He,O:bt,kind:Is.ServerStreaming},broadcast:{name:"Broadcast",I:fi,O:TS,kind:Is.Unary}}};/** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. @@ -242,19 +242,19 @@ Error generating stack: `+a.message+` * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 - */var Mi=null;try{Mi=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Zn(O,d,p){this.low=O|0,this.high=d|0,this.unsigned=!!p}Zn.prototype.__isLong__,Object.defineProperty(Zn.prototype,"__isLong__",{value:!0});function fs(O){return(O&&O.__isLong__)===!0}function oh(O){var d=Math.clz32(O&-O);return O?31-d:d}Zn.isLong=fs;var F0={},B0={};function kr(O,d){var p,y,T;return d?(O>>>=0,(T=0<=O&&O<256)&&(y=B0[O],y)?y:(p=Mr(O,0,!0),T&&(B0[O]=p),p)):(O|=0,(T=-128<=O&&O<128)&&(y=F0[O],y)?y:(p=Mr(O,O<0?-1:0,!1),T&&(F0[O]=p),p))}Zn.fromInt=kr;function nl(O,d){if(isNaN(O))return d?ju:rl;if(d){if(O<0)return ju;if(O>=U0)return j0}else{if(O<=-CS)return ao;if(O+1>=CS)return $d}return O<0?nl(-O,d).neg():Mr(O%_o|0,O/_o|0,d)}Zn.fromNumber=nl;function Mr(O,d,p){return new Zn(O,d,p)}Zn.fromBits=Mr;var lh=Math.pow;function kS(O,d,p){if(O.length===0)throw Error("empty string");if(typeof d=="number"?(p=d,d=!1):d=!!d,O==="NaN"||O==="Infinity"||O==="+Infinity"||O==="-Infinity")return d?ju:rl;if(p=p||10,p<2||360)throw Error("interior hyphen");if(y===0)return kS(O.substring(1),d,p).neg();for(var T=nl(lh(p,8)),$=rl,q=0;q>>0:this.low},zt.toNumber=function(){return this.unsigned?(this.high>>>0)*_o+(this.low>>>0):this.high*_o+(this.low>>>0)},zt.toString=function(d){if(d=d||10,d<2||36>>0,ze=Se.toString(d);if(q=me,q.isZero())return ze+ne;for(;ze.length<6;)ze="0"+ze;ne=""+ze+ne}},zt.getHighBits=function(){return this.high},zt.getHighBitsUnsigned=function(){return this.high>>>0},zt.getLowBits=function(){return this.low},zt.getLowBitsUnsigned=function(){return this.low>>>0},zt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(ao)?64:this.neg().getNumBitsAbs();for(var d=this.high!=0?this.high:this.low,p=31;p>0&&!(d&1<=0},zt.isOdd=function(){return(this.low&1)===1},zt.isEven=function(){return(this.low&1)===0},zt.equals=function(d){return fs(d)||(d=zl(d)),this.unsigned!==d.unsigned&&this.high>>>31===1&&d.high>>>31===1?!1:this.high===d.high&&this.low===d.low},zt.eq=zt.equals,zt.notEquals=function(d){return!this.eq(d)},zt.neq=zt.notEquals,zt.ne=zt.notEquals,zt.lessThan=function(d){return this.comp(d)<0},zt.lt=zt.lessThan,zt.lessThanOrEqual=function(d){return this.comp(d)<=0},zt.lte=zt.lessThanOrEqual,zt.le=zt.lessThanOrEqual,zt.greaterThan=function(d){return this.comp(d)>0},zt.gt=zt.greaterThan,zt.greaterThanOrEqual=function(d){return this.comp(d)>=0},zt.gte=zt.greaterThanOrEqual,zt.ge=zt.greaterThanOrEqual,zt.compare=function(d){if(fs(d)||(d=zl(d)),this.eq(d))return 0;var p=this.isNegative(),y=d.isNegative();return p&&!y?-1:!p&&y?1:this.unsigned?d.high>>>0>this.high>>>0||d.high===this.high&&d.low>>>0>this.low>>>0?-1:1:this.sub(d).isNegative()?-1:1},zt.comp=zt.compare,zt.negate=function(){return!this.unsigned&&this.eq(ao)?ao:this.not().add(zc)},zt.neg=zt.negate,zt.add=function(d){fs(d)||(d=zl(d));var p=this.high>>>16,y=this.high&65535,T=this.low>>>16,$=this.low&65535,q=d.high>>>16,ne=d.high&65535,me=d.low>>>16,Se=d.low&65535,ze=0,Ct=0,St=0,mt=0;return mt+=$+Se,St+=mt>>>16,mt&=65535,St+=T+me,Ct+=St>>>16,St&=65535,Ct+=y+ne,ze+=Ct>>>16,Ct&=65535,ze+=p+q,ze&=65535,Mr(St<<16|mt,ze<<16|Ct,this.unsigned)},zt.subtract=function(d){return fs(d)||(d=zl(d)),this.add(d.neg())},zt.sub=zt.subtract,zt.multiply=function(d){if(this.isZero())return this;if(fs(d)||(d=zl(d)),Mi){var p=Mi.mul(this.low,this.high,d.low,d.high);return Mr(p,Mi.get_high(),this.unsigned)}if(d.isZero())return this.unsigned?ju:rl;if(this.eq(ao))return d.isOdd()?ao:rl;if(d.eq(ao))return this.isOdd()?ao:rl;if(this.isNegative())return d.isNegative()?this.neg().mul(d.neg()):this.neg().mul(d).neg();if(d.isNegative())return this.mul(d.neg()).neg();if(this.lt(z0)&&d.lt(z0))return nl(this.toNumber()*d.toNumber(),this.unsigned);var y=this.high>>>16,T=this.high&65535,$=this.low>>>16,q=this.low&65535,ne=d.high>>>16,me=d.high&65535,Se=d.low>>>16,ze=d.low&65535,Ct=0,St=0,mt=0,tn=0;return tn+=q*ze,mt+=tn>>>16,tn&=65535,mt+=$*ze,St+=mt>>>16,mt&=65535,mt+=q*Se,St+=mt>>>16,mt&=65535,St+=T*ze,Ct+=St>>>16,St&=65535,St+=$*Se,Ct+=St>>>16,St&=65535,St+=q*me,Ct+=St>>>16,St&=65535,Ct+=y*ze+T*Se+$*me+q*ne,Ct&=65535,Mr(mt<<16|tn,Ct<<16|St,this.unsigned)},zt.mul=zt.multiply,zt.divide=function(d){if(fs(d)||(d=zl(d)),d.isZero())throw Error("division by zero");if(Mi){if(!this.unsigned&&this.high===-2147483648&&d.low===-1&&d.high===-1)return this;var p=(this.unsigned?Mi.div_u:Mi.div_s)(this.low,this.high,d.low,d.high);return Mr(p,Mi.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?ju:rl;var y,T,$;if(this.unsigned){if(d.unsigned||(d=d.toUnsigned()),d.gt(this))return ju;if(d.gt(this.shru(1)))return AS;$=ju}else{if(this.eq(ao)){if(d.eq(zc)||d.eq(uh))return ao;if(d.eq(ao))return zc;var q=this.shr(1);return y=q.div(d).shl(1),y.eq(rl)?d.isNegative()?zc:uh:(T=this.sub(d.mul(y)),$=y.add(T.div(d)),$)}else if(d.eq(ao))return this.unsigned?ju:rl;if(this.isNegative())return d.isNegative()?this.neg().div(d.neg()):this.neg().div(d).neg();if(d.isNegative())return this.div(d.neg()).neg();$=rl}for(T=this;T.gte(d);){y=Math.max(1,Math.floor(T.toNumber()/d.toNumber()));for(var ne=Math.ceil(Math.log(y)/Math.LN2),me=ne<=48?1:lh(2,ne-48),Se=nl(y),ze=Se.mul(d);ze.isNegative()||ze.gt(T);)y-=me,Se=nl(y,this.unsigned),ze=Se.mul(d);Se.isZero()&&(Se=zc),$=$.add(Se),T=T.sub(ze)}return $},zt.div=zt.divide,zt.modulo=function(d){if(fs(d)||(d=zl(d)),Mi){var p=(this.unsigned?Mi.rem_u:Mi.rem_s)(this.low,this.high,d.low,d.high);return Mr(p,Mi.get_high(),this.unsigned)}return this.sub(this.div(d).mul(d))},zt.mod=zt.modulo,zt.rem=zt.modulo,zt.not=function(){return Mr(~this.low,~this.high,this.unsigned)},zt.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},zt.clz=zt.countLeadingZeros,zt.countTrailingZeros=function(){return this.low?oh(this.low):oh(this.high)+32},zt.ctz=zt.countTrailingZeros,zt.and=function(d){return fs(d)||(d=zl(d)),Mr(this.low&d.low,this.high&d.high,this.unsigned)},zt.or=function(d){return fs(d)||(d=zl(d)),Mr(this.low|d.low,this.high|d.high,this.unsigned)},zt.xor=function(d){return fs(d)||(d=zl(d)),Mr(this.low^d.low,this.high^d.high,this.unsigned)},zt.shiftLeft=function(d){return fs(d)&&(d=d.toInt()),(d&=63)===0?this:d<32?Mr(this.low<>>32-d,this.unsigned):Mr(0,this.low<>>d|this.high<<32-d,this.high>>d,this.unsigned):Mr(this.high>>d-32,this.high>=0?0:-1,this.unsigned)},zt.shr=zt.shiftRight,zt.shiftRightUnsigned=function(d){return fs(d)&&(d=d.toInt()),(d&=63)===0?this:d<32?Mr(this.low>>>d|this.high<<32-d,this.high>>>d,this.unsigned):d===32?Mr(this.high,0,this.unsigned):Mr(this.high>>>d-32,0,this.unsigned)},zt.shru=zt.shiftRightUnsigned,zt.shr_u=zt.shiftRightUnsigned,zt.rotateLeft=function(d){var p;return fs(d)&&(d=d.toInt()),(d&=63)===0?this:d===32?Mr(this.high,this.low,this.unsigned):d<32?(p=32-d,Mr(this.low<>>p,this.high<>>p,this.unsigned)):(d-=32,p=32-d,Mr(this.high<>>p,this.low<>>p,this.unsigned))},zt.rotl=zt.rotateLeft,zt.rotateRight=function(d){var p;return fs(d)&&(d=d.toInt()),(d&=63)===0?this:d===32?Mr(this.high,this.low,this.unsigned):d<32?(p=32-d,Mr(this.high<>>d,this.low<>>d,this.unsigned)):(d-=32,p=32-d,Mr(this.low<>>d,this.high<>>d,this.unsigned))},zt.rotr=zt.rotateRight,zt.toSigned=function(){return this.unsigned?Mr(this.low,this.high,!1):this},zt.toUnsigned=function(){return this.unsigned?this:Mr(this.low,this.high,!0)},zt.toBytes=function(d){return d?this.toBytesLE():this.toBytesBE()},zt.toBytesLE=function(){var d=this.high,p=this.low;return[p&255,p>>>8&255,p>>>16&255,p>>>24,d&255,d>>>8&255,d>>>16&255,d>>>24]},zt.toBytesBE=function(){var d=this.high,p=this.low;return[d>>>24,d>>>16&255,d>>>8&255,d&255,p>>>24,p>>>16&255,p>>>8&255,p&255]},Zn.fromBytes=function(d,p,y){return y?Zn.fromBytesLE(d,p):Zn.fromBytesBE(d,p)},Zn.fromBytesLE=function(d,p){return new Zn(d[0]|d[1]<<8|d[2]<<16|d[3]<<24,d[4]|d[5]<<8|d[6]<<16|d[7]<<24,p)},Zn.fromBytesBE=function(d,p){return new Zn(d[4]<<24|d[5]<<16|d[6]<<8|d[7],d[0]<<24|d[1]<<16|d[2]<<8|d[3],p)};const q6=rt.makeMessageType("google.rpc.ErrorInfo",()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"domain",kind:"scalar",T:9},{no:3,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}]);rt.makeMessageType("google.rpc.RetryInfo",()=>[{no:1,name:"retry_delay",kind:"message",T:Lu}]),rt.makeMessageType("google.rpc.DebugInfo",()=>[{no:1,name:"stack_entries",kind:"scalar",T:9,repeated:!0},{no:2,name:"detail",kind:"scalar",T:9}]),rt.makeMessageType("google.rpc.QuotaFailure",()=>[{no:1,name:"violations",kind:"message",T:ob,repeated:!0}]);const ob=rt.makeMessageType("google.rpc.QuotaFailure.Violation",()=>[{no:1,name:"subject",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"QuotaFailure_Violation"});rt.makeMessageType("google.rpc.PreconditionFailure",()=>[{no:1,name:"violations",kind:"message",T:lb,repeated:!0}]);const lb=rt.makeMessageType("google.rpc.PreconditionFailure.Violation",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"subject",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9}],{localName:"PreconditionFailure_Violation"});rt.makeMessageType("google.rpc.BadRequest",()=>[{no:1,name:"field_violations",kind:"message",T:_S,repeated:!0}]);const _S=rt.makeMessageType("google.rpc.BadRequest.FieldViolation",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"BadRequest_FieldViolation"});rt.makeMessageType("google.rpc.RequestInfo",()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"serving_data",kind:"scalar",T:9}]),rt.makeMessageType("google.rpc.ResourceInfo",()=>[{no:1,name:"resource_type",kind:"scalar",T:9},{no:2,name:"resource_name",kind:"scalar",T:9},{no:3,name:"owner",kind:"scalar",T:9},{no:4,name:"description",kind:"scalar",T:9}]),rt.makeMessageType("google.rpc.Help",()=>[{no:1,name:"links",kind:"message",T:G6,repeated:!0}]);const G6=rt.makeMessageType("google.rpc.Help.Link",()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}],{localName:"Help_Link"});rt.makeMessageType("google.rpc.LocalizedMessage",()=>[{no:1,name:"locale",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]);var wr=(O=>(O.Ok="ok",O.ErrClientNotActivated="ErrClientNotActivated",O.ErrClientNotFound="ErrClientNotFound",O.ErrUnimplemented="ErrUnimplemented",O.Unsupported="unsupported",O.ErrDocumentNotAttached="ErrDocumentNotAttached",O.ErrDocumentNotDetached="ErrDocumentNotDetached",O.ErrDocumentRemoved="ErrDocumentRemoved",O.ErrInvalidObjectKey="ErrInvalidObjectKey",O.ErrInvalidArgument="ErrInvalidArgument",O))(wr||{});class zr extends Error{constructor(d,p){super(p),s(this,"name","YorkieError"),s(this,"stack"),this.code=d,this.message=p,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function jl(O){if(O instanceof Map){const d=Array.from(O);return new Map(JSON.parse(JSON.stringify(d)))}return JSON.parse(JSON.stringify(O))}const fa=O=>O?Object.entries(O).length===0:!0,Ji=O=>{const d={};for(const[p,y]of Object.entries(O))d[p]=JSON.stringify(y);return d},Ip=O=>{const d={};for(const[p,y]of Object.entries(O))d[p]=JSON.parse(y);return d};var Fd=(O=>(O.Put="put",O.Clear="clear",O))(Fd||{});class ub{constructor(d,p){s(this,"context"),s(this,"presence"),this.context=d,this.presence=p}set(d,p){for(const y of Object.keys(d))this.presence[y]=d[y];this.context.setPresenceChange({type:"put",presence:jl(this.presence)}),this.context.setReversePresence(d,p)}get(d){return this.presence[d]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const cb="000000000000000000000000",RS="FFFFFFFFFFFFFFFFFFFFFFFF";class Ta{constructor(d,p,y){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=d,this.delimiter=p,this.actorID=y}static of(d,p,y){return new Ta(d,p,y)}static fromStruct(d){return Ta.of(Zn.fromString(d.lamport,!0),d.delimiter,d.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(d){return new Ta(this.lamport,this.delimiter,d)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(d){return this.compare(d)>0}equals(d){return this.compare(d)===0}compare(d){if(this.lamport.greaterThan(d.lamport))return 1;if(d.lamport.greaterThan(this.lamport))return-1;const p=this.actorID.localeCompare(d.actorID);return p!==0?p:this.delimiter>d.delimiter?1:d.delimiter>this.delimiter?-1:0}}const H0=0,Dp=4294967295,V0=Zn.MAX_VALUE,Is=new Ta(Zn.fromNumber(0),H0,cb);new Ta(Zn.fromNumber(1),H0+1,cb);const Bd=new Ta(V0,Dp,RS);var ea=(O=>(O[O.Trivial=0]="Trivial",O[O.Debug=1]="Debug",O[O.Info=2]="Info",O[O.Warn=3]="Warn",O[O.Error=4]="Error",O[O.Fatal=5]="Fatal",O))(ea||{});let ch=2;function IS(O){ch=O}const Mt={trivial:(...O)=>{ch>0||typeof console<"u"&&console.log("YORKIE T:",...O)},debug:(...O)=>{ch>1||typeof console<"u"&&console.log("YORKIE D:",...O)},info:(...O)=>{ch>2||typeof console<"u"&&console.log("YORKIE I:",...O)},warn:(...O)=>{ch>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...O):console.log("YORKIE W:",...O))},error:(...O)=>{ch>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...O):console.log("YORKIE E:",...O))},fatal:(O,...d)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...d):console.log("YORKIE F:",...d)),new Error(`YORKIE F: ${O}`)},isEnabled:O=>ch<=O};function Hu(O){return O.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(d){switch(d){case'"':case"\\":return"\\"+d;case` -`:return"\\n";case"\r":return"\\r";case"\f":return"\\f";case"\b":return"\\b";case" ":return"\\t";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return d}})}class W0{constructor(d){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=d}getCreatedAt(){return this.createdAt}getID(){return this.createdAt}getMovedAt(){return this.movedAt}getRemovedAt(){return this.removedAt}getPositionedAt(){return this.movedAt?this.movedAt:this.createdAt}setMovedAt(d){return!this.movedAt||d&&d.after(this.movedAt)?(this.movedAt=d,!0):!1}setRemovedAt(d){this.removedAt=d}remove(d){return d&&d.after(this.getPositionedAt())&&(!this.removedAt||d.after(this.removedAt))?(this.removedAt=d,!0):!1}isRemoved(){return!!this.removedAt}}class Hl extends W0{constructor(d){super(d)}}class dh{constructor(d,p){s(this,"strKey"),s(this,"value"),this.strKey=d,this.value=p}static of(d,p){return new dh(d,p)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(d){return this.value.remove(d)}}class Np{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Np}set(d,p,y){let T;const $=this.nodeMapByKey.get(d);$!=null&&!$.isRemoved()&&$.remove(y)&&(T=$.getValue());const q=dh.of(d,p);return this.nodeMapByCreatedAt.set(p.getCreatedAt().toIDString(),q),($==null||y.after($.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(d,q),p.setMovedAt(y)),T}delete(d,p){this.nodeMapByCreatedAt.has(d.toIDString())||Mt.fatal(`fail to find ${d.toIDString()}`);const y=this.nodeMapByCreatedAt.get(d.toIDString());return y.remove(p),y.getValue()}subPathOf(d){const p=this.nodeMapByCreatedAt.get(d.toIDString());if(p)return p.getStrKey()}purge(d){const p=this.nodeMapByCreatedAt.get(d.getCreatedAt().toIDString());if(!p){Mt.fatal(`fail to find ${d.getCreatedAt().toIDString()}`);return}const y=this.nodeMapByKey.get(p.getStrKey());p===y&&this.nodeMapByKey.delete(y.getStrKey()),this.nodeMapByCreatedAt.delete(p.getValue().getCreatedAt().toIDString())}deleteByKey(d,p){const y=this.nodeMapByKey.get(d);if(y!=null&&y.remove(p))return y.getValue()}has(d){const p=this.nodeMapByKey.get(d);return p==null?!1:!p.isRemoved()}getByID(d){return this.nodeMapByCreatedAt.get(d.toIDString())}get(d){const p=this.nodeMapByKey.get(d);if(!(!p||p.isRemoved()))return p}*[Symbol.iterator](){for(const[,d]of this.nodeMapByKey)yield d}}class se extends Hl{constructor(d,p){super(d),s(this,"memberNodes"),this.memberNodes=p}static create(d,p){if(!p)return new se(d,Np.create());const y=Np.create();for(const[T,$]of Object.entries(p))y.set(T,$.deepcopy(),$.getCreatedAt());return new se(d,y)}subPathOf(d){return this.memberNodes.subPathOf(d)}purge(d){this.memberNodes.purge(d)}set(d,p,y){return this.memberNodes.set(d,p,y)}delete(d,p){return this.memberNodes.delete(d,p)}deleteByKey(d,p){return this.memberNodes.deleteByKey(d,p)}get(d){const p=this.memberNodes.get(d);return p==null?void 0:p.getValue()}getByID(d){const p=this.memberNodes.getByID(d);return p==null?void 0:p.getValue()}has(d){return this.memberNodes.has(d)}toJSON(){const d=[];for(const[p,y]of this)d.push(`"${Hu(p)}":${y.toJSON()}`);return`{${d.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const d={};for(const[p,y]of this){const{createdAt:T,value:$,type:q}=y.toJSForTest();d[p]={key:p,createdAt:T,value:$,type:q}}return{createdAt:this.getCreatedAt().toTestString(),value:d,type:"YORKIE_OBJECT"}}getKeys(){const d=Array();for(const[p]of this)d.push(p);return d}toSortedJSON(){var d;const p=Array();for(const[T]of this)p.push(T);const y=[];for(const T of p.sort()){const $=(d=this.memberNodes.get(T))==null?void 0:d.getValue();y.push(`"${Hu(T)}":${$.toSortedJSON()}`)}return`{${y.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const d=se.create(this.getCreatedAt());for(const p of this.memberNodes)d.memberNodes.set(p.getStrKey(),p.getValue().deepcopy(),this.getPositionedAt());return d.remove(this.getRemovedAt()),d}getDescendants(d){for(const p of this.memberNodes){const y=p.getValue();if(d(y,this))return;y instanceof Hl&&y.getDescendants(d)}}*[Symbol.iterator](){const d=new Set;for(const p of this.memberNodes)d.has(p.getStrKey())||(d.add(p.getStrKey()),p.isRemoved()||(yield[p.getStrKey(),p.getValue()]))}}var Lr=(O=>(O.Local="local",O.Remote="remote",O.UndoRedo="undoredo",O))(Lr||{});class so{constructor(d,p){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=d,this.executedAt=p}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(d){this.executedAt&&(this.executedAt=this.executedAt.setActor(d))}setExecutedAt(d){this.executedAt=d}}class Ro{constructor(d){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=d,this.initWeight()}getNodeString(){return`${this.weight}${this.value}`}getValue(){return this.value}getLeftWeight(){return this.hasLeft()?this.left.getWeight():0}getRightWeight(){return this.hasRight()?this.right.getWeight():0}getWeight(){return this.weight}getLeft(){return this.left}getRight(){return this.right}getParent(){return this.parent}hasLeft(){return!!this.left}hasRight(){return!!this.right}hasParent(){return!!this.parent}setLeft(d){this.left=d}setRight(d){this.right=d}setParent(d){this.parent=d}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(d){this.weight+=d}initWeight(){this.weight=this.getLength()}}class ur{constructor(d){s(this,"root"),this.root=d}get length(){return this.root?this.root.getWeight():0}find(d){if(!this.root||d<0)return[void 0,0];let p=this.root;for(;;)if(p.hasLeft()&&d<=p.getLeftWeight())p=p.getLeft();else if(p.hasRight()&&p.getLeftWeight()+p.getLength()p.getLength()&&Mt.fatal(`out of index range: pos: ${d} > node.length: ${p.getLength()}`),[p,d]}indexOf(d){if(!d||d!==this.root&&!d.hasLinks())return-1;let p=0,y=d,T;for(;y;)(!T||T===y.getRight())&&(p+=y.getLength()+(y.hasLeft()?y.getLeftWeight():0)),T=y,y=y.getParent();return p-d.getLength()}getRoot(){return this.root}insert(d){return this.insertAfter(this.root,d)}insertAfter(d,p){return d?(this.splayNode(d),this.root=p,p.setRight(d.getRight()),d.hasRight()&&d.getRight().setParent(p),p.setLeft(d),d.setParent(p),d.setRight(),this.updateWeight(d),this.updateWeight(p),p):(this.root=p,p)}updateWeight(d){d.initWeight(),d.hasLeft()&&d.increaseWeight(d.getLeftWeight()),d.hasRight()&&d.increaseWeight(d.getRightWeight())}updateTreeWeight(d){for(;d;)this.updateWeight(d),d=d.getParent()}splayNode(d){if(d)for(;;)if(this.isLeftChild(d.getParent())&&this.isRightChild(d))this.rotateLeft(d),this.rotateRight(d);else if(this.isRightChild(d.getParent())&&this.isLeftChild(d))this.rotateRight(d),this.rotateLeft(d);else if(this.isLeftChild(d.getParent())&&this.isLeftChild(d))this.rotateRight(d.getParent()),this.rotateRight(d);else if(this.isRightChild(d.getParent())&&this.isRightChild(d))this.rotateLeft(d.getParent()),this.rotateLeft(d);else{this.isLeftChild(d)?this.rotateRight(d):this.isRightChild(d)&&this.rotateLeft(d),this.updateWeight(d);return}}delete(d){this.splayNode(d);const p=new ur(d.getLeft());p.root&&p.root.setParent();const y=new ur(d.getRight());if(y.root&&y.root.setParent(),p.root){const T=p.getRightmost();p.splayNode(T),p.root.setRight(y.root),y.root&&y.root.setParent(p.root),this.root=p.root}else this.root=y.root;d.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(d,p){if(!p){this.splayNode(d),this.cutOffRight(d);return}this.splayNode(d),this.splayNode(p),p.getLeft()!=d&&this.rotateRight(d),this.cutOffRight(d)}cutOffRight(d){const p=[];this.traversePostorder(d.getRight(),p);for(const y of p)y.initWeight();this.updateTreeWeight(d)}toTestString(){const d=[];return this.traverseInorder(this.root,d),d.map(p=>`[${p.getWeight()},${p.getLength()}]${p.getValue()||""}`).join("")}checkWeight(){const d=[];this.traverseInorder(this.root,d);for(const p of d)if(p.getWeight()!=p.getLength()+p.getLeftWeight()+p.getRightWeight())return!1;return!0}getRightmost(){let d=this.root;for(;d.hasRight();)d=d.getRight();return d}traverseInorder(d,p){d&&(this.traverseInorder(d.getLeft(),p),p.push(d),this.traverseInorder(d.getRight(),p))}traversePostorder(d,p){d&&(this.traversePostorder(d.getLeft(),p),this.traversePostorder(d.getRight(),p),p.push(d))}rotateLeft(d){const p=d.getParent();p.hasParent()?p===p.getParent().getLeft()?p.getParent().setLeft(d):p.getParent().setRight(d):this.root=d,d.setParent(p.getParent()),p.setRight(d.getLeft()),p.hasRight()&&p.getRight().setParent(p),d.setLeft(p),d.getLeft().setParent(d),this.updateWeight(p),this.updateWeight(d)}rotateRight(d){const p=d.getParent();p.hasParent()?p===p.getParent().getLeft()?p.getParent().setLeft(d):p.getParent().setRight(d):this.root=d,d.setParent(p.getParent()),p.setLeft(d.getRight()),p.hasLeft()&&p.getLeft().setParent(p),d.setRight(p),d.getRight().setParent(d),this.updateWeight(p),this.updateWeight(d)}isLeftChild(d){return d&&d.hasParent()?d.getParent().getLeft()===d:!1}isRightChild(d){return d&&d.hasParent()?d.getParent().getRight()===d:!1}}var ka=(O=>(O[O.Null=0]="Null",O[O.Boolean=1]="Boolean",O[O.Integer=2]="Integer",O[O.Long=3]="Long",O[O.Double=4]="Double",O[O.String=5]="String",O[O.Bytes=6]="Bytes",O[O.Date=7]="Date",O))(ka||{});class Ti extends W0{constructor(d,p){super(p),s(this,"valueType"),s(this,"value"),this.valueType=Ti.getPrimitiveType(d),this.value=d===void 0?null:d}static of(d,p){return new Ti(d,p)}static valueFromBytes(d,p){switch(d){case 0:return null;case 1:return!!p[0];case 2:return p[0]|p[1]<<8|p[2]<<16|p[3]<<24;case 4:{const y=new DataView(p.buffer);return p.forEach(function(T,$){y.setUint8($,T)}),y.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(p);case 3:return Zn.fromBytesLE(Array.from(p));case 6:return p;case 7:return new Date(Zn.fromBytesLE(Array.from(p),!0).toNumber());default:throw new zr(wr.ErrUnimplemented,`unimplemented type: ${d}`)}}toJSON(){return this.valueType===5?`"${Hu(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const d=Ti.of(this.value,this.getCreatedAt());return d.setMovedAt(this.getMovedAt()),d.setRemovedAt(this.getRemovedAt()),d}getType(){return this.valueType}static getPrimitiveType(d){switch(typeof d){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(d)?2:4;case"string":return 5;case"object":if(d===null)return 0;if(d instanceof Zn)return 3;if(d instanceof Uint8Array)return 6;if(d instanceof Date)return 7}}static isSupport(d){return Ti.getPrimitiveType(d)!==void 0}static isInteger(d){return d%1===0}isNumericType(){const d=this.valueType;return d===2||d===3||d===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const d=this.value;return new Uint8Array([d&255,d>>8&255,d>>16&255,d>>24&255])}case 4:{const d=this.value,p=new Uint8Array(8);return new DataView(p.buffer).setFloat64(0,d,!0),p}case 5:return new TextEncoder().encode(this.value);case 3:{const p=this.value.toBytesLE();return Uint8Array.from(p)}case 6:return this.value;case 7:{const d=this.value,p=Zn.fromNumber(d.getTime(),!0).toBytesLE();return Uint8Array.from(p)}default:throw new zr(wr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}}class db extends Ro{constructor(d){super(d),s(this,"prev"),s(this,"next"),this.value=d}static createAfter(d,p){const y=new db(p),T=d.next;return d.next=y,y.prev=d,y.next=T,T&&(T.prev=y),y}remove(d){return this.value.remove(d)}getCreatedAt(){return this.value.getCreatedAt()}getPositionedAt(){return this.value.getPositionedAt()}release(){this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=void 0,this.next=void 0}getLength(){return this.value.isRemoved()?0:1}getPrev(){return this.prev}getNext(){return this.next}getValue(){return this.value}isRemoved(){return this.value.isRemoved()}}class Vl{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const d=Ti.of(0,Is);d.setRemovedAt(Is),this.dummyHead=new db(d),this.last=this.dummyHead,this.nodeMapByIndex=new ur,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new Vl}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(d,p){let y=this.nodeMapByCreatedAt.get(d.toIDString());for(y||Mt.fatal(`cant find the given node: ${d.toIDString()}`);y.getNext()&&y.getNext().getPositionedAt().after(p);)y=y.getNext();return y}release(d){this.last===d&&(this.last=d.getPrev()),d.release(),this.nodeMapByIndex.delete(d),this.nodeMapByCreatedAt.delete(d.getValue().getCreatedAt().toIDString())}insertAfter(d,p,y=p.getCreatedAt()){const T=this.findNextBeforeExecutedAt(d,y),$=db.createAfter(T,p);T===this.last&&(this.last=$),this.nodeMapByIndex.insertAfter(T,$),this.nodeMapByCreatedAt.set($.getCreatedAt().toIDString(),$)}moveAfter(d,p,y){const T=this.nodeMapByCreatedAt.get(d.toIDString());T||Mt.fatal(`cant find the given node: ${d.toIDString()}`);const $=this.nodeMapByCreatedAt.get(p.toIDString());$||Mt.fatal(`cant find the given node: ${p.toIDString()}`),T!==$&&(!$.getValue().getMovedAt()||y.after($.getValue().getMovedAt()))&&(this.release($),this.insertAfter(T.getCreatedAt(),$.getValue(),y),$.getValue().setMovedAt(y))}insert(d){this.insertAfter(this.last.getCreatedAt(),d)}getByID(d){return this.nodeMapByCreatedAt.get(d.toIDString())}subPathOf(d){const p=this.nodeMapByCreatedAt.get(d.toIDString());if(p)return String(this.nodeMapByIndex.indexOf(p))}purge(d){const p=this.nodeMapByCreatedAt.get(d.getCreatedAt().toIDString());p||Mt.fatal(`fail to find the given createdAt: ${d.getCreatedAt().toIDString()}`),this.release(p)}getByIndex(d){if(d>=this.length)return;const[p,y]=this.nodeMapByIndex.find(d);let T=p;if(d===0&&p===this.dummyHead||y>0)do T&&(T=T.getNext());while(T&&T.isRemoved());return T}getPrevCreatedAt(d){let p=this.nodeMapByCreatedAt.get(d.toIDString());do p=p.getPrev();while(this.dummyHead!==p&&p.isRemoved());return p.getValue().getCreatedAt()}delete(d,p){const y=this.nodeMapByCreatedAt.get(d.toIDString()),T=y.isRemoved();return y.remove(p)&&!T&&this.nodeMapByIndex.splayNode(y),y.getValue()}deleteByIndex(d,p){const y=this.getByIndex(d);if(y)return y.remove(p)&&this.nodeMapByIndex.splayNode(y),y.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const d=[];for(const p of this){const y=`${p.getCreatedAt().toIDString()}:${p.getValue().toJSON()}`;p.isRemoved()?d.push(`{${y}}`):d.push(`[${y}]`)}return d.join("")}*[Symbol.iterator](){let d=this.dummyHead.getNext();for(;d;)yield d,d=d.getNext()}}class Io extends Hl{constructor(d,p){super(d),s(this,"elements"),this.elements=p}static create(d,p){if(!p)return new Io(d,Vl.create());const y=Vl.create();for(const T of p)y.insertAfter(y.getLastCreatedAt(),T.deepcopy());return new Io(d,y)}subPathOf(d){return this.elements.subPathOf(d)}purge(d){this.elements.purge(d)}insertAfter(d,p){this.elements.insertAfter(d,p)}moveAfter(d,p,y){this.elements.moveAfter(d,p,y)}get(d){const p=this.elements.getByIndex(d);return p==null?void 0:p.getValue()}getByID(d){const p=this.elements.getByID(d);return p==null?void 0:p.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(d){return this.elements.getPrevCreatedAt(d)}delete(d,p){return this.elements.delete(d,p)}deleteByIndex(d,p){return this.elements.deleteByIndex(d,p)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const d of this.elements)d.isRemoved()||(yield d.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(d){for(const p of this.elements){const y=p.getValue();if(d(y,this))return;y instanceof Hl&&y.getDescendants(d)}}toJSON(){const d=[];for(const p of this)d.push(p.toJSON());return`[${d.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const d={};for(let p=0;p({...St,value:St.value?{attributes:Ip(St.value.getAttributes()),content:St.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[me,Ct,Se,[ne,ne]]}setStyle(d,p,y,T){const[,$]=this.rgaTreeSplit.findNodeWithSplit(d[1],y),[,q]=this.rgaTreeSplit.findNodeWithSplit(d[0],y),ne=[],me=this.rgaTreeSplit.findBetween(q,$),Se=new Map,ze=[];for(const St of me){const mt=St.getCreatedAt().getActorID(),tn=T!=null&&T.size?T.has(mt)?T.get(mt):Is:Bd;if(St.canStyle(y,tn)){const Bn=Se.get(mt),kn=St.getCreatedAt();(!Bn||kn.after(Bn))&&Se.set(mt,kn),ze.push(St)}}const Ct=[];for(const St of ze){if(St.isRemoved())continue;const[mt,tn]=this.rgaTreeSplit.findIndexesFromRange(St.createPosRange());ne.push({type:"style",actor:y.getActorID(),from:mt,to:tn,value:{attributes:Ip(p)}});for(const[Bn,kn]of Object.entries(p)){const[hr]=St.getValue().setAttr(Bn,kn,y);hr!==void 0&&Ct.push({parent:St.getValue(),child:hr})}}return[Se,Ct,ne]}indexRangeToPosRange(d,p){const y=this.rgaTreeSplit.indexToPos(d);return d===p?[y,y]:[y,this.rgaTreeSplit.indexToPos(p)]}get length(){return this.rgaTreeSplit.length}getTreeByIndex(){return this.rgaTreeSplit.getTreeByIndex()}getTreeByID(){return this.rgaTreeSplit.getTreeByID()}toJSON(){const d=[];for(const p of this.rgaTreeSplit)p.isRemoved()||d.push(p.getValue().toJSON());return`[${d.join(",")}]`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TEXT"}}toString(){return this.rgaTreeSplit.toString()}values(){const d=[];for(const p of this.rgaTreeSplit)if(!p.isRemoved()){const y=p.getValue();d.push({attributes:Ip(y.getAttributes()),content:y.getContent()})}return d}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const d=new il(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return d.remove(this.getRemovedAt()),d}findIndexesFromRange(d){return this.rgaTreeSplit.findIndexesFromRange(d)}getGCPairs(){const d=[];for(const p of this.rgaTreeSplit){p.getRemovedAt()&&d.push({parent:this.rgaTreeSplit,child:p});for(const y of p.getValue().getGCPairs())d.push(y)}return d}}class G0 extends so{constructor(d,p,y,T,$,q,ne){super(d,ne),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=p,this.toPos=y,this.maxCreatedAtMapByActor=T,this.content=$,this.attributes=q}static create(d,p,y,T,$,q,ne){return new G0(d,p,y,T,$,q,ne)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Mt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof il||Mt.fatal("fail to execute, only Text can execute edit");const y=p,[,T,$]=y.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const q of $)d.registerGCPair(q);return{opInfos:T.map(({from:q,to:ne,value:me})=>({type:"edit",from:q,to:ne,value:me,path:d.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=this.fromPos.toTestString(),y=this.toPos.toTestString(),T=this.content;return`${d}.EDIT(${p},${y},${T})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Y0 extends so{constructor(d,p,y,T,$,q){super(d,q),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=p,this.toPos=y,this.maxCreatedAtMapByActor=T,this.attributes=$}static create(d,p,y,T,$,q){return new Y0(d,p,y,T,$,q)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Mt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof il||Mt.fatal("fail to execute, only Text can execute edit");const y=p,[,T,$]=y.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const q of T)d.registerGCPair(q);return{opInfos:$.map(({from:q,to:ne,value:me})=>({type:"style",from:q,to:ne,value:me,path:d.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=this.fromPos.toTestString(),y=this.toPos.toTestString(),T=this.attributes;return`${d}.STYL(${p},${y},${JSON.stringify(T)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const Hc=2,Y6="root",Vc="text";function Z0(O,d){let p=0;const y=O.children;for(let T=0;T0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let d=this.parent;const p=this.isRemoved?-1:1;for(;d&&(d.size+=this.paddedSize*p,!d.isRemoved);)d=d.parent}updateDescendantsSize(){let d=0;for(const p of this._children){const y=p.updateDescendantsSize();p.isRemoved||(d+=y)}return this.size+=d,this.paddedSize}get isText(){return this.type===Vc}get paddedSize(){return this.size+(this.isText?0:Hc)}isAncestorOf(d){return X6(this,d)}get nextSibling(){const d=this.parent.findOffset(this),p=this.parent.children[d+1];if(p)return p}get prevSibling(){const d=this.parent.findOffset(this),p=this.parent.children[d-1];if(p)return p}splitText(d,p){if(d===0||d===this.size)return;const y=this.value.slice(0,d),T=this.value.slice(d);if(!T.length)return;this.value=y;const $=this.cloneText(d+p);return $.value=T,this.parent.insertAfterInternal($,this),$}get children(){return this._children.filter(d=>!d.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(d=>d.isText)}append(...d){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...d);for(const p of d)p.parent=this,p.updateAncestorsSize()}prepend(...d){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...d);for(const p of d)p.parent=this}insertBefore(d,p){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(p);if(y===-1)throw new Error("child not found");this.insertAtInternal(d,y),d.updateAncestorsSize()}insertAfter(d,p){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(p);if(y===-1)throw new Error("child not found");this.insertAtInternal(d,y+1),d.updateAncestorsSize()}insertAt(d,p){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(d,p),d.updateAncestorsSize()}removeChild(d){if(this.isText)throw new Error("Text node cannot have children");const p=this._children.indexOf(d);if(p===-1)throw new Error("child not found");this._children.splice(p,1),d.parent=void 0}splitElement(d,p){const y=this.cloneElement(p);this.parent.insertAfterInternal(y,this),y.updateAncestorsSize();const T=this.children.slice(0,d),$=this.children.slice(d);this._children=T,y._children=$,this.size=this._children.reduce((q,ne)=>q+ne.paddedSize,0),y.size=y._children.reduce((q,ne)=>q+ne.paddedSize,0);for(const q of y._children)q.parent=y;return y}insertAfterInternal(d,p){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(p);if(y===-1)throw new Error("child not found");this.insertAtInternal(d,y+1)}insertAtInternal(d,p){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(p,0,d),d.parent=this}findOffset(d){if(this.isText)throw new Error("Text node cannot have children");if(d.isRemoved){const p=this._children.indexOf(d);return this.allChildren.splice(0,p).filter(T=>!T.isRemoved).length}return this.children.indexOf(d)}findBranchOffset(d){if(this.isText)throw new Error("Text node cannot have children");let p=d;for(;p;){const y=this._children.indexOf(p);if(y!==-1)return y;p=p.parent}return-1}}function X6(O,d){if(O===d)return!1;for(;d.parent;){if(d.parent===O)return!0;d=d.parent}return!1}var bi=(O=>(O.Start="Start",O.End="End",O.Text="Text",O))(bi||{});function Rk(O,d,p,y){if(d>p)throw new Error(`from is greater than to: ${d} > ${p}`);if(d>O.size)throw new Error(`from is out of range: ${d} > ${O.size}`);if(p>O.size)throw new Error(`to is out of range: ${p} > ${O.size}`);if(d===p)return;let T=0;for(const $ of O.children){if(d-$.paddedSize$.size;($.isText||me)&&y([$,$.isText?"Text":"Start"],Se),Rk($,Math.max(0,q),Math.min(ne,$.size),y),Se&&y([$,"End"],Se)}T+=$.paddedSize}}function Ik(O,d,p=0){for(const y of O.children)Ik(y,d,p+1);d(O,p)}function oo(O,d,p=0){for(const y of O._children)oo(y,d,p+1);d(O,p)}function DS(O,d,p=!0){if(d>O.size)throw new Error(`index is out of range: ${d} > ${O.size}`);if(O.isText)return{node:O,offset:d};let y=0,T=0;for(const $ of O.children){if(p&&$.isText&&$.size>=d-T)return DS($,d-T,p);if(d===T)return{node:O,offset:y};if(!p&&$.paddedSize===d-T)return{node:O,offset:y+1};if($.paddedSize>d-T)return DS($,d-T-1,p);T+=$.paddedSize,y+=1}return{node:O,offset:y}}function Dk(O){return O.isText||O.children.length===0?O:Dk(O.children[0])}function K6(O,d){if(O.sizeO===d?0:O0)if(p.right)p.right.parent=p,p=p.right;else return p;else if(y<0)if(p.left)p.left.parent=p,p=p.left;else{let T=p.parent,$=p;for(;T&&$===T.left;)$=T,T=T.parent;return T}else return p}}lastEntry(){if(!this.root)return this.root;let d=this.root;for(;d.right;)d=d.right;return d}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(d,p){for(;p;){const y=this.comparator(d,p.key);if(y===0)return p;y<0?p=p.left:y>0&&(p=p.right)}}putInternal(d,p,y){if(!y)return this.counter+=1,new Nk(d,p,!0);const T=this.comparator(d,y.key);return T<0?y.left=this.putInternal(d,p,y.left):T>0?y.right=this.putInternal(d,p,y.right):y.value=p,this.isRed(y.right)&&!this.isRed(y.left)&&(y=this.rotateLeft(y)),this.isRed(y.left)&&this.isRed(y.left.left)&&(y=this.rotateRight(y)),this.isRed(y.left)&&this.isRed(y.right)&&this.flipColors(y),y}removeInternal(d,p){if(this.comparator(p,d.key)<0)!this.isRed(d.left)&&!this.isRed(d.left.left)&&(d=this.moveRedLeft(d)),d.left=this.removeInternal(d.left,p);else{if(this.isRed(d.left)&&(d=this.rotateRight(d)),this.comparator(p,d.key)===0&&!d.right){this.counter-=1;return}if(!this.isRed(d.right)&&!this.isRed(d.right.left)&&(d=this.moveRedRight(d)),this.comparator(p,d.key)===0){this.counter-=1;const y=this.min(d.right);d.value=y.value,d.key=y.key,d.right=this.removeMin(d.right)}else d.right=this.removeInternal(d.right,p)}return this.fixUp(d)}min(d){return d.left?this.min(d.left):d}removeMin(d){if(d.left)return!this.isRed(d.left)&&!this.isRed(d.left.left)&&(d=this.moveRedLeft(d)),d.left=this.removeMin(d.left),this.fixUp(d)}fixUp(d){return this.isRed(d.right)&&(d=this.rotateLeft(d)),this.isRed(d.left)&&this.isRed(d.left.left)&&(d=this.rotateRight(d)),this.isRed(d.left)&&this.isRed(d.right)&&this.flipColors(d),d}moveRedLeft(d){return this.flipColors(d),this.isRed(d.right.left)&&(d.right=this.rotateRight(d.right),d=this.rotateLeft(d),this.flipColors(d)),d}moveRedRight(d){return this.flipColors(d),this.isRed(d.left.left)&&(d=this.rotateRight(d),this.flipColors(d)),d}isRed(d){return d&&d.isRed}rotateLeft(d){const p=d.right;return d.right=p.left,p.left=d,p.isRed=p.left.isRed,p.left.isRed=!0,p}rotateRight(d){const p=d.left;return d.left=p.right,p.right=d,p.isRed=p.right.isRed,p.right.isRed=!0,p}flipColors(d){d.isRed=!d.isRed,d.left.isRed=!d.left.isRed,d.right.isRed=!d.right.isRed}}class Wl{constructor(d,p){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=d,this.leftSiblingID=p}static of(d,p){return new Wl(d,p)}static fromTreePos(d){const{offset:p}=d;let{node:y}=d,T;return y.isText?(y.parent.children[0]===y&&p===0?T=y.parent:T=y,y=y.parent):p===0?T=y:T=y.children[p-1],Wl.of(y.id,Ca.of(T.getCreatedAt(),T.getOffset()+p))}getParentID(){return this.parentID}static fromStruct(d){return Wl.of(Ca.of(Ta.fromStruct(d.parentID.createdAt),d.parentID.offset),Ca.of(Ta.fromStruct(d.leftSiblingID.createdAt),d.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(d){const p=this.getParentID(),y=this.getLeftSiblingID(),T=d.findFloorNode(p);let $=d.findFloorNode(y);if(!T||!$)throw new Error(`cannot find node of CRDTTreePos(${p.toTestString()}, ${y.toTestString()})`);return!y.equals(p)&&y.getOffset()>0&&y.getOffset()===$.id.getOffset()&&$.insPrevID&&($=d.findFloorNode($.insPrevID)),[T,$]}getLeftSiblingID(){return this.leftSiblingID}equals(d){return this.getParentID().getCreatedAt().equals(d.getParentID().getCreatedAt())&&this.getParentID().getOffset()===d.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(d.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===d.getLeftSiblingID().getOffset()}}class Ca{constructor(d,p){s(this,"createdAt"),s(this,"offset"),this.createdAt=d,this.offset=p}static of(d,p){return new Ca(d,p)}static fromStruct(d){return Ca.of(Ta.fromStruct(d.createdAt),d.offset)}static createComparator(){return(d,p)=>{const y=d.getCreatedAt().compare(p.getCreatedAt());return y!==0?y:d.getOffset()>p.getOffset()?1:d.getOffset(){const T=y.deepcopy();return T.parent=p,T}),p.insPrevID=this.insPrevID,p.insNextID=this.insNextID,p}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(d){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=d,this.size=d.length}get isRemoved(){return!!this.removedAt}remove(d){const p=!this.removedAt;(!this.removedAt||this.removedAt.compare(d)>0)&&(this.removedAt=d),p&&this.updateAncestorsSize()}cloneText(d){return new Ga(Ca.of(this.id.getCreatedAt(),d),this.type,void 0,void 0,this.removedAt)}cloneElement(d){return new Ga(Ca.of(d(),0),this.type,void 0,void 0,this.removedAt)}split(d,p,y){const T=this.isText?this.splitText(p,this.id.getOffset()):this.splitElement(p,y);if(T){if(T.insPrevID=this.id,this.insNextID){const $=d.findFloorNode(this.insNextID);$.insPrevID=T.id,T.insNextID=this.insNextID}this.insNextID=T.id,d.registerNode(T)}return T}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(d,p){return!this.getCreatedAt().after(p)&&(!this.removedAt||d.after(this.removedAt))}canStyle(d,p){return this.isText?!1:!this.getCreatedAt().after(p)&&(!this.removedAt||d.after(this.removedAt))}setAttrs(d,p){this.attrs||(this.attrs=new jc);const y=new Array;for(const[T,$]of Object.entries(d))y.push(this.attrs.set(T,$,p));return y}purge(d){this.attrs&&this.attrs.purge(d)}getGCPairs(){const d=[];if(!this.attrs)return d;for(const p of this.attrs)p.getRemovedAt()&&d.push({parent:this,child:p});return d}}function Pp(O){var d;if(O.isText){const y=O;return{type:y.type,value:y.value}}const p={type:O.type,children:O.children.map(Pp)};return O.attrs&&(p.attributes=Ip((d=O.attrs)==null?void 0:d.toObject())),p}function NS(O){if(O.isText)return O.value;let d="";return O.attrs&&O.attrs.size()&&(d=" "+Array.from(O.attrs).filter(p=>!p.isRemoved()).sort((p,y)=>p.getKey().localeCompare(y.getKey())).map(p=>{const y=JSON.parse(p.getValue());return typeof y=="string"?`${p.getKey()}="${y}"`:`${p.getKey()}="${Hu(p.getValue())}"`}).join(" ")),`<${O.type}${d}>${O.children.map(p=>NS(p)).join("")}`}function PS(O){if(O.isText){const d=O;return{type:d.type,value:d.value,size:d.size,isRemoved:d.isRemoved}}return{type:O.type,children:O.children.map(PS),size:O.size,isRemoved:O.isRemoved}}class al extends W0{constructor(d,p){super(p),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new J6(d),this.nodeMapByID=new Mk(Ca.createComparator()),this.indexTree.traverseAll(y=>{this.nodeMapByID.put(y.id,y)})}static create(d,p){return new al(d,p)}findFloorNode(d){const p=this.nodeMapByID.floorEntry(d);if(!(!p||!p.key.getCreatedAt().equals(d.getCreatedAt())))return p.value}registerNode(d){this.nodeMapByID.put(d.id,d)}findNodesAndSplitText(d,p){const[y,T]=d.toTreeNodePair(this);let $=T;const q=y===$,ne=$.parent&&!q?$.parent:y;if($.isText&&$.split(this,d.getLeftSiblingID().getOffset()-$.id.getOffset()),p){const me=ne.allChildren,Se=q?0:me.indexOf($)+1;for(let ze=Se;ze{const tn=mt.getCreatedAt().getActorID(),Bn=T?T.has(tn)?T.get(tn):Is:Bd;if(mt.canStyle(y,Bn)&&p){const kn=Ct.get(tn),hr=mt.getCreatedAt();(!kn||hr.after(kn))&&Ct.set(tn,hr);const Oi=mt.setAttrs(p,y),Cr=Oi.reduce(($r,[,Mo])=>(Mo&&($r[Mo.getKey()]=ze[Mo.getKey()]),$r),{}),qr=mt.parent,oi=mt.prevSibling||mt.parent;Object.keys(Cr).length>0&&Se.push({type:"style",from:this.toIndex(qr,oi),to:this.toIndex(mt,mt),fromPath:this.toPath(qr,oi),toPath:this.toPath(mt,mt),actor:y.getActorID(),value:Cr});for(const[$r]of Oi)$r&&St.push({parent:mt,child:$r})}}),[Ct,St,Se]}removeStyle(d,p,y,T){const[$,q]=this.findNodesAndSplitText(d[0],y),[ne,me]=this.findNodesAndSplitText(d[1],y),Se=[],ze=new Map,Ct=[];return this.traverseInPosRange($,q,ne,me,([St])=>{const mt=St.getCreatedAt().getActorID(),tn=T?T.has(mt)?T.get(mt):Is:Bd;if(St.canStyle(y,tn)&&p){const Bn=ze.get(mt),kn=St.getCreatedAt();(!Bn||kn.after(Bn))&&ze.set(mt,kn),St.attrs||(St.attrs=new jc);for(const Cr of p){const qr=St.attrs.remove(Cr,y);for(const oi of qr)Ct.push({parent:St,child:oi})}const hr=St.parent,Oi=St.prevSibling||St.parent;Se.push({actor:y.getActorID(),type:"removeStyle",from:this.toIndex(hr,Oi),to:this.toIndex(St,St),fromPath:this.toPath(hr,Oi),toPath:this.toPath(St,St),value:p})}}),[ze,Ct,Se]}edit(d,p,y,T,$,q){const[ne,me]=this.findNodesAndSplitText(d[0],T),[Se,ze]=this.findNodesAndSplitText(d[1],T),Ct=this.toIndex(ne,me),St=this.toPath(ne,me),mt=[],tn=[],Bn=[],kn=new Map;this.traverseInPosRange(ne,me,Se,ze,([Cr,qr],oi)=>{if(qr===bi.Start&&!oi)for(const bh of Cr.children)Bn.push(bh);const $r=Cr.getCreatedAt().getActorID(),Mo=q?q.has($r)?q.get($r):Is:Bd;if(Cr.canDelete(T,Mo)||mt.includes(Cr.parent)){const bh=kn.get($r),Wp=Cr.getCreatedAt();(!bh||Wp.after(bh))&&kn.set($r,Wp),(qr===bi.Text||qr===bi.Start)&&mt.push(Cr),tn.push([Cr,qr])}});const hr=this.makeDeletionChanges(tn,T),Oi=[];for(const Cr of mt)Cr.remove(T),Cr.isRemoved&&Oi.push({parent:this,child:Cr});for(const Cr of Bn)Cr.removedAt||ne.append(Cr);if(y>0){let Cr=0,qr=ne,oi=me;for(;Cr{ne.isRemoved&&($r.remove(T),Oi.push({parent:this,child:$r})),this.nodeMapByID.put($r.id,$r)}),oi.isRemoved||Cr.push(oi);if(Cr.length){const oi=Cr.map($r=>Pp($r));hr.length&&hr[hr.length-1].from===Ct?hr[hr.length-1].value=oi:hr.push({type:"content",from:Ct,to:Ct,fromPath:St,toPath:St,actor:T.getActorID(),value:oi})}}return[hr,Oi,kn]}editT(d,p,y,T,$){const q=this.findPos(d[0]),ne=this.findPos(d[1]);this.edit([q,ne],p,y,T,$)}move(d,p,y){throw new Error(`not implemented: ${d}, ${p}, ${y}`)}purge(d){var p;(p=d.parent)==null||p.removeChild(d),this.nodeMapByID.remove(d.id);const y=d.insPrevID,T=d.insNextID;if(y){const $=this.findFloorNode(y);$.insNextID=T}if(T){const $=this.findFloorNode(T);$.insPrevID=y}d.insPrevID=void 0,d.insNextID=void 0}getGCPairs(){const d=[];return this.indexTree.traverse(p=>{p.getRemovedAt()&&d.push({parent:this,child:p});for(const y of p.getGCPairs())d.push(y)}),d}findPos(d,p=!0){const y=this.indexTree.findTreePos(d,p);return Wl.fromTreePos(y)}pathToPosRange(d){const p=this.pathToIndex(d);return[this.findPos(p),this.findPos(p+1)]}pathToPos(d){const p=this.indexTree.pathToIndex(d);return this.findPos(p)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return NS(this.indexTree.getRoot())}toJSON(){return JSON.stringify(this.getRootTreeNode())}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}toJSInfoForTest(){const d=this.indexTree.getRoot(),p=(y,T=void 0,$=void 0,q=0)=>{var ne,me,Se,ze;let Ct,St,mt;const tn=y.isText?{node:y,offset:0}:T&&$?this.toTreePos(T,$):null;tn&&(Ct=this.indexTree.indexOf(tn),St=this.indexTree.treePosToPath(tn),mt=Wl.fromTreePos(tn).toStruct());const Bn={type:y.type,parent:T==null?void 0:T.id.toTestString(),size:y.size,id:y.id.toTestString(),removedAt:(ne=y.removedAt)==null?void 0:ne.toTestString(),insPrev:(me=y.insPrevID)==null?void 0:me.toTestString(),insNext:(Se=y.insNextID)==null?void 0:Se.toTestString(),value:y.isText?y.value:void 0,isRemoved:y.isRemoved,children:[],depth:q,attributes:y.attrs?Ip((ze=y.attrs)==null?void 0:ze.toObject()):void 0,index:Ct,path:St,pos:mt};for(let kn=0;kn0&&kn===y[y.length-1].to?(y[y.length-1].to=hr,y[y.length-1].toPath=this.toPath(Bn,St)):y.push({type:"content",from:kn,to:hr,fromPath:this.toPath(tn,ze),toPath:this.toPath(Bn,St),actor:p.getActorID()}))}return y.reverse()}findRightToken([d,p]){if(p===bi.Start){const ne=d.allChildren;return ne.length>0?[ne[0],ne[0].isText?bi.Text:bi.Start]:[d,bi.End]}const y=d.parent,T=y.allChildren,$=T.indexOf(d);if(y&&$===T.length-1)return[y,bi.End];const q=T[$+1];return[q,q.isText?bi.Text:bi.Start]}findLeftToken([d,p]){if(p===bi.End){const ne=d.allChildren;if(ne.length>0){const me=ne[ne.length-1];return[me,me.isText?bi.Text:bi.End]}return[d,bi.Start]}const y=d.parent,T=y.allChildren,$=T.indexOf(d);if(y&&$===0)return[y,bi.Start];const q=T[$-1];return[q,q.isText?bi.Text:bi.End]}}class Do extends so{constructor(d,p,y,T,$,q,ne){super(d,ne),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=p,this.toPos=y,this.contents=T,this.splitLevel=$,this.maxCreatedAtMapByActor=q}static create(d,p,y,T,$,q,ne){return new Do(d,p,y,T,$,q,ne)}execute(d){var p;const y=d.findByCreatedAt(this.getParentCreatedAt());y||Mt.fatal(`fail to find ${this.getParentCreatedAt()}`),y instanceof al||Mt.fatal("fail to execute, only Tree can execute edit");const T=this.getExecutedAt(),$=y,[q,ne]=$.edit([this.fromPos,this.toPos],(p=this.contents)==null?void 0:p.map(me=>me.deepcopy()),this.splitLevel,T,(()=>{let me=T.getDelimiter();return this.contents!==void 0&&(me+=this.contents.length),()=>Ta.of(T.getLamport(),++me,T.getActorID())})(),this.maxCreatedAtMapByActor);for(const me of ne)d.registerGCPair(me);return{opInfos:q.map(({from:me,to:Se,value:ze,splitLevel:Ct,fromPath:St,toPath:mt})=>({type:"tree-edit",path:d.createPath(this.getParentCreatedAt()),from:me,to:Se,value:ze,splitLevel:Ct,fromPath:St,toPath:mt}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,T=this.contents||[];return`${d}.EDIT(${p},${y},${T.map($=>NS($)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Vu{constructor(d,p,y,T){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=d,this.serverSeq=T,this.lamport=p,this.actor=y}static of(d,p,y,T){return new Vu(d,p,y,T)}next(){return new Vu(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(d){return d.greaterThan(this.lamport)?new Vu(this.clientSeq,d,this.actor):new Vu(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(d){return Ta.of(this.lamport,d,this.actor)}setActor(d){return new Vu(this.clientSeq,this.lamport,d,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const hh=new Vu(0,Zn.fromInt(0,!0),cb);class Ua{constructor({id:d,operations:p,presenceChange:y,message:T}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=d,this.operations=p||[],this.presenceChange=y,this.message=T}static create({id:d,operations:p,presenceChange:y,message:T}){return new Ua({id:d,operations:p,presenceChange:y,message:T})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(d){for(const p of this.operations)p.setActor(d);this.id=this.id.setActor(d)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(d,p,y){const T=[],$=[];for(const q of this.operations){const ne=q.execute(d,y);if(!ne)continue;const{opInfos:me,reverseOp:Se}=ne;T.push(...me),Se&&$.unshift(Se)}return this.presenceChange&&(this.presenceChange.type===Fd.Put?p.set(this.id.getActorID(),jl(this.presenceChange.presence)):p.delete(this.id.getActorID())),{opInfos:T,reverseOps:$}}toTestString(){return`${this.operations.map(d=>d.toTestString()).join(",")}`}toStruct(){return{changeID:ha.bytesToHex(ha.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(d=>ha.bytesToHex(ha.toOperation(d).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(d){const{changeID:p,operations:y,presenceChange:T,message:$}=d;return Ua.create({id:ha.bytesToChangeID(ha.hexToBytes(p)),operations:y==null?void 0:y.map(q=>ha.bytesToOperation(ha.hexToBytes(q))),presenceChange:T,message:$})}}class fb{constructor(d,p,y,T,$,q){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=d,this.checkpoint=p,this.isRemoved=y,this.changes=T,this.snapshot=$,this.minSyncedTicket=q}static create(d,p,y,T,$,q){return new fb(d,p,y,T,$,q)}getDocumentKey(){return this.documentKey}getCheckpoint(){return this.checkpoint}getIsRemoved(){return this.isRemoved}getChanges(){return this.changes}hasChanges(){return this.changes.length>0}getChangeSize(){return this.changes.length}hasSnapshot(){return!!this.snapshot&&!!this.snapshot.length}getSnapshot(){return this.snapshot}getMinSyncedTicket(){return this.minSyncedTicket}}class ph{constructor(d,p){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=d,this.clientSeq=p}static of(d,p){return new ph(d,p)}increaseClientSeq(d){return d===0?this:new ph(this.serverSeq,this.clientSeq+d)}forward(d){if(this.equals(d))return this;const p=this.serverSeq.greaterThan(d.serverSeq)?this.serverSeq:d.serverSeq,y=Math.max(this.clientSeq,d.clientSeq);return ph.of(p,y)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(d){return this.clientSeq===d.clientSeq&&this.serverSeq.equals(d.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const Lk=new ph(Zn.fromInt(0,!0),0);class lo{constructor(d,p){s(this,"createdAt"),s(this,"offset"),this.createdAt=d,this.offset=p}static of(d,p){return new lo(d,p)}static fromStruct(d){return lo.of(Ta.fromStruct(d.createdAt),d.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(d){return this.createdAt.compare(d.createdAt)===0&&this.offset===d.offset}hasSameCreatedAt(d){return this.createdAt.compare(d.createdAt)===0}split(d){return new lo(this.createdAt,this.offset+d)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const jd=lo.of(Is,0);class sl{constructor(d,p){s(this,"id"),s(this,"relativeOffset"),this.id=d,this.relativeOffset=p}static of(d,p){return new sl(d,p)}static fromStruct(d){const p=lo.fromStruct(d.id);return sl.of(p,d.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return lo.of(this.id.getCreatedAt(),this.id.getOffset()+this.relativeOffset)}toTestString(){return`${this.id.toTestString()}:${this.relativeOffset}`}toStruct(){return{id:this.id.toStruct(),relativeOffset:this.relativeOffset}}equals(d){return this.id.equals(d.id)?this.relativeOffset===d.relativeOffset:!1}}class Hd extends Ro{constructor(d,p,y){super(p),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=d,this.removedAt=y}static create(d,p){return new Hd(d,p)}static createComparator(){return(d,p)=>{const y=d.getCreatedAt().compare(p.getCreatedAt());return y!==0?y:d.getOffset()>p.getOffset()?1:d.getOffset()0&&p.getID().getOffset()==d.getOffset()){if(!p.hasInsPrev())return p;p=p.getInsPrev()}return p}findFloorNode(d){const p=this.treeByID.floorEntry(d);if(p&&!(!p.key.equals(d)&&!p.key.hasSameCreatedAt(d)))return p.value}findBetween(d,p){const y=[];let T=d;for(;T&&T!==p;)y.push(T),T=T.getNext();return y}splitNode(d,p){if(p>d.getContentLength()&&Mt.fatal("offset should be less than or equal to length"),p===0)return d;if(p===d.getContentLength())return d.getNext();const y=d.split(p);this.treeByIndex.updateWeight(y),this.insertAfter(d,y);const T=d.getInsNext();return T&&T.setInsPrev(y),y.setInsPrev(d),y}deleteNodes(d,p,y){if(!d.length)return[[],new Map,new Map];const[T,$]=this.filterNodes(d,p,y),q=new Map,ne=new Map,me=this.makeChanges($,p);for(const Se of T){const ze=Se.getCreatedAt().getActorID();(!q.has(ze)||Se.getID().getCreatedAt().after(q.get(ze)))&&q.set(ze,Se.getID().getCreatedAt()),ne.set(Se.getID().toIDString(),Se),Se.remove(p)}return this.deleteIndexNodes($),[me,q,ne]}filterNodes(d,p,y){const T=!!y,$=[],q=[],[ne,me]=this.findEdgesOfCandidates(d);q.push(ne);for(const Se of d){const ze=Se.getCreatedAt().getActorID(),Ct=T?y.has(ze)?y.get(ze):Is:Bd;Se.canDelete(p,Ct)?$.push(Se):q.push(Se)}return q.push(me),[$,q]}findEdgesOfCandidates(d){return[d[0].getPrev(),d[d.length-1].getNext()]}makeChanges(d,p){const y=[];let T,$;for(let q=0;qO<0?Math.ceil(O):Math.floor(O);var Ql=(O=>(O[O.IntegerCnt=0]="IntegerCnt",O[O.LongCnt=1]="LongCnt",O))(Ql||{});class ni extends W0{constructor(d,p,y){switch(super(y),s(this,"valueType"),s(this,"value"),this.valueType=d,d){case 0:typeof p=="number"?p>Math.pow(2,31)-1||p<-Math.pow(2,31)?this.value=Zn.fromNumber(p).toInt():this.value=$k(p):this.value=p.toInt();break;case 1:typeof p=="number"?this.value=Zn.fromNumber(p):this.value=p;break;default:throw new zr(wr.ErrUnimplemented,`unimplemented type: ${d}`)}}static create(d,p,y){return new ni(d,p,y)}static valueFromBytes(d,p){switch(d){case 0:return p[0]|p[1]<<8|p[2]<<16|p[3]<<24;case 1:return Zn.fromBytesLE(Array.from(p));default:throw new zr(wr.ErrUnimplemented,`unimplemented type: ${d}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const d=ni.create(this.valueType,this.value,this.getCreatedAt());return d.setMovedAt(this.getMovedAt()),d}getType(){return this.valueType}static getCounterType(d){switch(typeof d){case"object":return d instanceof Zn?1:void 0;case"number":return d>Math.pow(2,31)-1||d<-Math.pow(2,31)?1:0;default:return}}static isSupport(d){return!!ni.getCounterType(d)}static isInteger(d){return d%1===0}isNumericType(){const d=this.valueType;return d===0||d===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const d=this.value;return new Uint8Array([d&255,d>>8&255,d>>16&255,d>>24&255])}case 1:{const p=this.value.toBytesLE();return Uint8Array.from(p)}default:throw new zr(wr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}increase(d){function p(y){if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`)}return p(this),p(d),this.valueType===1?this.value=this.value.add(d.getValue()):d.getType()===ka.Long?this.value=this.value+d.getValue().toInt():this.value=Zn.fromNumber(this.value+$k(d.getValue())).toInt(),this}}class Vd extends so{constructor(d,p,y){super(d,y),s(this,"value"),this.value=p}static create(d,p,y){return new Vd(d,p,y)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Mt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof ni||Mt.fatal("fail to execute, only Counter can execute increase");const y=p,T=this.value.deepcopy();return y.increase(T),{opInfos:[{type:"increase",path:d.createPath(this.getParentCreatedAt()),value:T.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const d=this.value.deepcopy(),y=d.getType()===ka.Long?d.getValue().multiply(-1):d.getValue()*-1;return Vd.create(this.getParentCreatedAt(),Ti.of(y,d.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class Wu extends so{constructor(d,p,y,T,$,q,ne){super(d,ne),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=p,this.toPos=y,this.maxCreatedAtMapByActor=T,this.attributes=$,this.attributesToRemove=q}static create(d,p,y,T,$,q){return new Wu(d,p,y,T,$,new Array,q)}static createTreeRemoveStyleOperation(d,p,y,T,$,q){return new Wu(d,p,y,T,new Map,$,q)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Mt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof al||Mt.fatal("fail to execute, only Tree can execute edit");const y=p;let T,$;if(this.attributes.size){const q={};[...this.attributes].forEach(([ne,me])=>q[ne]=me),[,$,T]=y.style([this.fromPos,this.toPos],q,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const q=this.attributesToRemove;[,$,T]=y.removeStyle([this.fromPos,this.toPos],q,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const q of $)d.registerGCPair(q);return{opInfos:T.map(({from:q,to:ne,value:me,fromPath:Se,toPath:ze})=>({type:"tree-style",from:q,to:ne,value:this.attributes.size?{attributes:me}:{attributesToRemove:me},fromPath:Se,toPath:ze,path:d.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${d}.STYLE(${p},${y},${Object.entries(this.attributes||{}).map(([T,$])=>`${T}:"${$}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function Qu(O){const d=new zu,p=d.data;for(const[y,T]of Object.entries(O))p[y]=JSON.stringify(T);return d}function MS(O){if(O.type===Fd.Put)return new L0({type:Ap.PUT,presence:Qu(O.presence)});if(O.type===Fd.Clear)return new L0({type:Ap.CLEAR});throw new zr(wr.ErrUnimplemented,"unimplemented type")}function hb(O){return new $0({serverSeq:O.getServerSeqAsString(),clientSeq:O.getClientSeq()})}function Wd(O){return new J1({clientSeq:O.getClientSeq(),lamport:O.getLamportAsString(),actorId:Cb(O.getActorID())})}function Tn(O){if(O)return new Dn({lamport:O.getLamportAsString(),delimiter:O.getDelimiter(),actorId:Cb(O.getActorID())})}function hs(O){switch(O){case ka.Null:return vn.NULL;case ka.Boolean:return vn.BOOLEAN;case ka.Integer:return vn.INTEGER;case ka.Long:return vn.LONG;case ka.Double:return vn.DOUBLE;case ka.String:return vn.STRING;case ka.Bytes:return vn.BYTES;case ka.Date:return vn.DATE;default:throw new zr(wr.Unsupported,`unsupported type: ${O}`)}}function pb(O){switch(O){case Ql.IntegerCnt:return vn.INTEGER_CNT;case Ql.LongCnt:return vn.LONG_CNT;default:throw new zr(wr.Unsupported,`unsupported type: ${O}`)}}function LS(O){if(O instanceof se)return new Uc({type:vn.JSON_OBJECT,createdAt:Tn(O.getCreatedAt()),value:kb(O)});if(O instanceof Io)return new Uc({type:vn.JSON_ARRAY,createdAt:Tn(O.getCreatedAt()),value:HS(O)});if(O instanceof il)return new Uc({type:vn.TEXT,createdAt:Tn(O.getCreatedAt())});if(O instanceof Ti)return new Uc({type:hs(O.getType()),createdAt:Tn(O.getCreatedAt()),value:O.toBytes()});if(O instanceof ni)return new Uc({type:pb(O.getType()),createdAt:Tn(O.getCreatedAt()),value:O.toBytes()});if(O instanceof al)return new Uc({type:vn.TREE,createdAt:Tn(O.getCreatedAt()),value:Gd(O)});throw new zr(wr.ErrUnimplemented,"unimplemented element")}function tD(O){return new wS({createdAt:Tn(O.getCreatedAt()),offset:O.getOffset()})}function mb(O){return new sh({createdAt:Tn(O.getID().getCreatedAt()),offset:O.getID().getOffset(),relativeOffset:O.getRelativeOffset()})}function Mp(O){return new M0({parentId:X0(O.getParentID()),leftSiblingId:X0(O.getLeftSiblingID())})}function X0(O){return new Bl({createdAt:Tn(O.getCreatedAt()),offset:O.getOffset()})}function Lp(O){const d=new bS;if(O instanceof fh){const p=O,y=new Ek;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.key=p.getKey(),y.value=LS(p.getValue()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="set",d.body.value=y}else if(O instanceof Q0){const p=O,y=new yS;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.prevCreatedAt=Tn(p.getPrevCreatedAt()),y.value=LS(p.getValue()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="add",d.body.value=y}else if(O instanceof zd){const p=O,y=new P0;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.prevCreatedAt=Tn(p.getPrevCreatedAt()),y.createdAt=Tn(p.getCreatedAt()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="move",d.body.value=y}else if(O instanceof Ud){const p=O,y=new ah;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.createdAt=Tn(p.getCreatedAt()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="remove",d.body.value=y}else if(O instanceof G0){const p=O,y=new wk;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=mb(p.getFromPos()),y.to=mb(p.getToPos());const T=y.createdAtMapByActor;for(const[q,ne]of p.getMaxCreatedAtMapByActor())T[q]=Tn(ne);y.content=p.getContent();const $=y.attributes;for(const[q,ne]of p.getAttributes())$[q]=ne;y.executedAt=Tn(p.getExecutedAt()),d.body.case="edit",d.body.value=y}else if(O instanceof Y0){const p=O,y=new vS;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=mb(p.getFromPos()),y.to=mb(p.getToPos());const T=y.createdAtMapByActor;for(const[q,ne]of p.getMaxCreatedAtMapByActor())T[q]=Tn(ne);const $=y.attributes;for(const[q,ne]of p.getAttributes())$[q]=ne;y.executedAt=Tn(p.getExecutedAt()),d.body.case="style",d.body.value=y}else if(O instanceof Vd){const p=O,y=new eb;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.value=LS(p.getValue()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="increase",d.body.value=y}else if(O instanceof Do){const p=O,y=new tb,T=y.createdAtMapByActor;for(const[$,q]of p.getMaxCreatedAtMapByActor())T[$]=Tn(q);y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=Mp(p.getFromPos()),y.to=Mp(p.getToPos()),y.contents=$S(p.getContents()),y.splitLevel=p.getSplitLevel(),y.executedAt=Tn(p.getExecutedAt()),d.body.case="treeEdit",d.body.value=y}else if(O instanceof Wu){const p=O,y=new OS;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=Mp(p.getFromPos()),y.to=Mp(p.getToPos());const T=y.createdAtMapByActor;for(const[q,ne]of p.getMaxCreatedAtMapByActor())T[q]=Tn(ne);const $=p.getAttributesToRemove();if($.length>0)y.attributesToRemove=$;else{const q=y.attributes;for(const[ne,me]of p.getAttributes())q[ne]=me}y.executedAt=Tn(p.getExecutedAt()),d.body.case="treeStyle",d.body.value=y}else throw new zr(wr.ErrUnimplemented,"unimplemented operation");return d}function Fk(O){const d=[];for(const p of O)d.push(Lp(p));return d}function nD(O){const d=new K1({id:Wd(O.getID()),message:O.getMessage()});return O.hasOperations()&&(d.operations=Fk(O.getOperations())),O.hasPresenceChange()&&(d.presenceChange=MS(O.getPresenceChange())),d}function rD(O){const d=[];for(const p of O)d.push(nD(p));return d}function K0(O){const d=[];for(const p of O)d.push(new ES({key:p.getStrKey(),element:bb(p.getValue())}));return d}function iD(O){const d=[];for(const p of O)d.push(new ib({element:bb(p.getValue())}));return d}function aD(O){const d=[];for(const p of O){const y=new kk;y.id=tD(p.getID()),y.value=p.getValue().getContent(),y.removedAt=Tn(p.getRemovedAt());const T=y.attributes,$=p.getValue().getAttrs();for(const q of $){const ne=new ab;ne.value=q.getValue(),ne.updatedAt=Tn(q.getUpdatedAt()),T[q.getKey()]=ne}d.push(y)}return d}function $S(O){const d=[];if(!O||!O.length)return d;for(const p of O)d.push(new Ck({content:Uk(p)}));return d}function Bk(O){const d={};for(const p of O)d[p.getKey()]=new ab({value:p.getValue(),updatedAt:Tn(p.getUpdatedAt()),isRemoved:p.isRemoved()});return d}function Uk(O){if(!O)return[];const d=[];return oo(O,(p,y)=>{const T=new xS({id:X0(p.id),type:p.type,removedAt:Tn(p.removedAt),depth:y});p.isText&&(T.value=p.value),p.insPrevID&&(T.insPrevId=X0(p.insPrevID)),p.insNextID&&(T.insNextId=X0(p.insNextID)),p.attrs&&(T.attributes=Bk(p.attrs)),d.push(T)}),d}function sD(O){const d=new ro;return d.body.case="jsonObject",d.body.value=new nb({nodes:K0(O.getRHT()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function zk(O){const d=new ro;return d.body.case="jsonArray",d.body.value=new Tk({nodes:iD(O.getElements()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function jk(O){const d=new ro;return d.body.case="primitive",d.body.value=new SS({type:hs(O.getType()),value:O.toBytes(),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function FS(O){const d=new ro;return d.body.case="text",d.body.value=new io({nodes:aD(O.getRGATreeSplit()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function oD(O){const d=new ro;return d.body.case="counter",d.body.value=new rb({type:pb(O.getType()),value:O.toBytes(),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function gb(O){const d=new ro;return d.body.case="tree",d.body.value=new Cp({nodes:Uk(O.getRoot()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function bb(O){if(O instanceof se)return sD(O);if(O instanceof Io)return zk(O);if(O instanceof Ti)return jk(O);if(O instanceof il)return FS(O);if(O instanceof ni)return oD(O);if(O instanceof al)return gb(O);throw new zr(wr.ErrUnimplemented,"unimplemented element")}function Hk(O){return new Bc({documentKey:O.getDocumentKey(),checkpoint:hb(O.getCheckpoint()),isRemoved:O.getIsRemoved(),changes:rD(O.getChanges()),snapshot:O.getSnapshot(),minSyncedTicket:Tn(O.getMinSyncedTicket())})}function BS(O){const d=O.findDetails(q6);for(const p of d)if(p.metadata.code)return p.metadata.code;return""}function J0(O){let d;return O.serverSeq&&(d=Zn.fromString(O.serverSeq,!0)),Vu.of(O.clientSeq,Zn.fromString(O.lamport,!0),qu(O.actorId),d)}function Nn(O){if(O)return Ta.of(Zn.fromString(O.lamport,!0),O.delimiter,qu(O.actorId))}function yb(O){const d={};return Object.entries(O.data).forEach(([p,y])=>{d[p]=JSON.parse(y)}),d}function Vk(O){const d=O.type;if(d===Ap.PUT){const p=yb(O.presence);return{type:Fd.Put,presence:p}}if(d===Ap.CLEAR)return{type:Fd.Clear};throw new zr(wr.Unsupported,`unsupported type: ${d}`)}function lD(O){const d=new Map;return Object.entries(O).forEach(([p,y])=>{d.set(p,yb(y))}),d}function US(O){switch(O){case vn.NULL:return ka.Null;case vn.BOOLEAN:return ka.Boolean;case vn.INTEGER:return ka.Integer;case vn.LONG:return ka.Long;case vn.DOUBLE:return ka.Double;case vn.STRING:return ka.String;case vn.BYTES:return ka.Bytes;case vn.DATE:return ka.Date}throw new zr(wr.ErrUnimplemented,`unimplemented value type: ${O}`)}function vb(O){switch(O){case vn.INTEGER_CNT:return Ql.IntegerCnt;case vn.LONG_CNT:return Ql.LongCnt}throw new zr(wr.ErrUnimplemented,`unimplemented value type: ${O}`)}function eg(O){switch(O.type){case vn.JSON_OBJECT:return O.value?jS(O.value):se.create(Nn(O.createdAt));case vn.JSON_ARRAY:return O.value?Yk(O.value):Io.create(Nn(O.createdAt));case vn.TEXT:return il.create(Wc.create(),Nn(O.createdAt));case vn.TREE:return VS(O.value);case vn.NULL:case vn.BOOLEAN:case vn.INTEGER:case vn.LONG:case vn.DOUBLE:case vn.STRING:case vn.BYTES:case vn.DATE:return Ti.of(Ti.valueFromBytes(US(O.type),O.value),Nn(O.createdAt));case vn.INTEGER_CNT:case vn.LONG_CNT:return ni.create(vb(O.type),ni.valueFromBytes(vb(O.type),O.value),Nn(O.createdAt))}}function tg(O){return sl.of(lo.of(Nn(O.createdAt),O.offset),O.relativeOffset)}function Ob(O){return lo.of(Nn(O.createdAt),O.offset)}function uD(O){const d=q0.create(O.value);Object.entries(O.attributes).forEach(([y,T])=>{d.setAttr(y,T.value,Nn(T.updatedAt))});const p=Hd.create(Ob(O.id),d);return p.remove(Nn(O.removedAt)),p}function Qd(O){return Wl.of(ir(O.parentId),ir(O.leftSiblingId))}function ir(O){return Ca.of(Nn(O.createdAt),O.offset)}function cD(O){if(!O.length)return;const d=[];return O.forEach(p=>{const y=Wk(p.content);d.push(y)}),d}function Wk(O){if(O.length===0)return;const d=[];for(const y of O)d.push(Qk(y));const p=d[d.length-1];for(let y=d.length-2;y>=0;y--){let T;for(let $=y+1;${p.set(T,Nn($))});const y=new Map;return Object.entries(d.attributes).forEach(([T,$])=>{y.set(T,$)}),G0.create(Nn(d.parentCreatedAt),tg(d.from),tg(d.to),p,d.content,y,Nn(d.executedAt))}else if(O.body.case==="style"){const d=O.body.value,p=new Map;Object.entries(d.createdAtMapByActor).forEach(([T,$])=>{p.set(T,Nn($))});const y=new Map;return Object.entries(d.attributes).forEach(([T,$])=>{y.set(T,$)}),Y0.create(Nn(d.parentCreatedAt),tg(d.from),tg(d.to),p,y,Nn(d.executedAt))}else{if(O.body.case==="select")return;if(O.body.case==="increase"){const d=O.body.value;return Vd.create(Nn(d.parentCreatedAt),eg(d.value),Nn(d.executedAt))}else if(O.body.case==="treeEdit"){const d=O.body.value,p=new Map;return Object.entries(d.createdAtMapByActor).forEach(([y,T])=>{p.set(y,Nn(T))}),Do.create(Nn(d.parentCreatedAt),Qd(d.from),Qd(d.to),cD(d.contents),d.splitLevel,p,Nn(d.executedAt))}else if(O.body.case==="treeStyle"){const d=O.body.value,p=new Map,y=d.attributesToRemove,T=new Map;return d!=null&&d.createdAtMapByActor&&Object.entries(d.createdAtMapByActor).forEach(([$,q])=>{T.set($,Nn(q))}),(y==null?void 0:y.length)>0?Wu.createTreeRemoveStyleOperation(Nn(d.parentCreatedAt),Qd(d.from),Qd(d.to),T,y,Nn(d.executedAt)):(Object.entries(d.attributes).forEach(([$,q])=>{p.set($,q)}),Wu.create(Nn(d.parentCreatedAt),Qd(d.from),Qd(d.to),T,p,Nn(d.executedAt)))}else throw new zr(wr.ErrUnimplemented,"unimplemented operation")}}function dD(O){const d=[];for(const p of O){const y=qk(p);y&&d.push(y)}return d}function No(O){const d=[];for(const p of O)d.push(Ua.create({id:J0(p.id),operations:dD(p.operations),presenceChange:p.presenceChange?Vk(p.presenceChange):void 0,message:p.message}));return d}function fD(O){return ph.of(Zn.fromString(O.serverSeq,!0),O.clientSeq)}function Sb(O){return fb.create(O.documentKey,fD(O.checkpoint),O.isRemoved,No(O.changes),O.snapshot,Nn(O.minSyncedTicket))}function Eb(O){const d=new Np;for(const y of O.nodes){const T=xb(y.element);d.set(y.key,T,T.getPositionedAt())}const p=new se(Nn(O.createdAt),d);return p.setMovedAt(Nn(O.movedAt)),p.setRemovedAt(Nn(O.removedAt)),p}function zS(O){const d=new Vl;for(const y of O.nodes)d.insert(xb(y.element));const p=new Io(Nn(O.createdAt),d);return p.setMovedAt(Nn(O.movedAt)),p.setRemovedAt(Nn(O.removedAt)),p}function Gk(O){const d=Ti.of(Ti.valueFromBytes(US(O.type),O.value),Nn(O.createdAt));return d.setMovedAt(Nn(O.movedAt)),d.setRemovedAt(Nn(O.removedAt)),d}function Po(O){const d=new Wc;let p=d.getHead();for(const T of O.nodes){const $=d.insertAfter(p,uD(T));T.insPrevId&&$.setInsPrev(d.findNode(Ob(T.insPrevId))),p=$}const y=new il(d,Nn(O.createdAt));return y.setMovedAt(Nn(O.movedAt)),y.setRemovedAt(Nn(O.removedAt)),y}function qd(O){const d=ni.create(vb(O.type),ni.valueFromBytes(vb(O.type),O.value),Nn(O.createdAt));return d.setMovedAt(Nn(O.movedAt)),d.setRemovedAt(Nn(O.removedAt)),d}function wb(O){const d=Wk(O.nodes);return al.create(d,Nn(O.createdAt))}function xb(O){if(O.body.case==="jsonObject")return Eb(O.body.value);if(O.body.case==="jsonArray")return zS(O.body.value);if(O.body.case==="primitive")return Gk(O.body.value);if(O.body.case==="text")return Po(O.body.value);if(O.body.case==="counter")return qd(O.body.value);if(O.body.case==="tree")return wb(O.body.value);throw new zr(wr.ErrUnimplemented,"unimplemented element")}function Tb(O){if(!O)return{root:se.create(Is),presences:new Map};const d=gS.fromBinary(O);return{root:xb(d.root),presences:lD(d.presences)}}function jS(O){if(!O)throw new Error("bytes is empty");const d=ro.fromBinary(O);return Eb(d.body.value)}function kb(O){return bb(O).toBinary()}function Yk(O){if(!O)throw new Error("bytes is empty");const d=ro.fromBinary(O);return zS(d.body.value)}function HS(O){return zk(O).toBinary()}function VS(O){if(!O)throw new Error("bytes is empty");const d=ro.fromBinary(O);return wb(d.body.value)}function Gd(O){return gb(O).toBinary()}function Zk(O){return O?Array.from(O).map(d=>d.toString(16).padStart(2,"0")).join(""):""}function qu(O){return Zk(O)}function WS(O){return new Uint8Array(O.match(/.{1,2}/g).map(d=>parseInt(d,16)))}function Cb(O){return WS(O)}function QS(O){const d=J1.fromBinary(O);return J0(d)}function hD(O){const d=bS.fromBinary(O);return qk(d)}const ha={fromPresence:yb,toChangePack:Hk,fromChangePack:Sb,fromChanges:No,objectToBytes:kb,bytesToObject:jS,bytesToSnapshot:Tb,bytesToHex:Zk,hexToBytes:WS,toHexString:qu,toUint8Array:Cb,toOperation:Lp,toChangeID:Wd,PbChangeID:J1,bytesToChangeID:QS,bytesToOperation:hD};function Xk(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,O=>{const d=Math.random()*16|0;return(O==="x"?d:d&3|8).toString(16)})}class Kk{constructor(d,p,y,T){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),this.reconnectStreamDelay=d,this.doc=p,this.docID=y,this.syncMode=T,this.remoteChangeEventReceived=!1}changeSyncMode(d){this.syncMode=d}needRealtimeSync(){return this.syncMode===Vp.RealtimeSyncOff?!1:this.syncMode===Vp.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==Vp.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(d){const p=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await d(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(p,this.reconnectStreamDelay)})}catch{}};await p()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const Ab=()=>{};class pD{constructor(d){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{d(this)}catch(p){this.error(p)}}next(d){this.forEachObserver(p=>{p.next(d)})}error(d){this.forEachObserver(p=>{p.error(d)}),this.close(d)}complete(){this.forEachObserver(d=>{d.complete()}),this.close()}subscribe(d,p,y){let T;d||Mt.fatal("missing observer"),this.finalized&&Mt.fatal("observable is finalized due to previous error"),typeof d=="object"?T=d:T={next:d,error:p,complete:y},T.next===void 0&&(T.next=Ab),T.error===void 0&&(T.error=Ab),T.complete===void 0&&(T.complete=Ab);const $=Xk(),q=this.unsubscribeOne.bind(this,$);if(this.observers.push({subscriptionID:$,observer:T}),this.finalized)try{this.finalError?T.error(this.finalError):T.complete()}catch(ne){Mt.warn(ne)}return q}unsubscribeOne(d){var p;this.observers=(p=this.observers)==null?void 0:p.filter(y=>y.subscriptionID!==d)}forEachObserver(d){if(!this.finalized)for(let p=0;pd}}class mh{constructor(d,p,y,T){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=d,this.delimiter=H0,this.root=p,this.operations=[],this.previousPresence=jl(y),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=T}static create(d,p,y,T){return new mh(d,p,y,T)}push(d){this.operations.push(d)}registerElement(d,p){this.root.registerElement(d,p)}registerRemovedElement(d){this.root.registerRemovedElement(d)}registerGCPair(d){this.root.registerGCPair(d)}getChange(){return Ua.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(d){this.presenceChange=d}setReversePresence(d,p){for(const y of Object.keys(d))p!=null&&p.addToHistory?this.reversePresenceKeys.add(y):this.reversePresenceKeys.delete(y)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const d={};for(const p of this.reversePresenceKeys)d[p]=this.previousPresence[p];return d}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class za{constructor(d){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=d,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(d,void 0),d.getDescendants(p=>{if(p.getRemovedAt()&&this.registerRemovedElement(p),p instanceof il||p instanceof al)for(const y of p.getGCPairs())this.registerGCPair(y);return!1})}static create(){return new za(se.create(Is))}findByCreatedAt(d){const p=this.elementPairMapByCreatedAt.get(d.toIDString());if(p)return p.element}findElementPairByCreatedAt(d){return this.elementPairMapByCreatedAt.get(d.toIDString())}createSubPaths(d){let p=this.elementPairMapByCreatedAt.get(d.toIDString());if(!p)return[];const y=[];for(;p.parent;){const T=p.element.getCreatedAt(),$=p.parent.subPathOf(T);$===void 0&&Mt.fatal(`cant find the given element: ${T.toIDString()}`),y.unshift($),p=this.elementPairMapByCreatedAt.get(p.parent.getCreatedAt().toIDString())}return y.unshift("$"),y}createPath(d){return this.createSubPaths(d).join(".")}registerElement(d,p){this.elementPairMapByCreatedAt.set(d.getCreatedAt().toIDString(),{parent:p,element:d}),d instanceof Hl&&d.getDescendants((y,T)=>(this.registerElement(y,T),!1))}deregisterElement(d){let p=0;const y=T=>{const $=T.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete($),this.gcElementSetByCreatedAt.delete($),p++};return y(d),d instanceof Hl&&d.getDescendants(T=>(y(T),!1)),p}registerRemovedElement(d){this.gcElementSetByCreatedAt.add(d.getCreatedAt().toIDString())}registerGCPair(d){if(this.gcPairMap.get(d.child.toIDString())){this.gcPairMap.delete(d.child.toIDString());return}this.gcPairMap.set(d.child.toIDString(),d)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const d=new Set;for(const p of this.gcElementSetByCreatedAt){d.add(p);const y=this.elementPairMapByCreatedAt.get(p);y.element instanceof Hl&&y.element.getDescendants(T=>(d.add(T.getCreatedAt().toIDString()),!1))}return d.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new za(this.rootObject.deepcopy())}garbageCollect(d){let p=0;for(const y of this.gcElementSetByCreatedAt){const T=this.elementPairMapByCreatedAt.get(y);T.element.getRemovedAt()&&d.compare(T.element.getRemovedAt())>=0&&(T.parent.purge(T.element),p+=this.deregisterElement(T.element))}for(const[,y]of this.gcPairMap){const T=y.child.getRemovedAt();T!==void 0&&d.compare(T)>=0&&(y.parent.purge(y.child),this.gcPairMap.delete(y.child.toIDString()),p+=1)}return p}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function ql(O,d){const p=new rg(O);return new Proxy(d,p.getHandlers())}class rg{constructor(d){s(this,"context"),s(this,"handlers"),this.context=d,this.handlers={set:(p,y,T)=>(Mt.isEnabled(ea.Trivial)&&Mt.trivial(`obj[${y}]=${JSON.stringify(T)}`),rg.setInternal(d,p,y,T),!0),get:(p,y)=>(Mt.isEnabled(ea.Trivial)&&Mt.trivial(`obj[${y}]`),y==="getID"?()=>p.getCreatedAt():y==="toJSON"||y==="toString"?()=>p.toJSON():y==="toJS"?()=>p.toJS():y==="toJSForTest"?()=>p.toJSForTest():Yd(d,p.get(y))),ownKeys:p=>p.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(p,y)=>(Mt.isEnabled(ea.Trivial)&&Mt.trivial(`obj[${y}]`),rg.deleteInternal(d,p,y),!0)}}static setInternal(d,p,y,T){if(y.includes("."))throw new zr(wr.ErrInvalidObjectKey,"key must not contain the '.'.");const $=d.issueTimeTicket(),q=gh(d,T,$),ne=p.set(y,q,$);d.registerElement(q,p),ne&&d.registerRemovedElement(ne),d.push(fh.create(y,q.deepcopy(),p.getCreatedAt(),$))}static buildObjectMembers(d,p){const y={};for(const[T,$]of Object.entries(p)){if(T.includes("."))throw new zr(wr.ErrInvalidObjectKey,"key must not contain the '.'.");const q=d.issueTimeTicket(),ne=gh(d,$,q);y[T]=ne}return y}static deleteInternal(d,p,y){const T=d.issueTimeTicket(),$=p.deleteByKey(y,T);$&&(d.push(Ud.create(p.getCreatedAt(),$.getCreatedAt(),T)),d.registerRemovedElement($))}getHandlers(){return this.handlers}}function mD(O,d){const p=new Li(O,d);return new Proxy(d,p.getHandlers())}function _b(O){return typeof O=="string"||O instanceof String?!isNaN(O):!1}function $p(O){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(O)}class Li{constructor(d,p){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=d,this.array=p,this.handlers={get:(y,T,$)=>T==="getID"?()=>y.getCreatedAt():T==="getElementByID"?q=>{const ne=y.getByID(q);if(!(!ne||ne.isRemoved()))return Gl(d,ne)}:T==="getElementByIndex"?q=>{const ne=y.get(q);return Gl(d,ne)}:T==="getLast"?()=>Gl(d,y.getLast()):T==="deleteByID"?q=>{const ne=Li.deleteInternalByID(d,y,q);return Gl(d,ne)}:T==="insertAfter"?(q,ne)=>{const me=Li.insertAfterInternal(d,y,q,ne);return Gl(d,me)}:T==="insertBefore"?(q,ne)=>{const me=Li.insertBeforeInternal(d,y,q,ne);return Gl(d,me)}:T==="moveBefore"?(q,ne)=>{Li.moveBeforeInternal(d,y,q,ne)}:T==="moveAfter"?(q,ne)=>{Li.moveAfterInternal(d,y,q,ne)}:T==="moveFront"?q=>{Li.moveFrontInternal(d,y,q)}:T==="moveLast"?q=>{Li.moveLastInternal(d,y,q)}:_b(T)?Yd(d,y.get(Number(T))):T==="push"?q=>Li.pushInternal(d,y,q):T==="splice"?(q,ne,...me)=>Li.splice(d,y,q,ne,...me):T==="length"?y.length:typeof T=="symbol"&&T===Symbol.iterator?Li.iteratorInternal.bind(this,d,y):T==="includes"?(q,ne)=>Li.includes(d,y,q,ne):T==="indexOf"?(q,ne)=>Li.indexOf(d,y,q,ne):T==="lastIndexOf"?(q,ne)=>Li.lastIndexOf(d,y,q,ne):T==="toJSForTest"?()=>y.toJSForTest():T==="toTestString"?()=>Li.toTestString(y):typeof T=="string"&&$p(T)?(...q)=>{const ne=Array.from(y).map(me=>Yd(d,me));return Array.prototype[T].apply(ne,q)}:Reflect.get(y,T,$),deleteProperty:(y,T)=>(Mt.isEnabled(ea.Trivial)&&Mt.trivial(`array[${T}]`),Li.deleteInternalByIndex(d,y,Number.parseInt(T)),!0)}}static*iteratorInternal(d,p){for(const y of p)yield Gl(d,y)}static buildArrayElements(d,p){const y=[];for(const T of p){const $=d.issueTimeTicket(),q=gh(d,T,$);y.push(q)}return y}static pushInternal(d,p,y){return Li.insertAfterInternal(d,p,p.getLastCreatedAt(),y),p.length}static moveBeforeInternal(d,p,y,T){const $=d.issueTimeTicket(),q=p.getPrevCreatedAt(y);p.moveAfter(q,T,$),d.push(zd.create(p.getCreatedAt(),q,T,$))}static moveAfterInternal(d,p,y,T){const $=d.issueTimeTicket();p.moveAfter(y,T,$),d.push(zd.create(p.getCreatedAt(),y,T,$))}static moveFrontInternal(d,p,y){const T=d.issueTimeTicket(),$=p.getHead();p.moveAfter($.getCreatedAt(),y,T),d.push(zd.create(p.getCreatedAt(),$.getCreatedAt(),y,T))}static moveLastInternal(d,p,y){const T=d.issueTimeTicket(),$=p.getLastCreatedAt();p.moveAfter($,y,T),d.push(zd.create(p.getCreatedAt(),$,y,T))}static insertAfterInternal(d,p,y,T){const $=d.issueTimeTicket(),q=gh(d,T,$);return p.insertAfter(y,q),d.registerElement(q,p),d.push(Q0.create(p.getCreatedAt(),y,q.deepcopy(),$)),q}static insertBeforeInternal(d,p,y,T){return Li.insertAfterInternal(d,p,p.getPrevCreatedAt(y),T)}static deleteInternalByIndex(d,p,y){const T=d.issueTimeTicket(),$=p.deleteByIndex(y,T);if($)return d.push(Ud.create(p.getCreatedAt(),$.getCreatedAt(),T)),d.registerRemovedElement($),$}static deleteInternalByID(d,p,y){const T=d.issueTimeTicket(),$=p.delete(y,T);return d.push(Ud.create(p.getCreatedAt(),$.getCreatedAt(),T)),d.registerRemovedElement($),$}static splice(d,p,y,T,...$){const q=p.length,ne=y>=0?Math.min(y,q):Math.max(q+y,0),me=T===void 0?q:T<0?ne:Math.min(ne+T,q),Se=[];for(let ze=ne;ze=q)return!1;if(Ti.isSupport(y))return Array.from(p).map(Se=>Yd(d,Se)).includes(y,ne);for(let me=ne;me=q)return-1;if(Ti.isSupport(y))return Array.from(p).map(Se=>Yd(d,Se)).indexOf(y,ne);for(let me=ne;me=q?q-1:T<0?T+q:T;if(ne<0)return-1;if(Ti.isSupport(y))return Array.from(p).map(Se=>Yd(d,Se)).lastIndexOf(y,ne);for(let me=ne;me>0;me--)if((($=p.get(me))==null?void 0:$.getID())===y.getID())return me;return-1}static toTestString(d){return d.toTestString()}getHandlers(){return this.handlers}}class Fp{constructor(d,p){s(this,"context"),s(this,"text"),this.context=d,this.text=p}initialize(d,p){this.context=d,this.text=p}getID(){return this.text.getID()}edit(d,p,y,T){if(!this.context||!this.text){Mt.fatal("it is not initialized yet");return}if(d>p){Mt.fatal("from should be less than or equal to to");return}const $=this.text.indexRangeToPosRange(d,p);Mt.isEnabled(ea.Debug)&&Mt.debug(`EDIT: f:${d}->${$[0].toTestString()}, t:${p}->${$[1].toTestString()} c:${y}`);const q=T?Ji(T):void 0,ne=this.context.issueTimeTicket(),[me,,Se,ze]=this.text.edit($,y,ne,q);for(const Ct of Se)this.context.registerGCPair(Ct);return this.context.push(new G0(this.text.getCreatedAt(),$[0],$[1],me,y,q?new Map(Object.entries(q)):new Map,ne)),this.text.findIndexesFromRange(ze)}delete(d,p){return this.edit(d,p,"")}empty(){return this.edit(0,this.length,"")}setStyle(d,p,y){if(!this.context||!this.text)return Mt.fatal("it is not initialized yet"),!1;if(d>p)return Mt.fatal("from should be less than or equal to to"),!1;const T=this.text.indexRangeToPosRange(d,p);Mt.isEnabled(ea.Debug)&&Mt.debug(`STYL: f:${d}->${T[0].toTestString()}, t:${p}->${T[1].toTestString()} a:${JSON.stringify(y)}`);const $=Ji(y),q=this.context.issueTimeTicket(),[ne,me]=this.text.setStyle(T,$,q);for(const Se of me)this.context.registerGCPair(Se);return this.context.push(new Y0(this.text.getCreatedAt(),T[0],T[1],ne,new Map(Object.entries($)),q)),!0}indexRangeToPosRange(d){if(!this.context||!this.text){Mt.fatal("it is not initialized yet");return}const p=this.text.indexRangeToPosRange(d[0],d[1]);return[p[0].toStruct(),p[1].toStruct()]}posRangeToIndexRange(d){if(!this.context||!this.text){Mt.fatal("it is not initialized yet");return}const p=this.text.findIndexesFromRange([sl.fromStruct(d[0]),sl.fromStruct(d[1])]);return[p[0],p[1]]}toTestString(){if(!this.context||!this.text){Mt.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){Mt.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}getTreeByIndex(){return this.text.getTreeByIndex()}getTreeByID(){return this.text.getTreeByID()}toString(){return!this.context||!this.text?(Mt.fatal("it is not initialized yet"),""):this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSForTest()}createRangeForTest(d,p){if(!this.context||!this.text){Mt.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(d,p)}}class ig{constructor(d,p){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=d,this.value=p}initialize(d,p){this.valueType=p.getValueType(),this.context=d,this.counter=p,this.value=p.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(d){if(!this.context||!this.counter){Mt.fatal("it is not initialized yet");return}const p=this.context.issueTimeTicket(),y=Ti.of(d,p);if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`);return this.counter.increase(y),this.context.push(Vd.create(this.counter.getCreatedAt(),y,p)),this}toJSForTest(){if(!this.context||!this.counter)throw new Error("it is not initialized yet");return this.counter.toJSForTest()}}function Rb(O,d,p){const{type:y}=O,T=p.issueTimeTicket();if(y===Vc){Up(O);const{value:$}=O,q=Ga.create(Ca.of(T,0),y,$);d.append(q)}else{const{children:$=[]}=O;let{attributes:q}=O,ne;if(typeof q=="object"&&!fa(q)){q=Ji(q),ne=new jc;for(const[Se,ze]of Object.entries(q))ne.set(Se,ze,T)}const me=Ga.create(Ca.of(T,0),y,void 0,ne);d.append(me);for(const Se of $)Rb(Se,me,p)}}function Bp(O,d){const{type:p}=d,y=O.issueTimeTicket();let T;if(d.type===Vc){const{value:$}=d;T=Ga.create(Ca.of(y,0),p,$)}else if(d){const{children:$=[]}=d;let{attributes:q}=d,ne;if(typeof q=="object"&&!fa(q)){q=Ji(q),ne=new jc;for(const[me,Se]of Object.entries(q))ne.set(me,Se,y)}T=Ga.create(Ca.of(O.issueTimeTicket(),0),p,void 0,ne);for(const me of $)Rb(me,T,O)}return T}function Up(O){if(!O.value.length)throw new Error("text node cannot have empty value");return!0}function eC(O){if(!O.length)return!0;if(O[0].type===Vc)for(const p of O){const{type:y}=p;if(y!==Vc)throw new Error("element node and text node cannot be passed together");Up(p)}else for(const p of O){const{type:y}=p;if(y===Vc)throw new Error("element node and text node cannot be passed together")}return!0}class zp{constructor(d){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=d}initialize(d,p){this.context=d,this.tree=p}getID(){return this.tree.getID()}buildRoot(d){if(!this.initialRoot)return Ga.create(Ca.of(d.issueTimeTicket(),0),Y6);const p=Ga.create(Ca.of(d.issueTimeTicket(),0),this.initialRoot.type);for(const y of this.initialRoot.children)Rb(y,p,d);return p}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(d,p){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!d.length)throw new Error("path should not be empty");const[y,T]=this.tree.pathToPosRange(d),$=this.context.issueTimeTicket(),q=p?Ji(p):void 0,[ne]=this.tree.style([y,T],q,$);this.context.push(Wu.create(this.tree.getCreatedAt(),y,T,ne,q?new Map(Object.entries(q)):new Map,$))}style(d,p,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const T=this.tree.findPos(d),$=this.tree.findPos(p),q=this.context.issueTimeTicket(),ne=y?Ji(y):void 0,[me,Se]=this.tree.style([T,$],ne,q);for(const ze of Se)this.context.registerGCPair(ze);this.context.push(Wu.create(this.tree.getCreatedAt(),T,$,me,ne?new Map(Object.entries(ne)):new Map,q))}removeStyle(d,p,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const T=this.tree.findPos(d),$=this.tree.findPos(p),q=this.context.issueTimeTicket(),[ne,me]=this.tree.removeStyle([T,$],y,q);for(const Se of me)this.context.registerGCPair(Se);this.context.push(Wu.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),T,$,ne,y,q))}editInternal(d,p,y,T=0){var $;if(y.length!==0&&y[0]&&(eC(y),y[0].type!==Vc))for(const ze of y){const{children:Ct=[]}=ze;eC(Ct)}const q=this.context.getLastTimeTicket();let ne=new Array;if((($=y[0])==null?void 0:$.type)===Vc){let ze="";for(const Ct of y){const{value:St}=Ct;ze+=St}ne.push(Ga.create(Ca.of(this.context.issueTimeTicket(),0),Vc,ze))}else ne=y.map(ze=>ze&&Bp(this.context,ze)).filter(ze=>ze);const[,me,Se]=this.tree.edit([d,p],ne.length?ne.map(ze=>ze==null?void 0:ze.deepcopy()):void 0,T,q,()=>this.context.issueTimeTicket());for(const ze of me)this.context.registerGCPair(ze);return this.context.push(Do.create(this.tree.getCreatedAt(),d,p,ne.length?ne:void 0,T,Se,q)),!0}editByPath(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d.length!==p.length)throw new Error("path length should be equal");if(!d.length||!p.length)throw new Error("path should not be empty");const $=this.tree.pathToPos(d),q=this.tree.pathToPos(p);return this.editInternal($,q,y?[y]:[],T)}editBulkByPath(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d.length!==p.length)throw new Error("path length should be equal");if(!d.length||!p.length)throw new Error("path should not be empty");const $=this.tree.pathToPos(d),q=this.tree.pathToPos(p);return this.editInternal($,q,y,T)}edit(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const $=this.tree.findPos(d),q=this.tree.findPos(p);return this.editInternal($,q,y?[y]:[],T)}editBulk(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const $=this.tree.findPos(d),q=this.tree.findPos(p);return this.editInternal($,q,y,T)}toXML(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSON()}toJSForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(d){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(d)}pathToIndex(d){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(d)}pathRangeToPosRange(d){if(!this.context||!this.tree){Mt.fatal("it is not initialized yet");return}const p=[this.tree.pathToIndex(d[0]),this.tree.pathToIndex(d[1])],y=this.tree.indexRangeToPosRange(p);return[y[0].toStruct(),y[1].toStruct()]}indexRangeToPosRange(d){if(!this.context||!this.tree){Mt.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(d)}posRangeToIndexRange(d){if(!this.context||!this.tree){Mt.fatal("it is not initialized yet");return}const p=[Wl.fromStruct(d[0]),Wl.fromStruct(d[1])];return this.tree.posRangeToIndexRange(p)}posRangeToPathRange(d){if(!this.context||!this.tree){Mt.fatal("it is not initialized yet");return}const p=[Wl.fromStruct(d[0]),Wl.fromStruct(d[1])];return this.tree.posRangeToPathRange(p)}}function qS(O,d){return ql(O,d)}function Gl(O,d){if(d){if(d instanceof Ti)return d;if(d instanceof se)return ql(O,d);if(d instanceof Io)return mD(O,d);if(d instanceof il)return new Fp(O,d);if(d instanceof ni){const p=new ig(Ql.IntegerCnt,0);return p.initialize(O,d),p}else if(d instanceof al){const p=new zp;return p.initialize(O,d),p}}else return;throw new TypeError(`Unsupported type of element: ${typeof d}`)}function Yd(O,d){const p=Gl(O,d);return p instanceof Ti?p.getValue():p}function gh(O,d,p){let y;if(Ti.isSupport(d))y=Ti.of(d,p);else if(Array.isArray(d))y=Io.create(p,Li.buildArrayElements(O,d));else if(typeof d=="object")d instanceof Fp?(y=il.create(Wc.create(),p),d.initialize(O,y)):d instanceof ig?(y=ni.create(d.getValueType(),d.getValue(),p),d.initialize(O,y)):d instanceof zp?(y=al.create(d.buildRoot(O),p),d.initialize(O,y)):y=se.create(p,rg.buildObjectMembers(O,d));else throw new TypeError(`Unsupported type of value: ${typeof d}`);return y}const Ib=50;class Db{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(d){this.undoStack.length>=Ib&&this.undoStack.shift(),this.undoStack.push(d)}popUndo(){return this.undoStack.pop()}pushRedo(d){this.redoStack.length>=Ib&&this.redoStack.shift(),this.redoStack.push(d)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const tC="yorkie-devtools-panel",GS="yorkie-devtools-sdk";let Qc="disconnected";const YS=new Map,jp=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=jp);function Nb(O,d){(d!=null&&d.force||Qc!=="disconnected")&&window.postMessage({source:GS,...O},"*")}function nC(O){if(!O.isEnableDevtools()||typeof window>"u"||YS.has(O.getKey()))return;jp.set(O.getKey(),[]);const d=O.subscribe("all",p=>{p.some(y=>y.type!==ps.StatusChanged&&y.type!==ps.Snapshot&&y.type!==ps.LocalChange&&y.type!==ps.RemoteChange&&y.type!==ps.Initialized&&y.type!==ps.Watched&&y.type!==ps.Unwatched&&y.type!==ps.PresenceChanged)||(jp.get(O.getKey()).push(p),Qc==="synced"&&Nb({msg:"doc::sync::partial",docKey:O.getKey(),event:p}))});YS.set(O.getKey(),[d]),Nb({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",p=>{var y;if(((y=p.data)==null?void 0:y.source)!==tC)return;switch(p.data.msg){case"devtools::connect":if(Qc!=="disconnected")break;Qc="connected",Nb({msg:"doc::available",docKey:O.getKey()}),Mt.info(`[YD] Devtools connected. Doc: ${O.getKey()}`);break;case"devtools::disconnect":Qc="disconnected",Mt.info(`[YD] Devtools disconnected. Doc: ${O.getKey()}`);break;case"devtools::subscribe":Qc="synced",Nb({msg:"doc::sync::full",docKey:O.getKey(),events:jp.get(O.getKey())}),Mt.info(`[YD] Devtools subscribed. Doc: ${O.getKey()}`);break}})}var Ya=(O=>(O.Detached="detached",O.Attached="attached",O.Removed="removed",O))(Ya||{}),ps=(O=>(O.StatusChanged="status-changed",O.ConnectionChanged="connection-changed",O.SyncStatusChanged="sync-status-changed",O.Snapshot="snapshot",O.LocalChange="local-change",O.RemoteChange="remote-change",O.Initialized="initialized",O.Watched="watched",O.Unwatched="unwatched",O.PresenceChanged="presence-changed",O))(ps||{}),ag=(O=>(O.Connected="connected",O.Disconnected="disconnected",O))(ag||{}),Pb=(O=>(O.Synced="synced",O.SyncFailed="sync-failed",O))(Pb||{});class Mb{constructor(d,p){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=p||{},this.key=d,this.status="detached",this.root=za.create(),this.changeID=hh,this.checkpoint=Lk,this.localChanges=[],this.eventStream=Jk(y=>{this.eventStreamObserver=y}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new Db,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},nC(this)}update(d,p){if(this.getStatus()==="removed")throw new zr(wr.ErrDocumentRemoved,`${this.key} is removed`);this.ensureClone();const y=this.changeID.getActorID(),T=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(y)||{},p);try{const $=qS(T,this.clone.root.getObject());this.presences.has(y)||this.clone.presences.set(y,{}),this.isUpdating=!0,d($,new ub(T,this.clone.presences.get(y)))}catch($){throw this.clone=void 0,Mt.error($),$}finally{this.isUpdating=!1}if(T.hasChange()){Mt.isEnabled(ea.Trivial)&&Mt.trivial(`trying to update a local change: ${this.toJSON()}`);const $=T.getChange(),{opInfos:q,reverseOps:ne}=$.execute(this.root,this.presences,Lr.Local),me=T.getReversePresence();me&&ne.push({type:"presence",value:me}),this.localChanges.push($),ne.length>0&&this.internalHistory.pushUndo(ne),q.length>0&&this.internalHistory.clearRedo(),this.changeID=$.getID();const Se=[];q.length>0&&Se.push({type:"local-change",source:Lr.Local,value:{message:$.getMessage()||"",operations:q,actor:y,clientSeq:$.getID().getClientSeq(),serverSeq:$.getID().getServerSeq()},rawChange:this.isEnableDevtools()?$.toStruct():void 0}),$.hasPresenceChange()&&Se.push({type:"presence-changed",source:Lr.Local,value:{clientID:y,presence:this.getPresence(y)}}),this.publish(Se),Mt.isEnabled(ea.Trivial)&&Mt.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(d,p,y,T){if(typeof d=="string"){if(typeof p!="function")throw new Error("Second argument must be a callback function");if(d==="presence"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="initialized"&&Se.type!=="watched"&&Se.type!=="unwatched"&&Se.type!=="presence-changed"||ne(Se)},y,T)}if(d==="my-presence"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="initialized"&&Se.type!=="presence-changed"||Se.type==="presence-changed"&&Se.value.clientID!==this.changeID.getActorID()||ne(Se)},y,T)}if(d==="others"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="watched"&&Se.type!=="unwatched"&&Se.type!=="presence-changed"||Se.value.clientID!==this.changeID.getActorID()&&ne(Se)},y,T)}if(d==="connection"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type==="connection-changed"&&ne(Se)},y,T)}if(d==="status"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type==="status-changed"&&ne(Se)},y,T)}if(d==="sync"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type==="sync-status-changed"&&ne(Se)},y,T)}if(d==="all"){const ne=p;return this.eventStream.subscribe(ne,y,T)}const $=d,q=p;return this.eventStream.subscribe(ne=>{for(const me of ne){if(me.type!=="local-change"&&me.type!=="remote-change")continue;const Se=[];for(const ze of me.value.operations)this.isSameElementOrChildOf(ze.path,$)&&Se.push(ze);Se.length&&q({...me,value:{...me.value,operations:Se}})}},y,T)}if(typeof d=="function"){const $=d,q=p,ne=y;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="snapshot"&&Se.type!=="local-change"&&Se.type!=="remote-change"||$(Se)},q,ne)}throw new Error(`"${d}" is not a valid`)}publish(d){this.eventStreamObserver&&this.eventStreamObserver.next(d)}isSameElementOrChildOf(d,p){if(p===d)return!0;const y=d.split(".");return p.split(".").every(($,q)=>$===y[q])}applyChangePack(d){for(d.hasSnapshot()?this.applySnapshot(d.getCheckpoint().getServerSeq(),d.getSnapshot()):d.hasChanges()&&this.applyChanges(d.getChanges(),Lr.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>d.getCheckpoint().getClientSeq());)this.localChanges.shift();d.hasSnapshot()&&this.applyChanges(this.localChanges,Lr.Remote),this.checkpoint=this.checkpoint.forward(d.getCheckpoint()),this.garbageCollect(d.getMinSyncedTicket()),d.getIsRemoved()&&this.applyStatus("removed"),Mt.isEnabled(ea.Trivial)&&Mt.trivial(`${this.root.toJSON()}`)}getCheckpoint(){return this.checkpoint}getChangeID(){return this.changeID}hasLocalChanges(){return this.localChanges.length>0}ensureClone(){this.clone||(this.clone={root:this.root.deepcopy(),presences:jl(this.presences)})}createChangePack(){const d=Array.from(this.localChanges),p=this.checkpoint.increaseClientSeq(d.length);return fb.create(this.key,p,!1,d)}setActor(d){for(const p of this.localChanges)p.setActor(d);this.changeID=this.changeID.setActor(d)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const d=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return qS(d,this.clone.root.getObject())}garbageCollect(d){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(d),this.root.garbageCollect(d))}getRootObject(){return this.root.getObject()}getGarbageLen(){return this.root.getGarbageLen()}getGarbageLenFromClone(){return this.clone.root.getGarbageLen()}toJSON(){return this.root.toJSON()}toSortedJSON(){return this.root.toSortedJSON()}toJSForTest(){return{...this.getRoot().toJSForTest(),key:"root"}}applySnapshot(d,p){const{root:y,presences:T}=ha.bytesToSnapshot(p);this.root=new za(y),this.presences=T,this.changeID=this.changeID.syncLamport(d),this.clone=void 0,this.publish([{type:"snapshot",source:Lr.Remote,value:{snapshot:this.isEnableDevtools()?ha.bytesToHex(p):void 0,serverSeq:d.toString()}}])}applyChanges(d,p){Mt.isEnabled(ea.Debug)&&Mt.debug(`trying to apply ${d.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Mt.isEnabled(ea.Trivial)&&Mt.trivial(d.map(y=>`${y.getID().toTestString()} ${y.toTestString()}`).join(` -`));for(const y of d)this.applyChange(y,p);Mt.isEnabled(ea.Debug)&&Mt.debug(`after appling ${d.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(d,p){this.ensureClone(),d.execute(this.clone.root,this.clone.presences,p);const y=[],T=d.getID().getActorID();if(d.hasPresenceChange()&&this.onlineClients.has(T)){const q=d.getPresenceChange();switch(q.type){case Fd.Put:y.push(this.presences.has(T)?{type:"presence-changed",source:p,value:{clientID:T,presence:q.presence}}:{type:"watched",source:Lr.Remote,value:{clientID:T,presence:q.presence}});break;case Fd.Clear:y.push({type:"unwatched",source:Lr.Remote,value:{clientID:T,presence:this.getPresence(T)}}),this.removeOnlineClient(T);break}}const{opInfos:$}=d.execute(this.root,this.presences,p);if(this.changeID=this.changeID.syncLamport(d.getID().getLamport()),$.length>0){const q=this.isEnableDevtools()?d.toStruct():void 0;y.push(p===Lr.Remote?{type:"remote-change",source:p,value:{actor:T,clientSeq:d.getID().getClientSeq(),serverSeq:d.getID().getServerSeq(),message:d.getMessage()||"",operations:$},rawChange:q}:{type:"local-change",source:p,value:{actor:T,clientSeq:d.getID().getClientSeq(),serverSeq:d.getID().getServerSeq(),message:d.getMessage()||"",operations:$},rawChange:q})}y.length>0&&this.publish(y)}applyWatchStream(d){if(d.body.case==="initialization"){const p=d.body.value.clientIds,y=new Set;for(const T of p)T!==this.changeID.getActorID()&&y.add(T);this.setOnlineClients(y),this.publish([{type:"initialized",source:Lr.Local,value:this.getPresences()}]);return}if(d.body.case==="event"){const{type:p,publisher:y}=d.body.value,T=[];if(p===Fl.DOCUMENT_WATCHED)this.addOnlineClient(y),this.hasPresence(y)&&T.push({type:"watched",source:Lr.Remote,value:{clientID:y,presence:this.getPresence(y)}});else if(p===Fl.DOCUMENT_UNWATCHED){const $=this.getPresence(y);this.removeOnlineClient(y),$&&T.push({type:"unwatched",source:Lr.Remote,value:{clientID:y,presence:$}})}T.length>0&&this.publish(T)}}applyStatus(d){this.status=d,d==="detached"&&this.setActor(cb),this.publish([{source:d==="removed"?Lr.Remote:Lr.Local,type:"status-changed",value:d==="attached"?{status:d,actorID:this.changeID.getActorID()}:{status:d}}])}applyDocEvent(d){if(d.type==="status-changed"){this.applyStatus(d.value.status),d.value.status==="attached"&&this.setActor(d.value.actorID);return}if(d.type==="snapshot"){const{snapshot:p,serverSeq:y}=d.value;if(!p)return;this.applySnapshot(Zn.fromString(y),ha.hexToBytes(p));return}if(d.type==="local-change"||d.type==="remote-change"){if(!d.rawChange)return;const p=Ua.fromStruct(d.rawChange);this.applyChange(p,d.source)}if(d.type==="initialized"){const p=new Set;for(const{clientID:y,presence:T}of d.value)p.add(y),this.presences.set(y,T);this.setOnlineClients(p);return}if(d.type==="watched"){const{clientID:p,presence:y}=d.value;this.addOnlineClient(p),this.presences.set(p,y);return}if(d.type==="unwatched"){const{clientID:p}=d.value;this.removeOnlineClient(p),this.presences.delete(p)}if(d.type==="presence-changed"){const{clientID:p,presence:y}=d.value;this.presences.set(p,y)}}applyTransactionEvent(d){for(const p of d)this.applyDocEvent(p)}getValueByPath(d){if(!d.startsWith("$"))throw new zr(wr.ErrInvalidArgument,'path must start with "$"');const p=d.split(".");p.shift();let y=this.getRoot();for(const T of p)if(y=y[T],y===void 0)return;return y}setOnlineClients(d){this.onlineClients=d}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(d){this.onlineClients.add(d)}removeOnlineClient(d){this.onlineClients.delete(d)}hasPresence(d){return this.presences.has(d)}getMyPresence(){if(this.status!=="attached")return{};const d=this.presences.get(this.changeID.getActorID());return d?jl(d):{}}getPresence(d){if(d===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(d))return;const p=this.presences.get(d);return p?jl(p):void 0}getPresenceForTest(d){const p=this.presences.get(d);return p?jl(p):void 0}getPresences(){const d=[];d.push({clientID:this.changeID.getActorID(),presence:jl(this.getMyPresence())});for(const p of this.onlineClients)this.presences.has(p)&&d.push({clientID:p,presence:jl(this.presences.get(p))});return d}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const d=this.getChangeID().getActorID();return this.getPresences().filter(p=>p.clientID!==d).sort((p,y)=>p.clientID>y.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Error("Undo is not allowed during an update");const d=this.internalHistory.popUndo();if(d===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const p=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Se of d){if(!(Se instanceof so)){new ub(p,jl(this.clone.presences.get(this.changeID.getActorID()))).set(Se.value,{addToHistory:!0});continue}const ze=p.issueTimeTicket();Se.setExecutedAt(ze),p.push(Se)}const y=p.getChange();y.execute(this.clone.root,this.clone.presences,Lr.UndoRedo);const{opInfos:T,reverseOps:$}=y.execute(this.root,this.presences,Lr.UndoRedo),q=p.getReversePresence();if(q&&$.push({type:"presence",value:q}),$.length>0&&this.internalHistory.pushRedo($),!y.hasPresenceChange()&&T.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const ne=this.changeID.getActorID(),me=[];T.length>0&&me.push({type:"local-change",source:Lr.UndoRedo,value:{message:y.getMessage()||"",operations:T,actor:ne,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&me.push({type:"presence-changed",source:Lr.UndoRedo,value:{clientID:ne,presence:this.getPresence(ne)}}),this.publish(me)}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const d=this.internalHistory.popRedo();if(d===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const p=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Se of d){if(!(Se instanceof so)){new ub(p,jl(this.clone.presences.get(this.changeID.getActorID()))).set(Se.value,{addToHistory:!0});continue}const ze=p.issueTimeTicket();Se.setExecutedAt(ze),p.push(Se)}const y=p.getChange();y.execute(this.clone.root,this.clone.presences,Lr.UndoRedo);const{opInfos:T,reverseOps:$}=y.execute(this.root,this.presences,Lr.UndoRedo),q=p.getReversePresence();if(q&&$.push({type:"presence",value:q}),$.length>0&&this.internalHistory.pushUndo($),!y.hasPresenceChange()&&T.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const ne=this.changeID.getActorID(),me=[];T.length>0&&me.push({type:"local-change",source:Lr.UndoRedo,value:{message:y.getMessage()||"",operations:T,actor:ne,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&me.push({type:"presence-changed",source:Lr.UndoRedo,value:{clientID:ne,presence:this.getPresence(ne)}}),this.publish(me)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function gD(O,d){return p=>async y=>(O&&y.header.set("x-api-key",O),d&&y.header.set("authorization",d),await p(y))}const KS={name:"yorkie-js-sdk",version:"0.4.27",description:"Yorkie JS SDK",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts",files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:examples":"npm run build --workspace examples","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"npm run build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@buf/googleapis_googleapis.connectrpc_es":"^1.4.0-20240524201209-f0e53af8f2fc.3","@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.4.0","@types/google-protobuf":"^3.15.5","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^4.7.4","typescript-transform-paths":"^3.3.1",vite:"^4.4.9","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.4.0","@connectrpc/connect-web":"^1.4.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"npm run lint"}},workspaces:["examples/*"]};function yD(){return O=>async d=>(d.header.set("x-yorkie-user-agent",KS.name+"/"+KS.version),await O(d))}var Vp=(O=>(O.Manual="manual",O.Realtime="realtime",O.RealtimePushOnly="realtime-pushonly",O.RealtimeSyncOff="realtime-syncoff",O))(Vp||{}),lC=(O=>(O.Deactivated="deactivated",O.Activated="activated",O))(lC||{}),uC=(O=>(O.SyncLoop="SyncLoop",O.WatchLoop="WatchLoop",O))(uC||{});const Lb={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class Yl{constructor(d,p){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"conditions"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),s(this,"taskQueue"),s(this,"processing",!1),p=p||Lb,this.key=p.key?p.key:Xk(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=p.apiKey||"",this.conditions={SyncLoop:!1,WatchLoop:!1},this.syncLoopDuration=p.syncLoopDuration||Lb.syncLoopDuration,this.reconnectStreamDelay=p.reconnectStreamDelay||Lb.reconnectStreamDelay,this.retrySyncLoopDelay=p.retrySyncLoopDelay||Lb.retrySyncLoopDelay,this.rpcClient=w6(Q6,mS({baseUrl:d,interceptors:[gD(p.apiKey,p.token),yD()]})),this.taskQueue=[]}activate(){return this.isActive()?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(d=>{this.id=d.clientId,this.status="activated",this.runSyncLoop(),Mt.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(d=>{throw Mt.error(`[AC] c:"${this.getKey()}" err :`,d),this.handleConnectError(d),d}))}deactivate(){return this.status==="deactivated"?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.deactivateInternal(),Mt.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(d=>{throw Mt.error(`[DC] c:"${this.getKey()}" err :`,d),this.handleConnectError(d),d}))}attach(d,p={}){if(!this.isActive())throw new zr(wr.ErrClientNotActivated,`${this.key} is not active`);if(d.getStatus()!==Ya.Detached)throw new zr(wr.ErrDocumentNotDetached,`${d.getKey()} is not detached`);d.setActor(this.id),d.update((T,$)=>$.set(p.initialPresence||{}));const y=p.syncMode??"realtime";return this.enqueueTask(async()=>this.rpcClient.attachDocument({clientId:this.id,changePack:ha.toChangePack(d.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${d.getKey()}`}}).then(async T=>{const $=ha.fromChangePack(T.changePack);return d.applyChangePack($),d.getStatus()===Ya.Removed||(d.applyStatus(Ya.Attached),this.attachmentMap.set(d.getKey(),new Kk(this.reconnectStreamDelay,d,T.documentId,y)),y!=="manual"&&await this.runWatchLoop(d.getKey()),Mt.info(`[AD] c:"${this.getKey()}" attaches d:"${d.getKey()}"`)),d}).catch(T=>{throw Mt.error(`[AD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}detach(d,p={}){if(!this.isActive())throw new zr(wr.ErrClientNotActivated,`${this.key} is not active`);const y=this.attachmentMap.get(d.getKey());if(!y)throw new zr(wr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);return d.update((T,$)=>$.clear()),this.enqueueTask(async()=>this.rpcClient.detachDocument({clientId:this.id,documentId:y.docID,changePack:ha.toChangePack(d.createChangePack()),removeIfNotAttached:p.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${d.getKey()}`}}).then(T=>{const $=ha.fromChangePack(T.changePack);return d.applyChangePack($),d.getStatus()!==Ya.Removed&&d.applyStatus(Ya.Detached),this.detachInternal(d.getKey()),Mt.info(`[DD] c:"${this.getKey()}" detaches d:"${d.getKey()}"`),d}).catch(T=>{throw Mt.error(`[DD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}async changeSyncMode(d,p){if(!this.isActive())throw new zr(wr.ErrClientNotActivated,`${this.key} is not active`);const y=this.attachmentMap.get(d.getKey());if(!y)throw new zr(wr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);const T=y.syncMode;return T===p?d:(y.changeSyncMode(p),p==="manual"?(y.cancelWatchStream(),d):(p==="realtime"&&(y.remoteChangeEventReceived=!0),T==="manual"&&await this.runWatchLoop(d.getKey()),d))}sync(d){if(!this.isActive())throw new zr(wr.ErrClientNotActivated,`${this.key} is not active`);if(d){const p=this.attachmentMap.get(d.getKey());if(!p)throw new zr(wr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);return this.enqueueTask(async()=>this.syncInternal(p,"realtime").catch(y=>{throw Mt.error(`[SY] c:"${this.getKey()}" err :`,y),this.handleConnectError(y),y}))}return this.enqueueTask(async()=>{const p=[];for(const[,y]of this.attachmentMap)p.push(this.syncInternal(y,y.syncMode));return Promise.all(p).catch(y=>{throw Mt.error(`[SY] c:"${this.getKey()}" err :`,y),this.handleConnectError(y),y})})}remove(d){if(!this.isActive())throw new zr(wr.ErrClientNotActivated,`${this.key} is not active`);const p=this.attachmentMap.get(d.getKey());if(!p)throw new zr(wr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);d.setActor(this.id);const y=ha.toChangePack(d.createChangePack());return y.isRemoved=!0,this.enqueueTask(async()=>this.rpcClient.removeDocument({clientId:this.id,documentId:p.docID,changePack:y},{headers:{"x-shard-key":`${this.apiKey}/${d.getKey()}`}}).then(T=>{const $=ha.fromChangePack(T.changePack);d.applyChangePack($),this.detachInternal(d.getKey()),Mt.info(`[RD] c:"${this.getKey()}" removes d:"${d.getKey()}"`)}).catch(T=>{throw Mt.error(`[RD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}getCondition(d){return this.conditions[d]}runSyncLoop(){const d=()=>{if(!this.isActive()){Mt.debug(`[SL] c:"${this.getKey()}" exit sync loop`),this.conditions.SyncLoop=!1;return}const p=[];for(const[,y]of this.attachmentMap)y.needRealtimeSync()&&(y.remoteChangeEventReceived=!1,p.push(this.syncInternal(y,y.syncMode)));Promise.all(p).then(()=>setTimeout(d,this.syncLoopDuration)).catch(y=>{Mt.error(`[SL] c:"${this.getKey()}" sync failed:`,y),this.handleConnectError(y)?setTimeout(d,this.retrySyncLoopDelay):this.conditions.SyncLoop=!1})};Mt.debug(`[SL] c:"${this.getKey()}" run sync loop`),this.conditions.SyncLoop=!0,d()}async runWatchLoop(d){const p=this.attachmentMap.get(d);if(!p)throw new zr(wr.ErrDocumentNotAttached,`${d} is not attached`);return this.conditions.WatchLoop=!0,p.runWatchLoop(y=>{if(!this.isActive())return this.conditions.WatchLoop=!1,Promise.reject(new zr(wr.ErrClientNotActivated,`${this.key} is not active`));const T=new AbortController,$=this.rpcClient.watchDocument({clientId:this.id,documentId:p.docID},{headers:{"x-shard-key":`${this.apiKey}/${d}`},signal:T.signal});return p.doc.publish([{type:ps.ConnectionChanged,value:ag.Connected}]),Mt.info(`[WD] c:"${this.getKey()}" watches d:"${d}"`),new Promise((q,ne)=>{(async()=>{try{for await(const Se of $)this.handleWatchDocumentsResponse(p,Se),Se.body.case==="initialization"&&q([$,T])}catch(Se){p.doc.resetOnlineClients(),p.doc.publish([{type:ps.Initialized,source:Lr.Local,value:p.doc.getPresences()}]),p.doc.publish([{type:ps.ConnectionChanged,value:ag.Disconnected}]),Mt.debug(`[WD] c:"${this.getKey()}" unwatches`),this.handleConnectError(Se)?y():this.conditions.WatchLoop=!1,ne(Se)}})()})})}handleWatchDocumentsResponse(d,p){if(p.body.case==="event"&&p.body.value.type===Fl.DOCUMENT_CHANGED){d.remoteChangeEventReceived=!0;return}d.doc.applyWatchStream(p)}deactivateInternal(){this.status="deactivated";for(const[d,p]of this.attachmentMap)this.detachInternal(d),p.doc.applyStatus(Ya.Detached)}detachInternal(d){const p=this.attachmentMap.get(d);p&&(p.cancelWatchStream(),this.attachmentMap.delete(d))}syncInternal(d,p){const{doc:y,docID:T}=d,$=y.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:T,changePack:ha.toChangePack($),pushOnly:p==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${y.getKey()}`}}).then(q=>{const ne=ha.fromChangePack(q.changePack);if(ne.hasChanges()&&(d.syncMode==="realtime-pushonly"||d.syncMode==="realtime-syncoff"))return y;y.applyChangePack(ne),d.doc.publish([{type:ps.SyncStatusChanged,value:Pb.Synced}]),y.getStatus()===Ya.Removed&&this.detachInternal(y.getKey());const me=y.getKey(),Se=ne.getChangeSize();return Mt.info(`[PP] c:"${this.getKey()}" sync d:"${me}", push:${$.getChangeSize()} pull:${Se} cp:${ne.getCheckpoint().toTestString()}`),y}).catch(q=>{throw y.publish([{type:ps.SyncStatusChanged,value:Pb.SyncFailed}]),Mt.error(`[PP] c:"${this.getKey()}" err :`,q),q})}handleConnectError(d){return d instanceof u?d.code===o.Canceled||d.code===o.Unknown||d.code===o.ResourceExhausted||d.code===o.Unavailable?!0:((BS(d)===wr.ErrClientNotActivated||BS(d)===wr.ErrClientNotFound)&&this.deactivateInternal(),!1):!1}enqueueTask(d){return new Promise((p,y)=>{this.taskQueue.push(()=>d().then(p).catch(y)),this.processing||this.processNext()})}async processNext(){if(this.taskQueue.length===0){this.processing=!1;return}try{this.processing=!0,await this.taskQueue.shift()()}catch{Mt.error(`[TQ] c:"${this.getKey()}" process failed, id:"${this.id}"`)}this.processNext()}}const Ps=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JS={Client:Yl,Document:Mb,Primitive:Ti,Text:Fp,Counter:ig,Tree:zp,LogLevel:ea,setLogLevel:IS,IntType:Ql.IntegerCnt,LongType:Ql.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:Yl,Document:Mb,Primitive:Ti,Text:Fp,Counter:ig,Tree:zp,LogLevel:ea,setLogLevel:IS,IntType:Ql.IntegerCnt,LongType:Ql.LongCnt}),r.Change=Ua,r.Client=Yl,r.ClientCondition=uC,r.ClientStatus=lC,r.Counter=ig,r.Devtools=Ps,r.DocEventType=ps,r.Document=Mb,r.DocumentStatus=Ya,r.DocumentSyncStatus=Pb,r.EventSourceDevPanel=tC,r.EventSourceSDK=GS,r.LogLevel=ea,r.OpSource=Lr,r.Primitive=Ti,r.StreamConnectionStatus=ag,r.SyncMode=Vp,r.Text=Fp,r.TimeTicket=Ta,r.Tree=zp,r.converter=ha,r.default=JS,r.setLogLevel=IS,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(fL,fL.exports);var $3=fL.exports;class SZe{constructor(t,n){Ms(this,"doc");Ms(this,"client");this.doc=t,this.client=n}}const LB=Sn.define({combine(e){return e[e.length-1]}});Cd.define();class EZe{constructor(t){Ms(this,"view");Ms(this,"conf");Ms(this,"_doc");this.view=t,this.conf=t.state.facet(LB),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[xs.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new $3.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[xs.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation(xs.remote))continue;let i=0;this._doc.update(a=>{n.changes.iterChanges((s,o,l,u,c)=>{const f=c.toJSON().join(` -`);a.content.edit(s+i,o+i,f),i+=f.length-(o-s)})})}}}const wZe=ua.fromClass(EZe);class xZe{constructor(t,n){this.left=t,this.right=n}}const Fg=(e,t)=>new xZe(e,t),TZe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Yf=typeof document<"u"?document:{},kZe=e=>Yf.createElement(e),CZe=()=>Yf.createDocumentFragment(),AZe=e=>Yf.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const _Ze=(e,t)=>(TZe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),RZe=e=>{const t=CZe();for(let n=0;n(ipe(e,RZe(t)),e),z4=(e,t=[],n=[])=>IZe(_Ze(kZe(e),t),n),EA=AZe,ipe=(e,t)=>e.appendChild(t);Yf.ELEMENT_NODE;Yf.TEXT_NODE;Yf.CDATA_SECTION_NODE;Yf.COMMENT_NODE;Yf.DOCUMENT_NODE;Yf.DOCUMENT_TYPE_NODE;Yf.DOCUMENT_FRAGMENT_NODE;var F3={exports:{}};/** + */var Mi=null;try{Mi=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Zn(O,d,p){this.low=O|0,this.high=d|0,this.unsigned=!!p}Zn.prototype.__isLong__,Object.defineProperty(Zn.prototype,"__isLong__",{value:!0});function fs(O){return(O&&O.__isLong__)===!0}function oh(O){var d=Math.clz32(O&-O);return O?31-d:d}Zn.isLong=fs;var F0={},B0={};function kr(O,d){var p,y,T;return d?(O>>>=0,(T=0<=O&&O<256)&&(y=B0[O],y)?y:(p=Mr(O,0,!0),T&&(B0[O]=p),p)):(O|=0,(T=-128<=O&&O<128)&&(y=F0[O],y)?y:(p=Mr(O,O<0?-1:0,!1),T&&(F0[O]=p),p))}Zn.fromInt=kr;function nl(O,d){if(isNaN(O))return d?ju:rl;if(d){if(O<0)return ju;if(O>=U0)return j0}else{if(O<=-CS)return ao;if(O+1>=CS)return $d}return O<0?nl(-O,d).neg():Mr(O%_o|0,O/_o|0,d)}Zn.fromNumber=nl;function Mr(O,d,p){return new Zn(O,d,p)}Zn.fromBits=Mr;var lh=Math.pow;function kS(O,d,p){if(O.length===0)throw Error("empty string");if(typeof d=="number"?(p=d,d=!1):d=!!d,O==="NaN"||O==="Infinity"||O==="+Infinity"||O==="-Infinity")return d?ju:rl;if(p=p||10,p<2||360)throw Error("interior hyphen");if(y===0)return kS(O.substring(1),d,p).neg();for(var T=nl(lh(p,8)),$=rl,q=0;q>>0:this.low},zt.toNumber=function(){return this.unsigned?(this.high>>>0)*_o+(this.low>>>0):this.high*_o+(this.low>>>0)},zt.toString=function(d){if(d=d||10,d<2||36>>0,ze=Se.toString(d);if(q=me,q.isZero())return ze+ne;for(;ze.length<6;)ze="0"+ze;ne=""+ze+ne}},zt.getHighBits=function(){return this.high},zt.getHighBitsUnsigned=function(){return this.high>>>0},zt.getLowBits=function(){return this.low},zt.getLowBitsUnsigned=function(){return this.low>>>0},zt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(ao)?64:this.neg().getNumBitsAbs();for(var d=this.high!=0?this.high:this.low,p=31;p>0&&!(d&1<=0},zt.isOdd=function(){return(this.low&1)===1},zt.isEven=function(){return(this.low&1)===0},zt.equals=function(d){return fs(d)||(d=zl(d)),this.unsigned!==d.unsigned&&this.high>>>31===1&&d.high>>>31===1?!1:this.high===d.high&&this.low===d.low},zt.eq=zt.equals,zt.notEquals=function(d){return!this.eq(d)},zt.neq=zt.notEquals,zt.ne=zt.notEquals,zt.lessThan=function(d){return this.comp(d)<0},zt.lt=zt.lessThan,zt.lessThanOrEqual=function(d){return this.comp(d)<=0},zt.lte=zt.lessThanOrEqual,zt.le=zt.lessThanOrEqual,zt.greaterThan=function(d){return this.comp(d)>0},zt.gt=zt.greaterThan,zt.greaterThanOrEqual=function(d){return this.comp(d)>=0},zt.gte=zt.greaterThanOrEqual,zt.ge=zt.greaterThanOrEqual,zt.compare=function(d){if(fs(d)||(d=zl(d)),this.eq(d))return 0;var p=this.isNegative(),y=d.isNegative();return p&&!y?-1:!p&&y?1:this.unsigned?d.high>>>0>this.high>>>0||d.high===this.high&&d.low>>>0>this.low>>>0?-1:1:this.sub(d).isNegative()?-1:1},zt.comp=zt.compare,zt.negate=function(){return!this.unsigned&&this.eq(ao)?ao:this.not().add(jc)},zt.neg=zt.negate,zt.add=function(d){fs(d)||(d=zl(d));var p=this.high>>>16,y=this.high&65535,T=this.low>>>16,$=this.low&65535,q=d.high>>>16,ne=d.high&65535,me=d.low>>>16,Se=d.low&65535,ze=0,Ct=0,St=0,mt=0;return mt+=$+Se,St+=mt>>>16,mt&=65535,St+=T+me,Ct+=St>>>16,St&=65535,Ct+=y+ne,ze+=Ct>>>16,Ct&=65535,ze+=p+q,ze&=65535,Mr(St<<16|mt,ze<<16|Ct,this.unsigned)},zt.subtract=function(d){return fs(d)||(d=zl(d)),this.add(d.neg())},zt.sub=zt.subtract,zt.multiply=function(d){if(this.isZero())return this;if(fs(d)||(d=zl(d)),Mi){var p=Mi.mul(this.low,this.high,d.low,d.high);return Mr(p,Mi.get_high(),this.unsigned)}if(d.isZero())return this.unsigned?ju:rl;if(this.eq(ao))return d.isOdd()?ao:rl;if(d.eq(ao))return this.isOdd()?ao:rl;if(this.isNegative())return d.isNegative()?this.neg().mul(d.neg()):this.neg().mul(d).neg();if(d.isNegative())return this.mul(d.neg()).neg();if(this.lt(z0)&&d.lt(z0))return nl(this.toNumber()*d.toNumber(),this.unsigned);var y=this.high>>>16,T=this.high&65535,$=this.low>>>16,q=this.low&65535,ne=d.high>>>16,me=d.high&65535,Se=d.low>>>16,ze=d.low&65535,Ct=0,St=0,mt=0,tn=0;return tn+=q*ze,mt+=tn>>>16,tn&=65535,mt+=$*ze,St+=mt>>>16,mt&=65535,mt+=q*Se,St+=mt>>>16,mt&=65535,St+=T*ze,Ct+=St>>>16,St&=65535,St+=$*Se,Ct+=St>>>16,St&=65535,St+=q*me,Ct+=St>>>16,St&=65535,Ct+=y*ze+T*Se+$*me+q*ne,Ct&=65535,Mr(mt<<16|tn,Ct<<16|St,this.unsigned)},zt.mul=zt.multiply,zt.divide=function(d){if(fs(d)||(d=zl(d)),d.isZero())throw Error("division by zero");if(Mi){if(!this.unsigned&&this.high===-2147483648&&d.low===-1&&d.high===-1)return this;var p=(this.unsigned?Mi.div_u:Mi.div_s)(this.low,this.high,d.low,d.high);return Mr(p,Mi.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?ju:rl;var y,T,$;if(this.unsigned){if(d.unsigned||(d=d.toUnsigned()),d.gt(this))return ju;if(d.gt(this.shru(1)))return AS;$=ju}else{if(this.eq(ao)){if(d.eq(jc)||d.eq(uh))return ao;if(d.eq(ao))return jc;var q=this.shr(1);return y=q.div(d).shl(1),y.eq(rl)?d.isNegative()?jc:uh:(T=this.sub(d.mul(y)),$=y.add(T.div(d)),$)}else if(d.eq(ao))return this.unsigned?ju:rl;if(this.isNegative())return d.isNegative()?this.neg().div(d.neg()):this.neg().div(d).neg();if(d.isNegative())return this.div(d.neg()).neg();$=rl}for(T=this;T.gte(d);){y=Math.max(1,Math.floor(T.toNumber()/d.toNumber()));for(var ne=Math.ceil(Math.log(y)/Math.LN2),me=ne<=48?1:lh(2,ne-48),Se=nl(y),ze=Se.mul(d);ze.isNegative()||ze.gt(T);)y-=me,Se=nl(y,this.unsigned),ze=Se.mul(d);Se.isZero()&&(Se=jc),$=$.add(Se),T=T.sub(ze)}return $},zt.div=zt.divide,zt.modulo=function(d){if(fs(d)||(d=zl(d)),Mi){var p=(this.unsigned?Mi.rem_u:Mi.rem_s)(this.low,this.high,d.low,d.high);return Mr(p,Mi.get_high(),this.unsigned)}return this.sub(this.div(d).mul(d))},zt.mod=zt.modulo,zt.rem=zt.modulo,zt.not=function(){return Mr(~this.low,~this.high,this.unsigned)},zt.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},zt.clz=zt.countLeadingZeros,zt.countTrailingZeros=function(){return this.low?oh(this.low):oh(this.high)+32},zt.ctz=zt.countTrailingZeros,zt.and=function(d){return fs(d)||(d=zl(d)),Mr(this.low&d.low,this.high&d.high,this.unsigned)},zt.or=function(d){return fs(d)||(d=zl(d)),Mr(this.low|d.low,this.high|d.high,this.unsigned)},zt.xor=function(d){return fs(d)||(d=zl(d)),Mr(this.low^d.low,this.high^d.high,this.unsigned)},zt.shiftLeft=function(d){return fs(d)&&(d=d.toInt()),(d&=63)===0?this:d<32?Mr(this.low<>>32-d,this.unsigned):Mr(0,this.low<>>d|this.high<<32-d,this.high>>d,this.unsigned):Mr(this.high>>d-32,this.high>=0?0:-1,this.unsigned)},zt.shr=zt.shiftRight,zt.shiftRightUnsigned=function(d){return fs(d)&&(d=d.toInt()),(d&=63)===0?this:d<32?Mr(this.low>>>d|this.high<<32-d,this.high>>>d,this.unsigned):d===32?Mr(this.high,0,this.unsigned):Mr(this.high>>>d-32,0,this.unsigned)},zt.shru=zt.shiftRightUnsigned,zt.shr_u=zt.shiftRightUnsigned,zt.rotateLeft=function(d){var p;return fs(d)&&(d=d.toInt()),(d&=63)===0?this:d===32?Mr(this.high,this.low,this.unsigned):d<32?(p=32-d,Mr(this.low<>>p,this.high<>>p,this.unsigned)):(d-=32,p=32-d,Mr(this.high<>>p,this.low<>>p,this.unsigned))},zt.rotl=zt.rotateLeft,zt.rotateRight=function(d){var p;return fs(d)&&(d=d.toInt()),(d&=63)===0?this:d===32?Mr(this.high,this.low,this.unsigned):d<32?(p=32-d,Mr(this.high<>>d,this.low<>>d,this.unsigned)):(d-=32,p=32-d,Mr(this.low<>>d,this.high<>>d,this.unsigned))},zt.rotr=zt.rotateRight,zt.toSigned=function(){return this.unsigned?Mr(this.low,this.high,!1):this},zt.toUnsigned=function(){return this.unsigned?this:Mr(this.low,this.high,!0)},zt.toBytes=function(d){return d?this.toBytesLE():this.toBytesBE()},zt.toBytesLE=function(){var d=this.high,p=this.low;return[p&255,p>>>8&255,p>>>16&255,p>>>24,d&255,d>>>8&255,d>>>16&255,d>>>24]},zt.toBytesBE=function(){var d=this.high,p=this.low;return[d>>>24,d>>>16&255,d>>>8&255,d&255,p>>>24,p>>>16&255,p>>>8&255,p&255]},Zn.fromBytes=function(d,p,y){return y?Zn.fromBytesLE(d,p):Zn.fromBytesBE(d,p)},Zn.fromBytesLE=function(d,p){return new Zn(d[0]|d[1]<<8|d[2]<<16|d[3]<<24,d[4]|d[5]<<8|d[6]<<16|d[7]<<24,p)},Zn.fromBytesBE=function(d,p){return new Zn(d[4]<<24|d[5]<<16|d[6]<<8|d[7],d[0]<<24|d[1]<<16|d[2]<<8|d[3],p)};const Y6=rt.makeMessageType("google.rpc.ErrorInfo",()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"domain",kind:"scalar",T:9},{no:3,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}]);rt.makeMessageType("google.rpc.RetryInfo",()=>[{no:1,name:"retry_delay",kind:"message",T:Lu}]),rt.makeMessageType("google.rpc.DebugInfo",()=>[{no:1,name:"stack_entries",kind:"scalar",T:9,repeated:!0},{no:2,name:"detail",kind:"scalar",T:9}]),rt.makeMessageType("google.rpc.QuotaFailure",()=>[{no:1,name:"violations",kind:"message",T:ob,repeated:!0}]);const ob=rt.makeMessageType("google.rpc.QuotaFailure.Violation",()=>[{no:1,name:"subject",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"QuotaFailure_Violation"});rt.makeMessageType("google.rpc.PreconditionFailure",()=>[{no:1,name:"violations",kind:"message",T:lb,repeated:!0}]);const lb=rt.makeMessageType("google.rpc.PreconditionFailure.Violation",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"subject",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9}],{localName:"PreconditionFailure_Violation"});rt.makeMessageType("google.rpc.BadRequest",()=>[{no:1,name:"field_violations",kind:"message",T:_S,repeated:!0}]);const _S=rt.makeMessageType("google.rpc.BadRequest.FieldViolation",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"BadRequest_FieldViolation"});rt.makeMessageType("google.rpc.RequestInfo",()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"serving_data",kind:"scalar",T:9}]),rt.makeMessageType("google.rpc.ResourceInfo",()=>[{no:1,name:"resource_type",kind:"scalar",T:9},{no:2,name:"resource_name",kind:"scalar",T:9},{no:3,name:"owner",kind:"scalar",T:9},{no:4,name:"description",kind:"scalar",T:9}]),rt.makeMessageType("google.rpc.Help",()=>[{no:1,name:"links",kind:"message",T:Z6,repeated:!0}]);const Z6=rt.makeMessageType("google.rpc.Help.Link",()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}],{localName:"Help_Link"});rt.makeMessageType("google.rpc.LocalizedMessage",()=>[{no:1,name:"locale",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]);var xr=(O=>(O.Ok="ok",O.ErrClientNotActivated="ErrClientNotActivated",O.ErrClientNotFound="ErrClientNotFound",O.ErrUnimplemented="ErrUnimplemented",O.Unsupported="unsupported",O.ErrDocumentNotAttached="ErrDocumentNotAttached",O.ErrDocumentNotDetached="ErrDocumentNotDetached",O.ErrDocumentRemoved="ErrDocumentRemoved",O.ErrInvalidObjectKey="ErrInvalidObjectKey",O.ErrInvalidArgument="ErrInvalidArgument",O))(xr||{});class zr extends Error{constructor(d,p){super(p),s(this,"name","YorkieError"),s(this,"stack"),this.code=d,this.message=p,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function jl(O){if(O instanceof Map){const d=Array.from(O);return new Map(JSON.parse(JSON.stringify(d)))}return JSON.parse(JSON.stringify(O))}const fa=O=>O?Object.entries(O).length===0:!0,Ji=O=>{const d={};for(const[p,y]of Object.entries(O))d[p]=JSON.stringify(y);return d},Dp=O=>{const d={};for(const[p,y]of Object.entries(O))d[p]=JSON.parse(y);return d};var Fd=(O=>(O.Put="put",O.Clear="clear",O))(Fd||{});class ub{constructor(d,p){s(this,"context"),s(this,"presence"),this.context=d,this.presence=p}set(d,p){for(const y of Object.keys(d))this.presence[y]=d[y];this.context.setPresenceChange({type:"put",presence:jl(this.presence)}),this.context.setReversePresence(d,p)}get(d){return this.presence[d]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const cb="000000000000000000000000",RS="FFFFFFFFFFFFFFFFFFFFFFFF";class Ta{constructor(d,p,y){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=d,this.delimiter=p,this.actorID=y}static of(d,p,y){return new Ta(d,p,y)}static fromStruct(d){return Ta.of(Zn.fromString(d.lamport,!0),d.delimiter,d.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(d){return new Ta(this.lamport,this.delimiter,d)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(d){return this.compare(d)>0}equals(d){return this.compare(d)===0}compare(d){if(this.lamport.greaterThan(d.lamport))return 1;if(d.lamport.greaterThan(this.lamport))return-1;const p=this.actorID.localeCompare(d.actorID);return p!==0?p:this.delimiter>d.delimiter?1:d.delimiter>this.delimiter?-1:0}}const H0=0,Np=4294967295,V0=Zn.MAX_VALUE,Ds=new Ta(Zn.fromNumber(0),H0,cb);new Ta(Zn.fromNumber(1),H0+1,cb);const Bd=new Ta(V0,Np,RS);var ea=(O=>(O[O.Trivial=0]="Trivial",O[O.Debug=1]="Debug",O[O.Info=2]="Info",O[O.Warn=3]="Warn",O[O.Error=4]="Error",O[O.Fatal=5]="Fatal",O))(ea||{});let ch=2;function IS(O){ch=O}const Lt={trivial:(...O)=>{ch>0||typeof console<"u"&&console.log("YORKIE T:",...O)},debug:(...O)=>{ch>1||typeof console<"u"&&console.log("YORKIE D:",...O)},info:(...O)=>{ch>2||typeof console<"u"&&console.log("YORKIE I:",...O)},warn:(...O)=>{ch>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...O):console.log("YORKIE W:",...O))},error:(...O)=>{ch>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...O):console.log("YORKIE E:",...O))},fatal:(O,...d)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...d):console.log("YORKIE F:",...d)),new Error(`YORKIE F: ${O}`)},isEnabled:O=>ch<=O};function Hu(O){return O.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(d){switch(d){case'"':case"\\":return"\\"+d;case` +`:return"\\n";case"\r":return"\\r";case"\f":return"\\f";case"\b":return"\\b";case" ":return"\\t";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return d}})}class W0{constructor(d){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=d}getCreatedAt(){return this.createdAt}getID(){return this.createdAt}getMovedAt(){return this.movedAt}getRemovedAt(){return this.removedAt}getPositionedAt(){return this.movedAt?this.movedAt:this.createdAt}setMovedAt(d){return!this.movedAt||d&&d.after(this.movedAt)?(this.movedAt=d,!0):!1}setRemovedAt(d){this.removedAt=d}remove(d){return d&&d.after(this.getPositionedAt())&&(!this.removedAt||d.after(this.removedAt))?(this.removedAt=d,!0):!1}isRemoved(){return!!this.removedAt}}class Hl extends W0{constructor(d){super(d)}}class dh{constructor(d,p){s(this,"strKey"),s(this,"value"),this.strKey=d,this.value=p}static of(d,p){return new dh(d,p)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(d){return this.value.remove(d)}}class Pp{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Pp}set(d,p,y){let T;const $=this.nodeMapByKey.get(d);$!=null&&!$.isRemoved()&&$.remove(y)&&(T=$.getValue());const q=dh.of(d,p);return this.nodeMapByCreatedAt.set(p.getCreatedAt().toIDString(),q),($==null||y.after($.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(d,q),p.setMovedAt(y)),T}delete(d,p){this.nodeMapByCreatedAt.has(d.toIDString())||Lt.fatal(`fail to find ${d.toIDString()}`);const y=this.nodeMapByCreatedAt.get(d.toIDString());return y.remove(p),y.getValue()}subPathOf(d){const p=this.nodeMapByCreatedAt.get(d.toIDString());if(p)return p.getStrKey()}purge(d){const p=this.nodeMapByCreatedAt.get(d.getCreatedAt().toIDString());if(!p){Lt.fatal(`fail to find ${d.getCreatedAt().toIDString()}`);return}const y=this.nodeMapByKey.get(p.getStrKey());p===y&&this.nodeMapByKey.delete(y.getStrKey()),this.nodeMapByCreatedAt.delete(p.getValue().getCreatedAt().toIDString())}deleteByKey(d,p){const y=this.nodeMapByKey.get(d);if(y!=null&&y.remove(p))return y.getValue()}has(d){const p=this.nodeMapByKey.get(d);return p==null?!1:!p.isRemoved()}getByID(d){return this.nodeMapByCreatedAt.get(d.toIDString())}get(d){const p=this.nodeMapByKey.get(d);if(!(!p||p.isRemoved()))return p}*[Symbol.iterator](){for(const[,d]of this.nodeMapByKey)yield d}}class se extends Hl{constructor(d,p){super(d),s(this,"memberNodes"),this.memberNodes=p}static create(d,p){if(!p)return new se(d,Pp.create());const y=Pp.create();for(const[T,$]of Object.entries(p))y.set(T,$.deepcopy(),$.getCreatedAt());return new se(d,y)}subPathOf(d){return this.memberNodes.subPathOf(d)}purge(d){this.memberNodes.purge(d)}set(d,p,y){return this.memberNodes.set(d,p,y)}delete(d,p){return this.memberNodes.delete(d,p)}deleteByKey(d,p){return this.memberNodes.deleteByKey(d,p)}get(d){const p=this.memberNodes.get(d);return p==null?void 0:p.getValue()}getByID(d){const p=this.memberNodes.getByID(d);return p==null?void 0:p.getValue()}has(d){return this.memberNodes.has(d)}toJSON(){const d=[];for(const[p,y]of this)d.push(`"${Hu(p)}":${y.toJSON()}`);return`{${d.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const d={};for(const[p,y]of this){const{createdAt:T,value:$,type:q}=y.toJSForTest();d[p]={key:p,createdAt:T,value:$,type:q}}return{createdAt:this.getCreatedAt().toTestString(),value:d,type:"YORKIE_OBJECT"}}getKeys(){const d=Array();for(const[p]of this)d.push(p);return d}toSortedJSON(){var d;const p=Array();for(const[T]of this)p.push(T);const y=[];for(const T of p.sort()){const $=(d=this.memberNodes.get(T))==null?void 0:d.getValue();y.push(`"${Hu(T)}":${$.toSortedJSON()}`)}return`{${y.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const d=se.create(this.getCreatedAt());for(const p of this.memberNodes)d.memberNodes.set(p.getStrKey(),p.getValue().deepcopy(),this.getPositionedAt());return d.remove(this.getRemovedAt()),d}getDescendants(d){for(const p of this.memberNodes){const y=p.getValue();if(d(y,this))return;y instanceof Hl&&y.getDescendants(d)}}*[Symbol.iterator](){const d=new Set;for(const p of this.memberNodes)d.has(p.getStrKey())||(d.add(p.getStrKey()),p.isRemoved()||(yield[p.getStrKey(),p.getValue()]))}}var Lr=(O=>(O.Local="local",O.Remote="remote",O.UndoRedo="undoredo",O))(Lr||{});class so{constructor(d,p){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=d,this.executedAt=p}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(d){this.executedAt&&(this.executedAt=this.executedAt.setActor(d))}setExecutedAt(d){this.executedAt=d}}class Ro{constructor(d){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=d,this.initWeight()}getNodeString(){return`${this.weight}${this.value}`}getValue(){return this.value}getLeftWeight(){return this.hasLeft()?this.left.getWeight():0}getRightWeight(){return this.hasRight()?this.right.getWeight():0}getWeight(){return this.weight}getLeft(){return this.left}getRight(){return this.right}getParent(){return this.parent}hasLeft(){return!!this.left}hasRight(){return!!this.right}hasParent(){return!!this.parent}setLeft(d){this.left=d}setRight(d){this.right=d}setParent(d){this.parent=d}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(d){this.weight+=d}initWeight(){this.weight=this.getLength()}}class ur{constructor(d){s(this,"root"),this.root=d}get length(){return this.root?this.root.getWeight():0}find(d){if(!this.root||d<0)return[void 0,0];let p=this.root;for(;;)if(p.hasLeft()&&d<=p.getLeftWeight())p=p.getLeft();else if(p.hasRight()&&p.getLeftWeight()+p.getLength()p.getLength()&&Lt.fatal(`out of index range: pos: ${d} > node.length: ${p.getLength()}`),[p,d]}indexOf(d){if(!d||d!==this.root&&!d.hasLinks())return-1;let p=0,y=d,T;for(;y;)(!T||T===y.getRight())&&(p+=y.getLength()+(y.hasLeft()?y.getLeftWeight():0)),T=y,y=y.getParent();return p-d.getLength()}getRoot(){return this.root}insert(d){return this.insertAfter(this.root,d)}insertAfter(d,p){return d?(this.splayNode(d),this.root=p,p.setRight(d.getRight()),d.hasRight()&&d.getRight().setParent(p),p.setLeft(d),d.setParent(p),d.setRight(),this.updateWeight(d),this.updateWeight(p),p):(this.root=p,p)}updateWeight(d){d.initWeight(),d.hasLeft()&&d.increaseWeight(d.getLeftWeight()),d.hasRight()&&d.increaseWeight(d.getRightWeight())}updateTreeWeight(d){for(;d;)this.updateWeight(d),d=d.getParent()}splayNode(d){if(d)for(;;)if(this.isLeftChild(d.getParent())&&this.isRightChild(d))this.rotateLeft(d),this.rotateRight(d);else if(this.isRightChild(d.getParent())&&this.isLeftChild(d))this.rotateRight(d),this.rotateLeft(d);else if(this.isLeftChild(d.getParent())&&this.isLeftChild(d))this.rotateRight(d.getParent()),this.rotateRight(d);else if(this.isRightChild(d.getParent())&&this.isRightChild(d))this.rotateLeft(d.getParent()),this.rotateLeft(d);else{this.isLeftChild(d)?this.rotateRight(d):this.isRightChild(d)&&this.rotateLeft(d),this.updateWeight(d);return}}delete(d){this.splayNode(d);const p=new ur(d.getLeft());p.root&&p.root.setParent();const y=new ur(d.getRight());if(y.root&&y.root.setParent(),p.root){const T=p.getRightmost();p.splayNode(T),p.root.setRight(y.root),y.root&&y.root.setParent(p.root),this.root=p.root}else this.root=y.root;d.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(d,p){if(!p){this.splayNode(d),this.cutOffRight(d);return}this.splayNode(d),this.splayNode(p),p.getLeft()!=d&&this.rotateRight(d),this.cutOffRight(d)}cutOffRight(d){const p=[];this.traversePostorder(d.getRight(),p);for(const y of p)y.initWeight();this.updateTreeWeight(d)}toTestString(){const d=[];return this.traverseInorder(this.root,d),d.map(p=>`[${p.getWeight()},${p.getLength()}]${p.getValue()||""}`).join("")}checkWeight(){const d=[];this.traverseInorder(this.root,d);for(const p of d)if(p.getWeight()!=p.getLength()+p.getLeftWeight()+p.getRightWeight())return!1;return!0}getRightmost(){let d=this.root;for(;d.hasRight();)d=d.getRight();return d}traverseInorder(d,p){d&&(this.traverseInorder(d.getLeft(),p),p.push(d),this.traverseInorder(d.getRight(),p))}traversePostorder(d,p){d&&(this.traversePostorder(d.getLeft(),p),this.traversePostorder(d.getRight(),p),p.push(d))}rotateLeft(d){const p=d.getParent();p.hasParent()?p===p.getParent().getLeft()?p.getParent().setLeft(d):p.getParent().setRight(d):this.root=d,d.setParent(p.getParent()),p.setRight(d.getLeft()),p.hasRight()&&p.getRight().setParent(p),d.setLeft(p),d.getLeft().setParent(d),this.updateWeight(p),this.updateWeight(d)}rotateRight(d){const p=d.getParent();p.hasParent()?p===p.getParent().getLeft()?p.getParent().setLeft(d):p.getParent().setRight(d):this.root=d,d.setParent(p.getParent()),p.setLeft(d.getRight()),p.hasLeft()&&p.getLeft().setParent(p),d.setRight(p),d.getRight().setParent(d),this.updateWeight(p),this.updateWeight(d)}isLeftChild(d){return d&&d.hasParent()?d.getParent().getLeft()===d:!1}isRightChild(d){return d&&d.hasParent()?d.getParent().getRight()===d:!1}}var ka=(O=>(O[O.Null=0]="Null",O[O.Boolean=1]="Boolean",O[O.Integer=2]="Integer",O[O.Long=3]="Long",O[O.Double=4]="Double",O[O.String=5]="String",O[O.Bytes=6]="Bytes",O[O.Date=7]="Date",O))(ka||{});class Ti extends W0{constructor(d,p){super(p),s(this,"valueType"),s(this,"value"),this.valueType=Ti.getPrimitiveType(d),this.value=d===void 0?null:d}static of(d,p){return new Ti(d,p)}static valueFromBytes(d,p){switch(d){case 0:return null;case 1:return!!p[0];case 2:return p[0]|p[1]<<8|p[2]<<16|p[3]<<24;case 4:{const y=new DataView(p.buffer);return p.forEach(function(T,$){y.setUint8($,T)}),y.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(p);case 3:return Zn.fromBytesLE(Array.from(p));case 6:return p;case 7:return new Date(Zn.fromBytesLE(Array.from(p),!0).toNumber());default:throw new zr(xr.ErrUnimplemented,`unimplemented type: ${d}`)}}toJSON(){return this.valueType===5?`"${Hu(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const d=Ti.of(this.value,this.getCreatedAt());return d.setMovedAt(this.getMovedAt()),d.setRemovedAt(this.getRemovedAt()),d}getType(){return this.valueType}static getPrimitiveType(d){switch(typeof d){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(d)?2:4;case"string":return 5;case"object":if(d===null)return 0;if(d instanceof Zn)return 3;if(d instanceof Uint8Array)return 6;if(d instanceof Date)return 7}}static isSupport(d){return Ti.getPrimitiveType(d)!==void 0}static isInteger(d){return d%1===0}isNumericType(){const d=this.valueType;return d===2||d===3||d===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const d=this.value;return new Uint8Array([d&255,d>>8&255,d>>16&255,d>>24&255])}case 4:{const d=this.value,p=new Uint8Array(8);return new DataView(p.buffer).setFloat64(0,d,!0),p}case 5:return new TextEncoder().encode(this.value);case 3:{const p=this.value.toBytesLE();return Uint8Array.from(p)}case 6:return this.value;case 7:{const d=this.value,p=Zn.fromNumber(d.getTime(),!0).toBytesLE();return Uint8Array.from(p)}default:throw new zr(xr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}}class db extends Ro{constructor(d){super(d),s(this,"prev"),s(this,"next"),this.value=d}static createAfter(d,p){const y=new db(p),T=d.next;return d.next=y,y.prev=d,y.next=T,T&&(T.prev=y),y}remove(d){return this.value.remove(d)}getCreatedAt(){return this.value.getCreatedAt()}getPositionedAt(){return this.value.getPositionedAt()}release(){this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=void 0,this.next=void 0}getLength(){return this.value.isRemoved()?0:1}getPrev(){return this.prev}getNext(){return this.next}getValue(){return this.value}isRemoved(){return this.value.isRemoved()}}class Vl{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const d=Ti.of(0,Ds);d.setRemovedAt(Ds),this.dummyHead=new db(d),this.last=this.dummyHead,this.nodeMapByIndex=new ur,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new Vl}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(d,p){let y=this.nodeMapByCreatedAt.get(d.toIDString());for(y||Lt.fatal(`cant find the given node: ${d.toIDString()}`);y.getNext()&&y.getNext().getPositionedAt().after(p);)y=y.getNext();return y}release(d){this.last===d&&(this.last=d.getPrev()),d.release(),this.nodeMapByIndex.delete(d),this.nodeMapByCreatedAt.delete(d.getValue().getCreatedAt().toIDString())}insertAfter(d,p,y=p.getCreatedAt()){const T=this.findNextBeforeExecutedAt(d,y),$=db.createAfter(T,p);T===this.last&&(this.last=$),this.nodeMapByIndex.insertAfter(T,$),this.nodeMapByCreatedAt.set($.getCreatedAt().toIDString(),$)}moveAfter(d,p,y){const T=this.nodeMapByCreatedAt.get(d.toIDString());T||Lt.fatal(`cant find the given node: ${d.toIDString()}`);const $=this.nodeMapByCreatedAt.get(p.toIDString());$||Lt.fatal(`cant find the given node: ${p.toIDString()}`),T!==$&&(!$.getValue().getMovedAt()||y.after($.getValue().getMovedAt()))&&(this.release($),this.insertAfter(T.getCreatedAt(),$.getValue(),y),$.getValue().setMovedAt(y))}insert(d){this.insertAfter(this.last.getCreatedAt(),d)}getByID(d){return this.nodeMapByCreatedAt.get(d.toIDString())}subPathOf(d){const p=this.nodeMapByCreatedAt.get(d.toIDString());if(p)return String(this.nodeMapByIndex.indexOf(p))}purge(d){const p=this.nodeMapByCreatedAt.get(d.getCreatedAt().toIDString());p||Lt.fatal(`fail to find the given createdAt: ${d.getCreatedAt().toIDString()}`),this.release(p)}getByIndex(d){if(d>=this.length)return;const[p,y]=this.nodeMapByIndex.find(d);let T=p;if(d===0&&p===this.dummyHead||y>0)do T&&(T=T.getNext());while(T&&T.isRemoved());return T}getPrevCreatedAt(d){let p=this.nodeMapByCreatedAt.get(d.toIDString());do p=p.getPrev();while(this.dummyHead!==p&&p.isRemoved());return p.getValue().getCreatedAt()}delete(d,p){const y=this.nodeMapByCreatedAt.get(d.toIDString()),T=y.isRemoved();return y.remove(p)&&!T&&this.nodeMapByIndex.splayNode(y),y.getValue()}deleteByIndex(d,p){const y=this.getByIndex(d);if(y)return y.remove(p)&&this.nodeMapByIndex.splayNode(y),y.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const d=[];for(const p of this){const y=`${p.getCreatedAt().toIDString()}:${p.getValue().toJSON()}`;p.isRemoved()?d.push(`{${y}}`):d.push(`[${y}]`)}return d.join("")}*[Symbol.iterator](){let d=this.dummyHead.getNext();for(;d;)yield d,d=d.getNext()}}class Io extends Hl{constructor(d,p){super(d),s(this,"elements"),this.elements=p}static create(d,p){if(!p)return new Io(d,Vl.create());const y=Vl.create();for(const T of p)y.insertAfter(y.getLastCreatedAt(),T.deepcopy());return new Io(d,y)}subPathOf(d){return this.elements.subPathOf(d)}purge(d){this.elements.purge(d)}insertAfter(d,p){this.elements.insertAfter(d,p)}moveAfter(d,p,y){this.elements.moveAfter(d,p,y)}get(d){const p=this.elements.getByIndex(d);return p==null?void 0:p.getValue()}getByID(d){const p=this.elements.getByID(d);return p==null?void 0:p.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(d){return this.elements.getPrevCreatedAt(d)}delete(d,p){return this.elements.delete(d,p)}deleteByIndex(d,p){return this.elements.deleteByIndex(d,p)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const d of this.elements)d.isRemoved()||(yield d.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(d){for(const p of this.elements){const y=p.getValue();if(d(y,this))return;y instanceof Hl&&y.getDescendants(d)}}toJSON(){const d=[];for(const p of this)d.push(p.toJSON());return`[${d.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const d={};for(let p=0;p({...St,value:St.value?{attributes:Dp(St.value.getAttributes()),content:St.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[me,Ct,Se,[ne,ne]]}setStyle(d,p,y,T){const[,$]=this.rgaTreeSplit.findNodeWithSplit(d[1],y),[,q]=this.rgaTreeSplit.findNodeWithSplit(d[0],y),ne=[],me=this.rgaTreeSplit.findBetween(q,$),Se=new Map,ze=[];for(const St of me){const mt=St.getCreatedAt().getActorID(),tn=T!=null&&T.size?T.has(mt)?T.get(mt):Ds:Bd;if(St.canStyle(y,tn)){const Bn=Se.get(mt),kn=St.getCreatedAt();(!Bn||kn.after(Bn))&&Se.set(mt,kn),ze.push(St)}}const Ct=[];for(const St of ze){if(St.isRemoved())continue;const[mt,tn]=this.rgaTreeSplit.findIndexesFromRange(St.createPosRange());ne.push({type:"style",actor:y.getActorID(),from:mt,to:tn,value:{attributes:Dp(p)}});for(const[Bn,kn]of Object.entries(p)){const[hr]=St.getValue().setAttr(Bn,kn,y);hr!==void 0&&Ct.push({parent:St.getValue(),child:hr})}}return[Se,Ct,ne]}indexRangeToPosRange(d,p){const y=this.rgaTreeSplit.indexToPos(d);return d===p?[y,y]:[y,this.rgaTreeSplit.indexToPos(p)]}get length(){return this.rgaTreeSplit.length}getTreeByIndex(){return this.rgaTreeSplit.getTreeByIndex()}getTreeByID(){return this.rgaTreeSplit.getTreeByID()}toJSON(){const d=[];for(const p of this.rgaTreeSplit)p.isRemoved()||d.push(p.getValue().toJSON());return`[${d.join(",")}]`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TEXT"}}toString(){return this.rgaTreeSplit.toString()}values(){const d=[];for(const p of this.rgaTreeSplit)if(!p.isRemoved()){const y=p.getValue();d.push({attributes:Dp(y.getAttributes()),content:y.getContent()})}return d}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const d=new il(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return d.remove(this.getRemovedAt()),d}findIndexesFromRange(d){return this.rgaTreeSplit.findIndexesFromRange(d)}getGCPairs(){const d=[];for(const p of this.rgaTreeSplit){p.getRemovedAt()&&d.push({parent:this.rgaTreeSplit,child:p});for(const y of p.getValue().getGCPairs())d.push(y)}return d}}class G0 extends so{constructor(d,p,y,T,$,q,ne){super(d,ne),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=p,this.toPos=y,this.maxCreatedAtMapByActor=T,this.content=$,this.attributes=q}static create(d,p,y,T,$,q,ne){return new G0(d,p,y,T,$,q,ne)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof il||Lt.fatal("fail to execute, only Text can execute edit");const y=p,[,T,$]=y.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const q of $)d.registerGCPair(q);return{opInfos:T.map(({from:q,to:ne,value:me})=>({type:"edit",from:q,to:ne,value:me,path:d.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=this.fromPos.toTestString(),y=this.toPos.toTestString(),T=this.content;return`${d}.EDIT(${p},${y},${T})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Y0 extends so{constructor(d,p,y,T,$,q){super(d,q),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=p,this.toPos=y,this.maxCreatedAtMapByActor=T,this.attributes=$}static create(d,p,y,T,$,q){return new Y0(d,p,y,T,$,q)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof il||Lt.fatal("fail to execute, only Text can execute edit");const y=p,[,T,$]=y.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const q of T)d.registerGCPair(q);return{opInfos:$.map(({from:q,to:ne,value:me})=>({type:"style",from:q,to:ne,value:me,path:d.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=this.fromPos.toTestString(),y=this.toPos.toTestString(),T=this.attributes;return`${d}.STYL(${p},${y},${JSON.stringify(T)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const Vc=2,X6="root",Wc="text";function Z0(O,d){let p=0;const y=O.children;for(let T=0;T0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let d=this.parent;const p=this.isRemoved?-1:1;for(;d&&(d.size+=this.paddedSize*p,!d.isRemoved);)d=d.parent}updateDescendantsSize(){let d=0;for(const p of this._children){const y=p.updateDescendantsSize();p.isRemoved||(d+=y)}return this.size+=d,this.paddedSize}get isText(){return this.type===Wc}get paddedSize(){return this.size+(this.isText?0:Vc)}isAncestorOf(d){return J6(this,d)}get nextSibling(){const d=this.parent.findOffset(this),p=this.parent.children[d+1];if(p)return p}get prevSibling(){const d=this.parent.findOffset(this),p=this.parent.children[d-1];if(p)return p}splitText(d,p){if(d===0||d===this.size)return;const y=this.value.slice(0,d),T=this.value.slice(d);if(!T.length)return;this.value=y;const $=this.cloneText(d+p);return $.value=T,this.parent.insertAfterInternal($,this),$}get children(){return this._children.filter(d=>!d.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(d=>d.isText)}append(...d){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...d);for(const p of d)p.parent=this,p.updateAncestorsSize()}prepend(...d){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...d);for(const p of d)p.parent=this}insertBefore(d,p){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(p);if(y===-1)throw new Error("child not found");this.insertAtInternal(d,y),d.updateAncestorsSize()}insertAfter(d,p){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(p);if(y===-1)throw new Error("child not found");this.insertAtInternal(d,y+1),d.updateAncestorsSize()}insertAt(d,p){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(d,p),d.updateAncestorsSize()}removeChild(d){if(this.isText)throw new Error("Text node cannot have children");const p=this._children.indexOf(d);if(p===-1)throw new Error("child not found");this._children.splice(p,1),d.parent=void 0}splitElement(d,p){const y=this.cloneElement(p);this.parent.insertAfterInternal(y,this),y.updateAncestorsSize();const T=this.children.slice(0,d),$=this.children.slice(d);this._children=T,y._children=$,this.size=this._children.reduce((q,ne)=>q+ne.paddedSize,0),y.size=y._children.reduce((q,ne)=>q+ne.paddedSize,0);for(const q of y._children)q.parent=y;return y}insertAfterInternal(d,p){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(p);if(y===-1)throw new Error("child not found");this.insertAtInternal(d,y+1)}insertAtInternal(d,p){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(p,0,d),d.parent=this}findOffset(d){if(this.isText)throw new Error("Text node cannot have children");if(d.isRemoved){const p=this._children.indexOf(d);return this.allChildren.splice(0,p).filter(T=>!T.isRemoved).length}return this.children.indexOf(d)}findBranchOffset(d){if(this.isText)throw new Error("Text node cannot have children");let p=d;for(;p;){const y=this._children.indexOf(p);if(y!==-1)return y;p=p.parent}return-1}}function J6(O,d){if(O===d)return!1;for(;d.parent;){if(d.parent===O)return!0;d=d.parent}return!1}var bi=(O=>(O.Start="Start",O.End="End",O.Text="Text",O))(bi||{});function Ik(O,d,p,y){if(d>p)throw new Error(`from is greater than to: ${d} > ${p}`);if(d>O.size)throw new Error(`from is out of range: ${d} > ${O.size}`);if(p>O.size)throw new Error(`to is out of range: ${p} > ${O.size}`);if(d===p)return;let T=0;for(const $ of O.children){if(d-$.paddedSize$.size;($.isText||me)&&y([$,$.isText?"Text":"Start"],Se),Ik($,Math.max(0,q),Math.min(ne,$.size),y),Se&&y([$,"End"],Se)}T+=$.paddedSize}}function Dk(O,d,p=0){for(const y of O.children)Dk(y,d,p+1);d(O,p)}function oo(O,d,p=0){for(const y of O._children)oo(y,d,p+1);d(O,p)}function DS(O,d,p=!0){if(d>O.size)throw new Error(`index is out of range: ${d} > ${O.size}`);if(O.isText)return{node:O,offset:d};let y=0,T=0;for(const $ of O.children){if(p&&$.isText&&$.size>=d-T)return DS($,d-T,p);if(d===T)return{node:O,offset:y};if(!p&&$.paddedSize===d-T)return{node:O,offset:y+1};if($.paddedSize>d-T)return DS($,d-T-1,p);T+=$.paddedSize,y+=1}return{node:O,offset:y}}function Nk(O){return O.isText||O.children.length===0?O:Nk(O.children[0])}function eD(O,d){if(O.sizeO===d?0:O0)if(p.right)p.right.parent=p,p=p.right;else return p;else if(y<0)if(p.left)p.left.parent=p,p=p.left;else{let T=p.parent,$=p;for(;T&&$===T.left;)$=T,T=T.parent;return T}else return p}}lastEntry(){if(!this.root)return this.root;let d=this.root;for(;d.right;)d=d.right;return d}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(d,p){for(;p;){const y=this.comparator(d,p.key);if(y===0)return p;y<0?p=p.left:y>0&&(p=p.right)}}putInternal(d,p,y){if(!y)return this.counter+=1,new Pk(d,p,!0);const T=this.comparator(d,y.key);return T<0?y.left=this.putInternal(d,p,y.left):T>0?y.right=this.putInternal(d,p,y.right):y.value=p,this.isRed(y.right)&&!this.isRed(y.left)&&(y=this.rotateLeft(y)),this.isRed(y.left)&&this.isRed(y.left.left)&&(y=this.rotateRight(y)),this.isRed(y.left)&&this.isRed(y.right)&&this.flipColors(y),y}removeInternal(d,p){if(this.comparator(p,d.key)<0)!this.isRed(d.left)&&!this.isRed(d.left.left)&&(d=this.moveRedLeft(d)),d.left=this.removeInternal(d.left,p);else{if(this.isRed(d.left)&&(d=this.rotateRight(d)),this.comparator(p,d.key)===0&&!d.right){this.counter-=1;return}if(!this.isRed(d.right)&&!this.isRed(d.right.left)&&(d=this.moveRedRight(d)),this.comparator(p,d.key)===0){this.counter-=1;const y=this.min(d.right);d.value=y.value,d.key=y.key,d.right=this.removeMin(d.right)}else d.right=this.removeInternal(d.right,p)}return this.fixUp(d)}min(d){return d.left?this.min(d.left):d}removeMin(d){if(d.left)return!this.isRed(d.left)&&!this.isRed(d.left.left)&&(d=this.moveRedLeft(d)),d.left=this.removeMin(d.left),this.fixUp(d)}fixUp(d){return this.isRed(d.right)&&(d=this.rotateLeft(d)),this.isRed(d.left)&&this.isRed(d.left.left)&&(d=this.rotateRight(d)),this.isRed(d.left)&&this.isRed(d.right)&&this.flipColors(d),d}moveRedLeft(d){return this.flipColors(d),this.isRed(d.right.left)&&(d.right=this.rotateRight(d.right),d=this.rotateLeft(d),this.flipColors(d)),d}moveRedRight(d){return this.flipColors(d),this.isRed(d.left.left)&&(d=this.rotateRight(d),this.flipColors(d)),d}isRed(d){return d&&d.isRed}rotateLeft(d){const p=d.right;return d.right=p.left,p.left=d,p.isRed=p.left.isRed,p.left.isRed=!0,p}rotateRight(d){const p=d.left;return d.left=p.right,p.right=d,p.isRed=p.right.isRed,p.right.isRed=!0,p}flipColors(d){d.isRed=!d.isRed,d.left.isRed=!d.left.isRed,d.right.isRed=!d.right.isRed}}class Wl{constructor(d,p){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=d,this.leftSiblingID=p}static of(d,p){return new Wl(d,p)}static fromTreePos(d){const{offset:p}=d;let{node:y}=d,T;return y.isText?(y.parent.children[0]===y&&p===0?T=y.parent:T=y,y=y.parent):p===0?T=y:T=y.children[p-1],Wl.of(y.id,Ca.of(T.getCreatedAt(),T.getOffset()+p))}getParentID(){return this.parentID}static fromStruct(d){return Wl.of(Ca.of(Ta.fromStruct(d.parentID.createdAt),d.parentID.offset),Ca.of(Ta.fromStruct(d.leftSiblingID.createdAt),d.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(d){const p=this.getParentID(),y=this.getLeftSiblingID(),T=d.findFloorNode(p);let $=d.findFloorNode(y);if(!T||!$)throw new Error(`cannot find node of CRDTTreePos(${p.toTestString()}, ${y.toTestString()})`);return!y.equals(p)&&y.getOffset()>0&&y.getOffset()===$.id.getOffset()&&$.insPrevID&&($=d.findFloorNode($.insPrevID)),[T,$]}getLeftSiblingID(){return this.leftSiblingID}equals(d){return this.getParentID().getCreatedAt().equals(d.getParentID().getCreatedAt())&&this.getParentID().getOffset()===d.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(d.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===d.getLeftSiblingID().getOffset()}}class Ca{constructor(d,p){s(this,"createdAt"),s(this,"offset"),this.createdAt=d,this.offset=p}static of(d,p){return new Ca(d,p)}static fromStruct(d){return Ca.of(Ta.fromStruct(d.createdAt),d.offset)}static createComparator(){return(d,p)=>{const y=d.getCreatedAt().compare(p.getCreatedAt());return y!==0?y:d.getOffset()>p.getOffset()?1:d.getOffset(){const T=y.deepcopy();return T.parent=p,T}),p.insPrevID=this.insPrevID,p.insNextID=this.insNextID,p}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(d){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=d,this.size=d.length}get isRemoved(){return!!this.removedAt}remove(d){const p=!this.removedAt;(!this.removedAt||this.removedAt.compare(d)>0)&&(this.removedAt=d),p&&this.updateAncestorsSize()}cloneText(d){return new Ga(Ca.of(this.id.getCreatedAt(),d),this.type,void 0,void 0,this.removedAt)}cloneElement(d){return new Ga(Ca.of(d(),0),this.type,void 0,void 0,this.removedAt)}split(d,p,y){const T=this.isText?this.splitText(p,this.id.getOffset()):this.splitElement(p,y);if(T){if(T.insPrevID=this.id,this.insNextID){const $=d.findFloorNode(this.insNextID);$.insPrevID=T.id,T.insNextID=this.insNextID}this.insNextID=T.id,d.registerNode(T)}return T}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(d,p){return!this.getCreatedAt().after(p)&&(!this.removedAt||d.after(this.removedAt))}canStyle(d,p){return this.isText?!1:!this.getCreatedAt().after(p)&&(!this.removedAt||d.after(this.removedAt))}setAttrs(d,p){this.attrs||(this.attrs=new Hc);const y=new Array;for(const[T,$]of Object.entries(d))y.push(this.attrs.set(T,$,p));return y}purge(d){this.attrs&&this.attrs.purge(d)}getGCPairs(){const d=[];if(!this.attrs)return d;for(const p of this.attrs)p.getRemovedAt()&&d.push({parent:this,child:p});return d}}function Mp(O){var d;if(O.isText){const y=O;return{type:y.type,value:y.value}}const p={type:O.type,children:O.children.map(Mp)};return O.attrs&&(p.attributes=Dp((d=O.attrs)==null?void 0:d.toObject())),p}function NS(O){if(O.isText)return O.value;let d="";return O.attrs&&O.attrs.size()&&(d=" "+Array.from(O.attrs).filter(p=>!p.isRemoved()).sort((p,y)=>p.getKey().localeCompare(y.getKey())).map(p=>{const y=JSON.parse(p.getValue());return typeof y=="string"?`${p.getKey()}="${y}"`:`${p.getKey()}="${Hu(p.getValue())}"`}).join(" ")),`<${O.type}${d}>${O.children.map(p=>NS(p)).join("")}`}function PS(O){if(O.isText){const d=O;return{type:d.type,value:d.value,size:d.size,isRemoved:d.isRemoved}}return{type:O.type,children:O.children.map(PS),size:O.size,isRemoved:O.isRemoved}}class al extends W0{constructor(d,p){super(p),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new tD(d),this.nodeMapByID=new Lk(Ca.createComparator()),this.indexTree.traverseAll(y=>{this.nodeMapByID.put(y.id,y)})}static create(d,p){return new al(d,p)}findFloorNode(d){const p=this.nodeMapByID.floorEntry(d);if(!(!p||!p.key.getCreatedAt().equals(d.getCreatedAt())))return p.value}registerNode(d){this.nodeMapByID.put(d.id,d)}findNodesAndSplitText(d,p){const[y,T]=d.toTreeNodePair(this);let $=T;const q=y===$,ne=$.parent&&!q?$.parent:y;if($.isText&&$.split(this,d.getLeftSiblingID().getOffset()-$.id.getOffset()),p){const me=ne.allChildren,Se=q?0:me.indexOf($)+1;for(let ze=Se;ze{const tn=mt.getCreatedAt().getActorID(),Bn=T?T.has(tn)?T.get(tn):Ds:Bd;if(mt.canStyle(y,Bn)&&p){const kn=Ct.get(tn),hr=mt.getCreatedAt();(!kn||hr.after(kn))&&Ct.set(tn,hr);const Oi=mt.setAttrs(p,y),Cr=Oi.reduce(($r,[,Mo])=>(Mo&&($r[Mo.getKey()]=ze[Mo.getKey()]),$r),{}),qr=mt.parent,oi=mt.prevSibling||mt.parent;Object.keys(Cr).length>0&&Se.push({type:"style",from:this.toIndex(qr,oi),to:this.toIndex(mt,mt),fromPath:this.toPath(qr,oi),toPath:this.toPath(mt,mt),actor:y.getActorID(),value:Cr});for(const[$r]of Oi)$r&&St.push({parent:mt,child:$r})}}),[Ct,St,Se]}removeStyle(d,p,y,T){const[$,q]=this.findNodesAndSplitText(d[0],y),[ne,me]=this.findNodesAndSplitText(d[1],y),Se=[],ze=new Map,Ct=[];return this.traverseInPosRange($,q,ne,me,([St])=>{const mt=St.getCreatedAt().getActorID(),tn=T?T.has(mt)?T.get(mt):Ds:Bd;if(St.canStyle(y,tn)&&p){const Bn=ze.get(mt),kn=St.getCreatedAt();(!Bn||kn.after(Bn))&&ze.set(mt,kn),St.attrs||(St.attrs=new Hc);for(const Cr of p){const qr=St.attrs.remove(Cr,y);for(const oi of qr)Ct.push({parent:St,child:oi})}const hr=St.parent,Oi=St.prevSibling||St.parent;Se.push({actor:y.getActorID(),type:"removeStyle",from:this.toIndex(hr,Oi),to:this.toIndex(St,St),fromPath:this.toPath(hr,Oi),toPath:this.toPath(St,St),value:p})}}),[ze,Ct,Se]}edit(d,p,y,T,$,q){const[ne,me]=this.findNodesAndSplitText(d[0],T),[Se,ze]=this.findNodesAndSplitText(d[1],T),Ct=this.toIndex(ne,me),St=this.toPath(ne,me),mt=[],tn=[],Bn=[],kn=new Map;this.traverseInPosRange(ne,me,Se,ze,([Cr,qr],oi)=>{if(qr===bi.Start&&!oi)for(const bh of Cr.children)Bn.push(bh);const $r=Cr.getCreatedAt().getActorID(),Mo=q?q.has($r)?q.get($r):Ds:Bd;if(Cr.canDelete(T,Mo)||mt.includes(Cr.parent)){const bh=kn.get($r),Qp=Cr.getCreatedAt();(!bh||Qp.after(bh))&&kn.set($r,Qp),(qr===bi.Text||qr===bi.Start)&&mt.push(Cr),tn.push([Cr,qr])}});const hr=this.makeDeletionChanges(tn,T),Oi=[];for(const Cr of mt)Cr.remove(T),Cr.isRemoved&&Oi.push({parent:this,child:Cr});for(const Cr of Bn)Cr.removedAt||ne.append(Cr);if(y>0){let Cr=0,qr=ne,oi=me;for(;Cr{ne.isRemoved&&($r.remove(T),Oi.push({parent:this,child:$r})),this.nodeMapByID.put($r.id,$r)}),oi.isRemoved||Cr.push(oi);if(Cr.length){const oi=Cr.map($r=>Mp($r));hr.length&&hr[hr.length-1].from===Ct?hr[hr.length-1].value=oi:hr.push({type:"content",from:Ct,to:Ct,fromPath:St,toPath:St,actor:T.getActorID(),value:oi})}}return[hr,Oi,kn]}editT(d,p,y,T,$){const q=this.findPos(d[0]),ne=this.findPos(d[1]);this.edit([q,ne],p,y,T,$)}move(d,p,y){throw new Error(`not implemented: ${d}, ${p}, ${y}`)}purge(d){var p;(p=d.parent)==null||p.removeChild(d),this.nodeMapByID.remove(d.id);const y=d.insPrevID,T=d.insNextID;if(y){const $=this.findFloorNode(y);$.insNextID=T}if(T){const $=this.findFloorNode(T);$.insPrevID=y}d.insPrevID=void 0,d.insNextID=void 0}getGCPairs(){const d=[];return this.indexTree.traverse(p=>{p.getRemovedAt()&&d.push({parent:this,child:p});for(const y of p.getGCPairs())d.push(y)}),d}findPos(d,p=!0){const y=this.indexTree.findTreePos(d,p);return Wl.fromTreePos(y)}pathToPosRange(d){const p=this.pathToIndex(d);return[this.findPos(p),this.findPos(p+1)]}pathToPos(d){const p=this.indexTree.pathToIndex(d);return this.findPos(p)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return NS(this.indexTree.getRoot())}toJSON(){return JSON.stringify(this.getRootTreeNode())}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}toJSInfoForTest(){const d=this.indexTree.getRoot(),p=(y,T=void 0,$=void 0,q=0)=>{var ne,me,Se,ze;let Ct,St,mt;const tn=y.isText?{node:y,offset:0}:T&&$?this.toTreePos(T,$):null;tn&&(Ct=this.indexTree.indexOf(tn),St=this.indexTree.treePosToPath(tn),mt=Wl.fromTreePos(tn).toStruct());const Bn={type:y.type,parent:T==null?void 0:T.id.toTestString(),size:y.size,id:y.id.toTestString(),removedAt:(ne=y.removedAt)==null?void 0:ne.toTestString(),insPrev:(me=y.insPrevID)==null?void 0:me.toTestString(),insNext:(Se=y.insNextID)==null?void 0:Se.toTestString(),value:y.isText?y.value:void 0,isRemoved:y.isRemoved,children:[],depth:q,attributes:y.attrs?Dp((ze=y.attrs)==null?void 0:ze.toObject()):void 0,index:Ct,path:St,pos:mt};for(let kn=0;kn0&&kn===y[y.length-1].to?(y[y.length-1].to=hr,y[y.length-1].toPath=this.toPath(Bn,St)):y.push({type:"content",from:kn,to:hr,fromPath:this.toPath(tn,ze),toPath:this.toPath(Bn,St),actor:p.getActorID()}))}return y.reverse()}findRightToken([d,p]){if(p===bi.Start){const ne=d.allChildren;return ne.length>0?[ne[0],ne[0].isText?bi.Text:bi.Start]:[d,bi.End]}const y=d.parent,T=y.allChildren,$=T.indexOf(d);if(y&&$===T.length-1)return[y,bi.End];const q=T[$+1];return[q,q.isText?bi.Text:bi.Start]}findLeftToken([d,p]){if(p===bi.End){const ne=d.allChildren;if(ne.length>0){const me=ne[ne.length-1];return[me,me.isText?bi.Text:bi.End]}return[d,bi.Start]}const y=d.parent,T=y.allChildren,$=T.indexOf(d);if(y&&$===0)return[y,bi.Start];const q=T[$-1];return[q,q.isText?bi.Text:bi.End]}}class Do extends so{constructor(d,p,y,T,$,q,ne){super(d,ne),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=p,this.toPos=y,this.contents=T,this.splitLevel=$,this.maxCreatedAtMapByActor=q}static create(d,p,y,T,$,q,ne){return new Do(d,p,y,T,$,q,ne)}execute(d){var p;const y=d.findByCreatedAt(this.getParentCreatedAt());y||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),y instanceof al||Lt.fatal("fail to execute, only Tree can execute edit");const T=this.getExecutedAt(),$=y,[q,ne]=$.edit([this.fromPos,this.toPos],(p=this.contents)==null?void 0:p.map(me=>me.deepcopy()),this.splitLevel,T,(()=>{let me=T.getDelimiter();return this.contents!==void 0&&(me+=this.contents.length),()=>Ta.of(T.getLamport(),++me,T.getActorID())})(),this.maxCreatedAtMapByActor);for(const me of ne)d.registerGCPair(me);return{opInfos:q.map(({from:me,to:Se,value:ze,splitLevel:Ct,fromPath:St,toPath:mt})=>({type:"tree-edit",path:d.createPath(this.getParentCreatedAt()),from:me,to:Se,value:ze,splitLevel:Ct,fromPath:St,toPath:mt}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,T=this.contents||[];return`${d}.EDIT(${p},${y},${T.map($=>NS($)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Vu{constructor(d,p,y,T){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=d,this.serverSeq=T,this.lamport=p,this.actor=y}static of(d,p,y,T){return new Vu(d,p,y,T)}next(){return new Vu(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(d){return d.greaterThan(this.lamport)?new Vu(this.clientSeq,d,this.actor):new Vu(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(d){return Ta.of(this.lamport,d,this.actor)}setActor(d){return new Vu(this.clientSeq,this.lamport,d,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const hh=new Vu(0,Zn.fromInt(0,!0),cb);class Ua{constructor({id:d,operations:p,presenceChange:y,message:T}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=d,this.operations=p||[],this.presenceChange=y,this.message=T}static create({id:d,operations:p,presenceChange:y,message:T}){return new Ua({id:d,operations:p,presenceChange:y,message:T})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(d){for(const p of this.operations)p.setActor(d);this.id=this.id.setActor(d)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(d,p,y){const T=[],$=[];for(const q of this.operations){const ne=q.execute(d,y);if(!ne)continue;const{opInfos:me,reverseOp:Se}=ne;T.push(...me),Se&&$.unshift(Se)}return this.presenceChange&&(this.presenceChange.type===Fd.Put?p.set(this.id.getActorID(),jl(this.presenceChange.presence)):p.delete(this.id.getActorID())),{opInfos:T,reverseOps:$}}toTestString(){return`${this.operations.map(d=>d.toTestString()).join(",")}`}toStruct(){return{changeID:ha.bytesToHex(ha.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(d=>ha.bytesToHex(ha.toOperation(d).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(d){const{changeID:p,operations:y,presenceChange:T,message:$}=d;return Ua.create({id:ha.bytesToChangeID(ha.hexToBytes(p)),operations:y==null?void 0:y.map(q=>ha.bytesToOperation(ha.hexToBytes(q))),presenceChange:T,message:$})}}class fb{constructor(d,p,y,T,$,q){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=d,this.checkpoint=p,this.isRemoved=y,this.changes=T,this.snapshot=$,this.minSyncedTicket=q}static create(d,p,y,T,$,q){return new fb(d,p,y,T,$,q)}getDocumentKey(){return this.documentKey}getCheckpoint(){return this.checkpoint}getIsRemoved(){return this.isRemoved}getChanges(){return this.changes}hasChanges(){return this.changes.length>0}getChangeSize(){return this.changes.length}hasSnapshot(){return!!this.snapshot&&!!this.snapshot.length}getSnapshot(){return this.snapshot}getMinSyncedTicket(){return this.minSyncedTicket}}class ph{constructor(d,p){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=d,this.clientSeq=p}static of(d,p){return new ph(d,p)}increaseClientSeq(d){return d===0?this:new ph(this.serverSeq,this.clientSeq+d)}forward(d){if(this.equals(d))return this;const p=this.serverSeq.greaterThan(d.serverSeq)?this.serverSeq:d.serverSeq,y=Math.max(this.clientSeq,d.clientSeq);return ph.of(p,y)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(d){return this.clientSeq===d.clientSeq&&this.serverSeq.equals(d.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const $k=new ph(Zn.fromInt(0,!0),0);class lo{constructor(d,p){s(this,"createdAt"),s(this,"offset"),this.createdAt=d,this.offset=p}static of(d,p){return new lo(d,p)}static fromStruct(d){return lo.of(Ta.fromStruct(d.createdAt),d.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(d){return this.createdAt.compare(d.createdAt)===0&&this.offset===d.offset}hasSameCreatedAt(d){return this.createdAt.compare(d.createdAt)===0}split(d){return new lo(this.createdAt,this.offset+d)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const jd=lo.of(Ds,0);class sl{constructor(d,p){s(this,"id"),s(this,"relativeOffset"),this.id=d,this.relativeOffset=p}static of(d,p){return new sl(d,p)}static fromStruct(d){const p=lo.fromStruct(d.id);return sl.of(p,d.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return lo.of(this.id.getCreatedAt(),this.id.getOffset()+this.relativeOffset)}toTestString(){return`${this.id.toTestString()}:${this.relativeOffset}`}toStruct(){return{id:this.id.toStruct(),relativeOffset:this.relativeOffset}}equals(d){return this.id.equals(d.id)?this.relativeOffset===d.relativeOffset:!1}}class Hd extends Ro{constructor(d,p,y){super(p),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=d,this.removedAt=y}static create(d,p){return new Hd(d,p)}static createComparator(){return(d,p)=>{const y=d.getCreatedAt().compare(p.getCreatedAt());return y!==0?y:d.getOffset()>p.getOffset()?1:d.getOffset()0&&p.getID().getOffset()==d.getOffset()){if(!p.hasInsPrev())return p;p=p.getInsPrev()}return p}findFloorNode(d){const p=this.treeByID.floorEntry(d);if(p&&!(!p.key.equals(d)&&!p.key.hasSameCreatedAt(d)))return p.value}findBetween(d,p){const y=[];let T=d;for(;T&&T!==p;)y.push(T),T=T.getNext();return y}splitNode(d,p){if(p>d.getContentLength()&&Lt.fatal("offset should be less than or equal to length"),p===0)return d;if(p===d.getContentLength())return d.getNext();const y=d.split(p);this.treeByIndex.updateWeight(y),this.insertAfter(d,y);const T=d.getInsNext();return T&&T.setInsPrev(y),y.setInsPrev(d),y}deleteNodes(d,p,y){if(!d.length)return[[],new Map,new Map];const[T,$]=this.filterNodes(d,p,y),q=new Map,ne=new Map,me=this.makeChanges($,p);for(const Se of T){const ze=Se.getCreatedAt().getActorID();(!q.has(ze)||Se.getID().getCreatedAt().after(q.get(ze)))&&q.set(ze,Se.getID().getCreatedAt()),ne.set(Se.getID().toIDString(),Se),Se.remove(p)}return this.deleteIndexNodes($),[me,q,ne]}filterNodes(d,p,y){const T=!!y,$=[],q=[],[ne,me]=this.findEdgesOfCandidates(d);q.push(ne);for(const Se of d){const ze=Se.getCreatedAt().getActorID(),Ct=T?y.has(ze)?y.get(ze):Ds:Bd;Se.canDelete(p,Ct)?$.push(Se):q.push(Se)}return q.push(me),[$,q]}findEdgesOfCandidates(d){return[d[0].getPrev(),d[d.length-1].getNext()]}makeChanges(d,p){const y=[];let T,$;for(let q=0;qO<0?Math.ceil(O):Math.floor(O);var Ql=(O=>(O[O.IntegerCnt=0]="IntegerCnt",O[O.LongCnt=1]="LongCnt",O))(Ql||{});class ni extends W0{constructor(d,p,y){switch(super(y),s(this,"valueType"),s(this,"value"),this.valueType=d,d){case 0:typeof p=="number"?p>Math.pow(2,31)-1||p<-Math.pow(2,31)?this.value=Zn.fromNumber(p).toInt():this.value=Fk(p):this.value=p.toInt();break;case 1:typeof p=="number"?this.value=Zn.fromNumber(p):this.value=p;break;default:throw new zr(xr.ErrUnimplemented,`unimplemented type: ${d}`)}}static create(d,p,y){return new ni(d,p,y)}static valueFromBytes(d,p){switch(d){case 0:return p[0]|p[1]<<8|p[2]<<16|p[3]<<24;case 1:return Zn.fromBytesLE(Array.from(p));default:throw new zr(xr.ErrUnimplemented,`unimplemented type: ${d}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const d=ni.create(this.valueType,this.value,this.getCreatedAt());return d.setMovedAt(this.getMovedAt()),d}getType(){return this.valueType}static getCounterType(d){switch(typeof d){case"object":return d instanceof Zn?1:void 0;case"number":return d>Math.pow(2,31)-1||d<-Math.pow(2,31)?1:0;default:return}}static isSupport(d){return!!ni.getCounterType(d)}static isInteger(d){return d%1===0}isNumericType(){const d=this.valueType;return d===0||d===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const d=this.value;return new Uint8Array([d&255,d>>8&255,d>>16&255,d>>24&255])}case 1:{const p=this.value.toBytesLE();return Uint8Array.from(p)}default:throw new zr(xr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}increase(d){function p(y){if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`)}return p(this),p(d),this.valueType===1?this.value=this.value.add(d.getValue()):d.getType()===ka.Long?this.value=this.value+d.getValue().toInt():this.value=Zn.fromNumber(this.value+Fk(d.getValue())).toInt(),this}}class Vd extends so{constructor(d,p,y){super(d,y),s(this,"value"),this.value=p}static create(d,p,y){return new Vd(d,p,y)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof ni||Lt.fatal("fail to execute, only Counter can execute increase");const y=p,T=this.value.deepcopy();return y.increase(T),{opInfos:[{type:"increase",path:d.createPath(this.getParentCreatedAt()),value:T.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const d=this.value.deepcopy(),y=d.getType()===ka.Long?d.getValue().multiply(-1):d.getValue()*-1;return Vd.create(this.getParentCreatedAt(),Ti.of(y,d.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class Wu extends so{constructor(d,p,y,T,$,q,ne){super(d,ne),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=p,this.toPos=y,this.maxCreatedAtMapByActor=T,this.attributes=$,this.attributesToRemove=q}static create(d,p,y,T,$,q){return new Wu(d,p,y,T,$,new Array,q)}static createTreeRemoveStyleOperation(d,p,y,T,$,q){return new Wu(d,p,y,T,new Map,$,q)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof al||Lt.fatal("fail to execute, only Tree can execute edit");const y=p;let T,$;if(this.attributes.size){const q={};[...this.attributes].forEach(([ne,me])=>q[ne]=me),[,$,T]=y.style([this.fromPos,this.toPos],q,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const q=this.attributesToRemove;[,$,T]=y.removeStyle([this.fromPos,this.toPos],q,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const q of $)d.registerGCPair(q);return{opInfos:T.map(({from:q,to:ne,value:me,fromPath:Se,toPath:ze})=>({type:"tree-style",from:q,to:ne,value:this.attributes.size?{attributes:me}:{attributesToRemove:me},fromPath:Se,toPath:ze,path:d.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${d}.STYLE(${p},${y},${Object.entries(this.attributes||{}).map(([T,$])=>`${T}:"${$}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function Qu(O){const d=new zu,p=d.data;for(const[y,T]of Object.entries(O))p[y]=JSON.stringify(T);return d}function MS(O){if(O.type===Fd.Put)return new L0({type:_p.PUT,presence:Qu(O.presence)});if(O.type===Fd.Clear)return new L0({type:_p.CLEAR});throw new zr(xr.ErrUnimplemented,"unimplemented type")}function hb(O){return new $0({serverSeq:O.getServerSeqAsString(),clientSeq:O.getClientSeq()})}function Wd(O){return new J1({clientSeq:O.getClientSeq(),lamport:O.getLamportAsString(),actorId:Cb(O.getActorID())})}function Tn(O){if(O)return new Dn({lamport:O.getLamportAsString(),delimiter:O.getDelimiter(),actorId:Cb(O.getActorID())})}function hs(O){switch(O){case ka.Null:return vn.NULL;case ka.Boolean:return vn.BOOLEAN;case ka.Integer:return vn.INTEGER;case ka.Long:return vn.LONG;case ka.Double:return vn.DOUBLE;case ka.String:return vn.STRING;case ka.Bytes:return vn.BYTES;case ka.Date:return vn.DATE;default:throw new zr(xr.Unsupported,`unsupported type: ${O}`)}}function pb(O){switch(O){case Ql.IntegerCnt:return vn.INTEGER_CNT;case Ql.LongCnt:return vn.LONG_CNT;default:throw new zr(xr.Unsupported,`unsupported type: ${O}`)}}function LS(O){if(O instanceof se)return new zc({type:vn.JSON_OBJECT,createdAt:Tn(O.getCreatedAt()),value:kb(O)});if(O instanceof Io)return new zc({type:vn.JSON_ARRAY,createdAt:Tn(O.getCreatedAt()),value:HS(O)});if(O instanceof il)return new zc({type:vn.TEXT,createdAt:Tn(O.getCreatedAt())});if(O instanceof Ti)return new zc({type:hs(O.getType()),createdAt:Tn(O.getCreatedAt()),value:O.toBytes()});if(O instanceof ni)return new zc({type:pb(O.getType()),createdAt:Tn(O.getCreatedAt()),value:O.toBytes()});if(O instanceof al)return new zc({type:vn.TREE,createdAt:Tn(O.getCreatedAt()),value:Gd(O)});throw new zr(xr.ErrUnimplemented,"unimplemented element")}function rD(O){return new wS({createdAt:Tn(O.getCreatedAt()),offset:O.getOffset()})}function mb(O){return new sh({createdAt:Tn(O.getID().getCreatedAt()),offset:O.getID().getOffset(),relativeOffset:O.getRelativeOffset()})}function Lp(O){return new M0({parentId:X0(O.getParentID()),leftSiblingId:X0(O.getLeftSiblingID())})}function X0(O){return new Bl({createdAt:Tn(O.getCreatedAt()),offset:O.getOffset()})}function $p(O){const d=new bS;if(O instanceof fh){const p=O,y=new wk;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.key=p.getKey(),y.value=LS(p.getValue()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="set",d.body.value=y}else if(O instanceof Q0){const p=O,y=new yS;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.prevCreatedAt=Tn(p.getPrevCreatedAt()),y.value=LS(p.getValue()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="add",d.body.value=y}else if(O instanceof zd){const p=O,y=new P0;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.prevCreatedAt=Tn(p.getPrevCreatedAt()),y.createdAt=Tn(p.getCreatedAt()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="move",d.body.value=y}else if(O instanceof Ud){const p=O,y=new ah;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.createdAt=Tn(p.getCreatedAt()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="remove",d.body.value=y}else if(O instanceof G0){const p=O,y=new xk;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=mb(p.getFromPos()),y.to=mb(p.getToPos());const T=y.createdAtMapByActor;for(const[q,ne]of p.getMaxCreatedAtMapByActor())T[q]=Tn(ne);y.content=p.getContent();const $=y.attributes;for(const[q,ne]of p.getAttributes())$[q]=ne;y.executedAt=Tn(p.getExecutedAt()),d.body.case="edit",d.body.value=y}else if(O instanceof Y0){const p=O,y=new vS;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=mb(p.getFromPos()),y.to=mb(p.getToPos());const T=y.createdAtMapByActor;for(const[q,ne]of p.getMaxCreatedAtMapByActor())T[q]=Tn(ne);const $=y.attributes;for(const[q,ne]of p.getAttributes())$[q]=ne;y.executedAt=Tn(p.getExecutedAt()),d.body.case="style",d.body.value=y}else if(O instanceof Vd){const p=O,y=new eb;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.value=LS(p.getValue()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="increase",d.body.value=y}else if(O instanceof Do){const p=O,y=new tb,T=y.createdAtMapByActor;for(const[$,q]of p.getMaxCreatedAtMapByActor())T[$]=Tn(q);y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=Lp(p.getFromPos()),y.to=Lp(p.getToPos()),y.contents=$S(p.getContents()),y.splitLevel=p.getSplitLevel(),y.executedAt=Tn(p.getExecutedAt()),d.body.case="treeEdit",d.body.value=y}else if(O instanceof Wu){const p=O,y=new OS;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=Lp(p.getFromPos()),y.to=Lp(p.getToPos());const T=y.createdAtMapByActor;for(const[q,ne]of p.getMaxCreatedAtMapByActor())T[q]=Tn(ne);const $=p.getAttributesToRemove();if($.length>0)y.attributesToRemove=$;else{const q=y.attributes;for(const[ne,me]of p.getAttributes())q[ne]=me}y.executedAt=Tn(p.getExecutedAt()),d.body.case="treeStyle",d.body.value=y}else throw new zr(xr.ErrUnimplemented,"unimplemented operation");return d}function Bk(O){const d=[];for(const p of O)d.push($p(p));return d}function iD(O){const d=new K1({id:Wd(O.getID()),message:O.getMessage()});return O.hasOperations()&&(d.operations=Bk(O.getOperations())),O.hasPresenceChange()&&(d.presenceChange=MS(O.getPresenceChange())),d}function aD(O){const d=[];for(const p of O)d.push(iD(p));return d}function K0(O){const d=[];for(const p of O)d.push(new ES({key:p.getStrKey(),element:bb(p.getValue())}));return d}function sD(O){const d=[];for(const p of O)d.push(new ib({element:bb(p.getValue())}));return d}function oD(O){const d=[];for(const p of O){const y=new Ck;y.id=rD(p.getID()),y.value=p.getValue().getContent(),y.removedAt=Tn(p.getRemovedAt());const T=y.attributes,$=p.getValue().getAttrs();for(const q of $){const ne=new ab;ne.value=q.getValue(),ne.updatedAt=Tn(q.getUpdatedAt()),T[q.getKey()]=ne}d.push(y)}return d}function $S(O){const d=[];if(!O||!O.length)return d;for(const p of O)d.push(new Ak({content:zk(p)}));return d}function Uk(O){const d={};for(const p of O)d[p.getKey()]=new ab({value:p.getValue(),updatedAt:Tn(p.getUpdatedAt()),isRemoved:p.isRemoved()});return d}function zk(O){if(!O)return[];const d=[];return oo(O,(p,y)=>{const T=new xS({id:X0(p.id),type:p.type,removedAt:Tn(p.removedAt),depth:y});p.isText&&(T.value=p.value),p.insPrevID&&(T.insPrevId=X0(p.insPrevID)),p.insNextID&&(T.insNextId=X0(p.insNextID)),p.attrs&&(T.attributes=Uk(p.attrs)),d.push(T)}),d}function lD(O){const d=new ro;return d.body.case="jsonObject",d.body.value=new nb({nodes:K0(O.getRHT()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function jk(O){const d=new ro;return d.body.case="jsonArray",d.body.value=new kk({nodes:sD(O.getElements()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function Hk(O){const d=new ro;return d.body.case="primitive",d.body.value=new SS({type:hs(O.getType()),value:O.toBytes(),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function FS(O){const d=new ro;return d.body.case="text",d.body.value=new io({nodes:oD(O.getRGATreeSplit()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function uD(O){const d=new ro;return d.body.case="counter",d.body.value=new rb({type:pb(O.getType()),value:O.toBytes(),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function gb(O){const d=new ro;return d.body.case="tree",d.body.value=new Ap({nodes:zk(O.getRoot()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function bb(O){if(O instanceof se)return lD(O);if(O instanceof Io)return jk(O);if(O instanceof Ti)return Hk(O);if(O instanceof il)return FS(O);if(O instanceof ni)return uD(O);if(O instanceof al)return gb(O);throw new zr(xr.ErrUnimplemented,"unimplemented element")}function Vk(O){return new Uc({documentKey:O.getDocumentKey(),checkpoint:hb(O.getCheckpoint()),isRemoved:O.getIsRemoved(),changes:aD(O.getChanges()),snapshot:O.getSnapshot(),minSyncedTicket:Tn(O.getMinSyncedTicket())})}function BS(O){const d=O.findDetails(Y6);for(const p of d)if(p.metadata.code)return p.metadata.code;return""}function J0(O){let d;return O.serverSeq&&(d=Zn.fromString(O.serverSeq,!0)),Vu.of(O.clientSeq,Zn.fromString(O.lamport,!0),qu(O.actorId),d)}function Nn(O){if(O)return Ta.of(Zn.fromString(O.lamport,!0),O.delimiter,qu(O.actorId))}function yb(O){const d={};return Object.entries(O.data).forEach(([p,y])=>{d[p]=JSON.parse(y)}),d}function Wk(O){const d=O.type;if(d===_p.PUT){const p=yb(O.presence);return{type:Fd.Put,presence:p}}if(d===_p.CLEAR)return{type:Fd.Clear};throw new zr(xr.Unsupported,`unsupported type: ${d}`)}function cD(O){const d=new Map;return Object.entries(O).forEach(([p,y])=>{d.set(p,yb(y))}),d}function US(O){switch(O){case vn.NULL:return ka.Null;case vn.BOOLEAN:return ka.Boolean;case vn.INTEGER:return ka.Integer;case vn.LONG:return ka.Long;case vn.DOUBLE:return ka.Double;case vn.STRING:return ka.String;case vn.BYTES:return ka.Bytes;case vn.DATE:return ka.Date}throw new zr(xr.ErrUnimplemented,`unimplemented value type: ${O}`)}function vb(O){switch(O){case vn.INTEGER_CNT:return Ql.IntegerCnt;case vn.LONG_CNT:return Ql.LongCnt}throw new zr(xr.ErrUnimplemented,`unimplemented value type: ${O}`)}function eg(O){switch(O.type){case vn.JSON_OBJECT:return O.value?jS(O.value):se.create(Nn(O.createdAt));case vn.JSON_ARRAY:return O.value?Zk(O.value):Io.create(Nn(O.createdAt));case vn.TEXT:return il.create(Qc.create(),Nn(O.createdAt));case vn.TREE:return VS(O.value);case vn.NULL:case vn.BOOLEAN:case vn.INTEGER:case vn.LONG:case vn.DOUBLE:case vn.STRING:case vn.BYTES:case vn.DATE:return Ti.of(Ti.valueFromBytes(US(O.type),O.value),Nn(O.createdAt));case vn.INTEGER_CNT:case vn.LONG_CNT:return ni.create(vb(O.type),ni.valueFromBytes(vb(O.type),O.value),Nn(O.createdAt))}}function tg(O){return sl.of(lo.of(Nn(O.createdAt),O.offset),O.relativeOffset)}function Ob(O){return lo.of(Nn(O.createdAt),O.offset)}function dD(O){const d=q0.create(O.value);Object.entries(O.attributes).forEach(([y,T])=>{d.setAttr(y,T.value,Nn(T.updatedAt))});const p=Hd.create(Ob(O.id),d);return p.remove(Nn(O.removedAt)),p}function Qd(O){return Wl.of(ir(O.parentId),ir(O.leftSiblingId))}function ir(O){return Ca.of(Nn(O.createdAt),O.offset)}function fD(O){if(!O.length)return;const d=[];return O.forEach(p=>{const y=Qk(p.content);d.push(y)}),d}function Qk(O){if(O.length===0)return;const d=[];for(const y of O)d.push(qk(y));const p=d[d.length-1];for(let y=d.length-2;y>=0;y--){let T;for(let $=y+1;${p.set(T,Nn($))});const y=new Map;return Object.entries(d.attributes).forEach(([T,$])=>{y.set(T,$)}),G0.create(Nn(d.parentCreatedAt),tg(d.from),tg(d.to),p,d.content,y,Nn(d.executedAt))}else if(O.body.case==="style"){const d=O.body.value,p=new Map;Object.entries(d.createdAtMapByActor).forEach(([T,$])=>{p.set(T,Nn($))});const y=new Map;return Object.entries(d.attributes).forEach(([T,$])=>{y.set(T,$)}),Y0.create(Nn(d.parentCreatedAt),tg(d.from),tg(d.to),p,y,Nn(d.executedAt))}else{if(O.body.case==="select")return;if(O.body.case==="increase"){const d=O.body.value;return Vd.create(Nn(d.parentCreatedAt),eg(d.value),Nn(d.executedAt))}else if(O.body.case==="treeEdit"){const d=O.body.value,p=new Map;return Object.entries(d.createdAtMapByActor).forEach(([y,T])=>{p.set(y,Nn(T))}),Do.create(Nn(d.parentCreatedAt),Qd(d.from),Qd(d.to),fD(d.contents),d.splitLevel,p,Nn(d.executedAt))}else if(O.body.case==="treeStyle"){const d=O.body.value,p=new Map,y=d.attributesToRemove,T=new Map;return d!=null&&d.createdAtMapByActor&&Object.entries(d.createdAtMapByActor).forEach(([$,q])=>{T.set($,Nn(q))}),(y==null?void 0:y.length)>0?Wu.createTreeRemoveStyleOperation(Nn(d.parentCreatedAt),Qd(d.from),Qd(d.to),T,y,Nn(d.executedAt)):(Object.entries(d.attributes).forEach(([$,q])=>{p.set($,q)}),Wu.create(Nn(d.parentCreatedAt),Qd(d.from),Qd(d.to),T,p,Nn(d.executedAt)))}else throw new zr(xr.ErrUnimplemented,"unimplemented operation")}}function hD(O){const d=[];for(const p of O){const y=Gk(p);y&&d.push(y)}return d}function No(O){const d=[];for(const p of O)d.push(Ua.create({id:J0(p.id),operations:hD(p.operations),presenceChange:p.presenceChange?Wk(p.presenceChange):void 0,message:p.message}));return d}function pD(O){return ph.of(Zn.fromString(O.serverSeq,!0),O.clientSeq)}function Sb(O){return fb.create(O.documentKey,pD(O.checkpoint),O.isRemoved,No(O.changes),O.snapshot,Nn(O.minSyncedTicket))}function Eb(O){const d=new Pp;for(const y of O.nodes){const T=xb(y.element);d.set(y.key,T,T.getPositionedAt())}const p=new se(Nn(O.createdAt),d);return p.setMovedAt(Nn(O.movedAt)),p.setRemovedAt(Nn(O.removedAt)),p}function zS(O){const d=new Vl;for(const y of O.nodes)d.insert(xb(y.element));const p=new Io(Nn(O.createdAt),d);return p.setMovedAt(Nn(O.movedAt)),p.setRemovedAt(Nn(O.removedAt)),p}function Yk(O){const d=Ti.of(Ti.valueFromBytes(US(O.type),O.value),Nn(O.createdAt));return d.setMovedAt(Nn(O.movedAt)),d.setRemovedAt(Nn(O.removedAt)),d}function Po(O){const d=new Qc;let p=d.getHead();for(const T of O.nodes){const $=d.insertAfter(p,dD(T));T.insPrevId&&$.setInsPrev(d.findNode(Ob(T.insPrevId))),p=$}const y=new il(d,Nn(O.createdAt));return y.setMovedAt(Nn(O.movedAt)),y.setRemovedAt(Nn(O.removedAt)),y}function qd(O){const d=ni.create(vb(O.type),ni.valueFromBytes(vb(O.type),O.value),Nn(O.createdAt));return d.setMovedAt(Nn(O.movedAt)),d.setRemovedAt(Nn(O.removedAt)),d}function wb(O){const d=Qk(O.nodes);return al.create(d,Nn(O.createdAt))}function xb(O){if(O.body.case==="jsonObject")return Eb(O.body.value);if(O.body.case==="jsonArray")return zS(O.body.value);if(O.body.case==="primitive")return Yk(O.body.value);if(O.body.case==="text")return Po(O.body.value);if(O.body.case==="counter")return qd(O.body.value);if(O.body.case==="tree")return wb(O.body.value);throw new zr(xr.ErrUnimplemented,"unimplemented element")}function Tb(O){if(!O)return{root:se.create(Ds),presences:new Map};const d=gS.fromBinary(O);return{root:xb(d.root),presences:cD(d.presences)}}function jS(O){if(!O)throw new Error("bytes is empty");const d=ro.fromBinary(O);return Eb(d.body.value)}function kb(O){return bb(O).toBinary()}function Zk(O){if(!O)throw new Error("bytes is empty");const d=ro.fromBinary(O);return zS(d.body.value)}function HS(O){return jk(O).toBinary()}function VS(O){if(!O)throw new Error("bytes is empty");const d=ro.fromBinary(O);return wb(d.body.value)}function Gd(O){return gb(O).toBinary()}function Xk(O){return O?Array.from(O).map(d=>d.toString(16).padStart(2,"0")).join(""):""}function qu(O){return Xk(O)}function WS(O){return new Uint8Array(O.match(/.{1,2}/g).map(d=>parseInt(d,16)))}function Cb(O){return WS(O)}function QS(O){const d=J1.fromBinary(O);return J0(d)}function mD(O){const d=bS.fromBinary(O);return Gk(d)}const ha={fromPresence:yb,toChangePack:Vk,fromChangePack:Sb,fromChanges:No,objectToBytes:kb,bytesToObject:jS,bytesToSnapshot:Tb,bytesToHex:Xk,hexToBytes:WS,toHexString:qu,toUint8Array:Cb,toOperation:$p,toChangeID:Wd,PbChangeID:J1,bytesToChangeID:QS,bytesToOperation:mD};function Kk(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,O=>{const d=Math.random()*16|0;return(O==="x"?d:d&3|8).toString(16)})}class Jk{constructor(d,p,y,T){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),this.reconnectStreamDelay=d,this.doc=p,this.docID=y,this.syncMode=T,this.remoteChangeEventReceived=!1}changeSyncMode(d){this.syncMode=d}needRealtimeSync(){return this.syncMode===Wp.RealtimeSyncOff?!1:this.syncMode===Wp.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==Wp.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(d){const p=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await d(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(p,this.reconnectStreamDelay)})}catch{}};await p()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const Ab=()=>{};class gD{constructor(d){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{d(this)}catch(p){this.error(p)}}next(d){this.forEachObserver(p=>{p.next(d)})}error(d){this.forEachObserver(p=>{p.error(d)}),this.close(d)}complete(){this.forEachObserver(d=>{d.complete()}),this.close()}subscribe(d,p,y){let T;d||Lt.fatal("missing observer"),this.finalized&&Lt.fatal("observable is finalized due to previous error"),typeof d=="object"?T=d:T={next:d,error:p,complete:y},T.next===void 0&&(T.next=Ab),T.error===void 0&&(T.error=Ab),T.complete===void 0&&(T.complete=Ab);const $=Kk(),q=this.unsubscribeOne.bind(this,$);if(this.observers.push({subscriptionID:$,observer:T}),this.finalized)try{this.finalError?T.error(this.finalError):T.complete()}catch(ne){Lt.warn(ne)}return q}unsubscribeOne(d){var p;this.observers=(p=this.observers)==null?void 0:p.filter(y=>y.subscriptionID!==d)}forEachObserver(d){if(!this.finalized)for(let p=0;pd}}class mh{constructor(d,p,y,T){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=d,this.delimiter=H0,this.root=p,this.operations=[],this.previousPresence=jl(y),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=T}static create(d,p,y,T){return new mh(d,p,y,T)}push(d){this.operations.push(d)}registerElement(d,p){this.root.registerElement(d,p)}registerRemovedElement(d){this.root.registerRemovedElement(d)}registerGCPair(d){this.root.registerGCPair(d)}getChange(){return Ua.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(d){this.presenceChange=d}setReversePresence(d,p){for(const y of Object.keys(d))p!=null&&p.addToHistory?this.reversePresenceKeys.add(y):this.reversePresenceKeys.delete(y)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const d={};for(const p of this.reversePresenceKeys)d[p]=this.previousPresence[p];return d}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class za{constructor(d){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=d,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(d,void 0),d.getDescendants(p=>{if(p.getRemovedAt()&&this.registerRemovedElement(p),p instanceof il||p instanceof al)for(const y of p.getGCPairs())this.registerGCPair(y);return!1})}static create(){return new za(se.create(Ds))}findByCreatedAt(d){const p=this.elementPairMapByCreatedAt.get(d.toIDString());if(p)return p.element}findElementPairByCreatedAt(d){return this.elementPairMapByCreatedAt.get(d.toIDString())}createSubPaths(d){let p=this.elementPairMapByCreatedAt.get(d.toIDString());if(!p)return[];const y=[];for(;p.parent;){const T=p.element.getCreatedAt(),$=p.parent.subPathOf(T);$===void 0&&Lt.fatal(`cant find the given element: ${T.toIDString()}`),y.unshift($),p=this.elementPairMapByCreatedAt.get(p.parent.getCreatedAt().toIDString())}return y.unshift("$"),y}createPath(d){return this.createSubPaths(d).join(".")}registerElement(d,p){this.elementPairMapByCreatedAt.set(d.getCreatedAt().toIDString(),{parent:p,element:d}),d instanceof Hl&&d.getDescendants((y,T)=>(this.registerElement(y,T),!1))}deregisterElement(d){let p=0;const y=T=>{const $=T.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete($),this.gcElementSetByCreatedAt.delete($),p++};return y(d),d instanceof Hl&&d.getDescendants(T=>(y(T),!1)),p}registerRemovedElement(d){this.gcElementSetByCreatedAt.add(d.getCreatedAt().toIDString())}registerGCPair(d){if(this.gcPairMap.get(d.child.toIDString())){this.gcPairMap.delete(d.child.toIDString());return}this.gcPairMap.set(d.child.toIDString(),d)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const d=new Set;for(const p of this.gcElementSetByCreatedAt){d.add(p);const y=this.elementPairMapByCreatedAt.get(p);y.element instanceof Hl&&y.element.getDescendants(T=>(d.add(T.getCreatedAt().toIDString()),!1))}return d.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new za(this.rootObject.deepcopy())}garbageCollect(d){let p=0;for(const y of this.gcElementSetByCreatedAt){const T=this.elementPairMapByCreatedAt.get(y);T.element.getRemovedAt()&&d.compare(T.element.getRemovedAt())>=0&&(T.parent.purge(T.element),p+=this.deregisterElement(T.element))}for(const[,y]of this.gcPairMap){const T=y.child.getRemovedAt();T!==void 0&&d.compare(T)>=0&&(y.parent.purge(y.child),this.gcPairMap.delete(y.child.toIDString()),p+=1)}return p}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function ql(O,d){const p=new rg(O);return new Proxy(d,p.getHandlers())}class rg{constructor(d){s(this,"context"),s(this,"handlers"),this.context=d,this.handlers={set:(p,y,T)=>(Lt.isEnabled(ea.Trivial)&&Lt.trivial(`obj[${y}]=${JSON.stringify(T)}`),rg.setInternal(d,p,y,T),!0),get:(p,y)=>(Lt.isEnabled(ea.Trivial)&&Lt.trivial(`obj[${y}]`),y==="getID"?()=>p.getCreatedAt():y==="toJSON"||y==="toString"?()=>p.toJSON():y==="toJS"?()=>p.toJS():y==="toJSForTest"?()=>p.toJSForTest():Yd(d,p.get(y))),ownKeys:p=>p.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(p,y)=>(Lt.isEnabled(ea.Trivial)&&Lt.trivial(`obj[${y}]`),rg.deleteInternal(d,p,y),!0)}}static setInternal(d,p,y,T){if(y.includes("."))throw new zr(xr.ErrInvalidObjectKey,"key must not contain the '.'.");const $=d.issueTimeTicket(),q=gh(d,T,$),ne=p.set(y,q,$);d.registerElement(q,p),ne&&d.registerRemovedElement(ne),d.push(fh.create(y,q.deepcopy(),p.getCreatedAt(),$))}static buildObjectMembers(d,p){const y={};for(const[T,$]of Object.entries(p)){if(T.includes("."))throw new zr(xr.ErrInvalidObjectKey,"key must not contain the '.'.");const q=d.issueTimeTicket(),ne=gh(d,$,q);y[T]=ne}return y}static deleteInternal(d,p,y){const T=d.issueTimeTicket(),$=p.deleteByKey(y,T);$&&(d.push(Ud.create(p.getCreatedAt(),$.getCreatedAt(),T)),d.registerRemovedElement($))}getHandlers(){return this.handlers}}function bD(O,d){const p=new Li(O,d);return new Proxy(d,p.getHandlers())}function _b(O){return typeof O=="string"||O instanceof String?!isNaN(O):!1}function Fp(O){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(O)}class Li{constructor(d,p){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=d,this.array=p,this.handlers={get:(y,T,$)=>T==="getID"?()=>y.getCreatedAt():T==="getElementByID"?q=>{const ne=y.getByID(q);if(!(!ne||ne.isRemoved()))return Gl(d,ne)}:T==="getElementByIndex"?q=>{const ne=y.get(q);return Gl(d,ne)}:T==="getLast"?()=>Gl(d,y.getLast()):T==="deleteByID"?q=>{const ne=Li.deleteInternalByID(d,y,q);return Gl(d,ne)}:T==="insertAfter"?(q,ne)=>{const me=Li.insertAfterInternal(d,y,q,ne);return Gl(d,me)}:T==="insertBefore"?(q,ne)=>{const me=Li.insertBeforeInternal(d,y,q,ne);return Gl(d,me)}:T==="moveBefore"?(q,ne)=>{Li.moveBeforeInternal(d,y,q,ne)}:T==="moveAfter"?(q,ne)=>{Li.moveAfterInternal(d,y,q,ne)}:T==="moveFront"?q=>{Li.moveFrontInternal(d,y,q)}:T==="moveLast"?q=>{Li.moveLastInternal(d,y,q)}:_b(T)?Yd(d,y.get(Number(T))):T==="push"?q=>Li.pushInternal(d,y,q):T==="splice"?(q,ne,...me)=>Li.splice(d,y,q,ne,...me):T==="length"?y.length:typeof T=="symbol"&&T===Symbol.iterator?Li.iteratorInternal.bind(this,d,y):T==="includes"?(q,ne)=>Li.includes(d,y,q,ne):T==="indexOf"?(q,ne)=>Li.indexOf(d,y,q,ne):T==="lastIndexOf"?(q,ne)=>Li.lastIndexOf(d,y,q,ne):T==="toJSForTest"?()=>y.toJSForTest():T==="toTestString"?()=>Li.toTestString(y):typeof T=="string"&&Fp(T)?(...q)=>{const ne=Array.from(y).map(me=>Yd(d,me));return Array.prototype[T].apply(ne,q)}:Reflect.get(y,T,$),deleteProperty:(y,T)=>(Lt.isEnabled(ea.Trivial)&&Lt.trivial(`array[${T}]`),Li.deleteInternalByIndex(d,y,Number.parseInt(T)),!0)}}static*iteratorInternal(d,p){for(const y of p)yield Gl(d,y)}static buildArrayElements(d,p){const y=[];for(const T of p){const $=d.issueTimeTicket(),q=gh(d,T,$);y.push(q)}return y}static pushInternal(d,p,y){return Li.insertAfterInternal(d,p,p.getLastCreatedAt(),y),p.length}static moveBeforeInternal(d,p,y,T){const $=d.issueTimeTicket(),q=p.getPrevCreatedAt(y);p.moveAfter(q,T,$),d.push(zd.create(p.getCreatedAt(),q,T,$))}static moveAfterInternal(d,p,y,T){const $=d.issueTimeTicket();p.moveAfter(y,T,$),d.push(zd.create(p.getCreatedAt(),y,T,$))}static moveFrontInternal(d,p,y){const T=d.issueTimeTicket(),$=p.getHead();p.moveAfter($.getCreatedAt(),y,T),d.push(zd.create(p.getCreatedAt(),$.getCreatedAt(),y,T))}static moveLastInternal(d,p,y){const T=d.issueTimeTicket(),$=p.getLastCreatedAt();p.moveAfter($,y,T),d.push(zd.create(p.getCreatedAt(),$,y,T))}static insertAfterInternal(d,p,y,T){const $=d.issueTimeTicket(),q=gh(d,T,$);return p.insertAfter(y,q),d.registerElement(q,p),d.push(Q0.create(p.getCreatedAt(),y,q.deepcopy(),$)),q}static insertBeforeInternal(d,p,y,T){return Li.insertAfterInternal(d,p,p.getPrevCreatedAt(y),T)}static deleteInternalByIndex(d,p,y){const T=d.issueTimeTicket(),$=p.deleteByIndex(y,T);if($)return d.push(Ud.create(p.getCreatedAt(),$.getCreatedAt(),T)),d.registerRemovedElement($),$}static deleteInternalByID(d,p,y){const T=d.issueTimeTicket(),$=p.delete(y,T);return d.push(Ud.create(p.getCreatedAt(),$.getCreatedAt(),T)),d.registerRemovedElement($),$}static splice(d,p,y,T,...$){const q=p.length,ne=y>=0?Math.min(y,q):Math.max(q+y,0),me=T===void 0?q:T<0?ne:Math.min(ne+T,q),Se=[];for(let ze=ne;ze=q)return!1;if(Ti.isSupport(y))return Array.from(p).map(Se=>Yd(d,Se)).includes(y,ne);for(let me=ne;me=q)return-1;if(Ti.isSupport(y))return Array.from(p).map(Se=>Yd(d,Se)).indexOf(y,ne);for(let me=ne;me=q?q-1:T<0?T+q:T;if(ne<0)return-1;if(Ti.isSupport(y))return Array.from(p).map(Se=>Yd(d,Se)).lastIndexOf(y,ne);for(let me=ne;me>0;me--)if((($=p.get(me))==null?void 0:$.getID())===y.getID())return me;return-1}static toTestString(d){return d.toTestString()}getHandlers(){return this.handlers}}class Bp{constructor(d,p){s(this,"context"),s(this,"text"),this.context=d,this.text=p}initialize(d,p){this.context=d,this.text=p}getID(){return this.text.getID()}edit(d,p,y,T){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}if(d>p){Lt.fatal("from should be less than or equal to to");return}const $=this.text.indexRangeToPosRange(d,p);Lt.isEnabled(ea.Debug)&&Lt.debug(`EDIT: f:${d}->${$[0].toTestString()}, t:${p}->${$[1].toTestString()} c:${y}`);const q=T?Ji(T):void 0,ne=this.context.issueTimeTicket(),[me,,Se,ze]=this.text.edit($,y,ne,q);for(const Ct of Se)this.context.registerGCPair(Ct);return this.context.push(new G0(this.text.getCreatedAt(),$[0],$[1],me,y,q?new Map(Object.entries(q)):new Map,ne)),this.text.findIndexesFromRange(ze)}delete(d,p){return this.edit(d,p,"")}empty(){return this.edit(0,this.length,"")}setStyle(d,p,y){if(!this.context||!this.text)return Lt.fatal("it is not initialized yet"),!1;if(d>p)return Lt.fatal("from should be less than or equal to to"),!1;const T=this.text.indexRangeToPosRange(d,p);Lt.isEnabled(ea.Debug)&&Lt.debug(`STYL: f:${d}->${T[0].toTestString()}, t:${p}->${T[1].toTestString()} a:${JSON.stringify(y)}`);const $=Ji(y),q=this.context.issueTimeTicket(),[ne,me]=this.text.setStyle(T,$,q);for(const Se of me)this.context.registerGCPair(Se);return this.context.push(new Y0(this.text.getCreatedAt(),T[0],T[1],ne,new Map(Object.entries($)),q)),!0}indexRangeToPosRange(d){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}const p=this.text.indexRangeToPosRange(d[0],d[1]);return[p[0].toStruct(),p[1].toStruct()]}posRangeToIndexRange(d){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}const p=this.text.findIndexesFromRange([sl.fromStruct(d[0]),sl.fromStruct(d[1])]);return[p[0],p[1]]}toTestString(){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}getTreeByIndex(){return this.text.getTreeByIndex()}getTreeByID(){return this.text.getTreeByID()}toString(){return!this.context||!this.text?(Lt.fatal("it is not initialized yet"),""):this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSForTest()}createRangeForTest(d,p){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(d,p)}}class ig{constructor(d,p){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=d,this.value=p}initialize(d,p){this.valueType=p.getValueType(),this.context=d,this.counter=p,this.value=p.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(d){if(!this.context||!this.counter){Lt.fatal("it is not initialized yet");return}const p=this.context.issueTimeTicket(),y=Ti.of(d,p);if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`);return this.counter.increase(y),this.context.push(Vd.create(this.counter.getCreatedAt(),y,p)),this}toJSForTest(){if(!this.context||!this.counter)throw new Error("it is not initialized yet");return this.counter.toJSForTest()}}function Rb(O,d,p){const{type:y}=O,T=p.issueTimeTicket();if(y===Wc){zp(O);const{value:$}=O,q=Ga.create(Ca.of(T,0),y,$);d.append(q)}else{const{children:$=[]}=O;let{attributes:q}=O,ne;if(typeof q=="object"&&!fa(q)){q=Ji(q),ne=new Hc;for(const[Se,ze]of Object.entries(q))ne.set(Se,ze,T)}const me=Ga.create(Ca.of(T,0),y,void 0,ne);d.append(me);for(const Se of $)Rb(Se,me,p)}}function Up(O,d){const{type:p}=d,y=O.issueTimeTicket();let T;if(d.type===Wc){const{value:$}=d;T=Ga.create(Ca.of(y,0),p,$)}else if(d){const{children:$=[]}=d;let{attributes:q}=d,ne;if(typeof q=="object"&&!fa(q)){q=Ji(q),ne=new Hc;for(const[me,Se]of Object.entries(q))ne.set(me,Se,y)}T=Ga.create(Ca.of(O.issueTimeTicket(),0),p,void 0,ne);for(const me of $)Rb(me,T,O)}return T}function zp(O){if(!O.value.length)throw new Error("text node cannot have empty value");return!0}function tC(O){if(!O.length)return!0;if(O[0].type===Wc)for(const p of O){const{type:y}=p;if(y!==Wc)throw new Error("element node and text node cannot be passed together");zp(p)}else for(const p of O){const{type:y}=p;if(y===Wc)throw new Error("element node and text node cannot be passed together")}return!0}class jp{constructor(d){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=d}initialize(d,p){this.context=d,this.tree=p}getID(){return this.tree.getID()}buildRoot(d){if(!this.initialRoot)return Ga.create(Ca.of(d.issueTimeTicket(),0),X6);const p=Ga.create(Ca.of(d.issueTimeTicket(),0),this.initialRoot.type);for(const y of this.initialRoot.children)Rb(y,p,d);return p}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(d,p){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!d.length)throw new Error("path should not be empty");const[y,T]=this.tree.pathToPosRange(d),$=this.context.issueTimeTicket(),q=p?Ji(p):void 0,[ne]=this.tree.style([y,T],q,$);this.context.push(Wu.create(this.tree.getCreatedAt(),y,T,ne,q?new Map(Object.entries(q)):new Map,$))}style(d,p,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const T=this.tree.findPos(d),$=this.tree.findPos(p),q=this.context.issueTimeTicket(),ne=y?Ji(y):void 0,[me,Se]=this.tree.style([T,$],ne,q);for(const ze of Se)this.context.registerGCPair(ze);this.context.push(Wu.create(this.tree.getCreatedAt(),T,$,me,ne?new Map(Object.entries(ne)):new Map,q))}removeStyle(d,p,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const T=this.tree.findPos(d),$=this.tree.findPos(p),q=this.context.issueTimeTicket(),[ne,me]=this.tree.removeStyle([T,$],y,q);for(const Se of me)this.context.registerGCPair(Se);this.context.push(Wu.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),T,$,ne,y,q))}editInternal(d,p,y,T=0){var $;if(y.length!==0&&y[0]&&(tC(y),y[0].type!==Wc))for(const ze of y){const{children:Ct=[]}=ze;tC(Ct)}const q=this.context.getLastTimeTicket();let ne=new Array;if((($=y[0])==null?void 0:$.type)===Wc){let ze="";for(const Ct of y){const{value:St}=Ct;ze+=St}ne.push(Ga.create(Ca.of(this.context.issueTimeTicket(),0),Wc,ze))}else ne=y.map(ze=>ze&&Up(this.context,ze)).filter(ze=>ze);const[,me,Se]=this.tree.edit([d,p],ne.length?ne.map(ze=>ze==null?void 0:ze.deepcopy()):void 0,T,q,()=>this.context.issueTimeTicket());for(const ze of me)this.context.registerGCPair(ze);return this.context.push(Do.create(this.tree.getCreatedAt(),d,p,ne.length?ne:void 0,T,Se,q)),!0}editByPath(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d.length!==p.length)throw new Error("path length should be equal");if(!d.length||!p.length)throw new Error("path should not be empty");const $=this.tree.pathToPos(d),q=this.tree.pathToPos(p);return this.editInternal($,q,y?[y]:[],T)}editBulkByPath(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d.length!==p.length)throw new Error("path length should be equal");if(!d.length||!p.length)throw new Error("path should not be empty");const $=this.tree.pathToPos(d),q=this.tree.pathToPos(p);return this.editInternal($,q,y,T)}edit(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const $=this.tree.findPos(d),q=this.tree.findPos(p);return this.editInternal($,q,y?[y]:[],T)}editBulk(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const $=this.tree.findPos(d),q=this.tree.findPos(p);return this.editInternal($,q,y,T)}toXML(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSON()}toJSForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(d){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(d)}pathToIndex(d){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(d)}pathRangeToPosRange(d){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const p=[this.tree.pathToIndex(d[0]),this.tree.pathToIndex(d[1])],y=this.tree.indexRangeToPosRange(p);return[y[0].toStruct(),y[1].toStruct()]}indexRangeToPosRange(d){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(d)}posRangeToIndexRange(d){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const p=[Wl.fromStruct(d[0]),Wl.fromStruct(d[1])];return this.tree.posRangeToIndexRange(p)}posRangeToPathRange(d){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const p=[Wl.fromStruct(d[0]),Wl.fromStruct(d[1])];return this.tree.posRangeToPathRange(p)}}function qS(O,d){return ql(O,d)}function Gl(O,d){if(d){if(d instanceof Ti)return d;if(d instanceof se)return ql(O,d);if(d instanceof Io)return bD(O,d);if(d instanceof il)return new Bp(O,d);if(d instanceof ni){const p=new ig(Ql.IntegerCnt,0);return p.initialize(O,d),p}else if(d instanceof al){const p=new jp;return p.initialize(O,d),p}}else return;throw new TypeError(`Unsupported type of element: ${typeof d}`)}function Yd(O,d){const p=Gl(O,d);return p instanceof Ti?p.getValue():p}function gh(O,d,p){let y;if(Ti.isSupport(d))y=Ti.of(d,p);else if(Array.isArray(d))y=Io.create(p,Li.buildArrayElements(O,d));else if(typeof d=="object")d instanceof Bp?(y=il.create(Qc.create(),p),d.initialize(O,y)):d instanceof ig?(y=ni.create(d.getValueType(),d.getValue(),p),d.initialize(O,y)):d instanceof jp?(y=al.create(d.buildRoot(O),p),d.initialize(O,y)):y=se.create(p,rg.buildObjectMembers(O,d));else throw new TypeError(`Unsupported type of value: ${typeof d}`);return y}const Ib=50;class Db{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(d){this.undoStack.length>=Ib&&this.undoStack.shift(),this.undoStack.push(d)}popUndo(){return this.undoStack.pop()}pushRedo(d){this.redoStack.length>=Ib&&this.redoStack.shift(),this.redoStack.push(d)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const nC="yorkie-devtools-panel",GS="yorkie-devtools-sdk";let qc="disconnected";const YS=new Map,Hp=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=Hp);function Nb(O,d){(d!=null&&d.force||qc!=="disconnected")&&window.postMessage({source:GS,...O},"*")}function rC(O){if(!O.isEnableDevtools()||typeof window>"u"||YS.has(O.getKey()))return;Hp.set(O.getKey(),[]);const d=O.subscribe("all",p=>{p.some(y=>y.type!==ps.StatusChanged&&y.type!==ps.Snapshot&&y.type!==ps.LocalChange&&y.type!==ps.RemoteChange&&y.type!==ps.Initialized&&y.type!==ps.Watched&&y.type!==ps.Unwatched&&y.type!==ps.PresenceChanged)||(Hp.get(O.getKey()).push(p),qc==="synced"&&Nb({msg:"doc::sync::partial",docKey:O.getKey(),event:p}))});YS.set(O.getKey(),[d]),Nb({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",p=>{var y;if(((y=p.data)==null?void 0:y.source)!==nC)return;switch(p.data.msg){case"devtools::connect":if(qc!=="disconnected")break;qc="connected",Nb({msg:"doc::available",docKey:O.getKey()}),Lt.info(`[YD] Devtools connected. Doc: ${O.getKey()}`);break;case"devtools::disconnect":qc="disconnected",Lt.info(`[YD] Devtools disconnected. Doc: ${O.getKey()}`);break;case"devtools::subscribe":qc="synced",Nb({msg:"doc::sync::full",docKey:O.getKey(),events:Hp.get(O.getKey())}),Lt.info(`[YD] Devtools subscribed. Doc: ${O.getKey()}`);break}})}var Ya=(O=>(O.Detached="detached",O.Attached="attached",O.Removed="removed",O))(Ya||{}),ps=(O=>(O.StatusChanged="status-changed",O.ConnectionChanged="connection-changed",O.SyncStatusChanged="sync-status-changed",O.Snapshot="snapshot",O.LocalChange="local-change",O.RemoteChange="remote-change",O.Initialized="initialized",O.Watched="watched",O.Unwatched="unwatched",O.PresenceChanged="presence-changed",O))(ps||{}),ag=(O=>(O.Connected="connected",O.Disconnected="disconnected",O))(ag||{}),Pb=(O=>(O.Synced="synced",O.SyncFailed="sync-failed",O))(Pb||{});class Mb{constructor(d,p){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=p||{},this.key=d,this.status="detached",this.root=za.create(),this.changeID=hh,this.checkpoint=$k,this.localChanges=[],this.eventStream=eC(y=>{this.eventStreamObserver=y}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new Db,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},rC(this)}update(d,p){if(this.getStatus()==="removed")throw new zr(xr.ErrDocumentRemoved,`${this.key} is removed`);this.ensureClone();const y=this.changeID.getActorID(),T=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(y)||{},p);try{const $=qS(T,this.clone.root.getObject());this.presences.has(y)||this.clone.presences.set(y,{}),this.isUpdating=!0,d($,new ub(T,this.clone.presences.get(y)))}catch($){throw this.clone=void 0,Lt.error($),$}finally{this.isUpdating=!1}if(T.hasChange()){Lt.isEnabled(ea.Trivial)&&Lt.trivial(`trying to update a local change: ${this.toJSON()}`);const $=T.getChange(),{opInfos:q,reverseOps:ne}=$.execute(this.root,this.presences,Lr.Local),me=T.getReversePresence();me&&ne.push({type:"presence",value:me}),this.localChanges.push($),ne.length>0&&this.internalHistory.pushUndo(ne),q.length>0&&this.internalHistory.clearRedo(),this.changeID=$.getID();const Se=[];q.length>0&&Se.push({type:"local-change",source:Lr.Local,value:{message:$.getMessage()||"",operations:q,actor:y,clientSeq:$.getID().getClientSeq(),serverSeq:$.getID().getServerSeq()},rawChange:this.isEnableDevtools()?$.toStruct():void 0}),$.hasPresenceChange()&&Se.push({type:"presence-changed",source:Lr.Local,value:{clientID:y,presence:this.getPresence(y)}}),this.publish(Se),Lt.isEnabled(ea.Trivial)&&Lt.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(d,p,y,T){if(typeof d=="string"){if(typeof p!="function")throw new Error("Second argument must be a callback function");if(d==="presence"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="initialized"&&Se.type!=="watched"&&Se.type!=="unwatched"&&Se.type!=="presence-changed"||ne(Se)},y,T)}if(d==="my-presence"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="initialized"&&Se.type!=="presence-changed"||Se.type==="presence-changed"&&Se.value.clientID!==this.changeID.getActorID()||ne(Se)},y,T)}if(d==="others"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="watched"&&Se.type!=="unwatched"&&Se.type!=="presence-changed"||Se.value.clientID!==this.changeID.getActorID()&&ne(Se)},y,T)}if(d==="connection"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type==="connection-changed"&&ne(Se)},y,T)}if(d==="status"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type==="status-changed"&&ne(Se)},y,T)}if(d==="sync"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type==="sync-status-changed"&&ne(Se)},y,T)}if(d==="all"){const ne=p;return this.eventStream.subscribe(ne,y,T)}const $=d,q=p;return this.eventStream.subscribe(ne=>{for(const me of ne){if(me.type!=="local-change"&&me.type!=="remote-change")continue;const Se=[];for(const ze of me.value.operations)this.isSameElementOrChildOf(ze.path,$)&&Se.push(ze);Se.length&&q({...me,value:{...me.value,operations:Se}})}},y,T)}if(typeof d=="function"){const $=d,q=p,ne=y;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="snapshot"&&Se.type!=="local-change"&&Se.type!=="remote-change"||$(Se)},q,ne)}throw new Error(`"${d}" is not a valid`)}publish(d){this.eventStreamObserver&&this.eventStreamObserver.next(d)}isSameElementOrChildOf(d,p){if(p===d)return!0;const y=d.split(".");return p.split(".").every(($,q)=>$===y[q])}applyChangePack(d){for(d.hasSnapshot()?this.applySnapshot(d.getCheckpoint().getServerSeq(),d.getSnapshot()):d.hasChanges()&&this.applyChanges(d.getChanges(),Lr.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>d.getCheckpoint().getClientSeq());)this.localChanges.shift();d.hasSnapshot()&&this.applyChanges(this.localChanges,Lr.Remote),this.checkpoint=this.checkpoint.forward(d.getCheckpoint()),this.garbageCollect(d.getMinSyncedTicket()),d.getIsRemoved()&&this.applyStatus("removed"),Lt.isEnabled(ea.Trivial)&&Lt.trivial(`${this.root.toJSON()}`)}getCheckpoint(){return this.checkpoint}getChangeID(){return this.changeID}hasLocalChanges(){return this.localChanges.length>0}ensureClone(){this.clone||(this.clone={root:this.root.deepcopy(),presences:jl(this.presences)})}createChangePack(){const d=Array.from(this.localChanges),p=this.checkpoint.increaseClientSeq(d.length);return fb.create(this.key,p,!1,d)}setActor(d){for(const p of this.localChanges)p.setActor(d);this.changeID=this.changeID.setActor(d)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const d=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return qS(d,this.clone.root.getObject())}garbageCollect(d){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(d),this.root.garbageCollect(d))}getRootObject(){return this.root.getObject()}getGarbageLen(){return this.root.getGarbageLen()}getGarbageLenFromClone(){return this.clone.root.getGarbageLen()}toJSON(){return this.root.toJSON()}toSortedJSON(){return this.root.toSortedJSON()}toJSForTest(){return{...this.getRoot().toJSForTest(),key:"root"}}applySnapshot(d,p){const{root:y,presences:T}=ha.bytesToSnapshot(p);this.root=new za(y),this.presences=T,this.changeID=this.changeID.syncLamport(d),this.clone=void 0,this.publish([{type:"snapshot",source:Lr.Remote,value:{snapshot:this.isEnableDevtools()?ha.bytesToHex(p):void 0,serverSeq:d.toString()}}])}applyChanges(d,p){Lt.isEnabled(ea.Debug)&&Lt.debug(`trying to apply ${d.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Lt.isEnabled(ea.Trivial)&&Lt.trivial(d.map(y=>`${y.getID().toTestString()} ${y.toTestString()}`).join(` +`));for(const y of d)this.applyChange(y,p);Lt.isEnabled(ea.Debug)&&Lt.debug(`after appling ${d.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(d,p){this.ensureClone(),d.execute(this.clone.root,this.clone.presences,p);const y=[],T=d.getID().getActorID();if(d.hasPresenceChange()&&this.onlineClients.has(T)){const q=d.getPresenceChange();switch(q.type){case Fd.Put:y.push(this.presences.has(T)?{type:"presence-changed",source:p,value:{clientID:T,presence:q.presence}}:{type:"watched",source:Lr.Remote,value:{clientID:T,presence:q.presence}});break;case Fd.Clear:y.push({type:"unwatched",source:Lr.Remote,value:{clientID:T,presence:this.getPresence(T)}}),this.removeOnlineClient(T);break}}const{opInfos:$}=d.execute(this.root,this.presences,p);if(this.changeID=this.changeID.syncLamport(d.getID().getLamport()),$.length>0){const q=this.isEnableDevtools()?d.toStruct():void 0;y.push(p===Lr.Remote?{type:"remote-change",source:p,value:{actor:T,clientSeq:d.getID().getClientSeq(),serverSeq:d.getID().getServerSeq(),message:d.getMessage()||"",operations:$},rawChange:q}:{type:"local-change",source:p,value:{actor:T,clientSeq:d.getID().getClientSeq(),serverSeq:d.getID().getServerSeq(),message:d.getMessage()||"",operations:$},rawChange:q})}y.length>0&&this.publish(y)}applyWatchStream(d){if(d.body.case==="initialization"){const p=d.body.value.clientIds,y=new Set;for(const T of p)T!==this.changeID.getActorID()&&y.add(T);this.setOnlineClients(y),this.publish([{type:"initialized",source:Lr.Local,value:this.getPresences()}]);return}if(d.body.case==="event"){const{type:p,publisher:y}=d.body.value,T=[];if(p===Fl.DOCUMENT_WATCHED)this.addOnlineClient(y),this.hasPresence(y)&&T.push({type:"watched",source:Lr.Remote,value:{clientID:y,presence:this.getPresence(y)}});else if(p===Fl.DOCUMENT_UNWATCHED){const $=this.getPresence(y);this.removeOnlineClient(y),$&&T.push({type:"unwatched",source:Lr.Remote,value:{clientID:y,presence:$}})}T.length>0&&this.publish(T)}}applyStatus(d){this.status=d,d==="detached"&&this.setActor(cb),this.publish([{source:d==="removed"?Lr.Remote:Lr.Local,type:"status-changed",value:d==="attached"?{status:d,actorID:this.changeID.getActorID()}:{status:d}}])}applyDocEvent(d){if(d.type==="status-changed"){this.applyStatus(d.value.status),d.value.status==="attached"&&this.setActor(d.value.actorID);return}if(d.type==="snapshot"){const{snapshot:p,serverSeq:y}=d.value;if(!p)return;this.applySnapshot(Zn.fromString(y),ha.hexToBytes(p));return}if(d.type==="local-change"||d.type==="remote-change"){if(!d.rawChange)return;const p=Ua.fromStruct(d.rawChange);this.applyChange(p,d.source)}if(d.type==="initialized"){const p=new Set;for(const{clientID:y,presence:T}of d.value)p.add(y),this.presences.set(y,T);this.setOnlineClients(p);return}if(d.type==="watched"){const{clientID:p,presence:y}=d.value;this.addOnlineClient(p),this.presences.set(p,y);return}if(d.type==="unwatched"){const{clientID:p}=d.value;this.removeOnlineClient(p),this.presences.delete(p)}if(d.type==="presence-changed"){const{clientID:p,presence:y}=d.value;this.presences.set(p,y)}}applyTransactionEvent(d){for(const p of d)this.applyDocEvent(p)}getValueByPath(d){if(!d.startsWith("$"))throw new zr(xr.ErrInvalidArgument,'path must start with "$"');const p=d.split(".");p.shift();let y=this.getRoot();for(const T of p)if(y=y[T],y===void 0)return;return y}setOnlineClients(d){this.onlineClients=d}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(d){this.onlineClients.add(d)}removeOnlineClient(d){this.onlineClients.delete(d)}hasPresence(d){return this.presences.has(d)}getMyPresence(){if(this.status!=="attached")return{};const d=this.presences.get(this.changeID.getActorID());return d?jl(d):{}}getPresence(d){if(d===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(d))return;const p=this.presences.get(d);return p?jl(p):void 0}getPresenceForTest(d){const p=this.presences.get(d);return p?jl(p):void 0}getPresences(){const d=[];d.push({clientID:this.changeID.getActorID(),presence:jl(this.getMyPresence())});for(const p of this.onlineClients)this.presences.has(p)&&d.push({clientID:p,presence:jl(this.presences.get(p))});return d}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const d=this.getChangeID().getActorID();return this.getPresences().filter(p=>p.clientID!==d).sort((p,y)=>p.clientID>y.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Error("Undo is not allowed during an update");const d=this.internalHistory.popUndo();if(d===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const p=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Se of d){if(!(Se instanceof so)){new ub(p,jl(this.clone.presences.get(this.changeID.getActorID()))).set(Se.value,{addToHistory:!0});continue}const ze=p.issueTimeTicket();Se.setExecutedAt(ze),p.push(Se)}const y=p.getChange();y.execute(this.clone.root,this.clone.presences,Lr.UndoRedo);const{opInfos:T,reverseOps:$}=y.execute(this.root,this.presences,Lr.UndoRedo),q=p.getReversePresence();if(q&&$.push({type:"presence",value:q}),$.length>0&&this.internalHistory.pushRedo($),!y.hasPresenceChange()&&T.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const ne=this.changeID.getActorID(),me=[];T.length>0&&me.push({type:"local-change",source:Lr.UndoRedo,value:{message:y.getMessage()||"",operations:T,actor:ne,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&me.push({type:"presence-changed",source:Lr.UndoRedo,value:{clientID:ne,presence:this.getPresence(ne)}}),this.publish(me)}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const d=this.internalHistory.popRedo();if(d===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const p=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Se of d){if(!(Se instanceof so)){new ub(p,jl(this.clone.presences.get(this.changeID.getActorID()))).set(Se.value,{addToHistory:!0});continue}const ze=p.issueTimeTicket();Se.setExecutedAt(ze),p.push(Se)}const y=p.getChange();y.execute(this.clone.root,this.clone.presences,Lr.UndoRedo);const{opInfos:T,reverseOps:$}=y.execute(this.root,this.presences,Lr.UndoRedo),q=p.getReversePresence();if(q&&$.push({type:"presence",value:q}),$.length>0&&this.internalHistory.pushUndo($),!y.hasPresenceChange()&&T.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const ne=this.changeID.getActorID(),me=[];T.length>0&&me.push({type:"local-change",source:Lr.UndoRedo,value:{message:y.getMessage()||"",operations:T,actor:ne,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&me.push({type:"presence-changed",source:Lr.UndoRedo,value:{clientID:ne,presence:this.getPresence(ne)}}),this.publish(me)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function yD(O,d){return p=>async y=>(O&&y.header.set("x-api-key",O),d&&y.header.set("authorization",d),await p(y))}const KS={name:"yorkie-js-sdk",version:"0.4.27",description:"Yorkie JS SDK",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts",files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:examples":"npm run build --workspace examples","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"npm run build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@buf/googleapis_googleapis.connectrpc_es":"^1.4.0-20240524201209-f0e53af8f2fc.3","@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.4.0","@types/google-protobuf":"^3.15.5","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^4.7.4","typescript-transform-paths":"^3.3.1",vite:"^4.4.9","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.4.0","@connectrpc/connect-web":"^1.4.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"npm run lint"}},workspaces:["examples/*"]};function OD(){return O=>async d=>(d.header.set("x-yorkie-user-agent",KS.name+"/"+KS.version),await O(d))}var Wp=(O=>(O.Manual="manual",O.Realtime="realtime",O.RealtimePushOnly="realtime-pushonly",O.RealtimeSyncOff="realtime-syncoff",O))(Wp||{}),uC=(O=>(O.Deactivated="deactivated",O.Activated="activated",O))(uC||{}),cC=(O=>(O.SyncLoop="SyncLoop",O.WatchLoop="WatchLoop",O))(cC||{});const Lb={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class Yl{constructor(d,p){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"conditions"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),s(this,"taskQueue"),s(this,"processing",!1),p=p||Lb,this.key=p.key?p.key:Kk(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=p.apiKey||"",this.conditions={SyncLoop:!1,WatchLoop:!1},this.syncLoopDuration=p.syncLoopDuration||Lb.syncLoopDuration,this.reconnectStreamDelay=p.reconnectStreamDelay||Lb.reconnectStreamDelay,this.retrySyncLoopDelay=p.retrySyncLoopDelay||Lb.retrySyncLoopDelay,this.rpcClient=T6(G6,mS({baseUrl:d,interceptors:[yD(p.apiKey,p.token),OD()]})),this.taskQueue=[]}activate(){return this.isActive()?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(d=>{this.id=d.clientId,this.status="activated",this.runSyncLoop(),Lt.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(d=>{throw Lt.error(`[AC] c:"${this.getKey()}" err :`,d),this.handleConnectError(d),d}))}deactivate(){return this.status==="deactivated"?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.deactivateInternal(),Lt.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(d=>{throw Lt.error(`[DC] c:"${this.getKey()}" err :`,d),this.handleConnectError(d),d}))}attach(d,p={}){if(!this.isActive())throw new zr(xr.ErrClientNotActivated,`${this.key} is not active`);if(d.getStatus()!==Ya.Detached)throw new zr(xr.ErrDocumentNotDetached,`${d.getKey()} is not detached`);d.setActor(this.id),d.update((T,$)=>$.set(p.initialPresence||{}));const y=p.syncMode??"realtime";return this.enqueueTask(async()=>this.rpcClient.attachDocument({clientId:this.id,changePack:ha.toChangePack(d.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${d.getKey()}`}}).then(async T=>{const $=ha.fromChangePack(T.changePack);return d.applyChangePack($),d.getStatus()===Ya.Removed||(d.applyStatus(Ya.Attached),this.attachmentMap.set(d.getKey(),new Jk(this.reconnectStreamDelay,d,T.documentId,y)),y!=="manual"&&await this.runWatchLoop(d.getKey()),Lt.info(`[AD] c:"${this.getKey()}" attaches d:"${d.getKey()}"`)),d}).catch(T=>{throw Lt.error(`[AD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}detach(d,p={}){if(!this.isActive())throw new zr(xr.ErrClientNotActivated,`${this.key} is not active`);const y=this.attachmentMap.get(d.getKey());if(!y)throw new zr(xr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);return d.update((T,$)=>$.clear()),this.enqueueTask(async()=>this.rpcClient.detachDocument({clientId:this.id,documentId:y.docID,changePack:ha.toChangePack(d.createChangePack()),removeIfNotAttached:p.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${d.getKey()}`}}).then(T=>{const $=ha.fromChangePack(T.changePack);return d.applyChangePack($),d.getStatus()!==Ya.Removed&&d.applyStatus(Ya.Detached),this.detachInternal(d.getKey()),Lt.info(`[DD] c:"${this.getKey()}" detaches d:"${d.getKey()}"`),d}).catch(T=>{throw Lt.error(`[DD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}async changeSyncMode(d,p){if(!this.isActive())throw new zr(xr.ErrClientNotActivated,`${this.key} is not active`);const y=this.attachmentMap.get(d.getKey());if(!y)throw new zr(xr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);const T=y.syncMode;return T===p?d:(y.changeSyncMode(p),p==="manual"?(y.cancelWatchStream(),d):(p==="realtime"&&(y.remoteChangeEventReceived=!0),T==="manual"&&await this.runWatchLoop(d.getKey()),d))}sync(d){if(!this.isActive())throw new zr(xr.ErrClientNotActivated,`${this.key} is not active`);if(d){const p=this.attachmentMap.get(d.getKey());if(!p)throw new zr(xr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);return this.enqueueTask(async()=>this.syncInternal(p,"realtime").catch(y=>{throw Lt.error(`[SY] c:"${this.getKey()}" err :`,y),this.handleConnectError(y),y}))}return this.enqueueTask(async()=>{const p=[];for(const[,y]of this.attachmentMap)p.push(this.syncInternal(y,y.syncMode));return Promise.all(p).catch(y=>{throw Lt.error(`[SY] c:"${this.getKey()}" err :`,y),this.handleConnectError(y),y})})}remove(d){if(!this.isActive())throw new zr(xr.ErrClientNotActivated,`${this.key} is not active`);const p=this.attachmentMap.get(d.getKey());if(!p)throw new zr(xr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);d.setActor(this.id);const y=ha.toChangePack(d.createChangePack());return y.isRemoved=!0,this.enqueueTask(async()=>this.rpcClient.removeDocument({clientId:this.id,documentId:p.docID,changePack:y},{headers:{"x-shard-key":`${this.apiKey}/${d.getKey()}`}}).then(T=>{const $=ha.fromChangePack(T.changePack);d.applyChangePack($),this.detachInternal(d.getKey()),Lt.info(`[RD] c:"${this.getKey()}" removes d:"${d.getKey()}"`)}).catch(T=>{throw Lt.error(`[RD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}getCondition(d){return this.conditions[d]}runSyncLoop(){const d=()=>{if(!this.isActive()){Lt.debug(`[SL] c:"${this.getKey()}" exit sync loop`),this.conditions.SyncLoop=!1;return}const p=[];for(const[,y]of this.attachmentMap)y.needRealtimeSync()&&(y.remoteChangeEventReceived=!1,p.push(this.syncInternal(y,y.syncMode)));Promise.all(p).then(()=>setTimeout(d,this.syncLoopDuration)).catch(y=>{Lt.error(`[SL] c:"${this.getKey()}" sync failed:`,y),this.handleConnectError(y)?setTimeout(d,this.retrySyncLoopDelay):this.conditions.SyncLoop=!1})};Lt.debug(`[SL] c:"${this.getKey()}" run sync loop`),this.conditions.SyncLoop=!0,d()}async runWatchLoop(d){const p=this.attachmentMap.get(d);if(!p)throw new zr(xr.ErrDocumentNotAttached,`${d} is not attached`);return this.conditions.WatchLoop=!0,p.runWatchLoop(y=>{if(!this.isActive())return this.conditions.WatchLoop=!1,Promise.reject(new zr(xr.ErrClientNotActivated,`${this.key} is not active`));const T=new AbortController,$=this.rpcClient.watchDocument({clientId:this.id,documentId:p.docID},{headers:{"x-shard-key":`${this.apiKey}/${d}`},signal:T.signal});return p.doc.publish([{type:ps.ConnectionChanged,value:ag.Connected}]),Lt.info(`[WD] c:"${this.getKey()}" watches d:"${d}"`),new Promise((q,ne)=>{(async()=>{try{for await(const Se of $)this.handleWatchDocumentsResponse(p,Se),Se.body.case==="initialization"&&q([$,T])}catch(Se){p.doc.resetOnlineClients(),p.doc.publish([{type:ps.Initialized,source:Lr.Local,value:p.doc.getPresences()}]),p.doc.publish([{type:ps.ConnectionChanged,value:ag.Disconnected}]),Lt.debug(`[WD] c:"${this.getKey()}" unwatches`),this.handleConnectError(Se)?y():this.conditions.WatchLoop=!1,ne(Se)}})()})})}handleWatchDocumentsResponse(d,p){if(p.body.case==="event"&&p.body.value.type===Fl.DOCUMENT_CHANGED){d.remoteChangeEventReceived=!0;return}d.doc.applyWatchStream(p)}deactivateInternal(){this.status="deactivated";for(const[d,p]of this.attachmentMap)this.detachInternal(d),p.doc.applyStatus(Ya.Detached)}detachInternal(d){const p=this.attachmentMap.get(d);p&&(p.cancelWatchStream(),this.attachmentMap.delete(d))}syncInternal(d,p){const{doc:y,docID:T}=d,$=y.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:T,changePack:ha.toChangePack($),pushOnly:p==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${y.getKey()}`}}).then(q=>{const ne=ha.fromChangePack(q.changePack);if(ne.hasChanges()&&(d.syncMode==="realtime-pushonly"||d.syncMode==="realtime-syncoff"))return y;y.applyChangePack(ne),d.doc.publish([{type:ps.SyncStatusChanged,value:Pb.Synced}]),y.getStatus()===Ya.Removed&&this.detachInternal(y.getKey());const me=y.getKey(),Se=ne.getChangeSize();return Lt.info(`[PP] c:"${this.getKey()}" sync d:"${me}", push:${$.getChangeSize()} pull:${Se} cp:${ne.getCheckpoint().toTestString()}`),y}).catch(q=>{throw y.publish([{type:ps.SyncStatusChanged,value:Pb.SyncFailed}]),Lt.error(`[PP] c:"${this.getKey()}" err :`,q),q})}handleConnectError(d){return d instanceof u?d.code===o.Canceled||d.code===o.Unknown||d.code===o.ResourceExhausted||d.code===o.Unavailable?!0:((BS(d)===xr.ErrClientNotActivated||BS(d)===xr.ErrClientNotFound)&&this.deactivateInternal(),!1):!1}enqueueTask(d){return new Promise((p,y)=>{this.taskQueue.push(()=>d().then(p).catch(y)),this.processing||this.processNext()})}async processNext(){if(this.taskQueue.length===0){this.processing=!1;return}try{this.processing=!0,await this.taskQueue.shift()()}catch{Lt.error(`[TQ] c:"${this.getKey()}" process failed, id:"${this.id}"`)}this.processNext()}}const Ms=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JS={Client:Yl,Document:Mb,Primitive:Ti,Text:Bp,Counter:ig,Tree:jp,LogLevel:ea,setLogLevel:IS,IntType:Ql.IntegerCnt,LongType:Ql.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:Yl,Document:Mb,Primitive:Ti,Text:Bp,Counter:ig,Tree:jp,LogLevel:ea,setLogLevel:IS,IntType:Ql.IntegerCnt,LongType:Ql.LongCnt}),r.Change=Ua,r.Client=Yl,r.ClientCondition=cC,r.ClientStatus=uC,r.Counter=ig,r.Devtools=Ms,r.DocEventType=ps,r.Document=Mb,r.DocumentStatus=Ya,r.DocumentSyncStatus=Pb,r.EventSourceDevPanel=nC,r.EventSourceSDK=GS,r.LogLevel=ea,r.OpSource=Lr,r.Primitive=Ti,r.StreamConnectionStatus=ag,r.SyncMode=Wp,r.Text=Bp,r.TimeTicket=Ta,r.Tree=jp,r.converter=ha,r.default=JS,r.setLogLevel=IS,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(hL,hL.exports);var U3=hL.exports;class CZe{constructor(t,n){Ls(this,"doc");Ls(this,"client");this.doc=t,this.client=n}}const $B=Sn.define({combine(e){return e[e.length-1]}});Cd.define();class AZe{constructor(t){Ls(this,"view");Ls(this,"conf");Ls(this,"_doc");this.view=t,this.conf=t.state.facet($B),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[xs.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new U3.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[xs.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation(xs.remote))continue;let i=0;this._doc.update(a=>{n.changes.iterChanges((s,o,l,u,c)=>{const f=c.toJSON().join(` +`);a.content.edit(s+i,o+i,f),i+=f.length-(o-s)})})}}}const _Ze=ua.fromClass(AZe);class RZe{constructor(t,n){this.left=t,this.right=n}}const Fg=(e,t)=>new RZe(e,t),IZe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Yf=typeof document<"u"?document:{},DZe=e=>Yf.createElement(e),NZe=()=>Yf.createDocumentFragment(),PZe=e=>Yf.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const MZe=(e,t)=>(IZe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),LZe=e=>{const t=NZe();for(let n=0;n(ipe(e,LZe(t)),e),j4=(e,t=[],n=[])=>$Ze(MZe(DZe(e),t),n),wA=PZe,ipe=(e,t)=>e.appendChild(t);Yf.ELEMENT_NODE;Yf.TEXT_NODE;Yf.CDATA_SECTION_NODE;Yf.COMMENT_NODE;Yf.DOCUMENT_NODE;Yf.DOCUMENT_TYPE_NODE;Yf.DOCUMENT_FRAGMENT_NODE;var z3={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */F3.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,h=2,g=4,b=1,S=2,E=1,w=2,x=4,k=8,C=16,R=32,A=64,D=128,B=256,L=512,F=30,W="...",V=800,Z=16,Q=1,H=2,J=3,K=1/0,X=9007199254740991,te=17976931348623157e292,z=NaN,Te=4294967295,be=Te-1,ee=Te>>>1,ye=[["ary",D],["bind",E],["bindKey",w],["curry",k],["curryRight",C],["flip",L],["partial",R],["partialRight",A],["rearg",B]],Oe="[object Arguments]",ie="[object Array]",_e="[object AsyncFunction]",Ie="[object Boolean]",qe="[object Date]",st="[object DOMException]",Pe="[object Error]",tt="[object Function]",Ve="[object GeneratorFunction]",Xe="[object Map]",et="[object Number]",dt="[object Null]",At="[object Object]",Je="[object Promise]",pe="[object Proxy]",le="[object RegExp]",he="[object Set]",je="[object String]",Ze="[object Symbol]",We="[object Undefined]",fe="[object WeakMap]",xe="[object WeakSet]",ve="[object ArrayBuffer]",De="[object DataView]",$e="[object Float32Array]",vt="[object Float64Array]",Wt="[object Int8Array]",Kt="[object Int16Array]",gt="[object Int32Array]",Gt="[object Uint8Array]",ut="[object Uint8ClampedArray]",wt="[object Uint16Array]",Xt="[object Uint32Array]",Ln=/\b__p \+= '';/g,$n=/\b(__p \+=) '' \+/g,jn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ar=/&(?:amp|lt|gt|quot|#39);/g,Ur=/[&<>"']/g,Me=RegExp(ar.source),Ue=RegExp(Ur.source),lt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,Qt=/<%=([\s\S]+?)%>/g,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yn=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yt=/[\\^$.*+?()[\]{}|]/g,xn=RegExp(Yt.source),Qe=/^\s+/,Ye=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yt=/\{\n\/\* \[wrapped with (.+)\] \*/,Yn=/,? & /,pn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fn=/[()=,{}\[\]\/\s]/,Pi=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Be=/\w*$/,Dt=/^[-+]0x[0-9a-f]+$/i,en=/^0b[01]+$/i,Vn=/^\[object .+?Constructor\]$/,Zr=/^0o[0-7]+$/i,Er=/^(?:0|[1-9]\d*)$/,In=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wn=/($^)/,ti=/['\n\r\u2028\u2029\\]/g,qa="\\ud800-\\udfff",Fc="\\u0300-\\u036f",kp="\\ufe20-\\ufe2f",H1="\\u20d0-\\u20ff",V1=Fc+kp+H1,W1="\\u2700-\\u27bf",Q1="a-z\\xdf-\\xf6\\xf8-\\xff",rt="\\xac\\xb1\\xd7\\xf7",Rs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",uk="\\u2000-\\u206f",ds=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lu="A-Z\\xc0-\\xd6\\xd8-\\xde",Nl="\\ufe0e\\ufe0f",Pl=rt+Rs+uk+ds,el="['’]",$u="["+qa+"]",Ml="["+Pl+"]",ko="["+V1+"]",Ll="\\d+",Fu="["+W1+"]",to="["+Q1+"]",$l="[^"+qa+Pl+Ll+W1+Q1+Lu+"]",aS="\\ud83c[\\udffb-\\udfff]",S6="(?:"+ko+"|"+aS+")",sS="[^"+qa+"]",q1="(?:\\ud83c[\\udde6-\\uddff]){2}",oS="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+Lu+"]",ck="\\u200d",dk="(?:"+to+"|"+$l+")",E6="(?:"+Bu+"|"+$l+")",lS="(?:"+el+"(?:d|ll|m|re|s|t|ve))?",ih="(?:"+el+"(?:D|LL|M|RE|S|T|VE))?",fk=S6+"?",hk="["+Nl+"]?",w6="(?:"+ck+"(?:"+[sS,q1,oS].join("|")+")"+hk+fk+")*",x6="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",T6="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pk=hk+fk+w6,k6="(?:"+[Fu,q1,oS].join("|")+")"+pk,mk="(?:"+[sS+ko+"?",ko,q1,oS,$u].join("|")+")",C6=RegExp(el,"g"),A6=RegExp(ko,"g"),G1=RegExp(aS+"(?="+aS+")|"+mk+pk,"g"),gk=RegExp([Bu+"?"+to+"+"+lS+"(?="+[Ml,Bu,"$"].join("|")+")",E6+"+"+ih+"(?="+[Ml,Bu+dk,"$"].join("|")+")",Bu+"?"+dk+"+"+lS,Bu+"+"+ih,T6,x6,Ll,k6].join("|"),"g"),uS=RegExp("["+ck+qa+V1+Nl+"]"),bk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_6=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],R6=-1,gi={};gi[$e]=gi[vt]=gi[Wt]=gi[Kt]=gi[gt]=gi[Gt]=gi[ut]=gi[wt]=gi[Xt]=!0,gi[Oe]=gi[ie]=gi[ve]=gi[Ie]=gi[De]=gi[qe]=gi[Pe]=gi[tt]=gi[Xe]=gi[et]=gi[At]=gi[le]=gi[he]=gi[je]=gi[fe]=!1;var di={};di[Oe]=di[ie]=di[ve]=di[De]=di[Ie]=di[qe]=di[$e]=di[vt]=di[Wt]=di[Kt]=di[gt]=di[Xe]=di[et]=di[At]=di[le]=di[he]=di[je]=di[Ze]=di[Gt]=di[ut]=di[wt]=di[Xt]=!0,di[Pe]=di[tt]=di[fe]=!1;var I6={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},D6={"&":"&","<":"<",">":">",'"':""","'":"'"},N6={"&":"&","<":"<",">":">",""":'"',"'":"'"},P6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},M6=parseFloat,L6=parseInt,Uu=typeof mf=="object"&&mf&&mf.Object===Object&&mf,$6=typeof self=="object"&&self&&self.Object===Object&&self,Ba=Uu||$6||Function("return this")(),Y1=t&&!t.nodeType&&t,Ld=Y1&&!0&&e&&!e.nodeType&&e,yk=Ld&&Ld.exports===Y1,Z1=yk&&Uu.process,tl=function(){try{var He=Ld&&Ld.require&&Ld.require("util").types;return He||Z1&&Z1.binding&&Z1.binding("util")}catch{}}(),cS=tl&&tl.isArrayBuffer,dS=tl&&tl.isDate,fS=tl&&tl.isMap,vk=tl&&tl.isRegExp,Ok=tl&&tl.isSet,hS=tl&&tl.isTypedArray;function Co(He,bt,ct){switch(ct.length){case 0:return He.call(bt);case 1:return He.call(bt,ct[0]);case 2:return He.call(bt,ct[0],ct[1]);case 3:return He.call(bt,ct[0],ct[1],ct[2])}return He.apply(bt,ct)}function Sk(He,bt,ct,mn){for(var nr=-1,Qr=He==null?0:He.length;++nr-1}function mS(He,bt,ct){for(var mn=-1,nr=He==null?0:He.length;++mn-1;);return ct}function ib(He,bt){for(var ct=He.length;ct--&&ah(bt,He[ct],0)>-1;);return ct}function ab(He,bt){for(var ct=He.length,mn=0;ct--;)He[ct]===bt&&++mn;return mn}var kk=tb(I6),wS=tb(D6);function xS(He){return"\\"+P6[He]}function Ck(He,bt){return He==null?n:He[bt]}function Bl(He){return uS.test(He)}function M0(He){return bk.test(He)}function B6(He){for(var bt,ct=[];!(bt=He.next()).done;)ct.push(bt.value);return ct}function L0(He){var bt=-1,ct=Array(He.size);return He.forEach(function(mn,nr){ct[++bt]=[nr,mn]}),ct}function Ap(He,bt){return function(ct){return He(bt(ct))}}function zu(He,bt){for(var ct=-1,mn=He.length,nr=0,Qr=[];++ct-1}function Y0(m,v){var _=this.__data__,j=Pp(_,m);return j<0?(++this.size,_.push([m,v])):_[j][1]=v,this}Ds.prototype.clear=jc,Ds.prototype.delete=q0,Ds.prototype.get=il,Ds.prototype.has=G0,Ds.prototype.set=Y0;function Hc(m){var v=-1,_=m==null?0:m.length;for(this.clear();++v<_;){var j=m[v];this.set(j[0],j[1])}}function Y6(){this.size=0,this.__data__={hash:new Vl,map:new(Ta||Ds),string:new Vl}}function Vc(m){var v=XS(this,m).delete(m);return this.size-=v?1:0,v}function Z0(m){return XS(this,m).get(m)}function Z6(m){return XS(this,m).has(m)}function X6(m,v){var _=XS(this,m),j=_.size;return _.set(m,v),this.size+=_.size==j?0:1,this}Hc.prototype.clear=Y6,Hc.prototype.delete=Vc,Hc.prototype.get=Z0,Hc.prototype.has=Z6,Hc.prototype.set=X6;function bi(m){var v=-1,_=m==null?0:m.length;for(this.__data__=new Hc;++v<_;)this.add(m[v])}function Rk(m){return this.__data__.set(m,l),this}function Ik(m){return this.__data__.has(m)}bi.prototype.add=bi.prototype.push=Rk,bi.prototype.has=Ik;function oo(m){var v=this.__data__=new Ds(m);this.size=v.size}function DS(){this.__data__=new Ds,this.size=0}function Dk(m){var v=this.__data__,_=v.delete(m);return this.size=v.size,_}function K6(m){return this.__data__.get(m)}function J6(m){return this.__data__.has(m)}function eD(m,v){var _=this.__data__;if(_ instanceof Ds){var j=_.__data__;if(!Ta||j.length=v?m:v)),m}function Ua(m,v,_,j,re,ce){var ke,Ne=v&f,Ge=v&h,xt=v&g;if(_&&(ke=re?_(m,j,re,ce):_(m)),ke!==n)return ke;if(!ta(m))return m;var Tt=sr(m);if(Tt){if(ke=yD(m),!Ne)return za(m,ke)}else{var Rt=Ns(m),an=Rt==tt||Rt==Ve;if(Qp(m))return Cb(m,Ne);if(Rt==At||Rt==Oe||an&&!re){if(ke=Ge||an?{}:Vp(m),!Ne)return Ge?mD(m,al(ke,m)):rg(m,PS(ke,m))}else{if(!di[Rt])return re?m:{};ke=lC(m,Rt,Ne)}}ce||(ce=new oo);var _n=ce.get(m);if(_n)return _n;ce.set(m,ke),Aq(m)?m.forEach(function(Kn){ke.add(Ua(Kn,v,_,Kn,m,ce))}):kq(m)&&m.forEach(function(Kn,Ar){ke.set(Ar,Ua(Kn,v,_,Ar,m,ce))});var Xn=xt?Ge?iC:rC:Ge?ll:ms,vr=Tt?n:Xn(m);return Ao(vr||m,function(Kn,Ar){vr&&(Ar=Kn,Kn=m[Ar]),Ga(ke,Ar,Ua(Kn,v,_,Ar,m,ce))}),ke}function fb(m){var v=ms(m);return function(_){return ph(_,m,v)}}function ph(m,v,_){var j=_.length;if(m==null)return!j;for(m=fi(m);j--;){var re=_[j],ce=v[re],ke=m[re];if(ke===n&&!(re in m)||!ce(ke))return!1}return!0}function Lk(m,v,_){if(typeof m!="function")throw new Mi(s);return kn(function(){m.apply(n,_)},v)}function lo(m,v,_,j){var re=-1,ce=X1,ke=!0,Ne=m.length,Ge=[],xt=v.length;if(!Ne)return Ge;_&&(v=vn(v,io(_))),j?(ce=mS,ke=!1):v.length>=i&&(ce=Cp,ke=!1,v=new bi(v));e:for(;++rere?0:re+_),j=j===n||j>re?re:pr(j),j<0&&(j+=re),j=_>j?0:Rq(j);_0&&_(Ne)?v>1?ni(Ne,v-1,_,j,re):Fl(re,Ne):j||(re[re.length]=Ne)}return re}var Vd=Fp(),Wu=Fp(!0);function Qu(m,v){return m&&Vd(m,v,ms)}function MS(m,v){return m&&Wu(m,v,ms)}function hb(m,v){return no(v,function(_){return yh(m[_])})}function Wd(m,v){v=Gd(v,m);for(var _=0,j=v.length;m!=null&&_v}function LS(m,v){return m!=null&&kr.call(m,v)}function tD(m,v){return m!=null&&v in fi(m)}function mb(m,v,_){return m>=Ji(v,_)&&m=120&&Tt.length>=120)?new bi(ke&&Tt):n}Tt=m[0];var Rt=-1,an=Ne[0];e:for(;++Rt-1;)Ne!==m&&zc.call(Ne,Ge,1),zc.call(m,Ge,1);return m}function tg(m,v){for(var _=m?v.length:0,j=_-1;_--;){var re=v[_];if(_==j||re!==ce){var ce=re;Yl(re)?zc.call(m,re,1):wb(m,re)}}return m}function Ob(m,v){return m+lb(ub()*(v-m+1))}function uD(m,v,_,j){for(var re=-1,ce=fa(ob((v-m)/(_||1)),0),ke=ct(ce);ce--;)ke[j?ce:++re]=m,m+=_;return ke}function Qd(m,v){var _="";if(!m||v<1||v>X)return _;do v%2&&(_+=m),v=lb(v/2),v&&(m+=m);while(v);return _}function ir(m,v){return hr(Ct(m,v,ul),m+"")}function cD(m){return Pk(Fb(m))}function Wk(m,v){var _=Fb(m);return qr(_,hh(v,0,_.length))}function ng(m,v,_,j){if(!ta(m))return m;v=Gd(v,m);for(var re=-1,ce=v.length,ke=ce-1,Ne=m;Ne!=null&&++rere?0:re+v),_=_>re?re:_,_<0&&(_+=re),re=v>_?0:_-v>>>0,v>>>=0;for(var ce=ct(re);++j>>1,ke=m[ce];ke!==null&&!Zl(ke)&&(_?ke<=v:ke=i){var xt=v?null:Nb(m);if(xt)return $0(xt);ke=!1,re=Cp,Ge=new bi}else Ge=v?[]:Ne;e:for(;++j=j?m:No(m,v,_)}var WS=ao||function(m){return Ba.clearTimeout(m)};function Cb(m,v){if(v)return m.slice();var _=m.length,j=CS?CS(_):new m.constructor(_);return m.copy(j),j}function QS(m){var v=new m.constructor(m.byteLength);return new U0(v).set(new U0(m)),v}function hD(m,v){var _=v?QS(m.buffer):m.buffer;return new m.constructor(_,m.byteOffset,m.byteLength)}function ha(m){var v=new m.constructor(m.source,Be.exec(m));return v.lastIndex=m.lastIndex,v}function Xk(m){return dh?fi(dh.call(m)):{}}function Kk(m,v){var _=v?QS(m.buffer):m.buffer;return new m.constructor(_,m.byteOffset,m.length)}function Ab(m,v){if(m!==v){var _=m!==n,j=m===null,re=m===m,ce=Zl(m),ke=v!==n,Ne=v===null,Ge=v===v,xt=Zl(v);if(!Ne&&!xt&&!ce&&m>v||ce&&ke&&Ge&&!Ne&&!xt||j&&ke&&Ge||!_&&Ge||!re)return 1;if(!j&&!ce&&!xt&&m=Ne)return Ge;var xt=_[j];return Ge*(xt=="desc"?-1:1)}}return m.index-v.index}function Jk(m,v,_,j){for(var re=-1,ce=m.length,ke=_.length,Ne=-1,Ge=v.length,xt=fa(ce-ke,0),Tt=ct(Ge+xt),Rt=!j;++Ne1?_[re-1]:n,ke=re>2?_[2]:n;for(ce=m.length>3&&typeof ce=="function"?(re--,ce):n,ke&&Ps(_[0],_[1],ke)&&(ce=re<3?n:ce,re=1),v=fi(v);++j-1?re[ce?v[ke]:ke]:n}}function qS(m){return Zd(function(v){var _=v.length,j=_,re=Ro.prototype.thru;for(m&&v.reverse();j--;){var ce=v[j];if(typeof ce!="function")throw new Mi(s);if(re&&!ke&&ZS(ce)=="wrapper")var ke=new Ro([],!0)}for(j=ke?j:_;++j<_;){ce=v[j];var Ne=ZS(ce),Ge=Ne=="wrapper"?aC(ce):n;Ge&&d(Ge[0])&&Ge[1]==(D|k|R|B)&&!Ge[4].length&&Ge[9]==1?ke=ke[ZS(Ge[0])].apply(ke,Ge[3]):ke=ce.length==1&&d(ce)?ke[Ne]():ke.thru(ce)}return function(){var xt=arguments,Tt=xt[0];if(ke&&xt.length==1&&sr(Tt))return ke.plant(Tt).value();for(var Rt=0,an=_?v[Rt].apply(this,xt):Tt;++Rt<_;)an=v[Rt].call(this,an);return an}})}function Gl(m,v,_,j,re,ce,ke,Ne,Ge,xt){var Tt=v&D,Rt=v&E,an=v&w,_n=v&(k|C),Xn=v&L,vr=an?n:Up(m);function Kn(){for(var Ar=arguments.length,Fr=ct(Ar),Xl=Ar;Xl--;)Fr[Xl]=arguments[Xl];if(_n)var Lo=sg(Kn),Kl=ab(Fr,Lo);if(j&&(Fr=Jk(Fr,j,re,_n)),ce&&(Fr=mh(Fr,ce,ke,_n)),Ar-=Kl,_n&&Ar1&&Fr.reverse(),Tt&&GeNe))return!1;var xt=ce.get(m),Tt=ce.get(v);if(xt&&Tt)return xt==v&&Tt==m;var Rt=-1,an=!0,_n=_&S?new bi:n;for(ce.set(m,v),ce.set(v,m);++Rt1?"& ":"")+v[j],v=v.join(_>2?", ":" "),m.replace(ot,`{ + */z3.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,h=2,g=4,b=1,S=2,w=1,E=2,x=4,k=8,C=16,R=32,A=64,D=128,B=256,L=512,F=30,W="...",V=800,Z=16,Q=1,H=2,J=3,K=1/0,X=9007199254740991,te=17976931348623157e292,z=NaN,Te=4294967295,be=Te-1,ee=Te>>>1,ye=[["ary",D],["bind",w],["bindKey",E],["curry",k],["curryRight",C],["flip",L],["partial",R],["partialRight",A],["rearg",B]],Oe="[object Arguments]",ie="[object Array]",_e="[object AsyncFunction]",Ie="[object Boolean]",qe="[object Date]",st="[object DOMException]",Pe="[object Error]",tt="[object Function]",Ve="[object GeneratorFunction]",Xe="[object Map]",et="[object Number]",ft="[object Null]",At="[object Object]",Je="[object Promise]",pe="[object Proxy]",le="[object RegExp]",he="[object Set]",je="[object String]",Ze="[object Symbol]",We="[object Undefined]",fe="[object WeakMap]",xe="[object WeakSet]",ve="[object ArrayBuffer]",De="[object DataView]",$e="[object Float32Array]",vt="[object Float64Array]",Wt="[object Int8Array]",Kt="[object Int16Array]",gt="[object Int32Array]",Gt="[object Uint8Array]",ut="[object Uint8ClampedArray]",wt="[object Uint16Array]",Xt="[object Uint32Array]",Ln=/\b__p \+= '';/g,$n=/\b(__p \+=) '' \+/g,jn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ar=/&(?:amp|lt|gt|quot|#39);/g,Ur=/[&<>"']/g,Me=RegExp(ar.source),Ue=RegExp(Ur.source),lt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,Qt=/<%=([\s\S]+?)%>/g,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yn=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yt=/[\\^$.*+?()[\]{}|]/g,xn=RegExp(Yt.source),Qe=/^\s+/,Ye=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yt=/\{\n\/\* \[wrapped with (.+)\] \*/,Yn=/,? & /,pn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fn=/[()=,{}\[\]\/\s]/,Pi=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Be=/\w*$/,Dt=/^[-+]0x[0-9a-f]+$/i,en=/^0b[01]+$/i,Vn=/^\[object .+?Constructor\]$/,Zr=/^0o[0-7]+$/i,wr=/^(?:0|[1-9]\d*)$/,In=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wn=/($^)/,ti=/['\n\r\u2028\u2029\\]/g,qa="\\ud800-\\udfff",Bc="\\u0300-\\u036f",Cp="\\ufe20-\\ufe2f",H1="\\u20d0-\\u20ff",V1=Bc+Cp+H1,W1="\\u2700-\\u27bf",Q1="a-z\\xdf-\\xf6\\xf8-\\xff",rt="\\xac\\xb1\\xd7\\xf7",Is="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ck="\\u2000-\\u206f",ds=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lu="A-Z\\xc0-\\xd6\\xd8-\\xde",Nl="\\ufe0e\\ufe0f",Pl=rt+Is+ck+ds,el="['’]",$u="["+qa+"]",Ml="["+Pl+"]",ko="["+V1+"]",Ll="\\d+",Fu="["+W1+"]",to="["+Q1+"]",$l="[^"+qa+Pl+Ll+W1+Q1+Lu+"]",aS="\\ud83c[\\udffb-\\udfff]",w6="(?:"+ko+"|"+aS+")",sS="[^"+qa+"]",q1="(?:\\ud83c[\\udde6-\\uddff]){2}",oS="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+Lu+"]",dk="\\u200d",fk="(?:"+to+"|"+$l+")",x6="(?:"+Bu+"|"+$l+")",lS="(?:"+el+"(?:d|ll|m|re|s|t|ve))?",ih="(?:"+el+"(?:D|LL|M|RE|S|T|VE))?",hk=w6+"?",pk="["+Nl+"]?",T6="(?:"+dk+"(?:"+[sS,q1,oS].join("|")+")"+pk+hk+")*",k6="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",C6="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mk=pk+hk+T6,A6="(?:"+[Fu,q1,oS].join("|")+")"+mk,gk="(?:"+[sS+ko+"?",ko,q1,oS,$u].join("|")+")",_6=RegExp(el,"g"),R6=RegExp(ko,"g"),G1=RegExp(aS+"(?="+aS+")|"+gk+mk,"g"),bk=RegExp([Bu+"?"+to+"+"+lS+"(?="+[Ml,Bu,"$"].join("|")+")",x6+"+"+ih+"(?="+[Ml,Bu+fk,"$"].join("|")+")",Bu+"?"+fk+"+"+lS,Bu+"+"+ih,C6,k6,Ll,A6].join("|"),"g"),uS=RegExp("["+dk+qa+V1+Nl+"]"),yk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,I6=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],D6=-1,gi={};gi[$e]=gi[vt]=gi[Wt]=gi[Kt]=gi[gt]=gi[Gt]=gi[ut]=gi[wt]=gi[Xt]=!0,gi[Oe]=gi[ie]=gi[ve]=gi[Ie]=gi[De]=gi[qe]=gi[Pe]=gi[tt]=gi[Xe]=gi[et]=gi[At]=gi[le]=gi[he]=gi[je]=gi[fe]=!1;var di={};di[Oe]=di[ie]=di[ve]=di[De]=di[Ie]=di[qe]=di[$e]=di[vt]=di[Wt]=di[Kt]=di[gt]=di[Xe]=di[et]=di[At]=di[le]=di[he]=di[je]=di[Ze]=di[Gt]=di[ut]=di[wt]=di[Xt]=!0,di[Pe]=di[tt]=di[fe]=!1;var N6={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},P6={"&":"&","<":"<",">":">",'"':""","'":"'"},M6={"&":"&","<":"<",">":">",""":'"',"'":"'"},L6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$6=parseFloat,F6=parseInt,Uu=typeof mf=="object"&&mf&&mf.Object===Object&&mf,B6=typeof self=="object"&&self&&self.Object===Object&&self,Ba=Uu||B6||Function("return this")(),Y1=t&&!t.nodeType&&t,Ld=Y1&&!0&&e&&!e.nodeType&&e,vk=Ld&&Ld.exports===Y1,Z1=vk&&Uu.process,tl=function(){try{var He=Ld&&Ld.require&&Ld.require("util").types;return He||Z1&&Z1.binding&&Z1.binding("util")}catch{}}(),cS=tl&&tl.isArrayBuffer,dS=tl&&tl.isDate,fS=tl&&tl.isMap,Ok=tl&&tl.isRegExp,Sk=tl&&tl.isSet,hS=tl&&tl.isTypedArray;function Co(He,bt,ct){switch(ct.length){case 0:return He.call(bt);case 1:return He.call(bt,ct[0]);case 2:return He.call(bt,ct[0],ct[1]);case 3:return He.call(bt,ct[0],ct[1],ct[2])}return He.apply(bt,ct)}function Ek(He,bt,ct,mn){for(var nr=-1,Qr=He==null?0:He.length;++nr-1}function mS(He,bt,ct){for(var mn=-1,nr=He==null?0:He.length;++mn-1;);return ct}function ib(He,bt){for(var ct=He.length;ct--&&ah(bt,He[ct],0)>-1;);return ct}function ab(He,bt){for(var ct=He.length,mn=0;ct--;)He[ct]===bt&&++mn;return mn}var Ck=tb(N6),wS=tb(P6);function xS(He){return"\\"+L6[He]}function Ak(He,bt){return He==null?n:He[bt]}function Bl(He){return uS.test(He)}function M0(He){return yk.test(He)}function z6(He){for(var bt,ct=[];!(bt=He.next()).done;)ct.push(bt.value);return ct}function L0(He){var bt=-1,ct=Array(He.size);return He.forEach(function(mn,nr){ct[++bt]=[nr,mn]}),ct}function _p(He,bt){return function(ct){return He(bt(ct))}}function zu(He,bt){for(var ct=-1,mn=He.length,nr=0,Qr=[];++ct-1}function Y0(m,v){var _=this.__data__,j=Mp(_,m);return j<0?(++this.size,_.push([m,v])):_[j][1]=v,this}Ns.prototype.clear=Hc,Ns.prototype.delete=q0,Ns.prototype.get=il,Ns.prototype.has=G0,Ns.prototype.set=Y0;function Vc(m){var v=-1,_=m==null?0:m.length;for(this.clear();++v<_;){var j=m[v];this.set(j[0],j[1])}}function X6(){this.size=0,this.__data__={hash:new Vl,map:new(Ta||Ns),string:new Vl}}function Wc(m){var v=XS(this,m).delete(m);return this.size-=v?1:0,v}function Z0(m){return XS(this,m).get(m)}function K6(m){return XS(this,m).has(m)}function J6(m,v){var _=XS(this,m),j=_.size;return _.set(m,v),this.size+=_.size==j?0:1,this}Vc.prototype.clear=X6,Vc.prototype.delete=Wc,Vc.prototype.get=Z0,Vc.prototype.has=K6,Vc.prototype.set=J6;function bi(m){var v=-1,_=m==null?0:m.length;for(this.__data__=new Vc;++v<_;)this.add(m[v])}function Ik(m){return this.__data__.set(m,l),this}function Dk(m){return this.__data__.has(m)}bi.prototype.add=bi.prototype.push=Ik,bi.prototype.has=Dk;function oo(m){var v=this.__data__=new Ns(m);this.size=v.size}function DS(){this.__data__=new Ns,this.size=0}function Nk(m){var v=this.__data__,_=v.delete(m);return this.size=v.size,_}function eD(m){return this.__data__.get(m)}function tD(m){return this.__data__.has(m)}function nD(m,v){var _=this.__data__;if(_ instanceof Ns){var j=_.__data__;if(!Ta||j.length=v?m:v)),m}function Ua(m,v,_,j,re,ce){var ke,Ne=v&f,Ge=v&h,xt=v&g;if(_&&(ke=re?_(m,j,re,ce):_(m)),ke!==n)return ke;if(!ta(m))return m;var Tt=sr(m);if(Tt){if(ke=OD(m),!Ne)return za(m,ke)}else{var Rt=Ps(m),an=Rt==tt||Rt==Ve;if(qp(m))return Cb(m,Ne);if(Rt==At||Rt==Oe||an&&!re){if(ke=Ge||an?{}:Wp(m),!Ne)return Ge?bD(m,al(ke,m)):rg(m,PS(ke,m))}else{if(!di[Rt])return re?m:{};ke=uC(m,Rt,Ne)}}ce||(ce=new oo);var _n=ce.get(m);if(_n)return _n;ce.set(m,ke),_q(m)?m.forEach(function(Kn){ke.add(Ua(Kn,v,_,Kn,m,ce))}):Cq(m)&&m.forEach(function(Kn,Ar){ke.set(Ar,Ua(Kn,v,_,Ar,m,ce))});var Xn=xt?Ge?aC:iC:Ge?ll:ms,vr=Tt?n:Xn(m);return Ao(vr||m,function(Kn,Ar){vr&&(Ar=Kn,Kn=m[Ar]),Ga(ke,Ar,Ua(Kn,v,_,Ar,m,ce))}),ke}function fb(m){var v=ms(m);return function(_){return ph(_,m,v)}}function ph(m,v,_){var j=_.length;if(m==null)return!j;for(m=fi(m);j--;){var re=_[j],ce=v[re],ke=m[re];if(ke===n&&!(re in m)||!ce(ke))return!1}return!0}function $k(m,v,_){if(typeof m!="function")throw new Mi(s);return kn(function(){m.apply(n,_)},v)}function lo(m,v,_,j){var re=-1,ce=X1,ke=!0,Ne=m.length,Ge=[],xt=v.length;if(!Ne)return Ge;_&&(v=vn(v,io(_))),j?(ce=mS,ke=!1):v.length>=i&&(ce=Ap,ke=!1,v=new bi(v));e:for(;++rere?0:re+_),j=j===n||j>re?re:pr(j),j<0&&(j+=re),j=_>j?0:Iq(j);_0&&_(Ne)?v>1?ni(Ne,v-1,_,j,re):Fl(re,Ne):j||(re[re.length]=Ne)}return re}var Vd=Bp(),Wu=Bp(!0);function Qu(m,v){return m&&Vd(m,v,ms)}function MS(m,v){return m&&Wu(m,v,ms)}function hb(m,v){return no(v,function(_){return yh(m[_])})}function Wd(m,v){v=Gd(v,m);for(var _=0,j=v.length;m!=null&&_v}function LS(m,v){return m!=null&&kr.call(m,v)}function rD(m,v){return m!=null&&v in fi(m)}function mb(m,v,_){return m>=Ji(v,_)&&m=120&&Tt.length>=120)?new bi(ke&&Tt):n}Tt=m[0];var Rt=-1,an=Ne[0];e:for(;++Rt-1;)Ne!==m&&jc.call(Ne,Ge,1),jc.call(m,Ge,1);return m}function tg(m,v){for(var _=m?v.length:0,j=_-1;_--;){var re=v[_];if(_==j||re!==ce){var ce=re;Yl(re)?jc.call(m,re,1):wb(m,re)}}return m}function Ob(m,v){return m+lb(ub()*(v-m+1))}function dD(m,v,_,j){for(var re=-1,ce=fa(ob((v-m)/(_||1)),0),ke=ct(ce);ce--;)ke[j?ce:++re]=m,m+=_;return ke}function Qd(m,v){var _="";if(!m||v<1||v>X)return _;do v%2&&(_+=m),v=lb(v/2),v&&(m+=m);while(v);return _}function ir(m,v){return hr(Ct(m,v,ul),m+"")}function fD(m){return Mk(Fb(m))}function Qk(m,v){var _=Fb(m);return qr(_,hh(v,0,_.length))}function ng(m,v,_,j){if(!ta(m))return m;v=Gd(v,m);for(var re=-1,ce=v.length,ke=ce-1,Ne=m;Ne!=null&&++rere?0:re+v),_=_>re?re:_,_<0&&(_+=re),re=v>_?0:_-v>>>0,v>>>=0;for(var ce=ct(re);++j>>1,ke=m[ce];ke!==null&&!Zl(ke)&&(_?ke<=v:ke=i){var xt=v?null:Nb(m);if(xt)return $0(xt);ke=!1,re=Ap,Ge=new bi}else Ge=v?[]:Ne;e:for(;++j=j?m:No(m,v,_)}var WS=ao||function(m){return Ba.clearTimeout(m)};function Cb(m,v){if(v)return m.slice();var _=m.length,j=CS?CS(_):new m.constructor(_);return m.copy(j),j}function QS(m){var v=new m.constructor(m.byteLength);return new U0(v).set(new U0(m)),v}function mD(m,v){var _=v?QS(m.buffer):m.buffer;return new m.constructor(_,m.byteOffset,m.byteLength)}function ha(m){var v=new m.constructor(m.source,Be.exec(m));return v.lastIndex=m.lastIndex,v}function Kk(m){return dh?fi(dh.call(m)):{}}function Jk(m,v){var _=v?QS(m.buffer):m.buffer;return new m.constructor(_,m.byteOffset,m.length)}function Ab(m,v){if(m!==v){var _=m!==n,j=m===null,re=m===m,ce=Zl(m),ke=v!==n,Ne=v===null,Ge=v===v,xt=Zl(v);if(!Ne&&!xt&&!ce&&m>v||ce&&ke&&Ge&&!Ne&&!xt||j&&ke&&Ge||!_&&Ge||!re)return 1;if(!j&&!ce&&!xt&&m=Ne)return Ge;var xt=_[j];return Ge*(xt=="desc"?-1:1)}}return m.index-v.index}function eC(m,v,_,j){for(var re=-1,ce=m.length,ke=_.length,Ne=-1,Ge=v.length,xt=fa(ce-ke,0),Tt=ct(Ge+xt),Rt=!j;++Ne1?_[re-1]:n,ke=re>2?_[2]:n;for(ce=m.length>3&&typeof ce=="function"?(re--,ce):n,ke&&Ms(_[0],_[1],ke)&&(ce=re<3?n:ce,re=1),v=fi(v);++j-1?re[ce?v[ke]:ke]:n}}function qS(m){return Zd(function(v){var _=v.length,j=_,re=Ro.prototype.thru;for(m&&v.reverse();j--;){var ce=v[j];if(typeof ce!="function")throw new Mi(s);if(re&&!ke&&ZS(ce)=="wrapper")var ke=new Ro([],!0)}for(j=ke?j:_;++j<_;){ce=v[j];var Ne=ZS(ce),Ge=Ne=="wrapper"?sC(ce):n;Ge&&d(Ge[0])&&Ge[1]==(D|k|R|B)&&!Ge[4].length&&Ge[9]==1?ke=ke[ZS(Ge[0])].apply(ke,Ge[3]):ke=ce.length==1&&d(ce)?ke[Ne]():ke.thru(ce)}return function(){var xt=arguments,Tt=xt[0];if(ke&&xt.length==1&&sr(Tt))return ke.plant(Tt).value();for(var Rt=0,an=_?v[Rt].apply(this,xt):Tt;++Rt<_;)an=v[Rt].call(this,an);return an}})}function Gl(m,v,_,j,re,ce,ke,Ne,Ge,xt){var Tt=v&D,Rt=v&w,an=v&E,_n=v&(k|C),Xn=v&L,vr=an?n:zp(m);function Kn(){for(var Ar=arguments.length,Fr=ct(Ar),Xl=Ar;Xl--;)Fr[Xl]=arguments[Xl];if(_n)var Lo=sg(Kn),Kl=ab(Fr,Lo);if(j&&(Fr=eC(Fr,j,re,_n)),ce&&(Fr=mh(Fr,ce,ke,_n)),Ar-=Kl,_n&&Ar1&&Fr.reverse(),Tt&&GeNe))return!1;var xt=ce.get(m),Tt=ce.get(v);if(xt&&Tt)return xt==v&&Tt==m;var Rt=-1,an=!0,_n=_&S?new bi:n;for(ce.set(m,v),ce.set(v,m);++Rt1?"& ":"")+v[j],v=v.join(_>2?", ":" "),m.replace(ot,`{ /* [wrapped with `+v+`] */ -`)}function Lb(m){return sr(m)||og(m)||!!(AS&&m&&m[AS])}function Yl(m,v){var _=typeof m;return v=v??X,!!v&&(_=="number"||_!="symbol"&&Er.test(m))&&m>-1&&m%1==0&&m0){if(++v>=V)return arguments[0]}else v=0;return m.apply(n,arguments)}}function qr(m,v){var _=-1,j=m.length,re=j-1;for(v=v===n?j:v;++_1?m[v-1]:n;return _=typeof _=="function"?(m.pop(),_):n,pq(m,_)});function mq(m){var v=se(m);return v.__chain__=!0,v}function ZOe(m,v){return v(m),m}function cC(m,v){return v(m)}var XOe=Zd(function(m){var v=m.length,_=v?m[0]:0,j=this.__wrapped__,re=function(ce){return Vu(ce,m)};return v>1||this.__actions__.length||!(j instanceof ur)||!Yl(_)?this.thru(re):(j=j.slice(_,+_+(v?1:0)),j.__actions__.push({func:cC,args:[re],thisArg:n}),new Ro(j,this.__chain__).thru(function(ce){return v&&!ce.length&&ce.push(n),ce}))});function KOe(){return mq(this)}function JOe(){return new Ro(this.value(),this.__chain__)}function eSe(){this.__values__===n&&(this.__values__=_q(this.value()));var m=this.__index__>=this.__values__.length,v=m?n:this.__values__[this.__index__++];return{done:m,value:v}}function tSe(){return this}function nSe(m){for(var v,_=this;_ instanceof so;){var j=Wp(_);j.__index__=0,j.__values__=n,v?re.__wrapped__=j:v=j;var re=j;_=_.__wrapped__}return re.__wrapped__=m,v}function rSe(){var m=this.__wrapped__;if(m instanceof ur){var v=m;return this.__actions__.length&&(v=new ur(this)),v=v.reverse(),v.__actions__.push({func:cC,args:[SD],thisArg:n}),new Ro(v,this.__chain__)}return this.thru(SD)}function iSe(){return jS(this.__wrapped__,this.__actions__)}var aSe=_b(function(m,v,_){kr.call(m,_)?++m[_]:Do(m,_,1)});function sSe(m,v,_){var j=sr(m)?pS:Hd;return _&&Ps(m,v,_)&&(v=n),j(m,Qn(v,3))}function oSe(m,v){var _=sr(m)?no:Ql;return _(m,Qn(v,3))}var lSe=zp(uq),uSe=zp(cq);function cSe(m,v){return ni(dC(m,v),1)}function dSe(m,v){return ni(dC(m,v),K)}function fSe(m,v,_){return _=_===n?1:pr(_),ni(dC(m,v),_)}function gq(m,v){var _=sr(m)?Ao:jd;return _(m,Qn(v,3))}function bq(m,v){var _=sr(m)?F6:sl;return _(m,Qn(v,3))}var hSe=_b(function(m,v,_){kr.call(m,_)?m[_].push(v):Do(m,_,[v])});function pSe(m,v,_,j){m=ol(m)?m:Fb(m),_=_&&!j?pr(_):0;var re=m.length;return _<0&&(_=fa(re+_,0)),gC(m)?_<=re&&m.indexOf(v,_)>-1:!!re&&ah(m,v,_)>-1}var mSe=ir(function(m,v,_){var j=-1,re=typeof v=="function",ce=ol(m)?ct(m.length):[];return jd(m,function(ke){ce[++j]=re?Co(v,ke,_):Lp(ke,v,_)}),ce}),gSe=_b(function(m,v,_){Do(m,_,v)});function dC(m,v){var _=sr(m)?vn:bb;return _(m,Qn(v,3))}function bSe(m,v,_,j){return m==null?[]:(sr(v)||(v=v==null?[]:[v]),_=j?n:_,sr(_)||(_=_==null?[]:[_]),Vk(m,v,_))}var ySe=_b(function(m,v,_){m[_?0:1].push(v)},function(){return[[],[]]});function vSe(m,v,_){var j=sr(m)?gS:OS,re=arguments.length<3;return j(m,Qn(v,4),_,re,jd)}function OSe(m,v,_){var j=sr(m)?Bc:OS,re=arguments.length<3;return j(m,Qn(v,4),_,re,sl)}function SSe(m,v){var _=sr(m)?no:Ql;return _(m,pC(Qn(v,3)))}function ESe(m){var v=sr(m)?Pk:cD;return v(m)}function wSe(m,v,_){(_?Ps(m,v,_):v===n)?v=1:v=pr(v);var j=sr(m)?Mk:Wk;return j(m,v)}function xSe(m){var v=sr(m)?Wl:dD;return v(m)}function TSe(m){if(m==null)return 0;if(ol(m))return gC(m)?_p(m):m.length;var v=Ns(m);return v==Xe||v==he?m.size:FS(m).length}function kSe(m,v,_){var j=sr(m)?K1:fD;return _&&Ps(m,v,_)&&(v=n),j(m,Qn(v,3))}var CSe=ir(function(m,v){if(m==null)return[];var _=v.length;return _>1&&Ps(m,v[0],v[1])?v=[]:_>2&&Ps(v[0],v[1],v[2])&&(v=[v[0]]),Vk(m,ni(v,1),[])}),fC=zt||function(){return Ba.Date.now()};function ASe(m,v){if(typeof v!="function")throw new Mi(s);return m=pr(m),function(){if(--m<1)return v.apply(this,arguments)}}function yq(m,v,_){return v=_?n:v,v=m&&v==null?m.length:v,Ya(m,D,n,n,n,n,v)}function vq(m,v){var _;if(typeof v!="function")throw new Mi(s);return m=pr(m),function(){return--m>0&&(_=v.apply(this,arguments)),m<=1&&(v=n),_}}var wD=ir(function(m,v,_){var j=E;if(_.length){var re=zu(_,sg(wD));j|=R}return Ya(m,j,v,_,re)}),Oq=ir(function(m,v,_){var j=E|w;if(_.length){var re=zu(_,sg(Oq));j|=R}return Ya(v,j,m,_,re)});function Sq(m,v,_){v=_?n:v;var j=Ya(m,k,n,n,n,n,n,v);return j.placeholder=Sq.placeholder,j}function Eq(m,v,_){v=_?n:v;var j=Ya(m,C,n,n,n,n,n,v);return j.placeholder=Eq.placeholder,j}function wq(m,v,_){var j,re,ce,ke,Ne,Ge,xt=0,Tt=!1,Rt=!1,an=!0;if(typeof m!="function")throw new Mi(s);v=Yu(v)||0,ta(_)&&(Tt=!!_.leading,Rt="maxWait"in _,ce=Rt?fa(Yu(_.maxWait)||0,v):ce,an="trailing"in _?!!_.trailing:an);function _n(_a){var Gc=j,Oh=re;return j=re=n,xt=_a,ke=m.apply(Oh,Gc),ke}function Xn(_a){return xt=_a,Ne=kn(Ar,v),Tt?_n(_a):ke}function vr(_a){var Gc=_a-Ge,Oh=_a-xt,jq=v-Gc;return Rt?Ji(jq,ce-Oh):jq}function Kn(_a){var Gc=_a-Ge,Oh=_a-xt;return Ge===n||Gc>=v||Gc<0||Rt&&Oh>=ce}function Ar(){var _a=fC();if(Kn(_a))return Fr(_a);Ne=kn(Ar,vr(_a))}function Fr(_a){return Ne=n,an&&j?_n(_a):(j=re=n,ke)}function Xl(){Ne!==n&&WS(Ne),xt=0,j=Ge=re=Ne=n}function Lo(){return Ne===n?ke:Fr(fC())}function Kl(){var _a=fC(),Gc=Kn(_a);if(j=arguments,re=this,Ge=_a,Gc){if(Ne===n)return Xn(Ge);if(Rt)return WS(Ne),Ne=kn(Ar,v),_n(Ge)}return Ne===n&&(Ne=kn(Ar,v)),ke}return Kl.cancel=Xl,Kl.flush=Lo,Kl}var _Se=ir(function(m,v){return Lk(m,1,v)}),RSe=ir(function(m,v,_){return Lk(m,Yu(v)||0,_)});function ISe(m){return Ya(m,L)}function hC(m,v){if(typeof m!="function"||v!=null&&typeof v!="function")throw new Mi(s);var _=function(){var j=arguments,re=v?v.apply(this,j):j[0],ce=_.cache;if(ce.has(re))return ce.get(re);var ke=m.apply(this,j);return _.cache=ce.set(re,ke)||ce,ke};return _.cache=new(hC.Cache||Hc),_}hC.Cache=Hc;function pC(m){if(typeof m!="function")throw new Mi(s);return function(){var v=arguments;switch(v.length){case 0:return!m.call(this);case 1:return!m.call(this,v[0]);case 2:return!m.call(this,v[0],v[1]);case 3:return!m.call(this,v[0],v[1],v[2])}return!m.apply(this,v)}}function DSe(m){return vq(2,m)}var NSe=Zk(function(m,v){v=v.length==1&&sr(v[0])?vn(v[0],io(Qn())):vn(ni(v,1),io(Qn()));var _=v.length;return ir(function(j){for(var re=-1,ce=Ji(j.length,_);++re=v}),og=Fk(function(){return arguments}())?Fk:function(m){return pa(m)&&kr.call(m,"callee")&&!ju.call(m,"callee")},sr=ct.isArray,GSe=cS?io(cS):nD;function ol(m){return m!=null&&mC(m.length)&&!yh(m)}function Aa(m){return pa(m)&&ol(m)}function YSe(m){return m===!0||m===!1||pa(m)&&hs(m)==Ie}var Qp=G6||MD,ZSe=dS?io(dS):rD;function XSe(m){return pa(m)&&m.nodeType===1&&!eE(m)}function KSe(m){if(m==null)return!0;if(ol(m)&&(sr(m)||typeof m=="string"||typeof m.splice=="function"||Qp(m)||$b(m)||og(m)))return!m.length;var v=Ns(m);if(v==Xe||v==he)return!m.size;if(T(m))return!FS(m).length;for(var _ in m)if(kr.call(m,_))return!1;return!0}function JSe(m,v){return K0(m,v)}function eEe(m,v,_){_=typeof _=="function"?_:n;var j=_?_(m,v):n;return j===n?K0(m,v,n,_):!!j}function TD(m){if(!pa(m))return!1;var v=hs(m);return v==Pe||v==st||typeof m.message=="string"&&typeof m.name=="string"&&!eE(m)}function tEe(m){return typeof m=="number"&&wr(m)}function yh(m){if(!ta(m))return!1;var v=hs(m);return v==tt||v==Ve||v==_e||v==pe}function Tq(m){return typeof m=="number"&&m==pr(m)}function mC(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=X}function ta(m){var v=typeof m;return m!=null&&(v=="object"||v=="function")}function pa(m){return m!=null&&typeof m=="object"}var kq=fS?io(fS):aD;function nEe(m,v){return m===v||$S(m,v,sC(v))}function rEe(m,v,_){return _=typeof _=="function"?_:n,$S(m,v,sC(v),_)}function iEe(m){return Cq(m)&&m!=+m}function aEe(m){if(y(m))throw new nr(a);return Bk(m)}function sEe(m){return m===null}function oEe(m){return m==null}function Cq(m){return typeof m=="number"||pa(m)&&hs(m)==et}function eE(m){if(!pa(m)||hs(m)!=At)return!1;var v=z0(m);if(v===null)return!0;var _=kr.call(v,"constructor")&&v.constructor;return typeof _=="function"&&_ instanceof _&&B0.call(_)==kS}var kD=vk?io(vk):Uk;function lEe(m){return Tq(m)&&m>=-X&&m<=X}var Aq=Ok?io(Ok):sD;function gC(m){return typeof m=="string"||!sr(m)&&pa(m)&&hs(m)==je}function Zl(m){return typeof m=="symbol"||pa(m)&&hs(m)==Ze}var $b=hS?io(hS):zk;function uEe(m){return m===n}function cEe(m){return pa(m)&&Ns(m)==fe}function dEe(m){return pa(m)&&hs(m)==xe}var fEe=Qc(gb),hEe=Qc(function(m,v){return m<=v});function _q(m){if(!m)return[];if(ol(m))return gC(m)?Ul(m):za(m);if(uh&&m[uh])return B6(m[uh]());var v=Ns(m),_=v==Xe?L0:v==he?$0:Fb;return _(m)}function vh(m){if(!m)return m===0?m:0;if(m=Yu(m),m===K||m===-K){var v=m<0?-1:1;return v*te}return m===m?m:0}function pr(m){var v=vh(m),_=v%1;return v===v?_?v-_:v:0}function Rq(m){return m?hh(pr(m),0,Te):0}function Yu(m){if(typeof m=="number")return m;if(Zl(m))return z;if(ta(m)){var v=typeof m.valueOf=="function"?m.valueOf():m;m=ta(v)?v+"":v}if(typeof m!="string")return m===0?m:+m;m=SS(m);var _=en.test(m);return _||Zr.test(m)?L6(m.slice(2),_?2:8):Dt.test(m)?z:+m}function Iq(m){return ql(m,ll(m))}function pEe(m){return m?hh(pr(m),-X,X):m===0?m:0}function li(m){return m==null?"":Po(m)}var mEe=$p(function(m,v){if(T(v)||ol(v)){ql(v,ms(v),m);return}for(var _ in v)kr.call(v,_)&&Ga(m,_,v[_])}),Dq=$p(function(m,v){ql(v,ll(v),m)}),bC=$p(function(m,v,_,j){ql(v,ll(v),m,j)}),gEe=$p(function(m,v,_,j){ql(v,ms(v),m,j)}),bEe=Zd(Vu);function yEe(m,v){var _=Lr(m);return v==null?_:PS(_,v)}var vEe=ir(function(m,v){m=fi(m);var _=-1,j=v.length,re=j>2?v[2]:n;for(re&&Ps(v[0],v[1],re)&&(j=1);++_1),ce}),ql(m,iC(m),_),j&&(_=Ua(_,f|h|g,Pb));for(var re=v.length;re--;)wb(_,v[re]);return _});function $Ee(m,v){return Pq(m,pC(Qn(v)))}var FEe=Zd(function(m,v){return m==null?{}:lD(m,v)});function Pq(m,v){if(m==null)return{};var _=vn(iC(m),function(j){return[j]});return v=Qn(v),US(m,_,function(j,re){return v(j,re[0])})}function BEe(m,v,_){v=Gd(v,m);var j=-1,re=v.length;for(re||(re=1,m=n);++jv){var j=m;m=v,v=j}if(_||m%1||v%1){var re=ub();return Ji(m+re*(v-m+M6("1e-"+((re+"").length-1))),v)}return Ob(m,v)}var ZEe=Bp(function(m,v,_){return v=v.toLowerCase(),m+(_?$q(v):v)});function $q(m){return _D(li(m).toLowerCase())}function Fq(m){return m=li(m),m&&m.replace(In,kk).replace(A6,"")}function XEe(m,v,_){m=li(m),v=Po(v);var j=m.length;_=_===n?j:hh(pr(_),0,j);var re=_;return _-=v.length,_>=0&&m.slice(_,re)==v}function KEe(m){return m=li(m),m&&Ue.test(m)?m.replace(Ur,wS):m}function JEe(m){return m=li(m),m&&xn.test(m)?m.replace(Yt,"\\$&"):m}var e2e=Bp(function(m,v,_){return m+(_?"-":"")+v.toLowerCase()}),t2e=Bp(function(m,v,_){return m+(_?" ":"")+v.toLowerCase()}),n2e=Rb("toLowerCase");function r2e(m,v,_){m=li(m),v=pr(v);var j=v?_p(m):0;if(!v||j>=v)return m;var re=(v-j)/2;return Db(lb(re),_)+m+Db(ob(re),_)}function i2e(m,v,_){m=li(m),v=pr(v);var j=v?_p(m):0;return v&&j>>0,_?(m=li(m),m&&(typeof v=="string"||v!=null&&!kD(v))&&(v=Po(v),!v&&Bl(m))?qu(Ul(m),0,_):m.split(v,_)):[]}var d2e=Bp(function(m,v,_){return m+(_?" ":"")+_D(v)});function f2e(m,v,_){return m=li(m),_=_==null?0:hh(pr(_),0,m.length),v=Po(v),m.slice(_,_+v.length)==v}function h2e(m,v,_){var j=se.templateSettings;_&&Ps(m,v,_)&&(v=n),m=li(m),v=bC({},v,j,ps);var re=bC({},v.imports,j.imports,ps),ce=ms(re),ke=rb(re,ce),Ne,Ge,xt=0,Tt=v.interpolate||Wn,Rt="__p += '",an=TS((v.escape||Wn).source+"|"+Tt.source+"|"+(Tt===Qt?nt:Wn).source+"|"+(v.evaluate||Wn).source+"|$","g"),_n="//# sourceURL="+(kr.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++R6+"]")+` +`)}function Lb(m){return sr(m)||og(m)||!!(AS&&m&&m[AS])}function Yl(m,v){var _=typeof m;return v=v??X,!!v&&(_=="number"||_!="symbol"&&wr.test(m))&&m>-1&&m%1==0&&m0){if(++v>=V)return arguments[0]}else v=0;return m.apply(n,arguments)}}function qr(m,v){var _=-1,j=m.length,re=j-1;for(v=v===n?j:v;++_1?m[v-1]:n;return _=typeof _=="function"?(m.pop(),_):n,mq(m,_)});function gq(m){var v=se(m);return v.__chain__=!0,v}function ZOe(m,v){return v(m),m}function dC(m,v){return v(m)}var XOe=Zd(function(m){var v=m.length,_=v?m[0]:0,j=this.__wrapped__,re=function(ce){return Vu(ce,m)};return v>1||this.__actions__.length||!(j instanceof ur)||!Yl(_)?this.thru(re):(j=j.slice(_,+_+(v?1:0)),j.__actions__.push({func:dC,args:[re],thisArg:n}),new Ro(j,this.__chain__).thru(function(ce){return v&&!ce.length&&ce.push(n),ce}))});function KOe(){return gq(this)}function JOe(){return new Ro(this.value(),this.__chain__)}function eSe(){this.__values__===n&&(this.__values__=Rq(this.value()));var m=this.__index__>=this.__values__.length,v=m?n:this.__values__[this.__index__++];return{done:m,value:v}}function tSe(){return this}function nSe(m){for(var v,_=this;_ instanceof so;){var j=Qp(_);j.__index__=0,j.__values__=n,v?re.__wrapped__=j:v=j;var re=j;_=_.__wrapped__}return re.__wrapped__=m,v}function rSe(){var m=this.__wrapped__;if(m instanceof ur){var v=m;return this.__actions__.length&&(v=new ur(this)),v=v.reverse(),v.__actions__.push({func:dC,args:[wD],thisArg:n}),new Ro(v,this.__chain__)}return this.thru(wD)}function iSe(){return jS(this.__wrapped__,this.__actions__)}var aSe=_b(function(m,v,_){kr.call(m,_)?++m[_]:Do(m,_,1)});function sSe(m,v,_){var j=sr(m)?pS:Hd;return _&&Ms(m,v,_)&&(v=n),j(m,Qn(v,3))}function oSe(m,v){var _=sr(m)?no:Ql;return _(m,Qn(v,3))}var lSe=jp(cq),uSe=jp(dq);function cSe(m,v){return ni(fC(m,v),1)}function dSe(m,v){return ni(fC(m,v),K)}function fSe(m,v,_){return _=_===n?1:pr(_),ni(fC(m,v),_)}function bq(m,v){var _=sr(m)?Ao:jd;return _(m,Qn(v,3))}function yq(m,v){var _=sr(m)?U6:sl;return _(m,Qn(v,3))}var hSe=_b(function(m,v,_){kr.call(m,_)?m[_].push(v):Do(m,_,[v])});function pSe(m,v,_,j){m=ol(m)?m:Fb(m),_=_&&!j?pr(_):0;var re=m.length;return _<0&&(_=fa(re+_,0)),bC(m)?_<=re&&m.indexOf(v,_)>-1:!!re&&ah(m,v,_)>-1}var mSe=ir(function(m,v,_){var j=-1,re=typeof v=="function",ce=ol(m)?ct(m.length):[];return jd(m,function(ke){ce[++j]=re?Co(v,ke,_):$p(ke,v,_)}),ce}),gSe=_b(function(m,v,_){Do(m,_,v)});function fC(m,v){var _=sr(m)?vn:bb;return _(m,Qn(v,3))}function bSe(m,v,_,j){return m==null?[]:(sr(v)||(v=v==null?[]:[v]),_=j?n:_,sr(_)||(_=_==null?[]:[_]),Wk(m,v,_))}var ySe=_b(function(m,v,_){m[_?0:1].push(v)},function(){return[[],[]]});function vSe(m,v,_){var j=sr(m)?gS:OS,re=arguments.length<3;return j(m,Qn(v,4),_,re,jd)}function OSe(m,v,_){var j=sr(m)?Uc:OS,re=arguments.length<3;return j(m,Qn(v,4),_,re,sl)}function SSe(m,v){var _=sr(m)?no:Ql;return _(m,mC(Qn(v,3)))}function ESe(m){var v=sr(m)?Mk:fD;return v(m)}function wSe(m,v,_){(_?Ms(m,v,_):v===n)?v=1:v=pr(v);var j=sr(m)?Lk:Qk;return j(m,v)}function xSe(m){var v=sr(m)?Wl:hD;return v(m)}function TSe(m){if(m==null)return 0;if(ol(m))return bC(m)?Rp(m):m.length;var v=Ps(m);return v==Xe||v==he?m.size:FS(m).length}function kSe(m,v,_){var j=sr(m)?K1:pD;return _&&Ms(m,v,_)&&(v=n),j(m,Qn(v,3))}var CSe=ir(function(m,v){if(m==null)return[];var _=v.length;return _>1&&Ms(m,v[0],v[1])?v=[]:_>2&&Ms(v[0],v[1],v[2])&&(v=[v[0]]),Wk(m,ni(v,1),[])}),hC=zt||function(){return Ba.Date.now()};function ASe(m,v){if(typeof v!="function")throw new Mi(s);return m=pr(m),function(){if(--m<1)return v.apply(this,arguments)}}function vq(m,v,_){return v=_?n:v,v=m&&v==null?m.length:v,Ya(m,D,n,n,n,n,v)}function Oq(m,v){var _;if(typeof v!="function")throw new Mi(s);return m=pr(m),function(){return--m>0&&(_=v.apply(this,arguments)),m<=1&&(v=n),_}}var TD=ir(function(m,v,_){var j=w;if(_.length){var re=zu(_,sg(TD));j|=R}return Ya(m,j,v,_,re)}),Sq=ir(function(m,v,_){var j=w|E;if(_.length){var re=zu(_,sg(Sq));j|=R}return Ya(v,j,m,_,re)});function Eq(m,v,_){v=_?n:v;var j=Ya(m,k,n,n,n,n,n,v);return j.placeholder=Eq.placeholder,j}function wq(m,v,_){v=_?n:v;var j=Ya(m,C,n,n,n,n,n,v);return j.placeholder=wq.placeholder,j}function xq(m,v,_){var j,re,ce,ke,Ne,Ge,xt=0,Tt=!1,Rt=!1,an=!0;if(typeof m!="function")throw new Mi(s);v=Yu(v)||0,ta(_)&&(Tt=!!_.leading,Rt="maxWait"in _,ce=Rt?fa(Yu(_.maxWait)||0,v):ce,an="trailing"in _?!!_.trailing:an);function _n(_a){var Yc=j,Oh=re;return j=re=n,xt=_a,ke=m.apply(Oh,Yc),ke}function Xn(_a){return xt=_a,Ne=kn(Ar,v),Tt?_n(_a):ke}function vr(_a){var Yc=_a-Ge,Oh=_a-xt,Hq=v-Yc;return Rt?Ji(Hq,ce-Oh):Hq}function Kn(_a){var Yc=_a-Ge,Oh=_a-xt;return Ge===n||Yc>=v||Yc<0||Rt&&Oh>=ce}function Ar(){var _a=hC();if(Kn(_a))return Fr(_a);Ne=kn(Ar,vr(_a))}function Fr(_a){return Ne=n,an&&j?_n(_a):(j=re=n,ke)}function Xl(){Ne!==n&&WS(Ne),xt=0,j=Ge=re=Ne=n}function Lo(){return Ne===n?ke:Fr(hC())}function Kl(){var _a=hC(),Yc=Kn(_a);if(j=arguments,re=this,Ge=_a,Yc){if(Ne===n)return Xn(Ge);if(Rt)return WS(Ne),Ne=kn(Ar,v),_n(Ge)}return Ne===n&&(Ne=kn(Ar,v)),ke}return Kl.cancel=Xl,Kl.flush=Lo,Kl}var _Se=ir(function(m,v){return $k(m,1,v)}),RSe=ir(function(m,v,_){return $k(m,Yu(v)||0,_)});function ISe(m){return Ya(m,L)}function pC(m,v){if(typeof m!="function"||v!=null&&typeof v!="function")throw new Mi(s);var _=function(){var j=arguments,re=v?v.apply(this,j):j[0],ce=_.cache;if(ce.has(re))return ce.get(re);var ke=m.apply(this,j);return _.cache=ce.set(re,ke)||ce,ke};return _.cache=new(pC.Cache||Vc),_}pC.Cache=Vc;function mC(m){if(typeof m!="function")throw new Mi(s);return function(){var v=arguments;switch(v.length){case 0:return!m.call(this);case 1:return!m.call(this,v[0]);case 2:return!m.call(this,v[0],v[1]);case 3:return!m.call(this,v[0],v[1],v[2])}return!m.apply(this,v)}}function DSe(m){return Oq(2,m)}var NSe=Xk(function(m,v){v=v.length==1&&sr(v[0])?vn(v[0],io(Qn())):vn(ni(v,1),io(Qn()));var _=v.length;return ir(function(j){for(var re=-1,ce=Ji(j.length,_);++re=v}),og=Bk(function(){return arguments}())?Bk:function(m){return pa(m)&&kr.call(m,"callee")&&!ju.call(m,"callee")},sr=ct.isArray,GSe=cS?io(cS):iD;function ol(m){return m!=null&&gC(m.length)&&!yh(m)}function Aa(m){return pa(m)&&ol(m)}function YSe(m){return m===!0||m===!1||pa(m)&&hs(m)==Ie}var qp=Z6||$D,ZSe=dS?io(dS):aD;function XSe(m){return pa(m)&&m.nodeType===1&&!eE(m)}function KSe(m){if(m==null)return!0;if(ol(m)&&(sr(m)||typeof m=="string"||typeof m.splice=="function"||qp(m)||$b(m)||og(m)))return!m.length;var v=Ps(m);if(v==Xe||v==he)return!m.size;if(T(m))return!FS(m).length;for(var _ in m)if(kr.call(m,_))return!1;return!0}function JSe(m,v){return K0(m,v)}function eEe(m,v,_){_=typeof _=="function"?_:n;var j=_?_(m,v):n;return j===n?K0(m,v,n,_):!!j}function CD(m){if(!pa(m))return!1;var v=hs(m);return v==Pe||v==st||typeof m.message=="string"&&typeof m.name=="string"&&!eE(m)}function tEe(m){return typeof m=="number"&&xr(m)}function yh(m){if(!ta(m))return!1;var v=hs(m);return v==tt||v==Ve||v==_e||v==pe}function kq(m){return typeof m=="number"&&m==pr(m)}function gC(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=X}function ta(m){var v=typeof m;return m!=null&&(v=="object"||v=="function")}function pa(m){return m!=null&&typeof m=="object"}var Cq=fS?io(fS):oD;function nEe(m,v){return m===v||$S(m,v,oC(v))}function rEe(m,v,_){return _=typeof _=="function"?_:n,$S(m,v,oC(v),_)}function iEe(m){return Aq(m)&&m!=+m}function aEe(m){if(y(m))throw new nr(a);return Uk(m)}function sEe(m){return m===null}function oEe(m){return m==null}function Aq(m){return typeof m=="number"||pa(m)&&hs(m)==et}function eE(m){if(!pa(m)||hs(m)!=At)return!1;var v=z0(m);if(v===null)return!0;var _=kr.call(v,"constructor")&&v.constructor;return typeof _=="function"&&_ instanceof _&&B0.call(_)==kS}var AD=Ok?io(Ok):zk;function lEe(m){return kq(m)&&m>=-X&&m<=X}var _q=Sk?io(Sk):lD;function bC(m){return typeof m=="string"||!sr(m)&&pa(m)&&hs(m)==je}function Zl(m){return typeof m=="symbol"||pa(m)&&hs(m)==Ze}var $b=hS?io(hS):jk;function uEe(m){return m===n}function cEe(m){return pa(m)&&Ps(m)==fe}function dEe(m){return pa(m)&&hs(m)==xe}var fEe=qc(gb),hEe=qc(function(m,v){return m<=v});function Rq(m){if(!m)return[];if(ol(m))return bC(m)?Ul(m):za(m);if(uh&&m[uh])return z6(m[uh]());var v=Ps(m),_=v==Xe?L0:v==he?$0:Fb;return _(m)}function vh(m){if(!m)return m===0?m:0;if(m=Yu(m),m===K||m===-K){var v=m<0?-1:1;return v*te}return m===m?m:0}function pr(m){var v=vh(m),_=v%1;return v===v?_?v-_:v:0}function Iq(m){return m?hh(pr(m),0,Te):0}function Yu(m){if(typeof m=="number")return m;if(Zl(m))return z;if(ta(m)){var v=typeof m.valueOf=="function"?m.valueOf():m;m=ta(v)?v+"":v}if(typeof m!="string")return m===0?m:+m;m=SS(m);var _=en.test(m);return _||Zr.test(m)?F6(m.slice(2),_?2:8):Dt.test(m)?z:+m}function Dq(m){return ql(m,ll(m))}function pEe(m){return m?hh(pr(m),-X,X):m===0?m:0}function li(m){return m==null?"":Po(m)}var mEe=Fp(function(m,v){if(T(v)||ol(v)){ql(v,ms(v),m);return}for(var _ in v)kr.call(v,_)&&Ga(m,_,v[_])}),Nq=Fp(function(m,v){ql(v,ll(v),m)}),yC=Fp(function(m,v,_,j){ql(v,ll(v),m,j)}),gEe=Fp(function(m,v,_,j){ql(v,ms(v),m,j)}),bEe=Zd(Vu);function yEe(m,v){var _=Lr(m);return v==null?_:PS(_,v)}var vEe=ir(function(m,v){m=fi(m);var _=-1,j=v.length,re=j>2?v[2]:n;for(re&&Ms(v[0],v[1],re)&&(j=1);++_1),ce}),ql(m,aC(m),_),j&&(_=Ua(_,f|h|g,Pb));for(var re=v.length;re--;)wb(_,v[re]);return _});function $Ee(m,v){return Mq(m,mC(Qn(v)))}var FEe=Zd(function(m,v){return m==null?{}:cD(m,v)});function Mq(m,v){if(m==null)return{};var _=vn(aC(m),function(j){return[j]});return v=Qn(v),US(m,_,function(j,re){return v(j,re[0])})}function BEe(m,v,_){v=Gd(v,m);var j=-1,re=v.length;for(re||(re=1,m=n);++jv){var j=m;m=v,v=j}if(_||m%1||v%1){var re=ub();return Ji(m+re*(v-m+$6("1e-"+((re+"").length-1))),v)}return Ob(m,v)}var ZEe=Up(function(m,v,_){return v=v.toLowerCase(),m+(_?Fq(v):v)});function Fq(m){return ID(li(m).toLowerCase())}function Bq(m){return m=li(m),m&&m.replace(In,Ck).replace(R6,"")}function XEe(m,v,_){m=li(m),v=Po(v);var j=m.length;_=_===n?j:hh(pr(_),0,j);var re=_;return _-=v.length,_>=0&&m.slice(_,re)==v}function KEe(m){return m=li(m),m&&Ue.test(m)?m.replace(Ur,wS):m}function JEe(m){return m=li(m),m&&xn.test(m)?m.replace(Yt,"\\$&"):m}var e2e=Up(function(m,v,_){return m+(_?"-":"")+v.toLowerCase()}),t2e=Up(function(m,v,_){return m+(_?" ":"")+v.toLowerCase()}),n2e=Rb("toLowerCase");function r2e(m,v,_){m=li(m),v=pr(v);var j=v?Rp(m):0;if(!v||j>=v)return m;var re=(v-j)/2;return Db(lb(re),_)+m+Db(ob(re),_)}function i2e(m,v,_){m=li(m),v=pr(v);var j=v?Rp(m):0;return v&&j>>0,_?(m=li(m),m&&(typeof v=="string"||v!=null&&!AD(v))&&(v=Po(v),!v&&Bl(m))?qu(Ul(m),0,_):m.split(v,_)):[]}var d2e=Up(function(m,v,_){return m+(_?" ":"")+ID(v)});function f2e(m,v,_){return m=li(m),_=_==null?0:hh(pr(_),0,m.length),v=Po(v),m.slice(_,_+v.length)==v}function h2e(m,v,_){var j=se.templateSettings;_&&Ms(m,v,_)&&(v=n),m=li(m),v=yC({},v,j,ps);var re=yC({},v.imports,j.imports,ps),ce=ms(re),ke=rb(re,ce),Ne,Ge,xt=0,Tt=v.interpolate||Wn,Rt="__p += '",an=TS((v.escape||Wn).source+"|"+Tt.source+"|"+(Tt===Qt?nt:Wn).source+"|"+(v.evaluate||Wn).source+"|$","g"),_n="//# sourceURL="+(kr.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++D6+"]")+` `;m.replace(an,function(Kn,Ar,Fr,Xl,Lo,Kl){return Fr||(Fr=Xl),Rt+=m.slice(xt,Kl).replace(ti,xS),Ar&&(Ne=!0,Rt+=`' + __e(`+Ar+`) + '`),Lo&&(Ge=!0,Rt+=`'; @@ -271,48 +271,48 @@ __p += '`),Fr&&(Rt+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Rt+`return __p -}`;var vr=Uq(function(){return Qr(ce,_n+"return "+Rt).apply(n,ke)});if(vr.source=Rt,TD(vr))throw vr;return vr}function p2e(m){return li(m).toLowerCase()}function m2e(m){return li(m).toUpperCase()}function g2e(m,v,_){if(m=li(m),m&&(_||v===n))return SS(m);if(!m||!(v=Po(v)))return m;var j=Ul(m),re=Ul(v),ce=ES(j,re),ke=ib(j,re)+1;return qu(j,ce,ke).join("")}function b2e(m,v,_){if(m=li(m),m&&(_||v===n))return m.slice(0,Ak(m)+1);if(!m||!(v=Po(v)))return m;var j=Ul(m),re=ib(j,Ul(v))+1;return qu(j,0,re).join("")}function y2e(m,v,_){if(m=li(m),m&&(_||v===n))return m.replace(Qe,"");if(!m||!(v=Po(v)))return m;var j=Ul(m),re=ES(j,Ul(v));return qu(j,re).join("")}function v2e(m,v){var _=F,j=W;if(ta(v)){var re="separator"in v?v.separator:re;_="length"in v?pr(v.length):_,j="omission"in v?Po(v.omission):j}m=li(m);var ce=m.length;if(Bl(m)){var ke=Ul(m);ce=ke.length}if(_>=ce)return m;var Ne=_-_p(j);if(Ne<1)return j;var Ge=ke?qu(ke,0,Ne).join(""):m.slice(0,Ne);if(re===n)return Ge+j;if(ke&&(Ne+=Ge.length-Ne),kD(re)){if(m.slice(Ne).search(re)){var xt,Tt=Ge;for(re.global||(re=TS(re.source,li(Be.exec(re))+"g")),re.lastIndex=0;xt=re.exec(Tt);)var Rt=xt.index;Ge=Ge.slice(0,Rt===n?Ne:Rt)}}else if(m.indexOf(Po(re),Ne)!=Ne){var an=Ge.lastIndexOf(re);an>-1&&(Ge=Ge.slice(0,an))}return Ge+j}function O2e(m){return m=li(m),m&&Me.test(m)?m.replace(ar,z6):m}var S2e=Bp(function(m,v,_){return m+(_?" ":"")+v.toUpperCase()}),_D=Rb("toUpperCase");function Bq(m,v,_){return m=li(m),v=_?n:v,v===n?M0(m)?V6(m):Ek(m):m.match(v)||[]}var Uq=ir(function(m,v){try{return Co(m,n,v)}catch(_){return TD(_)?_:new nr(_)}}),E2e=Zd(function(m,v){return Ao(v,function(_){_=$r(_),Do(m,_,wD(m[_],m))}),m});function w2e(m){var v=m==null?0:m.length,_=Qn();return m=v?vn(m,function(j){if(typeof j[1]!="function")throw new Mi(s);return[_(j[0]),j[1]]}):[],ir(function(j){for(var re=-1;++reX)return[];var _=Te,j=Ji(m,Te);v=Qn(v),m-=Te;for(var re=nb(j,v);++_0||v<0)?new ur(_):(m<0?_=_.takeRight(-m):m&&(_=_.drop(m)),v!==n&&(v=pr(v),_=v<0?_.dropRight(-v):_.take(v-m)),_)},ur.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},ur.prototype.toArray=function(){return this.take(Te)},Qu(ur.prototype,function(m,v){var _=/^(?:filter|find|map|reject)|While$/.test(v),j=/^(?:head|last)$/.test(v),re=se[j?"take"+(v=="last"?"Right":""):v],ce=j||/^find/.test(v);re&&(se.prototype[v]=function(){var ke=this.__wrapped__,Ne=j?[1]:arguments,Ge=ke instanceof ur,xt=Ne[0],Tt=Ge||sr(ke),Rt=function(Ar){var Fr=re.apply(se,Fl([Ar],Ne));return j&&an?Fr[0]:Fr};Tt&&_&&typeof xt=="function"&&xt.length!=1&&(Ge=Tt=!1);var an=this.__chain__,_n=!!this.__actions__.length,Xn=ce&&!an,vr=Ge&&!_n;if(!ce&&Tt){ke=vr?ke:new ur(this);var Kn=m.apply(ke,Ne);return Kn.__actions__.push({func:cC,args:[Rt],thisArg:n}),new Ro(Kn,an)}return Xn&&vr?m.apply(this,Ne):(Kn=this.thru(Rt),Xn?j?Kn.value()[0]:Kn.value():Kn)})}),Ao(["pop","push","shift","sort","splice","unshift"],function(m){var v=Zn[m],_=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",j=/^(?:pop|shift)$/.test(m);se.prototype[m]=function(){var re=arguments;if(j&&!this.__chain__){var ce=this.value();return v.apply(sr(ce)?ce:[],re)}return this[_](function(ke){return v.apply(sr(ke)?ke:[],re)})}}),Qu(ur.prototype,function(m,v){var _=se[v];if(_){var j=_.name+"";kr.call(ea,j)||(ea[j]=[]),ea[j].push({name:v,func:_})}}),ea[Gl(n,w).name]=[{name:"wrapper",func:n}],ur.prototype.clone=ka,ur.prototype.reverse=Ti,ur.prototype.value=db,se.prototype.at=XOe,se.prototype.chain=KOe,se.prototype.commit=JOe,se.prototype.next=eSe,se.prototype.plant=nSe,se.prototype.reverse=rSe,se.prototype.toJSON=se.prototype.valueOf=se.prototype.value=iSe,se.prototype.first=se.prototype.head,uh&&(se.prototype[uh]=tSe),se},Rp=W6();Ld?((Ld.exports=Rp)._=Rp,Y1._=Rp):Ba._=Rp}).call(mf)})(F3,F3.exports);var DZe=F3.exports;const NZe=xd(DZe),PZe=fn.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:"0px 2px 0px 4px"},".cm-ySelectionCaret":{position:"relative",borderLeft:"1px solid black",borderRight:"1px solid black",marginLeft:"-1px",marginRight:"-1px",boxSizing:"border-box",display:"inline"},".cm-ySelectionCaretDot":{borderRadius:"50%",position:"absolute",width:".4em",height:".4em",top:"-.2em",left:"-.2em",backgroundColor:"inherit",transition:"transform .3s ease-in-out",boxSizing:"border-box"},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:"bottom center",transform:"scale(0)"},".cm-ySelectionInfo":{position:"absolute",top:"-1.05em",left:"-1px",fontSize:".75em",fontFamily:"serif",fontStyle:"normal",fontWeight:"normal",lineHeight:"normal",userSelect:"none",color:"black",paddingLeft:"2px",paddingRight:"2px",zIndex:101,transition:"opacity .3s ease-in-out",backgroundColor:"inherit",transitionDelay:"0s",whiteSpace:"nowrap"}}),MZe=Cd.define();class LZe extends Ad{constructor(n,r){super();Ms(this,"color");Ms(this,"name");this.color=n,this.name=r}toDOM(){return z4("span",[Fg("class","cm-ySelectionCaret"),Fg("style",`background-color: ${this.color}; border-color: ${this.color}`)],[EA("⁠"),z4("div",[Fg("class","cm-ySelectionCaretDot")]),EA("⁠"),z4("div",[Fg("class","cm-ySelectionInfo")],[EA(this.name)]),EA("⁠")])}eq(n){return n.color===this.color}compare(n){return n.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class $Ze{constructor(t){Ms(this,"conf");Ms(this,"decorations");Ms(this,"unsubscribe");this.conf=t.state.facet(LB),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[MZe.of([])]})}),this.decorations=Br.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]);NZe.isEqual(o,i.get("selection"))||i.set({selection:o})}else i.get("selection")&&i.set({selection:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(o),c=t.view.state.doc.lineAt(l);if(u.number===c.number)n.push({from:o,to:l,value:An.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:u.from+u.length,value:An.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:c.from,to:l,value:An.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let f=u.number+1;f0?-1:1,block:!1,widget:new LZe(a,s)})})}),this.decorations=An.set(n,!0)}}const FZe=ua.fromClass($Ze,{decorations:e=>e.decorations});function BZe(e,t){const n=new SZe(e,t),r=[LB.of(n),wZe];return t&&r.push(PZe,FZe),r}var ape=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=fn.theme(i,{dark:t==="dark"}),l=ET.define(r),u=[o,Fde(l)];return u},UZe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function zZe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ape({theme:t,settings:M({},UZe,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#707F8D"},{tag:[Ee.typeName,Ee.typeOperator],color:"#aa0d91"},{tag:[Ee.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#D23423"},{tag:[Ee.name],color:"#032f62"},{tag:[Ee.typeName],color:"#522BB2"},{tag:[Ee.variableName],color:"#23575C"},{tag:[Ee.definition(Ee.variableName)],color:"#327A9E"},{tag:[Ee.regexp,Ee.link],color:"#0e0eff"},...r]})}var jZe=zZe(),HZe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},VZe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ape({theme:t,settings:M({},HZe,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#7F8C98"},{tag:[Ee.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#FF8170"},{tag:[Ee.typeName],color:"#DABAFF"},{tag:[Ee.definition(Ee.variableName)],color:"#6BDFFF"},{tag:[Ee.name],color:"#6BAA9F"},{tag:[Ee.variableName],color:"#ACF2E4"},{tag:[Ee.regexp,Ee.link],color:"#FF8170"},...r]})},WZe=VZe();function kT(){const e=TO("(prefers-color-scheme: dark)"),t=pi(PF);return N.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}const spe="yorkie-intelligence-header",$B="yorkie-intelligence-footer";class uee extends Ad{constructor(n,r,i){super();Ms(this,"id");Ms(this,"content");Ms(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return z4("span",[Fg("id",this.id),Fg("content",this.content),Fg("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class QZe{constructor(){Ms(this,"decorations");this.decorations=Br.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:An.widget({side:1,block:!1,widget:new uee(spe,a,r)})}),n.push({from:r.to,to:r.to,value:An.widget({side:1,block:!1,widget:new uee($B,a,r)})})}this.decorations=An.set(n,!0)}}const qZe=ua.fromClass(QZe,{decorations:e=>e.decorations}),cee=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),dee=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` +}`;var vr=zq(function(){return Qr(ce,_n+"return "+Rt).apply(n,ke)});if(vr.source=Rt,CD(vr))throw vr;return vr}function p2e(m){return li(m).toLowerCase()}function m2e(m){return li(m).toUpperCase()}function g2e(m,v,_){if(m=li(m),m&&(_||v===n))return SS(m);if(!m||!(v=Po(v)))return m;var j=Ul(m),re=Ul(v),ce=ES(j,re),ke=ib(j,re)+1;return qu(j,ce,ke).join("")}function b2e(m,v,_){if(m=li(m),m&&(_||v===n))return m.slice(0,_k(m)+1);if(!m||!(v=Po(v)))return m;var j=Ul(m),re=ib(j,Ul(v))+1;return qu(j,0,re).join("")}function y2e(m,v,_){if(m=li(m),m&&(_||v===n))return m.replace(Qe,"");if(!m||!(v=Po(v)))return m;var j=Ul(m),re=ES(j,Ul(v));return qu(j,re).join("")}function v2e(m,v){var _=F,j=W;if(ta(v)){var re="separator"in v?v.separator:re;_="length"in v?pr(v.length):_,j="omission"in v?Po(v.omission):j}m=li(m);var ce=m.length;if(Bl(m)){var ke=Ul(m);ce=ke.length}if(_>=ce)return m;var Ne=_-Rp(j);if(Ne<1)return j;var Ge=ke?qu(ke,0,Ne).join(""):m.slice(0,Ne);if(re===n)return Ge+j;if(ke&&(Ne+=Ge.length-Ne),AD(re)){if(m.slice(Ne).search(re)){var xt,Tt=Ge;for(re.global||(re=TS(re.source,li(Be.exec(re))+"g")),re.lastIndex=0;xt=re.exec(Tt);)var Rt=xt.index;Ge=Ge.slice(0,Rt===n?Ne:Rt)}}else if(m.indexOf(Po(re),Ne)!=Ne){var an=Ge.lastIndexOf(re);an>-1&&(Ge=Ge.slice(0,an))}return Ge+j}function O2e(m){return m=li(m),m&&Me.test(m)?m.replace(ar,H6):m}var S2e=Up(function(m,v,_){return m+(_?" ":"")+v.toUpperCase()}),ID=Rb("toUpperCase");function Uq(m,v,_){return m=li(m),v=_?n:v,v===n?M0(m)?Q6(m):wk(m):m.match(v)||[]}var zq=ir(function(m,v){try{return Co(m,n,v)}catch(_){return CD(_)?_:new nr(_)}}),E2e=Zd(function(m,v){return Ao(v,function(_){_=$r(_),Do(m,_,TD(m[_],m))}),m});function w2e(m){var v=m==null?0:m.length,_=Qn();return m=v?vn(m,function(j){if(typeof j[1]!="function")throw new Mi(s);return[_(j[0]),j[1]]}):[],ir(function(j){for(var re=-1;++reX)return[];var _=Te,j=Ji(m,Te);v=Qn(v),m-=Te;for(var re=nb(j,v);++_0||v<0)?new ur(_):(m<0?_=_.takeRight(-m):m&&(_=_.drop(m)),v!==n&&(v=pr(v),_=v<0?_.dropRight(-v):_.take(v-m)),_)},ur.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},ur.prototype.toArray=function(){return this.take(Te)},Qu(ur.prototype,function(m,v){var _=/^(?:filter|find|map|reject)|While$/.test(v),j=/^(?:head|last)$/.test(v),re=se[j?"take"+(v=="last"?"Right":""):v],ce=j||/^find/.test(v);re&&(se.prototype[v]=function(){var ke=this.__wrapped__,Ne=j?[1]:arguments,Ge=ke instanceof ur,xt=Ne[0],Tt=Ge||sr(ke),Rt=function(Ar){var Fr=re.apply(se,Fl([Ar],Ne));return j&&an?Fr[0]:Fr};Tt&&_&&typeof xt=="function"&&xt.length!=1&&(Ge=Tt=!1);var an=this.__chain__,_n=!!this.__actions__.length,Xn=ce&&!an,vr=Ge&&!_n;if(!ce&&Tt){ke=vr?ke:new ur(this);var Kn=m.apply(ke,Ne);return Kn.__actions__.push({func:dC,args:[Rt],thisArg:n}),new Ro(Kn,an)}return Xn&&vr?m.apply(this,Ne):(Kn=this.thru(Rt),Xn?j?Kn.value()[0]:Kn.value():Kn)})}),Ao(["pop","push","shift","sort","splice","unshift"],function(m){var v=Zn[m],_=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",j=/^(?:pop|shift)$/.test(m);se.prototype[m]=function(){var re=arguments;if(j&&!this.__chain__){var ce=this.value();return v.apply(sr(ce)?ce:[],re)}return this[_](function(ke){return v.apply(sr(ke)?ke:[],re)})}}),Qu(ur.prototype,function(m,v){var _=se[v];if(_){var j=_.name+"";kr.call(ea,j)||(ea[j]=[]),ea[j].push({name:v,func:_})}}),ea[Gl(n,E).name]=[{name:"wrapper",func:n}],ur.prototype.clone=ka,ur.prototype.reverse=Ti,ur.prototype.value=db,se.prototype.at=XOe,se.prototype.chain=KOe,se.prototype.commit=JOe,se.prototype.next=eSe,se.prototype.plant=nSe,se.prototype.reverse=rSe,se.prototype.toJSON=se.prototype.valueOf=se.prototype.value=iSe,se.prototype.first=se.prototype.head,uh&&(se.prototype[uh]=tSe),se},Ip=q6();Ld?((Ld.exports=Ip)._=Ip,Y1._=Ip):Ba._=Ip}).call(mf)})(z3,z3.exports);var FZe=z3.exports;const BZe=xd(FZe),UZe=fn.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:"0px 2px 0px 4px"},".cm-ySelectionCaret":{position:"relative",borderLeft:"1px solid black",borderRight:"1px solid black",marginLeft:"-1px",marginRight:"-1px",boxSizing:"border-box",display:"inline"},".cm-ySelectionCaretDot":{borderRadius:"50%",position:"absolute",width:".4em",height:".4em",top:"-.2em",left:"-.2em",backgroundColor:"inherit",transition:"transform .3s ease-in-out",boxSizing:"border-box"},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:"bottom center",transform:"scale(0)"},".cm-ySelectionInfo":{position:"absolute",top:"-1.05em",left:"-1px",fontSize:".75em",fontFamily:"serif",fontStyle:"normal",fontWeight:"normal",lineHeight:"normal",userSelect:"none",color:"black",paddingLeft:"2px",paddingRight:"2px",zIndex:101,transition:"opacity .3s ease-in-out",backgroundColor:"inherit",transitionDelay:"0s",whiteSpace:"nowrap"}}),zZe=Cd.define();class jZe extends Ad{constructor(n,r){super();Ls(this,"color");Ls(this,"name");this.color=n,this.name=r}toDOM(){return j4("span",[Fg("class","cm-ySelectionCaret"),Fg("style",`background-color: ${this.color}; border-color: ${this.color}`)],[wA("⁠"),j4("div",[Fg("class","cm-ySelectionCaretDot")]),wA("⁠"),j4("div",[Fg("class","cm-ySelectionInfo")],[wA(this.name)]),wA("⁠")])}eq(n){return n.color===this.color}compare(n){return n.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class HZe{constructor(t){Ls(this,"conf");Ls(this,"decorations");Ls(this,"unsubscribe");this.conf=t.state.facet($B),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[zZe.of([])]})}),this.decorations=Br.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]);BZe.isEqual(o,i.get("selection"))||i.set({selection:o})}else i.get("selection")&&i.set({selection:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(o),c=t.view.state.doc.lineAt(l);if(u.number===c.number)n.push({from:o,to:l,value:An.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:u.from+u.length,value:An.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:c.from,to:l,value:An.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let f=u.number+1;f0?-1:1,block:!1,widget:new jZe(a,s)})})}),this.decorations=An.set(n,!0)}}const VZe=ua.fromClass(HZe,{decorations:e=>e.decorations});function WZe(e,t){const n=new CZe(e,t),r=[$B.of(n),_Ze];return t&&r.push(UZe,VZe),r}var ape=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=fn.theme(i,{dark:t==="dark"}),l=wT.define(r),u=[o,Fde(l)];return u},QZe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function qZe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ape({theme:t,settings:M({},QZe,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#707F8D"},{tag:[Ee.typeName,Ee.typeOperator],color:"#aa0d91"},{tag:[Ee.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#D23423"},{tag:[Ee.name],color:"#032f62"},{tag:[Ee.typeName],color:"#522BB2"},{tag:[Ee.variableName],color:"#23575C"},{tag:[Ee.definition(Ee.variableName)],color:"#327A9E"},{tag:[Ee.regexp,Ee.link],color:"#0e0eff"},...r]})}var GZe=qZe(),YZe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},ZZe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ape({theme:t,settings:M({},YZe,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#7F8C98"},{tag:[Ee.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#FF8170"},{tag:[Ee.typeName],color:"#DABAFF"},{tag:[Ee.definition(Ee.variableName)],color:"#6BDFFF"},{tag:[Ee.name],color:"#6BAA9F"},{tag:[Ee.variableName],color:"#ACF2E4"},{tag:[Ee.regexp,Ee.link],color:"#FF8170"},...r]})},XZe=ZZe();function CT(){const e=TO("(prefers-color-scheme: dark)"),t=pi(MF);return N.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}const spe="yorkie-intelligence-header",FB="yorkie-intelligence-footer";class cee extends Ad{constructor(n,r,i){super();Ls(this,"id");Ls(this,"content");Ls(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return j4("span",[Fg("id",this.id),Fg("content",this.content),Fg("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class KZe{constructor(){Ls(this,"decorations");this.decorations=Br.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:An.widget({side:1,block:!1,widget:new cee(spe,a,r)})}),n.push({from:r.to,to:r.to,value:An.widget({side:1,block:!1,widget:new cee(FB,a,r)})})}this.decorations=An.set(n,!0)}}const JZe=ua.fromClass(KZe,{decorations:e=>e.decorations}),dee=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),fee=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` ![image](${e}) -`,o=a+s.length;n.update((l,u)=>{l.content.edit(i,a,s),u.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},GZe=(e,t)=>fn.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||cee(n.clipboardData.files,e).then(s=>s.forEach(o=>dee(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||cee(n.dataTransfer.files,e).then(s=>s.forEach(o=>dee(o,r,t)))}}),YZe=()=>T0({mutationFn:async e=>(await Sr.post("/files",e)).data}),ZZe=()=>T0({mutationFn:async e=>Sr.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})});var ope={exports:{}};(function(e,t){(function(r,i){e.exports=i(N)})(mf,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=u}catch{o=u}})();function c(C){if(s===setTimeout)return setTimeout(C,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(C,0);try{return s(C,0)}catch{try{return s.call(null,C,0)}catch{return s.call(this,C,0)}}}function f(C){if(o===clearTimeout)return clearTimeout(C);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(C);try{return o(C)}catch{try{return o.call(null,C)}catch{return o.call(this,C)}}}var h=[],g=!1,b,S=-1;function E(){!g||!b||(g=!1,b.length?h=b.concat(h):S=-1,h.length&&w())}function w(){if(!g){var C=c(E);g=!0;for(var R=h.length;R;){for(b=h,h=[];++S1)for(var A=1;A1?h-1:0),b=1;b2?g-2:0),S=2;S0&&A.syncScrollPosition(A.panes[Z][0],W),A.panes[Z].push(W))}),A.addEvents(W,V)},A.unregisterPane=function(W,V){V.forEach(function(Z){A.findPane(W,Z)&&(A.removeEvents(W),A.panes[Z].splice(A.panes[Z].indexOf(W),1))})},A.addEvents=function(W,V){W.onscroll=A.handlePaneScroll.bind(A,W,V)},A.removeEvents=function(W){W.onscroll=null},A.findPane=function(W,V){return A.panes[V]?A.panes[V].find(function(Z){return Z===W}):!1},A.handlePaneScroll=function(W,V){A.props.enabled&&window.requestAnimationFrame(function(){A.syncScrollPositions(W,V)})},A.syncScrollPositions=function(W,V){V.forEach(function(Z){A.panes[Z].forEach(function(Q){W!==Q&&(A.removeEvents(Q,Z),A.syncScrollPosition(W,Q),window.requestAnimationFrame(function(){A.addEvents(Q,V)}))})}),A.props.onSync&&A.props.onSync(W)},R),S(A,D)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(R,A){var D=R.scrollTop,B=R.scrollHeight,L=R.clientHeight,F=R.scrollLeft,W=R.scrollWidth,V=R.clientWidth,Z=B-L,Q=W-V,H=this.props,J=H.proportional,K=H.vertical,X=H.horizontal,te=A.scrollHeight-L,z=A.scrollWidth-V;K&&Z>0&&(A.scrollTop=J?te*D/Z:D),X&&Q>0&&(A.scrollLeft=J?z*F/Q:F)}},{key:"render",value:function(){return l.default.createElement(h.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);w.propTypes={onSync:c.default.func,children:c.default.element.isRequired,proportional:c.default.bool,vertical:c.default.bool,horizontal:c.default.bool,enabled:c.default.bool},w.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=w,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function w(x,k){for(var C=0;C"u"||be===null)return""+be;var ee=X(be);if(ee==="object"){if(be instanceof Date)return"date";if(be instanceof RegExp)return"regexp"}return ee}function z(be){var ee=te(be);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function Te(be){return!be.constructor||!be.constructor.name?w:be.constructor.name}return x.checkPropTypes=f,x.PropTypes=x,x}}).call(i,a(0))}])})})(ope);var hL=ope.exports;const XZe={yorkieIntelligence:null,fileUpload:null},lpe=k1({name:"setting",initialState:XZe,reducers:{setYorkieIntelligence:(e,t)=>{e.yorkieIntelligence=t.payload},setFileUpload:(e,t)=>{e.fileUpload=t.payload}}}),{setYorkieIntelligence:KZe,setFileUpload:JZe}=lpe.actions,rI=e=>e.setting,eXe=lpe.reducer;function fee(){var c;const e=Du(),t=kT(),[n,r]=N.useState(),i=pi(AO),a=pi(rI),s=pi(pT),{mutateAsync:o}=YZe(),{mutateAsync:l}=ZZe(),u=N.useCallback(f=>{f&&r(f)},[]);return N.useEffect(()=>{var b,S;let f;if(!n||!i.doc||!i.client||typeof((b=a.fileUpload)==null?void 0:b.enable)!="boolean")return;const h=async E=>{if(!s.data)return"";const w=await o({workspaceId:s.data.id,contentLength:new Blob([E]).size,contentType:E.type});return await l({...w,file:E}),`https://codepair-api.yorkie.dev/files/${w.fileKey}`},g=Hr.create({doc:((S=i.doc.getRoot().content)==null?void 0:S.toString())??"",extensions:[xqe,yZe(),BZe(i.doc,i.client),t=="light"?jZe:WZe,fn.theme({"&":{width:"100%"}}),fn.lineWrapping,IO.of([VWe]),qZe,...a.fileUpload.enable?[GZe(h,i.doc)]:[]]});return f=new fn({state:g,parent:n}),e(CBe(f)),()=>{f==null||f.destroy()}},[e,i.client,i.doc,n,t,s.data,o,l,(c=a.fileUpload)==null?void 0:c.enable]),I.jsx(hL.ScrollSyncPane,{children:I.jsx("div",{style:{height:"100%",overflow:"auto"},children:I.jsx("div",{ref:u,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}})})})}function y1(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function FB(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const tXe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nXe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rXe={};function hee(e,t){return((t||rXe).jsx?nXe:tXe).test(e)}const iXe=/[ \t\n\f\r]/g;function upe(e){return typeof e=="object"?e.type==="text"?pee(e.value):!1:pee(e)}function pee(e){return e.replace(iXe,"")===""}class CT{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}CT.prototype.property={};CT.prototype.normal={};CT.prototype.space=null;function cpe(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&uXe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(gee,fXe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!gee.test(a)){let s=a.replace(cXe,dXe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=BB}return new i(r,t)}function dXe(e){return"-"+e.toLowerCase()}function fXe(e){return e.charAt(1).toUpperCase()}const hXe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},A0=cpe([hpe,fpe,gpe,bpe,oXe],"html"),Id=cpe([hpe,fpe,gpe,bpe,lXe],"svg");function c0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function UB(e){return e.join(" ").trim()}var ype={},bee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,pXe=/\n/g,mXe=/^\s*/,gXe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,bXe=/^:\s*/,yXe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,vXe=/^[;\s]*/,OXe=/^\s+|\s+$/g,SXe=` -`,yee="/",vee="*",kg="",EXe="comment",wXe="declaration",xXe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var S=b.match(pXe);S&&(n+=S.length);var E=b.lastIndexOf(SXe);r=~E?b.length-E:r+b.length}function a(){var b={line:n,column:r};return function(S){return S.position=new s(b),u(),S}}function s(b){this.start=b,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(b){var S=new Error(t.source+":"+n+":"+r+": "+b);if(S.reason=b,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(b){var S=b.exec(e);if(S){var E=S[0];return i(E),e=e.slice(E.length),S}}function u(){l(mXe)}function c(b){var S;for(b=b||[];S=f();)S!==!1&&b.push(S);return b}function f(){var b=a();if(!(yee!=e.charAt(0)||vee!=e.charAt(1))){for(var S=2;kg!=e.charAt(S)&&(vee!=e.charAt(S)||yee!=e.charAt(S+1));)++S;if(S+=2,kg===e.charAt(S-1))return o("End of comment missing");var E=e.slice(2,S-2);return r+=2,i(E),e=e.slice(S),r+=2,b({type:EXe,comment:E})}}function h(){var b=a(),S=l(gXe);if(S){if(f(),!l(bXe))return o("property missing ':'");var E=l(yXe),w=b({type:wXe,property:Oee(S[0].replace(bee,kg)),value:E?Oee(E[0].replace(bee,kg)):kg});return l(vXe),w}}function g(){var b=[];c(b);for(var S;S=h();)S!==!1&&(b.push(S),c(b));return b}return u(),g()};function Oee(e){return e?e.replace(OXe,kg):kg}var TXe=mf&&mf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ype,"__esModule",{value:!0});var kXe=TXe(xXe);function CXe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,kXe.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}var See=ype.default=CXe;const AXe=See.default||See,iI=vpe("end"),Zf=vpe("start");function vpe(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function _Xe(e){const t=Zf(e),n=iI(e);if(t&&n)return{start:t,end:n}}function U2(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Eee(e.position):"start"in e||"end"in e?Eee(e):"line"in e||"column"in e?mL(e):""}function mL(e){return wee(e&&e.line)+":"+wee(e&&e.column)}function Eee(e){return mL(e&&e.start)+"-"+mL(e&&e.end)}function wee(e){return e&&typeof e=="number"?e:1}class xo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=U2(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}xo.prototype.file="";xo.prototype.name="";xo.prototype.reason="";xo.prototype.message="";xo.prototype.stack="";xo.prototype.column=void 0;xo.prototype.line=void 0;xo.prototype.ancestors=void 0;xo.prototype.cause=void 0;xo.prototype.fatal=void 0;xo.prototype.place=void 0;xo.prototype.ruleId=void 0;xo.prototype.source=void 0;const zB={}.hasOwnProperty,RXe=new Map,IXe=/[A-Z]/g,DXe=/-([a-z])/g,NXe=new Set(["table","tbody","thead","tfoot","tr"]),PXe=new Set(["td","th"]),Ope="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function MXe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=HXe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=jXe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Id:A0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Spe(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Spe(e,t,n){if(t.type==="element")return LXe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return $Xe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return BXe(e,t,n);if(t.type==="mdxjsEsm")return FXe(e,t);if(t.type==="root")return UXe(e,t,n);if(t.type==="text")return zXe(e,t)}function LXe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Id,e.schema=i),e.ancestors.push(t);const a=wpe(e,t.tagName,!1),s=VXe(e,t);let o=HB(e,t);return NXe.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!upe(l):!0})),Epe(e,s,a,t),jB(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function $Xe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ux(e,t.position)}function FXe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ux(e,t.position)}function BXe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Id,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:wpe(e,t.name,!0),s=WXe(e,t),o=HB(e,t);return Epe(e,s,a,t),jB(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function UXe(e,t,n){const r={};return jB(r,HB(e,t)),e.create(t,e.Fragment,r,n)}function zXe(e,t){return t.value}function Epe(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function jB(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function jXe(e,t,n){return r;function r(i,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function HXe(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=Zf(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function VXe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&zB.call(t.properties,i)){const a=QXe(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&PXe.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function WXe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ux(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ux(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function HB(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:RXe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(wu(e,e.length,0,t),e):t}const kee={}.hasOwnProperty;function Tpe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function gd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vo=_0(/[A-Za-z]/),bo=_0(/[\dA-Za-z]/),nKe=_0(/[#-'*+\--9=?A-Z^-~]/);function B3(e){return e!==null&&(e<32||e===127)}const gL=_0(/\d/),rKe=_0(/[\dA-Fa-f]/),iKe=_0(/[!-/:-@[-`{-~]/);function Mn(e){return e!==null&&e<-2}function wi(e){return e!==null&&(e<0||e===32)}function Ir(e){return e===-2||e===-1||e===32}const aI=_0(new RegExp("\\p{P}|\\p{S}","u")),v1=_0(/\s/);function _0(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function FO(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Tr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Ir(l)?(e.enter(n),o(l)):t(l)}function o(l){return Ir(l)&&a++s))return;const D=t.events.length;let B=D,L,F;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(L){F=t.events[B][1].end;break}L=!0}for(w(r),A=D;Ak;){const R=n[C];t.containerState=R[1],R[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function uKe(e,t,n){return Tr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function U3(e){if(e===null||wi(e)||v1(e))return 1;if(aI(e))return 2}function sI(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);Aee(f,-l),Aee(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=oc(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=oc(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=oc(u,sI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=oc(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=oc(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,wu(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Ir(A)?Tr(e,x,"linePrefix",a+1)(A):x(A)}function x(A){return A===null||Mn(A)?e.check(_ee,S,C)(A):(e.enter("codeFlowValue"),k(A))}function k(A){return A===null||Mn(A)?(e.exit("codeFlowValue"),x(A)):(e.consume(A),k)}function C(A){return e.exit("codeFenced"),t(A)}function R(A,D,B){let L=0;return F;function F(H){return A.enter("lineEnding"),A.consume(H),A.exit("lineEnding"),W}function W(H){return A.enter("codeFencedFence"),Ir(H)?Tr(A,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):V(H)}function V(H){return H===o?(A.enter("codeFencedFenceSequence"),Z(H)):B(H)}function Z(H){return H===o?(L++,A.consume(H),Z):L>=s?(A.exit("codeFencedFenceSequence"),Ir(H)?Tr(A,Q,"whitespace")(H):Q(H)):B(H)}function Q(H){return H===null||Mn(H)?(A.exit("codeFencedFence"),D(H)):B(H)}}}function SKe(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const yP={name:"codeIndented",tokenize:wKe},EKe={tokenize:xKe,partial:!0};function wKe(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Tr(e,a,"linePrefix",5)(u)}function a(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):Mn(u)?e.attempt(EKe,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||Mn(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function xKe(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Tr(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Mn(s)?i(s):n(s)}}const TKe={name:"codeText",tokenize:AKe,resolve:kKe,previous:CKe};function kKe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Ipe(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),h):w===null||w===32||w===41||B3(w)?n(w):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(w))}function h(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(e.exit("chunkString"),e.exit(o),h(w)):w===null||w===60||Mn(w)?n(w):(e.consume(w),w===92?b:g)}function b(w){return w===60||w===62||w===92?(e.consume(w),g):g(w)}function S(w){return!c&&(w===null||w===41||wi(w))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(w)):c999||g===null||g===91||g===93&&!l||g===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):Mn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||Mn(g)||o++>999?(e.exit("chunkString"),c(g)):(e.consume(g),l||(l=!Ir(g)),g===92?h:f)}function h(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function Npe(e,t,n,r,i,a){let s;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,l):n(h)}function l(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),u(h))}function u(h){return h===s?(e.exit(a),l(s)):h===null?n(h):Mn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Tr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||Mn(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===s||h===92?(e.consume(h),c):c(h)}}function z2(e,t){let n;return r;function r(i){return Mn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ir(i)?Tr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const MKe={name:"definition",tokenize:$Ke},LKe={tokenize:FKe,partial:!0};function $Ke(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),s(g)}function s(g){return Dpe.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function o(g){return i=gd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return wi(g)?z2(e,u)(g):u(g)}function u(g){return Ipe(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function c(g){return e.attempt(LKe,f,f)(g)}function f(g){return Ir(g)?Tr(e,h,"whitespace")(g):h(g)}function h(g){return g===null||Mn(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function FKe(e,t,n){return r;function r(o){return wi(o)?z2(e,i)(o):n(o)}function i(o){return Npe(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ir(o)?Tr(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Mn(o)?t(o):n(o)}}const BKe={name:"hardBreakEscape",tokenize:UKe};function UKe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Mn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const zKe={name:"headingAtx",tokenize:HKe,resolve:jKe};function jKe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},wu(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function HKe(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||wi(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Mn(c)?(e.exit("atxHeading"),t(c)):Ir(c)?Tr(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||wi(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const VKe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Iee=["pre","script","style","textarea"],WKe={name:"htmlFlow",tokenize:YKe,resolveTo:GKe,concrete:!0},QKe={tokenize:XKe,partial:!0},qKe={tokenize:ZKe,partial:!0};function GKe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function YKe(e,t,n){const r=this;let i,a,s,o,l;return u;function u(ee){return c(ee)}function c(ee){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ee),f}function f(ee){return ee===33?(e.consume(ee),h):ee===47?(e.consume(ee),a=!0,S):ee===63?(e.consume(ee),i=3,r.interrupt?t:z):Vo(ee)?(e.consume(ee),s=String.fromCharCode(ee),E):n(ee)}function h(ee){return ee===45?(e.consume(ee),i=2,g):ee===91?(e.consume(ee),i=5,o=0,b):Vo(ee)?(e.consume(ee),i=4,r.interrupt?t:z):n(ee)}function g(ee){return ee===45?(e.consume(ee),r.interrupt?t:z):n(ee)}function b(ee){const ye="CDATA[";return ee===ye.charCodeAt(o++)?(e.consume(ee),o===ye.length?r.interrupt?t:V:b):n(ee)}function S(ee){return Vo(ee)?(e.consume(ee),s=String.fromCharCode(ee),E):n(ee)}function E(ee){if(ee===null||ee===47||ee===62||wi(ee)){const ye=ee===47,Oe=s.toLowerCase();return!ye&&!a&&Iee.includes(Oe)?(i=1,r.interrupt?t(ee):V(ee)):VKe.includes(s.toLowerCase())?(i=6,ye?(e.consume(ee),w):r.interrupt?t(ee):V(ee)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(ee):a?x(ee):k(ee))}return ee===45||bo(ee)?(e.consume(ee),s+=String.fromCharCode(ee),E):n(ee)}function w(ee){return ee===62?(e.consume(ee),r.interrupt?t:V):n(ee)}function x(ee){return Ir(ee)?(e.consume(ee),x):F(ee)}function k(ee){return ee===47?(e.consume(ee),F):ee===58||ee===95||Vo(ee)?(e.consume(ee),C):Ir(ee)?(e.consume(ee),k):F(ee)}function C(ee){return ee===45||ee===46||ee===58||ee===95||bo(ee)?(e.consume(ee),C):R(ee)}function R(ee){return ee===61?(e.consume(ee),A):Ir(ee)?(e.consume(ee),R):k(ee)}function A(ee){return ee===null||ee===60||ee===61||ee===62||ee===96?n(ee):ee===34||ee===39?(e.consume(ee),l=ee,D):Ir(ee)?(e.consume(ee),A):B(ee)}function D(ee){return ee===l?(e.consume(ee),l=null,L):ee===null||Mn(ee)?n(ee):(e.consume(ee),D)}function B(ee){return ee===null||ee===34||ee===39||ee===47||ee===60||ee===61||ee===62||ee===96||wi(ee)?R(ee):(e.consume(ee),B)}function L(ee){return ee===47||ee===62||Ir(ee)?k(ee):n(ee)}function F(ee){return ee===62?(e.consume(ee),W):n(ee)}function W(ee){return ee===null||Mn(ee)?V(ee):Ir(ee)?(e.consume(ee),W):n(ee)}function V(ee){return ee===45&&i===2?(e.consume(ee),J):ee===60&&i===1?(e.consume(ee),K):ee===62&&i===4?(e.consume(ee),Te):ee===63&&i===3?(e.consume(ee),z):ee===93&&i===5?(e.consume(ee),te):Mn(ee)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(QKe,be,Z)(ee)):ee===null||Mn(ee)?(e.exit("htmlFlowData"),Z(ee)):(e.consume(ee),V)}function Z(ee){return e.check(qKe,Q,be)(ee)}function Q(ee){return e.enter("lineEnding"),e.consume(ee),e.exit("lineEnding"),H}function H(ee){return ee===null||Mn(ee)?Z(ee):(e.enter("htmlFlowData"),V(ee))}function J(ee){return ee===45?(e.consume(ee),z):V(ee)}function K(ee){return ee===47?(e.consume(ee),s="",X):V(ee)}function X(ee){if(ee===62){const ye=s.toLowerCase();return Iee.includes(ye)?(e.consume(ee),Te):V(ee)}return Vo(ee)&&s.length<8?(e.consume(ee),s+=String.fromCharCode(ee),X):V(ee)}function te(ee){return ee===93?(e.consume(ee),z):V(ee)}function z(ee){return ee===62?(e.consume(ee),Te):ee===45&&i===2?(e.consume(ee),z):V(ee)}function Te(ee){return ee===null||Mn(ee)?(e.exit("htmlFlowData"),be(ee)):(e.consume(ee),Te)}function be(ee){return e.exit("htmlFlow"),t(ee)}}function ZKe(e,t,n){const r=this;return i;function i(s){return Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function XKe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(AT,t,n)}}const KKe={name:"htmlText",tokenize:JKe};function JKe(e,t,n){const r=this;let i,a,s;return o;function o(z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(z),l}function l(z){return z===33?(e.consume(z),u):z===47?(e.consume(z),R):z===63?(e.consume(z),k):Vo(z)?(e.consume(z),B):n(z)}function u(z){return z===45?(e.consume(z),c):z===91?(e.consume(z),a=0,b):Vo(z)?(e.consume(z),x):n(z)}function c(z){return z===45?(e.consume(z),g):n(z)}function f(z){return z===null?n(z):z===45?(e.consume(z),h):Mn(z)?(s=f,K(z)):(e.consume(z),f)}function h(z){return z===45?(e.consume(z),g):f(z)}function g(z){return z===62?J(z):z===45?h(z):f(z)}function b(z){const Te="CDATA[";return z===Te.charCodeAt(a++)?(e.consume(z),a===Te.length?S:b):n(z)}function S(z){return z===null?n(z):z===93?(e.consume(z),E):Mn(z)?(s=S,K(z)):(e.consume(z),S)}function E(z){return z===93?(e.consume(z),w):S(z)}function w(z){return z===62?J(z):z===93?(e.consume(z),w):S(z)}function x(z){return z===null||z===62?J(z):Mn(z)?(s=x,K(z)):(e.consume(z),x)}function k(z){return z===null?n(z):z===63?(e.consume(z),C):Mn(z)?(s=k,K(z)):(e.consume(z),k)}function C(z){return z===62?J(z):k(z)}function R(z){return Vo(z)?(e.consume(z),A):n(z)}function A(z){return z===45||bo(z)?(e.consume(z),A):D(z)}function D(z){return Mn(z)?(s=D,K(z)):Ir(z)?(e.consume(z),D):J(z)}function B(z){return z===45||bo(z)?(e.consume(z),B):z===47||z===62||wi(z)?L(z):n(z)}function L(z){return z===47?(e.consume(z),J):z===58||z===95||Vo(z)?(e.consume(z),F):Mn(z)?(s=L,K(z)):Ir(z)?(e.consume(z),L):J(z)}function F(z){return z===45||z===46||z===58||z===95||bo(z)?(e.consume(z),F):W(z)}function W(z){return z===61?(e.consume(z),V):Mn(z)?(s=W,K(z)):Ir(z)?(e.consume(z),W):L(z)}function V(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),i=z,Z):Mn(z)?(s=V,K(z)):Ir(z)?(e.consume(z),V):(e.consume(z),Q)}function Z(z){return z===i?(e.consume(z),i=void 0,H):z===null?n(z):Mn(z)?(s=Z,K(z)):(e.consume(z),Z)}function Q(z){return z===null||z===34||z===39||z===60||z===61||z===96?n(z):z===47||z===62||wi(z)?L(z):(e.consume(z),Q)}function H(z){return z===47||z===62||wi(z)?L(z):n(z)}function J(z){return z===62?(e.consume(z),e.exit("htmlTextData"),e.exit("htmlText"),t):n(z)}function K(z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),X}function X(z){return Ir(z)?Tr(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):te(z)}function te(z){return e.enter("htmlTextData"),s(z)}}const WB={name:"labelEnd",tokenize:aJe,resolveTo:iJe,resolveAll:rJe},eJe={tokenize:sJe},tJe={tokenize:oJe},nJe={tokenize:lJe};function rJe(e){let t=-1;for(;++t=3&&(u===null||Mn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ir(u)?Tr(e,o,"whitespace")(u):o(u))}}const dl={name:"list",tokenize:bJe,continuation:{tokenize:yJe},exit:OJe},mJe={tokenize:SJe,partial:!0},gJe={tokenize:vJe,partial:!0};function bJe(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:gL(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(j4,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return gL(g)&&++s<10?(e.consume(g),l):(!r.interrupt||s<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(AT,r.interrupt?n:c,e.attempt(mJe,h,f))}function c(g){return r.containerState.initialBlankLine=!0,a++,h(g)}function f(g){return Ir(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),h):n(g)}function h(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function yJe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(AT,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Tr(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ir(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gJe,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Tr(e,e.attempt(dl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function vJe(e,t,n){const r=this;return Tr(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function OJe(e){e.exit(this.containerState.type)}function SJe(e,t,n){const r=this;return Tr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ir(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Dee={name:"setextUnderline",tokenize:wJe,resolveTo:EJe};function EJe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function wJe(e,t,n){const r=this;let i;return a;function a(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Ir(u)?Tr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Mn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const xJe={tokenize:TJe};function TJe(e){const t=this,n=e.attempt(AT,r,e.attempt(this.parser.constructs.flowInitial,i,Tr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(RKe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const kJe={resolveAll:Mpe()},CJe=Ppe("string"),AJe=Ppe("text");function Ppe(e){return{tokenize:t,resolveAll:Mpe(e==="text"?_Je:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return u(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),a(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function DJe(e,t){let n=-1;const r=[];let i;for(;++n{l.content.edit(i,a,s),u.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},eXe=(e,t)=>fn.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||dee(n.clipboardData.files,e).then(s=>s.forEach(o=>fee(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||dee(n.dataTransfer.files,e).then(s=>s.forEach(o=>fee(o,r,t)))}}),tXe=()=>T0({mutationFn:async e=>(await Er.post("/files",e)).data}),nXe=()=>T0({mutationFn:async e=>Er.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})});var ope={exports:{}};(function(e,t){(function(r,i){e.exports=i(N)})(mf,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=u}catch{o=u}})();function c(C){if(s===setTimeout)return setTimeout(C,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(C,0);try{return s(C,0)}catch{try{return s.call(null,C,0)}catch{return s.call(this,C,0)}}}function f(C){if(o===clearTimeout)return clearTimeout(C);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(C);try{return o(C)}catch{try{return o.call(null,C)}catch{return o.call(this,C)}}}var h=[],g=!1,b,S=-1;function w(){!g||!b||(g=!1,b.length?h=b.concat(h):S=-1,h.length&&E())}function E(){if(!g){var C=c(w);g=!0;for(var R=h.length;R;){for(b=h,h=[];++S1)for(var A=1;A1?h-1:0),b=1;b2?g-2:0),S=2;S0&&A.syncScrollPosition(A.panes[Z][0],W),A.panes[Z].push(W))}),A.addEvents(W,V)},A.unregisterPane=function(W,V){V.forEach(function(Z){A.findPane(W,Z)&&(A.removeEvents(W),A.panes[Z].splice(A.panes[Z].indexOf(W),1))})},A.addEvents=function(W,V){W.onscroll=A.handlePaneScroll.bind(A,W,V)},A.removeEvents=function(W){W.onscroll=null},A.findPane=function(W,V){return A.panes[V]?A.panes[V].find(function(Z){return Z===W}):!1},A.handlePaneScroll=function(W,V){A.props.enabled&&window.requestAnimationFrame(function(){A.syncScrollPositions(W,V)})},A.syncScrollPositions=function(W,V){V.forEach(function(Z){A.panes[Z].forEach(function(Q){W!==Q&&(A.removeEvents(Q,Z),A.syncScrollPosition(W,Q),window.requestAnimationFrame(function(){A.addEvents(Q,V)}))})}),A.props.onSync&&A.props.onSync(W)},R),S(A,D)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(R,A){var D=R.scrollTop,B=R.scrollHeight,L=R.clientHeight,F=R.scrollLeft,W=R.scrollWidth,V=R.clientWidth,Z=B-L,Q=W-V,H=this.props,J=H.proportional,K=H.vertical,X=H.horizontal,te=A.scrollHeight-L,z=A.scrollWidth-V;K&&Z>0&&(A.scrollTop=J?te*D/Z:D),X&&Q>0&&(A.scrollLeft=J?z*F/Q:F)}},{key:"render",value:function(){return l.default.createElement(h.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);E.propTypes={onSync:c.default.func,children:c.default.element.isRequired,proportional:c.default.bool,vertical:c.default.bool,horizontal:c.default.bool,enabled:c.default.bool},E.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=E,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function E(x,k){for(var C=0;C"u"||be===null)return""+be;var ee=X(be);if(ee==="object"){if(be instanceof Date)return"date";if(be instanceof RegExp)return"regexp"}return ee}function z(be){var ee=te(be);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function Te(be){return!be.constructor||!be.constructor.name?E:be.constructor.name}return x.checkPropTypes=f,x.PropTypes=x,x}}).call(i,a(0))}])})})(ope);var pL=ope.exports;const rXe={yorkieIntelligence:null,fileUpload:null},lpe=k1({name:"setting",initialState:rXe,reducers:{setYorkieIntelligence:(e,t)=>{e.yorkieIntelligence=t.payload},setFileUpload:(e,t)=>{e.fileUpload=t.payload}}}),{setYorkieIntelligence:iXe,setFileUpload:aXe}=lpe.actions,aI=e=>e.setting,sXe=lpe.reducer;function hee(){var c;const e=Du(),t=CT(),[n,r]=N.useState(),i=pi(AO),a=pi(aI),s=pi(mT),{mutateAsync:o}=tXe(),{mutateAsync:l}=nXe(),u=N.useCallback(f=>{f&&r(f)},[]);return N.useEffect(()=>{var b,S;let f;if(!n||!i.doc||!i.client||typeof((b=a.fileUpload)==null?void 0:b.enable)!="boolean")return;const h=async w=>{if(!s.data)return"";const E=await o({workspaceId:s.data.id,contentLength:new Blob([w]).size,contentType:w.type});return await l({...E,file:w}),`https://codepair-api.yorkie.dev/files/${E.fileKey}`},g=Hr.create({doc:((S=i.doc.getRoot().content)==null?void 0:S.toString())??"",extensions:[Rqe,xZe(),WZe(i.doc,i.client),t=="light"?GZe:XZe,fn.theme({"&":{width:"100%"}}),fn.lineWrapping,IO.of([ZWe]),JZe,...a.fileUpload.enable?[eXe(h,i.doc)]:[]]});return f=new fn({state:g,parent:n}),e(NBe(f)),()=>{f==null||f.destroy()}},[e,i.client,i.doc,n,t,s.data,o,l,(c=a.fileUpload)==null?void 0:c.enable]),I.jsx(pL.ScrollSyncPane,{children:I.jsx("div",{style:{height:"100%",overflow:"auto"},children:I.jsx("div",{ref:u,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}})})})}function y1(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function BB(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const oXe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lXe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uXe={};function pee(e,t){return((t||uXe).jsx?lXe:oXe).test(e)}const cXe=/[ \t\n\f\r]/g;function upe(e){return typeof e=="object"?e.type==="text"?mee(e.value):!1:mee(e)}function mee(e){return e.replace(cXe,"")===""}class AT{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}AT.prototype.property={};AT.prototype.normal={};AT.prototype.space=null;function cpe(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&mXe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(bee,yXe);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!bee.test(a)){let s=a.replace(gXe,bXe);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=UB}return new i(r,t)}function bXe(e){return"-"+e.toLowerCase()}function yXe(e){return e.charAt(1).toUpperCase()}const vXe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},A0=cpe([hpe,fpe,gpe,bpe,hXe],"html"),Id=cpe([hpe,fpe,gpe,bpe,pXe],"svg");function c0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function zB(e){return e.join(" ").trim()}var ype={},yee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,OXe=/\n/g,SXe=/^\s*/,EXe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wXe=/^:\s*/,xXe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,TXe=/^[;\s]*/,kXe=/^\s+|\s+$/g,CXe=` +`,vee="/",Oee="*",kg="",AXe="comment",_Xe="declaration",RXe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var S=b.match(OXe);S&&(n+=S.length);var w=b.lastIndexOf(CXe);r=~w?b.length-w:r+b.length}function a(){var b={line:n,column:r};return function(S){return S.position=new s(b),u(),S}}function s(b){this.start=b,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(b){var S=new Error(t.source+":"+n+":"+r+": "+b);if(S.reason=b,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(b){var S=b.exec(e);if(S){var w=S[0];return i(w),e=e.slice(w.length),S}}function u(){l(SXe)}function c(b){var S;for(b=b||[];S=f();)S!==!1&&b.push(S);return b}function f(){var b=a();if(!(vee!=e.charAt(0)||Oee!=e.charAt(1))){for(var S=2;kg!=e.charAt(S)&&(Oee!=e.charAt(S)||vee!=e.charAt(S+1));)++S;if(S+=2,kg===e.charAt(S-1))return o("End of comment missing");var w=e.slice(2,S-2);return r+=2,i(w),e=e.slice(S),r+=2,b({type:AXe,comment:w})}}function h(){var b=a(),S=l(EXe);if(S){if(f(),!l(wXe))return o("property missing ':'");var w=l(xXe),E=b({type:_Xe,property:See(S[0].replace(yee,kg)),value:w?See(w[0].replace(yee,kg)):kg});return l(TXe),E}}function g(){var b=[];c(b);for(var S;S=h();)S!==!1&&(b.push(S),c(b));return b}return u(),g()};function See(e){return e?e.replace(kXe,kg):kg}var IXe=mf&&mf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ype,"__esModule",{value:!0});var DXe=IXe(RXe);function NXe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,DXe.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}var Eee=ype.default=NXe;const PXe=Eee.default||Eee,sI=vpe("end"),Zf=vpe("start");function vpe(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function MXe(e){const t=Zf(e),n=sI(e);if(t&&n)return{start:t,end:n}}function U2(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?wee(e.position):"start"in e||"end"in e?wee(e):"line"in e||"column"in e?gL(e):""}function gL(e){return xee(e&&e.line)+":"+xee(e&&e.column)}function wee(e){return gL(e&&e.start)+"-"+gL(e&&e.end)}function xee(e){return e&&typeof e=="number"?e:1}class xo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=U2(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}xo.prototype.file="";xo.prototype.name="";xo.prototype.reason="";xo.prototype.message="";xo.prototype.stack="";xo.prototype.column=void 0;xo.prototype.line=void 0;xo.prototype.ancestors=void 0;xo.prototype.cause=void 0;xo.prototype.fatal=void 0;xo.prototype.place=void 0;xo.prototype.ruleId=void 0;xo.prototype.source=void 0;const jB={}.hasOwnProperty,LXe=new Map,$Xe=/[A-Z]/g,FXe=/-([a-z])/g,BXe=new Set(["table","tbody","thead","tfoot","tr"]),UXe=new Set(["td","th"]),Ope="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zXe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=YXe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=GXe(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Id:A0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Spe(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Spe(e,t,n){if(t.type==="element")return jXe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return HXe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return WXe(e,t,n);if(t.type==="mdxjsEsm")return VXe(e,t);if(t.type==="root")return QXe(e,t,n);if(t.type==="text")return qXe(e,t)}function jXe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Id,e.schema=i),e.ancestors.push(t);const a=wpe(e,t.tagName,!1),s=ZXe(e,t);let o=VB(e,t);return BXe.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!upe(l):!0})),Epe(e,s,a,t),HB(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function HXe(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ux(e,t.position)}function VXe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ux(e,t.position)}function WXe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Id,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:wpe(e,t.name,!0),s=XXe(e,t),o=VB(e,t);return Epe(e,s,a,t),HB(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function QXe(e,t,n){const r={};return HB(r,VB(e,t)),e.create(t,e.Fragment,r,n)}function qXe(e,t){return t.value}function Epe(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function HB(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function GXe(e,t,n){return r;function r(i,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function YXe(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=Zf(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function ZXe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&jB.call(t.properties,i)){const a=KXe(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&UXe.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function XXe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ux(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else ux(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function VB(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:LXe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(wu(e,e.length,0,t),e):t}const Cee={}.hasOwnProperty;function Tpe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function gd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vo=_0(/[A-Za-z]/),bo=_0(/[\dA-Za-z]/),lKe=_0(/[#-'*+\--9=?A-Z^-~]/);function j3(e){return e!==null&&(e<32||e===127)}const bL=_0(/\d/),uKe=_0(/[\dA-Fa-f]/),cKe=_0(/[!-/:-@[-`{-~]/);function Mn(e){return e!==null&&e<-2}function wi(e){return e!==null&&(e<0||e===32)}function Ir(e){return e===-2||e===-1||e===32}const oI=_0(new RegExp("\\p{P}|\\p{S}","u")),v1=_0(/\s/);function _0(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function FO(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Tr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Ir(l)?(e.enter(n),o(l)):t(l)}function o(l){return Ir(l)&&a++s))return;const D=t.events.length;let B=D,L,F;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(L){F=t.events[B][1].end;break}L=!0}for(E(r),A=D;Ak;){const R=n[C];t.containerState=R[1],R[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function mKe(e,t,n){return Tr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function H3(e){if(e===null||wi(e)||v1(e))return 1;if(oI(e))return 2}function lI(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);_ee(f,-l),_ee(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=oc(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=oc(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=oc(u,lI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=oc(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=oc(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,wu(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Ir(A)?Tr(e,x,"linePrefix",a+1)(A):x(A)}function x(A){return A===null||Mn(A)?e.check(Ree,S,C)(A):(e.enter("codeFlowValue"),k(A))}function k(A){return A===null||Mn(A)?(e.exit("codeFlowValue"),x(A)):(e.consume(A),k)}function C(A){return e.exit("codeFenced"),t(A)}function R(A,D,B){let L=0;return F;function F(H){return A.enter("lineEnding"),A.consume(H),A.exit("lineEnding"),W}function W(H){return A.enter("codeFencedFence"),Ir(H)?Tr(A,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):V(H)}function V(H){return H===o?(A.enter("codeFencedFenceSequence"),Z(H)):B(H)}function Z(H){return H===o?(L++,A.consume(H),Z):L>=s?(A.exit("codeFencedFenceSequence"),Ir(H)?Tr(A,Q,"whitespace")(H):Q(H)):B(H)}function Q(H){return H===null||Mn(H)?(A.exit("codeFencedFence"),D(H)):B(H)}}}function CKe(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const OP={name:"codeIndented",tokenize:_Ke},AKe={tokenize:RKe,partial:!0};function _Ke(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Tr(e,a,"linePrefix",5)(u)}function a(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):Mn(u)?e.attempt(AKe,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||Mn(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function RKe(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Tr(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Mn(s)?i(s):n(s)}}const IKe={name:"codeText",tokenize:PKe,resolve:DKe,previous:NKe};function DKe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Ipe(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(E),e.exit(a),h):E===null||E===32||E===41||j3(E)?n(E):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(E))}function h(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(o),h(E)):E===null||E===60||Mn(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function S(E){return!c&&(E===null||E===41||wi(E))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(E)):c999||g===null||g===91||g===93&&!l||g===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):Mn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||Mn(g)||o++>999?(e.exit("chunkString"),c(g)):(e.consume(g),l||(l=!Ir(g)),g===92?h:f)}function h(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function Npe(e,t,n,r,i,a){let s;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,l):n(h)}function l(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),u(h))}function u(h){return h===s?(e.exit(a),l(s)):h===null?n(h):Mn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Tr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||Mn(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===s||h===92?(e.consume(h),c):c(h)}}function z2(e,t){let n;return r;function r(i){return Mn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ir(i)?Tr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const zKe={name:"definition",tokenize:HKe},jKe={tokenize:VKe,partial:!0};function HKe(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),s(g)}function s(g){return Dpe.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function o(g){return i=gd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return wi(g)?z2(e,u)(g):u(g)}function u(g){return Ipe(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function c(g){return e.attempt(jKe,f,f)(g)}function f(g){return Ir(g)?Tr(e,h,"whitespace")(g):h(g)}function h(g){return g===null||Mn(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function VKe(e,t,n){return r;function r(o){return wi(o)?z2(e,i)(o):n(o)}function i(o){return Npe(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ir(o)?Tr(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Mn(o)?t(o):n(o)}}const WKe={name:"hardBreakEscape",tokenize:QKe};function QKe(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Mn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const qKe={name:"headingAtx",tokenize:YKe,resolve:GKe};function GKe(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},wu(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function YKe(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||wi(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Mn(c)?(e.exit("atxHeading"),t(c)):Ir(c)?Tr(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||wi(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const ZKe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Dee=["pre","script","style","textarea"],XKe={name:"htmlFlow",tokenize:tJe,resolveTo:eJe,concrete:!0},KKe={tokenize:rJe,partial:!0},JKe={tokenize:nJe,partial:!0};function eJe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function tJe(e,t,n){const r=this;let i,a,s,o,l;return u;function u(ee){return c(ee)}function c(ee){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ee),f}function f(ee){return ee===33?(e.consume(ee),h):ee===47?(e.consume(ee),a=!0,S):ee===63?(e.consume(ee),i=3,r.interrupt?t:z):Vo(ee)?(e.consume(ee),s=String.fromCharCode(ee),w):n(ee)}function h(ee){return ee===45?(e.consume(ee),i=2,g):ee===91?(e.consume(ee),i=5,o=0,b):Vo(ee)?(e.consume(ee),i=4,r.interrupt?t:z):n(ee)}function g(ee){return ee===45?(e.consume(ee),r.interrupt?t:z):n(ee)}function b(ee){const ye="CDATA[";return ee===ye.charCodeAt(o++)?(e.consume(ee),o===ye.length?r.interrupt?t:V:b):n(ee)}function S(ee){return Vo(ee)?(e.consume(ee),s=String.fromCharCode(ee),w):n(ee)}function w(ee){if(ee===null||ee===47||ee===62||wi(ee)){const ye=ee===47,Oe=s.toLowerCase();return!ye&&!a&&Dee.includes(Oe)?(i=1,r.interrupt?t(ee):V(ee)):ZKe.includes(s.toLowerCase())?(i=6,ye?(e.consume(ee),E):r.interrupt?t(ee):V(ee)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(ee):a?x(ee):k(ee))}return ee===45||bo(ee)?(e.consume(ee),s+=String.fromCharCode(ee),w):n(ee)}function E(ee){return ee===62?(e.consume(ee),r.interrupt?t:V):n(ee)}function x(ee){return Ir(ee)?(e.consume(ee),x):F(ee)}function k(ee){return ee===47?(e.consume(ee),F):ee===58||ee===95||Vo(ee)?(e.consume(ee),C):Ir(ee)?(e.consume(ee),k):F(ee)}function C(ee){return ee===45||ee===46||ee===58||ee===95||bo(ee)?(e.consume(ee),C):R(ee)}function R(ee){return ee===61?(e.consume(ee),A):Ir(ee)?(e.consume(ee),R):k(ee)}function A(ee){return ee===null||ee===60||ee===61||ee===62||ee===96?n(ee):ee===34||ee===39?(e.consume(ee),l=ee,D):Ir(ee)?(e.consume(ee),A):B(ee)}function D(ee){return ee===l?(e.consume(ee),l=null,L):ee===null||Mn(ee)?n(ee):(e.consume(ee),D)}function B(ee){return ee===null||ee===34||ee===39||ee===47||ee===60||ee===61||ee===62||ee===96||wi(ee)?R(ee):(e.consume(ee),B)}function L(ee){return ee===47||ee===62||Ir(ee)?k(ee):n(ee)}function F(ee){return ee===62?(e.consume(ee),W):n(ee)}function W(ee){return ee===null||Mn(ee)?V(ee):Ir(ee)?(e.consume(ee),W):n(ee)}function V(ee){return ee===45&&i===2?(e.consume(ee),J):ee===60&&i===1?(e.consume(ee),K):ee===62&&i===4?(e.consume(ee),Te):ee===63&&i===3?(e.consume(ee),z):ee===93&&i===5?(e.consume(ee),te):Mn(ee)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(KKe,be,Z)(ee)):ee===null||Mn(ee)?(e.exit("htmlFlowData"),Z(ee)):(e.consume(ee),V)}function Z(ee){return e.check(JKe,Q,be)(ee)}function Q(ee){return e.enter("lineEnding"),e.consume(ee),e.exit("lineEnding"),H}function H(ee){return ee===null||Mn(ee)?Z(ee):(e.enter("htmlFlowData"),V(ee))}function J(ee){return ee===45?(e.consume(ee),z):V(ee)}function K(ee){return ee===47?(e.consume(ee),s="",X):V(ee)}function X(ee){if(ee===62){const ye=s.toLowerCase();return Dee.includes(ye)?(e.consume(ee),Te):V(ee)}return Vo(ee)&&s.length<8?(e.consume(ee),s+=String.fromCharCode(ee),X):V(ee)}function te(ee){return ee===93?(e.consume(ee),z):V(ee)}function z(ee){return ee===62?(e.consume(ee),Te):ee===45&&i===2?(e.consume(ee),z):V(ee)}function Te(ee){return ee===null||Mn(ee)?(e.exit("htmlFlowData"),be(ee)):(e.consume(ee),Te)}function be(ee){return e.exit("htmlFlow"),t(ee)}}function nJe(e,t,n){const r=this;return i;function i(s){return Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function rJe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(_T,t,n)}}const iJe={name:"htmlText",tokenize:aJe};function aJe(e,t,n){const r=this;let i,a,s;return o;function o(z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(z),l}function l(z){return z===33?(e.consume(z),u):z===47?(e.consume(z),R):z===63?(e.consume(z),k):Vo(z)?(e.consume(z),B):n(z)}function u(z){return z===45?(e.consume(z),c):z===91?(e.consume(z),a=0,b):Vo(z)?(e.consume(z),x):n(z)}function c(z){return z===45?(e.consume(z),g):n(z)}function f(z){return z===null?n(z):z===45?(e.consume(z),h):Mn(z)?(s=f,K(z)):(e.consume(z),f)}function h(z){return z===45?(e.consume(z),g):f(z)}function g(z){return z===62?J(z):z===45?h(z):f(z)}function b(z){const Te="CDATA[";return z===Te.charCodeAt(a++)?(e.consume(z),a===Te.length?S:b):n(z)}function S(z){return z===null?n(z):z===93?(e.consume(z),w):Mn(z)?(s=S,K(z)):(e.consume(z),S)}function w(z){return z===93?(e.consume(z),E):S(z)}function E(z){return z===62?J(z):z===93?(e.consume(z),E):S(z)}function x(z){return z===null||z===62?J(z):Mn(z)?(s=x,K(z)):(e.consume(z),x)}function k(z){return z===null?n(z):z===63?(e.consume(z),C):Mn(z)?(s=k,K(z)):(e.consume(z),k)}function C(z){return z===62?J(z):k(z)}function R(z){return Vo(z)?(e.consume(z),A):n(z)}function A(z){return z===45||bo(z)?(e.consume(z),A):D(z)}function D(z){return Mn(z)?(s=D,K(z)):Ir(z)?(e.consume(z),D):J(z)}function B(z){return z===45||bo(z)?(e.consume(z),B):z===47||z===62||wi(z)?L(z):n(z)}function L(z){return z===47?(e.consume(z),J):z===58||z===95||Vo(z)?(e.consume(z),F):Mn(z)?(s=L,K(z)):Ir(z)?(e.consume(z),L):J(z)}function F(z){return z===45||z===46||z===58||z===95||bo(z)?(e.consume(z),F):W(z)}function W(z){return z===61?(e.consume(z),V):Mn(z)?(s=W,K(z)):Ir(z)?(e.consume(z),W):L(z)}function V(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),i=z,Z):Mn(z)?(s=V,K(z)):Ir(z)?(e.consume(z),V):(e.consume(z),Q)}function Z(z){return z===i?(e.consume(z),i=void 0,H):z===null?n(z):Mn(z)?(s=Z,K(z)):(e.consume(z),Z)}function Q(z){return z===null||z===34||z===39||z===60||z===61||z===96?n(z):z===47||z===62||wi(z)?L(z):(e.consume(z),Q)}function H(z){return z===47||z===62||wi(z)?L(z):n(z)}function J(z){return z===62?(e.consume(z),e.exit("htmlTextData"),e.exit("htmlText"),t):n(z)}function K(z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),X}function X(z){return Ir(z)?Tr(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):te(z)}function te(z){return e.enter("htmlTextData"),s(z)}}const QB={name:"labelEnd",tokenize:dJe,resolveTo:cJe,resolveAll:uJe},sJe={tokenize:fJe},oJe={tokenize:hJe},lJe={tokenize:pJe};function uJe(e){let t=-1;for(;++t=3&&(u===null||Mn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ir(u)?Tr(e,o,"whitespace")(u):o(u))}}const dl={name:"list",tokenize:wJe,continuation:{tokenize:xJe},exit:kJe},SJe={tokenize:CJe,partial:!0},EJe={tokenize:TJe,partial:!0};function wJe(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:bL(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(H4,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return bL(g)&&++s<10?(e.consume(g),l):(!r.interrupt||s<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(_T,r.interrupt?n:c,e.attempt(SJe,h,f))}function c(g){return r.containerState.initialBlankLine=!0,a++,h(g)}function f(g){return Ir(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),h):n(g)}function h(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function xJe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(_T,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Tr(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ir(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(EJe,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Tr(e,e.attempt(dl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function TJe(e,t,n){const r=this;return Tr(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function kJe(e){e.exit(this.containerState.type)}function CJe(e,t,n){const r=this;return Tr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ir(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Nee={name:"setextUnderline",tokenize:_Je,resolveTo:AJe};function AJe(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function _Je(e,t,n){const r=this;let i;return a;function a(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Ir(u)?Tr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Mn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const RJe={tokenize:IJe};function IJe(e){const t=this,n=e.attempt(_T,r,e.attempt(this.parser.constructs.flowInitial,i,Tr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(LKe,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const DJe={resolveAll:Mpe()},NJe=Ppe("string"),PJe=Ppe("text");function Ppe(e){return{tokenize:t,resolveAll:Mpe(e==="text"?MJe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return u(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),a(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function FJe(e,t){let n=-1;const r=[];let i;for(;++n0){const vt=ve.tokenStack[ve.tokenStack.length-1];(vt[1]||Pee).call(ve,void 0,vt[0])}for(xe.position={start:Xp(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:Xp(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function aet(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function set(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Fpe(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function oet(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fpe(e,t);const i={src:FO(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function uet(e,t){const n={src:FO(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function cet(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function det(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fpe(e,t);const i={href:FO(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function fet(e,t){const n={href:FO(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function het(e,t,n){const r=e.all(t),i=n?pet(n):Bpe(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o0){const vt=ve.tokenStack[ve.tokenStack.length-1];(vt[1]||Mee).call(ve,void 0,vt[0])}for(xe.position={start:Kp(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:Kp(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function fet(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function het(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Fpe(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function pet(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fpe(e,t);const i={src:FO(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function met(e,t){const n={src:FO(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function get(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function bet(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fpe(e,t);const i={href:FO(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function yet(e,t){const n={href:FO(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vet(e,t,n){const r=e.all(t),i=n?Oet(n):Bpe(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function met(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Zf(t.children[1]),l=iI(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Oet(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push($ee(t.slice(i),i>0,!1)),a.join("")}function $ee(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Mee||a===Lee;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Mee||a===Lee;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function xet(e,t){const n={type:"text",value:wet(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Tet(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ket={blockquote:JJe,break:eet,code:tet,delete:net,emphasis:ret,footnoteReference:iet,heading:aet,html:set,imageReference:oet,image:uet,inlineCode:cet,linkReference:det,link:fet,listItem:het,list:met,paragraph:get,root:bet,strong:yet,table:vet,tableCell:Eet,tableRow:Oet,text:xet,thematicBreak:Tet,toml:wA,yaml:wA,definition:wA,footnoteDefinition:wA};function wA(){}const Upe=-1,oI=0,z3=1,j3=2,QB=3,qB=4,GB=5,YB=6,zpe=7,jpe=8,Fee=typeof self=="object"?self:globalThis,Cet=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case oI:case Upe:return n(s,i);case z3:{const o=n([],i);for(const l of s)o.push(r(l));return o}case j3:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case QB:return n(new Date(s),i);case qB:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case GB:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case YB:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case zpe:{const{name:o,message:l}=s;return n(new Fee[o](l),i)}case jpe:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new Fee[a](s),i)};return r},Bee=e=>Cet(new Map,e)(0),Yb="",{toString:Aet}={},{keys:_et}=Object,NE=e=>{const t=typeof e;if(t!=="object"||!e)return[oI,t];const n=Aet.call(e).slice(8,-1);switch(n){case"Array":return[z3,Yb];case"Object":return[j3,Yb];case"Date":return[QB,Yb];case"RegExp":return[qB,Yb];case"Map":return[GB,Yb];case"Set":return[YB,Yb]}return n.includes("Array")?[z3,n]:n.includes("Error")?[zpe,n]:[j3,n]},xA=([e,t])=>e===oI&&(t==="function"||t==="symbol"),Ret=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=NE(s);switch(o){case oI:{let c=s;switch(l){case"bigint":o=jpe,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Upe],s)}return i([o,c],s)}case z3:{if(l)return i([l,[...s]],s);const c=[],f=i([o,c],s);for(const h of s)c.push(a(h));return f}case j3:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],f=i([o,c],s);for(const h of _et(s))(e||!xA(NE(s[h])))&&c.push([a(h),a(s[h])]);return f}case QB:return i([o,s.toISOString()],s);case qB:{const{source:c,flags:f}=s;return i([o,{source:c,flags:f}],s)}case GB:{const c=[],f=i([o,c],s);for(const[h,g]of s)(e||!(xA(NE(h))||xA(NE(g))))&&c.push([a(h),a(g)]);return f}case YB:{const c=[],f=i([o,c],s);for(const h of s)(e||!xA(NE(h)))&&c.push(a(h));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},Uee=(e,{json:t,lossy:n}={})=>{const r=[];return Ret(!(t||n),!!t,new Map,r)(e),r},$f=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Bee(Uee(e,t)):structuredClone(e):(e,t)=>Bee(Uee(e,t));function Iet(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Det(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Net(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Iet,r=e.options.footnoteBackLabel||Det,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&b.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,g);typeof x=="string"&&(x={type:"text",value:x}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,g),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const x=E.children[E.children.length-1];x&&x.type==="text"?x.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...b)}else c.push(...b);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,w),o.push(w)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...$f(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function Oet(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function Eet(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Zf(t.children[1]),l=sI(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Cet(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Fee(t.slice(i),i>0,!1)),a.join("")}function Fee(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Lee||a===$ee;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Lee||a===$ee;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ret(e,t){const n={type:"text",value:_et(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Iet(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Det={blockquote:aet,break:set,code:oet,delete:uet,emphasis:cet,footnoteReference:det,heading:fet,html:het,imageReference:pet,image:met,inlineCode:get,linkReference:bet,link:yet,listItem:vet,list:Eet,paragraph:wet,root:xet,strong:Tet,table:ket,tableCell:Aet,tableRow:Cet,text:Ret,thematicBreak:Iet,toml:xA,yaml:xA,definition:xA,footnoteDefinition:xA};function xA(){}const Upe=-1,uI=0,V3=1,W3=2,qB=3,GB=4,YB=5,ZB=6,zpe=7,jpe=8,Bee=typeof self=="object"?self:globalThis,Net=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case uI:case Upe:return n(s,i);case V3:{const o=n([],i);for(const l of s)o.push(r(l));return o}case W3:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case qB:return n(new Date(s),i);case GB:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case YB:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case ZB:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case zpe:{const{name:o,message:l}=s;return n(new Bee[o](l),i)}case jpe:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new Bee[a](s),i)};return r},Uee=e=>Net(new Map,e)(0),Yb="",{toString:Pet}={},{keys:Met}=Object,NE=e=>{const t=typeof e;if(t!=="object"||!e)return[uI,t];const n=Pet.call(e).slice(8,-1);switch(n){case"Array":return[V3,Yb];case"Object":return[W3,Yb];case"Date":return[qB,Yb];case"RegExp":return[GB,Yb];case"Map":return[YB,Yb];case"Set":return[ZB,Yb]}return n.includes("Array")?[V3,n]:n.includes("Error")?[zpe,n]:[W3,n]},TA=([e,t])=>e===uI&&(t==="function"||t==="symbol"),Let=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=NE(s);switch(o){case uI:{let c=s;switch(l){case"bigint":o=jpe,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Upe],s)}return i([o,c],s)}case V3:{if(l)return i([l,[...s]],s);const c=[],f=i([o,c],s);for(const h of s)c.push(a(h));return f}case W3:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],f=i([o,c],s);for(const h of Met(s))(e||!TA(NE(s[h])))&&c.push([a(h),a(s[h])]);return f}case qB:return i([o,s.toISOString()],s);case GB:{const{source:c,flags:f}=s;return i([o,{source:c,flags:f}],s)}case YB:{const c=[],f=i([o,c],s);for(const[h,g]of s)(e||!(TA(NE(h))||TA(NE(g))))&&c.push([a(h),a(g)]);return f}case ZB:{const c=[],f=i([o,c],s);for(const h of s)(e||!TA(NE(h)))&&c.push(a(h));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},zee=(e,{json:t,lossy:n}={})=>{const r=[];return Let(!(t||n),!!t,new Map,r)(e),r},$f=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Uee(zee(e,t)):structuredClone(e):(e,t)=>Uee(zee(e,t));function $et(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Fet(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Bet(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||$et,r=e.options.footnoteBackLabel||Fet,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&b.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,g);typeof x=="string"&&(x={type:"text",value:x}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,g),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const w=c[c.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const x=w.children[w.children.length-1];x&&x.type==="text"?x.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...b)}else c.push(...b);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,E),o.push(E)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...$f(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` -`}]}}const BO=function(e){if(e==null)return $et;if(typeof e=="function")return lI(e);if(typeof e=="object")return Array.isArray(e)?Pet(e):Met(e);if(typeof e=="string")return Let(e);throw new Error("Expected function, string, or object as test")};function Pet(e){const t=[];let n=-1;for(;++n":""))+")"})}return h;function h(){let g=Hpe,b,S,E;if((!t||a(l,u,c[c.length-1]||void 0))&&(g=Uet(n(l,c)),g[0]===H3))return g;if("children"in l&&l.children){const w=l;if(w.children&&g[0]!==sv)for(S=(r?w.children.length:-1)+s,E=c.concat(w);S>-1&&S":""))+")"})}return h;function h(){let g=Hpe,b,S,w;if((!t||a(l,u,c[c.length-1]||void 0))&&(g=Qet(n(l,c)),g[0]===Q3))return g;if("children"in l&&l.children){const E=l;if(E.children&&g[0]!==sv)for(S=(r?E.children.length:-1)+s,w=c.concat(E);S>-1&&S0&&n.push({type:"text",value:` -`}),n}function zee(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function jee(e,t){const n=jet(e,t),r=n.one(e,void 0),i=Net(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function qet(e,t){return e&&"run"in e?async function(n,r){const i=jee(n,{file:r,...t});await e.run(i,r)}:function(n,r){return jee(n,{file:r,...t||e})}}function Hee(e){if(e)throw e}var H4=Object.prototype.hasOwnProperty,Vpe=Object.prototype.toString,Vee=Object.defineProperty,Wee=Object.getOwnPropertyDescriptor,Qee=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Vpe.call(t)==="[object Array]"},qee=function(t){if(!t||Vpe.call(t)!=="[object Object]")return!1;var n=H4.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&H4.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||H4.call(t,i)},Gee=function(t,n){Vee&&n.name==="__proto__"?Vee(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Yee=function(t,n){if(n==="__proto__")if(H4.call(t,n)){if(Wee)return Wee(t,n).value}else return;return t[n]},Get=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const sf={basename:Xet,dirname:Ket,extname:Jet,join:ett,sep:"/"};function Xet(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_T(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Ket(e){if(_T(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Jet(e){_T(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ett(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ntt(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function _T(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rtt={cwd:itt};function itt(){return"/"}function OL(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function att(e){if(typeof e=="string")e=new URL(e);else if(!OL(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return stt(e)}function stt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[g,...b]=c;const S=r[h][1];vL(S)&&vL(g)&&(g=OP(!0,S,g)),r[h]=[u,g,...b]}}}}const ctt=new XB().freeze();function xP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function TP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function kP(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Xee(e){if(!vL(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Kee(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function TA(e){return dtt(e)?e:new Wpe(e)}function dtt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ftt(e){return typeof e=="string"||htt(e)}function htt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ptt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Jee=[],ete={allowDangerousHtml:!0},mtt=/^(https?|ircs?|mailto|xmpp)$/i,gtt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function btt(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||Jee,l=e.remarkPlugins||Jee,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ete}:ete,c=e.skipHtml,f=e.unwrapDisallowed,h=e.urlTransform||ytt,g=ctt().use(KJe).use(l).use(qet,u).use(o),b=new Wpe;typeof r=="string"&&(b.value=r);for(const x of gtt)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+ptt+x.id,void 0);const S=g.parse(b);let E=g.runSync(S,b);return i&&(E={type:"element",tagName:"div",properties:{className:i},children:E.type==="root"?E.children:[E]}),Yo(E,w),MXe(E,{Fragment:I.Fragment,components:a,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function w(x,k,C){if(x.type==="raw"&&C&&typeof k=="number")return c?C.children.splice(k,1):C.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let R;for(R in bP)if(Object.hasOwn(bP,R)&&Object.hasOwn(x.properties,R)){const A=x.properties[R],D=bP[R];(D===null||D.includes(x.tagName))&&(x.properties[R]=h(String(A||""),R,x))}}if(x.type==="element"){let R=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!R&&n&&typeof k=="number"&&(R=!n(x,k,C)),R&&C&&typeof k=="number")return f&&x.children?C.children.splice(k,1,...x.children):C.children.splice(k,1),k}}}function ytt(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||mtt.test(e.slice(0,t))?e:""}function tte(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function vtt(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ott(e,t,n){const i=BO((n||{}).ignore||[]),a=Stt(t);let s=-1;for(;++s0?{type:"text",value:A}:void 0),A===!1?h.lastIndex=C+1:(b!==C&&x.push({type:"text",value:u.value.slice(b,C)}),Array.isArray(A)?x.push(...A):A&&x.push(A),b=C+k[0].length,w=!0),!h.global)break;k=h.exec(u.value)}return w?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=tte(e,"(");let a=tte(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Qpe(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||v1(n)||aI(n))&&(!t||n!==47)}qpe.peek=Qtt;function Ltt(){return{enter:{gfmFootnoteDefinition:Ftt,gfmFootnoteDefinitionLabelString:Btt,gfmFootnoteCall:jtt,gfmFootnoteCallString:Htt},exit:{gfmFootnoteDefinition:ztt,gfmFootnoteDefinitionLabelString:Utt,gfmFootnoteCall:Wtt,gfmFootnoteCallString:Vtt}}}function $tt(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:qtt,footnoteReference:qpe}}}function Ftt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Btt(){this.buffer()}function Utt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=gd(this.sliceSerialize(e)).toLowerCase()}function ztt(e){this.exit(e)}function jtt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Htt(){this.buffer()}function Vtt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=gd(this.sliceSerialize(e)).toLowerCase()}function Wtt(e){this.exit(e)}function qpe(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function Qtt(){return"["}function qtt(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),Gtt)),s(),a}function Gtt(e,t,n){return t===0?e:(n?"":" ")+e}const Ytt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gpe.peek=ent;function Ztt(){return{canContainEols:["delete"],enter:{strikethrough:Ktt},exit:{strikethrough:Jtt}}}function Xtt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ytt}],handlers:{delete:Gpe}}}function Ktt(e){this.enter({type:"delete",children:[]},e)}function Jtt(e){this.exit(e)}function Gpe(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function ent(){return"~"}function tnt(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||rnt,i=[],a=[],s=[],o=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Eo[E])&&(o[E]=x)}b.push(w)}a[u]=b,s[u]=S}let c=-1;if(typeof n=="object"&&"length"in n)for(;++co[c]&&(o[c]=w),h[c]=w),f[c]=x}a.splice(1,0,f),s.splice(1,0,h),u=-1;const g=[];for(;++u "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),ant);return i(),s}function ant(e,t,n){return">"+(n?"":" ")+e}function snt(e,t){return ite(e,t.inConstruct,!0)&&!ite(e,t.notInConstruct,!1)}function ite(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function ont(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function lnt(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function unt(e,t,n,r){const i=lnt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(ont(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(a,cnt);return f(),h}const o=n.createTracker(r),l=i.repeat(Math.max(Ype(a,i)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:` +`}),n}function jee(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Hee(e,t){const n=Get(e,t),r=n.one(e,void 0),i=Bet(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function Jet(e,t){return e&&"run"in e?async function(n,r){const i=Hee(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Hee(n,{file:r,...t||e})}}function Vee(e){if(e)throw e}var V4=Object.prototype.hasOwnProperty,Vpe=Object.prototype.toString,Wee=Object.defineProperty,Qee=Object.getOwnPropertyDescriptor,qee=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Vpe.call(t)==="[object Array]"},Gee=function(t){if(!t||Vpe.call(t)!=="[object Object]")return!1;var n=V4.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&V4.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||V4.call(t,i)},Yee=function(t,n){Wee&&n.name==="__proto__"?Wee(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Zee=function(t,n){if(n==="__proto__")if(V4.call(t,n)){if(Qee)return Qee(t,n).value}else return;return t[n]},ett=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const sf={basename:rtt,dirname:itt,extname:att,join:stt,sep:"/"};function rtt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');RT(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function itt(e){if(RT(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function att(e){RT(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function stt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ltt(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function RT(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const utt={cwd:ctt};function ctt(){return"/"}function SL(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function dtt(e){if(typeof e=="string")e=new URL(e);else if(!SL(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return ftt(e)}function ftt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[g,...b]=c;const S=r[h][1];OL(S)&&OL(g)&&(g=EP(!0,S,g)),r[h]=[u,g,...b]}}}}const gtt=new KB().freeze();function kP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function CP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function AP(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Kee(e){if(!OL(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Jee(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kA(e){return btt(e)?e:new Wpe(e)}function btt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ytt(e){return typeof e=="string"||vtt(e)}function vtt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ott="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ete=[],tte={allowDangerousHtml:!0},Stt=/^(https?|ircs?|mailto|xmpp)$/i,Ett=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function wtt(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||ete,l=e.remarkPlugins||ete,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tte}:tte,c=e.skipHtml,f=e.unwrapDisallowed,h=e.urlTransform||xtt,g=gtt().use(iet).use(l).use(Jet,u).use(o),b=new Wpe;typeof r=="string"&&(b.value=r);for(const x of Ett)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+Ott+x.id,void 0);const S=g.parse(b);let w=g.runSync(S,b);return i&&(w={type:"element",tagName:"div",properties:{className:i},children:w.type==="root"?w.children:[w]}),Yo(w,E),zXe(w,{Fragment:I.Fragment,components:a,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function E(x,k,C){if(x.type==="raw"&&C&&typeof k=="number")return c?C.children.splice(k,1):C.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let R;for(R in vP)if(Object.hasOwn(vP,R)&&Object.hasOwn(x.properties,R)){const A=x.properties[R],D=vP[R];(D===null||D.includes(x.tagName))&&(x.properties[R]=h(String(A||""),R,x))}}if(x.type==="element"){let R=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!R&&n&&typeof k=="number"&&(R=!n(x,k,C)),R&&C&&typeof k=="number")return f&&x.children?C.children.splice(k,1,...x.children):C.children.splice(k,1),k}}}function xtt(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||Stt.test(e.slice(0,t))?e:""}function nte(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Ttt(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ktt(e,t,n){const i=BO((n||{}).ignore||[]),a=Ctt(t);let s=-1;for(;++s0?{type:"text",value:A}:void 0),A===!1?h.lastIndex=C+1:(b!==C&&x.push({type:"text",value:u.value.slice(b,C)}),Array.isArray(A)?x.push(...A):A&&x.push(A),b=C+k[0].length,E=!0),!h.global)break;k=h.exec(u.value)}return E?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=nte(e,"(");let a=nte(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Qpe(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||v1(n)||oI(n))&&(!t||n!==47)}qpe.peek=Ktt;function jtt(){return{enter:{gfmFootnoteDefinition:Vtt,gfmFootnoteDefinitionLabelString:Wtt,gfmFootnoteCall:Gtt,gfmFootnoteCallString:Ytt},exit:{gfmFootnoteDefinition:qtt,gfmFootnoteDefinitionLabelString:Qtt,gfmFootnoteCall:Xtt,gfmFootnoteCallString:Ztt}}}function Htt(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Jtt,footnoteReference:qpe}}}function Vtt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Wtt(){this.buffer()}function Qtt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=gd(this.sliceSerialize(e)).toLowerCase()}function qtt(e){this.exit(e)}function Gtt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ytt(){this.buffer()}function Ztt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=gd(this.sliceSerialize(e)).toLowerCase()}function Xtt(e){this.exit(e)}function qpe(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function Ktt(){return"["}function Jtt(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),ent)),s(),a}function ent(e,t,n){return t===0?e:(n?"":" ")+e}const tnt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gpe.peek=snt;function nnt(){return{canContainEols:["delete"],enter:{strikethrough:int},exit:{strikethrough:ant}}}function rnt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:tnt}],handlers:{delete:Gpe}}}function int(e){this.enter({type:"delete",children:[]},e)}function ant(e){this.exit(e)}function Gpe(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function snt(){return"~"}function ont(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||unt,i=[],a=[],s=[],o=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++wo[w])&&(o[w]=x)}b.push(E)}a[u]=b,s[u]=S}let c=-1;if(typeof n=="object"&&"length"in n)for(;++co[c]&&(o[c]=E),h[c]=E),f[c]=x}a.splice(1,0,f),s.splice(1,0,h),u=-1;const g=[];for(;++u "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),dnt);return i(),s}function dnt(e,t,n){return">"+(n?"":" ")+e}function fnt(e,t){return ate(e,t.inConstruct,!0)&&!ate(e,t.notInConstruct,!1)}function ate(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function hnt(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function pnt(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function mnt(e,t,n,r){const i=pnt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(hnt(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(a,gnt);return f(),h}const o=n.createTracker(r),l=i.repeat(Math.max(Ype(a,i)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:` `,encode:["`"],...o.current()})),f()}return c+=o.move(` `),a&&(c+=o.move(a+` -`)),c+=o.move(l),u(),c}function cnt(e,t,n){return(n?"":" ")+e}function JB(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function dnt(e,t,n,r){const i=JB(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` -`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function fnt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Zpe.peek=hnt;function Zpe(e,t,n,r){const i=fnt(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function hnt(e,t,n){return n.options.emphasis||"*"}function pnt(e,t){let n=!1;return Yo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,H3}),!!((!e.depth||e.depth<3)&&VB(e)&&(t.options.setext||n))}function mnt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(pnt(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:` +`)),c+=o.move(l),u(),c}function gnt(e,t,n){return(n?"":" ")+e}function eU(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function bnt(e,t,n,r){const i=eU(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function ynt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Zpe.peek=vnt;function Zpe(e,t,n,r){const i=ynt(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function vnt(e,t,n){return n.options.emphasis||"*"}function Ont(e,t){let n=!1;return Yo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Q3}),!!((!e.depth||e.depth<3)&&WB(e)&&(t.options.setext||n))}function Snt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Ont(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:` `,after:` `});return f(),c(),h+` `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(` `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:` -`,...a.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}Xpe.peek=gnt;function Xpe(e){return e.value||""}function gnt(){return"<"}Kpe.peek=bnt;function Kpe(e,t,n,r){const i=JB(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function bnt(){return"!"}Jpe.peek=ynt;function Jpe(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function ynt(){return"!"}eme.peek=vnt;function eme(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}nme.peek=Ont;function nme(e,t,n,r){const i=JB(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(tme(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=c,f}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function Ont(e,t,n){return tme(e,n)?"<":"["}rme.peek=Snt;function rme(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Snt(){return"["}function eU(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ent(e){const t=eU(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function wnt(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ime(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function xnt(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?wnt(n):eU(n);const o=e.ordered?s==="."?")":".":Ent(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),ime(n)===s&&c){let f=-1;for(;++f-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(f,h,g){return h?(g?"":" ".repeat(s))+f:(g?a:a+" ".repeat(s-a.length))+f}}function Cnt(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const Ant=BO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function _nt(e,t,n,r){return(e.children.some(function(s){return Ant(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Rnt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ame.peek=Int;function ame(e,t,n,r){const i=Rnt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function Int(e,t,n){return n.options.strong||"*"}function Dnt(e,t,n,r){return n.safe(e.value,r)}function Nnt(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Pnt(e,t,n){const r=(ime(n)+(n.options.ruleSpaces?" ":"")).repeat(Nnt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const sme={blockquote:int,break:ate,code:unt,definition:dnt,emphasis:Zpe,hardBreak:ate,heading:mnt,html:Xpe,image:Kpe,imageReference:Jpe,inlineCode:eme,link:nme,linkReference:rme,list:xnt,listItem:knt,paragraph:Cnt,root:_nt,strong:ame,text:Dnt,thematicBreak:Pnt};function Mnt(){return{enter:{table:Lnt,tableData:ste,tableHeader:ste,tableRow:Fnt},exit:{codeText:Bnt,table:$nt,tableData:RP,tableHeader:RP,tableRow:RP}}}function Lnt(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function $nt(e){this.exit(e),this.data.inTable=void 0}function Fnt(e){this.enter({type:"tableRow",children:[]},e)}function RP(e){this.exit(e)}function ste(e){this.enter({type:"tableCell",children:[]},e)}function Bnt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Unt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Unt(e,t){return t==="|"?t:e}function znt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:l,tableRow:o}};function s(g,b,S,E){return u(c(g,S,E),g.align)}function o(g,b,S,E){const w=f(g,S,E),x=u([w]);return x.slice(0,x.indexOf(` -`))}function l(g,b,S,E){const w=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(g,{...E,before:a,after:a});return x(),w(),k}function u(g,b){return tnt(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(g,b,S){const E=g.children;let w=-1;const x=[],k=b.enter("table");for(;++w0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const art={tokenize:hrt,partial:!0};function srt(){return{document:{91:{tokenize:crt,continuation:{tokenize:drt},exit:frt}},text:{91:{tokenize:urt},93:{add:"after",tokenize:ort,resolveTo:lrt}}}}function ort(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=gd(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function lrt(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function urt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||wi(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(gd(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return wi(f)||(s=!0),a++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function crt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||wi(b))return n(b);if(b===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=gd(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return wi(b)||(o=!0),s++,e.consume(b),b===92?f:c}function f(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function h(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Tr(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function drt(e,t,n){return e.check(AT,t,e.attempt(art,t,n))}function frt(e){e.exit("gfmFootnoteDefinition")}function hrt(e,t,n){const r=this;return Tr(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function prt(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l1?l(b):(s.consume(b),f++,g);if(f<2&&!n)return l(b);const E=s.exit("strikethroughSequenceTemporary"),w=U3(b);return E._open=!w||w===2&&!!S,E._close=!S||S===2&&!!w,o(b)}}}class mrt{constructor(){this.map=[]}add(t,n,r){grt(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function grt(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const Q=r.events[W][1].type;if(Q==="lineEnding"||Q==="linePrefix")W--;else break}const V=W>-1?r.events[W][1].type:null,Z=V==="tableHead"||V==="tableRow"?A:l;return Z===A&&r.parser.lazy[r.now().line]?n(F):Z(F)}function l(F){return e.enter("tableHead"),e.enter("tableRow"),u(F)}function u(F){return F===124||(s=!0,a+=1),c(F)}function c(F){return F===null?n(F):Mn(F)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),g):n(F):Ir(F)?Tr(e,c,"whitespace")(F):(a+=1,s&&(s=!1,i+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(F)))}function f(F){return F===null||F===124||wi(F)?(e.exit("data"),c(F)):(e.consume(F),F===92?h:f)}function h(F){return F===92||F===124?(e.consume(F),f):f(F)}function g(F){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(F):(e.enter("tableDelimiterRow"),s=!1,Ir(F)?Tr(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):b(F))}function b(F){return F===45||F===58?E(F):F===124?(s=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),S):R(F)}function S(F){return Ir(F)?Tr(e,E,"whitespace")(F):E(F)}function E(F){return F===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),w):F===45?(a+=1,w(F)):F===null||Mn(F)?C(F):R(F)}function w(F){return F===45?(e.enter("tableDelimiterFiller"),x(F)):R(F)}function x(F){return F===45?(e.consume(F),x):F===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(F))}function k(F){return Ir(F)?Tr(e,C,"whitespace")(F):C(F)}function C(F){return F===124?b(F):F===null||Mn(F)?!s||i!==a?R(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):R(F)}function R(F){return n(F)}function A(F){return e.enter("tableRow"),D(F)}function D(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),D):F===null||Mn(F)?(e.exit("tableRow"),t(F)):Ir(F)?Tr(e,D,"whitespace")(F):(e.enter("data"),B(F))}function B(F){return F===null||F===124||wi(F)?(e.exit("data"),D(F)):(e.consume(F),F===92?L:B)}function L(F){return F===92||F===124?(e.consume(F),B):B(F)}}function Ort(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,f;const h=new mrt;for(;++nn[2]+1){const b=n[2]+1,S=n[3]-n[2]-1;e.add(b,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},cy(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function lte(e,t,n,r,i){const a=[],s=cy(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function cy(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Srt={tokenize:wrt};function Ert(){return{text:{91:Srt}}}function wrt(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return wi(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return Mn(l)?t(l):Ir(l)?e.check({tokenize:xrt},t,n)(l):n(l)}}function xrt(e,t,n){return Tr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Trt(e){return Tpe([Znt(),srt(),prt(e),yrt(),Ert()])}const krt={};function Crt(e){const t=this,n=e||krt,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Trt(n)),a.push(Qnt()),s.push(qnt(n))}const ute=/[#.]/g;function Art(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&aa)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}}function i(a){const s=a&&a.line,o=a&&a.column;if(typeof s=="number"&&typeof o=="number"&&!Number.isNaN(s)&&!Number.isNaN(o)&&s-1 in n){const l=(n[s-2]||0)+o-1||0;if(l>-1&&l=55296&&e<=57343}function eit(e){return e>=56320&&e<=57343}function tit(e,t){return(e-55296)*1024+9216+t}function Ome(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Sme(e){return e>=64976&&e<=65007||Jrt.has(e)}var pt;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(pt=pt||(pt={}));const nit=65536;class rit{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=nit,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:n,col:r,offset:i}=this;return{code:t,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(eit(n))return this.pos++,this._addGap(),tit(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,de.EOF;return this._err(pt.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,de.EOF;const r=this.html.charCodeAt(n);return r===de.CARRIAGE_RETURN?de.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,de.EOF;let t=this.html.charCodeAt(this.pos);return t===de.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,de.LINE_FEED):t===de.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,vme(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===de.LINE_FEED||t===de.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ome(t)?this._err(pt.controlCharacterInInputStream):Sme(t)&&this._err(pt.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const nm=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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ቻ኉Dzኀ\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;䅻Dzᕔ\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ƀ;oș᳊᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱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⧓ସdz⧟\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᪠ⵒⵗLjⵚ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㚆㚝㚵㚼Dz㚋\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(e=>e.charCodeAt(0))),iit=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var DP;const ait=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]]),sit=(DP=String.fromCodePoint)!==null&&DP!==void 0?DP:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function oit(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ait.get(e))!==null&&t!==void 0?t:e}var Ss;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ss||(Ss={}));const lit=32;var kf;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(kf||(kf={}));function xL(e){return e>=Ss.ZERO&&e<=Ss.NINE}function uit(e){return e>=Ss.UPPER_A&&e<=Ss.UPPER_F||e>=Ss.LOWER_A&&e<=Ss.LOWER_F}function cit(e){return e>=Ss.UPPER_A&&e<=Ss.UPPER_Z||e>=Ss.LOWER_A&&e<=Ss.LOWER_Z||xL(e)}function dit(e){return e===Ss.EQUALS||cit(e)}var gs;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(gs||(gs={}));var Cg;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Cg||(Cg={}));class fit{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=gs.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Cg.Strict}startEntity(t){this.decodeMode=t,this.state=gs.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case gs.EntityStart:return t.charCodeAt(n)===Ss.NUM?(this.state=gs.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=gs.NamedEntity,this.stateNamedEntity(t,n));case gs.NumericStart:return this.stateNumericStart(t,n);case gs.NumericDecimal:return this.stateNumericDecimal(t,n);case gs.NumericHex:return this.stateNumericHex(t,n);case gs.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|lit)===Ss.LOWER_X?(this.state=gs.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=gs.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Ss.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Cg.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&kf.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~kf.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case gs.NamedEntity:return this.result!==0&&(this.decodeMode!==Cg.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case gs.NumericDecimal:return this.emitNumericEntity(0,2);case gs.NumericHex:return this.emitNumericEntity(0,3);case gs.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case gs.EntityStart:return 0}}}function wme(e){let t="";const n=new fit(e,r=>t+=sit(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const u=n.write(i,o+1);if(u<0){s=o+n.end();break}s=o+u,o=u===0?s+1:s}const l=t+i.slice(s);return t="",l}}function xme(e,t,n,r){const i=(t&kf.BRANCH_LENGTH)>>7,a=t&kf.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(ur)o=l-1;else return e[l+i]}return-1}wme(nm);wme(iit);var Et;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Et=Et||(Et={}));var Qm;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Qm=Qm||(Qm={}));var fu;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(fu=fu||(fu={}));var Ke;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(Ke=Ke||(Ke={}));var P;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(P=P||(P={}));const hit=new Map([[Ke.A,P.A],[Ke.ADDRESS,P.ADDRESS],[Ke.ANNOTATION_XML,P.ANNOTATION_XML],[Ke.APPLET,P.APPLET],[Ke.AREA,P.AREA],[Ke.ARTICLE,P.ARTICLE],[Ke.ASIDE,P.ASIDE],[Ke.B,P.B],[Ke.BASE,P.BASE],[Ke.BASEFONT,P.BASEFONT],[Ke.BGSOUND,P.BGSOUND],[Ke.BIG,P.BIG],[Ke.BLOCKQUOTE,P.BLOCKQUOTE],[Ke.BODY,P.BODY],[Ke.BR,P.BR],[Ke.BUTTON,P.BUTTON],[Ke.CAPTION,P.CAPTION],[Ke.CENTER,P.CENTER],[Ke.CODE,P.CODE],[Ke.COL,P.COL],[Ke.COLGROUP,P.COLGROUP],[Ke.DD,P.DD],[Ke.DESC,P.DESC],[Ke.DETAILS,P.DETAILS],[Ke.DIALOG,P.DIALOG],[Ke.DIR,P.DIR],[Ke.DIV,P.DIV],[Ke.DL,P.DL],[Ke.DT,P.DT],[Ke.EM,P.EM],[Ke.EMBED,P.EMBED],[Ke.FIELDSET,P.FIELDSET],[Ke.FIGCAPTION,P.FIGCAPTION],[Ke.FIGURE,P.FIGURE],[Ke.FONT,P.FONT],[Ke.FOOTER,P.FOOTER],[Ke.FOREIGN_OBJECT,P.FOREIGN_OBJECT],[Ke.FORM,P.FORM],[Ke.FRAME,P.FRAME],[Ke.FRAMESET,P.FRAMESET],[Ke.H1,P.H1],[Ke.H2,P.H2],[Ke.H3,P.H3],[Ke.H4,P.H4],[Ke.H5,P.H5],[Ke.H6,P.H6],[Ke.HEAD,P.HEAD],[Ke.HEADER,P.HEADER],[Ke.HGROUP,P.HGROUP],[Ke.HR,P.HR],[Ke.HTML,P.HTML],[Ke.I,P.I],[Ke.IMG,P.IMG],[Ke.IMAGE,P.IMAGE],[Ke.INPUT,P.INPUT],[Ke.IFRAME,P.IFRAME],[Ke.KEYGEN,P.KEYGEN],[Ke.LABEL,P.LABEL],[Ke.LI,P.LI],[Ke.LINK,P.LINK],[Ke.LISTING,P.LISTING],[Ke.MAIN,P.MAIN],[Ke.MALIGNMARK,P.MALIGNMARK],[Ke.MARQUEE,P.MARQUEE],[Ke.MATH,P.MATH],[Ke.MENU,P.MENU],[Ke.META,P.META],[Ke.MGLYPH,P.MGLYPH],[Ke.MI,P.MI],[Ke.MO,P.MO],[Ke.MN,P.MN],[Ke.MS,P.MS],[Ke.MTEXT,P.MTEXT],[Ke.NAV,P.NAV],[Ke.NOBR,P.NOBR],[Ke.NOFRAMES,P.NOFRAMES],[Ke.NOEMBED,P.NOEMBED],[Ke.NOSCRIPT,P.NOSCRIPT],[Ke.OBJECT,P.OBJECT],[Ke.OL,P.OL],[Ke.OPTGROUP,P.OPTGROUP],[Ke.OPTION,P.OPTION],[Ke.P,P.P],[Ke.PARAM,P.PARAM],[Ke.PLAINTEXT,P.PLAINTEXT],[Ke.PRE,P.PRE],[Ke.RB,P.RB],[Ke.RP,P.RP],[Ke.RT,P.RT],[Ke.RTC,P.RTC],[Ke.RUBY,P.RUBY],[Ke.S,P.S],[Ke.SCRIPT,P.SCRIPT],[Ke.SECTION,P.SECTION],[Ke.SELECT,P.SELECT],[Ke.SOURCE,P.SOURCE],[Ke.SMALL,P.SMALL],[Ke.SPAN,P.SPAN],[Ke.STRIKE,P.STRIKE],[Ke.STRONG,P.STRONG],[Ke.STYLE,P.STYLE],[Ke.SUB,P.SUB],[Ke.SUMMARY,P.SUMMARY],[Ke.SUP,P.SUP],[Ke.TABLE,P.TABLE],[Ke.TBODY,P.TBODY],[Ke.TEMPLATE,P.TEMPLATE],[Ke.TEXTAREA,P.TEXTAREA],[Ke.TFOOT,P.TFOOT],[Ke.TD,P.TD],[Ke.TH,P.TH],[Ke.THEAD,P.THEAD],[Ke.TITLE,P.TITLE],[Ke.TR,P.TR],[Ke.TRACK,P.TRACK],[Ke.TT,P.TT],[Ke.U,P.U],[Ke.UL,P.UL],[Ke.SVG,P.SVG],[Ke.VAR,P.VAR],[Ke.WBR,P.WBR],[Ke.XMP,P.XMP]]);function zO(e){var t;return(t=hit.get(e))!==null&&t!==void 0?t:P.UNKNOWN}const $t=P,pit={[Et.HTML]:new Set([$t.ADDRESS,$t.APPLET,$t.AREA,$t.ARTICLE,$t.ASIDE,$t.BASE,$t.BASEFONT,$t.BGSOUND,$t.BLOCKQUOTE,$t.BODY,$t.BR,$t.BUTTON,$t.CAPTION,$t.CENTER,$t.COL,$t.COLGROUP,$t.DD,$t.DETAILS,$t.DIR,$t.DIV,$t.DL,$t.DT,$t.EMBED,$t.FIELDSET,$t.FIGCAPTION,$t.FIGURE,$t.FOOTER,$t.FORM,$t.FRAME,$t.FRAMESET,$t.H1,$t.H2,$t.H3,$t.H4,$t.H5,$t.H6,$t.HEAD,$t.HEADER,$t.HGROUP,$t.HR,$t.HTML,$t.IFRAME,$t.IMG,$t.INPUT,$t.LI,$t.LINK,$t.LISTING,$t.MAIN,$t.MARQUEE,$t.MENU,$t.META,$t.NAV,$t.NOEMBED,$t.NOFRAMES,$t.NOSCRIPT,$t.OBJECT,$t.OL,$t.P,$t.PARAM,$t.PLAINTEXT,$t.PRE,$t.SCRIPT,$t.SECTION,$t.SELECT,$t.SOURCE,$t.STYLE,$t.SUMMARY,$t.TABLE,$t.TBODY,$t.TD,$t.TEMPLATE,$t.TEXTAREA,$t.TFOOT,$t.TH,$t.THEAD,$t.TITLE,$t.TR,$t.TRACK,$t.UL,$t.WBR,$t.XMP]),[Et.MATHML]:new Set([$t.MI,$t.MO,$t.MN,$t.MS,$t.MTEXT,$t.ANNOTATION_XML]),[Et.SVG]:new Set([$t.TITLE,$t.FOREIGN_OBJECT,$t.DESC]),[Et.XLINK]:new Set,[Et.XML]:new Set,[Et.XMLNS]:new Set};function Tme(e){return e===$t.H1||e===$t.H2||e===$t.H3||e===$t.H4||e===$t.H5||e===$t.H6}Ke.STYLE,Ke.SCRIPT,Ke.XMP,Ke.IFRAME,Ke.NOEMBED,Ke.NOFRAMES,Ke.PLAINTEXT;const mit=new Map([[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]]);var ge;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(ge||(ge={}));const Ma={DATA:ge.DATA,RCDATA:ge.RCDATA,RAWTEXT:ge.RAWTEXT,SCRIPT_DATA:ge.SCRIPT_DATA,PLAINTEXT:ge.PLAINTEXT,CDATA_SECTION:ge.CDATA_SECTION};function j2(e){return e>=de.DIGIT_0&&e<=de.DIGIT_9}function u2(e){return e>=de.LATIN_CAPITAL_A&&e<=de.LATIN_CAPITAL_Z}function git(e){return e>=de.LATIN_SMALL_A&&e<=de.LATIN_SMALL_Z}function rm(e){return git(e)||u2(e)}function TL(e){return rm(e)||j2(e)}function kme(e){return e>=de.LATIN_CAPITAL_A&&e<=de.LATIN_CAPITAL_F}function Cme(e){return e>=de.LATIN_SMALL_A&&e<=de.LATIN_SMALL_F}function bit(e){return j2(e)||kme(e)||Cme(e)}function CA(e){return e+32}function Ame(e){return e===de.SPACE||e===de.LINE_FEED||e===de.TABULATION||e===de.FORM_FEED}function yit(e){return e===de.EQUALS_SIGN||TL(e)}function fte(e){return Ame(e)||e===de.SOLIDUS||e===de.GREATER_THAN_SIGN}class vit{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ge.DATA,this.returnState=ge.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new rit(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(pt.endTagWithAttributes),t.selfClosing&&this._err(pt.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Or.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Or.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Or.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Or.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Ame(t)?Or.WHITESPACE_CHARACTER:t===de.NULL?Or.NULL_CHARACTER:Or.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Or.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=nm[0];a>=0&&(a=xme(nm,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=nm[a];const o=s&kf.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==de.SEMICOLON&&this._isCharacterReferenceInAttribute()&&yit(this.preprocessor.peek(1))?(n=[de.AMPERSAND],a+=l):(n=l===0?[nm[a]&~kf.VALUE_LENGTH]:l===1?[nm[++a]]:[nm[++a],nm[++a]],r=0,i=t!==de.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(pt.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ge.DATA:{this._stateData(t);break}case ge.RCDATA:{this._stateRcdata(t);break}case ge.RAWTEXT:{this._stateRawtext(t);break}case ge.SCRIPT_DATA:{this._stateScriptData(t);break}case ge.PLAINTEXT:{this._statePlaintext(t);break}case ge.TAG_OPEN:{this._stateTagOpen(t);break}case ge.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ge.TAG_NAME:{this._stateTagName(t);break}case ge.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ge.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ge.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ge.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ge.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ge.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ge.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ge.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ge.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ge.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ge.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ge.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ge.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ge.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ge.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ge.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ge.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ge.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ge.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ge.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ge.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ge.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ge.COMMENT_START:{this._stateCommentStart(t);break}case ge.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ge.COMMENT:{this._stateComment(t);break}case ge.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ge.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ge.COMMENT_END:{this._stateCommentEnd(t);break}case ge.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ge.DOCTYPE:{this._stateDoctype(t);break}case ge.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ge.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ge.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ge.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ge.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ge.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ge.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ge.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ge.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ge.CDATA_SECTION:{this._stateCdataSection(t);break}case ge.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ge.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ge.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ge.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ge.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ge.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ge.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ge.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case de.LESS_THAN_SIGN:{this.state=ge.TAG_OPEN;break}case de.AMPERSAND:{this.returnState=ge.DATA,this.state=ge.CHARACTER_REFERENCE;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitCodePoint(t);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case de.AMPERSAND:{this.returnState=ge.RCDATA,this.state=ge.CHARACTER_REFERENCE;break}case de.LESS_THAN_SIGN:{this.state=ge.RCDATA_LESS_THAN_SIGN;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Gi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case de.LESS_THAN_SIGN:{this.state=ge.RAWTEXT_LESS_THAN_SIGN;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Gi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case de.LESS_THAN_SIGN:{this.state=ge.SCRIPT_DATA_LESS_THAN_SIGN;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Gi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Gi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(rm(t))this._createStartTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case de.EXCLAMATION_MARK:{this.state=ge.MARKUP_DECLARATION_OPEN;break}case de.SOLIDUS:{this.state=ge.END_TAG_OPEN;break}case de.QUESTION_MARK:{this._err(pt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ge.BOGUS_COMMENT,this._stateBogusComment(t);break}case de.EOF:{this._err(pt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(pt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ge.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(rm(t))this._createEndTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case de.GREATER_THAN_SIGN:{this._err(pt.missingEndTagName),this.state=ge.DATA;break}case de.EOF:{this._err(pt.eofBeforeTagName),this._emitChars("");break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_ESCAPED,this._emitChars(Gi);break}case de.EOF:{this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===de.SOLIDUS?this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:rm(t)?(this._emitChars("<"),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ge.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){rm(t)?(this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Gi);break}case de.EOF:{this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===de.SOLIDUS?(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(cl.SCRIPT,!1)&&fte(this.preprocessor.peek(cl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(pt.characterReferenceOutsideUnicodeRange),this.charRefCode=de.REPLACEMENT_CHARACTER;else if(vme(this.charRefCode))this._err(pt.surrogateCharacterReference),this.charRefCode=de.REPLACEMENT_CHARACTER;else if(Sme(this.charRefCode))this._err(pt.noncharacterCharacterReference);else if(Ome(this.charRefCode)||this.charRefCode===de.CARRIAGE_RETURN){this._err(pt.controlCharacterReference);const n=mit.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const _me=new Set([P.DD,P.DT,P.LI,P.OPTGROUP,P.OPTION,P.P,P.RB,P.RP,P.RT,P.RTC]),hte=new Set([..._me,P.CAPTION,P.COLGROUP,P.TBODY,P.TD,P.TFOOT,P.TH,P.THEAD,P.TR]),AA=new Map([[P.APPLET,Et.HTML],[P.CAPTION,Et.HTML],[P.HTML,Et.HTML],[P.MARQUEE,Et.HTML],[P.OBJECT,Et.HTML],[P.TABLE,Et.HTML],[P.TD,Et.HTML],[P.TEMPLATE,Et.HTML],[P.TH,Et.HTML],[P.ANNOTATION_XML,Et.MATHML],[P.MI,Et.MATHML],[P.MN,Et.MATHML],[P.MO,Et.MATHML],[P.MS,Et.MATHML],[P.MTEXT,Et.MATHML],[P.DESC,Et.SVG],[P.FOREIGN_OBJECT,Et.SVG],[P.TITLE,Et.SVG]]),Oit=[P.H1,P.H2,P.H3,P.H4,P.H5,P.H6],Sit=[P.TR,P.TEMPLATE,P.HTML],Eit=[P.TBODY,P.TFOOT,P.THEAD,P.TEMPLATE,P.HTML],wit=[P.TABLE,P.TEMPLATE,P.HTML],xit=[P.TD,P.TH];class Tit{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=P.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===P.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Et.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Et.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(wit,Et.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Eit,Et.HTML)}clearBackToTableRowContext(){this.clearBackTo(Sit,Et.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===P.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===P.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Et.HTML)return!0;if(AA.get(r)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(Tme(n)&&r===Et.HTML)return!0;if(AA.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Et.HTML)return!0;if((r===P.UL||r===P.OL)&&i===Et.HTML||AA.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Et.HTML)return!0;if(r===P.BUTTON&&i===Et.HTML||AA.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Et.HTML){if(r===t)return!0;if(r===P.TABLE||r===P.TEMPLATE||r===P.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Et.HTML){if(n===P.TBODY||n===P.THEAD||n===P.TFOOT)return!0;if(n===P.TABLE||n===P.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Et.HTML){if(r===t)return!0;if(r!==P.OPTION&&r!==P.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;_me.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;hte.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&hte.has(this.currentTagId);)this.pop()}}const NP=3;var ad;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ad=ad||(ad={}));const pte={type:ad.Marker};class kit{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=NP&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(pte)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ad.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ad.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(pte);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ad.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ad.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ad.Element&&n.element===t)}}function mte(e){return{nodeName:"#text",value:e,parentNode:null}}const dy={createDocument(){return{nodeName:"#document",mode:fu.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};dy.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(dy.isTextNode(n)){n.value+=t;return}}dy.appendChild(e,mte(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&dy.isTextNode(r)?r.value+=t:dy.insertBefore(e,mte(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function Dit(e){return e.name===Rme&&e.publicId===null&&(e.systemId===null||e.systemId===Cit)}function Nit(e){if(e.name!==Rme)return fu.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Ait)return fu.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Rit.has(n))return fu.QUIRKS;let r=t===null?_it:Ime;if(gte(n,r))return fu.QUIRKS;if(r=t===null?Dme:Iit,gte(n,r))return fu.LIMITED_QUIRKS}return fu.NO_QUIRKS}const bte={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Pit="definitionurl",Mit="definitionURL",Lit=new Map(["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(e=>[e.toLowerCase(),e])),$it=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Et.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Et.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Et.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Et.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Et.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Et.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Et.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Et.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Et.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Et.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Et.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Et.XMLNS}]]),Fit=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Bit=new Set([P.B,P.BIG,P.BLOCKQUOTE,P.BODY,P.BR,P.CENTER,P.CODE,P.DD,P.DIV,P.DL,P.DT,P.EM,P.EMBED,P.H1,P.H2,P.H3,P.H4,P.H5,P.H6,P.HEAD,P.HR,P.I,P.IMG,P.LI,P.LISTING,P.MENU,P.META,P.NOBR,P.OL,P.P,P.PRE,P.RUBY,P.S,P.SMALL,P.SPAN,P.STRONG,P.STRIKE,P.SUB,P.SUP,P.TABLE,P.TT,P.U,P.UL,P.VAR]);function Uit(e){const t=e.tagID;return t===P.FONT&&e.attrs.some(({name:r})=>r===Qm.COLOR||r===Qm.SIZE||r===Qm.FACE)||Bit.has(t)}function Nme(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===Et.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Et.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ae.TEXT}switchToPlaintextParsing(){this.insertionMode=Ae.TEXT,this.originalInsertionMode=Ae.IN_BODY,this.tokenizer.state=Ma.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Ke.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Et.HTML))switch(this.fragmentContextID){case P.TITLE:case P.TEXTAREA:{this.tokenizer.state=Ma.RCDATA;break}case P.STYLE:case P.XMP:case P.IFRAME:case P.NOEMBED:case P.NOFRAMES:case P.NOSCRIPT:{this.tokenizer.state=Ma.RAWTEXT;break}case P.SCRIPT:{this.tokenizer.state=Ma.SCRIPT_DATA;break}case P.PLAINTEXT:{this.tokenizer.state=Ma.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Et.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Et.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Ke.HTML,Et.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,P.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Or.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===P.SVG&&this.treeAdapter.getTagName(n)===Ke.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Et.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===P.MGLYPH||t.tagID===P.MALIGNMARK)&&!this._isIntegrationPoint(r,n,Et.HTML)}_processToken(t){switch(t.type){case Or.CHARACTER:{this.onCharacter(t);break}case Or.NULL_CHARACTER:{this.onNullCharacter(t);break}case Or.COMMENT:{this.onComment(t);break}case Or.DOCTYPE:{this.onDoctype(t);break}case Or.START_TAG:{this._processStartTag(t);break}case Or.END_TAG:{this.onEndTag(t);break}case Or.EOF:{this.onEof(t);break}case Or.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Vit(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===ad.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ae.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(P.P),this.openElements.popUntilTagNamePopped(P.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case P.TR:{this.insertionMode=Ae.IN_ROW;return}case P.TBODY:case P.THEAD:case P.TFOOT:{this.insertionMode=Ae.IN_TABLE_BODY;return}case P.CAPTION:{this.insertionMode=Ae.IN_CAPTION;return}case P.COLGROUP:{this.insertionMode=Ae.IN_COLUMN_GROUP;return}case P.TABLE:{this.insertionMode=Ae.IN_TABLE;return}case P.BODY:{this.insertionMode=Ae.IN_BODY;return}case P.FRAMESET:{this.insertionMode=Ae.IN_FRAMESET;return}case P.SELECT:{this._resetInsertionModeForSelect(t);return}case P.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case P.HTML:{this.insertionMode=this.headElement?Ae.AFTER_HEAD:Ae.BEFORE_HEAD;return}case P.TD:case P.TH:{if(t>0){this.insertionMode=Ae.IN_CELL;return}break}case P.HEAD:{if(t>0){this.insertionMode=Ae.IN_HEAD;return}break}}this.insertionMode=Ae.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===P.TEMPLATE)break;if(r===P.TABLE){this.insertionMode=Ae.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ae.IN_SELECT}_isElementCausesFosterParenting(t){return Mme.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case P.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Et.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case P.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return pit[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){xst(this,t);return}switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{H2(this,t);break}case Ae.BEFORE_HEAD:{V2(this,t);break}case Ae.IN_HEAD:{W2(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{Q2(this,t);break}case Ae.AFTER_HEAD:{q2(this,t);break}case Ae.IN_BODY:case Ae.IN_CAPTION:case Ae.IN_CELL:case Ae.IN_TEMPLATE:{$me(this,t);break}case Ae.TEXT:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{PP(this,t);break}case Ae.IN_TABLE_TEXT:{Hme(this,t);break}case Ae.IN_COLUMN_GROUP:{V3(this,t);break}case Ae.AFTER_BODY:{W3(this,t);break}case Ae.AFTER_AFTER_BODY:{W4(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){wst(this,t);return}switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{H2(this,t);break}case Ae.BEFORE_HEAD:{V2(this,t);break}case Ae.IN_HEAD:{W2(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{Q2(this,t);break}case Ae.AFTER_HEAD:{q2(this,t);break}case Ae.TEXT:{this._insertCharacters(t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{PP(this,t);break}case Ae.IN_COLUMN_GROUP:{V3(this,t);break}case Ae.AFTER_BODY:{W3(this,t);break}case Ae.AFTER_AFTER_BODY:{W4(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){kL(this,t);return}switch(this.insertionMode){case Ae.INITIAL:case Ae.BEFORE_HTML:case Ae.BEFORE_HEAD:case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:case Ae.IN_BODY:case Ae.IN_TABLE:case Ae.IN_CAPTION:case Ae.IN_COLUMN_GROUP:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:case Ae.IN_CELL:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:case Ae.IN_TEMPLATE:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:{kL(this,t);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}case Ae.AFTER_BODY:{tat(this,t);break}case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{nat(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Ae.INITIAL:{rat(this,t);break}case Ae.BEFORE_HEAD:case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:{this._err(t,pt.misplacedDoctype);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,pt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Tst(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{iat(this,t);break}case Ae.BEFORE_HEAD:{sat(this,t);break}case Ae.IN_HEAD:{Dd(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{uat(this,t);break}case Ae.AFTER_HEAD:{dat(this,t);break}case Ae.IN_BODY:{To(this,t);break}case Ae.IN_TABLE:{lO(this,t);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}case Ae.IN_CAPTION:{ost(this,t);break}case Ae.IN_COLUMN_GROUP:{oU(this,t);break}case Ae.IN_TABLE_BODY:{dI(this,t);break}case Ae.IN_ROW:{fI(this,t);break}case Ae.IN_CELL:{cst(this,t);break}case Ae.IN_SELECT:{Qme(this,t);break}case Ae.IN_SELECT_IN_TABLE:{fst(this,t);break}case Ae.IN_TEMPLATE:{pst(this,t);break}case Ae.AFTER_BODY:{gst(this,t);break}case Ae.IN_FRAMESET:{bst(this,t);break}case Ae.AFTER_FRAMESET:{vst(this,t);break}case Ae.AFTER_AFTER_BODY:{Sst(this,t);break}case Ae.AFTER_AFTER_FRAMESET:{Est(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?kst(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{aat(this,t);break}case Ae.BEFORE_HEAD:{oat(this,t);break}case Ae.IN_HEAD:{lat(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{cat(this,t);break}case Ae.AFTER_HEAD:{fat(this,t);break}case Ae.IN_BODY:{cI(this,t);break}case Ae.TEXT:{Xat(this,t);break}case Ae.IN_TABLE:{dx(this,t);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}case Ae.IN_CAPTION:{lst(this,t);break}case Ae.IN_COLUMN_GROUP:{ust(this,t);break}case Ae.IN_TABLE_BODY:{CL(this,t);break}case Ae.IN_ROW:{Wme(this,t);break}case Ae.IN_CELL:{dst(this,t);break}case Ae.IN_SELECT:{qme(this,t);break}case Ae.IN_SELECT_IN_TABLE:{hst(this,t);break}case Ae.IN_TEMPLATE:{mst(this,t);break}case Ae.AFTER_BODY:{Yme(this,t);break}case Ae.IN_FRAMESET:{yst(this,t);break}case Ae.AFTER_FRAMESET:{Ost(this,t);break}case Ae.AFTER_AFTER_BODY:{W4(this,t);break}}}onEof(t){switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{H2(this,t);break}case Ae.BEFORE_HEAD:{V2(this,t);break}case Ae.IN_HEAD:{W2(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{Q2(this,t);break}case Ae.AFTER_HEAD:{q2(this,t);break}case Ae.IN_BODY:case Ae.IN_TABLE:case Ae.IN_CAPTION:case Ae.IN_COLUMN_GROUP:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:case Ae.IN_CELL:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:{zme(this,t);break}case Ae.TEXT:{Kat(this,t);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}case Ae.IN_TEMPLATE:{Gme(this,t);break}case Ae.AFTER_BODY:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{sU(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===de.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:case Ae.TEXT:case Ae.IN_COLUMN_GROUP:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:{this._insertCharacters(t);break}case Ae.IN_BODY:case Ae.IN_CAPTION:case Ae.IN_CELL:case Ae.IN_TEMPLATE:case Ae.AFTER_BODY:case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{Lme(this,t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{PP(this,t);break}case Ae.IN_TABLE_TEXT:{jme(this,t);break}}}};function Yit(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ume(e,t),n}function Zit(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Xit(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=qit;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Kit(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Kit(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Jit(e,t,n){const r=e.treeAdapter.getTagName(t),i=zO(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===P.TEMPLATE&&a===Et.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function eat(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function aU(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function rat(e,t){e._setDocumentType(t);const n=t.forceQuirks?fu.QUIRKS:Nit(t);Dit(t)||e._err(t,pt.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ae.BEFORE_HTML}function PE(e,t){e._err(t,pt.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,fu.QUIRKS),e.insertionMode=Ae.BEFORE_HTML,e._processToken(t)}function iat(e,t){t.tagID===P.HTML?(e._insertElement(t,Et.HTML),e.insertionMode=Ae.BEFORE_HEAD):H2(e,t)}function aat(e,t){const n=t.tagID;(n===P.HTML||n===P.HEAD||n===P.BODY||n===P.BR)&&H2(e,t)}function H2(e,t){e._insertFakeRootElement(),e.insertionMode=Ae.BEFORE_HEAD,e._processToken(t)}function sat(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.HEAD:{e._insertElement(t,Et.HTML),e.headElement=e.openElements.current,e.insertionMode=Ae.IN_HEAD;break}default:V2(e,t)}}function oat(e,t){const n=t.tagID;n===P.HEAD||n===P.BODY||n===P.HTML||n===P.BR?V2(e,t):e._err(t,pt.endTagWithoutMatchingOpenElement)}function V2(e,t){e._insertFakeElement(Ke.HEAD,P.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ae.IN_HEAD,e._processToken(t)}function Dd(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.BASE:case P.BASEFONT:case P.BGSOUND:case P.LINK:case P.META:{e._appendElement(t,Et.HTML),t.ackSelfClosing=!0;break}case P.TITLE:{e._switchToTextParsing(t,Ma.RCDATA);break}case P.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ma.RAWTEXT):(e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_HEAD_NO_SCRIPT);break}case P.NOFRAMES:case P.STYLE:{e._switchToTextParsing(t,Ma.RAWTEXT);break}case P.SCRIPT:{e._switchToTextParsing(t,Ma.SCRIPT_DATA);break}case P.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ae.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ae.IN_TEMPLATE);break}case P.HEAD:{e._err(t,pt.misplacedStartTagForHeadElement);break}default:W2(e,t)}}function lat(e,t){switch(t.tagID){case P.HEAD:{e.openElements.pop(),e.insertionMode=Ae.AFTER_HEAD;break}case P.BODY:case P.BR:case P.HTML:{W2(e,t);break}case P.TEMPLATE:{_1(e,t);break}default:e._err(t,pt.endTagWithoutMatchingOpenElement)}}function _1(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==P.TEMPLATE&&e._err(t,pt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(P.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,pt.endTagWithoutMatchingOpenElement)}function W2(e,t){e.openElements.pop(),e.insertionMode=Ae.AFTER_HEAD,e._processToken(t)}function uat(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.BASEFONT:case P.BGSOUND:case P.HEAD:case P.LINK:case P.META:case P.NOFRAMES:case P.STYLE:{Dd(e,t);break}case P.NOSCRIPT:{e._err(t,pt.nestedNoscriptInHead);break}default:Q2(e,t)}}function cat(e,t){switch(t.tagID){case P.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Ae.IN_HEAD;break}case P.BR:{Q2(e,t);break}default:e._err(t,pt.endTagWithoutMatchingOpenElement)}}function Q2(e,t){const n=t.type===Or.EOF?pt.openElementsLeftAfterEof:pt.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Ae.IN_HEAD,e._processToken(t)}function dat(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.BODY:{e._insertElement(t,Et.HTML),e.framesetOk=!1,e.insertionMode=Ae.IN_BODY;break}case P.FRAMESET:{e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_FRAMESET;break}case P.BASE:case P.BASEFONT:case P.BGSOUND:case P.LINK:case P.META:case P.NOFRAMES:case P.SCRIPT:case P.STYLE:case P.TEMPLATE:case P.TITLE:{e._err(t,pt.abandonedHeadElementChild),e.openElements.push(e.headElement,P.HEAD),Dd(e,t),e.openElements.remove(e.headElement);break}case P.HEAD:{e._err(t,pt.misplacedStartTagForHeadElement);break}default:q2(e,t)}}function fat(e,t){switch(t.tagID){case P.BODY:case P.HTML:case P.BR:{q2(e,t);break}case P.TEMPLATE:{_1(e,t);break}default:e._err(t,pt.endTagWithoutMatchingOpenElement)}}function q2(e,t){e._insertFakeElement(Ke.BODY,P.BODY),e.insertionMode=Ae.IN_BODY,uI(e,t)}function uI(e,t){switch(t.type){case Or.CHARACTER:{$me(e,t);break}case Or.WHITESPACE_CHARACTER:{Lme(e,t);break}case Or.COMMENT:{kL(e,t);break}case Or.START_TAG:{To(e,t);break}case Or.END_TAG:{cI(e,t);break}case Or.EOF:{zme(e,t);break}}}function Lme(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $me(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function hat(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function pat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function mat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_FRAMESET)}function gat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML)}function bat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),Tme(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Et.HTML)}function yat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function vat(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),n||(e.formElement=e.openElements.current))}function Oat(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===P.LI&&i===P.LI||(n===P.DD||n===P.DT)&&(i===P.DD||i===P.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==P.ADDRESS&&i!==P.DIV&&i!==P.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML)}function Sat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),e.tokenizer.state=Ma.PLAINTEXT}function Eat(e,t){e.openElements.hasInScope(P.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(P.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.framesetOk=!1}function wat(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ke.A);n&&(aU(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Tat(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(P.NOBR)&&(aU(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Et.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Cat(e,t){e.treeAdapter.getDocumentMode(e.document)!==fu.QUIRKS&&e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),e.framesetOk=!1,e.insertionMode=Ae.IN_TABLE}function Fme(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Et.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Bme(e){const t=Eme(e,Qm.TYPE);return t!=null&&t.toLowerCase()===Wit}function Aat(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Et.HTML),Bme(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function _at(e,t){e._appendElement(t,Et.HTML),t.ackSelfClosing=!0}function Rat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._appendElement(t,Et.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Iat(e,t){t.tagName=Ke.IMG,t.tagID=P.IMG,Fme(e,t)}function Dat(e,t){e._insertElement(t,Et.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ma.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ae.TEXT}function Nat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ma.RAWTEXT)}function Pat(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ma.RAWTEXT)}function Ote(e,t){e._switchToTextParsing(t,Ma.RAWTEXT)}function Mat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ae.IN_TABLE||e.insertionMode===Ae.IN_CAPTION||e.insertionMode===Ae.IN_TABLE_BODY||e.insertionMode===Ae.IN_ROW||e.insertionMode===Ae.IN_CELL?Ae.IN_SELECT_IN_TABLE:Ae.IN_SELECT}function Lat(e,t){e.openElements.currentTagId===P.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML)}function $at(e,t){e.openElements.hasInScope(P.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Et.HTML)}function Fat(e,t){e.openElements.hasInScope(P.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(P.RTC),e._insertElement(t,Et.HTML)}function Bat(e,t){e._reconstructActiveFormattingElements(),Nme(t),iU(t),t.selfClosing?e._appendElement(t,Et.MATHML):e._insertElement(t,Et.MATHML),t.ackSelfClosing=!0}function Uat(e,t){e._reconstructActiveFormattingElements(),Pme(t),iU(t),t.selfClosing?e._appendElement(t,Et.SVG):e._insertElement(t,Et.SVG),t.ackSelfClosing=!0}function Ste(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML)}function To(e,t){switch(t.tagID){case P.I:case P.S:case P.B:case P.U:case P.EM:case P.TT:case P.BIG:case P.CODE:case P.FONT:case P.SMALL:case P.STRIKE:case P.STRONG:{xat(e,t);break}case P.A:{wat(e,t);break}case P.H1:case P.H2:case P.H3:case P.H4:case P.H5:case P.H6:{bat(e,t);break}case P.P:case P.DL:case P.OL:case P.UL:case P.DIV:case P.DIR:case P.NAV:case P.MAIN:case P.MENU:case P.ASIDE:case P.CENTER:case P.FIGURE:case P.FOOTER:case P.HEADER:case P.HGROUP:case P.DIALOG:case P.DETAILS:case P.ADDRESS:case P.ARTICLE:case P.SECTION:case P.SUMMARY:case P.FIELDSET:case P.BLOCKQUOTE:case P.FIGCAPTION:{gat(e,t);break}case P.LI:case P.DD:case P.DT:{Oat(e,t);break}case P.BR:case P.IMG:case P.WBR:case P.AREA:case P.EMBED:case P.KEYGEN:{Fme(e,t);break}case P.HR:{Rat(e,t);break}case P.RB:case P.RTC:{$at(e,t);break}case P.RT:case P.RP:{Fat(e,t);break}case P.PRE:case P.LISTING:{yat(e,t);break}case P.XMP:{Nat(e,t);break}case P.SVG:{Uat(e,t);break}case P.HTML:{hat(e,t);break}case P.BASE:case P.LINK:case P.META:case P.STYLE:case P.TITLE:case P.SCRIPT:case P.BGSOUND:case P.BASEFONT:case P.TEMPLATE:{Dd(e,t);break}case P.BODY:{pat(e,t);break}case P.FORM:{vat(e,t);break}case P.NOBR:{Tat(e,t);break}case P.MATH:{Bat(e,t);break}case P.TABLE:{Cat(e,t);break}case P.INPUT:{Aat(e,t);break}case P.PARAM:case P.TRACK:case P.SOURCE:{_at(e,t);break}case P.IMAGE:{Iat(e,t);break}case P.BUTTON:{Eat(e,t);break}case P.APPLET:case P.OBJECT:case P.MARQUEE:{kat(e,t);break}case P.IFRAME:{Pat(e,t);break}case P.SELECT:{Mat(e,t);break}case P.OPTION:case P.OPTGROUP:{Lat(e,t);break}case P.NOEMBED:{Ote(e,t);break}case P.FRAMESET:{mat(e,t);break}case P.TEXTAREA:{Dat(e,t);break}case P.NOSCRIPT:{e.options.scriptingEnabled?Ote(e,t):Ste(e,t);break}case P.PLAINTEXT:{Sat(e,t);break}case P.COL:case P.TH:case P.TD:case P.TR:case P.HEAD:case P.FRAME:case P.TBODY:case P.TFOOT:case P.THEAD:case P.CAPTION:case P.COLGROUP:break;default:Ste(e,t)}}function zat(e,t){if(e.openElements.hasInScope(P.BODY)&&(e.insertionMode=Ae.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function jat(e,t){e.openElements.hasInScope(P.BODY)&&(e.insertionMode=Ae.AFTER_BODY,Yme(e,t))}function Hat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Vat(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(P.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(P.FORM):n&&e.openElements.remove(n))}function Wat(e){e.openElements.hasInButtonScope(P.P)||e._insertFakeElement(Ke.P,P.P),e._closePElement()}function Qat(e){e.openElements.hasInListItemScope(P.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(P.LI),e.openElements.popUntilTagNamePopped(P.LI))}function qat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Gat(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Yat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Zat(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ke.BR,P.BR),e.openElements.pop(),e.framesetOk=!1}function Ume(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==P.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function cI(e,t){switch(t.tagID){case P.A:case P.B:case P.I:case P.S:case P.U:case P.EM:case P.TT:case P.BIG:case P.CODE:case P.FONT:case P.NOBR:case P.SMALL:case P.STRIKE:case P.STRONG:{aU(e,t);break}case P.P:{Wat(e);break}case P.DL:case P.UL:case P.OL:case P.DIR:case P.DIV:case P.NAV:case P.PRE:case P.MAIN:case P.MENU:case P.ASIDE:case P.BUTTON:case P.CENTER:case P.FIGURE:case P.FOOTER:case P.HEADER:case P.HGROUP:case P.DIALOG:case P.ADDRESS:case P.ARTICLE:case P.DETAILS:case P.SECTION:case P.SUMMARY:case P.LISTING:case P.FIELDSET:case P.BLOCKQUOTE:case P.FIGCAPTION:{Hat(e,t);break}case P.LI:{Qat(e);break}case P.DD:case P.DT:{qat(e,t);break}case P.H1:case P.H2:case P.H3:case P.H4:case P.H5:case P.H6:{Gat(e);break}case P.BR:{Zat(e);break}case P.BODY:{zat(e,t);break}case P.HTML:{jat(e,t);break}case P.FORM:{Vat(e);break}case P.APPLET:case P.OBJECT:case P.MARQUEE:{Yat(e,t);break}case P.TEMPLATE:{_1(e,t);break}default:Ume(e,t)}}function zme(e,t){e.tmplInsertionModeStack.length>0?Gme(e,t):sU(e,t)}function Xat(e,t){var n;t.tagID===P.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Kat(e,t){e._err(t,pt.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function PP(e,t){if(Mme.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ae.IN_TABLE_TEXT,t.type){case Or.CHARACTER:{Hme(e,t);break}case Or.WHITESPACE_CHARACTER:{jme(e,t);break}}else RT(e,t)}function Jat(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_CAPTION}function est(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_COLUMN_GROUP}function tst(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ke.COLGROUP,P.COLGROUP),e.insertionMode=Ae.IN_COLUMN_GROUP,oU(e,t)}function nst(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_TABLE_BODY}function rst(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ke.TBODY,P.TBODY),e.insertionMode=Ae.IN_TABLE_BODY,dI(e,t)}function ist(e,t){e.openElements.hasInTableScope(P.TABLE)&&(e.openElements.popUntilTagNamePopped(P.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function ast(e,t){Bme(t)?e._appendElement(t,Et.HTML):RT(e,t),t.ackSelfClosing=!0}function sst(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Et.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function lO(e,t){switch(t.tagID){case P.TD:case P.TH:case P.TR:{rst(e,t);break}case P.STYLE:case P.SCRIPT:case P.TEMPLATE:{Dd(e,t);break}case P.COL:{tst(e,t);break}case P.FORM:{sst(e,t);break}case P.TABLE:{ist(e,t);break}case P.TBODY:case P.TFOOT:case P.THEAD:{nst(e,t);break}case P.INPUT:{ast(e,t);break}case P.CAPTION:{Jat(e,t);break}case P.COLGROUP:{est(e,t);break}default:RT(e,t)}}function dx(e,t){switch(t.tagID){case P.TABLE:{e.openElements.hasInTableScope(P.TABLE)&&(e.openElements.popUntilTagNamePopped(P.TABLE),e._resetInsertionMode());break}case P.TEMPLATE:{_1(e,t);break}case P.BODY:case P.CAPTION:case P.COL:case P.COLGROUP:case P.HTML:case P.TBODY:case P.TD:case P.TFOOT:case P.TH:case P.THEAD:case P.TR:break;default:RT(e,t)}}function RT(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,uI(e,t),e.fosterParentingEnabled=n}function jme(e,t){e.pendingCharacterTokens.push(t)}function Hme(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ME(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===P.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===P.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===P.OPTGROUP&&e.openElements.pop();break}case P.OPTION:{e.openElements.currentTagId===P.OPTION&&e.openElements.pop();break}case P.SELECT:{e.openElements.hasInSelectScope(P.SELECT)&&(e.openElements.popUntilTagNamePopped(P.SELECT),e._resetInsertionMode());break}case P.TEMPLATE:{_1(e,t);break}}}function fst(e,t){const n=t.tagID;n===P.CAPTION||n===P.TABLE||n===P.TBODY||n===P.TFOOT||n===P.THEAD||n===P.TR||n===P.TD||n===P.TH?(e.openElements.popUntilTagNamePopped(P.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Qme(e,t)}function hst(e,t){const n=t.tagID;n===P.CAPTION||n===P.TABLE||n===P.TBODY||n===P.TFOOT||n===P.THEAD||n===P.TR||n===P.TD||n===P.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(P.SELECT),e._resetInsertionMode(),e.onEndTag(t)):qme(e,t)}function pst(e,t){switch(t.tagID){case P.BASE:case P.BASEFONT:case P.BGSOUND:case P.LINK:case P.META:case P.NOFRAMES:case P.SCRIPT:case P.STYLE:case P.TEMPLATE:case P.TITLE:{Dd(e,t);break}case P.CAPTION:case P.COLGROUP:case P.TBODY:case P.TFOOT:case P.THEAD:{e.tmplInsertionModeStack[0]=Ae.IN_TABLE,e.insertionMode=Ae.IN_TABLE,lO(e,t);break}case P.COL:{e.tmplInsertionModeStack[0]=Ae.IN_COLUMN_GROUP,e.insertionMode=Ae.IN_COLUMN_GROUP,oU(e,t);break}case P.TR:{e.tmplInsertionModeStack[0]=Ae.IN_TABLE_BODY,e.insertionMode=Ae.IN_TABLE_BODY,dI(e,t);break}case P.TD:case P.TH:{e.tmplInsertionModeStack[0]=Ae.IN_ROW,e.insertionMode=Ae.IN_ROW,fI(e,t);break}default:e.tmplInsertionModeStack[0]=Ae.IN_BODY,e.insertionMode=Ae.IN_BODY,To(e,t)}}function mst(e,t){t.tagID===P.TEMPLATE&&_1(e,t)}function Gme(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(P.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):sU(e,t)}function gst(e,t){t.tagID===P.HTML?To(e,t):W3(e,t)}function Yme(e,t){var n;if(t.tagID===P.HTML){if(e.fragmentContext||(e.insertionMode=Ae.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===P.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else W3(e,t)}function W3(e,t){e.insertionMode=Ae.IN_BODY,uI(e,t)}function bst(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.FRAMESET:{e._insertElement(t,Et.HTML);break}case P.FRAME:{e._appendElement(t,Et.HTML),t.ackSelfClosing=!0;break}case P.NOFRAMES:{Dd(e,t);break}}}function yst(e,t){t.tagID===P.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==P.FRAMESET&&(e.insertionMode=Ae.AFTER_FRAMESET))}function vst(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.NOFRAMES:{Dd(e,t);break}}}function Ost(e,t){t.tagID===P.HTML&&(e.insertionMode=Ae.AFTER_AFTER_FRAMESET)}function Sst(e,t){t.tagID===P.HTML?To(e,t):W4(e,t)}function W4(e,t){e.insertionMode=Ae.IN_BODY,uI(e,t)}function Est(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.NOFRAMES:{Dd(e,t);break}}}function wst(e,t){t.chars=Gi,e._insertCharacters(t)}function xst(e,t){e._insertCharacters(t),e.framesetOk=!1}function Zme(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Et.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Tst(e,t){if(Uit(t))Zme(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Et.MATHML?Nme(t):r===Et.SVG&&(zit(t),Pme(t)),iU(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function kst(e,t){if(t.tagID===P.P||t.tagID===P.BR){Zme(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Et.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Ke.AREA,Ke.BASE,Ke.BASEFONT,Ke.BGSOUND,Ke.BR,Ke.COL,Ke.EMBED,Ke.FRAME,Ke.HR,Ke.IMG,Ke.INPUT,Ke.KEYGEN,Ke.LINK,Ke.META,Ke.PARAM,Ke.SOURCE,Ke.TRACK,Ke.WBR;const Cst=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ete={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Xme(e,t){const n=$st(e),r=KB("type",{handlers:{root:Ast,element:_st,text:Rst,comment:Jme,doctype:Ist,raw:Nst},unknown:Pst}),i={parser:n?new vte(Ete):vte.getFragmentParser(void 0,Ete),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),jO(i,Zf());const a=n?i.parser.document:i.parser.getFragment(),s=Brt(a,{file:i.options.file});return i.stitches&&Yo(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Kme(e,t){let n=-1;if(e)for(;++n"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function n0e(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?n0e(t.parentElement):null}function Ust(e){var t=n=>{var r=n0e(n.target);r&&(r.classList.add("active"),Bst(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};N.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var zst=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],jst=e=>e;const Hst=hn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:f={},warpperElement:h={},urlTransform:g}=e,b=at(e,zst),S=hn.useRef(null);N.useImperativeHandle(t,()=>M({},e,{mdp:S}),[S,e]);var E=(n||"")+" "+(r||"");Ust(S);var w=[...b.rehypePlugins||[]],x={allowElement:(R,A,D)=>b.allowElement?b.allowElement(R,A,D):/^[A-Za-z0-9]+$/.test(R.tagName)};o&&w.push(t0e);var k=[...b.remarkPlugins||[],Crt],C=M({},h,f);return I.jsx("div",M({ref:S,onScroll:l,onMouseOver:u},C,{className:E,style:a,children:I.jsx(btt,M({},x,b,{skipHtml:o,urlTransform:g||jst,rehypePlugins:c?c("rehype",w):w,remarkPlugins:c?c("remark",k):k,children:i||""}))}))});function Ly(e){return"children"in e?r0e(e):"value"in e?e.value:""}function Vst(e){return e.type==="text"?e.value:"children"in e?r0e(e):""}function r0e(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const f={};let h;for(h in o)Wst.call(o,h)&&(f[h]=h==="children"?c:o[h]);return f}}function qst(e){return"children"in e&&e.children!==void 0}var AL={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,u,c]=a;if(l&&c){l=parseInt(l),c=parseInt(c);const f=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Nd.displayName="c";Nd.aliases=[];function Nd(e){e.register(Dr),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}R1.displayName="cpp";R1.aliases=[];function R1(e){e.register(Nd),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}hI.displayName="arduino";hI.aliases=["ino"];function hI(e){e.register(R1),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}DT.displayName="bash";DT.aliases=["sh","shell"];function DT(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(be,ee){return"(?:"+Te[+ee]+")"})}function r(z,Te,be){return RegExp(n(z,Te),be||"")}function i(z,Te){for(var be=0;be>/g,function(){return"(?:"+z+")"});return z.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(z){return"\\b(?:"+z.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),u=s(a.typeDeclaration+" "+a.contextual+" "+a.other),c=s(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,b]),E=/\[\s*(?:,\s*)*\]/.source,w=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,E]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,h,E]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),C=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,E]),R={keyword:l,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,b]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,c,g]),inside:R}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,S]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,b,g,C,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,h]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(C),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var L=D+"|"+A,F=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[L]),W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[F]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Z=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,W]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,Z]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[W]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Q=/:[^}\r\n]+/.source,H=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[F]),2),J=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,Q]),K=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[L]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,Q]);function te(z,Te){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[z]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Te,Q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[J]),lookbehind:!0,greedy:!0,inside:te(J,H)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[X]),lookbehind:!0,greedy:!0,inside:te(X,K)}],char:{pattern:RegExp(A),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}_s.displayName="markup";_s.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function _s(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}R0.displayName="css";R0.aliases=[];function R0(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}pI.displayName="diff";pI.aliases=[];function pI(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +`,...a.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}Xpe.peek=Ent;function Xpe(e){return e.value||""}function Ent(){return"<"}Kpe.peek=wnt;function Kpe(e,t,n,r){const i=eU(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function wnt(){return"!"}Jpe.peek=xnt;function Jpe(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function xnt(){return"!"}eme.peek=Tnt;function eme(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}nme.peek=knt;function nme(e,t,n,r){const i=eU(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(tme(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=c,f}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function knt(e,t,n){return tme(e,n)?"<":"["}rme.peek=Cnt;function rme(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Cnt(){return"["}function tU(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ant(e){const t=tU(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function _nt(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ime(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Rnt(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?_nt(n):tU(n);const o=e.ordered?s==="."?")":".":Ant(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),ime(n)===s&&c){let f=-1;for(;++f-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(f,h,g){return h?(g?"":" ".repeat(s))+f:(g?a:a+" ".repeat(s-a.length))+f}}function Nnt(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const Pnt=BO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Mnt(e,t,n,r){return(e.children.some(function(s){return Pnt(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Lnt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ame.peek=$nt;function ame(e,t,n,r){const i=Lnt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function $nt(e,t,n){return n.options.strong||"*"}function Fnt(e,t,n,r){return n.safe(e.value,r)}function Bnt(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Unt(e,t,n){const r=(ime(n)+(n.options.ruleSpaces?" ":"")).repeat(Bnt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const sme={blockquote:cnt,break:ste,code:mnt,definition:bnt,emphasis:Zpe,hardBreak:ste,heading:Snt,html:Xpe,image:Kpe,imageReference:Jpe,inlineCode:eme,link:nme,linkReference:rme,list:Rnt,listItem:Dnt,paragraph:Nnt,root:Mnt,strong:ame,text:Fnt,thematicBreak:Unt};function znt(){return{enter:{table:jnt,tableData:ote,tableHeader:ote,tableRow:Vnt},exit:{codeText:Wnt,table:Hnt,tableData:DP,tableHeader:DP,tableRow:DP}}}function jnt(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Hnt(e){this.exit(e),this.data.inTable=void 0}function Vnt(e){this.enter({type:"tableRow",children:[]},e)}function DP(e){this.exit(e)}function ote(e){this.enter({type:"tableCell",children:[]},e)}function Wnt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Qnt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Qnt(e,t){return t==="|"?t:e}function qnt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:l,tableRow:o}};function s(g,b,S,w){return u(c(g,S,w),g.align)}function o(g,b,S,w){const E=f(g,S,w),x=u([E]);return x.slice(0,x.indexOf(` +`))}function l(g,b,S,w){const E=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(g,{...w,before:a,after:a});return x(),E(),k}function u(g,b){return ont(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(g,b,S){const w=g.children;let E=-1;const x=[],k=b.enter("table");for(;++E0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const drt={tokenize:vrt,partial:!0};function frt(){return{document:{91:{tokenize:grt,continuation:{tokenize:brt},exit:yrt}},text:{91:{tokenize:mrt},93:{add:"after",tokenize:hrt,resolveTo:prt}}}}function hrt(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=gd(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function prt(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function mrt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||wi(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(gd(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return wi(f)||(s=!0),a++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function grt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||wi(b))return n(b);if(b===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=gd(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return wi(b)||(o=!0),s++,e.consume(b),b===92?f:c}function f(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function h(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Tr(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function brt(e,t,n){return e.check(_T,t,e.attempt(drt,t,n))}function yrt(e){e.exit("gfmFootnoteDefinition")}function vrt(e,t,n){const r=this;return Tr(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function Ort(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l1?l(b):(s.consume(b),f++,g);if(f<2&&!n)return l(b);const w=s.exit("strikethroughSequenceTemporary"),E=H3(b);return w._open=!E||E===2&&!!S,w._close=!S||S===2&&!!E,o(b)}}}class Srt{constructor(){this.map=[]}add(t,n,r){Ert(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Ert(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const Q=r.events[W][1].type;if(Q==="lineEnding"||Q==="linePrefix")W--;else break}const V=W>-1?r.events[W][1].type:null,Z=V==="tableHead"||V==="tableRow"?A:l;return Z===A&&r.parser.lazy[r.now().line]?n(F):Z(F)}function l(F){return e.enter("tableHead"),e.enter("tableRow"),u(F)}function u(F){return F===124||(s=!0,a+=1),c(F)}function c(F){return F===null?n(F):Mn(F)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),g):n(F):Ir(F)?Tr(e,c,"whitespace")(F):(a+=1,s&&(s=!1,i+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(F)))}function f(F){return F===null||F===124||wi(F)?(e.exit("data"),c(F)):(e.consume(F),F===92?h:f)}function h(F){return F===92||F===124?(e.consume(F),f):f(F)}function g(F){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(F):(e.enter("tableDelimiterRow"),s=!1,Ir(F)?Tr(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):b(F))}function b(F){return F===45||F===58?w(F):F===124?(s=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),S):R(F)}function S(F){return Ir(F)?Tr(e,w,"whitespace")(F):w(F)}function w(F){return F===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),E):F===45?(a+=1,E(F)):F===null||Mn(F)?C(F):R(F)}function E(F){return F===45?(e.enter("tableDelimiterFiller"),x(F)):R(F)}function x(F){return F===45?(e.consume(F),x):F===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(F))}function k(F){return Ir(F)?Tr(e,C,"whitespace")(F):C(F)}function C(F){return F===124?b(F):F===null||Mn(F)?!s||i!==a?R(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):R(F)}function R(F){return n(F)}function A(F){return e.enter("tableRow"),D(F)}function D(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),D):F===null||Mn(F)?(e.exit("tableRow"),t(F)):Ir(F)?Tr(e,D,"whitespace")(F):(e.enter("data"),B(F))}function B(F){return F===null||F===124||wi(F)?(e.exit("data"),D(F)):(e.consume(F),F===92?L:B)}function L(F){return F===92||F===124?(e.consume(F),B):B(F)}}function krt(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,f;const h=new Srt;for(;++nn[2]+1){const b=n[2]+1,S=n[3]-n[2]-1;e.add(b,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},cy(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function ute(e,t,n,r,i){const a=[],s=cy(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function cy(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Crt={tokenize:_rt};function Art(){return{text:{91:Crt}}}function _rt(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return wi(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return Mn(l)?t(l):Ir(l)?e.check({tokenize:Rrt},t,n)(l):n(l)}}function Rrt(e,t,n){return Tr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Irt(e){return Tpe([nrt(),frt(),Ort(e),xrt(),Art()])}const Drt={};function Nrt(e){const t=this,n=e||Drt,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Irt(n)),a.push(Knt()),s.push(Jnt(n))}const cte=/[#.]/g;function Prt(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&aa)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}}function i(a){const s=a&&a.line,o=a&&a.column;if(typeof s=="number"&&typeof o=="number"&&!Number.isNaN(s)&&!Number.isNaN(o)&&s-1 in n){const l=(n[s-2]||0)+o-1||0;if(l>-1&&l=55296&&e<=57343}function sit(e){return e>=56320&&e<=57343}function oit(e,t){return(e-55296)*1024+9216+t}function Ome(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Sme(e){return e>=64976&&e<=65007||ait.has(e)}var pt;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(pt=pt||(pt={}));const lit=65536;class uit{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=lit,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:n,col:r,offset:i}=this;return{code:t,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(sit(n))return this.pos++,this._addGap(),oit(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,de.EOF;return this._err(pt.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,de.EOF;const r=this.html.charCodeAt(n);return r===de.CARRIAGE_RETURN?de.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,de.EOF;let t=this.html.charCodeAt(this.pos);return t===de.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,de.LINE_FEED):t===de.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,vme(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===de.LINE_FEED||t===de.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ome(t)?this._err(pt.controlCharacterInInputStream):Sme(t)&&this._err(pt.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const rm=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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ቻ኉Dzኀ\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;䅻Dzᕔ\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ƀ;oș᳊᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱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⧓ସdz⧟\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᪠ⵒⵗLjⵚ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㚆㚝㚵㚼Dz㚋\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(e=>e.charCodeAt(0))),cit=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var PP;const dit=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]]),fit=(PP=String.fromCodePoint)!==null&&PP!==void 0?PP:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function hit(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=dit.get(e))!==null&&t!==void 0?t:e}var Ss;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ss||(Ss={}));const pit=32;var kf;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(kf||(kf={}));function TL(e){return e>=Ss.ZERO&&e<=Ss.NINE}function mit(e){return e>=Ss.UPPER_A&&e<=Ss.UPPER_F||e>=Ss.LOWER_A&&e<=Ss.LOWER_F}function git(e){return e>=Ss.UPPER_A&&e<=Ss.UPPER_Z||e>=Ss.LOWER_A&&e<=Ss.LOWER_Z||TL(e)}function bit(e){return e===Ss.EQUALS||git(e)}var gs;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(gs||(gs={}));var Cg;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Cg||(Cg={}));class yit{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=gs.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Cg.Strict}startEntity(t){this.decodeMode=t,this.state=gs.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case gs.EntityStart:return t.charCodeAt(n)===Ss.NUM?(this.state=gs.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=gs.NamedEntity,this.stateNamedEntity(t,n));case gs.NumericStart:return this.stateNumericStart(t,n);case gs.NumericDecimal:return this.stateNumericDecimal(t,n);case gs.NumericHex:return this.stateNumericHex(t,n);case gs.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|pit)===Ss.LOWER_X?(this.state=gs.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=gs.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Ss.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Cg.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&kf.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~kf.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case gs.NamedEntity:return this.result!==0&&(this.decodeMode!==Cg.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case gs.NumericDecimal:return this.emitNumericEntity(0,2);case gs.NumericHex:return this.emitNumericEntity(0,3);case gs.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case gs.EntityStart:return 0}}}function wme(e){let t="";const n=new yit(e,r=>t+=fit(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const u=n.write(i,o+1);if(u<0){s=o+n.end();break}s=o+u,o=u===0?s+1:s}const l=t+i.slice(s);return t="",l}}function xme(e,t,n,r){const i=(t&kf.BRANCH_LENGTH)>>7,a=t&kf.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(ur)o=l-1;else return e[l+i]}return-1}wme(rm);wme(cit);var Et;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Et=Et||(Et={}));var qm;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(qm=qm||(qm={}));var fu;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(fu=fu||(fu={}));var Ke;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(Ke=Ke||(Ke={}));var P;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(P=P||(P={}));const vit=new Map([[Ke.A,P.A],[Ke.ADDRESS,P.ADDRESS],[Ke.ANNOTATION_XML,P.ANNOTATION_XML],[Ke.APPLET,P.APPLET],[Ke.AREA,P.AREA],[Ke.ARTICLE,P.ARTICLE],[Ke.ASIDE,P.ASIDE],[Ke.B,P.B],[Ke.BASE,P.BASE],[Ke.BASEFONT,P.BASEFONT],[Ke.BGSOUND,P.BGSOUND],[Ke.BIG,P.BIG],[Ke.BLOCKQUOTE,P.BLOCKQUOTE],[Ke.BODY,P.BODY],[Ke.BR,P.BR],[Ke.BUTTON,P.BUTTON],[Ke.CAPTION,P.CAPTION],[Ke.CENTER,P.CENTER],[Ke.CODE,P.CODE],[Ke.COL,P.COL],[Ke.COLGROUP,P.COLGROUP],[Ke.DD,P.DD],[Ke.DESC,P.DESC],[Ke.DETAILS,P.DETAILS],[Ke.DIALOG,P.DIALOG],[Ke.DIR,P.DIR],[Ke.DIV,P.DIV],[Ke.DL,P.DL],[Ke.DT,P.DT],[Ke.EM,P.EM],[Ke.EMBED,P.EMBED],[Ke.FIELDSET,P.FIELDSET],[Ke.FIGCAPTION,P.FIGCAPTION],[Ke.FIGURE,P.FIGURE],[Ke.FONT,P.FONT],[Ke.FOOTER,P.FOOTER],[Ke.FOREIGN_OBJECT,P.FOREIGN_OBJECT],[Ke.FORM,P.FORM],[Ke.FRAME,P.FRAME],[Ke.FRAMESET,P.FRAMESET],[Ke.H1,P.H1],[Ke.H2,P.H2],[Ke.H3,P.H3],[Ke.H4,P.H4],[Ke.H5,P.H5],[Ke.H6,P.H6],[Ke.HEAD,P.HEAD],[Ke.HEADER,P.HEADER],[Ke.HGROUP,P.HGROUP],[Ke.HR,P.HR],[Ke.HTML,P.HTML],[Ke.I,P.I],[Ke.IMG,P.IMG],[Ke.IMAGE,P.IMAGE],[Ke.INPUT,P.INPUT],[Ke.IFRAME,P.IFRAME],[Ke.KEYGEN,P.KEYGEN],[Ke.LABEL,P.LABEL],[Ke.LI,P.LI],[Ke.LINK,P.LINK],[Ke.LISTING,P.LISTING],[Ke.MAIN,P.MAIN],[Ke.MALIGNMARK,P.MALIGNMARK],[Ke.MARQUEE,P.MARQUEE],[Ke.MATH,P.MATH],[Ke.MENU,P.MENU],[Ke.META,P.META],[Ke.MGLYPH,P.MGLYPH],[Ke.MI,P.MI],[Ke.MO,P.MO],[Ke.MN,P.MN],[Ke.MS,P.MS],[Ke.MTEXT,P.MTEXT],[Ke.NAV,P.NAV],[Ke.NOBR,P.NOBR],[Ke.NOFRAMES,P.NOFRAMES],[Ke.NOEMBED,P.NOEMBED],[Ke.NOSCRIPT,P.NOSCRIPT],[Ke.OBJECT,P.OBJECT],[Ke.OL,P.OL],[Ke.OPTGROUP,P.OPTGROUP],[Ke.OPTION,P.OPTION],[Ke.P,P.P],[Ke.PARAM,P.PARAM],[Ke.PLAINTEXT,P.PLAINTEXT],[Ke.PRE,P.PRE],[Ke.RB,P.RB],[Ke.RP,P.RP],[Ke.RT,P.RT],[Ke.RTC,P.RTC],[Ke.RUBY,P.RUBY],[Ke.S,P.S],[Ke.SCRIPT,P.SCRIPT],[Ke.SECTION,P.SECTION],[Ke.SELECT,P.SELECT],[Ke.SOURCE,P.SOURCE],[Ke.SMALL,P.SMALL],[Ke.SPAN,P.SPAN],[Ke.STRIKE,P.STRIKE],[Ke.STRONG,P.STRONG],[Ke.STYLE,P.STYLE],[Ke.SUB,P.SUB],[Ke.SUMMARY,P.SUMMARY],[Ke.SUP,P.SUP],[Ke.TABLE,P.TABLE],[Ke.TBODY,P.TBODY],[Ke.TEMPLATE,P.TEMPLATE],[Ke.TEXTAREA,P.TEXTAREA],[Ke.TFOOT,P.TFOOT],[Ke.TD,P.TD],[Ke.TH,P.TH],[Ke.THEAD,P.THEAD],[Ke.TITLE,P.TITLE],[Ke.TR,P.TR],[Ke.TRACK,P.TRACK],[Ke.TT,P.TT],[Ke.U,P.U],[Ke.UL,P.UL],[Ke.SVG,P.SVG],[Ke.VAR,P.VAR],[Ke.WBR,P.WBR],[Ke.XMP,P.XMP]]);function zO(e){var t;return(t=vit.get(e))!==null&&t!==void 0?t:P.UNKNOWN}const Bt=P,Oit={[Et.HTML]:new Set([Bt.ADDRESS,Bt.APPLET,Bt.AREA,Bt.ARTICLE,Bt.ASIDE,Bt.BASE,Bt.BASEFONT,Bt.BGSOUND,Bt.BLOCKQUOTE,Bt.BODY,Bt.BR,Bt.BUTTON,Bt.CAPTION,Bt.CENTER,Bt.COL,Bt.COLGROUP,Bt.DD,Bt.DETAILS,Bt.DIR,Bt.DIV,Bt.DL,Bt.DT,Bt.EMBED,Bt.FIELDSET,Bt.FIGCAPTION,Bt.FIGURE,Bt.FOOTER,Bt.FORM,Bt.FRAME,Bt.FRAMESET,Bt.H1,Bt.H2,Bt.H3,Bt.H4,Bt.H5,Bt.H6,Bt.HEAD,Bt.HEADER,Bt.HGROUP,Bt.HR,Bt.HTML,Bt.IFRAME,Bt.IMG,Bt.INPUT,Bt.LI,Bt.LINK,Bt.LISTING,Bt.MAIN,Bt.MARQUEE,Bt.MENU,Bt.META,Bt.NAV,Bt.NOEMBED,Bt.NOFRAMES,Bt.NOSCRIPT,Bt.OBJECT,Bt.OL,Bt.P,Bt.PARAM,Bt.PLAINTEXT,Bt.PRE,Bt.SCRIPT,Bt.SECTION,Bt.SELECT,Bt.SOURCE,Bt.STYLE,Bt.SUMMARY,Bt.TABLE,Bt.TBODY,Bt.TD,Bt.TEMPLATE,Bt.TEXTAREA,Bt.TFOOT,Bt.TH,Bt.THEAD,Bt.TITLE,Bt.TR,Bt.TRACK,Bt.UL,Bt.WBR,Bt.XMP]),[Et.MATHML]:new Set([Bt.MI,Bt.MO,Bt.MN,Bt.MS,Bt.MTEXT,Bt.ANNOTATION_XML]),[Et.SVG]:new Set([Bt.TITLE,Bt.FOREIGN_OBJECT,Bt.DESC]),[Et.XLINK]:new Set,[Et.XML]:new Set,[Et.XMLNS]:new Set};function Tme(e){return e===Bt.H1||e===Bt.H2||e===Bt.H3||e===Bt.H4||e===Bt.H5||e===Bt.H6}Ke.STYLE,Ke.SCRIPT,Ke.XMP,Ke.IFRAME,Ke.NOEMBED,Ke.NOFRAMES,Ke.PLAINTEXT;const Sit=new Map([[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]]);var ge;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(ge||(ge={}));const Ma={DATA:ge.DATA,RCDATA:ge.RCDATA,RAWTEXT:ge.RAWTEXT,SCRIPT_DATA:ge.SCRIPT_DATA,PLAINTEXT:ge.PLAINTEXT,CDATA_SECTION:ge.CDATA_SECTION};function j2(e){return e>=de.DIGIT_0&&e<=de.DIGIT_9}function u2(e){return e>=de.LATIN_CAPITAL_A&&e<=de.LATIN_CAPITAL_Z}function Eit(e){return e>=de.LATIN_SMALL_A&&e<=de.LATIN_SMALL_Z}function im(e){return Eit(e)||u2(e)}function kL(e){return im(e)||j2(e)}function kme(e){return e>=de.LATIN_CAPITAL_A&&e<=de.LATIN_CAPITAL_F}function Cme(e){return e>=de.LATIN_SMALL_A&&e<=de.LATIN_SMALL_F}function wit(e){return j2(e)||kme(e)||Cme(e)}function AA(e){return e+32}function Ame(e){return e===de.SPACE||e===de.LINE_FEED||e===de.TABULATION||e===de.FORM_FEED}function xit(e){return e===de.EQUALS_SIGN||kL(e)}function hte(e){return Ame(e)||e===de.SOLIDUS||e===de.GREATER_THAN_SIGN}class Tit{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ge.DATA,this.returnState=ge.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new uit(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(pt.endTagWithAttributes),t.selfClosing&&this._err(pt.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Or.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Or.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Or.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Or.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Ame(t)?Or.WHITESPACE_CHARACTER:t===de.NULL?Or.NULL_CHARACTER:Or.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Or.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=rm[0];a>=0&&(a=xme(rm,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=rm[a];const o=s&kf.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==de.SEMICOLON&&this._isCharacterReferenceInAttribute()&&xit(this.preprocessor.peek(1))?(n=[de.AMPERSAND],a+=l):(n=l===0?[rm[a]&~kf.VALUE_LENGTH]:l===1?[rm[++a]]:[rm[++a],rm[++a]],r=0,i=t!==de.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(pt.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ge.DATA:{this._stateData(t);break}case ge.RCDATA:{this._stateRcdata(t);break}case ge.RAWTEXT:{this._stateRawtext(t);break}case ge.SCRIPT_DATA:{this._stateScriptData(t);break}case ge.PLAINTEXT:{this._statePlaintext(t);break}case ge.TAG_OPEN:{this._stateTagOpen(t);break}case ge.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ge.TAG_NAME:{this._stateTagName(t);break}case ge.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ge.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ge.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ge.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ge.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ge.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ge.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ge.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ge.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ge.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ge.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ge.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ge.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ge.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ge.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ge.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ge.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ge.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ge.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ge.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ge.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ge.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ge.COMMENT_START:{this._stateCommentStart(t);break}case ge.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ge.COMMENT:{this._stateComment(t);break}case ge.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ge.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ge.COMMENT_END:{this._stateCommentEnd(t);break}case ge.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ge.DOCTYPE:{this._stateDoctype(t);break}case ge.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ge.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ge.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ge.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ge.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ge.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ge.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ge.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ge.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ge.CDATA_SECTION:{this._stateCdataSection(t);break}case ge.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ge.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ge.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ge.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ge.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ge.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ge.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ge.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case de.LESS_THAN_SIGN:{this.state=ge.TAG_OPEN;break}case de.AMPERSAND:{this.returnState=ge.DATA,this.state=ge.CHARACTER_REFERENCE;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitCodePoint(t);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case de.AMPERSAND:{this.returnState=ge.RCDATA,this.state=ge.CHARACTER_REFERENCE;break}case de.LESS_THAN_SIGN:{this.state=ge.RCDATA_LESS_THAN_SIGN;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Gi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case de.LESS_THAN_SIGN:{this.state=ge.RAWTEXT_LESS_THAN_SIGN;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Gi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case de.LESS_THAN_SIGN:{this.state=ge.SCRIPT_DATA_LESS_THAN_SIGN;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Gi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Gi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(im(t))this._createStartTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case de.EXCLAMATION_MARK:{this.state=ge.MARKUP_DECLARATION_OPEN;break}case de.SOLIDUS:{this.state=ge.END_TAG_OPEN;break}case de.QUESTION_MARK:{this._err(pt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ge.BOGUS_COMMENT,this._stateBogusComment(t);break}case de.EOF:{this._err(pt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(pt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ge.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(im(t))this._createEndTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case de.GREATER_THAN_SIGN:{this._err(pt.missingEndTagName),this.state=ge.DATA;break}case de.EOF:{this._err(pt.eofBeforeTagName),this._emitChars("");break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_ESCAPED,this._emitChars(Gi);break}case de.EOF:{this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===de.SOLIDUS?this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:im(t)?(this._emitChars("<"),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ge.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){im(t)?(this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Gi);break}case de.EOF:{this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===de.SOLIDUS?(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(cl.SCRIPT,!1)&&hte(this.preprocessor.peek(cl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(pt.characterReferenceOutsideUnicodeRange),this.charRefCode=de.REPLACEMENT_CHARACTER;else if(vme(this.charRefCode))this._err(pt.surrogateCharacterReference),this.charRefCode=de.REPLACEMENT_CHARACTER;else if(Sme(this.charRefCode))this._err(pt.noncharacterCharacterReference);else if(Ome(this.charRefCode)||this.charRefCode===de.CARRIAGE_RETURN){this._err(pt.controlCharacterReference);const n=Sit.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const _me=new Set([P.DD,P.DT,P.LI,P.OPTGROUP,P.OPTION,P.P,P.RB,P.RP,P.RT,P.RTC]),pte=new Set([..._me,P.CAPTION,P.COLGROUP,P.TBODY,P.TD,P.TFOOT,P.TH,P.THEAD,P.TR]),_A=new Map([[P.APPLET,Et.HTML],[P.CAPTION,Et.HTML],[P.HTML,Et.HTML],[P.MARQUEE,Et.HTML],[P.OBJECT,Et.HTML],[P.TABLE,Et.HTML],[P.TD,Et.HTML],[P.TEMPLATE,Et.HTML],[P.TH,Et.HTML],[P.ANNOTATION_XML,Et.MATHML],[P.MI,Et.MATHML],[P.MN,Et.MATHML],[P.MO,Et.MATHML],[P.MS,Et.MATHML],[P.MTEXT,Et.MATHML],[P.DESC,Et.SVG],[P.FOREIGN_OBJECT,Et.SVG],[P.TITLE,Et.SVG]]),kit=[P.H1,P.H2,P.H3,P.H4,P.H5,P.H6],Cit=[P.TR,P.TEMPLATE,P.HTML],Ait=[P.TBODY,P.TFOOT,P.THEAD,P.TEMPLATE,P.HTML],_it=[P.TABLE,P.TEMPLATE,P.HTML],Rit=[P.TD,P.TH];class Iit{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=P.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===P.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Et.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Et.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(_it,Et.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Ait,Et.HTML)}clearBackToTableRowContext(){this.clearBackTo(Cit,Et.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===P.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===P.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Et.HTML)return!0;if(_A.get(r)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(Tme(n)&&r===Et.HTML)return!0;if(_A.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Et.HTML)return!0;if((r===P.UL||r===P.OL)&&i===Et.HTML||_A.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Et.HTML)return!0;if(r===P.BUTTON&&i===Et.HTML||_A.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Et.HTML){if(r===t)return!0;if(r===P.TABLE||r===P.TEMPLATE||r===P.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Et.HTML){if(n===P.TBODY||n===P.THEAD||n===P.TFOOT)return!0;if(n===P.TABLE||n===P.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Et.HTML){if(r===t)return!0;if(r!==P.OPTION&&r!==P.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;_me.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;pte.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&pte.has(this.currentTagId);)this.pop()}}const MP=3;var sd;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(sd=sd||(sd={}));const mte={type:sd.Marker};class Dit{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=MP&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(mte)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:sd.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:sd.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(mte);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===sd.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===sd.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===sd.Element&&n.element===t)}}function gte(e){return{nodeName:"#text",value:e,parentNode:null}}const dy={createDocument(){return{nodeName:"#document",mode:fu.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};dy.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(dy.isTextNode(n)){n.value+=t;return}}dy.appendChild(e,gte(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&dy.isTextNode(r)?r.value+=t:dy.insertBefore(e,gte(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function Fit(e){return e.name===Rme&&e.publicId===null&&(e.systemId===null||e.systemId===Nit)}function Bit(e){if(e.name!==Rme)return fu.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Pit)return fu.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Lit.has(n))return fu.QUIRKS;let r=t===null?Mit:Ime;if(bte(n,r))return fu.QUIRKS;if(r=t===null?Dme:$it,bte(n,r))return fu.LIMITED_QUIRKS}return fu.NO_QUIRKS}const yte={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Uit="definitionurl",zit="definitionURL",jit=new Map(["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(e=>[e.toLowerCase(),e])),Hit=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Et.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Et.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Et.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Et.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Et.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Et.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Et.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Et.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Et.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Et.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Et.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Et.XMLNS}]]),Vit=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Wit=new Set([P.B,P.BIG,P.BLOCKQUOTE,P.BODY,P.BR,P.CENTER,P.CODE,P.DD,P.DIV,P.DL,P.DT,P.EM,P.EMBED,P.H1,P.H2,P.H3,P.H4,P.H5,P.H6,P.HEAD,P.HR,P.I,P.IMG,P.LI,P.LISTING,P.MENU,P.META,P.NOBR,P.OL,P.P,P.PRE,P.RUBY,P.S,P.SMALL,P.SPAN,P.STRONG,P.STRIKE,P.SUB,P.SUP,P.TABLE,P.TT,P.U,P.UL,P.VAR]);function Qit(e){const t=e.tagID;return t===P.FONT&&e.attrs.some(({name:r})=>r===qm.COLOR||r===qm.SIZE||r===qm.FACE)||Wit.has(t)}function Nme(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===Et.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Et.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ae.TEXT}switchToPlaintextParsing(){this.insertionMode=Ae.TEXT,this.originalInsertionMode=Ae.IN_BODY,this.tokenizer.state=Ma.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Ke.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Et.HTML))switch(this.fragmentContextID){case P.TITLE:case P.TEXTAREA:{this.tokenizer.state=Ma.RCDATA;break}case P.STYLE:case P.XMP:case P.IFRAME:case P.NOEMBED:case P.NOFRAMES:case P.NOSCRIPT:{this.tokenizer.state=Ma.RAWTEXT;break}case P.SCRIPT:{this.tokenizer.state=Ma.SCRIPT_DATA;break}case P.PLAINTEXT:{this.tokenizer.state=Ma.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Et.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Et.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Ke.HTML,Et.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,P.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Or.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===P.SVG&&this.treeAdapter.getTagName(n)===Ke.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Et.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===P.MGLYPH||t.tagID===P.MALIGNMARK)&&!this._isIntegrationPoint(r,n,Et.HTML)}_processToken(t){switch(t.type){case Or.CHARACTER:{this.onCharacter(t);break}case Or.NULL_CHARACTER:{this.onNullCharacter(t);break}case Or.COMMENT:{this.onComment(t);break}case Or.DOCTYPE:{this.onDoctype(t);break}case Or.START_TAG:{this._processStartTag(t);break}case Or.END_TAG:{this.onEndTag(t);break}case Or.EOF:{this.onEof(t);break}case Or.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Zit(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===sd.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ae.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(P.P),this.openElements.popUntilTagNamePopped(P.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case P.TR:{this.insertionMode=Ae.IN_ROW;return}case P.TBODY:case P.THEAD:case P.TFOOT:{this.insertionMode=Ae.IN_TABLE_BODY;return}case P.CAPTION:{this.insertionMode=Ae.IN_CAPTION;return}case P.COLGROUP:{this.insertionMode=Ae.IN_COLUMN_GROUP;return}case P.TABLE:{this.insertionMode=Ae.IN_TABLE;return}case P.BODY:{this.insertionMode=Ae.IN_BODY;return}case P.FRAMESET:{this.insertionMode=Ae.IN_FRAMESET;return}case P.SELECT:{this._resetInsertionModeForSelect(t);return}case P.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case P.HTML:{this.insertionMode=this.headElement?Ae.AFTER_HEAD:Ae.BEFORE_HEAD;return}case P.TD:case P.TH:{if(t>0){this.insertionMode=Ae.IN_CELL;return}break}case P.HEAD:{if(t>0){this.insertionMode=Ae.IN_HEAD;return}break}}this.insertionMode=Ae.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===P.TEMPLATE)break;if(r===P.TABLE){this.insertionMode=Ae.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ae.IN_SELECT}_isElementCausesFosterParenting(t){return Mme.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case P.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Et.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case P.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Oit[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Rst(this,t);return}switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{H2(this,t);break}case Ae.BEFORE_HEAD:{V2(this,t);break}case Ae.IN_HEAD:{W2(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{Q2(this,t);break}case Ae.AFTER_HEAD:{q2(this,t);break}case Ae.IN_BODY:case Ae.IN_CAPTION:case Ae.IN_CELL:case Ae.IN_TEMPLATE:{$me(this,t);break}case Ae.TEXT:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{LP(this,t);break}case Ae.IN_TABLE_TEXT:{Hme(this,t);break}case Ae.IN_COLUMN_GROUP:{q3(this,t);break}case Ae.AFTER_BODY:{G3(this,t);break}case Ae.AFTER_AFTER_BODY:{Q4(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_st(this,t);return}switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{H2(this,t);break}case Ae.BEFORE_HEAD:{V2(this,t);break}case Ae.IN_HEAD:{W2(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{Q2(this,t);break}case Ae.AFTER_HEAD:{q2(this,t);break}case Ae.TEXT:{this._insertCharacters(t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{LP(this,t);break}case Ae.IN_COLUMN_GROUP:{q3(this,t);break}case Ae.AFTER_BODY:{G3(this,t);break}case Ae.AFTER_AFTER_BODY:{Q4(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){CL(this,t);return}switch(this.insertionMode){case Ae.INITIAL:case Ae.BEFORE_HTML:case Ae.BEFORE_HEAD:case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:case Ae.IN_BODY:case Ae.IN_TABLE:case Ae.IN_CAPTION:case Ae.IN_COLUMN_GROUP:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:case Ae.IN_CELL:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:case Ae.IN_TEMPLATE:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:{CL(this,t);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}case Ae.AFTER_BODY:{oat(this,t);break}case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{lat(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Ae.INITIAL:{uat(this,t);break}case Ae.BEFORE_HEAD:case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:{this._err(t,pt.misplacedDoctype);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,pt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Ist(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{cat(this,t);break}case Ae.BEFORE_HEAD:{fat(this,t);break}case Ae.IN_HEAD:{Dd(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{mat(this,t);break}case Ae.AFTER_HEAD:{bat(this,t);break}case Ae.IN_BODY:{To(this,t);break}case Ae.IN_TABLE:{lO(this,t);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}case Ae.IN_CAPTION:{hst(this,t);break}case Ae.IN_COLUMN_GROUP:{lU(this,t);break}case Ae.IN_TABLE_BODY:{hI(this,t);break}case Ae.IN_ROW:{pI(this,t);break}case Ae.IN_CELL:{gst(this,t);break}case Ae.IN_SELECT:{Qme(this,t);break}case Ae.IN_SELECT_IN_TABLE:{yst(this,t);break}case Ae.IN_TEMPLATE:{Ost(this,t);break}case Ae.AFTER_BODY:{Est(this,t);break}case Ae.IN_FRAMESET:{wst(this,t);break}case Ae.AFTER_FRAMESET:{Tst(this,t);break}case Ae.AFTER_AFTER_BODY:{Cst(this,t);break}case Ae.AFTER_AFTER_FRAMESET:{Ast(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Dst(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{dat(this,t);break}case Ae.BEFORE_HEAD:{hat(this,t);break}case Ae.IN_HEAD:{pat(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{gat(this,t);break}case Ae.AFTER_HEAD:{yat(this,t);break}case Ae.IN_BODY:{fI(this,t);break}case Ae.TEXT:{rst(this,t);break}case Ae.IN_TABLE:{dx(this,t);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}case Ae.IN_CAPTION:{pst(this,t);break}case Ae.IN_COLUMN_GROUP:{mst(this,t);break}case Ae.IN_TABLE_BODY:{AL(this,t);break}case Ae.IN_ROW:{Wme(this,t);break}case Ae.IN_CELL:{bst(this,t);break}case Ae.IN_SELECT:{qme(this,t);break}case Ae.IN_SELECT_IN_TABLE:{vst(this,t);break}case Ae.IN_TEMPLATE:{Sst(this,t);break}case Ae.AFTER_BODY:{Yme(this,t);break}case Ae.IN_FRAMESET:{xst(this,t);break}case Ae.AFTER_FRAMESET:{kst(this,t);break}case Ae.AFTER_AFTER_BODY:{Q4(this,t);break}}}onEof(t){switch(this.insertionMode){case Ae.INITIAL:{PE(this,t);break}case Ae.BEFORE_HTML:{H2(this,t);break}case Ae.BEFORE_HEAD:{V2(this,t);break}case Ae.IN_HEAD:{W2(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{Q2(this,t);break}case Ae.AFTER_HEAD:{q2(this,t);break}case Ae.IN_BODY:case Ae.IN_TABLE:case Ae.IN_CAPTION:case Ae.IN_COLUMN_GROUP:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:case Ae.IN_CELL:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:{zme(this,t);break}case Ae.TEXT:{ist(this,t);break}case Ae.IN_TABLE_TEXT:{ME(this,t);break}case Ae.IN_TEMPLATE:{Gme(this,t);break}case Ae.AFTER_BODY:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{oU(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===de.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:case Ae.TEXT:case Ae.IN_COLUMN_GROUP:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:{this._insertCharacters(t);break}case Ae.IN_BODY:case Ae.IN_CAPTION:case Ae.IN_CELL:case Ae.IN_TEMPLATE:case Ae.AFTER_BODY:case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{Lme(this,t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{LP(this,t);break}case Ae.IN_TABLE_TEXT:{jme(this,t);break}}}};function tat(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ume(e,t),n}function nat(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function rat(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=Jit;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=iat(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function iat(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function aat(e,t,n){const r=e.treeAdapter.getTagName(t),i=zO(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===P.TEMPLATE&&a===Et.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function sat(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function sU(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function uat(e,t){e._setDocumentType(t);const n=t.forceQuirks?fu.QUIRKS:Bit(t);Fit(t)||e._err(t,pt.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ae.BEFORE_HTML}function PE(e,t){e._err(t,pt.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,fu.QUIRKS),e.insertionMode=Ae.BEFORE_HTML,e._processToken(t)}function cat(e,t){t.tagID===P.HTML?(e._insertElement(t,Et.HTML),e.insertionMode=Ae.BEFORE_HEAD):H2(e,t)}function dat(e,t){const n=t.tagID;(n===P.HTML||n===P.HEAD||n===P.BODY||n===P.BR)&&H2(e,t)}function H2(e,t){e._insertFakeRootElement(),e.insertionMode=Ae.BEFORE_HEAD,e._processToken(t)}function fat(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.HEAD:{e._insertElement(t,Et.HTML),e.headElement=e.openElements.current,e.insertionMode=Ae.IN_HEAD;break}default:V2(e,t)}}function hat(e,t){const n=t.tagID;n===P.HEAD||n===P.BODY||n===P.HTML||n===P.BR?V2(e,t):e._err(t,pt.endTagWithoutMatchingOpenElement)}function V2(e,t){e._insertFakeElement(Ke.HEAD,P.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ae.IN_HEAD,e._processToken(t)}function Dd(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.BASE:case P.BASEFONT:case P.BGSOUND:case P.LINK:case P.META:{e._appendElement(t,Et.HTML),t.ackSelfClosing=!0;break}case P.TITLE:{e._switchToTextParsing(t,Ma.RCDATA);break}case P.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ma.RAWTEXT):(e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_HEAD_NO_SCRIPT);break}case P.NOFRAMES:case P.STYLE:{e._switchToTextParsing(t,Ma.RAWTEXT);break}case P.SCRIPT:{e._switchToTextParsing(t,Ma.SCRIPT_DATA);break}case P.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ae.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ae.IN_TEMPLATE);break}case P.HEAD:{e._err(t,pt.misplacedStartTagForHeadElement);break}default:W2(e,t)}}function pat(e,t){switch(t.tagID){case P.HEAD:{e.openElements.pop(),e.insertionMode=Ae.AFTER_HEAD;break}case P.BODY:case P.BR:case P.HTML:{W2(e,t);break}case P.TEMPLATE:{_1(e,t);break}default:e._err(t,pt.endTagWithoutMatchingOpenElement)}}function _1(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==P.TEMPLATE&&e._err(t,pt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(P.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,pt.endTagWithoutMatchingOpenElement)}function W2(e,t){e.openElements.pop(),e.insertionMode=Ae.AFTER_HEAD,e._processToken(t)}function mat(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.BASEFONT:case P.BGSOUND:case P.HEAD:case P.LINK:case P.META:case P.NOFRAMES:case P.STYLE:{Dd(e,t);break}case P.NOSCRIPT:{e._err(t,pt.nestedNoscriptInHead);break}default:Q2(e,t)}}function gat(e,t){switch(t.tagID){case P.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Ae.IN_HEAD;break}case P.BR:{Q2(e,t);break}default:e._err(t,pt.endTagWithoutMatchingOpenElement)}}function Q2(e,t){const n=t.type===Or.EOF?pt.openElementsLeftAfterEof:pt.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Ae.IN_HEAD,e._processToken(t)}function bat(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.BODY:{e._insertElement(t,Et.HTML),e.framesetOk=!1,e.insertionMode=Ae.IN_BODY;break}case P.FRAMESET:{e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_FRAMESET;break}case P.BASE:case P.BASEFONT:case P.BGSOUND:case P.LINK:case P.META:case P.NOFRAMES:case P.SCRIPT:case P.STYLE:case P.TEMPLATE:case P.TITLE:{e._err(t,pt.abandonedHeadElementChild),e.openElements.push(e.headElement,P.HEAD),Dd(e,t),e.openElements.remove(e.headElement);break}case P.HEAD:{e._err(t,pt.misplacedStartTagForHeadElement);break}default:q2(e,t)}}function yat(e,t){switch(t.tagID){case P.BODY:case P.HTML:case P.BR:{q2(e,t);break}case P.TEMPLATE:{_1(e,t);break}default:e._err(t,pt.endTagWithoutMatchingOpenElement)}}function q2(e,t){e._insertFakeElement(Ke.BODY,P.BODY),e.insertionMode=Ae.IN_BODY,dI(e,t)}function dI(e,t){switch(t.type){case Or.CHARACTER:{$me(e,t);break}case Or.WHITESPACE_CHARACTER:{Lme(e,t);break}case Or.COMMENT:{CL(e,t);break}case Or.START_TAG:{To(e,t);break}case Or.END_TAG:{fI(e,t);break}case Or.EOF:{zme(e,t);break}}}function Lme(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $me(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function vat(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Oat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Sat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_FRAMESET)}function Eat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML)}function wat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),Tme(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Et.HTML)}function xat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Tat(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),n||(e.formElement=e.openElements.current))}function kat(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===P.LI&&i===P.LI||(n===P.DD||n===P.DT)&&(i===P.DD||i===P.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==P.ADDRESS&&i!==P.DIV&&i!==P.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML)}function Cat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),e.tokenizer.state=Ma.PLAINTEXT}function Aat(e,t){e.openElements.hasInScope(P.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(P.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.framesetOk=!1}function _at(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ke.A);n&&(sU(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Rat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Iat(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(P.NOBR)&&(sU(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Et.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Dat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Nat(e,t){e.treeAdapter.getDocumentMode(e.document)!==fu.QUIRKS&&e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),e.framesetOk=!1,e.insertionMode=Ae.IN_TABLE}function Fme(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Et.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Bme(e){const t=Eme(e,qm.TYPE);return t!=null&&t.toLowerCase()===Xit}function Pat(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Et.HTML),Bme(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Mat(e,t){e._appendElement(t,Et.HTML),t.ackSelfClosing=!0}function Lat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._appendElement(t,Et.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $at(e,t){t.tagName=Ke.IMG,t.tagID=P.IMG,Fme(e,t)}function Fat(e,t){e._insertElement(t,Et.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ma.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ae.TEXT}function Bat(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ma.RAWTEXT)}function Uat(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ma.RAWTEXT)}function Ste(e,t){e._switchToTextParsing(t,Ma.RAWTEXT)}function zat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ae.IN_TABLE||e.insertionMode===Ae.IN_CAPTION||e.insertionMode===Ae.IN_TABLE_BODY||e.insertionMode===Ae.IN_ROW||e.insertionMode===Ae.IN_CELL?Ae.IN_SELECT_IN_TABLE:Ae.IN_SELECT}function jat(e,t){e.openElements.currentTagId===P.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML)}function Hat(e,t){e.openElements.hasInScope(P.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Et.HTML)}function Vat(e,t){e.openElements.hasInScope(P.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(P.RTC),e._insertElement(t,Et.HTML)}function Wat(e,t){e._reconstructActiveFormattingElements(),Nme(t),aU(t),t.selfClosing?e._appendElement(t,Et.MATHML):e._insertElement(t,Et.MATHML),t.ackSelfClosing=!0}function Qat(e,t){e._reconstructActiveFormattingElements(),Pme(t),aU(t),t.selfClosing?e._appendElement(t,Et.SVG):e._insertElement(t,Et.SVG),t.ackSelfClosing=!0}function Ete(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML)}function To(e,t){switch(t.tagID){case P.I:case P.S:case P.B:case P.U:case P.EM:case P.TT:case P.BIG:case P.CODE:case P.FONT:case P.SMALL:case P.STRIKE:case P.STRONG:{Rat(e,t);break}case P.A:{_at(e,t);break}case P.H1:case P.H2:case P.H3:case P.H4:case P.H5:case P.H6:{wat(e,t);break}case P.P:case P.DL:case P.OL:case P.UL:case P.DIV:case P.DIR:case P.NAV:case P.MAIN:case P.MENU:case P.ASIDE:case P.CENTER:case P.FIGURE:case P.FOOTER:case P.HEADER:case P.HGROUP:case P.DIALOG:case P.DETAILS:case P.ADDRESS:case P.ARTICLE:case P.SECTION:case P.SUMMARY:case P.FIELDSET:case P.BLOCKQUOTE:case P.FIGCAPTION:{Eat(e,t);break}case P.LI:case P.DD:case P.DT:{kat(e,t);break}case P.BR:case P.IMG:case P.WBR:case P.AREA:case P.EMBED:case P.KEYGEN:{Fme(e,t);break}case P.HR:{Lat(e,t);break}case P.RB:case P.RTC:{Hat(e,t);break}case P.RT:case P.RP:{Vat(e,t);break}case P.PRE:case P.LISTING:{xat(e,t);break}case P.XMP:{Bat(e,t);break}case P.SVG:{Qat(e,t);break}case P.HTML:{vat(e,t);break}case P.BASE:case P.LINK:case P.META:case P.STYLE:case P.TITLE:case P.SCRIPT:case P.BGSOUND:case P.BASEFONT:case P.TEMPLATE:{Dd(e,t);break}case P.BODY:{Oat(e,t);break}case P.FORM:{Tat(e,t);break}case P.NOBR:{Iat(e,t);break}case P.MATH:{Wat(e,t);break}case P.TABLE:{Nat(e,t);break}case P.INPUT:{Pat(e,t);break}case P.PARAM:case P.TRACK:case P.SOURCE:{Mat(e,t);break}case P.IMAGE:{$at(e,t);break}case P.BUTTON:{Aat(e,t);break}case P.APPLET:case P.OBJECT:case P.MARQUEE:{Dat(e,t);break}case P.IFRAME:{Uat(e,t);break}case P.SELECT:{zat(e,t);break}case P.OPTION:case P.OPTGROUP:{jat(e,t);break}case P.NOEMBED:{Ste(e,t);break}case P.FRAMESET:{Sat(e,t);break}case P.TEXTAREA:{Fat(e,t);break}case P.NOSCRIPT:{e.options.scriptingEnabled?Ste(e,t):Ete(e,t);break}case P.PLAINTEXT:{Cat(e,t);break}case P.COL:case P.TH:case P.TD:case P.TR:case P.HEAD:case P.FRAME:case P.TBODY:case P.TFOOT:case P.THEAD:case P.CAPTION:case P.COLGROUP:break;default:Ete(e,t)}}function qat(e,t){if(e.openElements.hasInScope(P.BODY)&&(e.insertionMode=Ae.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Gat(e,t){e.openElements.hasInScope(P.BODY)&&(e.insertionMode=Ae.AFTER_BODY,Yme(e,t))}function Yat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Zat(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(P.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(P.FORM):n&&e.openElements.remove(n))}function Xat(e){e.openElements.hasInButtonScope(P.P)||e._insertFakeElement(Ke.P,P.P),e._closePElement()}function Kat(e){e.openElements.hasInListItemScope(P.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(P.LI),e.openElements.popUntilTagNamePopped(P.LI))}function Jat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function est(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function tst(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function nst(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ke.BR,P.BR),e.openElements.pop(),e.framesetOk=!1}function Ume(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==P.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function fI(e,t){switch(t.tagID){case P.A:case P.B:case P.I:case P.S:case P.U:case P.EM:case P.TT:case P.BIG:case P.CODE:case P.FONT:case P.NOBR:case P.SMALL:case P.STRIKE:case P.STRONG:{sU(e,t);break}case P.P:{Xat(e);break}case P.DL:case P.UL:case P.OL:case P.DIR:case P.DIV:case P.NAV:case P.PRE:case P.MAIN:case P.MENU:case P.ASIDE:case P.BUTTON:case P.CENTER:case P.FIGURE:case P.FOOTER:case P.HEADER:case P.HGROUP:case P.DIALOG:case P.ADDRESS:case P.ARTICLE:case P.DETAILS:case P.SECTION:case P.SUMMARY:case P.LISTING:case P.FIELDSET:case P.BLOCKQUOTE:case P.FIGCAPTION:{Yat(e,t);break}case P.LI:{Kat(e);break}case P.DD:case P.DT:{Jat(e,t);break}case P.H1:case P.H2:case P.H3:case P.H4:case P.H5:case P.H6:{est(e);break}case P.BR:{nst(e);break}case P.BODY:{qat(e,t);break}case P.HTML:{Gat(e,t);break}case P.FORM:{Zat(e);break}case P.APPLET:case P.OBJECT:case P.MARQUEE:{tst(e,t);break}case P.TEMPLATE:{_1(e,t);break}default:Ume(e,t)}}function zme(e,t){e.tmplInsertionModeStack.length>0?Gme(e,t):oU(e,t)}function rst(e,t){var n;t.tagID===P.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function ist(e,t){e._err(t,pt.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function LP(e,t){if(Mme.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ae.IN_TABLE_TEXT,t.type){case Or.CHARACTER:{Hme(e,t);break}case Or.WHITESPACE_CHARACTER:{jme(e,t);break}}else IT(e,t)}function ast(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_CAPTION}function sst(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_COLUMN_GROUP}function ost(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ke.COLGROUP,P.COLGROUP),e.insertionMode=Ae.IN_COLUMN_GROUP,lU(e,t)}function lst(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_TABLE_BODY}function ust(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ke.TBODY,P.TBODY),e.insertionMode=Ae.IN_TABLE_BODY,hI(e,t)}function cst(e,t){e.openElements.hasInTableScope(P.TABLE)&&(e.openElements.popUntilTagNamePopped(P.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function dst(e,t){Bme(t)?e._appendElement(t,Et.HTML):IT(e,t),t.ackSelfClosing=!0}function fst(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Et.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function lO(e,t){switch(t.tagID){case P.TD:case P.TH:case P.TR:{ust(e,t);break}case P.STYLE:case P.SCRIPT:case P.TEMPLATE:{Dd(e,t);break}case P.COL:{ost(e,t);break}case P.FORM:{fst(e,t);break}case P.TABLE:{cst(e,t);break}case P.TBODY:case P.TFOOT:case P.THEAD:{lst(e,t);break}case P.INPUT:{dst(e,t);break}case P.CAPTION:{ast(e,t);break}case P.COLGROUP:{sst(e,t);break}default:IT(e,t)}}function dx(e,t){switch(t.tagID){case P.TABLE:{e.openElements.hasInTableScope(P.TABLE)&&(e.openElements.popUntilTagNamePopped(P.TABLE),e._resetInsertionMode());break}case P.TEMPLATE:{_1(e,t);break}case P.BODY:case P.CAPTION:case P.COL:case P.COLGROUP:case P.HTML:case P.TBODY:case P.TD:case P.TFOOT:case P.TH:case P.THEAD:case P.TR:break;default:IT(e,t)}}function IT(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,dI(e,t),e.fosterParentingEnabled=n}function jme(e,t){e.pendingCharacterTokens.push(t)}function Hme(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ME(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===P.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===P.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===P.OPTGROUP&&e.openElements.pop();break}case P.OPTION:{e.openElements.currentTagId===P.OPTION&&e.openElements.pop();break}case P.SELECT:{e.openElements.hasInSelectScope(P.SELECT)&&(e.openElements.popUntilTagNamePopped(P.SELECT),e._resetInsertionMode());break}case P.TEMPLATE:{_1(e,t);break}}}function yst(e,t){const n=t.tagID;n===P.CAPTION||n===P.TABLE||n===P.TBODY||n===P.TFOOT||n===P.THEAD||n===P.TR||n===P.TD||n===P.TH?(e.openElements.popUntilTagNamePopped(P.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Qme(e,t)}function vst(e,t){const n=t.tagID;n===P.CAPTION||n===P.TABLE||n===P.TBODY||n===P.TFOOT||n===P.THEAD||n===P.TR||n===P.TD||n===P.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(P.SELECT),e._resetInsertionMode(),e.onEndTag(t)):qme(e,t)}function Ost(e,t){switch(t.tagID){case P.BASE:case P.BASEFONT:case P.BGSOUND:case P.LINK:case P.META:case P.NOFRAMES:case P.SCRIPT:case P.STYLE:case P.TEMPLATE:case P.TITLE:{Dd(e,t);break}case P.CAPTION:case P.COLGROUP:case P.TBODY:case P.TFOOT:case P.THEAD:{e.tmplInsertionModeStack[0]=Ae.IN_TABLE,e.insertionMode=Ae.IN_TABLE,lO(e,t);break}case P.COL:{e.tmplInsertionModeStack[0]=Ae.IN_COLUMN_GROUP,e.insertionMode=Ae.IN_COLUMN_GROUP,lU(e,t);break}case P.TR:{e.tmplInsertionModeStack[0]=Ae.IN_TABLE_BODY,e.insertionMode=Ae.IN_TABLE_BODY,hI(e,t);break}case P.TD:case P.TH:{e.tmplInsertionModeStack[0]=Ae.IN_ROW,e.insertionMode=Ae.IN_ROW,pI(e,t);break}default:e.tmplInsertionModeStack[0]=Ae.IN_BODY,e.insertionMode=Ae.IN_BODY,To(e,t)}}function Sst(e,t){t.tagID===P.TEMPLATE&&_1(e,t)}function Gme(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(P.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):oU(e,t)}function Est(e,t){t.tagID===P.HTML?To(e,t):G3(e,t)}function Yme(e,t){var n;if(t.tagID===P.HTML){if(e.fragmentContext||(e.insertionMode=Ae.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===P.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else G3(e,t)}function G3(e,t){e.insertionMode=Ae.IN_BODY,dI(e,t)}function wst(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.FRAMESET:{e._insertElement(t,Et.HTML);break}case P.FRAME:{e._appendElement(t,Et.HTML),t.ackSelfClosing=!0;break}case P.NOFRAMES:{Dd(e,t);break}}}function xst(e,t){t.tagID===P.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==P.FRAMESET&&(e.insertionMode=Ae.AFTER_FRAMESET))}function Tst(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.NOFRAMES:{Dd(e,t);break}}}function kst(e,t){t.tagID===P.HTML&&(e.insertionMode=Ae.AFTER_AFTER_FRAMESET)}function Cst(e,t){t.tagID===P.HTML?To(e,t):Q4(e,t)}function Q4(e,t){e.insertionMode=Ae.IN_BODY,dI(e,t)}function Ast(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.NOFRAMES:{Dd(e,t);break}}}function _st(e,t){t.chars=Gi,e._insertCharacters(t)}function Rst(e,t){e._insertCharacters(t),e.framesetOk=!1}function Zme(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Et.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Ist(e,t){if(Qit(t))Zme(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Et.MATHML?Nme(t):r===Et.SVG&&(qit(t),Pme(t)),aU(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Dst(e,t){if(t.tagID===P.P||t.tagID===P.BR){Zme(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Et.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Ke.AREA,Ke.BASE,Ke.BASEFONT,Ke.BGSOUND,Ke.BR,Ke.COL,Ke.EMBED,Ke.FRAME,Ke.HR,Ke.IMG,Ke.INPUT,Ke.KEYGEN,Ke.LINK,Ke.META,Ke.PARAM,Ke.SOURCE,Ke.TRACK,Ke.WBR;const Nst=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),wte={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Xme(e,t){const n=Hst(e),r=JB("type",{handlers:{root:Pst,element:Mst,text:Lst,comment:Jme,doctype:$st,raw:Bst},unknown:Ust}),i={parser:n?new Ote(wte):Ote.getFragmentParser(void 0,wte),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),jO(i,Zf());const a=n?i.parser.document:i.parser.getFragment(),s=Wrt(a,{file:i.options.file});return i.stitches&&Yo(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Kme(e,t){let n=-1;if(e)for(;++n"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function n0e(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?n0e(t.parentElement):null}function Qst(e){var t=n=>{var r=n0e(n.target);r&&(r.classList.add("active"),Wst(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};N.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var qst=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Gst=e=>e;const Yst=hn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:f={},warpperElement:h={},urlTransform:g}=e,b=at(e,qst),S=hn.useRef(null);N.useImperativeHandle(t,()=>M({},e,{mdp:S}),[S,e]);var w=(n||"")+" "+(r||"");Qst(S);var E=[...b.rehypePlugins||[]],x={allowElement:(R,A,D)=>b.allowElement?b.allowElement(R,A,D):/^[A-Za-z0-9]+$/.test(R.tagName)};o&&E.push(t0e);var k=[...b.remarkPlugins||[],Nrt],C=M({},h,f);return I.jsx("div",M({ref:S,onScroll:l,onMouseOver:u},C,{className:w,style:a,children:I.jsx(wtt,M({},x,b,{skipHtml:o,urlTransform:g||Gst,rehypePlugins:c?c("rehype",E):E,remarkPlugins:c?c("remark",k):k,children:i||""}))}))});function Ly(e){return"children"in e?r0e(e):"value"in e?e.value:""}function Zst(e){return e.type==="text"?e.value:"children"in e?r0e(e):""}function r0e(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const f={};let h;for(h in o)Xst.call(o,h)&&(f[h]=h==="children"?c:o[h]);return f}}function Jst(e){return"children"in e&&e.children!==void 0}var _L={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,u,c]=a;if(l&&c){l=parseInt(l),c=parseInt(c);const f=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Nd.displayName="c";Nd.aliases=[];function Nd(e){e.register(Dr),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}R1.displayName="cpp";R1.aliases=[];function R1(e){e.register(Nd),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}mI.displayName="arduino";mI.aliases=["ino"];function mI(e){e.register(R1),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}NT.displayName="bash";NT.aliases=["sh","shell"];function NT(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(be,ee){return"(?:"+Te[+ee]+")"})}function r(z,Te,be){return RegExp(n(z,Te),be||"")}function i(z,Te){for(var be=0;be>/g,function(){return"(?:"+z+")"});return z.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(z){return"\\b(?:"+z.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),u=s(a.typeDeclaration+" "+a.contextual+" "+a.other),c=s(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,b]),w=/\[\s*(?:,\s*)*\]/.source,E=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,w]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,h,w]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),C=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,w]),R={keyword:l,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,b]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,c,g]),inside:R}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,S]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,b,g,C,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,h]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(C),greedy:!0,inside:R},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var L=D+"|"+A,F=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[L]),W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[F]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Z=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,W]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,Z]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[W]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Q=/:[^}\r\n]+/.source,H=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[F]),2),J=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,Q]),K=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[L]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,Q]);function te(z,Te){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[z]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Te,Q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[J]),lookbehind:!0,greedy:!0,inside:te(J,H)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[X]),lookbehind:!0,greedy:!0,inside:te(X,K)}],char:{pattern:RegExp(A),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}Rs.displayName="markup";Rs.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Rs(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}R0.displayName="css";R0.aliases=[];function R0(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}gI.displayName="diff";gI.aliases=[];function gI(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}mI.displayName="go";mI.aliases=[];function mI(e){e.register(Dr),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}gI.displayName="ini";gI.aliases=[];function gI(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}D1.displayName="java";D1.aliases=[];function D1(e){e.register(Dr),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}bI.displayName="regex";bI.aliases=[];function bI(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}HO.displayName="json";HO.aliases=["webmanifest"];function HO(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}yI.displayName="kotlin";yI.aliases=["kt","kts"];function yI(e){e.register(Dr),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}vI.displayName="less";vI.aliases=[];function vI(e){e.register(R0),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}NT.displayName="lua";NT.aliases=[];function NT(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}OI.displayName="makefile";OI.aliases=[];function OI(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}PT.displayName="yaml";PT.aliases=["yml"];function PT(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(c,u)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}SI.displayName="markdown";SI.aliases=["md"];function SI(e){e.register(_s),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,f=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}wI.displayName="perl";wI.aliases=[];function wI(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Ks.displayName="markup-templating";Ks.aliases=[];function Ks(e){e.register(_s),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var u=o.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return o[u]=l,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function o(l){for(var u=0;u=s.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var f=s[a],h=r.tokenStack[f],g=typeof c=="string"?c:c.content,b=n(i,f),S=g.indexOf(b);if(S>-1){++a;var E=g.substring(0,S),w=new t.Token(i,t.tokenize(h,r.grammar),"language-"+i,h),x=g.substring(S+b.length),k=[];E&&k.push.apply(k,o([E])),k.push(w),x&&k.push.apply(k,o([x])),typeof c=="string"?l.splice.apply(l,[u,1].concat(k)):c.content=k}}else c.content&&o(c.content)}return l}o(r.tokens)}}})}(e)}N1.displayName="php";N1.aliases=[];function N1(e){e.register(Ks),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}MT.displayName="python";MT.aliases=["py"];function MT(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}xI.displayName="r";xI.aliases=[];function xI(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}P1.displayName="ruby";P1.aliases=["rb"];function P1(e){e.register(Dr),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}TI.displayName="rust";TI.aliases=[];function TI(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}kI.displayName="sass";kI.aliases=[];function kI(e){e.register(R0),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}CI.displayName="scss";CI.aliases=[];function CI(e){e.register(R0),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}VO.displayName="sql";VO.aliases=[];function VO(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}AI.displayName="swift";AI.aliases=[];function AI(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}WO.displayName="typescript";WO.aliases=["ts"];function WO(e){e.register(Xs),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}LT.displayName="basic";LT.aliases=[];function LT(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}$T.displayName="vbnet";$T.aliases=[];function $T(e){e.register(LT),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const wte=/[#.]/g;function Zst(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function aot(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function sot(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function kte(e){return sot(e)||i0e(e)}const Zb=String.fromCharCode,oot=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function lot(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let u=(o?o.line:0)||1,c=(o?o.column:0)||1,f=g(),h;for(i--;++i<=e.length;)if(h===10&&(c=(l?l[a]:0)||1),h=e.charCodeAt(i),h===38){const E=e.charCodeAt(i+1);if(E===9||E===10||E===12||E===32||E===38||E===60||Number.isNaN(E)||n&&E===n){s+=Zb(h),c++;continue}const w=i+1;let x=w,k=w,C;if(E===35){k=++x;const V=e.charCodeAt(k);V===88||V===120?(C="hexadecimal",k=++x):C="decimal"}else C="named";let R="",A="",D="";const B=C==="named"?kte:C==="decimal"?i0e:aot;for(k--;++k<=e.length;){const V=e.charCodeAt(k);if(!B(V))break;D+=Zb(V),C==="named"&&iot.includes(D)&&(R=D,A=cx(D))}let L=e.charCodeAt(k)===59;if(L){k++;const V=C==="named"?cx(D):!1;V&&(R=D,A=V)}let F=1+k-w,W="";if(!(!L&&t.nonTerminated===!1))if(!D)C!=="named"&&b(4,F);else if(C==="named"){if(L&&!A)b(5,1);else if(R!==D&&(k=x+R.length,F=1+k-x,L=!1),!L){const V=R?1:3;if(t.attribute){const Z=e.charCodeAt(k);Z===61?(b(V,F),A=""):kte(Z)?A="":b(V,F)}else b(V,F)}W=A}else{L||b(2,F);let V=Number.parseInt(D,C==="hexadecimal"?16:10);if(uot(V))b(7,F),W=Zb(65533);else if(V in Tte)b(6,F),W=Tte[V];else{let Z="";cot(V)&&b(6,F),V>65535&&(V-=65536,Z+=Zb(V>>>10|55296),V=56320|V&1023),W=Z+Zb(V)}}if(W){S(),f=g(),i=k-1,c+=k-w+1,r.push(W);const V=g();V.offset++,t.reference&&t.reference.call(t.referenceContext,W,{start:f,end:V},e.slice(w-1,k)),f=V}else D=e.slice(w-1,k),s+=D,c+=D.length,i=k-1}else h===10&&(u++,a++,c=0),Number.isNaN(h)?S():(s+=Zb(h),c++);return r.join("");function g(){return{line:u,column:c,offset:i+((o?o.offset:0)||0)}}function b(E,w){let x;t.warning&&(x=g(),x.column+=w,x.offset+=w,t.warning.call(t.warningContext,oot[E],x,E))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:f,end:g()}),s="")}}function uot(e){return e>=55296&&e<=57343||e>1114111}function cot(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var dot=0,_A={},bs={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++dot}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(bs.util.type(t)){case"Object":if(i=bs.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=bs.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:_A,plaintext:_A,text:_A,txt:_A,extend:function(e,t){var n=bs.util.clone(bs.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||bs.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,bs.languages.DFS(bs.languages,function(u,c){c===l&&u!=e&&(this[u]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=bs.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=bs.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(bs.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=bs.tokenize(r.code,r.grammar),bs.hooks.run("after-tokenize",r),G2.stringify(bs.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new fot;return Q4(i,i.head,e),a0e(e,i,t,i.head,0),pot(i)},hooks:{all:{},add:function(e,t){var n=bs.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=bs.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:G2};function G2(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function Cte(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function a0e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);w+=E.value.length,E=E.next){var x=E.value;if(t.length>e.length)return;if(!(x instanceof G2)){var k=1,C;if(h){if(C=Cte(S,w,e,f),!C||C.index>=e.length)break;var B=C.index,R=C.index+C[0].length,A=w;for(A+=E.value.length;B>=A;)E=E.next,A+=E.value.length;if(A-=E.value.length,w=A,E.value instanceof G2)continue;for(var D=E;D!==t.tail&&(Aa.reach&&(a.reach=V);var Z=E.prev;F&&(Z=Q4(t,Z,F),w+=F.length),hot(t,Z,k);var Q=new G2(s,c?bs.tokenize(L,c):L,g,L);if(E=Q4(t,Z,Q),W&&Q4(t,E,W),k>1){var H={cause:s+","+l,reach:V};a0e(e,t,n,E.prev,w,H),a&&H.reach>a.reach&&(a.reach=H.reach)}}}}}}function fot(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Q4(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function hot(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}uU.displayName="abnf";uU.aliases=[];function uU(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}cU.displayName="actionscript";cU.aliases=[];function cU(e){e.register(Xs),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}dU.displayName="ada";dU.aliases=[];function dU(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}fU.displayName="agda";fU.aliases=[];function fU(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}hU.displayName="al";hU.aliases=[];function hU(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}pU.displayName="antlr4";pU.aliases=["g4"];function pU(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}mU.displayName="apacheconf";mU.aliases=[];function mU(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}gU.displayName="apex";gU.aliases=[];function gU(e){e.register(Dr),e.register(VO),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}bU.displayName="apl";bU.aliases=[];function bU(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}yU.displayName="applescript";yU.aliases=[];function yU(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}vU.displayName="aql";vU.aliases=[];function vU(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}OU.displayName="arff";OU.aliases=[];function OU(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}SU.displayName="armasm";SU.aliases=["arm-asm"];function SU(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|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|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}EU.displayName="arturo";EU.aliases=["art"];function EU(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}wU.displayName="asciidoc";wU.aliases=["adoc"];function wU(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}TU.displayName="asm6502";TU.aliases=[];function TU(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}kU.displayName="asmatmel";kU.aliases=[];function kU(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?: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|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|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|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}CU.displayName="autohotkey";CU.aliases=[];function CU(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}AU.displayName="autoit";AU.aliases=[];function AU(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}_U.displayName="avisynth";_U.aliases=["avs"];function _U(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(f,h){return c[+h]})}function r(u,c,f){return RegExp(n(u,c),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}RU.displayName="avro-idl";RU.aliases=["avdl"];function RU(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}IU.displayName="awk";IU.aliases=["gawk"];function IU(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}DU.displayName="batch";DU.aliases=[];function DU(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}NU.displayName="bbcode";NU.aliases=["shortcode"];function NU(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}PU.displayName="bbj";PU.aliases=[];function PU(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}MU.displayName="bicep";MU.aliases=[];function MU(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}LU.displayName="birb";LU.aliases=[];function LU(e){e.register(Dr),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}$U.displayName="bison";$U.aliases=[];function $U(e){e.register(Nd),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}FU.displayName="bnf";FU.aliases=["rbnf"];function FU(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}BU.displayName="bqn";BU.aliases=[];function BU(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}UU.displayName="brainfuck";UU.aliases=[];function UU(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}zU.displayName="brightscript";zU.aliases=[];function zU(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}jU.displayName="bro";jU.aliases=[];function jU(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}HU.displayName="bsl";HU.aliases=["oscript"];function HU(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}VU.displayName="cfscript";VU.aliases=["cfc"];function VU(e){e.register(Dr),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}WU.displayName="chaiscript";WU.aliases=[];function WU(e){e.register(Dr),e.register(R1),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}QU.displayName="cil";QU.aliases=[];function QU(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}qU.displayName="cilkc";qU.aliases=["cilk-c"];function qU(e){e.register(Nd),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}GU.displayName="cilkcpp";GU.aliases=["cilk","cilk-cpp"];function GU(e){e.register(R1),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}YU.displayName="clojure";YU.aliases=[];function YU(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}ZU.displayName="cmake";ZU.aliases=[];function ZU(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}XU.displayName="cobol";XU.aliases=[];function XU(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}KU.displayName="coffeescript";KU.aliases=["coffee"];function KU(e){e.register(Xs),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}JU.displayName="concurnas";JU.aliases=["conc"];function JU(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}ez.displayName="csp";ez.aliases=[];function ez(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}tz.displayName="cooklang";tz.aliases=[];function tz(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}nz.displayName="coq";nz.aliases=[];function nz(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}rz.displayName="crystal";rz.aliases=[];function rz(e){e.register(P1),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}iz.displayName="css-extras";iz.aliases=[];function iz(e){e.register(R0),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}az.displayName="csv";az.aliases=[];function az(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}sz.displayName="cue";sz.aliases=[];function sz(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}oz.displayName="cypher";oz.aliases=[];function oz(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}lz.displayName="d";lz.aliases=[];function lz(e){e.register(Dr),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}uz.displayName="dart";uz.aliases=[];function uz(e){e.register(Dr),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}cz.displayName="dataweave";cz.aliases=[];function cz(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}dz.displayName="dax";dz.aliases=[];function dz(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}fz.displayName="dhall";fz.aliases=[];function fz(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}hz.displayName="django";hz.aliases=["jinja2"];function hz(e){e.register(Ks),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}pz.displayName="dns-zone-file";pz.aliases=["dns-zone"];function pz(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}mz.displayName="docker";mz.aliases=["dockerfile"];function mz(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(u,c)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}gz.displayName="dot";gz.aliases=["gv"];function gz(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}bz.displayName="ebnf";bz.aliases=[];function bz(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}yz.displayName="editorconfig";yz.aliases=[];function yz(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}vz.displayName="eiffel";vz.aliases=[];function vz(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Oz.displayName="ejs";Oz.aliases=["eta"];function Oz(e){e.register(Xs),e.register(Ks),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}Sz.displayName="elixir";Sz.aliases=[];function Sz(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}Ez.displayName="elm";Ez.aliases=[];function Ez(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}wz.displayName="etlua";wz.aliases=[];function wz(e){e.register(NT),e.register(Ks),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}xz.displayName="erb";xz.aliases=[];function xz(e){e.register(Ks),e.register(P1),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}Tz.displayName="erlang";Tz.aliases=[];function Tz(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}kz.displayName="excel-formula";kz.aliases=["xls","xlsx"];function kz(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}Cz.displayName="fsharp";Cz.aliases=[];function Cz(e){e.register(Dr),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}Az.displayName="factor";Az.aliases=[];function Az(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(u){i[u].pattern=s(o[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(l),t.languages.factor=i})(e)}_z.displayName="false";_z.aliases=[];function _z(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}Iz.displayName="flow";Iz.aliases=[];function Iz(e){e.register(Xs),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}Dz.displayName="fortran";Dz.aliases=[];function Dz(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Nz.displayName="ftl";Nz.aliases=[];function Nz(e){e.register(Ks),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Pz.displayName="gml";Pz.aliases=["gamemakerlanguage"];function Pz(e){e.register(Dr),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}Mz.displayName="gap";Mz.aliases=[];function Mz(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}Lz.displayName="gcode";Lz.aliases=[];function Lz(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}$z.displayName="gdscript";$z.aliases=[];function $z(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}Fz.displayName="gedcom";Fz.aliases=[];function Fz(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}Bz.displayName="gettext";Bz.aliases=["po"];function Bz(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}Uz.displayName="gherkin";Uz.aliases=[];function Uz(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}zz.displayName="git";zz.aliases=[];function zz(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}jz.displayName="glsl";jz.aliases=[];function jz(e){e.register(Nd),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Hz.displayName="gn";Hz.aliases=["gni"];function Hz(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}Vz.displayName="linker-script";Vz.aliases=["ld"];function Vz(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}Wz.displayName="go-module";Wz.aliases=["go-mod"];function Wz(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}Qz.displayName="gradle";Qz.aliases=[];function Qz(e){e.register(Dr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}qz.displayName="graphql";qz.aliases=[];function qz(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(E){return typeof E!="string"&&E.type!=="comment"&&E.type!=="scalar"}),i=0;function a(E){return r[i+E]}function s(E,w){w=w||0;for(var x=0;x0)){var g=o(/^\{$/,/^\}$/);if(g===-1)continue;for(var b=i;b=0&&l(S,"variable-input")}}}}})}Gz.displayName="groovy";Gz.aliases=[];function Gz(e){e.register(Dr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}Yz.displayName="textile";Yz.aliases=[];function Yz(e){e.register(_s),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,h){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),h||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=o.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=o.table.inside;c.inline=l.inline,c.link=l.link,c.image=l.image,c.footnote=l.footnote,c.acronym=l.acronym,c.mark=l.mark}(e)}Zz.displayName="haml";Zz.aliases=[];function Zz(e){e.register(P1),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}FT.displayName="haskell";FT.aliases=["hs"];function FT(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Kz.displayName="haxe";Kz.aliases=[];function Kz(e){e.register(Dr),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}Jz.displayName="hcl";Jz.aliases=[];function Jz(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}ej.displayName="hlsl";ej.aliases=[];function ej(e){e.register(Nd),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}tj.displayName="hoon";tj.aliases=[];function tj(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}nj.displayName="hpkp";nj.aliases=[];function nj(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}rj.displayName="hsts";rj.aliases=[];function rj(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}ij.displayName="uri";ij.aliases=["url"];function ij(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}aj.displayName="http";aj.aliases=[];function aj(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(c){var f=c.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+c+"|"+h+")"}var o;for(var l in i)if(i[l]){o=o||{};var u=a[l]?s(l):l;o[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}o&&t.languages.insertBefore("http","header",o)})(e)}sj.displayName="ichigojam";sj.aliases=[];function sj(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}oj.displayName="icon";oj.aliases=[];function oj(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}lj.displayName="icu-message-format";lj.aliases=[];function lj(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}uj.displayName="idris";uj.aliases=["idr"];function uj(e){e.register(FT),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}cj.displayName="ignore";cj.aliases=["gitignore","hgignore","npmignore"];function cj(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}dj.displayName="inform7";dj.aliases=[];function dj(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}fj.displayName="io";fj.aliases=[];function fj(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}qO.displayName="javadoclike";qO.aliases=[];function qO(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var u=l[o];if(!u){var c={};c[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",c),u=l[o]}if(u instanceof RegExp&&(u=l[o]={pattern:u}),Array.isArray(u))for(var f=0,h=u.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}mj.displayName="javadoc";mj.aliases=[];function mj(e){e.register(D1),e.register(qO),e.register(_s),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}gj.displayName="javastacktrace";gj.aliases=[];function gj(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}bj.displayName="jexl";bj.aliases=[];function bj(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}yj.displayName="jolie";yj.aliases=[];function yj(e){e.register(Dr),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}vj.displayName="jq";vj.aliases=[];function vj(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}Oj.displayName="js-templates";Oj.aliases=[];function Oj(e){e.register(Xs),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(b,S){if(t.languages[b])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(b,S){return"___"+S.toUpperCase()+"_"+b+"___"}function u(b,S,E){var w={code:b,grammar:S,language:E};return t.hooks.run("before-tokenize",w),w.tokens=t.tokenize(w.code,w.grammar),t.hooks.run("after-tokenize",w),w.tokens}function c(b){var S={};S["interpolation-punctuation"]=a;var E=t.tokenize(b,S);if(E.length===3){var w=[1,1];w.push.apply(w,u(E[1],t.languages.javascript,"javascript")),E.splice.apply(E,w)}return new t.Token("interpolation",E,i.alias,b)}function f(b,S,E){var w=t.tokenize(b,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},C=w.map(function(B){if(typeof B=="string")return B;for(var L=B.content,F;b.indexOf(F=l(x++,E))!==-1;);return k[F]=L,F}).join(""),R=u(C,S,E),A=Object.keys(k);x=0;function D(B){for(var L=0;L=A.length)return;var F=B[L];if(typeof F=="string"||typeof F.content=="string"){var W=A[x],V=typeof F=="string"?F:F.content,Z=V.indexOf(W);if(Z!==-1){++x;var Q=V.substring(0,Z),H=c(k[W]),J=V.substring(Z+W.length),K=[];if(Q&&K.push(Q),K.push(H),J){var X=[J];D(X),K.push.apply(K,X)}typeof F=="string"?(B.splice.apply(B,[L,1].concat(K)),L+=K.length-1):F.content=K}}else{var te=F.content;Array.isArray(te)?D(te):D([te])}}}return D(R),new t.Token(E,R,"language-"+E,b)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in h))return;function S(E){for(var w=0,x=E.length;w\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}Ej.displayName="n4js";Ej.aliases=["n4jsd"];function Ej(e){e.register(Xs),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}wj.displayName="js-extras";wj.aliases=[];function wj(e){e.register(Xs),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(l,u){return RegExp(l.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}Cj.displayName="julia";Cj.aliases=[];function Cj(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}Aj.displayName="keepalived";Aj.aliases=[];function Aj(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}_j.displayName="keyman";_j.aliases=[];function _j(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}Rj.displayName="kumir";Rj.aliases=["kum"];function Rj(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}Ij.displayName="kusto";Ij.aliases=[];function Ij(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}Dj.displayName="latex";Dj.aliases=["context","tex"];function Dj(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}Nj.displayName="latte";Nj.aliases=[];function Nj(e){e.register(Dr),e.register(Ks),e.register(N1),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}BT.displayName="scheme";BT.aliases=[];function BT(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}Pj.displayName="lilypond";Pj.aliases=["ly"];function Pj(e){e.register(BT),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}Mj.displayName="liquid";Mj.aliases=[];function Mj(e){e.register(Ks),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}Lj.displayName="lisp";Lj.aliases=["elisp","emacs","emacs-lisp"];function Lj(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:c},h="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(s+u+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:f},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=g,c.defun.inside.arguments=t.util.clone(g),c.defun.inside.arguments.inside.sublist=g,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}$j.displayName="livescript";$j.aliases=[];function $j(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}Fj.displayName="llvm";Fj.aliases=[];function Fj(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}Bj.displayName="log";Bj.aliases=[];function Bj(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}Uj.displayName="lolcode";Uj.aliases=[];function Uj(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}zj.displayName="magma";zj.aliases=[];function zj(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}_I.displayName="mata";_I.aliases=[];function _I(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}jj.displayName="matlab";jj.aliases=[];function jj(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}Hj.displayName="maxscript";Hj.aliases=[];function Hj(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}Vj.displayName="mel";Vj.aliases=[];function Vj(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}Wj.displayName="mermaid";Wj.aliases=[];function Wj(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}Qj.displayName="metafont";Qj.aliases=[];function Qj(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}qj.displayName="mizar";qj.aliases=[];function qj(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}Gj.displayName="mongodb";Gj.aliases=[];function Gj(e){e.register(Xs),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}Yj.displayName="monkey";Yj.aliases=[];function Yj(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}Zj.displayName="moonscript";Zj.aliases=["moon"];function Zj(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}Xj.displayName="n1ql";Xj.aliases=[];function Xj(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}Kj.displayName="nand2tetris-hdl";Kj.aliases=[];function Kj(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}Jj.displayName="naniscript";Jj.aliases=["nani"];function Jj(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=a(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(s){for(var o="[]{}",l=[],u=0;u=&|$!]/}}tH.displayName="neon";tH.aliases=[];function tH(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}nH.displayName="nevod";nH.aliases=[];function nH(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}rH.displayName="nginx";rH.aliases=[];function rH(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}iH.displayName="nim";iH.aliases=[];function iH(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}aH.displayName="nix";aH.aliases=[];function aH(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}sH.displayName="nsis";sH.aliases=[];function sH(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}oH.displayName="ocaml";oH.aliases=[];function oH(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}lH.displayName="odin";lH.aliases=[];function lH(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}uH.displayName="opencl";uH.aliases=[];function uH(e){e.register(Nd),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}cH.displayName="openqasm";cH.aliases=["qasm"];function cH(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}dH.displayName="oz";dH.aliases=[];function dH(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}fH.displayName="parigp";fH.aliases=[];function fH(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}hH.displayName="parser";hH.aliases=[];function hH(e){e.register(_s),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}pH.displayName="pascal";pH.aliases=["objectpascal"];function pH(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}mH.displayName="pascaligo";mH.aliases=[];function mH(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}gH.displayName="psl";gH.aliases=[];function gH(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}bH.displayName="pcaxis";bH.aliases=["px"];function bH(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}yH.displayName="peoplecode";yH.aliases=["pcode"];function yH(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}vH.displayName="phpdoc";vH.aliases=[];function vH(e){e.register(qO),e.register(N1),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}OH.displayName="php-extras";OH.aliases=[];function OH(e){e.register(N1),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}SH.displayName="plant-uml";SH.aliases=["plantuml"];function SH(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+c+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}EH.displayName="plsql";EH.aliases=[];function EH(e){e.register(VO),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}wH.displayName="powerquery";wH.aliases=["mscript","pq"];function wH(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}xH.displayName="powershell";xH.aliases=[];function xH(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}TH.displayName="processing";TH.aliases=[];function TH(e){e.register(Dr),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}kH.displayName="prolog";kH.aliases=[];function kH(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}CH.displayName="promql";CH.aliases=[];function CH(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}AH.displayName="properties";AH.aliases=[];function AH(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}_H.displayName="protobuf";_H.aliases=[];function _H(e){e.register(Dr),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}RH.displayName="stylus";RH.aliases=[];function RH(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}IH.displayName="twig";IH.aliases=[];function IH(e){e.register(Ks),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}DH.displayName="pug";DH.aliases=[];function DH(e){e.register(Xs),e.register(_s),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}NH.displayName="puppet";NH.aliases=[];function NH(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}PH.displayName="pure";PH.aliases=[];function PH(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}MH.displayName="purebasic";MH.aliases=["pbfasm"];function MH(e){e.register(Dr),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}LH.displayName="purescript";LH.aliases=["purs"];function LH(e){e.register(FT),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}$H.displayName="qsharp";$H.aliases=["qs"];function $H(e){e.register(Dr),function(t){function n(g,b){return g.replace(/<<(\d+)>>/g,function(S,E){return"(?:"+b[+E]+")"})}function r(g,b,S){return RegExp(n(g,b),S||"")}function i(g,b){for(var S=0;S>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:o,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}FH.displayName="q";FH.aliases=[];function FH(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}BH.displayName="qml";BH.aliases=[];function BH(e){e.register(Xs),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}UH.displayName="qore";UH.aliases=[];function UH(e){e.register(Dr),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}zH.displayName="racket";zH.aliases=["rkt"];function zH(e){e.register(BT),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}jH.displayName="cshtml";jH.aliases=["razor"];function jH(e){e.register(I1),e.register(_s),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var C=0;C/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,h=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+h+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+h+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+h+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(u,c)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},l=function(u){for(var c=[],f=0;f0&&c[c.length-1].tagName===o(h.content[0].content[1])&&c.pop():h.content[h.content.length-1].content==="/>"||c.push({tagName:o(h.content[0].content[1]),openedBraces:0}):c.length>0&&h.type==="punctuation"&&h.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?c[c.length-1].openedBraces--:g=!0),(g||typeof h=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var b=o(h);f0&&(typeof u[f-1]=="string"||u[f-1].type==="plain-text")&&(b=o(u[f-1])+b,u.splice(f-1,1),f--),u[f]=new t.Token("plain-text",b,null,b)}h.content&&typeof h.content!="string"&&l(h.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}HH.displayName="tsx";HH.aliases=[];function HH(e){e.register(RI),e.register(WO),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}VH.displayName="reason";VH.aliases=[];function VH(e){e.register(Dr),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}WH.displayName="rego";WH.aliases=[];function WH(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}QH.displayName="renpy";QH.aliases=["rpy"];function QH(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}qH.displayName="rescript";qH.aliases=["res"];function qH(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}GH.displayName="rest";GH.aliases=[];function GH(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}YH.displayName="rip";YH.aliases=[];function YH(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}ZH.displayName="roboconf";ZH.aliases=[];function ZH(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}XH.displayName="robotframework";XH.aliases=["robot"];function XH(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(l,u){var c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in u)c[f]=u[f];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:c}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}KH.displayName="sas";KH.aliases=[];function KH(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},E={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},w=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return w}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return w}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:f,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:k,"submit-statement":E,"global-statements":S,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:k,"submit-statement":E,"global-statements":S,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:o,keyword:k,function:f,format:g,altformat:b,"global-statements":S,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:h},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":x,comment:l,function:f,format:g,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}JH.displayName="shell-session";JH.aliases=["sh-session","shellsession"];function JH(e){e.register(DT),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}eV.displayName="smali";eV.aliases=[];function eV(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}tV.displayName="smalltalk";tV.aliases=[];function tV(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}nV.displayName="smarty";nV.aliases=[];function nV(e){e.register(Ks),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}rV.displayName="sml";rV.aliases=["smlnj"];function rV(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}iV.displayName="solidity";iV.aliases=["sol"];function iV(e){e.register(Dr),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}aV.displayName="solution-file";aV.aliases=["sln"];function aV(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}sV.displayName="soy";sV.aliases=[];function sV(e){e.register(Ks),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(u){return u===o&&(l=!1),l?!1:(u===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}II.displayName="turtle";II.aliases=["trig"];function II(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}oV.displayName="sparql";oV.aliases=["rq"];function oV(e){e.register(II),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}lV.displayName="splunk-spl";lV.aliases=[];function lV(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}uV.displayName="sqf";uV.aliases=[];function uV(e){e.register(Dr),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}cV.displayName="squirrel";cV.aliases=[];function cV(e){e.register(Dr),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}dV.displayName="stan";dV.aliases=[];function dV(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}fV.displayName="stata";fV.aliases=[];function fV(e){e.register(D1),e.register(_I),e.register(MT),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}hV.displayName="iecst";hV.aliases=[];function hV(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}pV.displayName="supercollider";pV.aliases=["sclang"];function pV(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}mV.displayName="systemd";mV.aliases=[];function mV(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}UT.displayName="t4-templating";UT.aliases=[];function UT(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}gV.displayName="t4-cs";gV.aliases=["t4"];function gV(e){e.register(I1),e.register(UT),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}bV.displayName="t4-vb";bV.aliases=[];function bV(e){e.register(UT),e.register($T),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}yV.displayName="tap";yV.aliases=[];function yV(e){e.register(PT),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}vV.displayName="tcl";vV.aliases=[];function vV(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}OV.displayName="tt2";OV.aliases=[];function OV(e){e.register(Dr),e.register(Ks),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}SV.displayName="toml";SV.aliases=[];function SV(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}EV.displayName="tremor";EV.aliases=["trickle","troy"];function EV(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}wV.displayName="typoscript";wV.aliases=["tsconfig"];function wV(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}xV.displayName="unrealscript";xV.aliases=["uc","uscript"];function xV(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}TV.displayName="uorazor";TV.aliases=[];function TV(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}kV.displayName="v";kV.aliases=[];function kV(e){e.register(Dr),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}CV.displayName="vala";CV.aliases=[];function CV(e){e.register(Dr),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}AV.displayName="velocity";AV.aliases=[];function AV(e){e.register(_s),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}_V.displayName="verilog";_V.aliases=[];function _V(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}RV.displayName="vhdl";RV.aliases=[];function RV(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}IV.displayName="vim";IV.aliases=[];function IV(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}DV.displayName="visual-basic";DV.aliases=["vb","vba"];function DV(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}NV.displayName="warpscript";NV.aliases=[];function NV(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}PV.displayName="wasm";PV.aliases=[];function PV(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}MV.displayName="web-idl";MV.aliases=["webidl"];function MV(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}LV.displayName="wgsl";LV.aliases=[];function LV(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}$V.displayName="wiki";$V.aliases=[];function $V(e){e.register(_s),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}FV.displayName="wolfram";FV.aliases=["mathematica","nb","wl"];function FV(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}BV.displayName="wren";BV.aliases=[];function BV(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}UV.displayName="xeora";UV.aliases=["xeoracube"];function UV(e){e.register(_s),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}zV.displayName="xml-doc";zV.aliases=[];function zV(e){e.register(_s),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}jV.displayName="xojo";jV.aliases=[];function jV(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}HV.displayName="xquery";HV.aliases=[];function HV(e){e.register(_s),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var u=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(u=n(i[s-1])+u,i.splice(s-1,1),s--),/^\s+$/.test(u)?i[s]=u:i[s]=new t.Token("plain-text",u,null,u)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}VV.displayName="yang";VV.aliases=[];function VV(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}WV.displayName="zig";WV.aliases=[];function WV(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}oe.register(_s);oe.register(R0);oe.register(Dr);oe.register(bI);oe.register(Xs);oe.register(lU);oe.register(uU);oe.register(cU);oe.register(dU);oe.register(fU);oe.register(hU);oe.register(pU);oe.register(mU);oe.register(VO);oe.register(gU);oe.register(bU);oe.register(yU);oe.register(vU);oe.register(Nd);oe.register(R1);oe.register(hI);oe.register(OU);oe.register(SU);oe.register(DT);oe.register(PT);oe.register(SI);oe.register(EU);oe.register(wU);oe.register(I1);oe.register(xU);oe.register(TU);oe.register(kU);oe.register(CU);oe.register(AU);oe.register(_U);oe.register(RU);oe.register(IU);oe.register(LT);oe.register(DU);oe.register(NU);oe.register(PU);oe.register(MU);oe.register(LU);oe.register($U);oe.register(FU);oe.register(BU);oe.register(UU);oe.register(zU);oe.register(jU);oe.register(HU);oe.register(VU);oe.register(WU);oe.register(QU);oe.register(qU);oe.register(GU);oe.register(YU);oe.register(ZU);oe.register(XU);oe.register(KU);oe.register(JU);oe.register(ez);oe.register(tz);oe.register(nz);oe.register(P1);oe.register(rz);oe.register(iz);oe.register(az);oe.register(sz);oe.register(oz);oe.register(lz);oe.register(uz);oe.register(cz);oe.register(dz);oe.register(fz);oe.register(pI);oe.register(Ks);oe.register(hz);oe.register(pz);oe.register(mz);oe.register(gz);oe.register(bz);oe.register(yz);oe.register(vz);oe.register(Oz);oe.register(Sz);oe.register(Ez);oe.register(NT);oe.register(wz);oe.register(xz);oe.register(Tz);oe.register(kz);oe.register(Cz);oe.register(Az);oe.register(_z);oe.register(Rz);oe.register(Iz);oe.register(Dz);oe.register(Nz);oe.register(Pz);oe.register(Mz);oe.register(Lz);oe.register($z);oe.register(Fz);oe.register(Bz);oe.register(Uz);oe.register(zz);oe.register(jz);oe.register(Hz);oe.register(Vz);oe.register(mI);oe.register(Wz);oe.register(Qz);oe.register(qz);oe.register(Gz);oe.register(vI);oe.register(CI);oe.register(Yz);oe.register(Zz);oe.register(Xz);oe.register(FT);oe.register(Kz);oe.register(Jz);oe.register(ej);oe.register(tj);oe.register(nj);oe.register(rj);oe.register(HO);oe.register(ij);oe.register(aj);oe.register(sj);oe.register(oj);oe.register(lj);oe.register(uj);oe.register(cj);oe.register(dj);oe.register(gI);oe.register(fj);oe.register(hj);oe.register(D1);oe.register(N1);oe.register(qO);oe.register(pj);oe.register(mj);oe.register(gj);oe.register(bj);oe.register(yj);oe.register(vj);oe.register(Oj);oe.register(WO);oe.register(Sj);oe.register(Ej);oe.register(wj);oe.register(xj);oe.register(Tj);oe.register(kj);oe.register(Cj);oe.register(Aj);oe.register(_j);oe.register(yI);oe.register(Rj);oe.register(Ij);oe.register(Dj);oe.register(Nj);oe.register(BT);oe.register(Pj);oe.register(Mj);oe.register(Lj);oe.register($j);oe.register(Fj);oe.register(Bj);oe.register(Uj);oe.register(zj);oe.register(OI);oe.register(_I);oe.register(jj);oe.register(Hj);oe.register(Vj);oe.register(Wj);oe.register(Qj);oe.register(qj);oe.register(Gj);oe.register(Yj);oe.register(Zj);oe.register(Xj);oe.register(Kj);oe.register(Jj);oe.register(eH);oe.register(tH);oe.register(nH);oe.register(rH);oe.register(iH);oe.register(aH);oe.register(sH);oe.register(EI);oe.register(oH);oe.register(lH);oe.register(uH);oe.register(cH);oe.register(dH);oe.register(fH);oe.register(hH);oe.register(pH);oe.register(mH);oe.register(gH);oe.register(bH);oe.register(yH);oe.register(wI);oe.register(vH);oe.register(OH);oe.register(SH);oe.register(EH);oe.register(wH);oe.register(xH);oe.register(TH);oe.register(kH);oe.register(CH);oe.register(AH);oe.register(_H);oe.register(RH);oe.register(IH);oe.register(DH);oe.register(NH);oe.register(PH);oe.register(MH);oe.register(LH);oe.register(MT);oe.register($H);oe.register(FH);oe.register(BH);oe.register(UH);oe.register(xI);oe.register(zH);oe.register(jH);oe.register(RI);oe.register(HH);oe.register(VH);oe.register(WH);oe.register(QH);oe.register(qH);oe.register(GH);oe.register(YH);oe.register(ZH);oe.register(XH);oe.register(TI);oe.register(KH);oe.register(kI);oe.register(JH);oe.register(eV);oe.register(tV);oe.register(nV);oe.register(rV);oe.register(iV);oe.register(aV);oe.register(sV);oe.register(II);oe.register(oV);oe.register(lV);oe.register(uV);oe.register(cV);oe.register(dV);oe.register(fV);oe.register(hV);oe.register(pV);oe.register(AI);oe.register(mV);oe.register(UT);oe.register(gV);oe.register($T);oe.register(bV);oe.register(yV);oe.register(vV);oe.register(OV);oe.register(SV);oe.register(EV);oe.register(wV);oe.register(xV);oe.register(TV);oe.register(kV);oe.register(CV);oe.register(AV);oe.register(_V);oe.register(RV);oe.register(IV);oe.register(DV);oe.register(NV);oe.register(PV);oe.register(MV);oe.register(LV);oe.register($V);oe.register(FV);oe.register(BV);oe.register(UV);oe.register(zV);oe.register(jV);oe.register(HV);oe.register(VV);oe.register(WV);function DL(){DL=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),Q3(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var u=s[l];if(typeof u=="number")o[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=s[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},DL.apply(this,arguments)}function Q3(e,t){return Q3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Q3(e,t)}function Ate(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Eot=function(e){return function(t){return t===void 0&&(t={}),function(r,i){if(i&&!r.registered(i))throw new Error('The default language "'+i+'" is not registered with refractor.')}(e,t.defaultLanguage),function(r){Yo(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,c,f=function(R){for(var A,D=MP(R.properties.className);!(A=D()).done;){var B=A.value;if(B.slice(0,9)==="language-")return B.slice(9).toLowerCase()}return null}(r);if(!f&&t.defaultLanguage&&r.properties.className.push("language-"+(f=t.defaultLanguage)),r.properties.className.push("code-highlight"),f)try{var h,g;g=(h=f)!=null&&h.includes("diff-")?f.split("-")[1]:f,u=e.highlight(Ly(r),g),a.properties.className=(a.properties.className||[]).concat("language-"+g)}catch(R){if(!t.ignoreMissing||!/Unknown language/.test(R.message))throw R;u=r}else u=r;u.children=(c=1,function R(A){return A.reduce(function(D,B){if(B.type==="text"){var L=B.value,F=(L.match(/\n/g)||"").length;if(F===0)B.position={start:{line:c,column:1},end:{line:c,column:1}},D.push(B);else for(var W,V=L.split(` -`),Z=MP(V.entries());!(W=Z()).done;){var Q=W.value,H=Q[0],J=Q[1];D.push({type:"text",value:H===V.length-1?J:J+` -`,position:{start:{line:c+H,column:1},end:{line:c+H,column:1}}})}return c+=F,D}if(Object.prototype.hasOwnProperty.call(B,"children")){var K=c;return B.children=R(B.children),D.push(B),B.position={start:{line:K,column:1},end:{line:c,column:1}},D}return D.push(B),D},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var b,S=function(R){var A=/{([\d,-]+)}/,D=R.split(",").map(function(F){return F.trim()}).join();if(A.test(D)){var B=A.exec(D)[1],L=Yst(B);return function(F){return L.includes(F+1)}}return function(){return!1}}(l),E=function(R){var A=DL(/showLineNumbers=(\d+)/i,{lines:1});if(A.test(R)){var D=A.exec(R);return Number(D.groups.lines)}return 1}(l),w=function(R){for(var A=new Array(R),D=0;D=B+1});L.children=F.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(W){return l.toLowerCase().includes(W)})||(L.properties.line=[(B+E).toString()],L.properties.className.push("line-number")),S(B)&&L.properties.className.push("highlight-line"),(f==="diff"||(R=f)!=null&&R.includes("diff-"))&&Ly(L).substring(0,1)==="-"?L.properties.className.push("deleted"):(f==="diff"||(A=f)!=null&&A.includes("diff-"))&&Ly(L).substring(0,1)==="+"&&L.properties.className.push("inserted")},C=MP(w.entries());!(b=C()).done;)k();w.length>0&&Ly(w[w.length-1]).trim()===""&&w.pop(),r.children=w}}}},wot=Eot(oe),q4={},NL={};function xot(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),ML=zT(u0e,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),LL=zT(ML,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),Dot=zT(LL,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),Pte={css1:l0e,css2:u0e,css3:ML,"selectors-3":ML,"selectors-4":LL,latest:LL,progressive:Dot};function LE(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function Not(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function $E(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Pot={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Mot={'"':!0,"'":!0},$P={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Lot=6,FP="css-selector-parser parse error: ";function $ot(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:Pte[n];s.baseSyntax&&(s=zT(Pte[s.baseSyntax],s));var o=s.tag?[!0,!!_ot(s.tag).wildcard]:[!1,!1],l=o[0],u=o[1],c=!!s.ids,f=!!s.classNames,h=!!s.namespace,g=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(h&&!l)throw new Error("".concat(FP,"Namespaces cannot be enabled while tags are disabled."));var b=!!r,S=s.combinators?_te(s.combinators):q4,E=s.attributes?[!0,s.attributes.operators?_te(s.attributes.operators):q4,s.attributes.caseSensitivityModifiers?Tot(s.attributes.caseSensitivityModifiers):NL,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,q4,NL,!1],w=E[0],x=E[1],k=E[2],C=E[3],R=C||Object.keys(k).length>0,A=s.pseudoClasses?[!0,s.pseudoClasses.definitions?Ite(s.pseudoClasses.definitions):RA,s.pseudoClasses.unknown==="accept"]:[!1,RA,!1],D=A[0],B=A[1],L=A[2],F=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?Ite(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):RA,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,RA,!1],W=F[0],V=F[1],Z=F[2],Q=F[3],H=F[4],J="",K=J.length,X=0,te="",z=function(ve){return te===ve},Te=function(){return z("*")||LE(te)},be=function(ve){X=ve,te=J.charAt(X)},ee=function(){X++,te=J.charAt(X)},ye=function(){var ve=te;return X++,te=J.charAt(X),ve};function Oe(ve){var De=Math.min(K-1,X),$e=new Error("".concat(FP).concat(ve," Pos: ").concat(De,"."));throw $e.position=De,$e.name="ParserError",$e}function ie(ve,De){if(!ve)return Oe(De)}var _e=function(){ie(X=K},qe=function(ve){ie(X(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}yI.displayName="ini";yI.aliases=[];function yI(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}D1.displayName="java";D1.aliases=[];function D1(e){e.register(Dr),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}vI.displayName="regex";vI.aliases=[];function vI(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}HO.displayName="json";HO.aliases=["webmanifest"];function HO(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}OI.displayName="kotlin";OI.aliases=["kt","kts"];function OI(e){e.register(Dr),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}SI.displayName="less";SI.aliases=[];function SI(e){e.register(R0),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}PT.displayName="lua";PT.aliases=[];function PT(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}EI.displayName="makefile";EI.aliases=[];function EI(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}MT.displayName="yaml";MT.aliases=["yml"];function MT(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(c,u)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}wI.displayName="markdown";wI.aliases=["md"];function wI(e){e.register(Rs),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,f=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}TI.displayName="perl";TI.aliases=[];function TI(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Ks.displayName="markup-templating";Ks.aliases=[];function Ks(e){e.register(Rs),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var u=o.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return o[u]=l,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function o(l){for(var u=0;u=s.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var f=s[a],h=r.tokenStack[f],g=typeof c=="string"?c:c.content,b=n(i,f),S=g.indexOf(b);if(S>-1){++a;var w=g.substring(0,S),E=new t.Token(i,t.tokenize(h,r.grammar),"language-"+i,h),x=g.substring(S+b.length),k=[];w&&k.push.apply(k,o([w])),k.push(E),x&&k.push.apply(k,o([x])),typeof c=="string"?l.splice.apply(l,[u,1].concat(k)):c.content=k}}else c.content&&o(c.content)}return l}o(r.tokens)}}})}(e)}N1.displayName="php";N1.aliases=[];function N1(e){e.register(Ks),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}LT.displayName="python";LT.aliases=["py"];function LT(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}kI.displayName="r";kI.aliases=[];function kI(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}P1.displayName="ruby";P1.aliases=["rb"];function P1(e){e.register(Dr),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}CI.displayName="rust";CI.aliases=[];function CI(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}AI.displayName="sass";AI.aliases=[];function AI(e){e.register(R0),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}_I.displayName="scss";_I.aliases=[];function _I(e){e.register(R0),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}VO.displayName="sql";VO.aliases=[];function VO(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}RI.displayName="swift";RI.aliases=[];function RI(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}WO.displayName="typescript";WO.aliases=["ts"];function WO(e){e.register(Xs),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}$T.displayName="basic";$T.aliases=[];function $T(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}FT.displayName="vbnet";FT.aliases=[];function FT(e){e.register($T),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const xte=/[#.]/g;function not(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function dot(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function fot(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Cte(e){return fot(e)||i0e(e)}const Zb=String.fromCharCode,hot=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function pot(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let u=(o?o.line:0)||1,c=(o?o.column:0)||1,f=g(),h;for(i--;++i<=e.length;)if(h===10&&(c=(l?l[a]:0)||1),h=e.charCodeAt(i),h===38){const w=e.charCodeAt(i+1);if(w===9||w===10||w===12||w===32||w===38||w===60||Number.isNaN(w)||n&&w===n){s+=Zb(h),c++;continue}const E=i+1;let x=E,k=E,C;if(w===35){k=++x;const V=e.charCodeAt(k);V===88||V===120?(C="hexadecimal",k=++x):C="decimal"}else C="named";let R="",A="",D="";const B=C==="named"?Cte:C==="decimal"?i0e:dot;for(k--;++k<=e.length;){const V=e.charCodeAt(k);if(!B(V))break;D+=Zb(V),C==="named"&&cot.includes(D)&&(R=D,A=cx(D))}let L=e.charCodeAt(k)===59;if(L){k++;const V=C==="named"?cx(D):!1;V&&(R=D,A=V)}let F=1+k-E,W="";if(!(!L&&t.nonTerminated===!1))if(!D)C!=="named"&&b(4,F);else if(C==="named"){if(L&&!A)b(5,1);else if(R!==D&&(k=x+R.length,F=1+k-x,L=!1),!L){const V=R?1:3;if(t.attribute){const Z=e.charCodeAt(k);Z===61?(b(V,F),A=""):Cte(Z)?A="":b(V,F)}else b(V,F)}W=A}else{L||b(2,F);let V=Number.parseInt(D,C==="hexadecimal"?16:10);if(mot(V))b(7,F),W=Zb(65533);else if(V in kte)b(6,F),W=kte[V];else{let Z="";got(V)&&b(6,F),V>65535&&(V-=65536,Z+=Zb(V>>>10|55296),V=56320|V&1023),W=Z+Zb(V)}}if(W){S(),f=g(),i=k-1,c+=k-E+1,r.push(W);const V=g();V.offset++,t.reference&&t.reference.call(t.referenceContext,W,{start:f,end:V},e.slice(E-1,k)),f=V}else D=e.slice(E-1,k),s+=D,c+=D.length,i=k-1}else h===10&&(u++,a++,c=0),Number.isNaN(h)?S():(s+=Zb(h),c++);return r.join("");function g(){return{line:u,column:c,offset:i+((o?o.offset:0)||0)}}function b(w,E){let x;t.warning&&(x=g(),x.column+=E,x.offset+=E,t.warning.call(t.warningContext,hot[w],x,w))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:f,end:g()}),s="")}}function mot(e){return e>=55296&&e<=57343||e>1114111}function got(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var bot=0,RA={},bs={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++bot}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(bs.util.type(t)){case"Object":if(i=bs.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=bs.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:RA,plaintext:RA,text:RA,txt:RA,extend:function(e,t){var n=bs.util.clone(bs.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||bs.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,bs.languages.DFS(bs.languages,function(u,c){c===l&&u!=e&&(this[u]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=bs.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=bs.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(bs.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=bs.tokenize(r.code,r.grammar),bs.hooks.run("after-tokenize",r),G2.stringify(bs.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new yot;return q4(i,i.head,e),a0e(e,i,t,i.head,0),Oot(i)},hooks:{all:{},add:function(e,t){var n=bs.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=bs.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:G2};function G2(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function Ate(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function a0e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);E+=w.value.length,w=w.next){var x=w.value;if(t.length>e.length)return;if(!(x instanceof G2)){var k=1,C;if(h){if(C=Ate(S,E,e,f),!C||C.index>=e.length)break;var B=C.index,R=C.index+C[0].length,A=E;for(A+=w.value.length;B>=A;)w=w.next,A+=w.value.length;if(A-=w.value.length,E=A,w.value instanceof G2)continue;for(var D=w;D!==t.tail&&(Aa.reach&&(a.reach=V);var Z=w.prev;F&&(Z=q4(t,Z,F),E+=F.length),vot(t,Z,k);var Q=new G2(s,c?bs.tokenize(L,c):L,g,L);if(w=q4(t,Z,Q),W&&q4(t,w,W),k>1){var H={cause:s+","+l,reach:V};a0e(e,t,n,w.prev,E,H),a&&H.reach>a.reach&&(a.reach=H.reach)}}}}}}function yot(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function q4(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function vot(e,t,n){for(var r=t.next,i=0;i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}cU.displayName="abnf";cU.aliases=[];function cU(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}dU.displayName="actionscript";dU.aliases=[];function dU(e){e.register(Xs),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}fU.displayName="ada";fU.aliases=[];function fU(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}hU.displayName="agda";hU.aliases=[];function hU(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}pU.displayName="al";pU.aliases=[];function pU(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}mU.displayName="antlr4";mU.aliases=["g4"];function mU(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}gU.displayName="apacheconf";gU.aliases=[];function gU(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}bU.displayName="apex";bU.aliases=[];function bU(e){e.register(Dr),e.register(VO),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}yU.displayName="apl";yU.aliases=[];function yU(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}vU.displayName="applescript";vU.aliases=[];function vU(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}OU.displayName="aql";OU.aliases=[];function OU(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}SU.displayName="arff";SU.aliases=[];function SU(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}EU.displayName="armasm";EU.aliases=["arm-asm"];function EU(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|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|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}wU.displayName="arturo";wU.aliases=["art"];function wU(e){(function(t){var n=function(r,i){return{pattern:RegExp(/\{!/.source+"(?:"+(i||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}xU.displayName="asciidoc";xU.aliases=["adoc"];function xU(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}kU.displayName="asm6502";kU.aliases=[];function kU(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}CU.displayName="asmatmel";CU.aliases=[];function CU(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?: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|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|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|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}AU.displayName="autohotkey";AU.aliases=[];function AU(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}_U.displayName="autoit";_U.aliases=[];function _U(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}RU.displayName="avisynth";RU.aliases=["avs"];function RU(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(f,h){return c[+h]})}function r(u,c,f){return RegExp(n(u,c),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}IU.displayName="avro-idl";IU.aliases=["avdl"];function IU(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}DU.displayName="awk";DU.aliases=["gawk"];function DU(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}NU.displayName="batch";NU.aliases=[];function NU(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}PU.displayName="bbcode";PU.aliases=["shortcode"];function PU(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}MU.displayName="bbj";MU.aliases=[];function MU(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}LU.displayName="bicep";LU.aliases=[];function LU(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}$U.displayName="birb";$U.aliases=[];function $U(e){e.register(Dr),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}FU.displayName="bison";FU.aliases=[];function FU(e){e.register(Nd),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}BU.displayName="bnf";BU.aliases=["rbnf"];function BU(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}UU.displayName="bqn";UU.aliases=[];function UU(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}zU.displayName="brainfuck";zU.aliases=[];function zU(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}jU.displayName="brightscript";jU.aliases=[];function jU(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}HU.displayName="bro";HU.aliases=[];function HU(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}VU.displayName="bsl";VU.aliases=["oscript"];function VU(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}WU.displayName="cfscript";WU.aliases=["cfc"];function WU(e){e.register(Dr),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}QU.displayName="chaiscript";QU.aliases=[];function QU(e){e.register(Dr),e.register(R1),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}qU.displayName="cil";qU.aliases=[];function qU(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}GU.displayName="cilkc";GU.aliases=["cilk-c"];function GU(e){e.register(Nd),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}YU.displayName="cilkcpp";YU.aliases=["cilk","cilk-cpp"];function YU(e){e.register(R1),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}ZU.displayName="clojure";ZU.aliases=[];function ZU(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}XU.displayName="cmake";XU.aliases=[];function XU(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}KU.displayName="cobol";KU.aliases=[];function KU(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}JU.displayName="coffeescript";JU.aliases=["coffee"];function JU(e){e.register(Xs),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}ez.displayName="concurnas";ez.aliases=["conc"];function ez(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}tz.displayName="csp";tz.aliases=[];function tz(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}nz.displayName="cooklang";nz.aliases=[];function nz(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}rz.displayName="coq";rz.aliases=[];function rz(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}iz.displayName="crystal";iz.aliases=[];function iz(e){e.register(P1),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}az.displayName="css-extras";az.aliases=[];function az(e){e.register(R0),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}sz.displayName="csv";sz.aliases=[];function sz(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}oz.displayName="cue";oz.aliases=[];function oz(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source,i="(?:"+r.replace(//g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+i+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}lz.displayName="cypher";lz.aliases=[];function lz(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}uz.displayName="d";uz.aliases=[];function uz(e){e.register(Dr),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}cz.displayName="dart";cz.aliases=[];function cz(e){e.register(Dr),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}dz.displayName="dataweave";dz.aliases=[];function dz(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}fz.displayName="dax";fz.aliases=[];function fz(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}hz.displayName="dhall";hz.aliases=[];function hz(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}pz.displayName="django";pz.aliases=["jinja2"];function pz(e){e.register(Ks),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"django",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(i){r.buildPlaceholders(i,"jinja2",n)}),t.hooks.add("after-tokenize",function(i){r.tokenizePlaceholders(i,"jinja2")})}(e)}mz.displayName="dns-zone-file";mz.aliases=["dns-zone"];function mz(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}gz.displayName="docker";gz.aliases=["dockerfile"];function gz(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(u,c)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}bz.displayName="dot";bz.aliases=["gv"];function bz(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}yz.displayName="ebnf";yz.aliases=[];function yz(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}vz.displayName="editorconfig";vz.aliases=[];function vz(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}Oz.displayName="eiffel";Oz.aliases=[];function Oz(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Sz.displayName="ejs";Sz.aliases=["eta"];function Sz(e){e.register(Xs),e.register(Ks),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}Ez.displayName="elixir";Ez.aliases=[];function Ez(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}wz.displayName="elm";wz.aliases=[];function wz(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}xz.displayName="etlua";xz.aliases=[];function xz(e){e.register(PT),e.register(Ks),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}Tz.displayName="erb";Tz.aliases=[];function Tz(e){e.register(Ks),e.register(P1),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}kz.displayName="erlang";kz.aliases=[];function kz(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}Cz.displayName="excel-formula";Cz.aliases=["xls","xlsx"];function Cz(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}Az.displayName="fsharp";Az.aliases=[];function Az(e){e.register(Dr),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}_z.displayName="factor";_z.aliases=[];function _z(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(u){i[u].pattern=s(o[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(l),t.languages.factor=i})(e)}Rz.displayName="false";Rz.aliases=[];function Rz(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}Dz.displayName="flow";Dz.aliases=[];function Dz(e){e.register(Xs),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}Nz.displayName="fortran";Nz.aliases=[];function Nz(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Pz.displayName="ftl";Pz.aliases=[];function Pz(e){e.register(Ks),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Mz.displayName="gml";Mz.aliases=["gamemakerlanguage"];function Mz(e){e.register(Dr),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}Lz.displayName="gap";Lz.aliases=[];function Lz(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}$z.displayName="gcode";$z.aliases=[];function $z(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Fz.displayName="gdscript";Fz.aliases=[];function Fz(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}Bz.displayName="gedcom";Bz.aliases=[];function Bz(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}Uz.displayName="gettext";Uz.aliases=["po"];function Uz(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}zz.displayName="gherkin";zz.aliases=[];function zz(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}jz.displayName="git";jz.aliases=[];function jz(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}Hz.displayName="glsl";Hz.aliases=[];function Hz(e){e.register(Nd),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}Vz.displayName="gn";Vz.aliases=["gni"];function Vz(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}Wz.displayName="linker-script";Wz.aliases=["ld"];function Wz(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}Qz.displayName="go-module";Qz.aliases=["go-mod"];function Qz(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}qz.displayName="gradle";qz.aliases=[];function qz(e){e.register(Dr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}Gz.displayName="graphql";Gz.aliases=[];function Gz(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),i=0;function a(w){return r[i+w]}function s(w,E){E=E||0;for(var x=0;x0)){var g=o(/^\{$/,/^\}$/);if(g===-1)continue;for(var b=i;b=0&&l(S,"variable-input")}}}}})}Yz.displayName="groovy";Yz.aliases=[];function Yz(e){e.register(Dr),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}Zz.displayName="textile";Zz.aliases=[];function Zz(e){e.register(Rs),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,h){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),h||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=o.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=o.table.inside;c.inline=l.inline,c.link=l.link,c.image=l.image,c.footnote=l.footnote,c.acronym=l.acronym,c.mark=l.mark}(e)}Xz.displayName="haml";Xz.aliases=[];function Xz(e){e.register(P1),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}BT.displayName="haskell";BT.aliases=["hs"];function BT(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}Jz.displayName="haxe";Jz.aliases=[];function Jz(e){e.register(Dr),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}ej.displayName="hcl";ej.aliases=[];function ej(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}tj.displayName="hlsl";tj.aliases=[];function tj(e){e.register(Nd),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}nj.displayName="hoon";nj.aliases=[];function nj(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}rj.displayName="hpkp";rj.aliases=[];function rj(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}ij.displayName="hsts";ij.aliases=[];function ij(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}aj.displayName="uri";aj.aliases=["url"];function aj(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}sj.displayName="http";sj.aliases=[];function sj(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(c){var f=c.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+c+"|"+h+")"}var o;for(var l in i)if(i[l]){o=o||{};var u=a[l]?s(l):l;o[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}o&&t.languages.insertBefore("http","header",o)})(e)}oj.displayName="ichigojam";oj.aliases=[];function oj(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}lj.displayName="icon";lj.aliases=[];function lj(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}uj.displayName="icu-message-format";uj.aliases=[];function uj(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}cj.displayName="idris";cj.aliases=["idr"];function cj(e){e.register(BT),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}dj.displayName="ignore";dj.aliases=["gitignore","hgignore","npmignore"];function dj(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}fj.displayName="inform7";fj.aliases=[];function fj(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}hj.displayName="io";hj.aliases=[];function hj(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}qO.displayName="javadoclike";qO.aliases=[];function qO(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var u=l[o];if(!u){var c={};c[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",c),u=l[o]}if(u instanceof RegExp&&(u=l[o]={pattern:u}),Array.isArray(u))for(var f=0,h=u.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}gj.displayName="javadoc";gj.aliases=[];function gj(e){e.register(D1),e.register(qO),e.register(Rs),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}bj.displayName="javastacktrace";bj.aliases=[];function bj(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}yj.displayName="jexl";yj.aliases=[];function yj(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}vj.displayName="jolie";vj.aliases=[];function vj(e){e.register(Dr),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}Oj.displayName="jq";Oj.aliases=[];function Oj(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}Sj.displayName="js-templates";Sj.aliases=[];function Sj(e){e.register(Xs),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(b,S){if(t.languages[b])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(b,S){return"___"+S.toUpperCase()+"_"+b+"___"}function u(b,S,w){var E={code:b,grammar:S,language:w};return t.hooks.run("before-tokenize",E),E.tokens=t.tokenize(E.code,E.grammar),t.hooks.run("after-tokenize",E),E.tokens}function c(b){var S={};S["interpolation-punctuation"]=a;var w=t.tokenize(b,S);if(w.length===3){var E=[1,1];E.push.apply(E,u(w[1],t.languages.javascript,"javascript")),w.splice.apply(w,E)}return new t.Token("interpolation",w,i.alias,b)}function f(b,S,w){var E=t.tokenize(b,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},C=E.map(function(B){if(typeof B=="string")return B;for(var L=B.content,F;b.indexOf(F=l(x++,w))!==-1;);return k[F]=L,F}).join(""),R=u(C,S,w),A=Object.keys(k);x=0;function D(B){for(var L=0;L=A.length)return;var F=B[L];if(typeof F=="string"||typeof F.content=="string"){var W=A[x],V=typeof F=="string"?F:F.content,Z=V.indexOf(W);if(Z!==-1){++x;var Q=V.substring(0,Z),H=c(k[W]),J=V.substring(Z+W.length),K=[];if(Q&&K.push(Q),K.push(H),J){var X=[J];D(X),K.push.apply(K,X)}typeof F=="string"?(B.splice.apply(B,[L,1].concat(K)),L+=K.length-1):F.content=K}}else{var te=F.content;Array.isArray(te)?D(te):D([te])}}}return D(R),new t.Token(w,R,"language-"+w,b)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in h))return;function S(w){for(var E=0,x=w.length;E\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}wj.displayName="n4js";wj.aliases=["n4jsd"];function wj(e){e.register(Xs),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}xj.displayName="js-extras";xj.aliases=[];function xj(e){e.register(Xs),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(l,u){return RegExp(l.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}Aj.displayName="julia";Aj.aliases=[];function Aj(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}_j.displayName="keepalived";_j.aliases=[];function _j(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}Rj.displayName="keyman";Rj.aliases=[];function Rj(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}Ij.displayName="kumir";Ij.aliases=["kum"];function Ij(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}Dj.displayName="kusto";Dj.aliases=[];function Dj(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}Nj.displayName="latex";Nj.aliases=["context","tex"];function Nj(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}Pj.displayName="latte";Pj.aliases=[];function Pj(e){e.register(Dr),e.register(Ks),e.register(N1),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var i=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",i),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}UT.displayName="scheme";UT.aliases=[];function UT(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}Mj.displayName="lilypond";Mj.aliases=["ly"];function Mj(e){e.register(UT),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}Lj.displayName="liquid";Lj.aliases=[];function Lj(e){e.register(Ks),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}$j.displayName="lisp";$j.aliases=["elisp","emacs","emacs-lisp"];function $j(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:c},h="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(s+u+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:f},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=g,c.defun.inside.arguments=t.util.clone(g),c.defun.inside.arguments.inside.sublist=g,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}Fj.displayName="livescript";Fj.aliases=[];function Fj(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}Bj.displayName="llvm";Bj.aliases=[];function Bj(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}Uj.displayName="log";Uj.aliases=[];function Uj(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}zj.displayName="lolcode";zj.aliases=[];function zj(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}jj.displayName="magma";jj.aliases=[];function jj(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}II.displayName="mata";II.aliases=[];function II(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}Hj.displayName="matlab";Hj.aliases=[];function Hj(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}Vj.displayName="maxscript";Vj.aliases=[];function Vj(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}Wj.displayName="mel";Wj.aliases=[];function Wj(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}Qj.displayName="mermaid";Qj.aliases=[];function Qj(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}qj.displayName="metafont";qj.aliases=[];function qj(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}Gj.displayName="mizar";Gj.aliases=[];function Gj(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}Yj.displayName="mongodb";Yj.aliases=[];function Yj(e){e.register(Xs),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}Zj.displayName="monkey";Zj.aliases=[];function Zj(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}Xj.displayName="moonscript";Xj.aliases=["moon"];function Xj(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}Kj.displayName="n1ql";Kj.aliases=[];function Kj(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}Jj.displayName="nand2tetris-hdl";Jj.aliases=[];function Jj(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}eH.displayName="naniscript";eH.aliases=["nani"];function eH(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=a(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(s){for(var o="[]{}",l=[],u=0;u=&|$!]/}}nH.displayName="neon";nH.aliases=[];function nH(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}rH.displayName="nevod";rH.aliases=[];function rH(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}iH.displayName="nginx";iH.aliases=[];function iH(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}aH.displayName="nim";aH.aliases=[];function aH(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}sH.displayName="nix";sH.aliases=[];function sH(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}oH.displayName="nsis";oH.aliases=[];function oH(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}lH.displayName="ocaml";lH.aliases=[];function lH(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}uH.displayName="odin";uH.aliases=[];function uH(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}cH.displayName="opencl";cH.aliases=[];function cH(e){e.register(Nd),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}dH.displayName="openqasm";dH.aliases=["qasm"];function dH(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}fH.displayName="oz";fH.aliases=[];function fH(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}hH.displayName="parigp";hH.aliases=[];function hH(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}pH.displayName="parser";pH.aliases=[];function pH(e){e.register(Rs),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}mH.displayName="pascal";mH.aliases=["objectpascal"];function mH(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}gH.displayName="pascaligo";gH.aliases=[];function gH(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}bH.displayName="psl";bH.aliases=[];function bH(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}yH.displayName="pcaxis";yH.aliases=["px"];function yH(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}vH.displayName="peoplecode";vH.aliases=["pcode"];function vH(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}OH.displayName="phpdoc";OH.aliases=[];function OH(e){e.register(qO),e.register(N1),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}SH.displayName="php-extras";SH.aliases=[];function SH(e){e.register(N1),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}EH.displayName="plant-uml";EH.aliases=["plantuml"];function EH(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+c+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}wH.displayName="plsql";wH.aliases=[];function wH(e){e.register(VO),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}xH.displayName="powerquery";xH.aliases=["mscript","pq"];function xH(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}TH.displayName="powershell";TH.aliases=[];function TH(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}kH.displayName="processing";kH.aliases=[];function kH(e){e.register(Dr),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}CH.displayName="prolog";CH.aliases=[];function CH(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}AH.displayName="promql";AH.aliases=[];function AH(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}_H.displayName="properties";_H.aliases=[];function _H(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}RH.displayName="protobuf";RH.aliases=[];function RH(e){e.register(Dr),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}IH.displayName="stylus";IH.aliases=[];function IH(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}DH.displayName="twig";DH.aliases=[];function DH(e){e.register(Ks),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}NH.displayName="pug";NH.aliases=[];function NH(e){e.register(Xs),e.register(Rs),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}PH.displayName="puppet";PH.aliases=[];function PH(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}MH.displayName="pure";MH.aliases=[];function MH(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}LH.displayName="purebasic";LH.aliases=["pbfasm"];function LH(e){e.register(Dr),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}$H.displayName="purescript";$H.aliases=["purs"];function $H(e){e.register(BT),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}FH.displayName="qsharp";FH.aliases=["qs"];function FH(e){e.register(Dr),function(t){function n(g,b){return g.replace(/<<(\d+)>>/g,function(S,w){return"(?:"+b[+w]+")"})}function r(g,b,S){return RegExp(n(g,b),S||"")}function i(g,b){for(var S=0;S>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:o,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}BH.displayName="q";BH.aliases=[];function BH(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}UH.displayName="qml";UH.aliases=[];function UH(e){e.register(Xs),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}zH.displayName="qore";zH.aliases=[];function zH(e){e.register(Dr),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}jH.displayName="racket";jH.aliases=["rkt"];function jH(e){e.register(UT),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}HH.displayName="cshtml";HH.aliases=["razor"];function HH(e){e.register(I1),e.register(Rs),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var C=0;C/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,h=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+h+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+h+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+h+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(u,c)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},l=function(u){for(var c=[],f=0;f0&&c[c.length-1].tagName===o(h.content[0].content[1])&&c.pop():h.content[h.content.length-1].content==="/>"||c.push({tagName:o(h.content[0].content[1]),openedBraces:0}):c.length>0&&h.type==="punctuation"&&h.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?c[c.length-1].openedBraces--:g=!0),(g||typeof h=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var b=o(h);f0&&(typeof u[f-1]=="string"||u[f-1].type==="plain-text")&&(b=o(u[f-1])+b,u.splice(f-1,1),f--),u[f]=new t.Token("plain-text",b,null,b)}h.content&&typeof h.content!="string"&&l(h.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}VH.displayName="tsx";VH.aliases=[];function VH(e){e.register(DI),e.register(WO),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}WH.displayName="reason";WH.aliases=[];function WH(e){e.register(Dr),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}QH.displayName="rego";QH.aliases=[];function QH(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}qH.displayName="renpy";qH.aliases=["rpy"];function qH(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}GH.displayName="rescript";GH.aliases=["res"];function GH(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}YH.displayName="rest";YH.aliases=[];function YH(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}ZH.displayName="rip";ZH.aliases=[];function ZH(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}XH.displayName="roboconf";XH.aliases=[];function XH(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}KH.displayName="robotframework";KH.aliases=["robot"];function KH(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(l,u){var c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in u)c[f]=u[f];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:c}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}JH.displayName="sas";JH.aliases=[];function JH(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},w={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},E=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return E}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return E}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:f,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:k,"submit-statement":w,"global-statements":S,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:k,"submit-statement":w,"global-statements":S,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:o,keyword:k,function:f,format:g,altformat:b,"global-statements":S,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:h},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":x,comment:l,function:f,format:g,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}eV.displayName="shell-session";eV.aliases=["sh-session","shellsession"];function eV(e){e.register(NT),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}tV.displayName="smali";tV.aliases=[];function tV(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}nV.displayName="smalltalk";nV.aliases=[];function nV(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}rV.displayName="smarty";rV.aliases=[];function rV(e){e.register(Ks),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}iV.displayName="sml";iV.aliases=["smlnj"];function iV(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}aV.displayName="solidity";aV.aliases=["sol"];function aV(e){e.register(Dr),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}sV.displayName="solution-file";sV.aliases=["sln"];function sV(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}oV.displayName="soy";oV.aliases=[];function oV(e){e.register(Ks),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(u){return u===o&&(l=!1),l?!1:(u===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}NI.displayName="turtle";NI.aliases=["trig"];function NI(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}lV.displayName="sparql";lV.aliases=["rq"];function lV(e){e.register(NI),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}uV.displayName="splunk-spl";uV.aliases=[];function uV(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}cV.displayName="sqf";cV.aliases=[];function cV(e){e.register(Dr),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}dV.displayName="squirrel";dV.aliases=[];function dV(e){e.register(Dr),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}fV.displayName="stan";fV.aliases=[];function fV(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}hV.displayName="stata";hV.aliases=[];function hV(e){e.register(D1),e.register(II),e.register(LT),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}pV.displayName="iecst";pV.aliases=[];function pV(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}mV.displayName="supercollider";mV.aliases=["sclang"];function mV(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}gV.displayName="systemd";gV.aliases=[];function gV(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}zT.displayName="t4-templating";zT.aliases=[];function zT(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}bV.displayName="t4-cs";bV.aliases=["t4"];function bV(e){e.register(I1),e.register(zT),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}yV.displayName="t4-vb";yV.aliases=[];function yV(e){e.register(zT),e.register(FT),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}vV.displayName="tap";vV.aliases=[];function vV(e){e.register(MT),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}OV.displayName="tcl";OV.aliases=[];function OV(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}SV.displayName="tt2";SV.aliases=[];function SV(e){e.register(Dr),e.register(Ks),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}EV.displayName="toml";EV.aliases=[];function EV(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}wV.displayName="tremor";wV.aliases=["trickle","troy"];function wV(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}xV.displayName="typoscript";xV.aliases=["tsconfig"];function xV(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}TV.displayName="unrealscript";TV.aliases=["uc","uscript"];function TV(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}kV.displayName="uorazor";kV.aliases=[];function kV(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}CV.displayName="v";CV.aliases=[];function CV(e){e.register(Dr),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}AV.displayName="vala";AV.aliases=[];function AV(e){e.register(Dr),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}_V.displayName="velocity";_V.aliases=[];function _V(e){e.register(Rs),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}RV.displayName="verilog";RV.aliases=[];function RV(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}IV.displayName="vhdl";IV.aliases=[];function IV(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}DV.displayName="vim";DV.aliases=[];function DV(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}NV.displayName="visual-basic";NV.aliases=["vb","vba"];function NV(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}PV.displayName="warpscript";PV.aliases=[];function PV(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}MV.displayName="wasm";MV.aliases=[];function MV(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}LV.displayName="web-idl";LV.aliases=["webidl"];function LV(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}$V.displayName="wgsl";$V.aliases=[];function $V(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}FV.displayName="wiki";FV.aliases=[];function FV(e){e.register(Rs),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}BV.displayName="wolfram";BV.aliases=["mathematica","nb","wl"];function BV(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}UV.displayName="wren";UV.aliases=[];function UV(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}zV.displayName="xeora";zV.aliases=["xeoracube"];function zV(e){e.register(Rs),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}jV.displayName="xml-doc";jV.aliases=[];function jV(e){e.register(Rs),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}HV.displayName="xojo";HV.aliases=[];function HV(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}VV.displayName="xquery";VV.aliases=[];function VV(e){e.register(Rs),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var u=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(u=n(i[s-1])+u,i.splice(s-1,1),s--),/^\s+$/.test(u)?i[s]=u:i[s]=new t.Token("plain-text",u,null,u)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}WV.displayName="yang";WV.aliases=[];function WV(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}QV.displayName="zig";QV.aliases=[];function QV(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}oe.register(Rs);oe.register(R0);oe.register(Dr);oe.register(vI);oe.register(Xs);oe.register(uU);oe.register(cU);oe.register(dU);oe.register(fU);oe.register(hU);oe.register(pU);oe.register(mU);oe.register(gU);oe.register(VO);oe.register(bU);oe.register(yU);oe.register(vU);oe.register(OU);oe.register(Nd);oe.register(R1);oe.register(mI);oe.register(SU);oe.register(EU);oe.register(NT);oe.register(MT);oe.register(wI);oe.register(wU);oe.register(xU);oe.register(I1);oe.register(TU);oe.register(kU);oe.register(CU);oe.register(AU);oe.register(_U);oe.register(RU);oe.register(IU);oe.register(DU);oe.register($T);oe.register(NU);oe.register(PU);oe.register(MU);oe.register(LU);oe.register($U);oe.register(FU);oe.register(BU);oe.register(UU);oe.register(zU);oe.register(jU);oe.register(HU);oe.register(VU);oe.register(WU);oe.register(QU);oe.register(qU);oe.register(GU);oe.register(YU);oe.register(ZU);oe.register(XU);oe.register(KU);oe.register(JU);oe.register(ez);oe.register(tz);oe.register(nz);oe.register(rz);oe.register(P1);oe.register(iz);oe.register(az);oe.register(sz);oe.register(oz);oe.register(lz);oe.register(uz);oe.register(cz);oe.register(dz);oe.register(fz);oe.register(hz);oe.register(gI);oe.register(Ks);oe.register(pz);oe.register(mz);oe.register(gz);oe.register(bz);oe.register(yz);oe.register(vz);oe.register(Oz);oe.register(Sz);oe.register(Ez);oe.register(wz);oe.register(PT);oe.register(xz);oe.register(Tz);oe.register(kz);oe.register(Cz);oe.register(Az);oe.register(_z);oe.register(Rz);oe.register(Iz);oe.register(Dz);oe.register(Nz);oe.register(Pz);oe.register(Mz);oe.register(Lz);oe.register($z);oe.register(Fz);oe.register(Bz);oe.register(Uz);oe.register(zz);oe.register(jz);oe.register(Hz);oe.register(Vz);oe.register(Wz);oe.register(bI);oe.register(Qz);oe.register(qz);oe.register(Gz);oe.register(Yz);oe.register(SI);oe.register(_I);oe.register(Zz);oe.register(Xz);oe.register(Kz);oe.register(BT);oe.register(Jz);oe.register(ej);oe.register(tj);oe.register(nj);oe.register(rj);oe.register(ij);oe.register(HO);oe.register(aj);oe.register(sj);oe.register(oj);oe.register(lj);oe.register(uj);oe.register(cj);oe.register(dj);oe.register(fj);oe.register(yI);oe.register(hj);oe.register(pj);oe.register(D1);oe.register(N1);oe.register(qO);oe.register(mj);oe.register(gj);oe.register(bj);oe.register(yj);oe.register(vj);oe.register(Oj);oe.register(Sj);oe.register(WO);oe.register(Ej);oe.register(wj);oe.register(xj);oe.register(Tj);oe.register(kj);oe.register(Cj);oe.register(Aj);oe.register(_j);oe.register(Rj);oe.register(OI);oe.register(Ij);oe.register(Dj);oe.register(Nj);oe.register(Pj);oe.register(UT);oe.register(Mj);oe.register(Lj);oe.register($j);oe.register(Fj);oe.register(Bj);oe.register(Uj);oe.register(zj);oe.register(jj);oe.register(EI);oe.register(II);oe.register(Hj);oe.register(Vj);oe.register(Wj);oe.register(Qj);oe.register(qj);oe.register(Gj);oe.register(Yj);oe.register(Zj);oe.register(Xj);oe.register(Kj);oe.register(Jj);oe.register(eH);oe.register(tH);oe.register(nH);oe.register(rH);oe.register(iH);oe.register(aH);oe.register(sH);oe.register(oH);oe.register(xI);oe.register(lH);oe.register(uH);oe.register(cH);oe.register(dH);oe.register(fH);oe.register(hH);oe.register(pH);oe.register(mH);oe.register(gH);oe.register(bH);oe.register(yH);oe.register(vH);oe.register(TI);oe.register(OH);oe.register(SH);oe.register(EH);oe.register(wH);oe.register(xH);oe.register(TH);oe.register(kH);oe.register(CH);oe.register(AH);oe.register(_H);oe.register(RH);oe.register(IH);oe.register(DH);oe.register(NH);oe.register(PH);oe.register(MH);oe.register(LH);oe.register($H);oe.register(LT);oe.register(FH);oe.register(BH);oe.register(UH);oe.register(zH);oe.register(kI);oe.register(jH);oe.register(HH);oe.register(DI);oe.register(VH);oe.register(WH);oe.register(QH);oe.register(qH);oe.register(GH);oe.register(YH);oe.register(ZH);oe.register(XH);oe.register(KH);oe.register(CI);oe.register(JH);oe.register(AI);oe.register(eV);oe.register(tV);oe.register(nV);oe.register(rV);oe.register(iV);oe.register(aV);oe.register(sV);oe.register(oV);oe.register(NI);oe.register(lV);oe.register(uV);oe.register(cV);oe.register(dV);oe.register(fV);oe.register(hV);oe.register(pV);oe.register(mV);oe.register(RI);oe.register(gV);oe.register(zT);oe.register(bV);oe.register(FT);oe.register(yV);oe.register(vV);oe.register(OV);oe.register(SV);oe.register(EV);oe.register(wV);oe.register(xV);oe.register(TV);oe.register(kV);oe.register(CV);oe.register(AV);oe.register(_V);oe.register(RV);oe.register(IV);oe.register(DV);oe.register(NV);oe.register(PV);oe.register(MV);oe.register(LV);oe.register($V);oe.register(FV);oe.register(BV);oe.register(UV);oe.register(zV);oe.register(jV);oe.register(HV);oe.register(VV);oe.register(WV);oe.register(QV);function NL(){NL=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),Y3(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var u=s[l];if(typeof u=="number")o[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=s[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},NL.apply(this,arguments)}function Y3(e,t){return Y3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Y3(e,t)}function _te(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Aot=function(e){return function(t){return t===void 0&&(t={}),function(r,i){if(i&&!r.registered(i))throw new Error('The default language "'+i+'" is not registered with refractor.')}(e,t.defaultLanguage),function(r){Yo(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,c,f=function(R){for(var A,D=$P(R.properties.className);!(A=D()).done;){var B=A.value;if(B.slice(0,9)==="language-")return B.slice(9).toLowerCase()}return null}(r);if(!f&&t.defaultLanguage&&r.properties.className.push("language-"+(f=t.defaultLanguage)),r.properties.className.push("code-highlight"),f)try{var h,g;g=(h=f)!=null&&h.includes("diff-")?f.split("-")[1]:f,u=e.highlight(Ly(r),g),a.properties.className=(a.properties.className||[]).concat("language-"+g)}catch(R){if(!t.ignoreMissing||!/Unknown language/.test(R.message))throw R;u=r}else u=r;u.children=(c=1,function R(A){return A.reduce(function(D,B){if(B.type==="text"){var L=B.value,F=(L.match(/\n/g)||"").length;if(F===0)B.position={start:{line:c,column:1},end:{line:c,column:1}},D.push(B);else for(var W,V=L.split(` +`),Z=$P(V.entries());!(W=Z()).done;){var Q=W.value,H=Q[0],J=Q[1];D.push({type:"text",value:H===V.length-1?J:J+` +`,position:{start:{line:c+H,column:1},end:{line:c+H,column:1}}})}return c+=F,D}if(Object.prototype.hasOwnProperty.call(B,"children")){var K=c;return B.children=R(B.children),D.push(B),B.position={start:{line:K,column:1},end:{line:c,column:1}},D}return D.push(B),D},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var b,S=function(R){var A=/{([\d,-]+)}/,D=R.split(",").map(function(F){return F.trim()}).join();if(A.test(D)){var B=A.exec(D)[1],L=tot(B);return function(F){return L.includes(F+1)}}return function(){return!1}}(l),w=function(R){var A=NL(/showLineNumbers=(\d+)/i,{lines:1});if(A.test(R)){var D=A.exec(R);return Number(D.groups.lines)}return 1}(l),E=function(R){for(var A=new Array(R),D=0;D=B+1});L.children=F.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(W){return l.toLowerCase().includes(W)})||(L.properties.line=[(B+w).toString()],L.properties.className.push("line-number")),S(B)&&L.properties.className.push("highlight-line"),(f==="diff"||(R=f)!=null&&R.includes("diff-"))&&Ly(L).substring(0,1)==="-"?L.properties.className.push("deleted"):(f==="diff"||(A=f)!=null&&A.includes("diff-"))&&Ly(L).substring(0,1)==="+"&&L.properties.className.push("inserted")},C=$P(E.entries());!(b=C()).done;)k();E.length>0&&Ly(E[E.length-1]).trim()===""&&E.pop(),r.children=E}}}},_ot=Aot(oe),G4={},PL={};function Rot(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),LL=jT(u0e,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),$L=jT(LL,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),Fot=jT($L,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),Mte={css1:l0e,css2:u0e,css3:LL,"selectors-3":LL,"selectors-4":$L,latest:$L,progressive:Fot};function LE(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function Bot(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function $E(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Uot={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},zot={'"':!0,"'":!0},BP={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},jot=6,UP="css-selector-parser parse error: ";function Hot(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:Mte[n];s.baseSyntax&&(s=jT(Mte[s.baseSyntax],s));var o=s.tag?[!0,!!Mot(s.tag).wildcard]:[!1,!1],l=o[0],u=o[1],c=!!s.ids,f=!!s.classNames,h=!!s.namespace,g=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(h&&!l)throw new Error("".concat(UP,"Namespaces cannot be enabled while tags are disabled."));var b=!!r,S=s.combinators?Rte(s.combinators):G4,w=s.attributes?[!0,s.attributes.operators?Rte(s.attributes.operators):G4,s.attributes.caseSensitivityModifiers?Iot(s.attributes.caseSensitivityModifiers):PL,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,G4,PL,!1],E=w[0],x=w[1],k=w[2],C=w[3],R=C||Object.keys(k).length>0,A=s.pseudoClasses?[!0,s.pseudoClasses.definitions?Dte(s.pseudoClasses.definitions):IA,s.pseudoClasses.unknown==="accept"]:[!1,IA,!1],D=A[0],B=A[1],L=A[2],F=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?Dte(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):IA,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,IA,!1],W=F[0],V=F[1],Z=F[2],Q=F[3],H=F[4],J="",K=J.length,X=0,te="",z=function(ve){return te===ve},Te=function(){return z("*")||LE(te)},be=function(ve){X=ve,te=J.charAt(X)},ee=function(){X++,te=J.charAt(X)},ye=function(){var ve=te;return X++,te=J.charAt(X),ve};function Oe(ve){var De=Math.min(K-1,X),$e=new Error("".concat(UP).concat(ve," Pos: ").concat(De,"."));throw $e.position=De,$e.name="ParserError",$e}function ie(ve,De){if(!ve)return Oe(De)}var _e=function(){ie(X=K},qe=function(ve){ie(X=2&&Oe("Identifiers cannot start with two hyphens with strict mode on."),$P[te]&&Oe("Identifiers cannot start with hyphens followed by digits.");X=2&&Oe("Identifiers cannot start with two hyphens with strict mode on."),BP[te]&&Oe("Identifiers cannot start with hyphens followed by digits.");X0)return(t.commaSeparated?FB:UB)(e)}else return String(e)}const Qot=[];function qot(e,t){return(t.properties.className||Qot).includes(e.name)}function Got(e,t){return t.properties.id===e.name}function Yot(e,t){return e.name===t.tagName}function Zot(e,t){return function(n,r){let i=Lte(n,"tag");const a=Lte(r??"*","range"),s=[];let o=-1;for(;++o=$te&&e.charCodeAt(t)<=elt;)u=u*10+(e.charCodeAt(t)-$te),t++;return t===l?null:u}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?Fte.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function Bte(e){return rlt(tlt(e))}const ilt=Bte.default||Bte,alt=KB("name",{handlers:{"any-link":slt,blank:olt,checked:llt,dir:ult,disabled:f0e,empty:clt,enabled:dlt,"first-child":flt,"first-of-type":hlt,has:plt,is:h0e,lang:glt,"last-child":blt,"last-of-type":ylt,not:vlt,"nth-child":Olt,"nth-last-child":Slt,"nth-last-of-type":Elt,"nth-of-type":wlt,"only-child":xlt,"only-of-type":Tlt,optional:klt,"read-only":Clt,"read-write":p0e,required:m0e,root:Alt,scope:_lt},invalid:mlt,unknown:Rlt});function slt(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&O1(t,"href")}function Kf(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function olt(e,t){return!g0e(t,n);function n(r){return r.type==="element"||r.type==="text"&&!upe(r)}}function llt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&O1(t,"checked")):t.tagName==="option"?O1(t,"selected"):!1}function ult(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function f0e(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&O1(t,"disabled")}function clt(e,t){return!g0e(t,n);function n(r){return r.type==="element"||r.type==="text"}}function dlt(e,t){return!f0e(e,t)}function flt(e,t,n,r,i){return Kf(i,e),i.elementIndex===0}function hlt(e,t,n,r,i){return Kf(i,e),i.typeIndex===0}function DI(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=ilt(n.a+"n+"+n.b),e._cachedFn=t}return t}function plt(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return QV(a,{type:"root",children:t.children}),a.results.length>0}function mlt(){}function h0e(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return QV(a,t),a.results[0]===t}function glt(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&Xot(i.language,y1(e.argument.value)).length>0}function blt(e,t,n,r,i){return Kf(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function ylt(e,t,n,r,i){return Kf(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function vlt(e,t,n,r,i){return!h0e(e,t,n,r,i)}function Olt(e,t,n,r,i){const a=DI(e);return Kf(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function Slt(e,t,n,r,i){const a=DI(e);return Kf(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function Elt(e,t,n,r,i){const a=DI(e);return Kf(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function wlt(e,t,n,r,i){const a=DI(e);return Kf(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function xlt(e,t,n,r,i){return Kf(i,e),i.elementCount===1}function Tlt(e,t,n,r,i){return Kf(i,e),i.typeCount===1}function klt(e,t){return!m0e(e,t)}function Clt(e,t,n,r,i){return!p0e(e,t,n,r,i)}function p0e(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!O1(t,"readOnly")&&!O1(t,"disabled"):!!i.editableOrEditingHost}function m0e(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&O1(t,"required")}function Alt(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function _lt(e,t,n,r,i){return i.scopeElements.includes(t)}function g0e(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";UP(a,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?UP(a,"descendant",o):o.combinator==="~"&&UP(a,"generalSibling",o)}return a}function G4(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Dlt}function Ute(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function b0e(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=Hot(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===a)),s=Plt(e,G4(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Nlt(e,s,n,a),o(),s}function Mlt(e,t,n){const r=Llt(e,t,n);return QV(r,t||void 0),r.results}function Llt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Bot(e),schema:n==="svg"?Id:A0,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const qV=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=qV(n.children))}),t),$lt=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Mlt(t,r);i&&i.length>0&&Yo(r,i,(a,s,o)=>{n(a,s,o)});return}Yo(r,(i,a,s)=>{n(i,a,s)})}}},Flt=$lt,Blt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Ult=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},y0e=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?y0e(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},zte=({value:e=""})=>{const t=Blt(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},jte=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},zlt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Yo(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=Ult(s.children,a);if(l){const u=zte(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=jte(o.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=y0e(s.children,a,"",n);if(o){const l=zte(o);Object.keys(l).length>0&&(i.properties=jte(i.properties,l,t))}}})}},jlt=zlt;var Hlt=function(t){return n=>{Yo(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=M({},r.properties,{"data-meta":String(r.data.meta)}))})}},Vlt=function(t){return n=>{Yo(n,r=>{r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta&&(r.data||(r.data={}),r.data.meta=r.properties.dataMeta,delete r.properties.dataMeta)})}};const Wlt=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Qlt=Object.hasOwnProperty;class qlt{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Glt(t,n===!0);const a=i;for(;Qlt.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Glt(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Wlt,"").replace(/ /g,"-"))}function v0e(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Ylt={},Hte=new qlt;function Zlt(e){const n=(e||Ylt).prefix||"";return function(r){Hte.reset(),Yo(r,"element",function(i){v0e(i)&&!i.properties.id&&(i.properties.id=n+Hte.slug(Ly(i)))})}}const Sp=function(e){if(e==null)return Jlt;if(typeof e=="string")return Klt(e);if(typeof e=="object")return Xlt(e);if(typeof e=="function")return GV(e);throw new Error("Expected function, string, or array as `test`")};function Xlt(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Yo(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return o=!0,!1;if(u===n)return o=!1,!1}return!o})}})}},iut=rut;var aut={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function sut(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var out=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=M({class:"anchor"},a.properties),a.children=[aut])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=qV(n.children);n.children.push(sut(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},lut=[Zlt,nut,iut];const S0e=hn.forwardRef((e,t)=>{var n,r=[Hlt,t0e,Vlt,[wot,{ignoreMissing:!0}],...lut,[Flt,{rewrite:out((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[jlt,{properties:"attr"}],...e.rehypePlugins||[]];return I.jsx(Hst,M({},e,{rehypePlugins:r,ref:t}))});function $L(e){return e.split(` +`&&ee()}function At(){for(;Uot[te];)ee()}function Je(ve){ve===void 0&&(ve=!1),At();for(var De=[xe(ve)];z(",");)ee(),At(),De.push(xe(ve));return{type:"Selector",rules:De}}function pe(){qe("["),At();var ve;if(z("|")){ie(h,"Namespaces are not enabled."),ee();var De=Xe();ie(De,"Expected attribute name."),ve={type:"Attribute",name:De,namespace:{type:"NoNamespace"}}}else if(z("*")){ie(h,"Namespaces are not enabled."),ie(g,"Wildcard namespace is not enabled."),ee(),qe("|");var $e=Xe();ie($e,"Expected attribute name."),ve={type:"Attribute",name:$e,namespace:{type:"WildcardNamespace"}}}else{var vt=Xe();if(ie(vt,"Expected attribute name."),ve={type:"Attribute",name:vt},z("|")){var Wt=X;if(ee(),LE(te)){ie(h,"Namespaces are not enabled.");var Kt=Xe();ie(Kt,"Expected attribute name."),ve={type:"Attribute",name:Kt,namespace:{type:"NamespaceName",name:vt}}}else be(Wt)}}if(ie(ve.name,"Expected attribute name."),At(),Ie()&&!a)return ve;if(z("]"))ee();else{if(ve.operator=st(x),ie(ve.operator,"Expected a valid attribute selector operator."),At(),_e(),zot[te])ve.value={type:"String",value:Ve(te)};else if(b&&z("$")){ee();var gt=Xe();ie(gt,"Expected substitute name."),ve.value={type:"Substitution",name:gt}}else{var Gt=Xe();ie(Gt,"Expected attribute value."),ve.value={type:"String",value:Gt}}if(At(),Ie()&&!a)return ve;if(!z("]")){var ut=Xe();if(ie(ut,"Expected end of attribute selector."),ve.caseSensitivityModifier=ut,ie(R,"Attribute case sensitivity modifiers are not enabled."),ie(C||k[ve.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),At(),Ie()&&!a)return ve}qe("]")}return ve}function le(){for(var ve="";BP[te];)ve+=ye();return ie(ve!=="","Formula parse error."),parseInt(ve)}var he=function(){return z("-")||z("+")||BP[te]};function je(){if(z("e")||z("o")){var ve=Xe();if(ve==="even")return At(),[2,0];if(ve==="odd")return At(),[2,1]}var De=null,$e=1;if(z("-")&&(ee(),$e=-1),he()&&(z("+")&&ee(),De=le(),!z("\\")&&!z("n")))return[0,De*$e];De===null&&(De=1),De*=$e;var vt;if(z("\\")?(ee(),$E(te)?vt=tt():vt=ye()):vt=ye(),ie(vt==="n",'Formula parse error: expected "n".'),At(),z("+")||z("-")){var Wt=z("+")?1:-1;return ee(),At(),[De,Wt*le()]}else return[De,0]}function Ze(ve,De,$e){var vt;if(z("(")){if(ee(),At(),b&&z("$")){ee();var Wt=Xe();ie(Wt,"Expected substitute name."),vt={type:"Substitution",name:Wt}}else if($e.type==="String")vt={type:"String",value:et()},ie(vt.value,"Expected ".concat(De," argument value."));else if($e.type==="Selector")vt=Je(!0);else if($e.type==="Formula"){var Kt=je(),gt=Kt[0],Gt=Kt[1];if(vt={type:"Formula",a:gt,b:Gt},$e.ofSelector&&(At(),z("o")||z("\\"))){var ut=Xe();ie(ut==="of","Formula of selector parse error."),At(),vt={type:"FormulaOfSelector",a:gt,b:Gt,selector:xe()}}}else return Oe("Invalid ".concat(De," signature."));if(At(),Ie()&&!a)return vt;qe(")")}else ie($e.optional,"Argument is required for ".concat(De,' "').concat(ve,'".'));return vt}function We(){if(z("*"))return ie(u,"Wildcard tag name is not enabled."),ee(),{type:"WildcardTag"};if(LE(te)){ie(l,"Tag names are not enabled.");var ve=Xe();return ie(ve,"Expected tag name."),{type:"TagName",name:ve}}else return Oe("Expected tag name.")}function fe(){if(z("*")){var ve=X;if(ee(),!z("|")||(ee(),!Te()))return be(ve),We();ie(h,"Namespaces are not enabled."),ie(g,"Wildcard namespace is not enabled.");var De=We();return De.namespace={type:"WildcardNamespace"},De}else if(z("|")){ie(h,"Namespaces are not enabled."),ee();var De=We();return De.namespace={type:"NoNamespace"},De}else if(LE(te)){var $e=Xe();if(ie($e,"Expected tag name."),!z("|"))return ie(l,"Tag names are not enabled."),{type:"TagName",name:$e};var ve=X;if(ee(),!Te())return be(ve),{type:"TagName",name:$e};ie(h,"Namespaces are not enabled.");var De=We();return De.namespace={type:"NamespaceName",name:$e},De}else return Oe("Expected tag name.")}function xe(ve){var De,$e;ve===void 0&&(ve=!1);var vt={type:"Rule",items:[]};if(ve){var Wt=st(S);Wt&&(vt.combinator=Wt,At())}for(;X0)return(t.commaSeparated?BB:zB)(e)}else return String(e)}const Kot=[];function Jot(e,t){return(t.properties.className||Kot).includes(e.name)}function elt(e,t){return t.properties.id===e.name}function tlt(e,t){return e.name===t.tagName}function nlt(e,t){return function(n,r){let i=$te(n,"tag");const a=$te(r??"*","range"),s=[];let o=-1;for(;++o=Fte&&e.charCodeAt(t)<=slt;)u=u*10+(e.charCodeAt(t)-Fte),t++;return t===l?null:u}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?Bte.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function Ute(e){return ult(olt(e))}const clt=Ute.default||Ute,dlt=JB("name",{handlers:{"any-link":flt,blank:hlt,checked:plt,dir:mlt,disabled:f0e,empty:glt,enabled:blt,"first-child":ylt,"first-of-type":vlt,has:Olt,is:h0e,lang:Elt,"last-child":wlt,"last-of-type":xlt,not:Tlt,"nth-child":klt,"nth-last-child":Clt,"nth-last-of-type":Alt,"nth-of-type":_lt,"only-child":Rlt,"only-of-type":Ilt,optional:Dlt,"read-only":Nlt,"read-write":p0e,required:m0e,root:Plt,scope:Mlt},invalid:Slt,unknown:Llt});function flt(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&O1(t,"href")}function Kf(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function hlt(e,t){return!g0e(t,n);function n(r){return r.type==="element"||r.type==="text"&&!upe(r)}}function plt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&O1(t,"checked")):t.tagName==="option"?O1(t,"selected"):!1}function mlt(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function f0e(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&O1(t,"disabled")}function glt(e,t){return!g0e(t,n);function n(r){return r.type==="element"||r.type==="text"}}function blt(e,t){return!f0e(e,t)}function ylt(e,t,n,r,i){return Kf(i,e),i.elementIndex===0}function vlt(e,t,n,r,i){return Kf(i,e),i.typeIndex===0}function PI(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=clt(n.a+"n+"+n.b),e._cachedFn=t}return t}function Olt(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return qV(a,{type:"root",children:t.children}),a.results.length>0}function Slt(){}function h0e(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return qV(a,t),a.results[0]===t}function Elt(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&rlt(i.language,y1(e.argument.value)).length>0}function wlt(e,t,n,r,i){return Kf(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function xlt(e,t,n,r,i){return Kf(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Tlt(e,t,n,r,i){return!h0e(e,t,n,r,i)}function klt(e,t,n,r,i){const a=PI(e);return Kf(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function Clt(e,t,n,r,i){const a=PI(e);return Kf(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function Alt(e,t,n,r,i){const a=PI(e);return Kf(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function _lt(e,t,n,r,i){const a=PI(e);return Kf(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function Rlt(e,t,n,r,i){return Kf(i,e),i.elementCount===1}function Ilt(e,t,n,r,i){return Kf(i,e),i.typeCount===1}function Dlt(e,t){return!m0e(e,t)}function Nlt(e,t,n,r,i){return!p0e(e,t,n,r,i)}function p0e(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!O1(t,"readOnly")&&!O1(t,"disabled"):!!i.editableOrEditingHost}function m0e(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&O1(t,"required")}function Plt(e,t,n,r,i){return!!((!r||r.type==="root")&&i.schema&&(i.schema.space==="html"||i.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function Mlt(e,t,n,r,i){return i.scopeElements.includes(t)}function g0e(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";jP(a,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?jP(a,"descendant",o):o.combinator==="~"&&jP(a,"generalSibling",o)}return a}function Y4(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Flt}function zte(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function b0e(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=Yot(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===a)),s=Ult(e,Y4(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Blt(e,s,n,a),o(),s}function zlt(e,t,n){const r=jlt(e,t,n);return qV(r,t||void 0),r.results}function jlt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:Wot(e),schema:n==="svg"?Id:A0,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const GV=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=GV(n.children))}),t),Hlt=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=zlt(t,r);i&&i.length>0&&Yo(r,i,(a,s,o)=>{n(a,s,o)});return}Yo(r,(i,a,s)=>{n(i,a,s)})}}},Vlt=Hlt,Wlt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Qlt=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},y0e=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?y0e(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},jte=({value:e=""})=>{const t=Wlt(e.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},Hte=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},qlt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Yo(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=Qlt(s.children,a);if(l){const u=jte(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=Hte(o.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=y0e(s.children,a,"",n);if(o){const l=jte(o);Object.keys(l).length>0&&(i.properties=Hte(i.properties,l,t))}}})}},Glt=qlt;var Ylt=function(t){return n=>{Yo(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=M({},r.properties,{"data-meta":String(r.data.meta)}))})}},Zlt=function(t){return n=>{Yo(n,r=>{r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta&&(r.data||(r.data={}),r.data.meta=r.properties.dataMeta,delete r.properties.dataMeta)})}};const Xlt=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Klt=Object.hasOwnProperty;class Jlt{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=eut(t,n===!0);const a=i;for(;Klt.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function eut(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Xlt,"").replace(/ /g,"-"))}function v0e(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const tut={},Vte=new Jlt;function nut(e){const n=(e||tut).prefix||"";return function(r){Vte.reset(),Yo(r,"element",function(i){v0e(i)&&!i.properties.id&&(i.properties.id=n+Vte.slug(Ly(i)))})}}const Ep=function(e){if(e==null)return aut;if(typeof e=="string")return iut(e);if(typeof e=="object")return rut(e);if(typeof e=="function")return YV(e);throw new Error("Expected function, string, or array as `test`")};function rut(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Yo(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return o=!0,!1;if(u===n)return o=!1,!1}return!o})}})}},cut=uut;var dut={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function fut(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var hut=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=M({class:"anchor"},a.properties),a.children=[dut])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=GV(n.children);n.children.push(fut(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},put=[nut,lut,cut];const S0e=hn.forwardRef((e,t)=>{var n,r=[Ylt,t0e,Zlt,[_ot,{ignoreMissing:!0}],...put,[Vlt,{rewrite:hut((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Glt,{properties:"attr"}],...e.rehypePlugins||[]];return I.jsx(Yst,M({},e,{rehypePlugins:r,ref:t}))});function FL(e){return e.split(` `).map(t=>t+" ").join(` -`)}class cu{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new cu(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Ff{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Ff(n,cu.range(this,t))}}class Ht{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},put=/[&><"']/g;function mut(e){return String(e).replace(put,t=>hut[t])}var E0e=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},gut=function(t){var n=E0e(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},but=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},yut=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},tr={contains:uut,deflt:cut,escape:mut,hyphenate:fut,getBaseElem:E0e,isCharacterBox:gut,protocolFromUrl:yut},Y4={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function vut(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ZV{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in Y4)if(Y4.hasOwnProperty(n)){var r=Y4[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:vut(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Ht("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=tr.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Kp{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return pf[Out[this.id]]}sub(){return pf[Sut[this.id]]}fracNum(){return pf[Eut[this.id]]}fracDen(){return pf[wut[this.id]]}cramp(){return pf[xut[this.id]]}text(){return pf[Tut[this.id]]}isTight(){return this.size>=2}}var XV=0,G3=1,ov=2,Qh=3,fx=4,mc=5,uO=6,Wo=7,pf=[new Kp(XV,0,!1),new Kp(G3,0,!0),new Kp(ov,1,!1),new Kp(Qh,1,!0),new Kp(fx,2,!1),new Kp(mc,2,!0),new Kp(uO,3,!1),new Kp(Wo,3,!0)],Out=[fx,mc,fx,mc,uO,Wo,uO,Wo],Sut=[mc,mc,mc,mc,Wo,Wo,Wo,Wo],Eut=[ov,Qh,fx,mc,uO,Wo,uO,Wo],wut=[Qh,Qh,mc,mc,Wo,Wo,Wo,Wo],xut=[G3,G3,Qh,Qh,mc,mc,Wo,Wo],Tut=[XV,G3,ov,Qh,ov,Qh,ov,Qh],Gn={DISPLAY:pf[XV],TEXT:pf[ov],SCRIPT:pf[fx],SCRIPTSCRIPT:pf[uO]},FL=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function kut(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var Z4=[];FL.forEach(e=>e.blocks.forEach(t=>Z4.push(...t)));function w0e(e){for(var t=0;t=Z4[t]&&e<=Z4[t+1])return!0;return!1}var Kb=80,Cut=function(t,n){return"M95,"+(622+t+n)+` +`)}class cu{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new cu(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Ff{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Ff(n,cu.range(this,t))}}class Ht{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},Out=/[&><"']/g;function Sut(e){return String(e).replace(Out,t=>vut[t])}var E0e=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},Eut=function(t){var n=E0e(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},wut=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},xut=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},tr={contains:mut,deflt:gut,escape:Sut,hyphenate:yut,getBaseElem:E0e,isCharacterBox:Eut,protocolFromUrl:xut},Z4={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function Tut(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class XV{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in Z4)if(Z4.hasOwnProperty(n)){var r=Z4[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:Tut(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Ht("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=tr.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Jp{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return pf[kut[this.id]]}sub(){return pf[Cut[this.id]]}fracNum(){return pf[Aut[this.id]]}fracDen(){return pf[_ut[this.id]]}cramp(){return pf[Rut[this.id]]}text(){return pf[Iut[this.id]]}isTight(){return this.size>=2}}var KV=0,X3=1,ov=2,Qh=3,fx=4,mc=5,uO=6,Wo=7,pf=[new Jp(KV,0,!1),new Jp(X3,0,!0),new Jp(ov,1,!1),new Jp(Qh,1,!0),new Jp(fx,2,!1),new Jp(mc,2,!0),new Jp(uO,3,!1),new Jp(Wo,3,!0)],kut=[fx,mc,fx,mc,uO,Wo,uO,Wo],Cut=[mc,mc,mc,mc,Wo,Wo,Wo,Wo],Aut=[ov,Qh,fx,mc,uO,Wo,uO,Wo],_ut=[Qh,Qh,mc,mc,Wo,Wo,Wo,Wo],Rut=[X3,X3,Qh,Qh,mc,mc,Wo,Wo],Iut=[KV,X3,ov,Qh,ov,Qh,ov,Qh],Gn={DISPLAY:pf[KV],TEXT:pf[ov],SCRIPT:pf[fx],SCRIPTSCRIPT:pf[uO]},BL=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Dut(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var X4=[];BL.forEach(e=>e.blocks.forEach(t=>X4.push(...t)));function w0e(e){for(var t=0;t=X4[t]&&e<=X4[t+1])return!0;return!1}var Kb=80,Nut=function(t,n){return"M95,"+(622+t+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -323,7 +323,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+t)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Aut=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 +M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Put=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+t/2.084+" -"+t+` @@ -333,7 +333,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},_ut=function(t,n){return"M983 "+(10+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Mut=function(t,n){return"M983 "+(10+t+n)+` l`+t/3.13+" -"+t+` c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -342,7 +342,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Rut=function(t,n){return"M424,"+(2398+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Lut=function(t,n){return"M424,"+(2398+t+n)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -352,18 +352,18 @@ v`+(40+t)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` -h400000v`+(40+t)+"h-400000z"},Iut=function(t,n){return"M473,"+(2713+t+n)+` +h400000v`+(40+t)+"h-400000z"},$ut=function(t,n){return"M473,"+(2713+t+n)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Dut=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Nut=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` +606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Fut=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},But=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Put=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Cut(n,Kb);break;case"sqrtSize1":i=Aut(n,Kb);break;case"sqrtSize2":i=_ut(n,Kb);break;case"sqrtSize3":i=Rut(n,Kb);break;case"sqrtSize4":i=Iut(n,Kb);break;case"sqrtTall":i=Nut(n,Kb,r)}return i},Mut=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},Qte={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Uut=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Nut(n,Kb);break;case"sqrtSize1":i=Put(n,Kb);break;case"sqrtSize2":i=Mut(n,Kb);break;case"sqrtSize3":i=Lut(n,Kb);break;case"sqrtSize4":i=$ut(n,Kb);break;case"sqrtTall":i=But(n,Kb,r)}return i},zut=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},qte={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -538,7 +538,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Lut=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},jut=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -566,66 +566,66 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let jT=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return tr.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Cf={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},DA={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},qte={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function $ut(e,t){Cf[e]=t}function KV(e,t,n){if(!Cf[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Cf[t][r];if(!i&&e[0]in qte&&(r=qte[e[0]].charCodeAt(0),i=Cf[t][r]),!i&&n==="text"&&w0e(r)&&(i=Cf[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var jP={};function Fut(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!jP[t]){var n=jP[t]={cssEmPerMu:DA.quad[t]/18};for(var r in DA)DA.hasOwnProperty(r)&&(n[r]=DA[r][t])}return jP[t]}var But=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Gte=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Yte=function(t,n){return n.size<2?t:But[t-1][n.size-1]};class Ph{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Ph.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Gte[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Ph(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Yte(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Gte[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Yte(Ph.BASESIZE,t);return this.size===n&&this.textSize===Ph.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ph.BASESIZE?["sizing","reset-size"+this.size,"size"+Ph.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Fut(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ph.BASESIZE=6;var BL={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Uut={ex:!0,em:!0,mu:!0},x0e=function(t){return typeof t!="string"&&(t=t.unit),t in BL||t in Uut||t==="ex"},aa=function(t,n){var r;if(t.unit in BL)r=BL[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Ht("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Jt=function(t){return+t.toFixed(4)+"em"},d0=function(t){return t.filter(n=>n).join(" ")},T0e=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},k0e=function(t){var n=document.createElement(t);n.className=d0(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let HT=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,T0e.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return tr.contains(this.classes,t)}toNode(){return k0e.call(this,"span")}toMarkup(){return C0e.call(this,"span")}};class JV{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,T0e.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return tr.contains(this.classes,t)}toNode(){return k0e.call(this,"a")}toMarkup(){return C0e.call(this,"a")}}class zut{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return tr.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=Jt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=d0(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=tr.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+tr.escape(r)+'"');var a=tr.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class up{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i":""}}class UL{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var Vut={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Wut={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ii={math:{},text:{}};function U(e,t,n,r,i,a){Ii[e][i]={font:t,group:n,replace:r},a&&r&&(Ii[e][r]=Ii[e][i])}var G="math",It="text",ae="main",we="ams",Ki="accent-token",gn="bin",Jo="close",GO="inner",qn="mathord",Qa="op-token",Nu="open",NI="punct",Ce="rel",Ep="spacing",Fe="textord";U(G,ae,Ce,"≡","\\equiv",!0);U(G,ae,Ce,"≺","\\prec",!0);U(G,ae,Ce,"≻","\\succ",!0);U(G,ae,Ce,"∼","\\sim",!0);U(G,ae,Ce,"⊥","\\perp");U(G,ae,Ce,"⪯","\\preceq",!0);U(G,ae,Ce,"⪰","\\succeq",!0);U(G,ae,Ce,"≃","\\simeq",!0);U(G,ae,Ce,"∣","\\mid",!0);U(G,ae,Ce,"≪","\\ll",!0);U(G,ae,Ce,"≫","\\gg",!0);U(G,ae,Ce,"≍","\\asymp",!0);U(G,ae,Ce,"∥","\\parallel");U(G,ae,Ce,"⋈","\\bowtie",!0);U(G,ae,Ce,"⌣","\\smile",!0);U(G,ae,Ce,"⊑","\\sqsubseteq",!0);U(G,ae,Ce,"⊒","\\sqsupseteq",!0);U(G,ae,Ce,"≐","\\doteq",!0);U(G,ae,Ce,"⌢","\\frown",!0);U(G,ae,Ce,"∋","\\ni",!0);U(G,ae,Ce,"∝","\\propto",!0);U(G,ae,Ce,"⊢","\\vdash",!0);U(G,ae,Ce,"⊣","\\dashv",!0);U(G,ae,Ce,"∋","\\owns");U(G,ae,NI,".","\\ldotp");U(G,ae,NI,"⋅","\\cdotp");U(G,ae,Fe,"#","\\#");U(It,ae,Fe,"#","\\#");U(G,ae,Fe,"&","\\&");U(It,ae,Fe,"&","\\&");U(G,ae,Fe,"ℵ","\\aleph",!0);U(G,ae,Fe,"∀","\\forall",!0);U(G,ae,Fe,"ℏ","\\hbar",!0);U(G,ae,Fe,"∃","\\exists",!0);U(G,ae,Fe,"∇","\\nabla",!0);U(G,ae,Fe,"♭","\\flat",!0);U(G,ae,Fe,"ℓ","\\ell",!0);U(G,ae,Fe,"♮","\\natural",!0);U(G,ae,Fe,"♣","\\clubsuit",!0);U(G,ae,Fe,"℘","\\wp",!0);U(G,ae,Fe,"♯","\\sharp",!0);U(G,ae,Fe,"♢","\\diamondsuit",!0);U(G,ae,Fe,"ℜ","\\Re",!0);U(G,ae,Fe,"♡","\\heartsuit",!0);U(G,ae,Fe,"ℑ","\\Im",!0);U(G,ae,Fe,"♠","\\spadesuit",!0);U(G,ae,Fe,"§","\\S",!0);U(It,ae,Fe,"§","\\S");U(G,ae,Fe,"¶","\\P",!0);U(It,ae,Fe,"¶","\\P");U(G,ae,Fe,"†","\\dag");U(It,ae,Fe,"†","\\dag");U(It,ae,Fe,"†","\\textdagger");U(G,ae,Fe,"‡","\\ddag");U(It,ae,Fe,"‡","\\ddag");U(It,ae,Fe,"‡","\\textdaggerdbl");U(G,ae,Jo,"⎱","\\rmoustache",!0);U(G,ae,Nu,"⎰","\\lmoustache",!0);U(G,ae,Jo,"⟯","\\rgroup",!0);U(G,ae,Nu,"⟮","\\lgroup",!0);U(G,ae,gn,"∓","\\mp",!0);U(G,ae,gn,"⊖","\\ominus",!0);U(G,ae,gn,"⊎","\\uplus",!0);U(G,ae,gn,"⊓","\\sqcap",!0);U(G,ae,gn,"∗","\\ast");U(G,ae,gn,"⊔","\\sqcup",!0);U(G,ae,gn,"◯","\\bigcirc",!0);U(G,ae,gn,"∙","\\bullet",!0);U(G,ae,gn,"‡","\\ddagger");U(G,ae,gn,"≀","\\wr",!0);U(G,ae,gn,"⨿","\\amalg");U(G,ae,gn,"&","\\And");U(G,ae,Ce,"⟵","\\longleftarrow",!0);U(G,ae,Ce,"⇐","\\Leftarrow",!0);U(G,ae,Ce,"⟸","\\Longleftarrow",!0);U(G,ae,Ce,"⟶","\\longrightarrow",!0);U(G,ae,Ce,"⇒","\\Rightarrow",!0);U(G,ae,Ce,"⟹","\\Longrightarrow",!0);U(G,ae,Ce,"↔","\\leftrightarrow",!0);U(G,ae,Ce,"⟷","\\longleftrightarrow",!0);U(G,ae,Ce,"⇔","\\Leftrightarrow",!0);U(G,ae,Ce,"⟺","\\Longleftrightarrow",!0);U(G,ae,Ce,"↦","\\mapsto",!0);U(G,ae,Ce,"⟼","\\longmapsto",!0);U(G,ae,Ce,"↗","\\nearrow",!0);U(G,ae,Ce,"↩","\\hookleftarrow",!0);U(G,ae,Ce,"↪","\\hookrightarrow",!0);U(G,ae,Ce,"↘","\\searrow",!0);U(G,ae,Ce,"↼","\\leftharpoonup",!0);U(G,ae,Ce,"⇀","\\rightharpoonup",!0);U(G,ae,Ce,"↙","\\swarrow",!0);U(G,ae,Ce,"↽","\\leftharpoondown",!0);U(G,ae,Ce,"⇁","\\rightharpoondown",!0);U(G,ae,Ce,"↖","\\nwarrow",!0);U(G,ae,Ce,"⇌","\\rightleftharpoons",!0);U(G,we,Ce,"≮","\\nless",!0);U(G,we,Ce,"","\\@nleqslant");U(G,we,Ce,"","\\@nleqq");U(G,we,Ce,"⪇","\\lneq",!0);U(G,we,Ce,"≨","\\lneqq",!0);U(G,we,Ce,"","\\@lvertneqq");U(G,we,Ce,"⋦","\\lnsim",!0);U(G,we,Ce,"⪉","\\lnapprox",!0);U(G,we,Ce,"⊀","\\nprec",!0);U(G,we,Ce,"⋠","\\npreceq",!0);U(G,we,Ce,"⋨","\\precnsim",!0);U(G,we,Ce,"⪹","\\precnapprox",!0);U(G,we,Ce,"≁","\\nsim",!0);U(G,we,Ce,"","\\@nshortmid");U(G,we,Ce,"∤","\\nmid",!0);U(G,we,Ce,"⊬","\\nvdash",!0);U(G,we,Ce,"⊭","\\nvDash",!0);U(G,we,Ce,"⋪","\\ntriangleleft");U(G,we,Ce,"⋬","\\ntrianglelefteq",!0);U(G,we,Ce,"⊊","\\subsetneq",!0);U(G,we,Ce,"","\\@varsubsetneq");U(G,we,Ce,"⫋","\\subsetneqq",!0);U(G,we,Ce,"","\\@varsubsetneqq");U(G,we,Ce,"≯","\\ngtr",!0);U(G,we,Ce,"","\\@ngeqslant");U(G,we,Ce,"","\\@ngeqq");U(G,we,Ce,"⪈","\\gneq",!0);U(G,we,Ce,"≩","\\gneqq",!0);U(G,we,Ce,"","\\@gvertneqq");U(G,we,Ce,"⋧","\\gnsim",!0);U(G,we,Ce,"⪊","\\gnapprox",!0);U(G,we,Ce,"⊁","\\nsucc",!0);U(G,we,Ce,"⋡","\\nsucceq",!0);U(G,we,Ce,"⋩","\\succnsim",!0);U(G,we,Ce,"⪺","\\succnapprox",!0);U(G,we,Ce,"≆","\\ncong",!0);U(G,we,Ce,"","\\@nshortparallel");U(G,we,Ce,"∦","\\nparallel",!0);U(G,we,Ce,"⊯","\\nVDash",!0);U(G,we,Ce,"⋫","\\ntriangleright");U(G,we,Ce,"⋭","\\ntrianglerighteq",!0);U(G,we,Ce,"","\\@nsupseteqq");U(G,we,Ce,"⊋","\\supsetneq",!0);U(G,we,Ce,"","\\@varsupsetneq");U(G,we,Ce,"⫌","\\supsetneqq",!0);U(G,we,Ce,"","\\@varsupsetneqq");U(G,we,Ce,"⊮","\\nVdash",!0);U(G,we,Ce,"⪵","\\precneqq",!0);U(G,we,Ce,"⪶","\\succneqq",!0);U(G,we,Ce,"","\\@nsubseteqq");U(G,we,gn,"⊴","\\unlhd");U(G,we,gn,"⊵","\\unrhd");U(G,we,Ce,"↚","\\nleftarrow",!0);U(G,we,Ce,"↛","\\nrightarrow",!0);U(G,we,Ce,"⇍","\\nLeftarrow",!0);U(G,we,Ce,"⇏","\\nRightarrow",!0);U(G,we,Ce,"↮","\\nleftrightarrow",!0);U(G,we,Ce,"⇎","\\nLeftrightarrow",!0);U(G,we,Ce,"△","\\vartriangle");U(G,we,Fe,"ℏ","\\hslash");U(G,we,Fe,"▽","\\triangledown");U(G,we,Fe,"◊","\\lozenge");U(G,we,Fe,"Ⓢ","\\circledS");U(G,we,Fe,"®","\\circledR");U(It,we,Fe,"®","\\circledR");U(G,we,Fe,"∡","\\measuredangle",!0);U(G,we,Fe,"∄","\\nexists");U(G,we,Fe,"℧","\\mho");U(G,we,Fe,"Ⅎ","\\Finv",!0);U(G,we,Fe,"⅁","\\Game",!0);U(G,we,Fe,"‵","\\backprime");U(G,we,Fe,"▲","\\blacktriangle");U(G,we,Fe,"▼","\\blacktriangledown");U(G,we,Fe,"■","\\blacksquare");U(G,we,Fe,"⧫","\\blacklozenge");U(G,we,Fe,"★","\\bigstar");U(G,we,Fe,"∢","\\sphericalangle",!0);U(G,we,Fe,"∁","\\complement",!0);U(G,we,Fe,"ð","\\eth",!0);U(It,ae,Fe,"ð","ð");U(G,we,Fe,"╱","\\diagup");U(G,we,Fe,"╲","\\diagdown");U(G,we,Fe,"□","\\square");U(G,we,Fe,"□","\\Box");U(G,we,Fe,"◊","\\Diamond");U(G,we,Fe,"¥","\\yen",!0);U(It,we,Fe,"¥","\\yen",!0);U(G,we,Fe,"✓","\\checkmark",!0);U(It,we,Fe,"✓","\\checkmark");U(G,we,Fe,"ℶ","\\beth",!0);U(G,we,Fe,"ℸ","\\daleth",!0);U(G,we,Fe,"ℷ","\\gimel",!0);U(G,we,Fe,"ϝ","\\digamma",!0);U(G,we,Fe,"ϰ","\\varkappa");U(G,we,Nu,"┌","\\@ulcorner",!0);U(G,we,Jo,"┐","\\@urcorner",!0);U(G,we,Nu,"└","\\@llcorner",!0);U(G,we,Jo,"┘","\\@lrcorner",!0);U(G,we,Ce,"≦","\\leqq",!0);U(G,we,Ce,"⩽","\\leqslant",!0);U(G,we,Ce,"⪕","\\eqslantless",!0);U(G,we,Ce,"≲","\\lesssim",!0);U(G,we,Ce,"⪅","\\lessapprox",!0);U(G,we,Ce,"≊","\\approxeq",!0);U(G,we,gn,"⋖","\\lessdot");U(G,we,Ce,"⋘","\\lll",!0);U(G,we,Ce,"≶","\\lessgtr",!0);U(G,we,Ce,"⋚","\\lesseqgtr",!0);U(G,we,Ce,"⪋","\\lesseqqgtr",!0);U(G,we,Ce,"≑","\\doteqdot");U(G,we,Ce,"≓","\\risingdotseq",!0);U(G,we,Ce,"≒","\\fallingdotseq",!0);U(G,we,Ce,"∽","\\backsim",!0);U(G,we,Ce,"⋍","\\backsimeq",!0);U(G,we,Ce,"⫅","\\subseteqq",!0);U(G,we,Ce,"⋐","\\Subset",!0);U(G,we,Ce,"⊏","\\sqsubset",!0);U(G,we,Ce,"≼","\\preccurlyeq",!0);U(G,we,Ce,"⋞","\\curlyeqprec",!0);U(G,we,Ce,"≾","\\precsim",!0);U(G,we,Ce,"⪷","\\precapprox",!0);U(G,we,Ce,"⊲","\\vartriangleleft");U(G,we,Ce,"⊴","\\trianglelefteq");U(G,we,Ce,"⊨","\\vDash",!0);U(G,we,Ce,"⊪","\\Vvdash",!0);U(G,we,Ce,"⌣","\\smallsmile");U(G,we,Ce,"⌢","\\smallfrown");U(G,we,Ce,"≏","\\bumpeq",!0);U(G,we,Ce,"≎","\\Bumpeq",!0);U(G,we,Ce,"≧","\\geqq",!0);U(G,we,Ce,"⩾","\\geqslant",!0);U(G,we,Ce,"⪖","\\eqslantgtr",!0);U(G,we,Ce,"≳","\\gtrsim",!0);U(G,we,Ce,"⪆","\\gtrapprox",!0);U(G,we,gn,"⋗","\\gtrdot");U(G,we,Ce,"⋙","\\ggg",!0);U(G,we,Ce,"≷","\\gtrless",!0);U(G,we,Ce,"⋛","\\gtreqless",!0);U(G,we,Ce,"⪌","\\gtreqqless",!0);U(G,we,Ce,"≖","\\eqcirc",!0);U(G,we,Ce,"≗","\\circeq",!0);U(G,we,Ce,"≜","\\triangleq",!0);U(G,we,Ce,"∼","\\thicksim");U(G,we,Ce,"≈","\\thickapprox");U(G,we,Ce,"⫆","\\supseteqq",!0);U(G,we,Ce,"⋑","\\Supset",!0);U(G,we,Ce,"⊐","\\sqsupset",!0);U(G,we,Ce,"≽","\\succcurlyeq",!0);U(G,we,Ce,"⋟","\\curlyeqsucc",!0);U(G,we,Ce,"≿","\\succsim",!0);U(G,we,Ce,"⪸","\\succapprox",!0);U(G,we,Ce,"⊳","\\vartriangleright");U(G,we,Ce,"⊵","\\trianglerighteq");U(G,we,Ce,"⊩","\\Vdash",!0);U(G,we,Ce,"∣","\\shortmid");U(G,we,Ce,"∥","\\shortparallel");U(G,we,Ce,"≬","\\between",!0);U(G,we,Ce,"⋔","\\pitchfork",!0);U(G,we,Ce,"∝","\\varpropto");U(G,we,Ce,"◀","\\blacktriangleleft");U(G,we,Ce,"∴","\\therefore",!0);U(G,we,Ce,"∍","\\backepsilon");U(G,we,Ce,"▶","\\blacktriangleright");U(G,we,Ce,"∵","\\because",!0);U(G,we,Ce,"⋘","\\llless");U(G,we,Ce,"⋙","\\gggtr");U(G,we,gn,"⊲","\\lhd");U(G,we,gn,"⊳","\\rhd");U(G,we,Ce,"≂","\\eqsim",!0);U(G,ae,Ce,"⋈","\\Join");U(G,we,Ce,"≑","\\Doteq",!0);U(G,we,gn,"∔","\\dotplus",!0);U(G,we,gn,"∖","\\smallsetminus");U(G,we,gn,"⋒","\\Cap",!0);U(G,we,gn,"⋓","\\Cup",!0);U(G,we,gn,"⩞","\\doublebarwedge",!0);U(G,we,gn,"⊟","\\boxminus",!0);U(G,we,gn,"⊞","\\boxplus",!0);U(G,we,gn,"⋇","\\divideontimes",!0);U(G,we,gn,"⋉","\\ltimes",!0);U(G,we,gn,"⋊","\\rtimes",!0);U(G,we,gn,"⋋","\\leftthreetimes",!0);U(G,we,gn,"⋌","\\rightthreetimes",!0);U(G,we,gn,"⋏","\\curlywedge",!0);U(G,we,gn,"⋎","\\curlyvee",!0);U(G,we,gn,"⊝","\\circleddash",!0);U(G,we,gn,"⊛","\\circledast",!0);U(G,we,gn,"⋅","\\centerdot");U(G,we,gn,"⊺","\\intercal",!0);U(G,we,gn,"⋒","\\doublecap");U(G,we,gn,"⋓","\\doublecup");U(G,we,gn,"⊠","\\boxtimes",!0);U(G,we,Ce,"⇢","\\dashrightarrow",!0);U(G,we,Ce,"⇠","\\dashleftarrow",!0);U(G,we,Ce,"⇇","\\leftleftarrows",!0);U(G,we,Ce,"⇆","\\leftrightarrows",!0);U(G,we,Ce,"⇚","\\Lleftarrow",!0);U(G,we,Ce,"↞","\\twoheadleftarrow",!0);U(G,we,Ce,"↢","\\leftarrowtail",!0);U(G,we,Ce,"↫","\\looparrowleft",!0);U(G,we,Ce,"⇋","\\leftrightharpoons",!0);U(G,we,Ce,"↶","\\curvearrowleft",!0);U(G,we,Ce,"↺","\\circlearrowleft",!0);U(G,we,Ce,"↰","\\Lsh",!0);U(G,we,Ce,"⇈","\\upuparrows",!0);U(G,we,Ce,"↿","\\upharpoonleft",!0);U(G,we,Ce,"⇃","\\downharpoonleft",!0);U(G,ae,Ce,"⊶","\\origof",!0);U(G,ae,Ce,"⊷","\\imageof",!0);U(G,we,Ce,"⊸","\\multimap",!0);U(G,we,Ce,"↭","\\leftrightsquigarrow",!0);U(G,we,Ce,"⇉","\\rightrightarrows",!0);U(G,we,Ce,"⇄","\\rightleftarrows",!0);U(G,we,Ce,"↠","\\twoheadrightarrow",!0);U(G,we,Ce,"↣","\\rightarrowtail",!0);U(G,we,Ce,"↬","\\looparrowright",!0);U(G,we,Ce,"↷","\\curvearrowright",!0);U(G,we,Ce,"↻","\\circlearrowright",!0);U(G,we,Ce,"↱","\\Rsh",!0);U(G,we,Ce,"⇊","\\downdownarrows",!0);U(G,we,Ce,"↾","\\upharpoonright",!0);U(G,we,Ce,"⇂","\\downharpoonright",!0);U(G,we,Ce,"⇝","\\rightsquigarrow",!0);U(G,we,Ce,"⇝","\\leadsto");U(G,we,Ce,"⇛","\\Rrightarrow",!0);U(G,we,Ce,"↾","\\restriction");U(G,ae,Fe,"‘","`");U(G,ae,Fe,"$","\\$");U(It,ae,Fe,"$","\\$");U(It,ae,Fe,"$","\\textdollar");U(G,ae,Fe,"%","\\%");U(It,ae,Fe,"%","\\%");U(G,ae,Fe,"_","\\_");U(It,ae,Fe,"_","\\_");U(It,ae,Fe,"_","\\textunderscore");U(G,ae,Fe,"∠","\\angle",!0);U(G,ae,Fe,"∞","\\infty",!0);U(G,ae,Fe,"′","\\prime");U(G,ae,Fe,"△","\\triangle");U(G,ae,Fe,"Γ","\\Gamma",!0);U(G,ae,Fe,"Δ","\\Delta",!0);U(G,ae,Fe,"Θ","\\Theta",!0);U(G,ae,Fe,"Λ","\\Lambda",!0);U(G,ae,Fe,"Ξ","\\Xi",!0);U(G,ae,Fe,"Π","\\Pi",!0);U(G,ae,Fe,"Σ","\\Sigma",!0);U(G,ae,Fe,"Υ","\\Upsilon",!0);U(G,ae,Fe,"Φ","\\Phi",!0);U(G,ae,Fe,"Ψ","\\Psi",!0);U(G,ae,Fe,"Ω","\\Omega",!0);U(G,ae,Fe,"A","Α");U(G,ae,Fe,"B","Β");U(G,ae,Fe,"E","Ε");U(G,ae,Fe,"Z","Ζ");U(G,ae,Fe,"H","Η");U(G,ae,Fe,"I","Ι");U(G,ae,Fe,"K","Κ");U(G,ae,Fe,"M","Μ");U(G,ae,Fe,"N","Ν");U(G,ae,Fe,"O","Ο");U(G,ae,Fe,"P","Ρ");U(G,ae,Fe,"T","Τ");U(G,ae,Fe,"X","Χ");U(G,ae,Fe,"¬","\\neg",!0);U(G,ae,Fe,"¬","\\lnot");U(G,ae,Fe,"⊤","\\top");U(G,ae,Fe,"⊥","\\bot");U(G,ae,Fe,"∅","\\emptyset");U(G,we,Fe,"∅","\\varnothing");U(G,ae,qn,"α","\\alpha",!0);U(G,ae,qn,"β","\\beta",!0);U(G,ae,qn,"γ","\\gamma",!0);U(G,ae,qn,"δ","\\delta",!0);U(G,ae,qn,"ϵ","\\epsilon",!0);U(G,ae,qn,"ζ","\\zeta",!0);U(G,ae,qn,"η","\\eta",!0);U(G,ae,qn,"θ","\\theta",!0);U(G,ae,qn,"ι","\\iota",!0);U(G,ae,qn,"κ","\\kappa",!0);U(G,ae,qn,"λ","\\lambda",!0);U(G,ae,qn,"μ","\\mu",!0);U(G,ae,qn,"ν","\\nu",!0);U(G,ae,qn,"ξ","\\xi",!0);U(G,ae,qn,"ο","\\omicron",!0);U(G,ae,qn,"π","\\pi",!0);U(G,ae,qn,"ρ","\\rho",!0);U(G,ae,qn,"σ","\\sigma",!0);U(G,ae,qn,"τ","\\tau",!0);U(G,ae,qn,"υ","\\upsilon",!0);U(G,ae,qn,"ϕ","\\phi",!0);U(G,ae,qn,"χ","\\chi",!0);U(G,ae,qn,"ψ","\\psi",!0);U(G,ae,qn,"ω","\\omega",!0);U(G,ae,qn,"ε","\\varepsilon",!0);U(G,ae,qn,"ϑ","\\vartheta",!0);U(G,ae,qn,"ϖ","\\varpi",!0);U(G,ae,qn,"ϱ","\\varrho",!0);U(G,ae,qn,"ς","\\varsigma",!0);U(G,ae,qn,"φ","\\varphi",!0);U(G,ae,gn,"∗","*",!0);U(G,ae,gn,"+","+");U(G,ae,gn,"−","-",!0);U(G,ae,gn,"⋅","\\cdot",!0);U(G,ae,gn,"∘","\\circ",!0);U(G,ae,gn,"÷","\\div",!0);U(G,ae,gn,"±","\\pm",!0);U(G,ae,gn,"×","\\times",!0);U(G,ae,gn,"∩","\\cap",!0);U(G,ae,gn,"∪","\\cup",!0);U(G,ae,gn,"∖","\\setminus",!0);U(G,ae,gn,"∧","\\land");U(G,ae,gn,"∨","\\lor");U(G,ae,gn,"∧","\\wedge",!0);U(G,ae,gn,"∨","\\vee",!0);U(G,ae,Fe,"√","\\surd");U(G,ae,Nu,"⟨","\\langle",!0);U(G,ae,Nu,"∣","\\lvert");U(G,ae,Nu,"∥","\\lVert");U(G,ae,Jo,"?","?");U(G,ae,Jo,"!","!");U(G,ae,Jo,"⟩","\\rangle",!0);U(G,ae,Jo,"∣","\\rvert");U(G,ae,Jo,"∥","\\rVert");U(G,ae,Ce,"=","=");U(G,ae,Ce,":",":");U(G,ae,Ce,"≈","\\approx",!0);U(G,ae,Ce,"≅","\\cong",!0);U(G,ae,Ce,"≥","\\ge");U(G,ae,Ce,"≥","\\geq",!0);U(G,ae,Ce,"←","\\gets");U(G,ae,Ce,">","\\gt",!0);U(G,ae,Ce,"∈","\\in",!0);U(G,ae,Ce,"","\\@not");U(G,ae,Ce,"⊂","\\subset",!0);U(G,ae,Ce,"⊃","\\supset",!0);U(G,ae,Ce,"⊆","\\subseteq",!0);U(G,ae,Ce,"⊇","\\supseteq",!0);U(G,we,Ce,"⊈","\\nsubseteq",!0);U(G,we,Ce,"⊉","\\nsupseteq",!0);U(G,ae,Ce,"⊨","\\models");U(G,ae,Ce,"←","\\leftarrow",!0);U(G,ae,Ce,"≤","\\le");U(G,ae,Ce,"≤","\\leq",!0);U(G,ae,Ce,"<","\\lt",!0);U(G,ae,Ce,"→","\\rightarrow",!0);U(G,ae,Ce,"→","\\to");U(G,we,Ce,"≱","\\ngeq",!0);U(G,we,Ce,"≰","\\nleq",!0);U(G,ae,Ep," ","\\ ");U(G,ae,Ep," ","\\space");U(G,ae,Ep," ","\\nobreakspace");U(It,ae,Ep," ","\\ ");U(It,ae,Ep," "," ");U(It,ae,Ep," ","\\space");U(It,ae,Ep," ","\\nobreakspace");U(G,ae,Ep,null,"\\nobreak");U(G,ae,Ep,null,"\\allowbreak");U(G,ae,NI,",",",");U(G,ae,NI,";",";");U(G,we,gn,"⊼","\\barwedge",!0);U(G,we,gn,"⊻","\\veebar",!0);U(G,ae,gn,"⊙","\\odot",!0);U(G,ae,gn,"⊕","\\oplus",!0);U(G,ae,gn,"⊗","\\otimes",!0);U(G,ae,Fe,"∂","\\partial",!0);U(G,ae,gn,"⊘","\\oslash",!0);U(G,we,gn,"⊚","\\circledcirc",!0);U(G,we,gn,"⊡","\\boxdot",!0);U(G,ae,gn,"△","\\bigtriangleup");U(G,ae,gn,"▽","\\bigtriangledown");U(G,ae,gn,"†","\\dagger");U(G,ae,gn,"⋄","\\diamond");U(G,ae,gn,"⋆","\\star");U(G,ae,gn,"◃","\\triangleleft");U(G,ae,gn,"▹","\\triangleright");U(G,ae,Nu,"{","\\{");U(It,ae,Fe,"{","\\{");U(It,ae,Fe,"{","\\textbraceleft");U(G,ae,Jo,"}","\\}");U(It,ae,Fe,"}","\\}");U(It,ae,Fe,"}","\\textbraceright");U(G,ae,Nu,"{","\\lbrace");U(G,ae,Jo,"}","\\rbrace");U(G,ae,Nu,"[","\\lbrack",!0);U(It,ae,Fe,"[","\\lbrack",!0);U(G,ae,Jo,"]","\\rbrack",!0);U(It,ae,Fe,"]","\\rbrack",!0);U(G,ae,Nu,"(","\\lparen",!0);U(G,ae,Jo,")","\\rparen",!0);U(It,ae,Fe,"<","\\textless",!0);U(It,ae,Fe,">","\\textgreater",!0);U(G,ae,Nu,"⌊","\\lfloor",!0);U(G,ae,Jo,"⌋","\\rfloor",!0);U(G,ae,Nu,"⌈","\\lceil",!0);U(G,ae,Jo,"⌉","\\rceil",!0);U(G,ae,Fe,"\\","\\backslash");U(G,ae,Fe,"∣","|");U(G,ae,Fe,"∣","\\vert");U(It,ae,Fe,"|","\\textbar",!0);U(G,ae,Fe,"∥","\\|");U(G,ae,Fe,"∥","\\Vert");U(It,ae,Fe,"∥","\\textbardbl");U(It,ae,Fe,"~","\\textasciitilde");U(It,ae,Fe,"\\","\\textbackslash");U(It,ae,Fe,"^","\\textasciicircum");U(G,ae,Ce,"↑","\\uparrow",!0);U(G,ae,Ce,"⇑","\\Uparrow",!0);U(G,ae,Ce,"↓","\\downarrow",!0);U(G,ae,Ce,"⇓","\\Downarrow",!0);U(G,ae,Ce,"↕","\\updownarrow",!0);U(G,ae,Ce,"⇕","\\Updownarrow",!0);U(G,ae,Qa,"∐","\\coprod");U(G,ae,Qa,"⋁","\\bigvee");U(G,ae,Qa,"⋀","\\bigwedge");U(G,ae,Qa,"⨄","\\biguplus");U(G,ae,Qa,"⋂","\\bigcap");U(G,ae,Qa,"⋃","\\bigcup");U(G,ae,Qa,"∫","\\int");U(G,ae,Qa,"∫","\\intop");U(G,ae,Qa,"∬","\\iint");U(G,ae,Qa,"∭","\\iiint");U(G,ae,Qa,"∏","\\prod");U(G,ae,Qa,"∑","\\sum");U(G,ae,Qa,"⨂","\\bigotimes");U(G,ae,Qa,"⨁","\\bigoplus");U(G,ae,Qa,"⨀","\\bigodot");U(G,ae,Qa,"∮","\\oint");U(G,ae,Qa,"∯","\\oiint");U(G,ae,Qa,"∰","\\oiiint");U(G,ae,Qa,"⨆","\\bigsqcup");U(G,ae,Qa,"∫","\\smallint");U(It,ae,GO,"…","\\textellipsis");U(G,ae,GO,"…","\\mathellipsis");U(It,ae,GO,"…","\\ldots",!0);U(G,ae,GO,"…","\\ldots",!0);U(G,ae,GO,"⋯","\\@cdots",!0);U(G,ae,GO,"⋱","\\ddots",!0);U(G,ae,Fe,"⋮","\\varvdots");U(G,ae,Ki,"ˊ","\\acute");U(G,ae,Ki,"ˋ","\\grave");U(G,ae,Ki,"¨","\\ddot");U(G,ae,Ki,"~","\\tilde");U(G,ae,Ki,"ˉ","\\bar");U(G,ae,Ki,"˘","\\breve");U(G,ae,Ki,"ˇ","\\check");U(G,ae,Ki,"^","\\hat");U(G,ae,Ki,"⃗","\\vec");U(G,ae,Ki,"˙","\\dot");U(G,ae,Ki,"˚","\\mathring");U(G,ae,qn,"","\\@imath");U(G,ae,qn,"","\\@jmath");U(G,ae,Fe,"ı","ı");U(G,ae,Fe,"ȷ","ȷ");U(It,ae,Fe,"ı","\\i",!0);U(It,ae,Fe,"ȷ","\\j",!0);U(It,ae,Fe,"ß","\\ss",!0);U(It,ae,Fe,"æ","\\ae",!0);U(It,ae,Fe,"œ","\\oe",!0);U(It,ae,Fe,"ø","\\o",!0);U(It,ae,Fe,"Æ","\\AE",!0);U(It,ae,Fe,"Œ","\\OE",!0);U(It,ae,Fe,"Ø","\\O",!0);U(It,ae,Ki,"ˊ","\\'");U(It,ae,Ki,"ˋ","\\`");U(It,ae,Ki,"ˆ","\\^");U(It,ae,Ki,"˜","\\~");U(It,ae,Ki,"ˉ","\\=");U(It,ae,Ki,"˘","\\u");U(It,ae,Ki,"˙","\\.");U(It,ae,Ki,"¸","\\c");U(It,ae,Ki,"˚","\\r");U(It,ae,Ki,"ˇ","\\v");U(It,ae,Ki,"¨",'\\"');U(It,ae,Ki,"˝","\\H");U(It,ae,Ki,"◯","\\textcircled");var A0e={"--":!0,"---":!0,"``":!0,"''":!0};U(It,ae,Fe,"–","--",!0);U(It,ae,Fe,"–","\\textendash");U(It,ae,Fe,"—","---",!0);U(It,ae,Fe,"—","\\textemdash");U(It,ae,Fe,"‘","`",!0);U(It,ae,Fe,"‘","\\textquoteleft");U(It,ae,Fe,"’","'",!0);U(It,ae,Fe,"’","\\textquoteright");U(It,ae,Fe,"“","``",!0);U(It,ae,Fe,"“","\\textquotedblleft");U(It,ae,Fe,"”","''",!0);U(It,ae,Fe,"”","\\textquotedblright");U(G,ae,Fe,"°","\\degree",!0);U(It,ae,Fe,"°","\\degree");U(It,ae,Fe,"°","\\textdegree",!0);U(G,ae,Fe,"£","\\pounds");U(G,ae,Fe,"£","\\mathsterling",!0);U(It,ae,Fe,"£","\\pounds");U(It,ae,Fe,"£","\\textsterling",!0);U(G,we,Fe,"✠","\\maltese");U(It,we,Fe,"✠","\\maltese");var Xte='0123456789/@."';for(var HP=0;HP0)return ed(a,u,i,n,s.concat(c));if(l){var f,h;if(l==="boldsymbol"){var g=Gut(a,i,n,s,r);f=g.fontName,h=[g.fontClass]}else o?(f=I0e[l].fontName,h=[l]):(f=LA(l,n.fontWeight,n.fontShape),h=[l,n.fontWeight,n.fontShape]);if(PI(a,f,i).metrics)return ed(a,f,i,n,s.concat(h));if(A0e.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var b=[],S=0;S{if(d0(e.classes)!==d0(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Xut=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},gl=function(t,n,r,i){var a=new HT(t,n,r,i);return eW(a),a},_0e=(e,t,n,r)=>new HT(e,t,n,r),Kut=function(t,n,r){var i=gl([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Jt(i.height),i.maxFontSize=1,i},Jut=function(t,n,r,i){var a=new JV(t,n,r,i);return eW(a),a},R0e=function(t){var n=new jT(t);return eW(n),n},ect=function(t,n){return t instanceof jT?gl([],[t],n):t},tct=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=gl(["mspace"],[],t),r=aa(e,t);return n.style.marginRight=Jt(r),n},LA=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},I0e={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},D0e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ict=function(t,n){var[r,i,a]=D0e[t],s=new f0(r),o=new up([s],{width:Jt(i),height:Jt(a),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=_0e(["overlay"],[o],n);return l.height=a,l.style.height=Jt(a),l.style.width=Jt(i),l},it={fontMap:I0e,makeSymbol:ed,mathsym:qut,makeSpan:gl,makeSvgSpan:_0e,makeLineSpan:Kut,makeAnchor:Jut,makeFragment:R0e,wrapFragment:ect,makeVList:nct,makeOrd:Yut,makeGlue:rct,staticSvg:ict,svgData:D0e,tryCombineChars:Xut},na={number:3,unit:"mu"},hg={number:4,unit:"mu"},Eh={number:5,unit:"mu"},act={mord:{mop:na,mbin:hg,mrel:Eh,minner:na},mop:{mord:na,mop:na,mrel:Eh,minner:na},mbin:{mord:hg,mop:hg,mopen:hg,minner:hg},mrel:{mord:Eh,mop:Eh,mopen:Eh,minner:Eh},mopen:{},mclose:{mop:na,mbin:hg,mrel:Eh,minner:na},mpunct:{mord:na,mop:na,mrel:Eh,mopen:na,mclose:na,mpunct:na,minner:na},minner:{mord:na,mop:na,mbin:hg,mrel:Eh,mopen:na,mpunct:na,minner:na}},sct={mord:{mop:na},mop:{mord:na,mop:na},mbin:{},mrel:{},mopen:{},mclose:{mop:na},mpunct:{},minner:{mop:na}},N0e={},Z3={},X3={};function dn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var E=S.classes[0],w=b.classes[0];E==="mbin"&&tr.contains(lct,w)?S.classes[0]="mord":w==="mbin"&&tr.contains(oct,E)&&(b.classes[0]="mord")},{node:f},h,g),nne(a,(b,S)=>{var E=jL(S),w=jL(b),x=E&&w?b.hasClass("mtight")?sct[E][w]:act[E][w]:null;if(x)return it.makeGlue(x,u)},{node:f},h,g),a},nne=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sh=>{t.splice(f+1,0,h),s++})(s)}i&&t.pop()},P0e=function(t){return t instanceof jT||t instanceof JV||t instanceof HT&&t.hasClass("enclosing")?t:null},dct=function e(t,n){var r=P0e(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},jL=function(t,n){return t?(n&&(t=dct(t,n)),cct[t.classes[0]]||null):null},hx=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return cp(n.concat(r))},Yr=function(t,n,r){if(!t)return cp();if(Z3[t.type]){var i=Z3[t.type](t,n);if(r&&n.size!==r.size){i=cp(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Ht("Got group of unknown type: '"+t.type+"'")};function $A(e,t){var n=cp(["base"],e,t),r=cp(["strut"]);return r.style.height=Jt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Jt(-n.depth)),n.children.unshift(r),n}function HL(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=os(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push($A(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push($A(s,t));var u;n?(u=$A(os(n,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var c=cp(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Jt(c.height+c.depth),c.depth&&(f.style.verticalAlign=Jt(-c.depth))}return c}function M0e(e){return new jT(e)}class cc{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=d0(this.classes));for(var r=0;r0&&(t+=' class ="'+tr.escape(d0(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Y2{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return tr.escape(this.toText())}toText(){return this.text}}class fct{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Jt(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Ft={MathNode:cc,TextNode:Y2,SpaceNode:fct,newDocumentFragment:M0e},_c=function(t,n,r){return Ii[n][t]&&Ii[n][t].replace&&t.charCodeAt(0)!==55349&&!(A0e.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ii[n][t].replace),new Ft.TextNode(t)},tW=function(t){return t.length===1?t[0]:new Ft.MathNode("mrow",t)},nW=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(tr.contains(["\\imath","\\jmath"],a))return null;Ii[i][a]&&Ii[i][a].replace&&(a=Ii[i][a].replace);var s=it.fontMap[r].fontName;return KV(a,s,i)?it.fontMap[r].variant:null},Rl=function(t,n,r){if(t.length===1){var i=xi(t[0],n);return r&&i instanceof cc&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),s=l}return a},h0=function(t,n,r){return tW(Rl(t,n,r))},xi=function(t,n){if(!t)return new Ft.MathNode("mrow");if(X3[t.type]){var r=X3[t.type](t,n);return r}else throw new Ht("Got group of unknown type: '"+t.type+"'")};function rne(e,t,n,r,i){var a=Rl(e,n),s;a.length===1&&a[0]instanceof cc&&tr.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new Ft.MathNode("mrow",a);var o=new Ft.MathNode("annotation",[new Ft.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new Ft.MathNode("semantics",[s,o]),u=new Ft.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var c=i?"katex":"katex-mathml";return it.makeSpan([c],[u])}var L0e=function(t){return new Ph({style:t.displayMode?Gn.DISPLAY:Gn.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},$0e=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=it.makeSpan(r,[t])}return t},hct=function(t,n,r){var i=L0e(r),a;if(r.output==="mathml")return rne(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=HL(t,i);a=it.makeSpan(["katex"],[s])}else{var o=rne(t,n,i,r.displayMode,!1),l=HL(t,i);a=it.makeSpan(["katex"],[o,l])}return $0e(a,r)},pct=function(t,n,r){var i=L0e(r),a=HL(t,i),s=it.makeSpan(["katex"],[a]);return $0e(s,r)},mct={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},gct=function(t){var n=new Ft.MathNode("mo",[new Ft.TextNode(mct[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},bct={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},yct=function(t){return t.type==="ordgroup"?t.body.length:1},vct=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(tr.contains(["widehat","widecheck","widetilde","utilde"],l)){var u=t,c=yct(u.base),f,h,g;if(c>5)l==="widehat"||l==="widecheck"?(f=420,o=2364,g=.42,h=l+"4"):(f=312,o=2340,g=.34,h="tilde4");else{var b=[1,1,2,2,3,3][c];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][b],f=[0,239,300,360,420][b],g=[0,.24,.3,.3,.36,.42][b],h=l+b):(o=[0,600,1033,2339,2340][b],f=[0,260,286,306,312][b],g=[0,.26,.286,.3,.306,.34][b],h="tilde"+b)}var S=new f0(h),E=new up([S],{width:"100%",height:Jt(g),viewBox:"0 0 "+o+" "+f,preserveAspectRatio:"none"});return{span:it.makeSvgSpan([],[E],n),minWidth:0,height:g}}else{var w=[],x=bct[l],[k,C,R]=x,A=R/1e3,D=k.length,B,L;if(D===1){var F=x[3];B=["hide-tail"],L=[F]}else if(D===2)B=["halfarrow-left","halfarrow-right"],L=["xMinYMin","xMaxYMin"];else if(D===3)B=["brace-left","brace-center","brace-right"],L=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+D+" children.");for(var W=0;W0&&(i.style.minWidth=Jt(a)),i},Oct=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=it.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new UL({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new UL({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new up(u,{width:"100%",height:Jt(o)});s=it.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=Jt(o),s},dp={encloseSpan:Oct,mathMLnode:gct,svgSpan:vct};function br(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function rW(e){var t=MI(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function MI(e){return e&&(e.type==="atom"||Wut.hasOwnProperty(e.type))?e:null}var iW=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=br(e.base,"accent"),n=r.base,e.base=n,i=Hut(Yr(e,t)),e.base=r):(r=br(e,"accent"),n=r.base);var a=Yr(n,t.havingCrampedStyle()),s=r.isShifty&&tr.isCharacterBox(n),o=0;if(s){var l=tr.getBaseElem(n),u=Yr(l,t.havingCrampedStyle());o=Zte(u).skew}var c=r.label==="\\c",f=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),h;if(r.isStretchy)h=dp.svgSpan(r,t),h=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Jt(2*o)+")",marginLeft:Jt(2*o)}:void 0}]},t);else{var g,b;r.label==="\\vec"?(g=it.staticSvg("vec",t),b=it.svgData.vec[1]):(g=it.makeOrd({mode:r.mode,text:r.label},t,"textord"),g=Zte(g),g.italic=0,b=g.width,c&&(f+=g.depth)),h=it.makeSpan(["accent-body"],[g]);var S=r.label==="\\textcircled";S&&(h.classes.push("accent-full"),f=a.height);var E=o;S||(E-=b/2),h.style.left=Jt(E),r.label==="\\textcircled"&&(h.style.top=".2em"),h=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:h}]},t)}var w=it.makeSpan(["mord","accent"],[h],t);return i?(i.children[0]=w,i.height=Math.max(w.height,i.height),i.classes[0]="mord",i):w},F0e=(e,t)=>{var n=e.isStretchy?dp.mathMLnode(e.label):new Ft.MathNode("mo",[_c(e.label,e.mode)]),r=new Ft.MathNode("mover",[xi(e.base,t),n]);return r.setAttribute("accent","true"),r},Sct=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));dn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=K3(t[0]),r=!Sct.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:iW,mathmlBuilder:F0e});dn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:iW,mathmlBuilder:F0e});dn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Yr(e.base,t),r=dp.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=it.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return it.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=dp.mathMLnode(e.label),r=new Ft.MathNode("munder",[xi(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var FA=e=>{var t=new Ft.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};dn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=it.wrapFragment(Yr(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=it.wrapFragment(Yr(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=dp.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var c;if(s){var f=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:f}]},t)}else c=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),it.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=dp.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=FA(xi(e.body,t));if(e.below){var a=FA(xi(e.below,t));r=new Ft.MathNode("munderover",[n,a,i])}else r=new Ft.MathNode("mover",[n,i])}else if(e.below){var s=FA(xi(e.below,t));r=new Ft.MathNode("munder",[n,s])}else r=FA(),r=new Ft.MathNode("mover",[n,r]);return r}});var Ect=it.makeSpan;function B0e(e,t){var n=os(e.body,t,!0);return Ect([e.mclass],n,t)}function U0e(e,t){var n,r=Rl(e.body,t);return e.mclass==="minner"?n=new Ft.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Ft.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Ft.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}dn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:$a(i),isCharacterBox:tr.isCharacterBox(i)}},htmlBuilder:B0e,mathmlBuilder:U0e});var LI=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};dn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:LI(t[0]),body:$a(t[1]),isCharacterBox:tr.isCharacterBox(t[1])}}});dn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=LI(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:$a(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:tr.isCharacterBox(l)}},htmlBuilder:B0e,mathmlBuilder:U0e});dn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:LI(t[0]),body:$a(t[0])}},htmlBuilder(e,t){var n=os(e.body,t,!0),r=it.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Rl(e.body,t),r=new Ft.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var wct={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ine=()=>({type:"styling",body:[],mode:"math",style:"display"}),ane=e=>e.type==="textord"&&e.text==="@",xct=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Tct(e,t,n){var r=wct[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function kct(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ht("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var h=!0,g=l+1;gAV=|." after @',s[l]);var b=Tct(u,c,e),S={type:"styling",body:[b],mode:"math",style:"display"};r.push(S),o=ine()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var E=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:E,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}dn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=it.wrapFragment(Yr(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Jt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Ft.MathNode("mrow",[xi(e.label,t)]);return n=new Ft.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ft.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});dn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=it.wrapFragment(Yr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ft.MathNode("mrow",[xi(e.fragment,t)])}});dn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=br(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new Ht("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var z0e=(e,t)=>{var n=os(e.body,t.withColor(e.color),!1);return it.makeFragment(n)},j0e=(e,t)=>{var n=Rl(e.body,t.withColor(e.color)),r=new Ft.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};dn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=br(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:$a(i)}},htmlBuilder:z0e,mathmlBuilder:j0e});dn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=br(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:z0e,mathmlBuilder:j0e});dn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&br(i,"size").value}},htmlBuilder(e,t){var n=it.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Jt(aa(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ft.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Jt(aa(e.size,t)))),n}});var VL={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},H0e=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ht("Expected a control sequence",e);return t},Cct=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},V0e=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};dn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(VL[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=VL[r.text]),br(t.parseFunction(),"internal");throw new Ht("Invalid token after macro prefix",r)}});dn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Ht("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ht('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Ht('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Ht("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===VL[n]),{type:"internal",mode:t.mode}}});dn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=H0e(t.gullet.popToken());t.gullet.consumeSpaces();var i=Cct(t);return V0e(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});dn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=H0e(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return V0e(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var c2=function(t,n,r){var i=Ii.math[t]&&Ii.math[t].replace,a=KV(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},aW=function(t,n,r,i){var a=r.havingBaseStyle(n),s=it.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},W0e=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Jt(a),t.height-=a,t.depth+=a},Act=function(t,n,r,i,a,s){var o=it.makeSymbol(t,"Main-Regular",a,i),l=aW(o,n,i,s);return r&&W0e(l,i,n),l},_ct=function(t,n,r,i){return it.makeSymbol(t,"Size"+n+"-Regular",r,i)},Q0e=function(t,n,r,i,a,s){var o=_ct(t,n,a,i),l=aW(it.makeSpan(["delimsizing","size"+n],[o],i),Gn.TEXT,i,s);return r&&W0e(l,i,Gn.TEXT),l},qP=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=it.makeSpan(["delimsizinginner",i],[it.makeSpan([],[it.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},GP=function(t,n,r){var i=Cf["Size4-Regular"][t.charCodeAt(0)]?Cf["Size4-Regular"][t.charCodeAt(0)][4]:Cf["Size1-Regular"][t.charCodeAt(0)][4],a=new f0("inner",Mut(t,Math.round(1e3*n))),s=new up([a],{width:Jt(i),height:Jt(n),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=it.makeSvgSpan([],[s],r);return o.height=n,o.style.height=Jt(n),o.style.width=Jt(i),{type:"elem",elem:o}},WL=.008,BA={type:"kern",size:-1*WL},Rct=["|","\\lvert","\\rvert","\\vert"],Ict=["\\|","\\lVert","\\rVert","\\Vert"],q0e=function(t,n,r,i,a,s){var o,l,u,c,f="",h=0;o=u=c=t,l=null;var g="Size1-Regular";t==="\\uparrow"?u=c="⏐":t==="\\Uparrow"?u=c="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",c="\\Downarrow"):tr.contains(Rct,t)?(u="∣",f="vert",h=333):tr.contains(Ict,t)?(u="∥",f="doublevert",h=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",c="⎣",g="Size4-Regular",f="lbrack",h=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",c="⎦",g="Size4-Regular",f="rbrack",h=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",c="⎣",g="Size4-Regular",f="lfloor",h=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=c="⎢",g="Size4-Regular",f="lceil",h=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",c="⎦",g="Size4-Regular",f="rfloor",h=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=c="⎥",g="Size4-Regular",f="rceil",h=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",c="⎝",g="Size4-Regular",f="lparen",h=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",c="⎠",g="Size4-Regular",f="rparen",h=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",c="⎩",u="⎪",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",c="⎭",u="⎪",g="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",u="⎪",g="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",u="⎪",g="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",u="⎪",g="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",u="⎪",g="Size4-Regular");var b=c2(o,g,a),S=b.height+b.depth,E=c2(u,g,a),w=E.height+E.depth,x=c2(c,g,a),k=x.height+x.depth,C=0,R=1;if(l!==null){var A=c2(l,g,a);C=A.height+A.depth,R=2}var D=S+k+C,B=Math.max(0,Math.ceil((n-D)/(R*w))),L=D+B*R*w,F=i.fontMetrics().axisHeight;r&&(F*=i.sizeMultiplier);var W=L/2-F,V=[];if(f.length>0){var Z=L-S-k,Q=Math.round(L*1e3),H=Lut(f,Math.round(Z*1e3)),J=new f0(f,H),K=(h/1e3).toFixed(3)+"em",X=(Q/1e3).toFixed(3)+"em",te=new up([J],{width:K,height:X,viewBox:"0 0 "+h+" "+Q}),z=it.makeSvgSpan([],[te],i);z.height=Q/1e3,z.style.width=K,z.style.height=X,V.push({type:"elem",elem:z})}else{if(V.push(qP(c,g,a)),V.push(BA),l===null){var Te=L-S-k+2*WL;V.push(GP(u,Te,i))}else{var be=(L-S-k-C)/2+2*WL;V.push(GP(u,be,i)),V.push(BA),V.push(qP(l,g,a)),V.push(BA),V.push(GP(u,be,i))}V.push(BA),V.push(qP(o,g,a))}var ee=i.havingBaseStyle(Gn.TEXT),ye=it.makeVList({positionType:"bottom",positionData:W,children:V},ee);return aW(it.makeSpan(["delimsizing","mult"],[ye],ee),Gn.TEXT,i,s)},YP=80,ZP=.08,XP=function(t,n,r,i,a){var s=Put(t,i,r),o=new f0(t,s),l=new up([o],{width:"400em",height:Jt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return it.makeSvgSpan(["hide-tail"],[l],a)},Dct=function(t,n){var r=n.havingBaseSizing(),i=X0e("\\surd",t*r.sizeMultiplier,Z0e,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,u=0,c=0,f;return i.type==="small"?(c=1e3+1e3*s+YP,t<1?a=1:t<1.4&&(a=.7),l=(1+s+ZP)/a,u=(1+s)/a,o=XP("sqrtMain",l,c,s,n),o.style.minWidth="0.853em",f=.833/a):i.type==="large"?(c=(1e3+YP)*Z2[i.size],u=(Z2[i.size]+s)/a,l=(Z2[i.size]+s+ZP)/a,o=XP("sqrtSize"+i.size,l,c,s,n),o.style.minWidth="1.02em",f=1/a):(l=t+s+ZP,u=t+s,c=Math.floor(1e3*t+s)+YP,o=XP("sqrtTall",l,c,s,n),o.style.minWidth="0.742em",f=1.056),o.height=u,o.style.height=Jt(l),{span:o,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},G0e=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Nct=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Y0e=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Z2=[0,1.2,1.8,2.4,3],Pct=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),tr.contains(G0e,t)||tr.contains(Y0e,t))return Q0e(t,n,!1,r,i,a);if(tr.contains(Nct,t))return q0e(t,Z2[n],!1,r,i,a);throw new Ht("Illegal delimiter: '"+t+"'")},Mct=[{type:"small",style:Gn.SCRIPTSCRIPT},{type:"small",style:Gn.SCRIPT},{type:"small",style:Gn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Lct=[{type:"small",style:Gn.SCRIPTSCRIPT},{type:"small",style:Gn.SCRIPT},{type:"small",style:Gn.TEXT},{type:"stack"}],Z0e=[{type:"small",style:Gn.SCRIPTSCRIPT},{type:"small",style:Gn.SCRIPT},{type:"small",style:Gn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],$ct=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},X0e=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},K0e=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;tr.contains(Y0e,t)?o=Mct:tr.contains(G0e,t)?o=Z0e:o=Lct;var l=X0e(t,n,o,i);return l.type==="small"?Act(t,l.style,r,i,a,s):l.type==="large"?Q0e(t,l.size,r,i,a,s):q0e(t,n,r,i,a,s)},Fct=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),f=Math.max(c/500*l,2*c-u);return K0e(t,f,!0,i,a,s)},qh={sqrtImage:Dct,sizedDelim:Pct,sizeToMaxHeight:Z2,customSizedDelim:K0e,leftRightDelim:Fct},sne={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Bct=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function $I(e,t){var n=MI(e);if(n&&tr.contains(Bct,n.text))return n;throw n?new Ht("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ht("Invalid delimiter type '"+e.type+"'",e)}dn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=$I(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:sne[e.funcName].size,mclass:sne[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?it.makeSpan([e.mclass]):qh.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(_c(e.delim,e.mode));var n=new Ft.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Jt(qh.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function one(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}dn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ht("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:$I(t[0],e).text,color:n}}});dn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=$I(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=br(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{one(e);for(var n=os(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{one(e);var n=Rl(e.body,t);if(e.left!=="."){var r=new Ft.MathNode("mo",[_c(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Ft.MathNode("mo",[_c(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return tW(n)}});dn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=$I(t[0],e);if(!e.parser.leftrightDepth)throw new Ht("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=hx(t,[]);else{n=qh.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?_c("|","text"):_c(e.delim,e.mode),r=new Ft.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var sW=(e,t)=>{var n=it.wrapFragment(Yr(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=tr.isCharacterBox(e.body);if(r==="sout")a=it.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=aa({number:.6,unit:"pt"},t),u=aa({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Jt(f/2+l);var h=Math.floor(1e3*f*i),g=Dut(h),b=new up([new f0("phase",g)],{width:"400em",height:Jt(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});a=it.makeSvgSpan(["hide-tail"],[b],t),a.style.height=Jt(f),s=n.depth+l+u}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,E=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),E=S):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*w,E=Math.max(0,.25-n.depth)):(S=o?.2:0,E=S),a=dp.encloseSpan(n,r,S,E,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Jt(w)):r==="angl"&&w!==.049&&(a.style.borderTopWidth=Jt(w),a.style.borderRightWidth=Jt(w)),s=n.depth+E,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?it.makeSpan(["mord","cancel-lap"],[x],t):it.makeSpan(["mord"],[x],t)},oW=(e,t)=>{var n=0,r=new Ft.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[xi(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};dn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=br(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:sW,mathmlBuilder:oW});dn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=br(t[0],"color-token").color,s=br(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:sW,mathmlBuilder:oW});dn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});dn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:sW,mathmlBuilder:oW});dn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var J0e={};function Jf(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new Ht("{"+e.envName+"} can be used only in display mode.")};function lW(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function I0(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:c,maxNumCols:f,leqno:h}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)s=1;else if(s=parseFloat(g),!s||s<0)throw new Ht("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var b=[],S=[b],E=[],w=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new Ff("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),w.push(lne(e));;){var R=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},n&&(R={type:"styling",mode:e.mode,style:n,body:[R]}),b.push(R);var A=e.fetch().text;if(A==="&"){if(f&&b.length===f){if(u||o)throw new Ht("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(A==="\\end"){C(),b.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(S.length>1||!c)&&S.pop(),w.length0&&(k+=.25),u.push({pos:k,isDashed:Je[pe]})}for(C(s[0]),r=0;r0&&(W+=x,DJe))for(r=0;r=o)){var _e=void 0;(i>0||t.hskipBeforeAndAfter)&&(_e=tr.deflt(be.pregap,h),_e!==0&&(H=it.makeSpan(["arraycolsep"],[]),H.style.width=Jt(_e),Q.push(H)));var Ie=[];for(r=0;r0){for(var tt=it.makeLineSpan("hline",n,c),Ve=it.makeLineSpan("hdashline",n,c),Xe=[{type:"elem",elem:l,shift:0}];u.length>0;){var et=u.pop(),dt=et.pos-V;et.isDashed?Xe.push({type:"elem",elem:Ve,shift:dt}):Xe.push({type:"elem",elem:tt,shift:dt})}l=it.makeVList({positionType:"individualShift",children:Xe},n)}if(K.length===0)return it.makeSpan(["mord"],[l],n);var At=it.makeVList({positionType:"individualShift",children:K},n);return At=it.makeSpan(["tag"],[At],n),it.makeFragment([l,At])},Uct={c:"center ",l:"left ",r:"right "},th=function(t,n){for(var r=[],i=new Ft.MathNode("mtd",[],["mtr-glue"]),a=new Ft.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,S="",E=!1,w=0,x=b.length;b[0].type==="separator"&&(h+="top ",w=1),b[b.length-1].type==="separator"&&(h+="bottom ",x-=1);for(var k=w;k0?"left ":"",h+=B[B.length-1].length>0?"right ":"";for(var L=1;L-1?"alignat":"align",a=t.envName==="split",s=I0(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:lW(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",f=0;f0&&g&&(E=1),r[b]={type:"align",align:S,pregap:E,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};Jf({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=MI(t[0]),r=n?[t[0]]:br(t[0],"ordgroup").body,i=r.map(function(s){var o=rW(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Ht("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return I0(e.parser,a,uW(e.envName))},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Ht("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=I0(e.parser,r,uW(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=I0(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=MI(t[0]),r=n?[t[0]]:br(t[0],"ordgroup").body,i=r.map(function(s){var o=rW(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Ht("Unknown column alignment: "+l,s)});if(i.length>1)throw new Ht("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=I0(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Ht("{subarray} can contain only one column");return a},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=I0(e.parser,t,uW(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:tge,htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){tr.contains(["gather","gather*"],e.envName)&&FI(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:lW(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return I0(e.parser,t,"display")},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:tge,htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){FI(e);var t={autoTag:lW(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return I0(e.parser,t,"display")},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["CD"],props:{numArgs:0},handler(e){return FI(e),kct(e.parser)},htmlBuilder:eh,mathmlBuilder:th});ue("\\nonumber","\\gdef\\@eqnsw{0}");ue("\\notag","\\nonumber");dn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ht(e.funcName+" valid only within array environment")}});var une=J0e;dn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Ht("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Yr(e.body,r)},rge=(e,t)=>{var n=e.font,r=t.withFont(n);return xi(e.body,r)},cne={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};dn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=K3(t[0]),a=r;return a in cne&&(a=cne[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:nge,mathmlBuilder:rge});dn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=tr.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:LI(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});dn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:nge,mathmlBuilder:rge});var ige=(e,t)=>{var n=t;return e==="display"?n=n.id>=Gn.SCRIPT.id?n.text():Gn.DISPLAY:e==="text"&&n.size===Gn.DISPLAY.size?n=Gn.TEXT:e==="script"?n=Gn.SCRIPT:e==="scriptscript"&&(n=Gn.SCRIPTSCRIPT),n},cW=(e,t)=>{var n=ige(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Yr(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*h:b=7*h,S=t.fontMetrics().denom1):(f>0?(g=t.fontMetrics().num2,b=h):(g=t.fontMetrics().num3,b=3*h),S=t.fontMetrics().denom2);var E;if(c){var x=t.fontMetrics().axisHeight;g-s.depth-(x+.5*f){var n=new Ft.MathNode("mfrac",[xi(e.numer,t),xi(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=aa(e.barSize,t);n.setAttribute("linethickness",Jt(r))}var i=ige(e.size,t.style);if(i.size!==t.style.size){n=new Ft.MathNode("mstyle",[n]);var a=i.size===Gn.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Ft.MathNode("mo",[new Ft.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new Ft.MathNode("mo",[new Ft.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return tW(s)}return n};dn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:cW,mathmlBuilder:dW});dn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});dn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var dne=["display","text","script","scriptscript"],fne=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};dn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=K3(t[0]),s=a.type==="atom"&&a.family==="open"?fne(a.text):null,o=K3(t[1]),l=o.type==="atom"&&o.family==="close"?fne(o.text):null,u=br(t[2],"size"),c,f=null;u.isBlank?c=!0:(f=u.value,c=f.number>0);var h="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var b=br(g.body[0],"textord");h=dne[Number(b.text)]}}else g=br(g,"textord"),h=dne[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:f,leftDelim:s,rightDelim:l,size:h}},htmlBuilder:cW,mathmlBuilder:dW});dn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:br(t[0],"size").value,token:i}}});dn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=but(br(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:cW,mathmlBuilder:dW});var age=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Yr(e.sup,t.havingStyle(n.sup()),t):Yr(e.sub,t.havingStyle(n.sub()),t),i=br(e.base,"horizBrace")):i=br(e,"horizBrace");var a=Yr(i.base,t.havingBaseStyle(Gn.DISPLAY)),s=dp.svgSpan(i,t),o;if(i.isOver?(o=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=it.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=it.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=it.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return it.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},zct=(e,t)=>{var n=dp.mathMLnode(e.label);return new Ft.MathNode(e.isOver?"mover":"munder",[xi(e.base,t),n])};dn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:age,mathmlBuilder:zct});dn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=br(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:$a(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=os(e.body,t,!1);return it.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=h0(e.body,t);return n instanceof cc||(n=new cc("mrow",[n])),n.setAttribute("href",e.href),n}});dn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=br(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=br(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),c=0;c{var n=os(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=it.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>h0(e.body,t)});dn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:$a(t[0]),mathml:$a(t[1])}},htmlBuilder:(e,t)=>{var n=os(e.html,t,!1);return it.makeFragment(n)},mathmlBuilder:(e,t)=>h0(e.mathml,t)});var KP=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Ht("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!x0e(r))throw new Ht("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};dn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=br(n[0],"raw").string,u=l.split(","),c=0;c{var n=aa(e.height,t),r=0;e.totalheight.number>0&&(r=aa(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=aa(e.width,t));var a={height:Jt(n+r)};i>0&&(a.width=Jt(i)),r>0&&(a.verticalAlign=Jt(-r));var s=new zut(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Ft.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=aa(e.height,t),i=0;if(e.totalheight.number>0&&(i=aa(e.totalheight,t)-r,n.setAttribute("valign",Jt(-i))),n.setAttribute("height",Jt(r+i)),e.width.number>0){var a=aa(e.width,t);n.setAttribute("width",Jt(a))}return n.setAttribute("src",e.src),n}});dn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=br(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return it.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=aa(e.dimension,t);return new Ft.SpaceNode(n)}});dn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=it.makeSpan([],[Yr(e.body,t)]),n=it.makeSpan(["inner"],[n],t)):n=it.makeSpan(["inner"],[Yr(e.body,t)]);var r=it.makeSpan(["fix"],[]),i=it.makeSpan([e.alignment],[n,r],t),a=it.makeSpan(["strut"]);return a.style.height=Jt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Jt(-i.depth)),i.children.unshift(a),i=it.makeSpan(["thinbox"],[i],t),it.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Ft.MathNode("mpadded",[xi(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});dn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});dn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ht("Mismatched "+e.funcName)}});var hne=(e,t)=>{switch(t.style.size){case Gn.DISPLAY.size:return e.display;case Gn.TEXT.size:return e.text;case Gn.SCRIPT.size:return e.script;case Gn.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};dn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:$a(t[0]),text:$a(t[1]),script:$a(t[2]),scriptscript:$a(t[3])}},htmlBuilder:(e,t)=>{var n=hne(e,t),r=os(n,t,!1);return it.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=hne(e,t);return h0(n,t)}});var sge=(e,t,n,r,i,a,s)=>{e=it.makeSpan([],[e]);var o=n&&tr.isCharacterBox(n),l,u;if(t){var c=Yr(t,r.havingStyle(i.sup()),r);u={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var f=Yr(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var h;if(u&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;h=it.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var b=e.height-s;h=it.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var S=e.depth+s;h=it.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var E=[h];if(l&&a!==0&&!o){var w=it.makeSpan(["mspace"],[],r);w.style.marginRight=Jt(a),E.unshift(w)}return it.makeSpan(["mop","op-limits"],E,r)},oge=["\\smallint"],YO=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=br(e.base,"op"),i=!0):a=br(e,"op");var s=t.style,o=!1;s.size===Gn.DISPLAY.size&&a.symbol&&!tr.contains(oge,a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),l=it.makeSymbol(a.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var f=l.italic,h=it.staticSvg(c+"Size"+(o?"2":"1"),t);l=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:h,shift:o?.08:0}]},t),a.name="\\"+c,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var g=os(a.body,t,!0);g.length===1&&g[0]instanceof Ac?(l=g[0],l.classes[0]="mop"):l=it.makeSpan(["mop"],g,t)}else{for(var b=[],S=1;S{var n;if(e.symbol)n=new cc("mo",[_c(e.name,e.mode)]),tr.contains(oge,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new cc("mo",Rl(e.body,t));else{n=new cc("mi",[new Y2(e.name.slice(1))]);var r=new cc("mo",[_c("⁡","text")]);e.parentIsSupSub?n=new cc("mrow",[n,r]):n=M0e([n,r])}return n},jct={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};dn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=jct[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:YO,mathmlBuilder:VT});dn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:$a(r)}},htmlBuilder:YO,mathmlBuilder:VT});var Hct={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};dn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:YO,mathmlBuilder:VT});dn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:YO,mathmlBuilder:VT});dn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Hct[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:YO,mathmlBuilder:VT});var lge=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=br(e.base,"operatorname"),i=!0):a=br(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(f=>{var h=f.text;return typeof h=="string"?{type:"textord",mode:f.mode,text:h}:f}),l=os(o,t.withFont("mathrm"),!0),u=0;u{for(var n=Rl(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new Ft.TextNode(o)]}var l=new Ft.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Ft.MathNode("mo",[_c("⁡","text")]);return e.parentIsSupSub?new Ft.MathNode("mrow",[l,u]):Ft.newDocumentFragment([l,u])};dn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:$a(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:lge,mathmlBuilder:Vct});ue("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");M1({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?it.makeFragment(os(e.body,t,!1)):it.makeSpan(["mord"],os(e.body,t,!0),t)},mathmlBuilder(e,t){return h0(e.body,t,!0)}});dn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Yr(e.body,t.havingCrampedStyle()),r=it.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return it.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Ft.MathNode("mo",[new Ft.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ft.MathNode("mover",[xi(e.body,t),n]);return r.setAttribute("accent","true"),r}});dn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:$a(r)}},htmlBuilder:(e,t)=>{var n=os(e.body,t.withPhantom(),!1);return it.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Rl(e.body,t);return new Ft.MathNode("mphantom",n)}});dn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=it.makeSpan([],[Yr(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Rl($a(e.body),t),r=new Ft.MathNode("mphantom",n),i=new Ft.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});dn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=it.makeSpan(["inner"],[Yr(e.body,t.withPhantom())]),r=it.makeSpan(["fix"],[]);return it.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Rl($a(e.body),t),r=new Ft.MathNode("mphantom",n),i=new Ft.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});dn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=br(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Yr(e.body,t),r=aa(e.dy,t);return it.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Ft.MathNode("mpadded",[xi(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});dn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});dn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=br(t[0],"size"),s=br(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&br(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=it.makeSpan(["mord","rule"],[],t),r=aa(e.width,t),i=aa(e.height,t),a=e.shift?aa(e.shift,t):0;return n.style.borderRightWidth=Jt(r),n.style.borderTopWidth=Jt(i),n.style.bottom=Jt(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=aa(e.width,t),r=aa(e.height,t),i=e.shift?aa(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Ft.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Jt(n)),s.setAttribute("height",Jt(r));var o=new Ft.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",Jt(i)):(o.setAttribute("height",Jt(i)),o.setAttribute("depth",Jt(-i))),o.setAttribute("voffset",Jt(i)),o}});function uge(e,t,n){for(var r=os(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return uge(e.body,n,t)};dn({type:"sizing",names:pne,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:pne.indexOf(r)+1,body:a}},htmlBuilder:Wct,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Rl(e.body,n),i=new Ft.MathNode("mstyle",r);return i.setAttribute("mathsize",Jt(n.sizeMultiplier)),i}});dn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&br(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=it.makeSpan([],[Yr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new Ft.MathNode("mpadded",[xi(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});dn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Yr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=it.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+f-n.height-n.depth)/2);var h=l.height-n.height-s-u;n.style.paddingLeft=Jt(c);var g=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var b=t.havingStyle(Gn.SCRIPTSCRIPT),S=Yr(e.index,b,t),E=.6*(g.height-g.depth),w=it.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:S}]},t),x=it.makeSpan(["root"],[w]);return it.makeSpan(["mord","sqrt"],[x,g],t)}else return it.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Ft.MathNode("mroot",[xi(n,t),xi(r,t)]):new Ft.MathNode("msqrt",[xi(n,t)])}});var mne={display:Gn.DISPLAY,text:Gn.TEXT,script:Gn.SCRIPT,scriptscript:Gn.SCRIPTSCRIPT};dn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=mne[e.style],r=t.havingStyle(n).withFont("");return uge(e.body,r,t)},mathmlBuilder(e,t){var n=mne[e.style],r=t.havingStyle(n),i=Rl(e.body,r),a=new Ft.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Qct=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Gn.DISPLAY.size||r.alwaysHandleSupSub);return i?YO:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Gn.DISPLAY.size||r.limits);return a?lge:null}else{if(r.type==="accent")return tr.isCharacterBox(r.base)?iW:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?age:null}else return null}else return null};M1({type:"supsub",htmlBuilder(e,t){var n=Qct(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Yr(r,t),o,l,u=t.fontMetrics(),c=0,f=0,h=r&&tr.isCharacterBox(r);if(i){var g=t.havingStyle(t.style.sup());o=Yr(i,g,t),h||(c=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());l=Yr(a,b,t),h||(f=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Gn.DISPLAY?S=u.sup1:t.style.cramped?S=u.sup3:S=u.sup2;var E=t.sizeMultiplier,w=Jt(.5/u.ptPerEm/E),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Ac||k)&&(x=Jt(-s.italic))}var C;if(o&&l){c=Math.max(c,S,o.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var R=u.defaultRuleThickness,A=4*R;if(c-o.depth-(l.height-f)0&&(c+=D,f-=D)}var B=[{type:"elem",elem:l,shift:f,marginRight:w,marginLeft:x},{type:"elem",elem:o,shift:-c,marginRight:w}];C=it.makeVList({positionType:"individualShift",children:B},t)}else if(l){f=Math.max(f,u.sub1,l.height-.8*u.xHeight);var L=[{type:"elem",elem:l,marginLeft:x,marginRight:w}];C=it.makeVList({positionType:"shift",positionData:f,children:L},t)}else if(o)c=Math.max(c,S,o.depth+.25*u.xHeight),C=it.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var F=jL(s,"right")||"mord";return it.makeSpan([F],[s,it.makeSpan(["msupsub"],[C])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[xi(e.base,t)];e.sub&&a.push(xi(e.sub,t)),e.sup&&a.push(xi(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Gn.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Gn.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Gn.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Gn.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Gn.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Gn.DISPLAY)?s="mover":s="msup"}return new Ft.MathNode(s,a)}});M1({type:"atom",htmlBuilder(e,t){return it.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ft.MathNode("mo",[_c(e.text,e.mode)]);if(e.family==="bin"){var r=nW(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var cge={mi:"italic",mn:"normal",mtext:"normal"};M1({type:"mathord",htmlBuilder(e,t){return it.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ft.MathNode("mi",[_c(e.text,e.mode,t)]),r=nW(e,t)||"italic";return r!==cge[n.type]&&n.setAttribute("mathvariant",r),n}});M1({type:"textord",htmlBuilder(e,t){return it.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=_c(e.text,e.mode,t),r=nW(e,t)||"normal",i;return e.mode==="text"?i=new Ft.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Ft.MathNode("mn",[n]):e.text==="\\prime"?i=new Ft.MathNode("mo",[n]):i=new Ft.MathNode("mi",[n]),r!==cge[i.type]&&i.setAttribute("mathvariant",r),i}});var JP={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},e7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};M1({type:"spacing",htmlBuilder(e,t){if(e7.hasOwnProperty(e.text)){var n=e7[e.text].className||"";if(e.mode==="text"){var r=it.makeOrd(e,t,"textord");return r.classes.push(n),r}else return it.makeSpan(["mspace",n],[it.mathsym(e.text,e.mode,t)],t)}else{if(JP.hasOwnProperty(e.text))return it.makeSpan(["mspace",JP[e.text]],[],t);throw new Ht('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(e7.hasOwnProperty(e.text))n=new Ft.MathNode("mtext",[new Ft.TextNode(" ")]);else{if(JP.hasOwnProperty(e.text))return new Ft.MathNode("mspace");throw new Ht('Unknown type of space "'+e.text+'"')}return n}});var gne=()=>{var e=new Ft.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};M1({type:"tag",mathmlBuilder(e,t){var n=new Ft.MathNode("mtable",[new Ft.MathNode("mtr",[gne(),new Ft.MathNode("mtd",[h0(e.body,t)]),gne(),new Ft.MathNode("mtd",[h0(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var bne={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},yne={"\\textbf":"textbf","\\textmd":"textmd"},qct={"\\textit":"textit","\\textup":"textup"},vne=(e,t)=>{var n=e.font;return n?bne[n]?t.withTextFontFamily(bne[n]):yne[n]?t.withTextFontWeight(yne[n]):t.withTextFontShape(qct[n]):t};dn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:$a(i),font:r}},htmlBuilder(e,t){var n=vne(e,t),r=os(e.body,n,!0);return it.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=vne(e,t);return h0(e.body,n)}});dn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Yr(e.body,t),r=it.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=it.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return it.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Ft.MathNode("mo",[new Ft.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ft.MathNode("munder",[xi(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});dn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Yr(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return it.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Ft.MathNode("mpadded",[xi(e.body,t)],["vcenter"])}});dn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ht("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=One(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Rm=N0e,dge=`[ \r - ]`,Gct="\\\\[a-zA-Z@]+",Yct="\\\\[^\uD800-\uDFFF]",Zct="("+Gct+")"+dge+"*",Xct=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let HT=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return tr.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Cf={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},NA={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Gte={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Hut(e,t){Cf[e]=t}function JV(e,t,n){if(!Cf[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Cf[t][r];if(!i&&e[0]in Gte&&(r=Gte[e[0]].charCodeAt(0),i=Cf[t][r]),!i&&n==="text"&&w0e(r)&&(i=Cf[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var VP={};function Vut(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!VP[t]){var n=VP[t]={cssEmPerMu:NA.quad[t]/18};for(var r in NA)NA.hasOwnProperty(r)&&(n[r]=NA[r][t])}return VP[t]}var Wut=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Yte=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Zte=function(t,n){return n.size<2?t:Wut[t-1][n.size-1]};class Ph{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Ph.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Yte[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Ph(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Zte(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Yte[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Zte(Ph.BASESIZE,t);return this.size===n&&this.textSize===Ph.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ph.BASESIZE?["sizing","reset-size"+this.size,"size"+Ph.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Vut(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ph.BASESIZE=6;var UL={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Qut={ex:!0,em:!0,mu:!0},x0e=function(t){return typeof t!="string"&&(t=t.unit),t in UL||t in Qut||t==="ex"},aa=function(t,n){var r;if(t.unit in UL)r=UL[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Ht("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Jt=function(t){return+t.toFixed(4)+"em"},d0=function(t){return t.filter(n=>n).join(" ")},T0e=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},k0e=function(t){var n=document.createElement(t);n.className=d0(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let VT=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,T0e.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return tr.contains(this.classes,t)}toNode(){return k0e.call(this,"span")}toMarkup(){return C0e.call(this,"span")}};class eW{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,T0e.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return tr.contains(this.classes,t)}toNode(){return k0e.call(this,"a")}toMarkup(){return C0e.call(this,"a")}}class qut{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return tr.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=Jt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=d0(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=tr.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+tr.escape(r)+'"');var a=tr.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class cp{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i":""}}class zL{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var Zut={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Xut={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ii={math:{},text:{}};function U(e,t,n,r,i,a){Ii[e][i]={font:t,group:n,replace:r},a&&r&&(Ii[e][r]=Ii[e][i])}var G="math",It="text",ae="main",we="ams",Ki="accent-token",gn="bin",Jo="close",GO="inner",qn="mathord",Qa="op-token",Nu="open",MI="punct",Ce="rel",wp="spacing",Fe="textord";U(G,ae,Ce,"≡","\\equiv",!0);U(G,ae,Ce,"≺","\\prec",!0);U(G,ae,Ce,"≻","\\succ",!0);U(G,ae,Ce,"∼","\\sim",!0);U(G,ae,Ce,"⊥","\\perp");U(G,ae,Ce,"⪯","\\preceq",!0);U(G,ae,Ce,"⪰","\\succeq",!0);U(G,ae,Ce,"≃","\\simeq",!0);U(G,ae,Ce,"∣","\\mid",!0);U(G,ae,Ce,"≪","\\ll",!0);U(G,ae,Ce,"≫","\\gg",!0);U(G,ae,Ce,"≍","\\asymp",!0);U(G,ae,Ce,"∥","\\parallel");U(G,ae,Ce,"⋈","\\bowtie",!0);U(G,ae,Ce,"⌣","\\smile",!0);U(G,ae,Ce,"⊑","\\sqsubseteq",!0);U(G,ae,Ce,"⊒","\\sqsupseteq",!0);U(G,ae,Ce,"≐","\\doteq",!0);U(G,ae,Ce,"⌢","\\frown",!0);U(G,ae,Ce,"∋","\\ni",!0);U(G,ae,Ce,"∝","\\propto",!0);U(G,ae,Ce,"⊢","\\vdash",!0);U(G,ae,Ce,"⊣","\\dashv",!0);U(G,ae,Ce,"∋","\\owns");U(G,ae,MI,".","\\ldotp");U(G,ae,MI,"⋅","\\cdotp");U(G,ae,Fe,"#","\\#");U(It,ae,Fe,"#","\\#");U(G,ae,Fe,"&","\\&");U(It,ae,Fe,"&","\\&");U(G,ae,Fe,"ℵ","\\aleph",!0);U(G,ae,Fe,"∀","\\forall",!0);U(G,ae,Fe,"ℏ","\\hbar",!0);U(G,ae,Fe,"∃","\\exists",!0);U(G,ae,Fe,"∇","\\nabla",!0);U(G,ae,Fe,"♭","\\flat",!0);U(G,ae,Fe,"ℓ","\\ell",!0);U(G,ae,Fe,"♮","\\natural",!0);U(G,ae,Fe,"♣","\\clubsuit",!0);U(G,ae,Fe,"℘","\\wp",!0);U(G,ae,Fe,"♯","\\sharp",!0);U(G,ae,Fe,"♢","\\diamondsuit",!0);U(G,ae,Fe,"ℜ","\\Re",!0);U(G,ae,Fe,"♡","\\heartsuit",!0);U(G,ae,Fe,"ℑ","\\Im",!0);U(G,ae,Fe,"♠","\\spadesuit",!0);U(G,ae,Fe,"§","\\S",!0);U(It,ae,Fe,"§","\\S");U(G,ae,Fe,"¶","\\P",!0);U(It,ae,Fe,"¶","\\P");U(G,ae,Fe,"†","\\dag");U(It,ae,Fe,"†","\\dag");U(It,ae,Fe,"†","\\textdagger");U(G,ae,Fe,"‡","\\ddag");U(It,ae,Fe,"‡","\\ddag");U(It,ae,Fe,"‡","\\textdaggerdbl");U(G,ae,Jo,"⎱","\\rmoustache",!0);U(G,ae,Nu,"⎰","\\lmoustache",!0);U(G,ae,Jo,"⟯","\\rgroup",!0);U(G,ae,Nu,"⟮","\\lgroup",!0);U(G,ae,gn,"∓","\\mp",!0);U(G,ae,gn,"⊖","\\ominus",!0);U(G,ae,gn,"⊎","\\uplus",!0);U(G,ae,gn,"⊓","\\sqcap",!0);U(G,ae,gn,"∗","\\ast");U(G,ae,gn,"⊔","\\sqcup",!0);U(G,ae,gn,"◯","\\bigcirc",!0);U(G,ae,gn,"∙","\\bullet",!0);U(G,ae,gn,"‡","\\ddagger");U(G,ae,gn,"≀","\\wr",!0);U(G,ae,gn,"⨿","\\amalg");U(G,ae,gn,"&","\\And");U(G,ae,Ce,"⟵","\\longleftarrow",!0);U(G,ae,Ce,"⇐","\\Leftarrow",!0);U(G,ae,Ce,"⟸","\\Longleftarrow",!0);U(G,ae,Ce,"⟶","\\longrightarrow",!0);U(G,ae,Ce,"⇒","\\Rightarrow",!0);U(G,ae,Ce,"⟹","\\Longrightarrow",!0);U(G,ae,Ce,"↔","\\leftrightarrow",!0);U(G,ae,Ce,"⟷","\\longleftrightarrow",!0);U(G,ae,Ce,"⇔","\\Leftrightarrow",!0);U(G,ae,Ce,"⟺","\\Longleftrightarrow",!0);U(G,ae,Ce,"↦","\\mapsto",!0);U(G,ae,Ce,"⟼","\\longmapsto",!0);U(G,ae,Ce,"↗","\\nearrow",!0);U(G,ae,Ce,"↩","\\hookleftarrow",!0);U(G,ae,Ce,"↪","\\hookrightarrow",!0);U(G,ae,Ce,"↘","\\searrow",!0);U(G,ae,Ce,"↼","\\leftharpoonup",!0);U(G,ae,Ce,"⇀","\\rightharpoonup",!0);U(G,ae,Ce,"↙","\\swarrow",!0);U(G,ae,Ce,"↽","\\leftharpoondown",!0);U(G,ae,Ce,"⇁","\\rightharpoondown",!0);U(G,ae,Ce,"↖","\\nwarrow",!0);U(G,ae,Ce,"⇌","\\rightleftharpoons",!0);U(G,we,Ce,"≮","\\nless",!0);U(G,we,Ce,"","\\@nleqslant");U(G,we,Ce,"","\\@nleqq");U(G,we,Ce,"⪇","\\lneq",!0);U(G,we,Ce,"≨","\\lneqq",!0);U(G,we,Ce,"","\\@lvertneqq");U(G,we,Ce,"⋦","\\lnsim",!0);U(G,we,Ce,"⪉","\\lnapprox",!0);U(G,we,Ce,"⊀","\\nprec",!0);U(G,we,Ce,"⋠","\\npreceq",!0);U(G,we,Ce,"⋨","\\precnsim",!0);U(G,we,Ce,"⪹","\\precnapprox",!0);U(G,we,Ce,"≁","\\nsim",!0);U(G,we,Ce,"","\\@nshortmid");U(G,we,Ce,"∤","\\nmid",!0);U(G,we,Ce,"⊬","\\nvdash",!0);U(G,we,Ce,"⊭","\\nvDash",!0);U(G,we,Ce,"⋪","\\ntriangleleft");U(G,we,Ce,"⋬","\\ntrianglelefteq",!0);U(G,we,Ce,"⊊","\\subsetneq",!0);U(G,we,Ce,"","\\@varsubsetneq");U(G,we,Ce,"⫋","\\subsetneqq",!0);U(G,we,Ce,"","\\@varsubsetneqq");U(G,we,Ce,"≯","\\ngtr",!0);U(G,we,Ce,"","\\@ngeqslant");U(G,we,Ce,"","\\@ngeqq");U(G,we,Ce,"⪈","\\gneq",!0);U(G,we,Ce,"≩","\\gneqq",!0);U(G,we,Ce,"","\\@gvertneqq");U(G,we,Ce,"⋧","\\gnsim",!0);U(G,we,Ce,"⪊","\\gnapprox",!0);U(G,we,Ce,"⊁","\\nsucc",!0);U(G,we,Ce,"⋡","\\nsucceq",!0);U(G,we,Ce,"⋩","\\succnsim",!0);U(G,we,Ce,"⪺","\\succnapprox",!0);U(G,we,Ce,"≆","\\ncong",!0);U(G,we,Ce,"","\\@nshortparallel");U(G,we,Ce,"∦","\\nparallel",!0);U(G,we,Ce,"⊯","\\nVDash",!0);U(G,we,Ce,"⋫","\\ntriangleright");U(G,we,Ce,"⋭","\\ntrianglerighteq",!0);U(G,we,Ce,"","\\@nsupseteqq");U(G,we,Ce,"⊋","\\supsetneq",!0);U(G,we,Ce,"","\\@varsupsetneq");U(G,we,Ce,"⫌","\\supsetneqq",!0);U(G,we,Ce,"","\\@varsupsetneqq");U(G,we,Ce,"⊮","\\nVdash",!0);U(G,we,Ce,"⪵","\\precneqq",!0);U(G,we,Ce,"⪶","\\succneqq",!0);U(G,we,Ce,"","\\@nsubseteqq");U(G,we,gn,"⊴","\\unlhd");U(G,we,gn,"⊵","\\unrhd");U(G,we,Ce,"↚","\\nleftarrow",!0);U(G,we,Ce,"↛","\\nrightarrow",!0);U(G,we,Ce,"⇍","\\nLeftarrow",!0);U(G,we,Ce,"⇏","\\nRightarrow",!0);U(G,we,Ce,"↮","\\nleftrightarrow",!0);U(G,we,Ce,"⇎","\\nLeftrightarrow",!0);U(G,we,Ce,"△","\\vartriangle");U(G,we,Fe,"ℏ","\\hslash");U(G,we,Fe,"▽","\\triangledown");U(G,we,Fe,"◊","\\lozenge");U(G,we,Fe,"Ⓢ","\\circledS");U(G,we,Fe,"®","\\circledR");U(It,we,Fe,"®","\\circledR");U(G,we,Fe,"∡","\\measuredangle",!0);U(G,we,Fe,"∄","\\nexists");U(G,we,Fe,"℧","\\mho");U(G,we,Fe,"Ⅎ","\\Finv",!0);U(G,we,Fe,"⅁","\\Game",!0);U(G,we,Fe,"‵","\\backprime");U(G,we,Fe,"▲","\\blacktriangle");U(G,we,Fe,"▼","\\blacktriangledown");U(G,we,Fe,"■","\\blacksquare");U(G,we,Fe,"⧫","\\blacklozenge");U(G,we,Fe,"★","\\bigstar");U(G,we,Fe,"∢","\\sphericalangle",!0);U(G,we,Fe,"∁","\\complement",!0);U(G,we,Fe,"ð","\\eth",!0);U(It,ae,Fe,"ð","ð");U(G,we,Fe,"╱","\\diagup");U(G,we,Fe,"╲","\\diagdown");U(G,we,Fe,"□","\\square");U(G,we,Fe,"□","\\Box");U(G,we,Fe,"◊","\\Diamond");U(G,we,Fe,"¥","\\yen",!0);U(It,we,Fe,"¥","\\yen",!0);U(G,we,Fe,"✓","\\checkmark",!0);U(It,we,Fe,"✓","\\checkmark");U(G,we,Fe,"ℶ","\\beth",!0);U(G,we,Fe,"ℸ","\\daleth",!0);U(G,we,Fe,"ℷ","\\gimel",!0);U(G,we,Fe,"ϝ","\\digamma",!0);U(G,we,Fe,"ϰ","\\varkappa");U(G,we,Nu,"┌","\\@ulcorner",!0);U(G,we,Jo,"┐","\\@urcorner",!0);U(G,we,Nu,"└","\\@llcorner",!0);U(G,we,Jo,"┘","\\@lrcorner",!0);U(G,we,Ce,"≦","\\leqq",!0);U(G,we,Ce,"⩽","\\leqslant",!0);U(G,we,Ce,"⪕","\\eqslantless",!0);U(G,we,Ce,"≲","\\lesssim",!0);U(G,we,Ce,"⪅","\\lessapprox",!0);U(G,we,Ce,"≊","\\approxeq",!0);U(G,we,gn,"⋖","\\lessdot");U(G,we,Ce,"⋘","\\lll",!0);U(G,we,Ce,"≶","\\lessgtr",!0);U(G,we,Ce,"⋚","\\lesseqgtr",!0);U(G,we,Ce,"⪋","\\lesseqqgtr",!0);U(G,we,Ce,"≑","\\doteqdot");U(G,we,Ce,"≓","\\risingdotseq",!0);U(G,we,Ce,"≒","\\fallingdotseq",!0);U(G,we,Ce,"∽","\\backsim",!0);U(G,we,Ce,"⋍","\\backsimeq",!0);U(G,we,Ce,"⫅","\\subseteqq",!0);U(G,we,Ce,"⋐","\\Subset",!0);U(G,we,Ce,"⊏","\\sqsubset",!0);U(G,we,Ce,"≼","\\preccurlyeq",!0);U(G,we,Ce,"⋞","\\curlyeqprec",!0);U(G,we,Ce,"≾","\\precsim",!0);U(G,we,Ce,"⪷","\\precapprox",!0);U(G,we,Ce,"⊲","\\vartriangleleft");U(G,we,Ce,"⊴","\\trianglelefteq");U(G,we,Ce,"⊨","\\vDash",!0);U(G,we,Ce,"⊪","\\Vvdash",!0);U(G,we,Ce,"⌣","\\smallsmile");U(G,we,Ce,"⌢","\\smallfrown");U(G,we,Ce,"≏","\\bumpeq",!0);U(G,we,Ce,"≎","\\Bumpeq",!0);U(G,we,Ce,"≧","\\geqq",!0);U(G,we,Ce,"⩾","\\geqslant",!0);U(G,we,Ce,"⪖","\\eqslantgtr",!0);U(G,we,Ce,"≳","\\gtrsim",!0);U(G,we,Ce,"⪆","\\gtrapprox",!0);U(G,we,gn,"⋗","\\gtrdot");U(G,we,Ce,"⋙","\\ggg",!0);U(G,we,Ce,"≷","\\gtrless",!0);U(G,we,Ce,"⋛","\\gtreqless",!0);U(G,we,Ce,"⪌","\\gtreqqless",!0);U(G,we,Ce,"≖","\\eqcirc",!0);U(G,we,Ce,"≗","\\circeq",!0);U(G,we,Ce,"≜","\\triangleq",!0);U(G,we,Ce,"∼","\\thicksim");U(G,we,Ce,"≈","\\thickapprox");U(G,we,Ce,"⫆","\\supseteqq",!0);U(G,we,Ce,"⋑","\\Supset",!0);U(G,we,Ce,"⊐","\\sqsupset",!0);U(G,we,Ce,"≽","\\succcurlyeq",!0);U(G,we,Ce,"⋟","\\curlyeqsucc",!0);U(G,we,Ce,"≿","\\succsim",!0);U(G,we,Ce,"⪸","\\succapprox",!0);U(G,we,Ce,"⊳","\\vartriangleright");U(G,we,Ce,"⊵","\\trianglerighteq");U(G,we,Ce,"⊩","\\Vdash",!0);U(G,we,Ce,"∣","\\shortmid");U(G,we,Ce,"∥","\\shortparallel");U(G,we,Ce,"≬","\\between",!0);U(G,we,Ce,"⋔","\\pitchfork",!0);U(G,we,Ce,"∝","\\varpropto");U(G,we,Ce,"◀","\\blacktriangleleft");U(G,we,Ce,"∴","\\therefore",!0);U(G,we,Ce,"∍","\\backepsilon");U(G,we,Ce,"▶","\\blacktriangleright");U(G,we,Ce,"∵","\\because",!0);U(G,we,Ce,"⋘","\\llless");U(G,we,Ce,"⋙","\\gggtr");U(G,we,gn,"⊲","\\lhd");U(G,we,gn,"⊳","\\rhd");U(G,we,Ce,"≂","\\eqsim",!0);U(G,ae,Ce,"⋈","\\Join");U(G,we,Ce,"≑","\\Doteq",!0);U(G,we,gn,"∔","\\dotplus",!0);U(G,we,gn,"∖","\\smallsetminus");U(G,we,gn,"⋒","\\Cap",!0);U(G,we,gn,"⋓","\\Cup",!0);U(G,we,gn,"⩞","\\doublebarwedge",!0);U(G,we,gn,"⊟","\\boxminus",!0);U(G,we,gn,"⊞","\\boxplus",!0);U(G,we,gn,"⋇","\\divideontimes",!0);U(G,we,gn,"⋉","\\ltimes",!0);U(G,we,gn,"⋊","\\rtimes",!0);U(G,we,gn,"⋋","\\leftthreetimes",!0);U(G,we,gn,"⋌","\\rightthreetimes",!0);U(G,we,gn,"⋏","\\curlywedge",!0);U(G,we,gn,"⋎","\\curlyvee",!0);U(G,we,gn,"⊝","\\circleddash",!0);U(G,we,gn,"⊛","\\circledast",!0);U(G,we,gn,"⋅","\\centerdot");U(G,we,gn,"⊺","\\intercal",!0);U(G,we,gn,"⋒","\\doublecap");U(G,we,gn,"⋓","\\doublecup");U(G,we,gn,"⊠","\\boxtimes",!0);U(G,we,Ce,"⇢","\\dashrightarrow",!0);U(G,we,Ce,"⇠","\\dashleftarrow",!0);U(G,we,Ce,"⇇","\\leftleftarrows",!0);U(G,we,Ce,"⇆","\\leftrightarrows",!0);U(G,we,Ce,"⇚","\\Lleftarrow",!0);U(G,we,Ce,"↞","\\twoheadleftarrow",!0);U(G,we,Ce,"↢","\\leftarrowtail",!0);U(G,we,Ce,"↫","\\looparrowleft",!0);U(G,we,Ce,"⇋","\\leftrightharpoons",!0);U(G,we,Ce,"↶","\\curvearrowleft",!0);U(G,we,Ce,"↺","\\circlearrowleft",!0);U(G,we,Ce,"↰","\\Lsh",!0);U(G,we,Ce,"⇈","\\upuparrows",!0);U(G,we,Ce,"↿","\\upharpoonleft",!0);U(G,we,Ce,"⇃","\\downharpoonleft",!0);U(G,ae,Ce,"⊶","\\origof",!0);U(G,ae,Ce,"⊷","\\imageof",!0);U(G,we,Ce,"⊸","\\multimap",!0);U(G,we,Ce,"↭","\\leftrightsquigarrow",!0);U(G,we,Ce,"⇉","\\rightrightarrows",!0);U(G,we,Ce,"⇄","\\rightleftarrows",!0);U(G,we,Ce,"↠","\\twoheadrightarrow",!0);U(G,we,Ce,"↣","\\rightarrowtail",!0);U(G,we,Ce,"↬","\\looparrowright",!0);U(G,we,Ce,"↷","\\curvearrowright",!0);U(G,we,Ce,"↻","\\circlearrowright",!0);U(G,we,Ce,"↱","\\Rsh",!0);U(G,we,Ce,"⇊","\\downdownarrows",!0);U(G,we,Ce,"↾","\\upharpoonright",!0);U(G,we,Ce,"⇂","\\downharpoonright",!0);U(G,we,Ce,"⇝","\\rightsquigarrow",!0);U(G,we,Ce,"⇝","\\leadsto");U(G,we,Ce,"⇛","\\Rrightarrow",!0);U(G,we,Ce,"↾","\\restriction");U(G,ae,Fe,"‘","`");U(G,ae,Fe,"$","\\$");U(It,ae,Fe,"$","\\$");U(It,ae,Fe,"$","\\textdollar");U(G,ae,Fe,"%","\\%");U(It,ae,Fe,"%","\\%");U(G,ae,Fe,"_","\\_");U(It,ae,Fe,"_","\\_");U(It,ae,Fe,"_","\\textunderscore");U(G,ae,Fe,"∠","\\angle",!0);U(G,ae,Fe,"∞","\\infty",!0);U(G,ae,Fe,"′","\\prime");U(G,ae,Fe,"△","\\triangle");U(G,ae,Fe,"Γ","\\Gamma",!0);U(G,ae,Fe,"Δ","\\Delta",!0);U(G,ae,Fe,"Θ","\\Theta",!0);U(G,ae,Fe,"Λ","\\Lambda",!0);U(G,ae,Fe,"Ξ","\\Xi",!0);U(G,ae,Fe,"Π","\\Pi",!0);U(G,ae,Fe,"Σ","\\Sigma",!0);U(G,ae,Fe,"Υ","\\Upsilon",!0);U(G,ae,Fe,"Φ","\\Phi",!0);U(G,ae,Fe,"Ψ","\\Psi",!0);U(G,ae,Fe,"Ω","\\Omega",!0);U(G,ae,Fe,"A","Α");U(G,ae,Fe,"B","Β");U(G,ae,Fe,"E","Ε");U(G,ae,Fe,"Z","Ζ");U(G,ae,Fe,"H","Η");U(G,ae,Fe,"I","Ι");U(G,ae,Fe,"K","Κ");U(G,ae,Fe,"M","Μ");U(G,ae,Fe,"N","Ν");U(G,ae,Fe,"O","Ο");U(G,ae,Fe,"P","Ρ");U(G,ae,Fe,"T","Τ");U(G,ae,Fe,"X","Χ");U(G,ae,Fe,"¬","\\neg",!0);U(G,ae,Fe,"¬","\\lnot");U(G,ae,Fe,"⊤","\\top");U(G,ae,Fe,"⊥","\\bot");U(G,ae,Fe,"∅","\\emptyset");U(G,we,Fe,"∅","\\varnothing");U(G,ae,qn,"α","\\alpha",!0);U(G,ae,qn,"β","\\beta",!0);U(G,ae,qn,"γ","\\gamma",!0);U(G,ae,qn,"δ","\\delta",!0);U(G,ae,qn,"ϵ","\\epsilon",!0);U(G,ae,qn,"ζ","\\zeta",!0);U(G,ae,qn,"η","\\eta",!0);U(G,ae,qn,"θ","\\theta",!0);U(G,ae,qn,"ι","\\iota",!0);U(G,ae,qn,"κ","\\kappa",!0);U(G,ae,qn,"λ","\\lambda",!0);U(G,ae,qn,"μ","\\mu",!0);U(G,ae,qn,"ν","\\nu",!0);U(G,ae,qn,"ξ","\\xi",!0);U(G,ae,qn,"ο","\\omicron",!0);U(G,ae,qn,"π","\\pi",!0);U(G,ae,qn,"ρ","\\rho",!0);U(G,ae,qn,"σ","\\sigma",!0);U(G,ae,qn,"τ","\\tau",!0);U(G,ae,qn,"υ","\\upsilon",!0);U(G,ae,qn,"ϕ","\\phi",!0);U(G,ae,qn,"χ","\\chi",!0);U(G,ae,qn,"ψ","\\psi",!0);U(G,ae,qn,"ω","\\omega",!0);U(G,ae,qn,"ε","\\varepsilon",!0);U(G,ae,qn,"ϑ","\\vartheta",!0);U(G,ae,qn,"ϖ","\\varpi",!0);U(G,ae,qn,"ϱ","\\varrho",!0);U(G,ae,qn,"ς","\\varsigma",!0);U(G,ae,qn,"φ","\\varphi",!0);U(G,ae,gn,"∗","*",!0);U(G,ae,gn,"+","+");U(G,ae,gn,"−","-",!0);U(G,ae,gn,"⋅","\\cdot",!0);U(G,ae,gn,"∘","\\circ",!0);U(G,ae,gn,"÷","\\div",!0);U(G,ae,gn,"±","\\pm",!0);U(G,ae,gn,"×","\\times",!0);U(G,ae,gn,"∩","\\cap",!0);U(G,ae,gn,"∪","\\cup",!0);U(G,ae,gn,"∖","\\setminus",!0);U(G,ae,gn,"∧","\\land");U(G,ae,gn,"∨","\\lor");U(G,ae,gn,"∧","\\wedge",!0);U(G,ae,gn,"∨","\\vee",!0);U(G,ae,Fe,"√","\\surd");U(G,ae,Nu,"⟨","\\langle",!0);U(G,ae,Nu,"∣","\\lvert");U(G,ae,Nu,"∥","\\lVert");U(G,ae,Jo,"?","?");U(G,ae,Jo,"!","!");U(G,ae,Jo,"⟩","\\rangle",!0);U(G,ae,Jo,"∣","\\rvert");U(G,ae,Jo,"∥","\\rVert");U(G,ae,Ce,"=","=");U(G,ae,Ce,":",":");U(G,ae,Ce,"≈","\\approx",!0);U(G,ae,Ce,"≅","\\cong",!0);U(G,ae,Ce,"≥","\\ge");U(G,ae,Ce,"≥","\\geq",!0);U(G,ae,Ce,"←","\\gets");U(G,ae,Ce,">","\\gt",!0);U(G,ae,Ce,"∈","\\in",!0);U(G,ae,Ce,"","\\@not");U(G,ae,Ce,"⊂","\\subset",!0);U(G,ae,Ce,"⊃","\\supset",!0);U(G,ae,Ce,"⊆","\\subseteq",!0);U(G,ae,Ce,"⊇","\\supseteq",!0);U(G,we,Ce,"⊈","\\nsubseteq",!0);U(G,we,Ce,"⊉","\\nsupseteq",!0);U(G,ae,Ce,"⊨","\\models");U(G,ae,Ce,"←","\\leftarrow",!0);U(G,ae,Ce,"≤","\\le");U(G,ae,Ce,"≤","\\leq",!0);U(G,ae,Ce,"<","\\lt",!0);U(G,ae,Ce,"→","\\rightarrow",!0);U(G,ae,Ce,"→","\\to");U(G,we,Ce,"≱","\\ngeq",!0);U(G,we,Ce,"≰","\\nleq",!0);U(G,ae,wp," ","\\ ");U(G,ae,wp," ","\\space");U(G,ae,wp," ","\\nobreakspace");U(It,ae,wp," ","\\ ");U(It,ae,wp," "," ");U(It,ae,wp," ","\\space");U(It,ae,wp," ","\\nobreakspace");U(G,ae,wp,null,"\\nobreak");U(G,ae,wp,null,"\\allowbreak");U(G,ae,MI,",",",");U(G,ae,MI,";",";");U(G,we,gn,"⊼","\\barwedge",!0);U(G,we,gn,"⊻","\\veebar",!0);U(G,ae,gn,"⊙","\\odot",!0);U(G,ae,gn,"⊕","\\oplus",!0);U(G,ae,gn,"⊗","\\otimes",!0);U(G,ae,Fe,"∂","\\partial",!0);U(G,ae,gn,"⊘","\\oslash",!0);U(G,we,gn,"⊚","\\circledcirc",!0);U(G,we,gn,"⊡","\\boxdot",!0);U(G,ae,gn,"△","\\bigtriangleup");U(G,ae,gn,"▽","\\bigtriangledown");U(G,ae,gn,"†","\\dagger");U(G,ae,gn,"⋄","\\diamond");U(G,ae,gn,"⋆","\\star");U(G,ae,gn,"◃","\\triangleleft");U(G,ae,gn,"▹","\\triangleright");U(G,ae,Nu,"{","\\{");U(It,ae,Fe,"{","\\{");U(It,ae,Fe,"{","\\textbraceleft");U(G,ae,Jo,"}","\\}");U(It,ae,Fe,"}","\\}");U(It,ae,Fe,"}","\\textbraceright");U(G,ae,Nu,"{","\\lbrace");U(G,ae,Jo,"}","\\rbrace");U(G,ae,Nu,"[","\\lbrack",!0);U(It,ae,Fe,"[","\\lbrack",!0);U(G,ae,Jo,"]","\\rbrack",!0);U(It,ae,Fe,"]","\\rbrack",!0);U(G,ae,Nu,"(","\\lparen",!0);U(G,ae,Jo,")","\\rparen",!0);U(It,ae,Fe,"<","\\textless",!0);U(It,ae,Fe,">","\\textgreater",!0);U(G,ae,Nu,"⌊","\\lfloor",!0);U(G,ae,Jo,"⌋","\\rfloor",!0);U(G,ae,Nu,"⌈","\\lceil",!0);U(G,ae,Jo,"⌉","\\rceil",!0);U(G,ae,Fe,"\\","\\backslash");U(G,ae,Fe,"∣","|");U(G,ae,Fe,"∣","\\vert");U(It,ae,Fe,"|","\\textbar",!0);U(G,ae,Fe,"∥","\\|");U(G,ae,Fe,"∥","\\Vert");U(It,ae,Fe,"∥","\\textbardbl");U(It,ae,Fe,"~","\\textasciitilde");U(It,ae,Fe,"\\","\\textbackslash");U(It,ae,Fe,"^","\\textasciicircum");U(G,ae,Ce,"↑","\\uparrow",!0);U(G,ae,Ce,"⇑","\\Uparrow",!0);U(G,ae,Ce,"↓","\\downarrow",!0);U(G,ae,Ce,"⇓","\\Downarrow",!0);U(G,ae,Ce,"↕","\\updownarrow",!0);U(G,ae,Ce,"⇕","\\Updownarrow",!0);U(G,ae,Qa,"∐","\\coprod");U(G,ae,Qa,"⋁","\\bigvee");U(G,ae,Qa,"⋀","\\bigwedge");U(G,ae,Qa,"⨄","\\biguplus");U(G,ae,Qa,"⋂","\\bigcap");U(G,ae,Qa,"⋃","\\bigcup");U(G,ae,Qa,"∫","\\int");U(G,ae,Qa,"∫","\\intop");U(G,ae,Qa,"∬","\\iint");U(G,ae,Qa,"∭","\\iiint");U(G,ae,Qa,"∏","\\prod");U(G,ae,Qa,"∑","\\sum");U(G,ae,Qa,"⨂","\\bigotimes");U(G,ae,Qa,"⨁","\\bigoplus");U(G,ae,Qa,"⨀","\\bigodot");U(G,ae,Qa,"∮","\\oint");U(G,ae,Qa,"∯","\\oiint");U(G,ae,Qa,"∰","\\oiiint");U(G,ae,Qa,"⨆","\\bigsqcup");U(G,ae,Qa,"∫","\\smallint");U(It,ae,GO,"…","\\textellipsis");U(G,ae,GO,"…","\\mathellipsis");U(It,ae,GO,"…","\\ldots",!0);U(G,ae,GO,"…","\\ldots",!0);U(G,ae,GO,"⋯","\\@cdots",!0);U(G,ae,GO,"⋱","\\ddots",!0);U(G,ae,Fe,"⋮","\\varvdots");U(G,ae,Ki,"ˊ","\\acute");U(G,ae,Ki,"ˋ","\\grave");U(G,ae,Ki,"¨","\\ddot");U(G,ae,Ki,"~","\\tilde");U(G,ae,Ki,"ˉ","\\bar");U(G,ae,Ki,"˘","\\breve");U(G,ae,Ki,"ˇ","\\check");U(G,ae,Ki,"^","\\hat");U(G,ae,Ki,"⃗","\\vec");U(G,ae,Ki,"˙","\\dot");U(G,ae,Ki,"˚","\\mathring");U(G,ae,qn,"","\\@imath");U(G,ae,qn,"","\\@jmath");U(G,ae,Fe,"ı","ı");U(G,ae,Fe,"ȷ","ȷ");U(It,ae,Fe,"ı","\\i",!0);U(It,ae,Fe,"ȷ","\\j",!0);U(It,ae,Fe,"ß","\\ss",!0);U(It,ae,Fe,"æ","\\ae",!0);U(It,ae,Fe,"œ","\\oe",!0);U(It,ae,Fe,"ø","\\o",!0);U(It,ae,Fe,"Æ","\\AE",!0);U(It,ae,Fe,"Œ","\\OE",!0);U(It,ae,Fe,"Ø","\\O",!0);U(It,ae,Ki,"ˊ","\\'");U(It,ae,Ki,"ˋ","\\`");U(It,ae,Ki,"ˆ","\\^");U(It,ae,Ki,"˜","\\~");U(It,ae,Ki,"ˉ","\\=");U(It,ae,Ki,"˘","\\u");U(It,ae,Ki,"˙","\\.");U(It,ae,Ki,"¸","\\c");U(It,ae,Ki,"˚","\\r");U(It,ae,Ki,"ˇ","\\v");U(It,ae,Ki,"¨",'\\"');U(It,ae,Ki,"˝","\\H");U(It,ae,Ki,"◯","\\textcircled");var A0e={"--":!0,"---":!0,"``":!0,"''":!0};U(It,ae,Fe,"–","--",!0);U(It,ae,Fe,"–","\\textendash");U(It,ae,Fe,"—","---",!0);U(It,ae,Fe,"—","\\textemdash");U(It,ae,Fe,"‘","`",!0);U(It,ae,Fe,"‘","\\textquoteleft");U(It,ae,Fe,"’","'",!0);U(It,ae,Fe,"’","\\textquoteright");U(It,ae,Fe,"“","``",!0);U(It,ae,Fe,"“","\\textquotedblleft");U(It,ae,Fe,"”","''",!0);U(It,ae,Fe,"”","\\textquotedblright");U(G,ae,Fe,"°","\\degree",!0);U(It,ae,Fe,"°","\\degree");U(It,ae,Fe,"°","\\textdegree",!0);U(G,ae,Fe,"£","\\pounds");U(G,ae,Fe,"£","\\mathsterling",!0);U(It,ae,Fe,"£","\\pounds");U(It,ae,Fe,"£","\\textsterling",!0);U(G,we,Fe,"✠","\\maltese");U(It,we,Fe,"✠","\\maltese");var Kte='0123456789/@."';for(var WP=0;WP0)return td(a,u,i,n,s.concat(c));if(l){var f,h;if(l==="boldsymbol"){var g=ect(a,i,n,s,r);f=g.fontName,h=[g.fontClass]}else o?(f=I0e[l].fontName,h=[l]):(f=$A(l,n.fontWeight,n.fontShape),h=[l,n.fontWeight,n.fontShape]);if(LI(a,f,i).metrics)return td(a,f,i,n,s.concat(h));if(A0e.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var b=[],S=0;S{if(d0(e.classes)!==d0(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},rct=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},gl=function(t,n,r,i){var a=new VT(t,n,r,i);return tW(a),a},_0e=(e,t,n,r)=>new VT(e,t,n,r),ict=function(t,n,r){var i=gl([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Jt(i.height),i.maxFontSize=1,i},act=function(t,n,r,i){var a=new eW(t,n,r,i);return tW(a),a},R0e=function(t){var n=new HT(t);return tW(n),n},sct=function(t,n){return t instanceof HT?gl([],[t],n):t},oct=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=gl(["mspace"],[],t),r=aa(e,t);return n.style.marginRight=Jt(r),n},$A=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},I0e={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},D0e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},cct=function(t,n){var[r,i,a]=D0e[t],s=new f0(r),o=new cp([s],{width:Jt(i),height:Jt(a),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=_0e(["overlay"],[o],n);return l.height=a,l.style.height=Jt(a),l.style.width=Jt(i),l},it={fontMap:I0e,makeSymbol:td,mathsym:Jut,makeSpan:gl,makeSvgSpan:_0e,makeLineSpan:ict,makeAnchor:act,makeFragment:R0e,wrapFragment:sct,makeVList:lct,makeOrd:tct,makeGlue:uct,staticSvg:cct,svgData:D0e,tryCombineChars:rct},na={number:3,unit:"mu"},hg={number:4,unit:"mu"},Eh={number:5,unit:"mu"},dct={mord:{mop:na,mbin:hg,mrel:Eh,minner:na},mop:{mord:na,mop:na,mrel:Eh,minner:na},mbin:{mord:hg,mop:hg,mopen:hg,minner:hg},mrel:{mord:Eh,mop:Eh,mopen:Eh,minner:Eh},mopen:{},mclose:{mop:na,mbin:hg,mrel:Eh,minner:na},mpunct:{mord:na,mop:na,mrel:Eh,mopen:na,mclose:na,mpunct:na,minner:na},minner:{mord:na,mop:na,mbin:hg,mrel:Eh,mopen:na,mpunct:na,minner:na}},fct={mord:{mop:na},mop:{mord:na,mop:na},mbin:{},mrel:{},mopen:{},mclose:{mop:na},mpunct:{},minner:{mop:na}},N0e={},J3={},e5={};function dn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var w=S.classes[0],E=b.classes[0];w==="mbin"&&tr.contains(pct,E)?S.classes[0]="mord":E==="mbin"&&tr.contains(hct,w)&&(b.classes[0]="mord")},{node:f},h,g),rne(a,(b,S)=>{var w=HL(S),E=HL(b),x=w&&E?b.hasClass("mtight")?fct[w][E]:dct[w][E]:null;if(x)return it.makeGlue(x,u)},{node:f},h,g),a},rne=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sh=>{t.splice(f+1,0,h),s++})(s)}i&&t.pop()},P0e=function(t){return t instanceof HT||t instanceof eW||t instanceof VT&&t.hasClass("enclosing")?t:null},bct=function e(t,n){var r=P0e(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},HL=function(t,n){return t?(n&&(t=bct(t,n)),gct[t.classes[0]]||null):null},hx=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return dp(n.concat(r))},Yr=function(t,n,r){if(!t)return dp();if(J3[t.type]){var i=J3[t.type](t,n);if(r&&n.size!==r.size){i=dp(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Ht("Got group of unknown type: '"+t.type+"'")};function FA(e,t){var n=dp(["base"],e,t),r=dp(["strut"]);return r.style.height=Jt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Jt(-n.depth)),n.children.unshift(r),n}function VL(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=os(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(FA(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(FA(s,t));var u;n?(u=FA(os(n,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var c=dp(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Jt(c.height+c.depth),c.depth&&(f.style.verticalAlign=Jt(-c.depth))}return c}function M0e(e){return new HT(e)}class cc{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=d0(this.classes));for(var r=0;r0&&(t+=' class ="'+tr.escape(d0(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Y2{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return tr.escape(this.toText())}toText(){return this.text}}class yct{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Jt(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Ut={MathNode:cc,TextNode:Y2,SpaceNode:yct,newDocumentFragment:M0e},Rc=function(t,n,r){return Ii[n][t]&&Ii[n][t].replace&&t.charCodeAt(0)!==55349&&!(A0e.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ii[n][t].replace),new Ut.TextNode(t)},nW=function(t){return t.length===1?t[0]:new Ut.MathNode("mrow",t)},rW=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(tr.contains(["\\imath","\\jmath"],a))return null;Ii[i][a]&&Ii[i][a].replace&&(a=Ii[i][a].replace);var s=it.fontMap[r].fontName;return JV(a,s,i)?it.fontMap[r].variant:null},Rl=function(t,n,r){if(t.length===1){var i=xi(t[0],n);return r&&i instanceof cc&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),s=l}return a},h0=function(t,n,r){return nW(Rl(t,n,r))},xi=function(t,n){if(!t)return new Ut.MathNode("mrow");if(e5[t.type]){var r=e5[t.type](t,n);return r}else throw new Ht("Got group of unknown type: '"+t.type+"'")};function ine(e,t,n,r,i){var a=Rl(e,n),s;a.length===1&&a[0]instanceof cc&&tr.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new Ut.MathNode("mrow",a);var o=new Ut.MathNode("annotation",[new Ut.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new Ut.MathNode("semantics",[s,o]),u=new Ut.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var c=i?"katex":"katex-mathml";return it.makeSpan([c],[u])}var L0e=function(t){return new Ph({style:t.displayMode?Gn.DISPLAY:Gn.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},$0e=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=it.makeSpan(r,[t])}return t},vct=function(t,n,r){var i=L0e(r),a;if(r.output==="mathml")return ine(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=VL(t,i);a=it.makeSpan(["katex"],[s])}else{var o=ine(t,n,i,r.displayMode,!1),l=VL(t,i);a=it.makeSpan(["katex"],[o,l])}return $0e(a,r)},Oct=function(t,n,r){var i=L0e(r),a=VL(t,i),s=it.makeSpan(["katex"],[a]);return $0e(s,r)},Sct={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Ect=function(t){var n=new Ut.MathNode("mo",[new Ut.TextNode(Sct[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},wct={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},xct=function(t){return t.type==="ordgroup"?t.body.length:1},Tct=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(tr.contains(["widehat","widecheck","widetilde","utilde"],l)){var u=t,c=xct(u.base),f,h,g;if(c>5)l==="widehat"||l==="widecheck"?(f=420,o=2364,g=.42,h=l+"4"):(f=312,o=2340,g=.34,h="tilde4");else{var b=[1,1,2,2,3,3][c];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][b],f=[0,239,300,360,420][b],g=[0,.24,.3,.3,.36,.42][b],h=l+b):(o=[0,600,1033,2339,2340][b],f=[0,260,286,306,312][b],g=[0,.26,.286,.3,.306,.34][b],h="tilde"+b)}var S=new f0(h),w=new cp([S],{width:"100%",height:Jt(g),viewBox:"0 0 "+o+" "+f,preserveAspectRatio:"none"});return{span:it.makeSvgSpan([],[w],n),minWidth:0,height:g}}else{var E=[],x=wct[l],[k,C,R]=x,A=R/1e3,D=k.length,B,L;if(D===1){var F=x[3];B=["hide-tail"],L=[F]}else if(D===2)B=["halfarrow-left","halfarrow-right"],L=["xMinYMin","xMaxYMin"];else if(D===3)B=["brace-left","brace-center","brace-right"],L=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+D+" children.");for(var W=0;W0&&(i.style.minWidth=Jt(a)),i},kct=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=it.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new zL({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new zL({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new cp(u,{width:"100%",height:Jt(o)});s=it.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=Jt(o),s},fp={encloseSpan:kct,mathMLnode:Ect,svgSpan:Tct};function br(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function iW(e){var t=$I(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function $I(e){return e&&(e.type==="atom"||Xut.hasOwnProperty(e.type))?e:null}var aW=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=br(e.base,"accent"),n=r.base,e.base=n,i=Yut(Yr(e,t)),e.base=r):(r=br(e,"accent"),n=r.base);var a=Yr(n,t.havingCrampedStyle()),s=r.isShifty&&tr.isCharacterBox(n),o=0;if(s){var l=tr.getBaseElem(n),u=Yr(l,t.havingCrampedStyle());o=Xte(u).skew}var c=r.label==="\\c",f=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),h;if(r.isStretchy)h=fp.svgSpan(r,t),h=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Jt(2*o)+")",marginLeft:Jt(2*o)}:void 0}]},t);else{var g,b;r.label==="\\vec"?(g=it.staticSvg("vec",t),b=it.svgData.vec[1]):(g=it.makeOrd({mode:r.mode,text:r.label},t,"textord"),g=Xte(g),g.italic=0,b=g.width,c&&(f+=g.depth)),h=it.makeSpan(["accent-body"],[g]);var S=r.label==="\\textcircled";S&&(h.classes.push("accent-full"),f=a.height);var w=o;S||(w-=b/2),h.style.left=Jt(w),r.label==="\\textcircled"&&(h.style.top=".2em"),h=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:h}]},t)}var E=it.makeSpan(["mord","accent"],[h],t);return i?(i.children[0]=E,i.height=Math.max(E.height,i.height),i.classes[0]="mord",i):E},F0e=(e,t)=>{var n=e.isStretchy?fp.mathMLnode(e.label):new Ut.MathNode("mo",[Rc(e.label,e.mode)]),r=new Ut.MathNode("mover",[xi(e.base,t),n]);return r.setAttribute("accent","true"),r},Cct=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));dn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=t5(t[0]),r=!Cct.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:aW,mathmlBuilder:F0e});dn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:aW,mathmlBuilder:F0e});dn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Yr(e.base,t),r=fp.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=it.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return it.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=fp.mathMLnode(e.label),r=new Ut.MathNode("munder",[xi(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var BA=e=>{var t=new Ut.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};dn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=it.wrapFragment(Yr(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=it.wrapFragment(Yr(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=fp.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var c;if(s){var f=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:f}]},t)}else c=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),it.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=fp.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=BA(xi(e.body,t));if(e.below){var a=BA(xi(e.below,t));r=new Ut.MathNode("munderover",[n,a,i])}else r=new Ut.MathNode("mover",[n,i])}else if(e.below){var s=BA(xi(e.below,t));r=new Ut.MathNode("munder",[n,s])}else r=BA(),r=new Ut.MathNode("mover",[n,r]);return r}});var Act=it.makeSpan;function B0e(e,t){var n=os(e.body,t,!0);return Act([e.mclass],n,t)}function U0e(e,t){var n,r=Rl(e.body,t);return e.mclass==="minner"?n=new Ut.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Ut.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Ut.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}dn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:$a(i),isCharacterBox:tr.isCharacterBox(i)}},htmlBuilder:B0e,mathmlBuilder:U0e});var FI=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};dn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:FI(t[0]),body:$a(t[1]),isCharacterBox:tr.isCharacterBox(t[1])}}});dn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=FI(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:$a(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:tr.isCharacterBox(l)}},htmlBuilder:B0e,mathmlBuilder:U0e});dn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:FI(t[0]),body:$a(t[0])}},htmlBuilder(e,t){var n=os(e.body,t,!0),r=it.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Rl(e.body,t),r=new Ut.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var _ct={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ane=()=>({type:"styling",body:[],mode:"math",style:"display"}),sne=e=>e.type==="textord"&&e.text==="@",Rct=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Ict(e,t,n){var r=_ct[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Dct(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ht("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var h=!0,g=l+1;gAV=|." after @',s[l]);var b=Ict(u,c,e),S={type:"styling",body:[b],mode:"math",style:"display"};r.push(S),o=ane()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var w=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:w,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}dn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=it.wrapFragment(Yr(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Jt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Ut.MathNode("mrow",[xi(e.label,t)]);return n=new Ut.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ut.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});dn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=it.wrapFragment(Yr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ut.MathNode("mrow",[xi(e.fragment,t)])}});dn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=br(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new Ht("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var z0e=(e,t)=>{var n=os(e.body,t.withColor(e.color),!1);return it.makeFragment(n)},j0e=(e,t)=>{var n=Rl(e.body,t.withColor(e.color)),r=new Ut.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};dn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=br(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:$a(i)}},htmlBuilder:z0e,mathmlBuilder:j0e});dn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=br(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:z0e,mathmlBuilder:j0e});dn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&br(i,"size").value}},htmlBuilder(e,t){var n=it.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Jt(aa(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ut.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Jt(aa(e.size,t)))),n}});var WL={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},H0e=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ht("Expected a control sequence",e);return t},Nct=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},V0e=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};dn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(WL[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=WL[r.text]),br(t.parseFunction(),"internal");throw new Ht("Invalid token after macro prefix",r)}});dn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Ht("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ht('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Ht('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Ht("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===WL[n]),{type:"internal",mode:t.mode}}});dn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=H0e(t.gullet.popToken());t.gullet.consumeSpaces();var i=Nct(t);return V0e(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});dn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=H0e(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return V0e(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var c2=function(t,n,r){var i=Ii.math[t]&&Ii.math[t].replace,a=JV(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},sW=function(t,n,r,i){var a=r.havingBaseStyle(n),s=it.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},W0e=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Jt(a),t.height-=a,t.depth+=a},Pct=function(t,n,r,i,a,s){var o=it.makeSymbol(t,"Main-Regular",a,i),l=sW(o,n,i,s);return r&&W0e(l,i,n),l},Mct=function(t,n,r,i){return it.makeSymbol(t,"Size"+n+"-Regular",r,i)},Q0e=function(t,n,r,i,a,s){var o=Mct(t,n,a,i),l=sW(it.makeSpan(["delimsizing","size"+n],[o],i),Gn.TEXT,i,s);return r&&W0e(l,i,Gn.TEXT),l},YP=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=it.makeSpan(["delimsizinginner",i],[it.makeSpan([],[it.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},ZP=function(t,n,r){var i=Cf["Size4-Regular"][t.charCodeAt(0)]?Cf["Size4-Regular"][t.charCodeAt(0)][4]:Cf["Size1-Regular"][t.charCodeAt(0)][4],a=new f0("inner",zut(t,Math.round(1e3*n))),s=new cp([a],{width:Jt(i),height:Jt(n),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=it.makeSvgSpan([],[s],r);return o.height=n,o.style.height=Jt(n),o.style.width=Jt(i),{type:"elem",elem:o}},QL=.008,UA={type:"kern",size:-1*QL},Lct=["|","\\lvert","\\rvert","\\vert"],$ct=["\\|","\\lVert","\\rVert","\\Vert"],q0e=function(t,n,r,i,a,s){var o,l,u,c,f="",h=0;o=u=c=t,l=null;var g="Size1-Regular";t==="\\uparrow"?u=c="⏐":t==="\\Uparrow"?u=c="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",c="\\Downarrow"):tr.contains(Lct,t)?(u="∣",f="vert",h=333):tr.contains($ct,t)?(u="∥",f="doublevert",h=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",c="⎣",g="Size4-Regular",f="lbrack",h=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",c="⎦",g="Size4-Regular",f="rbrack",h=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",c="⎣",g="Size4-Regular",f="lfloor",h=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=c="⎢",g="Size4-Regular",f="lceil",h=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",c="⎦",g="Size4-Regular",f="rfloor",h=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=c="⎥",g="Size4-Regular",f="rceil",h=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",c="⎝",g="Size4-Regular",f="lparen",h=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",c="⎠",g="Size4-Regular",f="rparen",h=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",c="⎩",u="⎪",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",c="⎭",u="⎪",g="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",u="⎪",g="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",u="⎪",g="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",u="⎪",g="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",u="⎪",g="Size4-Regular");var b=c2(o,g,a),S=b.height+b.depth,w=c2(u,g,a),E=w.height+w.depth,x=c2(c,g,a),k=x.height+x.depth,C=0,R=1;if(l!==null){var A=c2(l,g,a);C=A.height+A.depth,R=2}var D=S+k+C,B=Math.max(0,Math.ceil((n-D)/(R*E))),L=D+B*R*E,F=i.fontMetrics().axisHeight;r&&(F*=i.sizeMultiplier);var W=L/2-F,V=[];if(f.length>0){var Z=L-S-k,Q=Math.round(L*1e3),H=jut(f,Math.round(Z*1e3)),J=new f0(f,H),K=(h/1e3).toFixed(3)+"em",X=(Q/1e3).toFixed(3)+"em",te=new cp([J],{width:K,height:X,viewBox:"0 0 "+h+" "+Q}),z=it.makeSvgSpan([],[te],i);z.height=Q/1e3,z.style.width=K,z.style.height=X,V.push({type:"elem",elem:z})}else{if(V.push(YP(c,g,a)),V.push(UA),l===null){var Te=L-S-k+2*QL;V.push(ZP(u,Te,i))}else{var be=(L-S-k-C)/2+2*QL;V.push(ZP(u,be,i)),V.push(UA),V.push(YP(l,g,a)),V.push(UA),V.push(ZP(u,be,i))}V.push(UA),V.push(YP(o,g,a))}var ee=i.havingBaseStyle(Gn.TEXT),ye=it.makeVList({positionType:"bottom",positionData:W,children:V},ee);return sW(it.makeSpan(["delimsizing","mult"],[ye],ee),Gn.TEXT,i,s)},XP=80,KP=.08,JP=function(t,n,r,i,a){var s=Uut(t,i,r),o=new f0(t,s),l=new cp([o],{width:"400em",height:Jt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return it.makeSvgSpan(["hide-tail"],[l],a)},Fct=function(t,n){var r=n.havingBaseSizing(),i=X0e("\\surd",t*r.sizeMultiplier,Z0e,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,u=0,c=0,f;return i.type==="small"?(c=1e3+1e3*s+XP,t<1?a=1:t<1.4&&(a=.7),l=(1+s+KP)/a,u=(1+s)/a,o=JP("sqrtMain",l,c,s,n),o.style.minWidth="0.853em",f=.833/a):i.type==="large"?(c=(1e3+XP)*Z2[i.size],u=(Z2[i.size]+s)/a,l=(Z2[i.size]+s+KP)/a,o=JP("sqrtSize"+i.size,l,c,s,n),o.style.minWidth="1.02em",f=1/a):(l=t+s+KP,u=t+s,c=Math.floor(1e3*t+s)+XP,o=JP("sqrtTall",l,c,s,n),o.style.minWidth="0.742em",f=1.056),o.height=u,o.style.height=Jt(l),{span:o,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},G0e=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Bct=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Y0e=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Z2=[0,1.2,1.8,2.4,3],Uct=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),tr.contains(G0e,t)||tr.contains(Y0e,t))return Q0e(t,n,!1,r,i,a);if(tr.contains(Bct,t))return q0e(t,Z2[n],!1,r,i,a);throw new Ht("Illegal delimiter: '"+t+"'")},zct=[{type:"small",style:Gn.SCRIPTSCRIPT},{type:"small",style:Gn.SCRIPT},{type:"small",style:Gn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],jct=[{type:"small",style:Gn.SCRIPTSCRIPT},{type:"small",style:Gn.SCRIPT},{type:"small",style:Gn.TEXT},{type:"stack"}],Z0e=[{type:"small",style:Gn.SCRIPTSCRIPT},{type:"small",style:Gn.SCRIPT},{type:"small",style:Gn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Hct=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},X0e=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},K0e=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;tr.contains(Y0e,t)?o=zct:tr.contains(G0e,t)?o=Z0e:o=jct;var l=X0e(t,n,o,i);return l.type==="small"?Pct(t,l.style,r,i,a,s):l.type==="large"?Q0e(t,l.size,r,i,a,s):q0e(t,n,r,i,a,s)},Vct=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),f=Math.max(c/500*l,2*c-u);return K0e(t,f,!0,i,a,s)},qh={sqrtImage:Fct,sizedDelim:Uct,sizeToMaxHeight:Z2,customSizedDelim:K0e,leftRightDelim:Vct},one={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Wct=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function BI(e,t){var n=$I(e);if(n&&tr.contains(Wct,n.text))return n;throw n?new Ht("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ht("Invalid delimiter type '"+e.type+"'",e)}dn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=BI(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:one[e.funcName].size,mclass:one[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?it.makeSpan([e.mclass]):qh.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Rc(e.delim,e.mode));var n=new Ut.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Jt(qh.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function lne(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}dn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ht("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:BI(t[0],e).text,color:n}}});dn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=BI(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=br(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{lne(e);for(var n=os(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{lne(e);var n=Rl(e.body,t);if(e.left!=="."){var r=new Ut.MathNode("mo",[Rc(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Ut.MathNode("mo",[Rc(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return nW(n)}});dn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=BI(t[0],e);if(!e.parser.leftrightDepth)throw new Ht("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=hx(t,[]);else{n=qh.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Rc("|","text"):Rc(e.delim,e.mode),r=new Ut.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var oW=(e,t)=>{var n=it.wrapFragment(Yr(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=tr.isCharacterBox(e.body);if(r==="sout")a=it.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=aa({number:.6,unit:"pt"},t),u=aa({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Jt(f/2+l);var h=Math.floor(1e3*f*i),g=Fut(h),b=new cp([new f0("phase",g)],{width:"400em",height:Jt(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});a=it.makeSvgSpan(["hide-tail"],[b],t),a.style.height=Jt(f),s=n.depth+l+u}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,w=0,E=0;/box/.test(r)?(E=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:E),w=S):r==="angl"?(E=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*E,w=Math.max(0,.25-n.depth)):(S=o?.2:0,w=S),a=fp.encloseSpan(n,r,S,w,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Jt(E)):r==="angl"&&E!==.049&&(a.style.borderTopWidth=Jt(E),a.style.borderRightWidth=Jt(E)),s=n.depth+w,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?it.makeSpan(["mord","cancel-lap"],[x],t):it.makeSpan(["mord"],[x],t)},lW=(e,t)=>{var n=0,r=new Ut.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[xi(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};dn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=br(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:oW,mathmlBuilder:lW});dn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=br(t[0],"color-token").color,s=br(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:oW,mathmlBuilder:lW});dn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});dn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:oW,mathmlBuilder:lW});dn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var J0e={};function Jf(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new Ht("{"+e.envName+"} can be used only in display mode.")};function uW(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function I0(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:c,maxNumCols:f,leqno:h}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)s=1;else if(s=parseFloat(g),!s||s<0)throw new Ht("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var b=[],S=[b],w=[],E=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new Ff("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),E.push(une(e));;){var R=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},n&&(R={type:"styling",mode:e.mode,style:n,body:[R]}),b.push(R);var A=e.fetch().text;if(A==="&"){if(f&&b.length===f){if(u||o)throw new Ht("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(A==="\\end"){C(),b.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(S.length>1||!c)&&S.pop(),E.length0&&(k+=.25),u.push({pos:k,isDashed:Je[pe]})}for(C(s[0]),r=0;r0&&(W+=x,DJe))for(r=0;r=o)){var _e=void 0;(i>0||t.hskipBeforeAndAfter)&&(_e=tr.deflt(be.pregap,h),_e!==0&&(H=it.makeSpan(["arraycolsep"],[]),H.style.width=Jt(_e),Q.push(H)));var Ie=[];for(r=0;r0){for(var tt=it.makeLineSpan("hline",n,c),Ve=it.makeLineSpan("hdashline",n,c),Xe=[{type:"elem",elem:l,shift:0}];u.length>0;){var et=u.pop(),ft=et.pos-V;et.isDashed?Xe.push({type:"elem",elem:Ve,shift:ft}):Xe.push({type:"elem",elem:tt,shift:ft})}l=it.makeVList({positionType:"individualShift",children:Xe},n)}if(K.length===0)return it.makeSpan(["mord"],[l],n);var At=it.makeVList({positionType:"individualShift",children:K},n);return At=it.makeSpan(["tag"],[At],n),it.makeFragment([l,At])},Qct={c:"center ",l:"left ",r:"right "},th=function(t,n){for(var r=[],i=new Ut.MathNode("mtd",[],["mtr-glue"]),a=new Ut.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,S="",w=!1,E=0,x=b.length;b[0].type==="separator"&&(h+="top ",E=1),b[b.length-1].type==="separator"&&(h+="bottom ",x-=1);for(var k=E;k0?"left ":"",h+=B[B.length-1].length>0?"right ":"";for(var L=1;L-1?"alignat":"align",a=t.envName==="split",s=I0(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:uW(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",f=0;f0&&g&&(w=1),r[b]={type:"align",align:S,pregap:w,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};Jf({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=$I(t[0]),r=n?[t[0]]:br(t[0],"ordgroup").body,i=r.map(function(s){var o=iW(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Ht("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return I0(e.parser,a,cW(e.envName))},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Ht("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=I0(e.parser,r,cW(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=I0(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=$I(t[0]),r=n?[t[0]]:br(t[0],"ordgroup").body,i=r.map(function(s){var o=iW(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Ht("Unknown column alignment: "+l,s)});if(i.length>1)throw new Ht("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=I0(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Ht("{subarray} can contain only one column");return a},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=I0(e.parser,t,cW(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:tge,htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){tr.contains(["gather","gather*"],e.envName)&&UI(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:uW(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return I0(e.parser,t,"display")},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:tge,htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){UI(e);var t={autoTag:uW(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return I0(e.parser,t,"display")},htmlBuilder:eh,mathmlBuilder:th});Jf({type:"array",names:["CD"],props:{numArgs:0},handler(e){return UI(e),Dct(e.parser)},htmlBuilder:eh,mathmlBuilder:th});ue("\\nonumber","\\gdef\\@eqnsw{0}");ue("\\notag","\\nonumber");dn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ht(e.funcName+" valid only within array environment")}});var cne=J0e;dn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Ht("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Yr(e.body,r)},rge=(e,t)=>{var n=e.font,r=t.withFont(n);return xi(e.body,r)},dne={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};dn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t5(t[0]),a=r;return a in dne&&(a=dne[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:nge,mathmlBuilder:rge});dn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=tr.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:FI(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});dn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:nge,mathmlBuilder:rge});var ige=(e,t)=>{var n=t;return e==="display"?n=n.id>=Gn.SCRIPT.id?n.text():Gn.DISPLAY:e==="text"&&n.size===Gn.DISPLAY.size?n=Gn.TEXT:e==="script"?n=Gn.SCRIPT:e==="scriptscript"&&(n=Gn.SCRIPTSCRIPT),n},dW=(e,t)=>{var n=ige(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Yr(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*h:b=7*h,S=t.fontMetrics().denom1):(f>0?(g=t.fontMetrics().num2,b=h):(g=t.fontMetrics().num3,b=3*h),S=t.fontMetrics().denom2);var w;if(c){var x=t.fontMetrics().axisHeight;g-s.depth-(x+.5*f){var n=new Ut.MathNode("mfrac",[xi(e.numer,t),xi(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=aa(e.barSize,t);n.setAttribute("linethickness",Jt(r))}var i=ige(e.size,t.style);if(i.size!==t.style.size){n=new Ut.MathNode("mstyle",[n]);var a=i.size===Gn.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Ut.MathNode("mo",[new Ut.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new Ut.MathNode("mo",[new Ut.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return nW(s)}return n};dn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:dW,mathmlBuilder:fW});dn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});dn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var fne=["display","text","script","scriptscript"],hne=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};dn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=t5(t[0]),s=a.type==="atom"&&a.family==="open"?hne(a.text):null,o=t5(t[1]),l=o.type==="atom"&&o.family==="close"?hne(o.text):null,u=br(t[2],"size"),c,f=null;u.isBlank?c=!0:(f=u.value,c=f.number>0);var h="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var b=br(g.body[0],"textord");h=fne[Number(b.text)]}}else g=br(g,"textord"),h=fne[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:f,leftDelim:s,rightDelim:l,size:h}},htmlBuilder:dW,mathmlBuilder:fW});dn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:br(t[0],"size").value,token:i}}});dn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=wut(br(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:dW,mathmlBuilder:fW});var age=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Yr(e.sup,t.havingStyle(n.sup()),t):Yr(e.sub,t.havingStyle(n.sub()),t),i=br(e.base,"horizBrace")):i=br(e,"horizBrace");var a=Yr(i.base,t.havingBaseStyle(Gn.DISPLAY)),s=fp.svgSpan(i,t),o;if(i.isOver?(o=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=it.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=it.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=it.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return it.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},qct=(e,t)=>{var n=fp.mathMLnode(e.label);return new Ut.MathNode(e.isOver?"mover":"munder",[xi(e.base,t),n])};dn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:age,mathmlBuilder:qct});dn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=br(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:$a(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=os(e.body,t,!1);return it.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=h0(e.body,t);return n instanceof cc||(n=new cc("mrow",[n])),n.setAttribute("href",e.href),n}});dn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=br(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=br(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),c=0;c{var n=os(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=it.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>h0(e.body,t)});dn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:$a(t[0]),mathml:$a(t[1])}},htmlBuilder:(e,t)=>{var n=os(e.html,t,!1);return it.makeFragment(n)},mathmlBuilder:(e,t)=>h0(e.mathml,t)});var e7=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Ht("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!x0e(r))throw new Ht("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};dn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=br(n[0],"raw").string,u=l.split(","),c=0;c{var n=aa(e.height,t),r=0;e.totalheight.number>0&&(r=aa(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=aa(e.width,t));var a={height:Jt(n+r)};i>0&&(a.width=Jt(i)),r>0&&(a.verticalAlign=Jt(-r));var s=new qut(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Ut.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=aa(e.height,t),i=0;if(e.totalheight.number>0&&(i=aa(e.totalheight,t)-r,n.setAttribute("valign",Jt(-i))),n.setAttribute("height",Jt(r+i)),e.width.number>0){var a=aa(e.width,t);n.setAttribute("width",Jt(a))}return n.setAttribute("src",e.src),n}});dn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=br(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return it.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=aa(e.dimension,t);return new Ut.SpaceNode(n)}});dn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=it.makeSpan([],[Yr(e.body,t)]),n=it.makeSpan(["inner"],[n],t)):n=it.makeSpan(["inner"],[Yr(e.body,t)]);var r=it.makeSpan(["fix"],[]),i=it.makeSpan([e.alignment],[n,r],t),a=it.makeSpan(["strut"]);return a.style.height=Jt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Jt(-i.depth)),i.children.unshift(a),i=it.makeSpan(["thinbox"],[i],t),it.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Ut.MathNode("mpadded",[xi(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});dn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});dn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ht("Mismatched "+e.funcName)}});var pne=(e,t)=>{switch(t.style.size){case Gn.DISPLAY.size:return e.display;case Gn.TEXT.size:return e.text;case Gn.SCRIPT.size:return e.script;case Gn.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};dn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:$a(t[0]),text:$a(t[1]),script:$a(t[2]),scriptscript:$a(t[3])}},htmlBuilder:(e,t)=>{var n=pne(e,t),r=os(n,t,!1);return it.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=pne(e,t);return h0(n,t)}});var sge=(e,t,n,r,i,a,s)=>{e=it.makeSpan([],[e]);var o=n&&tr.isCharacterBox(n),l,u;if(t){var c=Yr(t,r.havingStyle(i.sup()),r);u={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var f=Yr(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var h;if(u&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;h=it.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var b=e.height-s;h=it.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var S=e.depth+s;h=it.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var w=[h];if(l&&a!==0&&!o){var E=it.makeSpan(["mspace"],[],r);E.style.marginRight=Jt(a),w.unshift(E)}return it.makeSpan(["mop","op-limits"],w,r)},oge=["\\smallint"],YO=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=br(e.base,"op"),i=!0):a=br(e,"op");var s=t.style,o=!1;s.size===Gn.DISPLAY.size&&a.symbol&&!tr.contains(oge,a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),l=it.makeSymbol(a.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var f=l.italic,h=it.staticSvg(c+"Size"+(o?"2":"1"),t);l=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:h,shift:o?.08:0}]},t),a.name="\\"+c,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var g=os(a.body,t,!0);g.length===1&&g[0]instanceof _c?(l=g[0],l.classes[0]="mop"):l=it.makeSpan(["mop"],g,t)}else{for(var b=[],S=1;S{var n;if(e.symbol)n=new cc("mo",[Rc(e.name,e.mode)]),tr.contains(oge,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new cc("mo",Rl(e.body,t));else{n=new cc("mi",[new Y2(e.name.slice(1))]);var r=new cc("mo",[Rc("⁡","text")]);e.parentIsSupSub?n=new cc("mrow",[n,r]):n=M0e([n,r])}return n},Gct={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};dn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Gct[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:YO,mathmlBuilder:WT});dn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:$a(r)}},htmlBuilder:YO,mathmlBuilder:WT});var Yct={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};dn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:YO,mathmlBuilder:WT});dn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:YO,mathmlBuilder:WT});dn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Yct[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:YO,mathmlBuilder:WT});var lge=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=br(e.base,"operatorname"),i=!0):a=br(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(f=>{var h=f.text;return typeof h=="string"?{type:"textord",mode:f.mode,text:h}:f}),l=os(o,t.withFont("mathrm"),!0),u=0;u{for(var n=Rl(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new Ut.TextNode(o)]}var l=new Ut.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Ut.MathNode("mo",[Rc("⁡","text")]);return e.parentIsSupSub?new Ut.MathNode("mrow",[l,u]):Ut.newDocumentFragment([l,u])};dn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:$a(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:lge,mathmlBuilder:Zct});ue("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");M1({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?it.makeFragment(os(e.body,t,!1)):it.makeSpan(["mord"],os(e.body,t,!0),t)},mathmlBuilder(e,t){return h0(e.body,t,!0)}});dn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Yr(e.body,t.havingCrampedStyle()),r=it.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return it.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Ut.MathNode("mo",[new Ut.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ut.MathNode("mover",[xi(e.body,t),n]);return r.setAttribute("accent","true"),r}});dn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:$a(r)}},htmlBuilder:(e,t)=>{var n=os(e.body,t.withPhantom(),!1);return it.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Rl(e.body,t);return new Ut.MathNode("mphantom",n)}});dn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=it.makeSpan([],[Yr(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Rl($a(e.body),t),r=new Ut.MathNode("mphantom",n),i=new Ut.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});dn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=it.makeSpan(["inner"],[Yr(e.body,t.withPhantom())]),r=it.makeSpan(["fix"],[]);return it.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Rl($a(e.body),t),r=new Ut.MathNode("mphantom",n),i=new Ut.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});dn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=br(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Yr(e.body,t),r=aa(e.dy,t);return it.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Ut.MathNode("mpadded",[xi(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});dn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});dn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=br(t[0],"size"),s=br(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&br(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=it.makeSpan(["mord","rule"],[],t),r=aa(e.width,t),i=aa(e.height,t),a=e.shift?aa(e.shift,t):0;return n.style.borderRightWidth=Jt(r),n.style.borderTopWidth=Jt(i),n.style.bottom=Jt(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=aa(e.width,t),r=aa(e.height,t),i=e.shift?aa(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Ut.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Jt(n)),s.setAttribute("height",Jt(r));var o=new Ut.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",Jt(i)):(o.setAttribute("height",Jt(i)),o.setAttribute("depth",Jt(-i))),o.setAttribute("voffset",Jt(i)),o}});function uge(e,t,n){for(var r=os(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return uge(e.body,n,t)};dn({type:"sizing",names:mne,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:mne.indexOf(r)+1,body:a}},htmlBuilder:Xct,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Rl(e.body,n),i=new Ut.MathNode("mstyle",r);return i.setAttribute("mathsize",Jt(n.sizeMultiplier)),i}});dn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&br(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=it.makeSpan([],[Yr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new Ut.MathNode("mpadded",[xi(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});dn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Yr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=it.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+f-n.height-n.depth)/2);var h=l.height-n.height-s-u;n.style.paddingLeft=Jt(c);var g=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var b=t.havingStyle(Gn.SCRIPTSCRIPT),S=Yr(e.index,b,t),w=.6*(g.height-g.depth),E=it.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:S}]},t),x=it.makeSpan(["root"],[E]);return it.makeSpan(["mord","sqrt"],[x,g],t)}else return it.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Ut.MathNode("mroot",[xi(n,t),xi(r,t)]):new Ut.MathNode("msqrt",[xi(n,t)])}});var gne={display:Gn.DISPLAY,text:Gn.TEXT,script:Gn.SCRIPT,scriptscript:Gn.SCRIPTSCRIPT};dn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=gne[e.style],r=t.havingStyle(n).withFont("");return uge(e.body,r,t)},mathmlBuilder(e,t){var n=gne[e.style],r=t.havingStyle(n),i=Rl(e.body,r),a=new Ut.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Kct=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Gn.DISPLAY.size||r.alwaysHandleSupSub);return i?YO:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Gn.DISPLAY.size||r.limits);return a?lge:null}else{if(r.type==="accent")return tr.isCharacterBox(r.base)?aW:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?age:null}else return null}else return null};M1({type:"supsub",htmlBuilder(e,t){var n=Kct(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Yr(r,t),o,l,u=t.fontMetrics(),c=0,f=0,h=r&&tr.isCharacterBox(r);if(i){var g=t.havingStyle(t.style.sup());o=Yr(i,g,t),h||(c=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());l=Yr(a,b,t),h||(f=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Gn.DISPLAY?S=u.sup1:t.style.cramped?S=u.sup3:S=u.sup2;var w=t.sizeMultiplier,E=Jt(.5/u.ptPerEm/w),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof _c||k)&&(x=Jt(-s.italic))}var C;if(o&&l){c=Math.max(c,S,o.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var R=u.defaultRuleThickness,A=4*R;if(c-o.depth-(l.height-f)0&&(c+=D,f-=D)}var B=[{type:"elem",elem:l,shift:f,marginRight:E,marginLeft:x},{type:"elem",elem:o,shift:-c,marginRight:E}];C=it.makeVList({positionType:"individualShift",children:B},t)}else if(l){f=Math.max(f,u.sub1,l.height-.8*u.xHeight);var L=[{type:"elem",elem:l,marginLeft:x,marginRight:E}];C=it.makeVList({positionType:"shift",positionData:f,children:L},t)}else if(o)c=Math.max(c,S,o.depth+.25*u.xHeight),C=it.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:E}]},t);else throw new Error("supsub must have either sup or sub.");var F=HL(s,"right")||"mord";return it.makeSpan([F],[s,it.makeSpan(["msupsub"],[C])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[xi(e.base,t)];e.sub&&a.push(xi(e.sub,t)),e.sup&&a.push(xi(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Gn.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Gn.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Gn.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Gn.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Gn.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Gn.DISPLAY)?s="mover":s="msup"}return new Ut.MathNode(s,a)}});M1({type:"atom",htmlBuilder(e,t){return it.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ut.MathNode("mo",[Rc(e.text,e.mode)]);if(e.family==="bin"){var r=rW(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var cge={mi:"italic",mn:"normal",mtext:"normal"};M1({type:"mathord",htmlBuilder(e,t){return it.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ut.MathNode("mi",[Rc(e.text,e.mode,t)]),r=rW(e,t)||"italic";return r!==cge[n.type]&&n.setAttribute("mathvariant",r),n}});M1({type:"textord",htmlBuilder(e,t){return it.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Rc(e.text,e.mode,t),r=rW(e,t)||"normal",i;return e.mode==="text"?i=new Ut.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Ut.MathNode("mn",[n]):e.text==="\\prime"?i=new Ut.MathNode("mo",[n]):i=new Ut.MathNode("mi",[n]),r!==cge[i.type]&&i.setAttribute("mathvariant",r),i}});var t7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},n7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};M1({type:"spacing",htmlBuilder(e,t){if(n7.hasOwnProperty(e.text)){var n=n7[e.text].className||"";if(e.mode==="text"){var r=it.makeOrd(e,t,"textord");return r.classes.push(n),r}else return it.makeSpan(["mspace",n],[it.mathsym(e.text,e.mode,t)],t)}else{if(t7.hasOwnProperty(e.text))return it.makeSpan(["mspace",t7[e.text]],[],t);throw new Ht('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(n7.hasOwnProperty(e.text))n=new Ut.MathNode("mtext",[new Ut.TextNode(" ")]);else{if(t7.hasOwnProperty(e.text))return new Ut.MathNode("mspace");throw new Ht('Unknown type of space "'+e.text+'"')}return n}});var bne=()=>{var e=new Ut.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};M1({type:"tag",mathmlBuilder(e,t){var n=new Ut.MathNode("mtable",[new Ut.MathNode("mtr",[bne(),new Ut.MathNode("mtd",[h0(e.body,t)]),bne(),new Ut.MathNode("mtd",[h0(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var yne={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},vne={"\\textbf":"textbf","\\textmd":"textmd"},Jct={"\\textit":"textit","\\textup":"textup"},One=(e,t)=>{var n=e.font;return n?yne[n]?t.withTextFontFamily(yne[n]):vne[n]?t.withTextFontWeight(vne[n]):t.withTextFontShape(Jct[n]):t};dn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:$a(i),font:r}},htmlBuilder(e,t){var n=One(e,t),r=os(e.body,n,!0);return it.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=One(e,t);return h0(e.body,n)}});dn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Yr(e.body,t),r=it.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=it.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return it.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Ut.MathNode("mo",[new Ut.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ut.MathNode("munder",[xi(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});dn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Yr(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return it.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Ut.MathNode("mpadded",[xi(e.body,t)],["vcenter"])}});dn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ht("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Sne(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Im=N0e,dge=`[ \r + ]`,edt="\\\\[a-zA-Z@]+",tdt="\\\\[^\uD800-\uDFFF]",ndt="("+edt+")"+dge+"*",rdt=`\\\\( |[ \r ]+ -?)[ \r ]*`,QL="[̀-ͯ]",Kct=new RegExp(QL+"+$"),Jct="("+dge+"+)|"+(Xct+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(QL+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(QL+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Zct)+("|"+Yct+")");class Sne{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(Jct,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Ff("EOF",new cu(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Ht("Unexpected character: '"+t[n]+"'",new Ff(t[n],new cu(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Ff(i,new cu(this,n,this.tokenRegex.lastIndex))}}class edt{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ht("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var tdt=ege;ue("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ue("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ue("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ue("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ue("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ue("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ue("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Ene={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ue("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ht("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Ene[t.text],r==null||r>=n)throw new Ht("Invalid base-"+n+" digit "+t.text);for(var i;(i=Ene[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new Ht("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Ht("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Ht("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new Ht("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};ue("\\newcommand",e=>fW(e,!1,!0));ue("\\renewcommand",e=>fW(e,!0,!1));ue("\\providecommand",e=>fW(e,!0,!0));ue("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});ue("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});ue("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Rm[n],Ii.math[n],Ii.text[n]),""});ue("\\bgroup","{");ue("\\egroup","}");ue("~","\\nobreakspace");ue("\\lq","`");ue("\\rq","'");ue("\\aa","\\r a");ue("\\AA","\\r A");ue("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ue("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ue("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ue("ℬ","\\mathscr{B}");ue("ℰ","\\mathscr{E}");ue("ℱ","\\mathscr{F}");ue("ℋ","\\mathscr{H}");ue("ℐ","\\mathscr{I}");ue("ℒ","\\mathscr{L}");ue("ℳ","\\mathscr{M}");ue("ℛ","\\mathscr{R}");ue("ℭ","\\mathfrak{C}");ue("ℌ","\\mathfrak{H}");ue("ℨ","\\mathfrak{Z}");ue("\\Bbbk","\\Bbb{k}");ue("·","\\cdotp");ue("\\llap","\\mathllap{\\textrm{#1}}");ue("\\rlap","\\mathrlap{\\textrm{#1}}");ue("\\clap","\\mathclap{\\textrm{#1}}");ue("\\mathstrut","\\vphantom{(}");ue("\\underbar","\\underline{\\text{#1}}");ue("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ue("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ue("\\ne","\\neq");ue("≠","\\neq");ue("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ue("∉","\\notin");ue("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ue("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ue("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ue("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ue("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ue("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ue("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ue("⟂","\\perp");ue("‼","\\mathclose{!\\mkern-0.8mu!}");ue("∌","\\notni");ue("⌜","\\ulcorner");ue("⌝","\\urcorner");ue("⌞","\\llcorner");ue("⌟","\\lrcorner");ue("©","\\copyright");ue("®","\\textregistered");ue("️","\\textregistered");ue("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ue("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ue("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ue("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ue("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");ue("⋮","\\vdots");ue("\\varGamma","\\mathit{\\Gamma}");ue("\\varDelta","\\mathit{\\Delta}");ue("\\varTheta","\\mathit{\\Theta}");ue("\\varLambda","\\mathit{\\Lambda}");ue("\\varXi","\\mathit{\\Xi}");ue("\\varPi","\\mathit{\\Pi}");ue("\\varSigma","\\mathit{\\Sigma}");ue("\\varUpsilon","\\mathit{\\Upsilon}");ue("\\varPhi","\\mathit{\\Phi}");ue("\\varPsi","\\mathit{\\Psi}");ue("\\varOmega","\\mathit{\\Omega}");ue("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ue("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ue("\\boxed","\\fbox{$\\displaystyle{#1}$}");ue("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ue("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ue("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var wne={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ue("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in wne?t=wne[n]:(n.slice(0,4)==="\\not"||n in Ii.math&&tr.contains(["bin","rel"],Ii.math[n].group))&&(t="\\dotsb"),t});var hW={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ue("\\dotso",function(e){var t=e.future().text;return t in hW?"\\ldots\\,":"\\ldots"});ue("\\dotsc",function(e){var t=e.future().text;return t in hW&&t!==","?"\\ldots\\,":"\\ldots"});ue("\\cdots",function(e){var t=e.future().text;return t in hW?"\\@cdots\\,":"\\@cdots"});ue("\\dotsb","\\cdots");ue("\\dotsm","\\cdots");ue("\\dotsi","\\!\\cdots");ue("\\dotsx","\\ldots\\,");ue("\\DOTSI","\\relax");ue("\\DOTSB","\\relax");ue("\\DOTSX","\\relax");ue("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ue("\\,","\\tmspace+{3mu}{.1667em}");ue("\\thinspace","\\,");ue("\\>","\\mskip{4mu}");ue("\\:","\\tmspace+{4mu}{.2222em}");ue("\\medspace","\\:");ue("\\;","\\tmspace+{5mu}{.2777em}");ue("\\thickspace","\\;");ue("\\!","\\tmspace-{3mu}{.1667em}");ue("\\negthinspace","\\!");ue("\\negmedspace","\\tmspace-{4mu}{.2222em}");ue("\\negthickspace","\\tmspace-{5mu}{.277em}");ue("\\enspace","\\kern.5em ");ue("\\enskip","\\hskip.5em\\relax");ue("\\quad","\\hskip1em\\relax");ue("\\qquad","\\hskip2em\\relax");ue("\\tag","\\@ifstar\\tag@literal\\tag@paren");ue("\\tag@paren","\\tag@literal{({#1})}");ue("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ht("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ue("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ue("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ue("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ue("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ue("\\newline","\\\\\\relax");ue("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var fge=Jt(Cf["Main-Regular"][84][1]-.7*Cf["Main-Regular"][65][1]);ue("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+fge+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ue("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+fge+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ue("\\hspace","\\@ifstar\\@hspacer\\@hspace");ue("\\@hspace","\\hskip #1\\relax");ue("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ue("\\ordinarycolon",":");ue("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ue("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ue("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ue("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ue("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ue("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ue("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ue("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ue("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ue("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ue("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ue("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ue("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ue("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ue("∷","\\dblcolon");ue("∹","\\eqcolon");ue("≔","\\coloneqq");ue("≕","\\eqqcolon");ue("⩴","\\Coloneqq");ue("\\ratio","\\vcentcolon");ue("\\coloncolon","\\dblcolon");ue("\\colonequals","\\coloneqq");ue("\\coloncolonequals","\\Coloneqq");ue("\\equalscolon","\\eqqcolon");ue("\\equalscoloncolon","\\Eqqcolon");ue("\\colonminus","\\coloneq");ue("\\coloncolonminus","\\Coloneq");ue("\\minuscolon","\\eqcolon");ue("\\minuscoloncolon","\\Eqcolon");ue("\\coloncolonapprox","\\Colonapprox");ue("\\coloncolonsim","\\Colonsim");ue("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ue("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ue("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ue("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ue("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ue("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ue("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ue("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ue("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ue("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ue("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ue("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ue("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ue("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ue("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ue("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ue("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ue("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ue("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ue("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ue("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ue("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ue("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ue("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ue("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ue("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ue("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ue("\\imath","\\html@mathml{\\@imath}{ı}");ue("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ue("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ue("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ue("⟦","\\llbracket");ue("⟧","\\rrbracket");ue("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ue("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ue("⦃","\\lBrace");ue("⦄","\\rBrace");ue("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ue("⦵","\\minuso");ue("\\darr","\\downarrow");ue("\\dArr","\\Downarrow");ue("\\Darr","\\Downarrow");ue("\\lang","\\langle");ue("\\rang","\\rangle");ue("\\uarr","\\uparrow");ue("\\uArr","\\Uparrow");ue("\\Uarr","\\Uparrow");ue("\\N","\\mathbb{N}");ue("\\R","\\mathbb{R}");ue("\\Z","\\mathbb{Z}");ue("\\alef","\\aleph");ue("\\alefsym","\\aleph");ue("\\Alpha","\\mathrm{A}");ue("\\Beta","\\mathrm{B}");ue("\\bull","\\bullet");ue("\\Chi","\\mathrm{X}");ue("\\clubs","\\clubsuit");ue("\\cnums","\\mathbb{C}");ue("\\Complex","\\mathbb{C}");ue("\\Dagger","\\ddagger");ue("\\diamonds","\\diamondsuit");ue("\\empty","\\emptyset");ue("\\Epsilon","\\mathrm{E}");ue("\\Eta","\\mathrm{H}");ue("\\exist","\\exists");ue("\\harr","\\leftrightarrow");ue("\\hArr","\\Leftrightarrow");ue("\\Harr","\\Leftrightarrow");ue("\\hearts","\\heartsuit");ue("\\image","\\Im");ue("\\infin","\\infty");ue("\\Iota","\\mathrm{I}");ue("\\isin","\\in");ue("\\Kappa","\\mathrm{K}");ue("\\larr","\\leftarrow");ue("\\lArr","\\Leftarrow");ue("\\Larr","\\Leftarrow");ue("\\lrarr","\\leftrightarrow");ue("\\lrArr","\\Leftrightarrow");ue("\\Lrarr","\\Leftrightarrow");ue("\\Mu","\\mathrm{M}");ue("\\natnums","\\mathbb{N}");ue("\\Nu","\\mathrm{N}");ue("\\Omicron","\\mathrm{O}");ue("\\plusmn","\\pm");ue("\\rarr","\\rightarrow");ue("\\rArr","\\Rightarrow");ue("\\Rarr","\\Rightarrow");ue("\\real","\\Re");ue("\\reals","\\mathbb{R}");ue("\\Reals","\\mathbb{R}");ue("\\Rho","\\mathrm{P}");ue("\\sdot","\\cdot");ue("\\sect","\\S");ue("\\spades","\\spadesuit");ue("\\sub","\\subset");ue("\\sube","\\subseteq");ue("\\supe","\\supseteq");ue("\\Tau","\\mathrm{T}");ue("\\thetasym","\\vartheta");ue("\\weierp","\\wp");ue("\\Zeta","\\mathrm{Z}");ue("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ue("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ue("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ue("\\bra","\\mathinner{\\langle{#1}|}");ue("\\ket","\\mathinner{|{#1}\\rangle}");ue("\\braket","\\mathinner{\\langle{#1}\\rangle}");ue("\\Bra","\\left\\langle#1\\right|");ue("\\Ket","\\left|#1\\right\\rangle");var hge=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=f=>h=>{e&&(h.macros.set("|",s),i.length&&h.macros.set("\\|",o));var g=f;if(!f&&i.length){var b=h.future();b.text==="|"&&(h.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};ue("\\bra@ket",hge(!1));ue("\\bra@set",hge(!0));ue("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ue("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ue("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ue("\\angln","{\\angl n}");ue("\\blue","\\textcolor{##6495ed}{#1}");ue("\\orange","\\textcolor{##ffa500}{#1}");ue("\\pink","\\textcolor{##ff00af}{#1}");ue("\\red","\\textcolor{##df0030}{#1}");ue("\\green","\\textcolor{##28ae7b}{#1}");ue("\\gray","\\textcolor{gray}{#1}");ue("\\purple","\\textcolor{##9d38bd}{#1}");ue("\\blueA","\\textcolor{##ccfaff}{#1}");ue("\\blueB","\\textcolor{##80f6ff}{#1}");ue("\\blueC","\\textcolor{##63d9ea}{#1}");ue("\\blueD","\\textcolor{##11accd}{#1}");ue("\\blueE","\\textcolor{##0c7f99}{#1}");ue("\\tealA","\\textcolor{##94fff5}{#1}");ue("\\tealB","\\textcolor{##26edd5}{#1}");ue("\\tealC","\\textcolor{##01d1c1}{#1}");ue("\\tealD","\\textcolor{##01a995}{#1}");ue("\\tealE","\\textcolor{##208170}{#1}");ue("\\greenA","\\textcolor{##b6ffb0}{#1}");ue("\\greenB","\\textcolor{##8af281}{#1}");ue("\\greenC","\\textcolor{##74cf70}{#1}");ue("\\greenD","\\textcolor{##1fab54}{#1}");ue("\\greenE","\\textcolor{##0d923f}{#1}");ue("\\goldA","\\textcolor{##ffd0a9}{#1}");ue("\\goldB","\\textcolor{##ffbb71}{#1}");ue("\\goldC","\\textcolor{##ff9c39}{#1}");ue("\\goldD","\\textcolor{##e07d10}{#1}");ue("\\goldE","\\textcolor{##a75a05}{#1}");ue("\\redA","\\textcolor{##fca9a9}{#1}");ue("\\redB","\\textcolor{##ff8482}{#1}");ue("\\redC","\\textcolor{##f9685d}{#1}");ue("\\redD","\\textcolor{##e84d39}{#1}");ue("\\redE","\\textcolor{##bc2612}{#1}");ue("\\maroonA","\\textcolor{##ffbde0}{#1}");ue("\\maroonB","\\textcolor{##ff92c6}{#1}");ue("\\maroonC","\\textcolor{##ed5fa6}{#1}");ue("\\maroonD","\\textcolor{##ca337c}{#1}");ue("\\maroonE","\\textcolor{##9e034e}{#1}");ue("\\purpleA","\\textcolor{##ddd7ff}{#1}");ue("\\purpleB","\\textcolor{##c6b9fc}{#1}");ue("\\purpleC","\\textcolor{##aa87ff}{#1}");ue("\\purpleD","\\textcolor{##7854ab}{#1}");ue("\\purpleE","\\textcolor{##543b78}{#1}");ue("\\mintA","\\textcolor{##f5f9e8}{#1}");ue("\\mintB","\\textcolor{##edf2df}{#1}");ue("\\mintC","\\textcolor{##e0e5cc}{#1}");ue("\\grayA","\\textcolor{##f6f7f7}{#1}");ue("\\grayB","\\textcolor{##f0f1f2}{#1}");ue("\\grayC","\\textcolor{##e3e5e6}{#1}");ue("\\grayD","\\textcolor{##d6d8da}{#1}");ue("\\grayE","\\textcolor{##babec2}{#1}");ue("\\grayF","\\textcolor{##888d93}{#1}");ue("\\grayG","\\textcolor{##626569}{#1}");ue("\\grayH","\\textcolor{##3b3e40}{#1}");ue("\\grayI","\\textcolor{##21242c}{#1}");ue("\\kaBlue","\\textcolor{##314453}{#1}");ue("\\kaGreen","\\textcolor{##71B307}{#1}");var pge={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class ndt{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new edt(tdt,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Sne(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Ff("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Ht("Extra }",a)}else if(a.text==="EOF")throw new Ht("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Ht("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new Ht("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Ht("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Ht("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Ff(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new Sne(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var c={tokens:l,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||Rm.hasOwnProperty(t)||Ii.math.hasOwnProperty(t)||Ii.text.hasOwnProperty(t)||pge.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Rm.hasOwnProperty(t)&&!Rm[t].primitive}}var xne=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,UA=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),t7={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Tne={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class px{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ndt(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Ht("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Ff("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(px.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Rm[i.text]&&Rm[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Ii[this.mode][n].group,l=cu.range(t),u;if(Vut.hasOwnProperty(o)){var c=o;u={type:"atom",mode:this.mode,family:c,loc:l,text:n}}else u={type:o,mode:this.mode,loc:l,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(w0e(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:cu.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;f0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var odt=ege;ue("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ue("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ue("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ue("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ue("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ue("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ue("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var wne={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ue("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ht("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=wne[t.text],r==null||r>=n)throw new Ht("Invalid base-"+n+" digit "+t.text);for(var i;(i=wne[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new Ht("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Ht("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Ht("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new Ht("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};ue("\\newcommand",e=>hW(e,!1,!0));ue("\\renewcommand",e=>hW(e,!0,!1));ue("\\providecommand",e=>hW(e,!0,!0));ue("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});ue("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});ue("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Im[n],Ii.math[n],Ii.text[n]),""});ue("\\bgroup","{");ue("\\egroup","}");ue("~","\\nobreakspace");ue("\\lq","`");ue("\\rq","'");ue("\\aa","\\r a");ue("\\AA","\\r A");ue("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ue("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ue("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ue("ℬ","\\mathscr{B}");ue("ℰ","\\mathscr{E}");ue("ℱ","\\mathscr{F}");ue("ℋ","\\mathscr{H}");ue("ℐ","\\mathscr{I}");ue("ℒ","\\mathscr{L}");ue("ℳ","\\mathscr{M}");ue("ℛ","\\mathscr{R}");ue("ℭ","\\mathfrak{C}");ue("ℌ","\\mathfrak{H}");ue("ℨ","\\mathfrak{Z}");ue("\\Bbbk","\\Bbb{k}");ue("·","\\cdotp");ue("\\llap","\\mathllap{\\textrm{#1}}");ue("\\rlap","\\mathrlap{\\textrm{#1}}");ue("\\clap","\\mathclap{\\textrm{#1}}");ue("\\mathstrut","\\vphantom{(}");ue("\\underbar","\\underline{\\text{#1}}");ue("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ue("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ue("\\ne","\\neq");ue("≠","\\neq");ue("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ue("∉","\\notin");ue("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ue("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ue("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ue("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ue("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ue("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ue("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ue("⟂","\\perp");ue("‼","\\mathclose{!\\mkern-0.8mu!}");ue("∌","\\notni");ue("⌜","\\ulcorner");ue("⌝","\\urcorner");ue("⌞","\\llcorner");ue("⌟","\\lrcorner");ue("©","\\copyright");ue("®","\\textregistered");ue("️","\\textregistered");ue("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ue("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ue("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ue("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ue("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");ue("⋮","\\vdots");ue("\\varGamma","\\mathit{\\Gamma}");ue("\\varDelta","\\mathit{\\Delta}");ue("\\varTheta","\\mathit{\\Theta}");ue("\\varLambda","\\mathit{\\Lambda}");ue("\\varXi","\\mathit{\\Xi}");ue("\\varPi","\\mathit{\\Pi}");ue("\\varSigma","\\mathit{\\Sigma}");ue("\\varUpsilon","\\mathit{\\Upsilon}");ue("\\varPhi","\\mathit{\\Phi}");ue("\\varPsi","\\mathit{\\Psi}");ue("\\varOmega","\\mathit{\\Omega}");ue("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ue("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ue("\\boxed","\\fbox{$\\displaystyle{#1}$}");ue("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ue("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ue("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var xne={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ue("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in xne?t=xne[n]:(n.slice(0,4)==="\\not"||n in Ii.math&&tr.contains(["bin","rel"],Ii.math[n].group))&&(t="\\dotsb"),t});var pW={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ue("\\dotso",function(e){var t=e.future().text;return t in pW?"\\ldots\\,":"\\ldots"});ue("\\dotsc",function(e){var t=e.future().text;return t in pW&&t!==","?"\\ldots\\,":"\\ldots"});ue("\\cdots",function(e){var t=e.future().text;return t in pW?"\\@cdots\\,":"\\@cdots"});ue("\\dotsb","\\cdots");ue("\\dotsm","\\cdots");ue("\\dotsi","\\!\\cdots");ue("\\dotsx","\\ldots\\,");ue("\\DOTSI","\\relax");ue("\\DOTSB","\\relax");ue("\\DOTSX","\\relax");ue("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ue("\\,","\\tmspace+{3mu}{.1667em}");ue("\\thinspace","\\,");ue("\\>","\\mskip{4mu}");ue("\\:","\\tmspace+{4mu}{.2222em}");ue("\\medspace","\\:");ue("\\;","\\tmspace+{5mu}{.2777em}");ue("\\thickspace","\\;");ue("\\!","\\tmspace-{3mu}{.1667em}");ue("\\negthinspace","\\!");ue("\\negmedspace","\\tmspace-{4mu}{.2222em}");ue("\\negthickspace","\\tmspace-{5mu}{.277em}");ue("\\enspace","\\kern.5em ");ue("\\enskip","\\hskip.5em\\relax");ue("\\quad","\\hskip1em\\relax");ue("\\qquad","\\hskip2em\\relax");ue("\\tag","\\@ifstar\\tag@literal\\tag@paren");ue("\\tag@paren","\\tag@literal{({#1})}");ue("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ht("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ue("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ue("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ue("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ue("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ue("\\newline","\\\\\\relax");ue("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var fge=Jt(Cf["Main-Regular"][84][1]-.7*Cf["Main-Regular"][65][1]);ue("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+fge+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ue("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+fge+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ue("\\hspace","\\@ifstar\\@hspacer\\@hspace");ue("\\@hspace","\\hskip #1\\relax");ue("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ue("\\ordinarycolon",":");ue("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ue("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ue("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ue("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ue("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ue("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ue("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ue("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ue("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ue("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ue("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ue("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ue("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ue("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ue("∷","\\dblcolon");ue("∹","\\eqcolon");ue("≔","\\coloneqq");ue("≕","\\eqqcolon");ue("⩴","\\Coloneqq");ue("\\ratio","\\vcentcolon");ue("\\coloncolon","\\dblcolon");ue("\\colonequals","\\coloneqq");ue("\\coloncolonequals","\\Coloneqq");ue("\\equalscolon","\\eqqcolon");ue("\\equalscoloncolon","\\Eqqcolon");ue("\\colonminus","\\coloneq");ue("\\coloncolonminus","\\Coloneq");ue("\\minuscolon","\\eqcolon");ue("\\minuscoloncolon","\\Eqcolon");ue("\\coloncolonapprox","\\Colonapprox");ue("\\coloncolonsim","\\Colonsim");ue("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ue("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ue("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ue("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ue("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ue("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ue("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ue("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ue("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ue("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ue("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ue("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ue("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ue("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ue("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ue("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ue("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ue("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ue("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ue("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ue("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ue("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ue("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ue("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ue("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ue("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ue("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ue("\\imath","\\html@mathml{\\@imath}{ı}");ue("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ue("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ue("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ue("⟦","\\llbracket");ue("⟧","\\rrbracket");ue("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ue("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ue("⦃","\\lBrace");ue("⦄","\\rBrace");ue("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ue("⦵","\\minuso");ue("\\darr","\\downarrow");ue("\\dArr","\\Downarrow");ue("\\Darr","\\Downarrow");ue("\\lang","\\langle");ue("\\rang","\\rangle");ue("\\uarr","\\uparrow");ue("\\uArr","\\Uparrow");ue("\\Uarr","\\Uparrow");ue("\\N","\\mathbb{N}");ue("\\R","\\mathbb{R}");ue("\\Z","\\mathbb{Z}");ue("\\alef","\\aleph");ue("\\alefsym","\\aleph");ue("\\Alpha","\\mathrm{A}");ue("\\Beta","\\mathrm{B}");ue("\\bull","\\bullet");ue("\\Chi","\\mathrm{X}");ue("\\clubs","\\clubsuit");ue("\\cnums","\\mathbb{C}");ue("\\Complex","\\mathbb{C}");ue("\\Dagger","\\ddagger");ue("\\diamonds","\\diamondsuit");ue("\\empty","\\emptyset");ue("\\Epsilon","\\mathrm{E}");ue("\\Eta","\\mathrm{H}");ue("\\exist","\\exists");ue("\\harr","\\leftrightarrow");ue("\\hArr","\\Leftrightarrow");ue("\\Harr","\\Leftrightarrow");ue("\\hearts","\\heartsuit");ue("\\image","\\Im");ue("\\infin","\\infty");ue("\\Iota","\\mathrm{I}");ue("\\isin","\\in");ue("\\Kappa","\\mathrm{K}");ue("\\larr","\\leftarrow");ue("\\lArr","\\Leftarrow");ue("\\Larr","\\Leftarrow");ue("\\lrarr","\\leftrightarrow");ue("\\lrArr","\\Leftrightarrow");ue("\\Lrarr","\\Leftrightarrow");ue("\\Mu","\\mathrm{M}");ue("\\natnums","\\mathbb{N}");ue("\\Nu","\\mathrm{N}");ue("\\Omicron","\\mathrm{O}");ue("\\plusmn","\\pm");ue("\\rarr","\\rightarrow");ue("\\rArr","\\Rightarrow");ue("\\Rarr","\\Rightarrow");ue("\\real","\\Re");ue("\\reals","\\mathbb{R}");ue("\\Reals","\\mathbb{R}");ue("\\Rho","\\mathrm{P}");ue("\\sdot","\\cdot");ue("\\sect","\\S");ue("\\spades","\\spadesuit");ue("\\sub","\\subset");ue("\\sube","\\subseteq");ue("\\supe","\\supseteq");ue("\\Tau","\\mathrm{T}");ue("\\thetasym","\\vartheta");ue("\\weierp","\\wp");ue("\\Zeta","\\mathrm{Z}");ue("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ue("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ue("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ue("\\bra","\\mathinner{\\langle{#1}|}");ue("\\ket","\\mathinner{|{#1}\\rangle}");ue("\\braket","\\mathinner{\\langle{#1}\\rangle}");ue("\\Bra","\\left\\langle#1\\right|");ue("\\Ket","\\left|#1\\right\\rangle");var hge=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=f=>h=>{e&&(h.macros.set("|",s),i.length&&h.macros.set("\\|",o));var g=f;if(!f&&i.length){var b=h.future();b.text==="|"&&(h.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};ue("\\bra@ket",hge(!1));ue("\\bra@set",hge(!0));ue("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ue("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ue("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ue("\\angln","{\\angl n}");ue("\\blue","\\textcolor{##6495ed}{#1}");ue("\\orange","\\textcolor{##ffa500}{#1}");ue("\\pink","\\textcolor{##ff00af}{#1}");ue("\\red","\\textcolor{##df0030}{#1}");ue("\\green","\\textcolor{##28ae7b}{#1}");ue("\\gray","\\textcolor{gray}{#1}");ue("\\purple","\\textcolor{##9d38bd}{#1}");ue("\\blueA","\\textcolor{##ccfaff}{#1}");ue("\\blueB","\\textcolor{##80f6ff}{#1}");ue("\\blueC","\\textcolor{##63d9ea}{#1}");ue("\\blueD","\\textcolor{##11accd}{#1}");ue("\\blueE","\\textcolor{##0c7f99}{#1}");ue("\\tealA","\\textcolor{##94fff5}{#1}");ue("\\tealB","\\textcolor{##26edd5}{#1}");ue("\\tealC","\\textcolor{##01d1c1}{#1}");ue("\\tealD","\\textcolor{##01a995}{#1}");ue("\\tealE","\\textcolor{##208170}{#1}");ue("\\greenA","\\textcolor{##b6ffb0}{#1}");ue("\\greenB","\\textcolor{##8af281}{#1}");ue("\\greenC","\\textcolor{##74cf70}{#1}");ue("\\greenD","\\textcolor{##1fab54}{#1}");ue("\\greenE","\\textcolor{##0d923f}{#1}");ue("\\goldA","\\textcolor{##ffd0a9}{#1}");ue("\\goldB","\\textcolor{##ffbb71}{#1}");ue("\\goldC","\\textcolor{##ff9c39}{#1}");ue("\\goldD","\\textcolor{##e07d10}{#1}");ue("\\goldE","\\textcolor{##a75a05}{#1}");ue("\\redA","\\textcolor{##fca9a9}{#1}");ue("\\redB","\\textcolor{##ff8482}{#1}");ue("\\redC","\\textcolor{##f9685d}{#1}");ue("\\redD","\\textcolor{##e84d39}{#1}");ue("\\redE","\\textcolor{##bc2612}{#1}");ue("\\maroonA","\\textcolor{##ffbde0}{#1}");ue("\\maroonB","\\textcolor{##ff92c6}{#1}");ue("\\maroonC","\\textcolor{##ed5fa6}{#1}");ue("\\maroonD","\\textcolor{##ca337c}{#1}");ue("\\maroonE","\\textcolor{##9e034e}{#1}");ue("\\purpleA","\\textcolor{##ddd7ff}{#1}");ue("\\purpleB","\\textcolor{##c6b9fc}{#1}");ue("\\purpleC","\\textcolor{##aa87ff}{#1}");ue("\\purpleD","\\textcolor{##7854ab}{#1}");ue("\\purpleE","\\textcolor{##543b78}{#1}");ue("\\mintA","\\textcolor{##f5f9e8}{#1}");ue("\\mintB","\\textcolor{##edf2df}{#1}");ue("\\mintC","\\textcolor{##e0e5cc}{#1}");ue("\\grayA","\\textcolor{##f6f7f7}{#1}");ue("\\grayB","\\textcolor{##f0f1f2}{#1}");ue("\\grayC","\\textcolor{##e3e5e6}{#1}");ue("\\grayD","\\textcolor{##d6d8da}{#1}");ue("\\grayE","\\textcolor{##babec2}{#1}");ue("\\grayF","\\textcolor{##888d93}{#1}");ue("\\grayG","\\textcolor{##626569}{#1}");ue("\\grayH","\\textcolor{##3b3e40}{#1}");ue("\\grayI","\\textcolor{##21242c}{#1}");ue("\\kaBlue","\\textcolor{##314453}{#1}");ue("\\kaGreen","\\textcolor{##71B307}{#1}");var pge={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class ldt{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new sdt(odt,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Ene(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Ff("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Ht("Extra }",a)}else if(a.text==="EOF")throw new Ht("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Ht("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new Ht("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Ht("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Ht("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Ff(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new Ene(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var c={tokens:l,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||Im.hasOwnProperty(t)||Ii.math.hasOwnProperty(t)||Ii.text.hasOwnProperty(t)||pge.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Im.hasOwnProperty(t)&&!Im[t].primitive}}var Tne=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,zA=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),r7={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},kne={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class px{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ldt(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Ht("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Ff("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(px.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Im[i.text]&&Im[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Ii[this.mode][n].group,l=cu.range(t),u;if(Zut.hasOwnProperty(o)){var c=o;u={type:"atom",mode:this.mode,family:c,loc:l,text:n}}else u={type:o,mode:this.mode,loc:l,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(w0e(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:cu.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;fl&&(l=u):u&&(l!==void 0&&l>-1&&o.push(` -`.repeat(l)||" "),l=-1,o.push(u))}return o.join("")}function Sge(e,t,n){return e.type==="element"?Fdt(e,t,n):e.type==="text"?n.whitespace==="normal"?Ege(e,n):Bdt(e):[]}function Fdt(e,t,n){const r=wge(e,n),i=e.children||[];let a=-1,s=[];if(Ldt(e))return s;let o,l;for(YL(e)||Pne(e)&&Rne(t,e,Pne)?l=` -`:Mdt(e)?(o=2,l=2):Oge(e)&&(o=1,l=1);++a0&&(a.properties.rel=[...h]),g&&(a.properties.target=g),c){const S=FE(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:$f(S),children:$f(c)})}}}})}}function FE(e,t){return typeof e=="function"?e(t):e}function Mne(){const e=kT(),t=pi(AO),[n,r]=N.useState("");return N.useEffect(()=>{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r($L(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?I.jsx(S0e,{source:$L(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[gdt],rehypePlugins:[Qdt,[Jdt,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=J3.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return I.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?qV(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=J3.renderToString(o,{throwOnError:!1});return I.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return I.jsx("code",{className:String(a),children:i})}}}):I.jsx(lr,{direction:"row",justifyContent:"center",children:I.jsx(bp,{sx:{mt:2}})})}function xge(){const e=pi(AO),t=NUe();return!e.doc||!e.client?I.jsx(aT,{open:!0,children:I.jsx(bp,{color:"inherit"})}):I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&I.jsx(kUe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>I.jsx(hL.ScrollSync,{children:I.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[I.jsx("div",{id:"left-block",style:{width:n},children:I.jsx(fee,{})}),I.jsx(Zs,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),I.jsx(hL.ScrollSyncPane,{children:I.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:I.jsx(Ts,{sx:{p:4},height:"100%",children:I.jsx(Mne,{})})})})]})})}),e.mode==="read"&&I.jsx(Ts,{sx:{p:4,overflow:"auto"},height:"100%",children:I.jsx(Mne,{})}),e.mode==="edit"&&I.jsx(fee,{})]})}var Tge={exports:{}},eft={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},kge={exports:{}},tft=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},nft=tft,rft=Array.prototype.concat,ift=Array.prototype.slice,Lne=kge.exports=function(t){for(var n=[],r=0,i=t.length;r=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Ou.to.keyword=function(e){return Age[e.slice(0,3)]};function qm(e,t,n){return Math.min(Math.max(t,e),n)}function zA(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var sft=Tge.exports,oft={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const mx=oft,_ge={};for(const e of Object.keys(mx))_ge[mx[e]]=e;const Cn={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Rge=Cn;for(const e of Object.keys(Cn)){if(!("channels"in Cn[e]))throw new Error("missing channels property: "+e);if(!("labels"in Cn[e]))throw new Error("missing channel labels property: "+e);if(Cn[e].labels.length!==Cn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Cn[e];delete Cn[e].channels,delete Cn[e].labels,Object.defineProperty(Cn[e],"channels",{value:t}),Object.defineProperty(Cn[e],"labels",{value:n})}Cn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const u=(i+a)/2;return a===i?l=0:u<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,u*100]};Cn.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),f=function(h){return(u-h)/6/c+1/2};return c===0?(i=0,a=0):(a=c/u,t=f(s),n=f(o),r=f(l),s===u?i=r-n:o===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};Cn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=Cn.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};Cn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function lft(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Cn.rgb.keyword=function(e){const t=_ge[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(mx)){const a=mx[i],s=lft(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};Cn.rgb.lab=function(e){const t=Cn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};Cn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[u]=s*255;return l};Cn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};Cn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};Cn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};Cn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let u,c,f;switch(s){default:case 6:case 0:u=o,c=l,f=n;break;case 1:u=l,c=o,f=n;break;case 2:u=n,c=o,f=l;break;case 3:u=n,c=l,f=o;break;case 4:u=l,c=n,f=o;break;case 5:u=o,c=n,f=l;break}return[u*255,c*255,f*255]};Cn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};Cn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};Cn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};Cn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,u=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};Cn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};Cn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};Cn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?Cn.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};Cn.hsv.ansi16=function(e){return Cn.rgb.ansi16(Cn.hsv.rgb(e),e[2])};Cn.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Cn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};Cn.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};Cn.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Cn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};Cn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};Cn.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]};Cn.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]};Cn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};Cn.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]};Cn.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]};Cn.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Cn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};Cn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Cn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Cn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Cn.gray.hsl=function(e){return[0,0,e[0]]};Cn.gray.hsv=Cn.gray.hsl;Cn.gray.hwb=function(e){return[0,100,e[0]]};Cn.gray.cmyk=function(e){return[0,0,0,e[0]]};Cn.gray.lab=function(e){return[e[0],0,0]};Cn.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};Cn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const e5=Rge;function uft(){const e={},t=Object.keys(e5);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function bft(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{fy[e]={},Object.defineProperty(fy[e],"channels",{value:ZL[e].channels}),Object.defineProperty(fy[e],"labels",{value:ZL[e].labels});const t=pft(e);Object.keys(t).forEach(r=>{const i=t[r];fy[e][r]=bft(i),fy[e][r].raw=gft(i)})});var yft=fy;const hy=sft,gu=yft,Ige=["keyword","gray","hex"],XL={};for(const e of Object.keys(gu))XL[[...gu[e].labels].sort().join("")]=e;const t5={};function Os(e,t){if(!(this instanceof Os))return new Os(e,t);if(t&&t in Ige&&(t=null),t&&!(t in gu))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Os)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=hy.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=gu[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=gu[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=KL(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in XL))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=XL[a];const{labels:s}=gu[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:ga("hsl",1,Za(100)),lightness:ga("hsl",2,Za(100)),saturationv:ga("hsv",1,Za(100)),value:ga("hsv",2,Za(100)),chroma:ga("hcg",1,Za(100)),gray:ga("hcg",2,Za(100)),white:ga("hwb",1,Za(100)),wblack:ga("hwb",2,Za(100)),cyan:ga("cmyk",0,Za(100)),magenta:ga("cmyk",1,Za(100)),yellow:ga("cmyk",2,Za(100)),black:ga("cmyk",3,Za(100)),x:ga("xyz",0,Za(95.047)),y:ga("xyz",1,Za(100)),z:ga("xyz",2,Za(108.833)),l:ga("lab",0,Za(100)),a:ga("lab",1),b:ga("lab",2),keyword(e){return e!==void 0?new Os(e):gu[this.model].keyword(this.color)},hex(e){return e!==void 0?new Os(e):hy.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Os(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),hy.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const i=r/255;t[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Os.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return Os.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(gu)){if(Ige.includes(e))continue;const{channels:t}=gu[e];Os.prototype[e]=function(...n){return this.model===e?new Os(this):n.length>0?new Os(n,e):new Os([...Sft(gu[this.model][e].raw(this.color)),this.valpha],e)},Os[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=KL(n,t)),new Os(r,e)}}function vft(e,t){return Number(e.toFixed(t))}function Oft(e){return function(t){return vft(t,e)}}function ga(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(t5[r]||(t5[r]=[]))[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function Za(e){return function(t){return Math.max(0,Math.min(e,t))}}function Sft(e){return Array.isArray(e)?e:[e]}function KL(e,t){for(let n=0;nV.length;){var Q=a(D);n!==null&&(D.seed=n),V.push(Q)}return D.count=W,V}return B=s(D),L=o(B,D),F=l(B,L,D),u([B,L,F],D)};function s(D){if(i.length>0){var B=A(D.hue),L=b(B),F=(B[1]-B[0])/i.length,W=parseInt((L-B[0])/F);i[W]===!0?W=(W+2)%i.length:i[W]=!0;var V=(B[0]+W*F)%359,Z=(B[0]+(W+1)*F)%359;return B=[V,Z],L=b(B),L<0&&(L=360+L),L}else{var B=f(D.hue);return L=b(B),L<0&&(L=360+L),L}}function o(D,B){if(B.hue==="monochrome")return 0;if(B.luminosity==="random")return b([0,100]);var L=h(D),F=L[0],W=L[1];switch(B.luminosity){case"bright":F=55;break;case"dark":F=W-10;break;case"light":W=55;break}return b([F,W])}function l(D,B,L){var F=c(D,B),W=100;switch(L.luminosity){case"dark":W=F+20;break;case"light":F=(W+F)/2;break;case"random":F=0,W=100;break}return b([F,W])}function u(D,B){switch(B.format){case"hsvArray":return D;case"hslArray":return C(D);case"hsl":var L=C(D);return"hsl("+L[0]+", "+L[1]+"%, "+L[2]+"%)";case"hsla":var F=C(D),Z=B.alpha||Math.random();return"hsla("+F[0]+", "+F[1]+"%, "+F[2]+"%, "+Z+")";case"rgbArray":return x(D);case"rgb":var W=x(D);return"rgb("+W.join(", ")+")";case"rgba":var V=x(D),Z=B.alpha||Math.random();return"rgba("+V.join(", ")+", "+Z+")";default:return S(D)}}function c(D,B){for(var L=g(D).lowerBounds,F=0;F=W&&B<=Z){var H=(Q-V)/(Z-W),J=V-H*W;return H*B+J}}return 0}function f(D){if(typeof parseInt(D)=="number"){var B=parseInt(D);if(B<360&&B>0)return[B,B]}if(typeof D=="string"){if(r[D]){var L=r[D];if(L.hueRange)return L.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var F=k(D)[0];return[F,F]}}return[0,360]}function h(D){return g(D).saturationRange}function g(D){D>=334&&D<=360&&(D-=360);for(var B in r){var L=r[B];if(L.hueRange&&D>=L.hueRange[0]&&D<=L.hueRange[1])return r[B]}return"Color not found"}function b(D){if(n===null){var B=.618033988749895,L=Math.random();return L+=B,L%=1,Math.floor(D[0]+L*(D[1]+1-D[0]))}else{var F=D[1]||1,W=D[0]||0;n=(n*9301+49297)%233280;var V=n/233280;return Math.floor(W+V*(F-W))}}function S(D){var B=x(D);function L(W){var V=W.toString(16);return V.length==1?"0"+V:V}var F="#"+L(B[0])+L(B[1])+L(B[2]);return F}function E(D,B,L){var F=L[0][0],W=L[L.length-1][0],V=L[L.length-1][1],Z=L[0][1];r[D]={hueRange:B,lowerBounds:L,saturationRange:[F,W],brightnessRange:[V,Z]}}function w(){E("monochrome",null,[[0,0],[100,0]]),E("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),E("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),E("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),E("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),E("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),E("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),E("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(D){var B=D[0];B===0&&(B=1),B===360&&(B=359),B=B/360;var L=D[1]/100,F=D[2]/100,W=Math.floor(B*6),V=B*6-W,Z=F*(1-L),Q=F*(1-V*L),H=F*(1-(1-V)*L),J=256,K=256,X=256;switch(W){case 0:J=F,K=H,X=Z;break;case 1:J=Q,K=F,X=Z;break;case 2:J=Z,K=F,X=H;break;case 3:J=Z,K=Q,X=F;break;case 4:J=H,K=Z,X=F;break;case 5:J=F,K=Z,X=Q;break}var te=[Math.floor(J*255),Math.floor(K*255),Math.floor(X*255)];return te}function k(D){D=D.replace(/^#/,""),D=D.length===3?D.replace(/(.)/g,"$1$1"):D;var B=parseInt(D.substr(0,2),16)/255,L=parseInt(D.substr(2,2),16)/255,F=parseInt(D.substr(4,2),16)/255,W=Math.max(B,L,F),V=W-Math.min(B,L,F),Z=W?V/W:0;switch(W){case B:return[60*((L-F)/V%6)||0,Z,W];case L:return[60*((F-B)/V+2)||0,Z,W];case F:return[60*((B-L)/V+4)||0,Z,W]}}function C(D){var B=D[0],L=D[1]/100,F=D[2]/100,W=(2-L)*F;return[B,Math.round(L*F/(W<1?W:2-W)*1e4)/100,W/2*100]}function R(D){for(var B=0,L=0;L!==D.length&&!(B>=Number.MAX_SAFE_INTEGER);L++)B+=D.charCodeAt(L);return B}function A(D){if(isNaN(D)){if(typeof D=="string"){if(r[D]){var L=r[D];if(L.hueRange)return L.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var F=k(D)[0];return g(F).hueRange}}}else{var B=parseInt(D);if(B<360&&B>0)return g(D).hueRange}return[0,360]}return a})})(JL,JL.exports);var xft=JL.exports;const Tft=xd(xft),kft={accessToken:null},Dge=k1({name:"auth",initialState:kft,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:gW}=Dge.actions,QT=e=>e.auth,Cft=Dge.reducer;$3.setLogLevel(4);const Nge=(e,t)=>{const[n]=CF(),r=pi(QT),[i,a]=N.useState(null),[s,o]=N.useState(null),l=N.useCallback(async()=>{!i||!s||(await(i==null?void 0:i.detach(s)),await(i==null?void 0:i.deactivate()))},[i,s]);return N.useEffect(()=>{let u=!0;if(!e||!t||s||i)return;let c=`default:${r.accessToken}`;return n.get("token")&&(c=`share:${n.get("token")}`),(async()=>{const h=new $3.Client("https://api.yorkie.dev",{apiKey:"cbovg64qfu96agb5i0fg",token:c});await h.activate();const g=new $3.Document(e,{enableDevtools:!0});if(await h.attach(g,{initialPresence:{name:t,color:wft(Tft()).fade(.15).toString(),selection:null}}),!u){await h.detach(g),await h.deactivate();return}a(h),o(g)})(),()=>{u=!1}},[t,e,s,i,r.accessToken,n]),N.useEffect(()=>()=>{l()},[l]),{client:i,doc:s}};var Aft=function(e){return(e+1)%1e6};function _ft(){var e=N.useReducer(Aft,0),t=e[1];return t}function r7(e,t){return typeof e=="function"?e.length?e(t):e():e}function Rft(e,t){t===void 0&&(t=0);var n=N.useRef(!1),r=N.useRef(),i=N.useRef(e),a=N.useCallback(function(){return n.current},[]),s=N.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=N.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return N.useEffect(function(){i.current=e},[e]),N.useEffect(function(){return s(),o},[t]),[a,o,s]}function bW(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=Rft(e,t),i=r[0],a=r[1],s=r[2];return N.useEffect(s,n),[i,a]}function Ift(e){e===void 0&&(e=[]);var t=N.useRef(r7(e)),n=_ft(),r=N.useMemo(function(){var i={set:function(a){t.current=r7(a,t.current),n()},push:function(){for(var a=[],s=0;sl.length?l[a]=s:l.splice(a,0,s),l})},update:function(a,s){r.set(function(o){return o.map(function(l){return a(l,s)?s:l})})},updateFirst:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0&&r.updateAt(o,s)},upsert:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0?r.updateAt(o,s):r.push(s)},sort:function(a){r.set(function(s){return s.slice().sort(a)})},filter:function(a,s){r.set(function(o){return o.slice().filter(a,s)})},removeAt:function(a){r.set(function(s){var o=s.slice();return o.splice(a,1),o})},clear:function(){r.set([])},reset:function(){r.set(r7(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}var BI={exports:{}},Pge={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},Mge=Object.keys(Pge).join("|"),Dft=new RegExp(Mge,"g"),Nft=new RegExp(Mge,"");function Pft(e){return Pge[e]}var Lge=function(e){return e.replace(Dft,Pft)},Mft=function(e){return!!e.match(Nft)};BI.exports=Lge;BI.exports.has=Mft;BI.exports.remove=Lge;var Lft=BI.exports;const $ft=xd(Lft);/** +`)),g+=c.move(f),h(),g}function r(a,s,o){let l=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;const c="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++fl&&(l=u):u&&(l!==void 0&&l>-1&&o.push(` +`.repeat(l)||" "),l=-1,o.push(u))}return o.join("")}function Sge(e,t,n){return e.type==="element"?Vdt(e,t,n):e.type==="text"?n.whitespace==="normal"?Ege(e,n):Wdt(e):[]}function Vdt(e,t,n){const r=wge(e,n),i=e.children||[];let a=-1,s=[];if(jdt(e))return s;let o,l;for(ZL(e)||Mne(e)&&Ine(t,e,Mne)?l=` +`:zdt(e)?(o=2,l=2):Oge(e)&&(o=1,l=1);++a0&&(a.properties.rel=[...h]),g&&(a.properties.target=g),c){const S=FE(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:$f(S),children:$f(c)})}}}})}}function FE(e,t){return typeof e=="function"?e(t):e}function Lne(){const e=CT(),t=pi(AO),[n,r]=N.useState("");return N.useEffect(()=>{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r(FL(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?I.jsx(S0e,{source:FL(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[Edt],rehypePlugins:[Kdt,[aft,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=n5.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return I.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?GV(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=n5.renderToString(o,{throwOnError:!1});return I.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return I.jsx("code",{className:String(a),children:i})}}}):I.jsx(lr,{direction:"row",justifyContent:"center",children:I.jsx(yp,{sx:{mt:2}})})}function xge(){const e=pi(AO),t=BUe();return!e.doc||!e.client?I.jsx(aT,{open:!0,children:I.jsx(yp,{color:"inherit"})}):I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&I.jsx(DUe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>I.jsx(pL.ScrollSync,{children:I.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[I.jsx("div",{id:"left-block",style:{width:n},children:I.jsx(hee,{})}),I.jsx(Ts,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),I.jsx(pL.ScrollSyncPane,{children:I.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:I.jsx(ks,{sx:{p:4},height:"100%",children:I.jsx(Lne,{})})})})]})})}),e.mode==="read"&&I.jsx(ks,{sx:{p:4,overflow:"auto"},height:"100%",children:I.jsx(Lne,{})}),e.mode==="edit"&&I.jsx(hee,{})]})}var Tge={exports:{}},sft={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},kge={exports:{}},oft=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},lft=oft,uft=Array.prototype.concat,cft=Array.prototype.slice,$ne=kge.exports=function(t){for(var n=[],r=0,i=t.length;r=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Ou.to.keyword=function(e){return Age[e.slice(0,3)]};function Gm(e,t,n){return Math.min(Math.max(t,e),n)}function jA(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var fft=Tge.exports,hft={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const mx=hft,_ge={};for(const e of Object.keys(mx))_ge[mx[e]]=e;const Cn={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Rge=Cn;for(const e of Object.keys(Cn)){if(!("channels"in Cn[e]))throw new Error("missing channels property: "+e);if(!("labels"in Cn[e]))throw new Error("missing channel labels property: "+e);if(Cn[e].labels.length!==Cn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Cn[e];delete Cn[e].channels,delete Cn[e].labels,Object.defineProperty(Cn[e],"channels",{value:t}),Object.defineProperty(Cn[e],"labels",{value:n})}Cn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const u=(i+a)/2;return a===i?l=0:u<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,u*100]};Cn.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),f=function(h){return(u-h)/6/c+1/2};return c===0?(i=0,a=0):(a=c/u,t=f(s),n=f(o),r=f(l),s===u?i=r-n:o===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};Cn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=Cn.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};Cn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function pft(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Cn.rgb.keyword=function(e){const t=_ge[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(mx)){const a=mx[i],s=pft(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};Cn.rgb.lab=function(e){const t=Cn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};Cn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[u]=s*255;return l};Cn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};Cn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};Cn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};Cn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let u,c,f;switch(s){default:case 6:case 0:u=o,c=l,f=n;break;case 1:u=l,c=o,f=n;break;case 2:u=n,c=o,f=l;break;case 3:u=n,c=l,f=o;break;case 4:u=l,c=n,f=o;break;case 5:u=o,c=n,f=l;break}return[u*255,c*255,f*255]};Cn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};Cn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};Cn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};Cn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,u=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};Cn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};Cn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};Cn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?Cn.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};Cn.hsv.ansi16=function(e){return Cn.rgb.ansi16(Cn.hsv.rgb(e),e[2])};Cn.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};Cn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};Cn.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};Cn.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};Cn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};Cn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};Cn.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]};Cn.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]};Cn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};Cn.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]};Cn.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]};Cn.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};Cn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};Cn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Cn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Cn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Cn.gray.hsl=function(e){return[0,0,e[0]]};Cn.gray.hsv=Cn.gray.hsl;Cn.gray.hwb=function(e){return[0,100,e[0]]};Cn.gray.cmyk=function(e){return[0,0,0,e[0]]};Cn.gray.lab=function(e){return[e[0],0,0]};Cn.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};Cn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const r5=Rge;function mft(){const e={},t=Object.keys(r5);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function wft(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{fy[e]={},Object.defineProperty(fy[e],"channels",{value:XL[e].channels}),Object.defineProperty(fy[e],"labels",{value:XL[e].labels});const t=Oft(e);Object.keys(t).forEach(r=>{const i=t[r];fy[e][r]=wft(i),fy[e][r].raw=Eft(i)})});var xft=fy;const hy=fft,gu=xft,Ige=["keyword","gray","hex"],KL={};for(const e of Object.keys(gu))KL[[...gu[e].labels].sort().join("")]=e;const i5={};function Os(e,t){if(!(this instanceof Os))return new Os(e,t);if(t&&t in Ige&&(t=null),t&&!(t in gu))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Os)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=hy.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=gu[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=gu[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=JL(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in KL))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=KL[a];const{labels:s}=gu[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:ga("hsl",1,Za(100)),lightness:ga("hsl",2,Za(100)),saturationv:ga("hsv",1,Za(100)),value:ga("hsv",2,Za(100)),chroma:ga("hcg",1,Za(100)),gray:ga("hcg",2,Za(100)),white:ga("hwb",1,Za(100)),wblack:ga("hwb",2,Za(100)),cyan:ga("cmyk",0,Za(100)),magenta:ga("cmyk",1,Za(100)),yellow:ga("cmyk",2,Za(100)),black:ga("cmyk",3,Za(100)),x:ga("xyz",0,Za(95.047)),y:ga("xyz",1,Za(100)),z:ga("xyz",2,Za(108.833)),l:ga("lab",0,Za(100)),a:ga("lab",1),b:ga("lab",2),keyword(e){return e!==void 0?new Os(e):gu[this.model].keyword(this.color)},hex(e){return e!==void 0?new Os(e):hy.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Os(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),hy.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const i=r/255;t[n]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return Os.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return Os.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(gu)){if(Ige.includes(e))continue;const{channels:t}=gu[e];Os.prototype[e]=function(...n){return this.model===e?new Os(this):n.length>0?new Os(n,e):new Os([...Cft(gu[this.model][e].raw(this.color)),this.valpha],e)},Os[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=JL(n,t)),new Os(r,e)}}function Tft(e,t){return Number(e.toFixed(t))}function kft(e){return function(t){return Tft(t,e)}}function ga(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(i5[r]||(i5[r]=[]))[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function Za(e){return function(t){return Math.max(0,Math.min(e,t))}}function Cft(e){return Array.isArray(e)?e:[e]}function JL(e,t){for(let n=0;nV.length;){var Q=a(D);n!==null&&(D.seed=n),V.push(Q)}return D.count=W,V}return B=s(D),L=o(B,D),F=l(B,L,D),u([B,L,F],D)};function s(D){if(i.length>0){var B=A(D.hue),L=b(B),F=(B[1]-B[0])/i.length,W=parseInt((L-B[0])/F);i[W]===!0?W=(W+2)%i.length:i[W]=!0;var V=(B[0]+W*F)%359,Z=(B[0]+(W+1)*F)%359;return B=[V,Z],L=b(B),L<0&&(L=360+L),L}else{var B=f(D.hue);return L=b(B),L<0&&(L=360+L),L}}function o(D,B){if(B.hue==="monochrome")return 0;if(B.luminosity==="random")return b([0,100]);var L=h(D),F=L[0],W=L[1];switch(B.luminosity){case"bright":F=55;break;case"dark":F=W-10;break;case"light":W=55;break}return b([F,W])}function l(D,B,L){var F=c(D,B),W=100;switch(L.luminosity){case"dark":W=F+20;break;case"light":F=(W+F)/2;break;case"random":F=0,W=100;break}return b([F,W])}function u(D,B){switch(B.format){case"hsvArray":return D;case"hslArray":return C(D);case"hsl":var L=C(D);return"hsl("+L[0]+", "+L[1]+"%, "+L[2]+"%)";case"hsla":var F=C(D),Z=B.alpha||Math.random();return"hsla("+F[0]+", "+F[1]+"%, "+F[2]+"%, "+Z+")";case"rgbArray":return x(D);case"rgb":var W=x(D);return"rgb("+W.join(", ")+")";case"rgba":var V=x(D),Z=B.alpha||Math.random();return"rgba("+V.join(", ")+", "+Z+")";default:return S(D)}}function c(D,B){for(var L=g(D).lowerBounds,F=0;F=W&&B<=Z){var H=(Q-V)/(Z-W),J=V-H*W;return H*B+J}}return 0}function f(D){if(typeof parseInt(D)=="number"){var B=parseInt(D);if(B<360&&B>0)return[B,B]}if(typeof D=="string"){if(r[D]){var L=r[D];if(L.hueRange)return L.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var F=k(D)[0];return[F,F]}}return[0,360]}function h(D){return g(D).saturationRange}function g(D){D>=334&&D<=360&&(D-=360);for(var B in r){var L=r[B];if(L.hueRange&&D>=L.hueRange[0]&&D<=L.hueRange[1])return r[B]}return"Color not found"}function b(D){if(n===null){var B=.618033988749895,L=Math.random();return L+=B,L%=1,Math.floor(D[0]+L*(D[1]+1-D[0]))}else{var F=D[1]||1,W=D[0]||0;n=(n*9301+49297)%233280;var V=n/233280;return Math.floor(W+V*(F-W))}}function S(D){var B=x(D);function L(W){var V=W.toString(16);return V.length==1?"0"+V:V}var F="#"+L(B[0])+L(B[1])+L(B[2]);return F}function w(D,B,L){var F=L[0][0],W=L[L.length-1][0],V=L[L.length-1][1],Z=L[0][1];r[D]={hueRange:B,lowerBounds:L,saturationRange:[F,W],brightnessRange:[V,Z]}}function E(){w("monochrome",null,[[0,0],[100,0]]),w("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),w("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),w("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),w("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),w("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),w("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),w("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(D){var B=D[0];B===0&&(B=1),B===360&&(B=359),B=B/360;var L=D[1]/100,F=D[2]/100,W=Math.floor(B*6),V=B*6-W,Z=F*(1-L),Q=F*(1-V*L),H=F*(1-(1-V)*L),J=256,K=256,X=256;switch(W){case 0:J=F,K=H,X=Z;break;case 1:J=Q,K=F,X=Z;break;case 2:J=Z,K=F,X=H;break;case 3:J=Z,K=Q,X=F;break;case 4:J=H,K=Z,X=F;break;case 5:J=F,K=Z,X=Q;break}var te=[Math.floor(J*255),Math.floor(K*255),Math.floor(X*255)];return te}function k(D){D=D.replace(/^#/,""),D=D.length===3?D.replace(/(.)/g,"$1$1"):D;var B=parseInt(D.substr(0,2),16)/255,L=parseInt(D.substr(2,2),16)/255,F=parseInt(D.substr(4,2),16)/255,W=Math.max(B,L,F),V=W-Math.min(B,L,F),Z=W?V/W:0;switch(W){case B:return[60*((L-F)/V%6)||0,Z,W];case L:return[60*((F-B)/V+2)||0,Z,W];case F:return[60*((B-L)/V+4)||0,Z,W]}}function C(D){var B=D[0],L=D[1]/100,F=D[2]/100,W=(2-L)*F;return[B,Math.round(L*F/(W<1?W:2-W)*1e4)/100,W/2*100]}function R(D){for(var B=0,L=0;L!==D.length&&!(B>=Number.MAX_SAFE_INTEGER);L++)B+=D.charCodeAt(L);return B}function A(D){if(isNaN(D)){if(typeof D=="string"){if(r[D]){var L=r[D];if(L.hueRange)return L.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var F=k(D)[0];return g(F).hueRange}}}else{var B=parseInt(D);if(B<360&&B>0)return g(D).hueRange}return[0,360]}return a})})(e9,e9.exports);var Rft=e9.exports;const Ift=xd(Rft),Dft={accessToken:null},Dge=k1({name:"auth",initialState:Dft,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:bW}=Dge.actions,qT=e=>e.auth,Nft=Dge.reducer;U3.setLogLevel(4);const Nge=(e,t)=>{const[n]=AF(),r=pi(qT),[i,a]=N.useState(null),[s,o]=N.useState(null),l=N.useCallback(async()=>{!i||!s||(await(i==null?void 0:i.detach(s)),await(i==null?void 0:i.deactivate()))},[i,s]);return N.useEffect(()=>{let u=!0;if(!e||!t||s||i)return;let c=`default:${r.accessToken}`;return n.get("token")&&(c=`share:${n.get("token")}`),(async()=>{const h=new U3.Client("https://api.yorkie.dev",{apiKey:"cbovg64qfu96agb5i0fg",token:c});await h.activate();const g=new U3.Document(e,{enableDevtools:!0});if(await h.attach(g,{initialPresence:{name:t,color:_ft(Ift()).fade(.15).toString(),selection:null}}),!u){await h.detach(g),await h.deactivate();return}a(h),o(g)})(),()=>{u=!1}},[t,e,s,i,r.accessToken,n]),N.useEffect(()=>()=>{l()},[l]),{client:i,doc:s}};var Pft=function(e){return(e+1)%1e6};function Mft(){var e=N.useReducer(Pft,0),t=e[1];return t}function a7(e,t){return typeof e=="function"?e.length?e(t):e():e}function Lft(e,t){t===void 0&&(t=0);var n=N.useRef(!1),r=N.useRef(),i=N.useRef(e),a=N.useCallback(function(){return n.current},[]),s=N.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=N.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return N.useEffect(function(){i.current=e},[e]),N.useEffect(function(){return s(),o},[t]),[a,o,s]}function yW(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=Lft(e,t),i=r[0],a=r[1],s=r[2];return N.useEffect(s,n),[i,a]}function $ft(e){e===void 0&&(e=[]);var t=N.useRef(a7(e)),n=Mft(),r=N.useMemo(function(){var i={set:function(a){t.current=a7(a,t.current),n()},push:function(){for(var a=[],s=0;sl.length?l[a]=s:l.splice(a,0,s),l})},update:function(a,s){r.set(function(o){return o.map(function(l){return a(l,s)?s:l})})},updateFirst:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0&&r.updateAt(o,s)},upsert:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0?r.updateAt(o,s):r.push(s)},sort:function(a){r.set(function(s){return s.slice().sort(a)})},filter:function(a,s){r.set(function(o){return o.slice().filter(a,s)})},removeAt:function(a){r.set(function(s){var o=s.slice();return o.splice(a,1),o})},clear:function(){r.set([])},reset:function(){r.set(a7(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}var zI={exports:{}},Pge={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},Mge=Object.keys(Pge).join("|"),Fft=new RegExp(Mge,"g"),Bft=new RegExp(Mge,"");function Uft(e){return Pge[e]}var Lge=function(e){return e.replace(Fft,Uft)},zft=function(e){return!!e.match(Bft)};zI.exports=Lge;zI.exports.has=zft;zI.exports.remove=Lge;var jft=zI.exports;const Hft=xd(jft);/** * @name match-sorter * @license MIT license. * @copyright (c) 2020 Kent C. Dodds * @author Kent C. Dodds (https://kentcdodds.com) - */const jo={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},Fft=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function $ge(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=jo.MATCHES,baseSort:a=Fft,sorter:s=u=>u.sort((c,f)=>jft(c,f,a))}=n,o=e.reduce(l,[]);return s(o).map(u=>{let{item:c}=u;return c});function l(u,c,f){const h=Bft(c,r,t,n),{rank:g,keyThreshold:b=i}=h;return g>=b&&u.push({...h,item:c,index:f}),u}}$ge.rankings=jo;function Bft(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:$ne(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return Wft(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:u,keyIndex:c,keyThreshold:f}=a,{itemValue:h,attributes:g}=s,b=$ne(h,n,r),S=u;const{minRanking:E,maxRanking:w,threshold:x}=g;return b=jo.MATCHES?b=E:b>w&&(b=w),b>l&&(l=b,c=o,f=x,S=h),{rankedValue:S,rank:l,keyIndex:c,keyThreshold:f}},{rankedValue:e,rank:jo.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function $ne(e,t,n){return e=Fne(e,n),t=Fne(t,n),t.length>e.length?jo.NO_MATCH:e===t?jo.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?jo.EQUAL:e.startsWith(t)?jo.STARTS_WITH:e.includes(` ${t}`)?jo.WORD_STARTS_WITH:e.includes(t)?jo.CONTAINS:t.length===1?jo.NO_MATCH:Uft(e).includes(t)?jo.ACRONYM:zft(e,t))}function Uft(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function zft(e,t){let n=0,r=0;function i(l,u,c){for(let f=c,h=u.length;f-1))return jo.NO_MATCH}const o=r-s;return a(o)}function jft(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function Fne(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=$ft(e)),e}function Hft(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwn(e,t))n=e[t];else{if(t.includes("."))return Vft(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function Vft(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;i{var l;return $ge(((l=n.yorkieIntelligence)==null?void 0:l.config.features)??[],r,{keys:["title","feature"]})},[r,(o=n.yorkieIntelligence)==null?void 0:o.config.features]),s=l=>{i(l.target.value)};return I.jsxs(lr,{children:[I.jsx(E0,{placeholder:"Choose from below",size:"small",sx:{width:1},value:r,onChange:s}),I.jsx(kO,{children:a.map(l=>I.jsxs(np,{onClick:()=>t(l.feature,l.title),children:[I.jsx(Nw,{children:I.jsx(wNe,{children:I.jsx("img",{src:l.icon,alt:l.title})})}),I.jsx(t0,{children:l.title})]},l.feature))})]})}var yW={},Fge={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Fge);var ca=Fge.exports,i7={};const Gft=dwe($4e);var Une;function da(){return Une||(Une=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Gft}(i7)),i7}var Yft=ca;Object.defineProperty(yW,"__esModule",{value:!0});var UI=yW.default=void 0,Zft=Yft(da()),Xft=I;UI=yW.default=(0,Zft.default)((0,Xft.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var vW={},Kft=ca;Object.defineProperty(vW,"__esModule",{value:!0});var Bge=vW.default=void 0,Jft=Kft(da()),eht=I;Bge=vW.default=(0,Jft.default)((0,eht.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var qT=e=>e.type==="checkbox",$y=e=>e instanceof Date,Ho=e=>e==null;const Uge=e=>typeof e=="object";var ls=e=>!Ho(e)&&!Array.isArray(e)&&Uge(e)&&!$y(e),zge=e=>ls(e)&&e.target?qT(e.target)?e.target.checked:e.target.value:e,tht=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,jge=(e,t)=>e.has(tht(t)),nht=e=>{const t=e.constructor&&e.constructor.prototype;return ls(t)&&t.hasOwnProperty("isPrototypeOf")},OW=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hl(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(OW&&(e instanceof Blob||e instanceof FileList))&&(n||ls(e)))if(t=n?[]:{},!n&&!nht(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=hl(e[r]));else return e;return t}var GT=e=>Array.isArray(e)?e.filter(Boolean):[],Ea=e=>e===void 0,ln=(e,t,n)=>{if(!t||!ls(e))return n;const r=GT(t.split(/[,[\].]+?/)).reduce((i,a)=>Ho(i)?i:i[a],e);return Ea(r)||r===e?Ea(e[t])?n:e[t]:r},sd=e=>typeof e=="boolean";const n5={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ud={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wh={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Hge=hn.createContext(null),SW=()=>hn.useContext(Hge),Vge=e=>{const{children:t,...n}=e;return hn.createElement(Hge.Provider,{value:n},t)};var Wge=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==ud.all&&(t._proxyFormState[s]=!r||ud.all),n&&(n[s]=!0),e[s]}});return i},nc=e=>ls(e)&&!Object.keys(e).length,Qge=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return nc(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||ud.all))},X4=e=>Array.isArray(e)?e:[e],qge=(e,t,n)=>!e||!t||e===t||X4(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function EW(e){const t=hn.useRef(e);t.current=e,hn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function rht(e){const t=SW(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=hn.useState(n._formState),l=hn.useRef(!0),u=hn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=hn.useRef(i);return c.current=i,EW({disabled:r,next:f=>l.current&&qge(c.current,f.name,a)&&Qge(f,u.current,n._updateFormState)&&o({...n._formState,...f}),subject:n._subjects.state}),hn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Wge(s,n,u.current,!1)}var Af=e=>typeof e=="string",Gge=(e,t,n,r,i)=>Af(e)?(r&&t.watch.add(e),ln(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ln(n,a))):(r&&(t.watchAll=!0),n);function Yge(e){const t=SW(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=hn.useRef(r);o.current=r,EW({disabled:a,subject:n._subjects.values,next:c=>{qge(o.current,c.name,s)&&u(hl(Gge(o.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=hn.useState(n._getWatch(r,i));return hn.useEffect(()=>n._removeUnmounted()),l}var wW=e=>/^\w*$/.test(e),Zge=e=>GT(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ki=(e,t,n)=>{let r=-1;const i=wW(t)?[t]:Zge(t),a=i.length,s=a-1;for(;++r{const c=i._options.shouldUnregister||a,f=(h,g)=>{const b=ln(i._fields,h);b&&(b._f.mount=g)};if(f(n,!0),c){const h=hl(ln(i._options.defaultValues,n));ki(i._defaultValues,n,h),Ea(ln(i._formValues,n))&&ki(i._formValues,n,h)}return()=>{(s?c&&!i._state.action:c)?i.unregister(n):f(n,!1)}},[n,i,s,a]),hn.useEffect(()=>{ln(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:ln(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...sd(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:hn.useCallback(c=>u.current.onChange({target:{value:zge(c),name:n},type:n5.CHANGE}),[n]),onBlur:hn.useCallback(()=>u.current.onBlur({target:{value:ln(i._formValues,n),name:n},type:n5.BLUR}),[n,i]),ref:c=>{const f=ln(i._fields,n);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:h=>c.setCustomValidity(h),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ln(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!ln(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ln(l.touchedFields,n)},error:{enumerable:!0,get:()=>ln(l.errors,n)}})}}var iht=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},zne=e=>({isOnSubmit:!e||e===ud.onSubmit,isOnBlur:e===ud.onBlur,isOnChange:e===ud.onChange,isOnAll:e===ud.all,isOnTouch:e===ud.onTouched}),jne=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const K2=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=ln(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;K2(o,t)}else ls(o)&&K2(o,t)}}};var aht=(e,t,n)=>{const r=GT(ln(e,n));return ki(r,"root",t[n]),ki(e,n,r),e},xW=e=>e.type==="file",Im=e=>typeof e=="function",r5=e=>{if(!OW)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},K4=e=>Af(e),TW=e=>e.type==="radio",i5=e=>e instanceof RegExp;const Hne={value:!1,isValid:!1},Vne={value:!0,isValid:!0};var Xge=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ea(e[0].attributes.value)?Ea(e[0].value)||e[0].value===""?Vne:{value:e[0].value,isValid:!0}:Vne:Hne}return Hne};const Wne={isValid:!1,value:null};var Kge=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Wne):Wne;function Qne(e,t,n="validate"){if(K4(e)||Array.isArray(e)&&e.every(K4)||sd(e)&&!e)return{type:n,message:K4(e)?e:"",ref:t}}var Jb=e=>ls(e)&&!i5(e)?e:{value:e,message:""},qne=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:u,min:c,max:f,pattern:h,validate:g,name:b,valueAsNumber:S,mount:E,disabled:w}=e._f,x=ln(t,b);if(!E||w)return{};const k=s?s[0]:a,C=V=>{r&&k.reportValidity&&(k.setCustomValidity(sd(V)?"":V||""),k.reportValidity())},R={},A=TW(a),D=qT(a),B=A||D,L=(S||xW(a))&&Ea(a.value)&&Ea(x)||r5(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,F=iht.bind(null,b,n,R),W=(V,Z,Q,H=wh.maxLength,J=wh.minLength)=>{const K=V?Z:Q;R[b]={type:V?H:J,message:K,ref:a,...F(V?H:J,K)}};if(i?!Array.isArray(x)||!x.length:o&&(!B&&(L||Ho(x))||sd(x)&&!x||D&&!Xge(s).isValid||A&&!Kge(s).isValid)){const{value:V,message:Z}=K4(o)?{value:!!o,message:o}:Jb(o);if(V&&(R[b]={type:wh.required,message:Z,ref:k,...F(wh.required,Z)},!n))return C(Z),R}if(!L&&(!Ho(c)||!Ho(f))){let V,Z;const Q=Jb(f),H=Jb(c);if(!Ho(x)&&!isNaN(x)){const J=a.valueAsNumber||x&&+x;Ho(Q.value)||(V=J>Q.value),Ho(H.value)||(Z=Jnew Date(new Date().toDateString()+" "+z),X=a.type=="time",te=a.type=="week";Af(Q.value)&&x&&(V=X?K(x)>K(Q.value):te?x>Q.value:J>new Date(Q.value)),Af(H.value)&&x&&(Z=X?K(x)+V.value,H=!Ho(Z.value)&&x.length<+Z.value;if((Q||H)&&(W(Q,V.message,Z.message),!n))return C(R[b].message),R}if(h&&!L&&Af(x)){const{value:V,message:Z}=Jb(h);if(i5(V)&&!x.match(V)&&(R[b]={type:wh.pattern,message:Z,ref:a,...F(wh.pattern,Z)},!n))return C(Z),R}if(g){if(Im(g)){const V=await g(x,t),Z=Qne(V,k);if(Z&&(R[b]={...Z,...F(wh.validate,Z.message)},!n))return C(Z.message),R}else if(ls(g)){let V={};for(const Z in g){if(!nc(V)&&!n)break;const Q=Qne(await g[Z](x,t),k,Z);Q&&(V={...Q,...F(Z,Q.message)},C(Q.message),n&&(R[b]=V))}if(!nc(V)&&(R[b]={ref:k,...V},!n))return R}}return C(!0),R};function sht(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},a5=e=>Ho(e)||!Uge(e);function Bg(e,t){if(a5(e)||a5(t))return e===t;if($y(e)&&$y(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if($y(a)&&$y(s)||ls(a)&&ls(s)||Array.isArray(a)&&Array.isArray(s)?!Bg(a,s):a!==s)return!1}}return!0}var Jge=e=>e.type==="select-multiple",lht=e=>TW(e)||qT(e),s7=e=>r5(e)&&e.isConnected,e1e=e=>{for(const t in e)if(Im(e[t]))return!0;return!1};function s5(e,t={}){const n=Array.isArray(e);if(ls(e)||n)for(const r in e)Array.isArray(e[r])||ls(e[r])&&!e1e(e[r])?(t[r]=Array.isArray(e[r])?[]:{},s5(e[r],t[r])):Ho(e[r])||(t[r]=!0);return t}function t1e(e,t,n){const r=Array.isArray(e);if(ls(e)||r)for(const i in e)Array.isArray(e[i])||ls(e[i])&&!e1e(e[i])?Ea(t)||a5(n[i])?n[i]=Array.isArray(e[i])?s5(e[i],[]):{...s5(e[i])}:t1e(e[i],Ho(t)?{}:t[i],n[i]):n[i]=!Bg(e[i],t[i]);return n}var jA=(e,t)=>t1e(e,t,s5(t)),n1e=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ea(e)?e:t?e===""?NaN:e&&+e:n&&Af(e)?new Date(e):r?r(e):e;function o7(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return xW(t)?t.files:TW(t)?Kge(e.refs).value:Jge(t)?[...t.selectedOptions].map(({value:n})=>n):qT(t)?Xge(e.refs).value:n1e(Ea(t.value)?e.ref.value:t.value,e)}var uht=(e,t,n,r)=>{const i={};for(const a of e){const s=ln(t,a);s&&ki(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},BE=e=>Ea(e)?e:i5(e)?e.source:ls(e)?i5(e.value)?e.value.source:e.value:e,cht=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Gne(e,t,n){const r=ln(e,n);if(r||wW(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=ln(t,a),o=ln(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var dht=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,fht=(e,t)=>!GT(ln(e,t)).length&&Ls(e,t);const hht={mode:ud.onSubmit,reValidateMode:ud.onChange,shouldFocusError:!0};function pht(e={},t){let n={...hht,...e},r={submitCount:0,isDirty:!1,isLoading:Im(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},a=ls(n.values)||ls(n.defaultValues)?hl(n.values||n.defaultValues)||{}:{},s=n.shouldUnregister?{}:hl(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:a7(),array:a7(),state:a7()},g=zne(n.mode),b=zne(n.reValidateMode),S=n.criteriaMode===ud.all,E=pe=>le=>{clearTimeout(c),c=setTimeout(pe,le)},w=async pe=>{if(f.isValid||pe){const le=n.resolver?nc((await L()).errors):await W(i,!0);le!==r.isValid&&h.state.next({isValid:le})}},x=pe=>f.isValidating&&h.state.next({isValidating:pe}),k=(pe,le=[],he,je,Ze=!0,We=!0)=>{if(je&&he){if(o.action=!0,We&&Array.isArray(ln(i,pe))){const fe=he(ln(i,pe),je.argA,je.argB);Ze&&ki(i,pe,fe)}if(We&&Array.isArray(ln(r.errors,pe))){const fe=he(ln(r.errors,pe),je.argA,je.argB);Ze&&ki(r.errors,pe,fe),fht(r.errors,pe)}if(f.touchedFields&&We&&Array.isArray(ln(r.touchedFields,pe))){const fe=he(ln(r.touchedFields,pe),je.argA,je.argB);Ze&&ki(r.touchedFields,pe,fe)}f.dirtyFields&&(r.dirtyFields=jA(a,s)),h.state.next({name:pe,isDirty:Z(pe,le),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ki(s,pe,le)},C=(pe,le)=>{ki(r.errors,pe,le),h.state.next({errors:r.errors})},R=pe=>{r.errors=pe,h.state.next({errors:r.errors,isValid:!1})},A=(pe,le,he,je)=>{const Ze=ln(i,pe);if(Ze){const We=ln(s,pe,Ea(he)?ln(a,pe):he);Ea(We)||je&&je.defaultChecked||le?ki(s,pe,le?We:o7(Ze._f)):J(pe,We),o.mount&&w()}},D=(pe,le,he,je,Ze)=>{let We=!1,fe=!1;const xe={name:pe},ve=!!(ln(i,pe)&&ln(i,pe)._f.disabled);if(!he||je){f.isDirty&&(fe=r.isDirty,r.isDirty=xe.isDirty=Z(),We=fe!==xe.isDirty);const De=ve||Bg(ln(a,pe),le);fe=!!(!ve&&ln(r.dirtyFields,pe)),De||ve?Ls(r.dirtyFields,pe):ki(r.dirtyFields,pe,!0),xe.dirtyFields=r.dirtyFields,We=We||f.dirtyFields&&fe!==!De}if(he){const De=ln(r.touchedFields,pe);De||(ki(r.touchedFields,pe,he),xe.touchedFields=r.touchedFields,We=We||f.touchedFields&&De!==he)}return We&&Ze&&h.state.next(xe),We?xe:{}},B=(pe,le,he,je)=>{const Ze=ln(r.errors,pe),We=f.isValid&&sd(le)&&r.isValid!==le;if(e.delayError&&he?(u=E(()=>C(pe,he)),u(e.delayError)):(clearTimeout(c),u=null,he?ki(r.errors,pe,he):Ls(r.errors,pe)),(he?!Bg(Ze,he):Ze)||!nc(je)||We){const fe={...je,...We&&sd(le)?{isValid:le}:{},errors:r.errors,name:pe};r={...r,...fe},h.state.next(fe)}x(!1)},L=async pe=>n.resolver(s,n.context,uht(pe||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),F=async pe=>{const{errors:le}=await L(pe);if(pe)for(const he of pe){const je=ln(le,he);je?ki(r.errors,he,je):Ls(r.errors,he)}else r.errors=le;return le},W=async(pe,le,he={valid:!0})=>{for(const je in pe){const Ze=pe[je];if(Ze){const{_f:We,...fe}=Ze;if(We){const xe=l.array.has(We.name),ve=await qne(Ze,s,S,n.shouldUseNativeValidation&&!le,xe);if(ve[We.name]&&(he.valid=!1,le))break;!le&&(ln(ve,We.name)?xe?aht(r.errors,ve,We.name):ki(r.errors,We.name,ve[We.name]):Ls(r.errors,We.name))}fe&&await W(fe,le,he)}}return he.valid},V=()=>{for(const pe of l.unMount){const le=ln(i,pe);le&&(le._f.refs?le._f.refs.every(he=>!s7(he)):!s7(le._f.ref))&&_e(pe)}l.unMount=new Set},Z=(pe,le)=>(pe&&le&&ki(s,pe,le),!Bg(be(),a)),Q=(pe,le,he)=>Gge(pe,l,{...o.mount?s:Ea(le)?a:Af(pe)?{[pe]:le}:le},he,le),H=pe=>GT(ln(o.mount?s:a,pe,e.shouldUnregister?ln(a,pe,[]):[])),J=(pe,le,he={})=>{const je=ln(i,pe);let Ze=le;if(je){const We=je._f;We&&(!We.disabled&&ki(s,pe,n1e(le,We)),Ze=r5(We.ref)&&Ho(le)?"":le,Jge(We.ref)?[...We.ref.options].forEach(fe=>fe.selected=Ze.includes(fe.value)):We.refs?qT(We.ref)?We.refs.length>1?We.refs.forEach(fe=>(!fe.defaultChecked||!fe.disabled)&&(fe.checked=Array.isArray(Ze)?!!Ze.find(xe=>xe===fe.value):Ze===fe.value)):We.refs[0]&&(We.refs[0].checked=!!Ze):We.refs.forEach(fe=>fe.checked=fe.value===Ze):xW(We.ref)?We.ref.value="":(We.ref.value=Ze,We.ref.type||h.values.next({name:pe,values:{...s}})))}(he.shouldDirty||he.shouldTouch)&&D(pe,Ze,he.shouldTouch,he.shouldDirty,!0),he.shouldValidate&&Te(pe)},K=(pe,le,he)=>{for(const je in le){const Ze=le[je],We=`${pe}.${je}`,fe=ln(i,We);(l.array.has(pe)||!a5(Ze)||fe&&!fe._f)&&!$y(Ze)?K(We,Ze,he):J(We,Ze,he)}},X=(pe,le,he={})=>{const je=ln(i,pe),Ze=l.array.has(pe),We=hl(le);ki(s,pe,We),Ze?(h.array.next({name:pe,values:{...s}}),(f.isDirty||f.dirtyFields)&&he.shouldDirty&&h.state.next({name:pe,dirtyFields:jA(a,s),isDirty:Z(pe,We)})):je&&!je._f&&!Ho(We)?K(pe,We,he):J(pe,We,he),jne(pe,l)&&h.state.next({...r}),h.values.next({name:pe,values:{...s}}),!o.mount&&t()},te=async pe=>{const le=pe.target;let he=le.name,je=!0;const Ze=ln(i,he),We=()=>le.type?o7(Ze._f):zge(pe),fe=xe=>{je=Number.isNaN(xe)||xe===ln(s,he,xe)};if(Ze){let xe,ve;const De=We(),$e=pe.type===n5.BLUR||pe.type===n5.FOCUS_OUT,vt=!cht(Ze._f)&&!n.resolver&&!ln(r.errors,he)&&!Ze._f.deps||dht($e,ln(r.touchedFields,he),r.isSubmitted,b,g),Wt=jne(he,l,$e);ki(s,he,De),$e?(Ze._f.onBlur&&Ze._f.onBlur(pe),u&&u(0)):Ze._f.onChange&&Ze._f.onChange(pe);const Kt=D(he,De,$e,!1),gt=!nc(Kt)||Wt;if(!$e&&h.values.next({name:he,type:pe.type,values:{...s}}),vt)return f.isValid&&w(),gt&&h.state.next({name:he,...Wt?{}:Kt});if(!$e&&Wt&&h.state.next({...r}),x(!0),n.resolver){const{errors:Gt}=await L([he]);if(fe(De),je){const ut=Gne(r.errors,i,he),wt=Gne(Gt,i,ut.name||he);xe=wt.error,he=wt.name,ve=nc(Gt)}}else xe=(await qne(Ze,s,S,n.shouldUseNativeValidation))[he],fe(De),je&&(xe?ve=!1:f.isValid&&(ve=await W(i,!0)));je&&(Ze._f.deps&&Te(Ze._f.deps),B(he,ve,xe,Kt))}},z=(pe,le)=>{if(ln(r.errors,le)&&pe.focus)return pe.focus(),1},Te=async(pe,le={})=>{let he,je;const Ze=X4(pe);if(x(!0),n.resolver){const We=await F(Ea(pe)?pe:Ze);he=nc(We),je=pe?!Ze.some(fe=>ln(We,fe)):he}else pe?(je=(await Promise.all(Ze.map(async We=>{const fe=ln(i,We);return await W(fe&&fe._f?{[We]:fe}:fe)}))).every(Boolean),!(!je&&!r.isValid)&&w()):je=he=await W(i);return h.state.next({...!Af(pe)||f.isValid&&he!==r.isValid?{}:{name:pe},...n.resolver||!pe?{isValid:he}:{},errors:r.errors,isValidating:!1}),le.shouldFocus&&!je&&K2(i,z,pe?Ze:l.mount),je},be=pe=>{const le={...a,...o.mount?s:{}};return Ea(pe)?le:Af(pe)?ln(le,pe):pe.map(he=>ln(le,he))},ee=(pe,le)=>({invalid:!!ln((le||r).errors,pe),isDirty:!!ln((le||r).dirtyFields,pe),isTouched:!!ln((le||r).touchedFields,pe),error:ln((le||r).errors,pe)}),ye=pe=>{pe&&X4(pe).forEach(le=>Ls(r.errors,le)),h.state.next({errors:pe?r.errors:{}})},Oe=(pe,le,he)=>{const je=(ln(i,pe,{_f:{}})._f||{}).ref;ki(r.errors,pe,{...le,ref:je}),h.state.next({name:pe,errors:r.errors,isValid:!1}),he&&he.shouldFocus&&je&&je.focus&&je.focus()},ie=(pe,le)=>Im(pe)?h.values.subscribe({next:he=>pe(Q(void 0,le),he)}):Q(pe,le,!0),_e=(pe,le={})=>{for(const he of pe?X4(pe):l.mount)l.mount.delete(he),l.array.delete(he),le.keepValue||(Ls(i,he),Ls(s,he)),!le.keepError&&Ls(r.errors,he),!le.keepDirty&&Ls(r.dirtyFields,he),!le.keepTouched&&Ls(r.touchedFields,he),!n.shouldUnregister&&!le.keepDefaultValue&&Ls(a,he);h.values.next({values:{...s}}),h.state.next({...r,...le.keepDirty?{isDirty:Z()}:{}}),!le.keepIsValid&&w()},Ie=({disabled:pe,name:le,field:he,fields:je,value:Ze})=>{if(sd(pe)){const We=pe?void 0:Ea(Ze)?o7(he?he._f:ln(je,le)._f):Ze;ki(s,le,We),D(le,We,!1,!1,!0)}},qe=(pe,le={})=>{let he=ln(i,pe);const je=sd(le.disabled);return ki(i,pe,{...he||{},_f:{...he&&he._f?he._f:{ref:{name:pe}},name:pe,mount:!0,...le}}),l.mount.add(pe),he?Ie({field:he,disabled:le.disabled,name:pe,value:le.value}):A(pe,!0,le.value),{...je?{disabled:le.disabled}:{},...n.progressive?{required:!!le.required,min:BE(le.min),max:BE(le.max),minLength:BE(le.minLength),maxLength:BE(le.maxLength),pattern:BE(le.pattern)}:{},name:pe,onChange:te,onBlur:te,ref:Ze=>{if(Ze){qe(pe,le),he=ln(i,pe);const We=Ea(Ze.value)&&Ze.querySelectorAll&&Ze.querySelectorAll("input,select,textarea")[0]||Ze,fe=lht(We),xe=he._f.refs||[];if(fe?xe.find(ve=>ve===We):We===he._f.ref)return;ki(i,pe,{_f:{...he._f,...fe?{refs:[...xe.filter(s7),We,...Array.isArray(ln(a,pe))?[{}]:[]],ref:{type:We.type,name:pe}}:{ref:We}}}),A(pe,!1,void 0,We)}else he=ln(i,pe,{}),he._f&&(he._f.mount=!1),(n.shouldUnregister||le.shouldUnregister)&&!(jge(l.array,pe)&&o.action)&&l.unMount.add(pe)}}},st=()=>n.shouldFocusError&&K2(i,z,l.mount),Pe=pe=>{sd(pe)&&(h.state.next({disabled:pe}),K2(i,(le,he)=>{let je=pe;const Ze=ln(i,he);Ze&&sd(Ze._f.disabled)&&(je||(je=Ze._f.disabled)),le.disabled=je},0,!1))},tt=(pe,le)=>async he=>{let je;he&&(he.preventDefault&&he.preventDefault(),he.persist&&he.persist());let Ze=hl(s);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:We,values:fe}=await L();r.errors=We,Ze=fe}else await W(i);if(Ls(r.errors,"root"),nc(r.errors)){h.state.next({errors:{}});try{await pe(Ze,he)}catch(We){je=We}}else le&&await le({...r.errors},he),st(),setTimeout(st);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:nc(r.errors)&&!je,submitCount:r.submitCount+1,errors:r.errors}),je)throw je},Ve=(pe,le={})=>{ln(i,pe)&&(Ea(le.defaultValue)?X(pe,hl(ln(a,pe))):(X(pe,le.defaultValue),ki(a,pe,hl(le.defaultValue))),le.keepTouched||Ls(r.touchedFields,pe),le.keepDirty||(Ls(r.dirtyFields,pe),r.isDirty=le.defaultValue?Z(pe,hl(ln(a,pe))):Z()),le.keepError||(Ls(r.errors,pe),f.isValid&&w()),h.state.next({...r}))},Xe=(pe,le={})=>{const he=pe?hl(pe):a,je=hl(he),Ze=pe&&!nc(pe)?je:a;if(le.keepDefaultValues||(a=he),!le.keepValues){if(le.keepDirtyValues)for(const We of l.mount)ln(r.dirtyFields,We)?ki(Ze,We,ln(s,We)):X(We,ln(Ze,We));else{if(OW&&Ea(pe))for(const We of l.mount){const fe=ln(i,We);if(fe&&fe._f){const xe=Array.isArray(fe._f.refs)?fe._f.refs[0]:fe._f.ref;if(r5(xe)){const ve=xe.closest("form");if(ve){ve.reset();break}}}}i={}}s=e.shouldUnregister?le.keepDefaultValues?hl(a):{}:hl(Ze),h.array.next({values:{...Ze}}),h.values.next({values:{...Ze}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!o.mount&&t(),o.mount=!f.isValid||!!le.keepIsValid||!!le.keepDirtyValues,o.watch=!!e.shouldUnregister,h.state.next({submitCount:le.keepSubmitCount?r.submitCount:0,isDirty:le.keepDirty?r.isDirty:!!(le.keepDefaultValues&&!Bg(pe,a)),isSubmitted:le.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:le.keepDirtyValues?le.keepDefaultValues&&s?jA(a,s):r.dirtyFields:le.keepDefaultValues&&pe?jA(a,pe):{},touchedFields:le.keepTouched?r.touchedFields:{},errors:le.keepErrors?r.errors:{},isSubmitSuccessful:le.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},et=(pe,le)=>Xe(Im(pe)?pe(s):pe,le);return{control:{register:qe,unregister:_e,getFieldState:ee,handleSubmit:tt,setError:Oe,_executeSchema:L,_getWatch:Q,_getDirty:Z,_updateValid:w,_removeUnmounted:V,_updateFieldArray:k,_updateDisabledField:Ie,_getFieldArray:H,_reset:Xe,_resetDefaultValues:()=>Im(n.defaultValues)&&n.defaultValues().then(pe=>{et(pe,n.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:pe=>{r={...r,...pe}},_disableForm:Pe,_subjects:h,_proxyFormState:f,_setErrors:R,get _fields(){return i},get _formValues(){return s},get _state(){return o},set _state(pe){o=pe},get _defaultValues(){return a},get _names(){return l},set _names(pe){l=pe},get _formState(){return r},set _formState(pe){r=pe},get _options(){return n},set _options(pe){n={...n,...pe}}},trigger:Te,register:qe,handleSubmit:tt,watch:ie,setValue:X,getValues:be,reset:et,resetField:Ve,clearErrors:ye,unregister:_e,setError:Oe,setFocus:(pe,le={})=>{const he=ln(i,pe),je=he&&he._f;if(je){const Ze=je.refs?je.refs[0]:je.ref;Ze.focus&&(Ze.focus(),le.shouldSelect&&Ze.select())}},getFieldState:ee}}function r1e(e={}){const t=hn.useRef(),n=hn.useRef(),[r,i]=hn.useState({isDirty:!1,isValidating:!1,isLoading:Im(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Im(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...pht(e,()=>i(s=>({...s}))),formState:r});const a=t.current.control;return a._options=e,EW({subject:a._subjects.state,next:s=>{Qge(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),hn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),hn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),hn.useEffect(()=>{e.values&&!Bg(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),hn.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),hn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),hn.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=Wge(r,a),t.current}const yf=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),kW=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let a;if(e!=null)a=e;else if(i.includes(t))a=t;else if(i.length>0)a=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:a}},J2=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:a,utils:s,timezone:o})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,o));n&&s.isBefore(i,l)&&(i=l),t&&s.isAfter(r,l)&&(r=l);let u=e,c=e;for(s.isBefore(e,i)&&(u=i,c=null),s.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&s.isAfter(u,r)&&(u=null),c&&s.isBefore(c,i)&&(c=null),u){if(!a(u))return u;u=s.addDays(u,1)}if(c){if(!a(c))return c;c=s.addDays(c,-1)}}return null},mht=(e,t)=>t==null||!e.isValid(t)?null:t,Eo=(e,t,n)=>t==null||!e.isValid(t)?n:t,ght=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),CW=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},e9=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},AW=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),dd=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},bht=["year","month","day"],lv=e=>bht.includes(e),gx=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return yf(n,["year"])?i.year:yf(n,["month"])?i.month:yf(n,["day"])?i.dayOfMonth:yf(n,["month","year"])?`${i.month} ${i.year}`:yf(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},yht=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},i1e=["hours","minutes","seconds"],cO=e=>i1e.includes(e),im=e=>i1e.includes(e)||e==="meridiem",vht=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,bx=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Oht=(e,t,n,r)=>{const i=bx(r.getHours(e),t,n);return r.setHours(e,i)},Yne=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),YT=(e,t)=>(n,r)=>e?t.isAfter(n,r):Yne(n,t)>Yne(r,t),o5=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return yf(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:yf(n,["minutes"])?i.minutes:yf(n,["seconds"])?i.seconds:yf(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:yf(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},od={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Sht=e=>Math.max(...e.map(t=>{var n;return(n=od[t.type])!=null?n:1})),UE=(e,t,n)=>{if(t===od.year)return e.startOfYear(n);if(t===od.month)return e.startOfMonth(n);if(t===od.day)return e.startOfDay(n);let r=n;return t{var a;let s=i?i():UE(t,n,AW(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=UE(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=UE(t,n,e.maxDate));const o=YT((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&o(e.minTime,s)&&(s=UE(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:e9(t,s,e.minTime))),e.maxTime!=null&&o(s,e.maxTime)&&(s=UE(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:e9(t,s,e.maxTime))),s},a1e=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},wht=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},zI=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),a=e.startOfWeek(i),s=e.endOfWeek(i);let o=a;for(;e.isBefore(o,s);)r.push(o),o=e.addDays(o,1);return r.map(l=>e.formatByString(l,n))},s1e=(e,t,n,r)=>{switch(n){case"month":return CW(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return zI(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(a=>e.formatByString(a,r))}default:return[]}},o1e=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const s=e.setDate(r.longestMonth,n);return e.formatByString(s,i.format)}const a=n.toString();return i.hasLeadingZerosInInput?o1e(e,a,i.maxLength):a},xht=(e,t,n,r,i,a,s)=>{const o=wht(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,f=()=>{const g=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=x=>l1e(e,t,x,g,n),S=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let w=parseInt(n.value,10)+o*S;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);o>0||l?w=g.minimum:w=g.maximum}return w%S!==0&&((o<0||l)&&(w+=S-(S+w)%S),(o>0||u)&&(w-=w%S)),w>g.maximum?b(g.minimum+(w-g.maximum-1)%(g.maximum-g.minimum+1)):w{const g=s1e(e,t,n.type,n.format);if(g.length===0)return n.value;if(c)return o>0||l?g[0]:g[g.length-1];const S=(g.indexOf(n.value)+g.length+o)%g.length;return g[S]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():h()},_W=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Fy=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),u1e=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},Zne=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),c1e=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,d1e=(e,t,n,r,i)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return c1e(e,t,i)?e.formatByString(e.setYear(a,1),i)==="0001":e.formatByString(e.setYear(a,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(a),i).length>1;case"day":return e.formatByString(e.startOfMonth(a),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),i).length>1;case"hours":return e.formatByString(e.setHours(a,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(a,1),i).length>1;default:throw new Error("Invalid section type")}},kht=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let s=null;for(;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n},Xne=(e,t,n,r,i,a,s,o)=>{let l="";const u=[],c=e.date(),f=k=>{if(k==="")return null;const C=a1e(e,k),R=d1e(e,t,C.contentType,C.type,k),A=s?R:C.contentType==="digit",D=i!=null&&e.isValid(i);let B=D?e.formatByString(i,k):"",L=null;if(A)if(R)L=B===""?e.formatByString(c,k).length:B.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${k} should have a 'maxDigitNumber' property on it's adapter`);L=C.maxLength,D&&(B=o1e(e,B,L))}return u.push(M({},C,{format:k,maxLength:L,value:B,placeholder:Tht(e,t,n,C,k),hasLeadingZeros:R,hasLeadingZerosInFormat:R,hasLeadingZerosInInput:A,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let h=10,g=r,b=e.expandFormat(r);for(;b!==g;)if(g=b,b=e.expandFormat(g),h-=1,h<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const S=b,E=kht(e,S),w=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((k,C)=>C.length-k.length).join("|")})`,"g");let x="";for(let k=0;kL.start<=k&&L.end>=k),R=S[k],A=C!=null,D=`${x}${S.slice(k)}`,B=w.test(D);!A&&R.match(/([A-Za-z]+)/)&&B?(x=D.slice(0,w.lastIndex),k+=w.lastIndex-1):A&&(C==null?void 0:C.start)===k||(C==null?void 0:C.end)===k||(f(x),x="",u.length===0?l+=R:u[u.length-1].endSeparator+=R)}return f(x),u.map(k=>{const C=R=>{let A=R;return o&&A!==null&&A.includes(" ")&&(A=`⁩${A}⁦`),a==="spacious"&&["/",".","-"].includes(A)&&(A=` ${A} `),A};return k.startSeparator=C(k.startSeparator),k.endSeparator=C(k.endSeparator),k})},Cht=(e,t)=>{const n=t.some(o=>o.type==="day"),r=[],i=[];for(let o=0;o{const r=e.map(i=>{const a=_W(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},_ht=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:s}=CW(e,n).reduce((o,l)=>{const u=e.getDaysInMonth(l);return u>o.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:o},{maxDaysInMonth:0,longestMonth:null});return{year:({format:o})=>({minimum:0,maximum:c1e(e,t,o)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:o})=>({minimum:1,maximum:o!=null&&e.isValid(o)?e.getDaysInMonth(o):a,longestMonth:s}),weekDay:({format:o,contentType:l})=>{if(l==="digit"){const u=zI(e,t,o).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:o})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),o)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),o))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},Rht=(e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const a=zI(e,t,n.format),s=e.formatByString(r,n.format),o=a.indexOf(s),u=a.indexOf(n.value)-o;return e.addDays(r,u)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,s=e.getHours(i);return a&&s>=12?e.addHours(i,-12):!a&&s<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}},Kne={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Jne=(e,t,n,r,i,a)=>[...r].sort((s,o)=>Kne[s.type]-Kne[o.type]).reduce((s,o)=>!a||o.modified?Rht(e,t,o,n,s):s,i),Iht=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,Dht=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let a=0,s=0,o=e.length-1;for(;o>=0;){s=e.findIndex((l,u)=>{var c;return u>=a&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let l=s;l>=a;l-=1)i[l]=o,r[o]=l,o-=1;a=s+1}return e.forEach((l,u)=>{const c=i[u],f=c===0?null:r[c-1],h=c===e.length-1?null:r[c+1];n[u]={leftIndex:f,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Nht=["value","referenceDate"],us={emptyValue:null,getTodayValue:AW,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=at(e,Nht);return t!=null&&r.utils.isValid(t)?t:n??Eht(r)},cleanValue:mht,areValuesEqual:ght,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},RW={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:u1e(i(t),r),getValueStrFromSections:Aht,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Pht=["localeText"],t9=N.createContext(null),f1e=function(t){var n;const{localeText:r}=t,i=at(t,Pht),{utils:a,localeText:s}=(n=N.useContext(t9))!=null?n:{utils:void 0,localeText:void 0},o=_t({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:f,adapterLocale:h,localeText:g}=o,b=N.useMemo(()=>M({},g,s,r),[g,s,r]),S=N.useMemo(()=>{if(!u)return a||null;const x=new u({locale:h,formats:c,instance:f});if(!x.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return x},[u,h,c,f,a]),E=N.useMemo(()=>S?{minDate:S.date("1900-01-01T00:00:00.000"),maxDate:S.date("2099-12-31T00:00:00.000")}:null,[S]),w=N.useMemo(()=>({utils:S,defaultDates:E,localeText:b}),[E,S,b]);return I.jsx(t9.Provider,{value:w,children:l})},Mht=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:M({},e)}}}}),h1e={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},Lht=h1e;Mht(h1e);const Pd=()=>{const e=N.useContext(t9);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` + */const jo={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},Vft=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function $ge(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=jo.MATCHES,baseSort:a=Vft,sorter:s=u=>u.sort((c,f)=>Gft(c,f,a))}=n,o=e.reduce(l,[]);return s(o).map(u=>{let{item:c}=u;return c});function l(u,c,f){const h=Wft(c,r,t,n),{rank:g,keyThreshold:b=i}=h;return g>=b&&u.push({...h,item:c,index:f}),u}}$ge.rankings=jo;function Wft(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:Fne(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return Xft(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:u,keyIndex:c,keyThreshold:f}=a,{itemValue:h,attributes:g}=s,b=Fne(h,n,r),S=u;const{minRanking:w,maxRanking:E,threshold:x}=g;return b=jo.MATCHES?b=w:b>E&&(b=E),b>l&&(l=b,c=o,f=x,S=h),{rankedValue:S,rank:l,keyIndex:c,keyThreshold:f}},{rankedValue:e,rank:jo.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function Fne(e,t,n){return e=Bne(e,n),t=Bne(t,n),t.length>e.length?jo.NO_MATCH:e===t?jo.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?jo.EQUAL:e.startsWith(t)?jo.STARTS_WITH:e.includes(` ${t}`)?jo.WORD_STARTS_WITH:e.includes(t)?jo.CONTAINS:t.length===1?jo.NO_MATCH:Qft(e).includes(t)?jo.ACRONYM:qft(e,t))}function Qft(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function qft(e,t){let n=0,r=0;function i(l,u,c){for(let f=c,h=u.length;f-1))return jo.NO_MATCH}const o=r-s;return a(o)}function Gft(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function Bne(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Hft(e)),e}function Yft(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwn(e,t))n=e[t];else{if(t.includes("."))return Zft(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function Zft(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;i{var l;return $ge(((l=n.yorkieIntelligence)==null?void 0:l.config.features)??[],r,{keys:["title","feature"]})},[r,(o=n.yorkieIntelligence)==null?void 0:o.config.features]),s=l=>{i(l.target.value)};return I.jsxs(lr,{children:[I.jsx(E0,{placeholder:"Choose from below",size:"small",sx:{width:1},value:r,onChange:s}),I.jsx(kO,{children:a.map(l=>I.jsxs(rp,{onClick:()=>t(l.feature,l.title),children:[I.jsx(Nw,{children:I.jsx(wNe,{children:I.jsx("img",{src:l.icon,alt:l.title})})}),I.jsx(np,{children:l.title})]},l.feature))})]})}var vW={},Fge={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Fge);var ca=Fge.exports,s7={};const eht=dwe($4e);var zne;function da(){return zne||(zne=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=eht}(s7)),s7}var tht=ca;Object.defineProperty(vW,"__esModule",{value:!0});var jI=vW.default=void 0,nht=tht(da()),rht=I;jI=vW.default=(0,nht.default)((0,rht.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var OW={},iht=ca;Object.defineProperty(OW,"__esModule",{value:!0});var Bge=OW.default=void 0,aht=iht(da()),sht=I;Bge=OW.default=(0,aht.default)((0,sht.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var GT=e=>e.type==="checkbox",$y=e=>e instanceof Date,Ho=e=>e==null;const Uge=e=>typeof e=="object";var ls=e=>!Ho(e)&&!Array.isArray(e)&&Uge(e)&&!$y(e),zge=e=>ls(e)&&e.target?GT(e.target)?e.target.checked:e.target.value:e,oht=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,jge=(e,t)=>e.has(oht(t)),lht=e=>{const t=e.constructor&&e.constructor.prototype;return ls(t)&&t.hasOwnProperty("isPrototypeOf")},SW=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hl(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(SW&&(e instanceof Blob||e instanceof FileList))&&(n||ls(e)))if(t=n?[]:{},!n&&!lht(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=hl(e[r]));else return e;return t}var YT=e=>Array.isArray(e)?e.filter(Boolean):[],Ea=e=>e===void 0,ln=(e,t,n)=>{if(!t||!ls(e))return n;const r=YT(t.split(/[,[\].]+?/)).reduce((i,a)=>Ho(i)?i:i[a],e);return Ea(r)||r===e?Ea(e[t])?n:e[t]:r},od=e=>typeof e=="boolean";const a5={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},cd={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wh={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Hge=hn.createContext(null),EW=()=>hn.useContext(Hge),Vge=e=>{const{children:t,...n}=e;return hn.createElement(Hge.Provider,{value:n},t)};var Wge=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==cd.all&&(t._proxyFormState[s]=!r||cd.all),n&&(n[s]=!0),e[s]}});return i},nc=e=>ls(e)&&!Object.keys(e).length,Qge=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return nc(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||cd.all))},K4=e=>Array.isArray(e)?e:[e],qge=(e,t,n)=>!e||!t||e===t||K4(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function wW(e){const t=hn.useRef(e);t.current=e,hn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function uht(e){const t=EW(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=hn.useState(n._formState),l=hn.useRef(!0),u=hn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=hn.useRef(i);return c.current=i,wW({disabled:r,next:f=>l.current&&qge(c.current,f.name,a)&&Qge(f,u.current,n._updateFormState)&&o({...n._formState,...f}),subject:n._subjects.state}),hn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Wge(s,n,u.current,!1)}var Af=e=>typeof e=="string",Gge=(e,t,n,r,i)=>Af(e)?(r&&t.watch.add(e),ln(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ln(n,a))):(r&&(t.watchAll=!0),n);function Yge(e){const t=EW(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=hn.useRef(r);o.current=r,wW({disabled:a,subject:n._subjects.values,next:c=>{qge(o.current,c.name,s)&&u(hl(Gge(o.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=hn.useState(n._getWatch(r,i));return hn.useEffect(()=>n._removeUnmounted()),l}var xW=e=>/^\w*$/.test(e),Zge=e=>YT(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ki=(e,t,n)=>{let r=-1;const i=xW(t)?[t]:Zge(t),a=i.length,s=a-1;for(;++r{const c=i._options.shouldUnregister||a,f=(h,g)=>{const b=ln(i._fields,h);b&&(b._f.mount=g)};if(f(n,!0),c){const h=hl(ln(i._options.defaultValues,n));ki(i._defaultValues,n,h),Ea(ln(i._formValues,n))&&ki(i._formValues,n,h)}return()=>{(s?c&&!i._state.action:c)?i.unregister(n):f(n,!1)}},[n,i,s,a]),hn.useEffect(()=>{ln(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:ln(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...od(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:hn.useCallback(c=>u.current.onChange({target:{value:zge(c),name:n},type:a5.CHANGE}),[n]),onBlur:hn.useCallback(()=>u.current.onBlur({target:{value:ln(i._formValues,n),name:n},type:a5.BLUR}),[n,i]),ref:c=>{const f=ln(i._fields,n);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:h=>c.setCustomValidity(h),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ln(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!ln(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ln(l.touchedFields,n)},error:{enumerable:!0,get:()=>ln(l.errors,n)}})}}var cht=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},jne=e=>({isOnSubmit:!e||e===cd.onSubmit,isOnBlur:e===cd.onBlur,isOnChange:e===cd.onChange,isOnAll:e===cd.all,isOnTouch:e===cd.onTouched}),Hne=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const K2=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=ln(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;K2(o,t)}else ls(o)&&K2(o,t)}}};var dht=(e,t,n)=>{const r=YT(ln(e,n));return ki(r,"root",t[n]),ki(e,n,r),e},TW=e=>e.type==="file",Dm=e=>typeof e=="function",s5=e=>{if(!SW)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},J4=e=>Af(e),kW=e=>e.type==="radio",o5=e=>e instanceof RegExp;const Vne={value:!1,isValid:!1},Wne={value:!0,isValid:!0};var Xge=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ea(e[0].attributes.value)?Ea(e[0].value)||e[0].value===""?Wne:{value:e[0].value,isValid:!0}:Wne:Vne}return Vne};const Qne={isValid:!1,value:null};var Kge=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Qne):Qne;function qne(e,t,n="validate"){if(J4(e)||Array.isArray(e)&&e.every(J4)||od(e)&&!e)return{type:n,message:J4(e)?e:"",ref:t}}var Jb=e=>ls(e)&&!o5(e)?e:{value:e,message:""},Gne=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:u,min:c,max:f,pattern:h,validate:g,name:b,valueAsNumber:S,mount:w,disabled:E}=e._f,x=ln(t,b);if(!w||E)return{};const k=s?s[0]:a,C=V=>{r&&k.reportValidity&&(k.setCustomValidity(od(V)?"":V||""),k.reportValidity())},R={},A=kW(a),D=GT(a),B=A||D,L=(S||TW(a))&&Ea(a.value)&&Ea(x)||s5(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,F=cht.bind(null,b,n,R),W=(V,Z,Q,H=wh.maxLength,J=wh.minLength)=>{const K=V?Z:Q;R[b]={type:V?H:J,message:K,ref:a,...F(V?H:J,K)}};if(i?!Array.isArray(x)||!x.length:o&&(!B&&(L||Ho(x))||od(x)&&!x||D&&!Xge(s).isValid||A&&!Kge(s).isValid)){const{value:V,message:Z}=J4(o)?{value:!!o,message:o}:Jb(o);if(V&&(R[b]={type:wh.required,message:Z,ref:k,...F(wh.required,Z)},!n))return C(Z),R}if(!L&&(!Ho(c)||!Ho(f))){let V,Z;const Q=Jb(f),H=Jb(c);if(!Ho(x)&&!isNaN(x)){const J=a.valueAsNumber||x&&+x;Ho(Q.value)||(V=J>Q.value),Ho(H.value)||(Z=Jnew Date(new Date().toDateString()+" "+z),X=a.type=="time",te=a.type=="week";Af(Q.value)&&x&&(V=X?K(x)>K(Q.value):te?x>Q.value:J>new Date(Q.value)),Af(H.value)&&x&&(Z=X?K(x)+V.value,H=!Ho(Z.value)&&x.length<+Z.value;if((Q||H)&&(W(Q,V.message,Z.message),!n))return C(R[b].message),R}if(h&&!L&&Af(x)){const{value:V,message:Z}=Jb(h);if(o5(V)&&!x.match(V)&&(R[b]={type:wh.pattern,message:Z,ref:a,...F(wh.pattern,Z)},!n))return C(Z),R}if(g){if(Dm(g)){const V=await g(x,t),Z=qne(V,k);if(Z&&(R[b]={...Z,...F(wh.validate,Z.message)},!n))return C(Z.message),R}else if(ls(g)){let V={};for(const Z in g){if(!nc(V)&&!n)break;const Q=qne(await g[Z](x,t),k,Z);Q&&(V={...Q,...F(Z,Q.message)},C(Q.message),n&&(R[b]=V))}if(!nc(V)&&(R[b]={ref:k,...V},!n))return R}}return C(!0),R};function fht(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},l5=e=>Ho(e)||!Uge(e);function Bg(e,t){if(l5(e)||l5(t))return e===t;if($y(e)&&$y(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if($y(a)&&$y(s)||ls(a)&&ls(s)||Array.isArray(a)&&Array.isArray(s)?!Bg(a,s):a!==s)return!1}}return!0}var Jge=e=>e.type==="select-multiple",pht=e=>kW(e)||GT(e),l7=e=>s5(e)&&e.isConnected,e1e=e=>{for(const t in e)if(Dm(e[t]))return!0;return!1};function u5(e,t={}){const n=Array.isArray(e);if(ls(e)||n)for(const r in e)Array.isArray(e[r])||ls(e[r])&&!e1e(e[r])?(t[r]=Array.isArray(e[r])?[]:{},u5(e[r],t[r])):Ho(e[r])||(t[r]=!0);return t}function t1e(e,t,n){const r=Array.isArray(e);if(ls(e)||r)for(const i in e)Array.isArray(e[i])||ls(e[i])&&!e1e(e[i])?Ea(t)||l5(n[i])?n[i]=Array.isArray(e[i])?u5(e[i],[]):{...u5(e[i])}:t1e(e[i],Ho(t)?{}:t[i],n[i]):n[i]=!Bg(e[i],t[i]);return n}var HA=(e,t)=>t1e(e,t,u5(t)),n1e=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ea(e)?e:t?e===""?NaN:e&&+e:n&&Af(e)?new Date(e):r?r(e):e;function u7(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return TW(t)?t.files:kW(t)?Kge(e.refs).value:Jge(t)?[...t.selectedOptions].map(({value:n})=>n):GT(t)?Xge(e.refs).value:n1e(Ea(t.value)?e.ref.value:t.value,e)}var mht=(e,t,n,r)=>{const i={};for(const a of e){const s=ln(t,a);s&&ki(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},BE=e=>Ea(e)?e:o5(e)?e.source:ls(e)?o5(e.value)?e.value.source:e.value:e,ght=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Yne(e,t,n){const r=ln(e,n);if(r||xW(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=ln(t,a),o=ln(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var bht=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,yht=(e,t)=>!YT(ln(e,t)).length&&$s(e,t);const vht={mode:cd.onSubmit,reValidateMode:cd.onChange,shouldFocusError:!0};function Oht(e={},t){let n={...vht,...e},r={submitCount:0,isDirty:!1,isLoading:Dm(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},a=ls(n.values)||ls(n.defaultValues)?hl(n.values||n.defaultValues)||{}:{},s=n.shouldUnregister?{}:hl(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:o7(),array:o7(),state:o7()},g=jne(n.mode),b=jne(n.reValidateMode),S=n.criteriaMode===cd.all,w=pe=>le=>{clearTimeout(c),c=setTimeout(pe,le)},E=async pe=>{if(f.isValid||pe){const le=n.resolver?nc((await L()).errors):await W(i,!0);le!==r.isValid&&h.state.next({isValid:le})}},x=pe=>f.isValidating&&h.state.next({isValidating:pe}),k=(pe,le=[],he,je,Ze=!0,We=!0)=>{if(je&&he){if(o.action=!0,We&&Array.isArray(ln(i,pe))){const fe=he(ln(i,pe),je.argA,je.argB);Ze&&ki(i,pe,fe)}if(We&&Array.isArray(ln(r.errors,pe))){const fe=he(ln(r.errors,pe),je.argA,je.argB);Ze&&ki(r.errors,pe,fe),yht(r.errors,pe)}if(f.touchedFields&&We&&Array.isArray(ln(r.touchedFields,pe))){const fe=he(ln(r.touchedFields,pe),je.argA,je.argB);Ze&&ki(r.touchedFields,pe,fe)}f.dirtyFields&&(r.dirtyFields=HA(a,s)),h.state.next({name:pe,isDirty:Z(pe,le),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ki(s,pe,le)},C=(pe,le)=>{ki(r.errors,pe,le),h.state.next({errors:r.errors})},R=pe=>{r.errors=pe,h.state.next({errors:r.errors,isValid:!1})},A=(pe,le,he,je)=>{const Ze=ln(i,pe);if(Ze){const We=ln(s,pe,Ea(he)?ln(a,pe):he);Ea(We)||je&&je.defaultChecked||le?ki(s,pe,le?We:u7(Ze._f)):J(pe,We),o.mount&&E()}},D=(pe,le,he,je,Ze)=>{let We=!1,fe=!1;const xe={name:pe},ve=!!(ln(i,pe)&&ln(i,pe)._f.disabled);if(!he||je){f.isDirty&&(fe=r.isDirty,r.isDirty=xe.isDirty=Z(),We=fe!==xe.isDirty);const De=ve||Bg(ln(a,pe),le);fe=!!(!ve&&ln(r.dirtyFields,pe)),De||ve?$s(r.dirtyFields,pe):ki(r.dirtyFields,pe,!0),xe.dirtyFields=r.dirtyFields,We=We||f.dirtyFields&&fe!==!De}if(he){const De=ln(r.touchedFields,pe);De||(ki(r.touchedFields,pe,he),xe.touchedFields=r.touchedFields,We=We||f.touchedFields&&De!==he)}return We&&Ze&&h.state.next(xe),We?xe:{}},B=(pe,le,he,je)=>{const Ze=ln(r.errors,pe),We=f.isValid&&od(le)&&r.isValid!==le;if(e.delayError&&he?(u=w(()=>C(pe,he)),u(e.delayError)):(clearTimeout(c),u=null,he?ki(r.errors,pe,he):$s(r.errors,pe)),(he?!Bg(Ze,he):Ze)||!nc(je)||We){const fe={...je,...We&&od(le)?{isValid:le}:{},errors:r.errors,name:pe};r={...r,...fe},h.state.next(fe)}x(!1)},L=async pe=>n.resolver(s,n.context,mht(pe||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),F=async pe=>{const{errors:le}=await L(pe);if(pe)for(const he of pe){const je=ln(le,he);je?ki(r.errors,he,je):$s(r.errors,he)}else r.errors=le;return le},W=async(pe,le,he={valid:!0})=>{for(const je in pe){const Ze=pe[je];if(Ze){const{_f:We,...fe}=Ze;if(We){const xe=l.array.has(We.name),ve=await Gne(Ze,s,S,n.shouldUseNativeValidation&&!le,xe);if(ve[We.name]&&(he.valid=!1,le))break;!le&&(ln(ve,We.name)?xe?dht(r.errors,ve,We.name):ki(r.errors,We.name,ve[We.name]):$s(r.errors,We.name))}fe&&await W(fe,le,he)}}return he.valid},V=()=>{for(const pe of l.unMount){const le=ln(i,pe);le&&(le._f.refs?le._f.refs.every(he=>!l7(he)):!l7(le._f.ref))&&_e(pe)}l.unMount=new Set},Z=(pe,le)=>(pe&&le&&ki(s,pe,le),!Bg(be(),a)),Q=(pe,le,he)=>Gge(pe,l,{...o.mount?s:Ea(le)?a:Af(pe)?{[pe]:le}:le},he,le),H=pe=>YT(ln(o.mount?s:a,pe,e.shouldUnregister?ln(a,pe,[]):[])),J=(pe,le,he={})=>{const je=ln(i,pe);let Ze=le;if(je){const We=je._f;We&&(!We.disabled&&ki(s,pe,n1e(le,We)),Ze=s5(We.ref)&&Ho(le)?"":le,Jge(We.ref)?[...We.ref.options].forEach(fe=>fe.selected=Ze.includes(fe.value)):We.refs?GT(We.ref)?We.refs.length>1?We.refs.forEach(fe=>(!fe.defaultChecked||!fe.disabled)&&(fe.checked=Array.isArray(Ze)?!!Ze.find(xe=>xe===fe.value):Ze===fe.value)):We.refs[0]&&(We.refs[0].checked=!!Ze):We.refs.forEach(fe=>fe.checked=fe.value===Ze):TW(We.ref)?We.ref.value="":(We.ref.value=Ze,We.ref.type||h.values.next({name:pe,values:{...s}})))}(he.shouldDirty||he.shouldTouch)&&D(pe,Ze,he.shouldTouch,he.shouldDirty,!0),he.shouldValidate&&Te(pe)},K=(pe,le,he)=>{for(const je in le){const Ze=le[je],We=`${pe}.${je}`,fe=ln(i,We);(l.array.has(pe)||!l5(Ze)||fe&&!fe._f)&&!$y(Ze)?K(We,Ze,he):J(We,Ze,he)}},X=(pe,le,he={})=>{const je=ln(i,pe),Ze=l.array.has(pe),We=hl(le);ki(s,pe,We),Ze?(h.array.next({name:pe,values:{...s}}),(f.isDirty||f.dirtyFields)&&he.shouldDirty&&h.state.next({name:pe,dirtyFields:HA(a,s),isDirty:Z(pe,We)})):je&&!je._f&&!Ho(We)?K(pe,We,he):J(pe,We,he),Hne(pe,l)&&h.state.next({...r}),h.values.next({name:pe,values:{...s}}),!o.mount&&t()},te=async pe=>{const le=pe.target;let he=le.name,je=!0;const Ze=ln(i,he),We=()=>le.type?u7(Ze._f):zge(pe),fe=xe=>{je=Number.isNaN(xe)||xe===ln(s,he,xe)};if(Ze){let xe,ve;const De=We(),$e=pe.type===a5.BLUR||pe.type===a5.FOCUS_OUT,vt=!ght(Ze._f)&&!n.resolver&&!ln(r.errors,he)&&!Ze._f.deps||bht($e,ln(r.touchedFields,he),r.isSubmitted,b,g),Wt=Hne(he,l,$e);ki(s,he,De),$e?(Ze._f.onBlur&&Ze._f.onBlur(pe),u&&u(0)):Ze._f.onChange&&Ze._f.onChange(pe);const Kt=D(he,De,$e,!1),gt=!nc(Kt)||Wt;if(!$e&&h.values.next({name:he,type:pe.type,values:{...s}}),vt)return f.isValid&&E(),gt&&h.state.next({name:he,...Wt?{}:Kt});if(!$e&&Wt&&h.state.next({...r}),x(!0),n.resolver){const{errors:Gt}=await L([he]);if(fe(De),je){const ut=Yne(r.errors,i,he),wt=Yne(Gt,i,ut.name||he);xe=wt.error,he=wt.name,ve=nc(Gt)}}else xe=(await Gne(Ze,s,S,n.shouldUseNativeValidation))[he],fe(De),je&&(xe?ve=!1:f.isValid&&(ve=await W(i,!0)));je&&(Ze._f.deps&&Te(Ze._f.deps),B(he,ve,xe,Kt))}},z=(pe,le)=>{if(ln(r.errors,le)&&pe.focus)return pe.focus(),1},Te=async(pe,le={})=>{let he,je;const Ze=K4(pe);if(x(!0),n.resolver){const We=await F(Ea(pe)?pe:Ze);he=nc(We),je=pe?!Ze.some(fe=>ln(We,fe)):he}else pe?(je=(await Promise.all(Ze.map(async We=>{const fe=ln(i,We);return await W(fe&&fe._f?{[We]:fe}:fe)}))).every(Boolean),!(!je&&!r.isValid)&&E()):je=he=await W(i);return h.state.next({...!Af(pe)||f.isValid&&he!==r.isValid?{}:{name:pe},...n.resolver||!pe?{isValid:he}:{},errors:r.errors,isValidating:!1}),le.shouldFocus&&!je&&K2(i,z,pe?Ze:l.mount),je},be=pe=>{const le={...a,...o.mount?s:{}};return Ea(pe)?le:Af(pe)?ln(le,pe):pe.map(he=>ln(le,he))},ee=(pe,le)=>({invalid:!!ln((le||r).errors,pe),isDirty:!!ln((le||r).dirtyFields,pe),isTouched:!!ln((le||r).touchedFields,pe),error:ln((le||r).errors,pe)}),ye=pe=>{pe&&K4(pe).forEach(le=>$s(r.errors,le)),h.state.next({errors:pe?r.errors:{}})},Oe=(pe,le,he)=>{const je=(ln(i,pe,{_f:{}})._f||{}).ref;ki(r.errors,pe,{...le,ref:je}),h.state.next({name:pe,errors:r.errors,isValid:!1}),he&&he.shouldFocus&&je&&je.focus&&je.focus()},ie=(pe,le)=>Dm(pe)?h.values.subscribe({next:he=>pe(Q(void 0,le),he)}):Q(pe,le,!0),_e=(pe,le={})=>{for(const he of pe?K4(pe):l.mount)l.mount.delete(he),l.array.delete(he),le.keepValue||($s(i,he),$s(s,he)),!le.keepError&&$s(r.errors,he),!le.keepDirty&&$s(r.dirtyFields,he),!le.keepTouched&&$s(r.touchedFields,he),!n.shouldUnregister&&!le.keepDefaultValue&&$s(a,he);h.values.next({values:{...s}}),h.state.next({...r,...le.keepDirty?{isDirty:Z()}:{}}),!le.keepIsValid&&E()},Ie=({disabled:pe,name:le,field:he,fields:je,value:Ze})=>{if(od(pe)){const We=pe?void 0:Ea(Ze)?u7(he?he._f:ln(je,le)._f):Ze;ki(s,le,We),D(le,We,!1,!1,!0)}},qe=(pe,le={})=>{let he=ln(i,pe);const je=od(le.disabled);return ki(i,pe,{...he||{},_f:{...he&&he._f?he._f:{ref:{name:pe}},name:pe,mount:!0,...le}}),l.mount.add(pe),he?Ie({field:he,disabled:le.disabled,name:pe,value:le.value}):A(pe,!0,le.value),{...je?{disabled:le.disabled}:{},...n.progressive?{required:!!le.required,min:BE(le.min),max:BE(le.max),minLength:BE(le.minLength),maxLength:BE(le.maxLength),pattern:BE(le.pattern)}:{},name:pe,onChange:te,onBlur:te,ref:Ze=>{if(Ze){qe(pe,le),he=ln(i,pe);const We=Ea(Ze.value)&&Ze.querySelectorAll&&Ze.querySelectorAll("input,select,textarea")[0]||Ze,fe=pht(We),xe=he._f.refs||[];if(fe?xe.find(ve=>ve===We):We===he._f.ref)return;ki(i,pe,{_f:{...he._f,...fe?{refs:[...xe.filter(l7),We,...Array.isArray(ln(a,pe))?[{}]:[]],ref:{type:We.type,name:pe}}:{ref:We}}}),A(pe,!1,void 0,We)}else he=ln(i,pe,{}),he._f&&(he._f.mount=!1),(n.shouldUnregister||le.shouldUnregister)&&!(jge(l.array,pe)&&o.action)&&l.unMount.add(pe)}}},st=()=>n.shouldFocusError&&K2(i,z,l.mount),Pe=pe=>{od(pe)&&(h.state.next({disabled:pe}),K2(i,(le,he)=>{let je=pe;const Ze=ln(i,he);Ze&&od(Ze._f.disabled)&&(je||(je=Ze._f.disabled)),le.disabled=je},0,!1))},tt=(pe,le)=>async he=>{let je;he&&(he.preventDefault&&he.preventDefault(),he.persist&&he.persist());let Ze=hl(s);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:We,values:fe}=await L();r.errors=We,Ze=fe}else await W(i);if($s(r.errors,"root"),nc(r.errors)){h.state.next({errors:{}});try{await pe(Ze,he)}catch(We){je=We}}else le&&await le({...r.errors},he),st(),setTimeout(st);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:nc(r.errors)&&!je,submitCount:r.submitCount+1,errors:r.errors}),je)throw je},Ve=(pe,le={})=>{ln(i,pe)&&(Ea(le.defaultValue)?X(pe,hl(ln(a,pe))):(X(pe,le.defaultValue),ki(a,pe,hl(le.defaultValue))),le.keepTouched||$s(r.touchedFields,pe),le.keepDirty||($s(r.dirtyFields,pe),r.isDirty=le.defaultValue?Z(pe,hl(ln(a,pe))):Z()),le.keepError||($s(r.errors,pe),f.isValid&&E()),h.state.next({...r}))},Xe=(pe,le={})=>{const he=pe?hl(pe):a,je=hl(he),Ze=pe&&!nc(pe)?je:a;if(le.keepDefaultValues||(a=he),!le.keepValues){if(le.keepDirtyValues)for(const We of l.mount)ln(r.dirtyFields,We)?ki(Ze,We,ln(s,We)):X(We,ln(Ze,We));else{if(SW&&Ea(pe))for(const We of l.mount){const fe=ln(i,We);if(fe&&fe._f){const xe=Array.isArray(fe._f.refs)?fe._f.refs[0]:fe._f.ref;if(s5(xe)){const ve=xe.closest("form");if(ve){ve.reset();break}}}}i={}}s=e.shouldUnregister?le.keepDefaultValues?hl(a):{}:hl(Ze),h.array.next({values:{...Ze}}),h.values.next({values:{...Ze}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!o.mount&&t(),o.mount=!f.isValid||!!le.keepIsValid||!!le.keepDirtyValues,o.watch=!!e.shouldUnregister,h.state.next({submitCount:le.keepSubmitCount?r.submitCount:0,isDirty:le.keepDirty?r.isDirty:!!(le.keepDefaultValues&&!Bg(pe,a)),isSubmitted:le.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:le.keepDirtyValues?le.keepDefaultValues&&s?HA(a,s):r.dirtyFields:le.keepDefaultValues&&pe?HA(a,pe):{},touchedFields:le.keepTouched?r.touchedFields:{},errors:le.keepErrors?r.errors:{},isSubmitSuccessful:le.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},et=(pe,le)=>Xe(Dm(pe)?pe(s):pe,le);return{control:{register:qe,unregister:_e,getFieldState:ee,handleSubmit:tt,setError:Oe,_executeSchema:L,_getWatch:Q,_getDirty:Z,_updateValid:E,_removeUnmounted:V,_updateFieldArray:k,_updateDisabledField:Ie,_getFieldArray:H,_reset:Xe,_resetDefaultValues:()=>Dm(n.defaultValues)&&n.defaultValues().then(pe=>{et(pe,n.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:pe=>{r={...r,...pe}},_disableForm:Pe,_subjects:h,_proxyFormState:f,_setErrors:R,get _fields(){return i},get _formValues(){return s},get _state(){return o},set _state(pe){o=pe},get _defaultValues(){return a},get _names(){return l},set _names(pe){l=pe},get _formState(){return r},set _formState(pe){r=pe},get _options(){return n},set _options(pe){n={...n,...pe}}},trigger:Te,register:qe,handleSubmit:tt,watch:ie,setValue:X,getValues:be,reset:et,resetField:Ve,clearErrors:ye,unregister:_e,setError:Oe,setFocus:(pe,le={})=>{const he=ln(i,pe),je=he&&he._f;if(je){const Ze=je.refs?je.refs[0]:je.ref;Ze.focus&&(Ze.focus(),le.shouldSelect&&Ze.select())}},getFieldState:ee}}function r1e(e={}){const t=hn.useRef(),n=hn.useRef(),[r,i]=hn.useState({isDirty:!1,isValidating:!1,isLoading:Dm(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Dm(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Oht(e,()=>i(s=>({...s}))),formState:r});const a=t.current.control;return a._options=e,wW({subject:a._subjects.state,next:s=>{Qge(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),hn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),hn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),hn.useEffect(()=>{e.values&&!Bg(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),hn.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),hn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),hn.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=Wge(r,a),t.current}const yf=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),CW=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let a;if(e!=null)a=e;else if(i.includes(t))a=t;else if(i.length>0)a=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:a}},J2=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:a,utils:s,timezone:o})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,o));n&&s.isBefore(i,l)&&(i=l),t&&s.isAfter(r,l)&&(r=l);let u=e,c=e;for(s.isBefore(e,i)&&(u=i,c=null),s.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&s.isAfter(u,r)&&(u=null),c&&s.isBefore(c,i)&&(c=null),u){if(!a(u))return u;u=s.addDays(u,1)}if(c){if(!a(c))return c;c=s.addDays(c,-1)}}return null},Sht=(e,t)=>t==null||!e.isValid(t)?null:t,Eo=(e,t,n)=>t==null||!e.isValid(t)?n:t,Eht=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),AW=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},t9=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},_W=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),fd=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},wht=["year","month","day"],lv=e=>wht.includes(e),gx=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return yf(n,["year"])?i.year:yf(n,["month"])?i.month:yf(n,["day"])?i.dayOfMonth:yf(n,["month","year"])?`${i.month} ${i.year}`:yf(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},xht=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},i1e=["hours","minutes","seconds"],cO=e=>i1e.includes(e),am=e=>i1e.includes(e)||e==="meridiem",Tht=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,bx=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,kht=(e,t,n,r)=>{const i=bx(r.getHours(e),t,n);return r.setHours(e,i)},Zne=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),ZT=(e,t)=>(n,r)=>e?t.isAfter(n,r):Zne(n,t)>Zne(r,t),c5=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return yf(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:yf(n,["minutes"])?i.minutes:yf(n,["seconds"])?i.seconds:yf(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:yf(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},ld={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Cht=e=>Math.max(...e.map(t=>{var n;return(n=ld[t.type])!=null?n:1})),UE=(e,t,n)=>{if(t===ld.year)return e.startOfYear(n);if(t===ld.month)return e.startOfMonth(n);if(t===ld.day)return e.startOfDay(n);let r=n;return t{var a;let s=i?i():UE(t,n,_W(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=UE(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=UE(t,n,e.maxDate));const o=ZT((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&o(e.minTime,s)&&(s=UE(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:t9(t,s,e.minTime))),e.maxTime!=null&&o(s,e.maxTime)&&(s=UE(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:t9(t,s,e.maxTime))),s},a1e=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},_ht=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},HI=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),a=e.startOfWeek(i),s=e.endOfWeek(i);let o=a;for(;e.isBefore(o,s);)r.push(o),o=e.addDays(o,1);return r.map(l=>e.formatByString(l,n))},s1e=(e,t,n,r)=>{switch(n){case"month":return AW(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return HI(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(a=>e.formatByString(a,r))}default:return[]}},o1e=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const s=e.setDate(r.longestMonth,n);return e.formatByString(s,i.format)}const a=n.toString();return i.hasLeadingZerosInInput?o1e(e,a,i.maxLength):a},Rht=(e,t,n,r,i,a,s)=>{const o=_ht(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,f=()=>{const g=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=x=>l1e(e,t,x,g,n),S=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let E=parseInt(n.value,10)+o*S;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);o>0||l?E=g.minimum:E=g.maximum}return E%S!==0&&((o<0||l)&&(E+=S-(S+E)%S),(o>0||u)&&(E-=E%S)),E>g.maximum?b(g.minimum+(E-g.maximum-1)%(g.maximum-g.minimum+1)):E{const g=s1e(e,t,n.type,n.format);if(g.length===0)return n.value;if(c)return o>0||l?g[0]:g[g.length-1];const S=(g.indexOf(n.value)+g.length+o)%g.length;return g[S]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():h()},RW=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Fy=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),u1e=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let a=0;a{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},Xne=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),c1e=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,d1e=(e,t,n,r,i)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return c1e(e,t,i)?e.formatByString(e.setYear(a,1),i)==="0001":e.formatByString(e.setYear(a,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(a),i).length>1;case"day":return e.formatByString(e.startOfMonth(a),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),i).length>1;case"hours":return e.formatByString(e.setHours(a,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(a,1),i).length>1;default:throw new Error("Invalid section type")}},Dht=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let s=null;for(;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n},Kne=(e,t,n,r,i,a,s,o)=>{let l="";const u=[],c=e.date(),f=k=>{if(k==="")return null;const C=a1e(e,k),R=d1e(e,t,C.contentType,C.type,k),A=s?R:C.contentType==="digit",D=i!=null&&e.isValid(i);let B=D?e.formatByString(i,k):"",L=null;if(A)if(R)L=B===""?e.formatByString(c,k).length:B.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${k} should have a 'maxDigitNumber' property on it's adapter`);L=C.maxLength,D&&(B=o1e(e,B,L))}return u.push(M({},C,{format:k,maxLength:L,value:B,placeholder:Iht(e,t,n,C,k),hasLeadingZeros:R,hasLeadingZerosInFormat:R,hasLeadingZerosInInput:A,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let h=10,g=r,b=e.expandFormat(r);for(;b!==g;)if(g=b,b=e.expandFormat(g),h-=1,h<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const S=b,w=Dht(e,S),E=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((k,C)=>C.length-k.length).join("|")})`,"g");let x="";for(let k=0;kL.start<=k&&L.end>=k),R=S[k],A=C!=null,D=`${x}${S.slice(k)}`,B=E.test(D);!A&&R.match(/([A-Za-z]+)/)&&B?(x=D.slice(0,E.lastIndex),k+=E.lastIndex-1):A&&(C==null?void 0:C.start)===k||(C==null?void 0:C.end)===k||(f(x),x="",u.length===0?l+=R:u[u.length-1].endSeparator+=R)}return f(x),u.map(k=>{const C=R=>{let A=R;return o&&A!==null&&A.includes(" ")&&(A=`⁩${A}⁦`),a==="spacious"&&["/",".","-"].includes(A)&&(A=` ${A} `),A};return k.startSeparator=C(k.startSeparator),k.endSeparator=C(k.endSeparator),k})},Nht=(e,t)=>{const n=t.some(o=>o.type==="day"),r=[],i=[];for(let o=0;o{const r=e.map(i=>{const a=RW(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},Mht=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:s}=AW(e,n).reduce((o,l)=>{const u=e.getDaysInMonth(l);return u>o.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:o},{maxDaysInMonth:0,longestMonth:null});return{year:({format:o})=>({minimum:0,maximum:c1e(e,t,o)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:o})=>({minimum:1,maximum:o!=null&&e.isValid(o)?e.getDaysInMonth(o):a,longestMonth:s}),weekDay:({format:o,contentType:l})=>{if(l==="digit"){const u=HI(e,t,o).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:o})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),o)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),o))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},Lht=(e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const a=HI(e,t,n.format),s=e.formatByString(r,n.format),o=a.indexOf(s),u=a.indexOf(n.value)-o;return e.addDays(r,u)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,s=e.getHours(i);return a&&s>=12?e.addHours(i,-12):!a&&s<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}},Jne={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},ere=(e,t,n,r,i,a)=>[...r].sort((s,o)=>Jne[s.type]-Jne[o.type]).reduce((s,o)=>!a||o.modified?Lht(e,t,o,n,s):s,i),$ht=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,Fht=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let a=0,s=0,o=e.length-1;for(;o>=0;){s=e.findIndex((l,u)=>{var c;return u>=a&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let l=s;l>=a;l-=1)i[l]=o,r[o]=l,o-=1;a=s+1}return e.forEach((l,u)=>{const c=i[u],f=c===0?null:r[c-1],h=c===e.length-1?null:r[c+1];n[u]={leftIndex:f,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Bht=["value","referenceDate"],us={emptyValue:null,getTodayValue:_W,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=at(e,Bht);return t!=null&&r.utils.isValid(t)?t:n??Aht(r)},cleanValue:Sht,areValuesEqual:Eht,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},IW={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:u1e(i(t),r),getValueStrFromSections:Pht,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Uht=["localeText"],n9=N.createContext(null),f1e=function(t){var n;const{localeText:r}=t,i=at(t,Uht),{utils:a,localeText:s}=(n=N.useContext(n9))!=null?n:{utils:void 0,localeText:void 0},o=_t({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:f,adapterLocale:h,localeText:g}=o,b=N.useMemo(()=>M({},g,s,r),[g,s,r]),S=N.useMemo(()=>{if(!u)return a||null;const x=new u({locale:h,formats:c,instance:f});if(!x.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return x},[u,h,c,f,a]),w=N.useMemo(()=>S?{minDate:S.date("1900-01-01T00:00:00.000"),maxDate:S.date("2099-12-31T00:00:00.000")}:null,[S]),E=N.useMemo(()=>({utils:S,defaultDates:w,localeText:b}),[w,S,b]);return I.jsx(n9.Provider,{value:E,children:l})},zht=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:M({},e)}}}}),h1e={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},jht=h1e;zht(h1e);const Pd=()=>{const e=N.useContext(n9);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=N.useMemo(()=>M({},Lht,e.localeText),[e.localeText]);return N.useMemo(()=>M({},e,{localeText:t}),[e,t])},yr=()=>Pd().utils,L1=()=>Pd().defaultDates,cs=()=>Pd().localeText,D0=e=>{const t=yr(),n=N.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function p1e(e){return Bt("MuiPickersToolbar",e)}Ut("MuiPickersToolbar",["root","content"]);const $ht=e=>{const{classes:t,isLandscape:n}=e;return Lt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},p1e,t)},Fht=Re("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>M({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Bht=Re("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),IW=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbar"}),{children:i,className:a,toolbarTitle:s,hidden:o,titleId:l}=r,u=r,c=$ht(u);return o?null:I.jsxs(Fht,{ref:n,className:ft(c.root,a),ownerState:u,children:[I.jsx(xr,{color:"text.secondary",variant:"overline",id:l,children:s}),I.jsx(Bht,{className:c.content,ownerState:u,children:i})]})});function Uht(e){return Bt("MuiDatePickerToolbar",e)}Ut("MuiDatePickerToolbar",["root","title"]);const zht=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],jht=e=>{const{classes:t}=e;return Lt({root:["root"],title:["title"]},Uht,t)},Hht=Re(IW,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vht=Re(xr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>M({},e.isLandscape&&{margin:"auto 16px auto auto"})),Wht=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:a,toolbarFormat:s,toolbarPlaceholder:o="––",views:l}=r,u=at(r,zht),c=yr(),f=cs(),h=jht(r),g=N.useMemo(()=>{if(!i)return o;const S=gx(c,{format:s,views:l},!0);return c.formatByString(i,S)},[i,s,o,c,l]),b=r;return I.jsx(Hht,M({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:h.root},u,{children:I.jsx(Vht,{variant:"h4",align:a?"left":"center",ownerState:b,className:h.title,children:g})}))}),ZT=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>M({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function m1e(e,t){var n,r,i,a;const s=yr(),o=L1(),l=_t({props:e,name:t}),u=N.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:M({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:ZT(l.components);return M({},l,{localeText:u},kW({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(i=l.disablePast)!=null?i:!1,minDate:Eo(s,l.minDate,o.minDate),maxDate:Eo(s,l.maxDate,o.maxDate),slots:M({toolbar:Wht},c),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const Qht=Wa(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qht=Wa(I.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Ght=Wa(I.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),g1e=Wa(I.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Yht=Wa(I.jsxs(N.Fragment,{children:[I.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),I.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Zht=Wa(I.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Xht=Wa(I.jsxs(N.Fragment,{children:[I.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),I.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),Kht=Wa(I.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function Jht(e){return Bt("MuiPickersArrowSwitcher",e)}Ut("MuiPickersArrowSwitcher",["root","spacer","button"]);const ept=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],tpt=["ownerState"],npt=["ownerState"],rpt=Re("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),ipt=Re("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),ere=Re(wa,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>M({},e.hidden&&{visibility:"hidden"})),apt=e=>{const{classes:t}=e;return Lt({root:["root"],spacer:["spacer"],button:["button"]},Jht,t)},b1e=N.forwardRef(function(t,n){var r,i,a,s;const l=Ni().direction==="rtl",u=_t({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:f,slots:h,slotProps:g,isNextDisabled:b,isNextHidden:S,onGoToNext:E,nextLabel:w,isPreviousDisabled:x,isPreviousHidden:k,onGoToPrevious:C,previousLabel:R}=u,A=at(u,ept),D=u,B=apt(D),L={isDisabled:b,isHidden:S,goTo:E,label:w},F={isDisabled:x,isHidden:k,goTo:C,label:R},W=(r=h==null?void 0:h.previousIconButton)!=null?r:ere,V=cr({elementType:W,externalSlotProps:g==null?void 0:g.previousIconButton,additionalProps:{size:"medium",title:F.label,"aria-label":F.label,disabled:F.isDisabled,edge:"end",onClick:F.goTo},ownerState:M({},D,{hidden:F.isHidden}),className:B.button}),Z=(i=h==null?void 0:h.nextIconButton)!=null?i:ere,Q=cr({elementType:Z,externalSlotProps:g==null?void 0:g.nextIconButton,additionalProps:{size:"medium",title:L.label,"aria-label":L.label,disabled:L.isDisabled,edge:"start",onClick:L.goTo},ownerState:M({},D,{hidden:L.isHidden}),className:B.button}),H=(a=h==null?void 0:h.leftArrowIcon)!=null?a:qht,J=cr({elementType:H,externalSlotProps:g==null?void 0:g.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),K=at(J,tpt),X=(s=h==null?void 0:h.rightArrowIcon)!=null?s:Ght,te=cr({elementType:X,externalSlotProps:g==null?void 0:g.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),z=at(te,npt);return I.jsxs(rpt,M({ref:n,className:ft(B.root,f),ownerState:D},A,{children:[I.jsx(W,M({},V,{children:l?I.jsx(X,M({},z)):I.jsx(H,M({},K))})),c?I.jsx(xr,{variant:"subtitle1",component:"span",children:c}):I.jsx(ipt,{className:B.spacer,ownerState:D}),I.jsx(Z,M({},Q,{children:l?I.jsx(H,M({},K)):I.jsx(X,M({},z))}))]}))}),yx=36,jI=2,HI=320,spt=280,VI=334,y1e=232,d2=48,opt=Re(B6e)({[`& .${_2.container}`]:{outline:0},[`& .${_2.paper}`]:{outline:0,minWidth:HI}}),lpt=Re(J6e)({"&:first-of-type":{padding:0}});function upt(e){var t,n;const{children:r,onDismiss:i,open:a,slots:s,slotProps:o}=e,l=(t=s==null?void 0:s.dialog)!=null?t:opt,u=(n=s==null?void 0:s.mobileTransition)!=null?n:tp;return I.jsx(l,M({open:a,onClose:i},o==null?void 0:o.dialog,{TransitionComponent:u,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:I.jsx(lpt,{children:r})}))}function cpt(e){return Bt("MuiPickersPopper",e)}Ut("MuiPickersPopper",["root","paper"]);function py(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const dpt=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},l5=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?l5(t.shadowRoot):t:null},DW="@media (pointer: fine)",fpt="@media (prefers-reduced-motion: reduce)",uv=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),tre=uv&&uv[1]?parseInt(uv[1],10):null,nre=uv&&uv[2]?parseInt(uv[2],10):null,hpt=tre&&tre<10||nre&&nre<13||!1,v1e=()=>TO(fpt,{defaultMatches:!1})||hpt,ppt=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],mpt=e=>{const{classes:t}=e;return Lt({root:["root"],paper:["paper"]},cpt,t)},gpt=Re(wO,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),bpt=Re(Zs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>M({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function ypt(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const s=on(l=>{if(!a.current)return;const u=r.current;r.current=!1;const c=Ei(i.current);if(!i.current||"clientX"in l&&ypt(l,c))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(i.current)>-1:f=!c.documentElement.contains(l.target)||i.current.contains(l.target),!f&&!u&&t(l)}),o=()=>{r.current=!0};return N.useEffect(()=>{if(e){const l=Ei(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",u)}}},[e,s]),N.useEffect(()=>{if(e){const l=Ei(i.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[i,o,o]}const Opt=N.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:a,paperSlotProps:s,paperClasses:o,onPaperClick:l,onPaperTouchStart:u}=e,c=at(e,ppt),f=M({},i,{placement:r}),h=cr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:o,ownerState:f});return I.jsx(n,M({},c,h,{onClick:g=>{var b;l(g),(b=h.onClick)==null||b.call(h,g)},onTouchStart:g=>{var b;u(g),(b=h.onTouchStart)==null||b.call(h,g)},ownerState:f,children:a}))});function Spt(e){var t,n,r,i;const a=_t({props:e,name:"MuiPickersPopper"}),{anchorEl:s,children:o,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:f,open:h,role:g,placement:b,slots:S,slotProps:E,reduceAnimations:w}=a;N.useEffect(()=>{function te(z){h&&(z.key==="Escape"||z.key==="Esc")&&f()}return document.addEventListener("keydown",te),()=>{document.removeEventListener("keydown",te)}},[f,h]);const x=N.useRef(null);N.useEffect(()=>{g==="tooltip"||u&&!u()||(h?x.current=l5(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[h,g,u]);const[k,C,R]=vpt(h,c??f),A=N.useRef(null),D=Jn(A,l),B=Jn(D,k),L=a,F=mpt(L),W=v1e(),V=w??W,Z=te=>{te.key==="Escape"&&(te.stopPropagation(),f())},Q=((t=S==null?void 0:S.desktopTransition)!=null?t:V)?tp:Q_,H=(n=S==null?void 0:S.desktopTrapFocus)!=null?n:Aoe,J=(r=S==null?void 0:S.desktopPaper)!=null?r:bpt,K=(i=S==null?void 0:S.popper)!=null?i:gpt,X=cr({elementType:K,externalSlotProps:E==null?void 0:E.popper,additionalProps:{transition:!0,role:g,open:h,anchorEl:s,placement:b,onKeyDown:Z},className:F.root,ownerState:a});return I.jsx(K,M({},X,{children:({TransitionProps:te,placement:z})=>I.jsx(H,M({open:h,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},E==null?void 0:E.desktopTrapFocus,{children:I.jsx(Q,M({},te,E==null?void 0:E.desktopTransition,{children:I.jsx(Opt,{PaperComponent:J,ownerState:L,popperPlacement:z,ref:B,onPaperClick:C,onPaperTouchStart:R,paperClasses:F.paper,paperSlotProps:E==null?void 0:E.desktopPaper,children:o})}))}))}))}function Ept(e){return Bt("MuiPickersToolbarText",e)}const rre=Ut("MuiPickersToolbarText",["root","selected"]),wpt=["className","selected","value"],xpt=e=>{const{classes:t,selected:n}=e;return Lt({root:["root",n&&"selected"]},Ept,t)},Tpt=Re(xr,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${rre.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${rre.selected}`]:{color:(e.vars||e).palette.text.primary}})),NW=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbarText"}),{className:i,value:a}=r,s=at(r,wpt),o=xpt(r);return I.jsx(Tpt,M({ref:n,className:ft(i,o.root),component:"span"},s,{children:a}))}),kpt=["align","className","selected","typographyClassName","value","variant","width"],Cpt=e=>{const{classes:t}=e;return Lt({root:["root"]},p1e,t)},Apt=Re(Ws,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ou=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:a,selected:s,typographyClassName:o,value:l,variant:u,width:c}=r,f=at(r,kpt),h=Cpt(r);return I.jsx(Apt,M({variant:"text",ref:n,className:ft(a,h.root)},c?{sx:{width:c}}:{},f,{children:I.jsx(NW,{align:i,className:o,variant:u,value:l,selected:s})}))}),PW=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var a,s;const o=yr(),l=N.useRef(n),u=(a=t??l.current)!=null?a:i.emptyValue,c=N.useMemo(()=>i.getTimezone(o,u),[o,i,u]),f=on(S=>c==null?S:i.setTimezone(o,c,S)),h=(s=e??c)!=null?s:"default",g=N.useMemo(()=>i.setTimezone(o,h,u),[i,o,h,u]),b=on((S,...E)=>{const w=f(S);r==null||r(w,...E)});return{value:g,handleValueChange:b,timezone:h}},ZO=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:a})=>{const[s,o]=ws({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=on((u,...c)=>{o(u),i==null||i(u,...c)});return PW({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:a})};function O1e(e,t,n,r){const{value:i,onError:a}=e,s=Pd(),o=N.useRef(r),l=t({adapter:s,value:i,props:e});return N.useEffect(()=>{a&&!n(l,o.current)&&a(l,i),o.current=l},[n,a,o,l,i]),l}const _pt=e=>{const t=yr(),n=cs(),r=Pd(),a=Ni().direction==="rtl",{valueManager:s,fieldValueManager:o,valueType:l,validator:u,internalProps:c,internalProps:{value:f,defaultValue:h,referenceDate:g,onChange:b,format:S,formatDensity:E="dense",selectedSections:w,onSelectedSectionsChange:x,shouldRespectLeadingZeros:k=!1,timezone:C}}=e,{timezone:R,value:A,handleValueChange:D}=PW({timezone:C,value:f,defaultValue:h,onChange:b,valueManager:s}),B=N.useMemo(()=>_ht(t,R),[t,R]),L=N.useCallback((ye,Oe=null)=>o.getSectionsFromValue(t,ye,Oe,a,ie=>Xne(t,R,n,S,ie,E,k,a)),[o,S,n,a,k,t,E,R]),F=N.useMemo(()=>o.getValueStrFromSections(L(s.emptyValue),a),[o,L,s.emptyValue,a]),[W,V]=N.useState(()=>{const ye=L(A),Oe={sections:ye,value:A,referenceValue:s.emptyValue,tempValueStrAndroid:null},ie=Sht(ye),_e=s.getInitialReferenceValue({referenceDate:g,value:A,utils:t,props:c,granularity:ie,timezone:R});return M({},Oe,{referenceValue:_e})}),[Z,Q]=ws({controlled:w,default:null,name:"useField",state:"selectedSectionIndexes"}),H=ye=>{Q(ye),x==null||x(ye),V(Oe=>M({},Oe,{selectedSectionQuery:null}))},J=N.useMemo(()=>{if(Z==null)return null;if(Z==="all")return{startIndex:0,endIndex:W.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof Z=="number")return{startIndex:Z,endIndex:Z};if(typeof Z=="string"){const ye=W.sections.findIndex(Oe=>Oe.type===Z);return{startIndex:ye,endIndex:ye}}return Z},[Z,W.sections]),K=({value:ye,referenceValue:Oe,sections:ie})=>{if(V(Ie=>M({},Ie,{sections:ie,value:ye,referenceValue:Oe,tempValueStrAndroid:null})),s.areValuesEqual(t,W.value,ye))return;const _e={validationError:u({adapter:r,value:ye,props:M({},c,{value:ye,timezone:R})})};D(ye,_e)},X=(ye,Oe)=>{const ie=[...W.sections];return ie[ye]=M({},ie[ye],{value:Oe,modified:!0}),u1e(ie,a)},te=()=>{K({value:s.emptyValue,referenceValue:W.referenceValue,sections:L(s.emptyValue)})},z=()=>{if(J==null)return;const ye=W.sections[J.startIndex],Oe=o.getActiveDateManager(t,W,ye),_e=Oe.getSections(W.sections).filter(Pe=>Pe.value!=="").length===(ye.value===""?0:1),Ie=X(J.startIndex,""),qe=_e?null:t.date(new Date("")),st=Oe.getNewValuesFromNewActiveDate(qe);(qe!=null&&!t.isValid(qe))!=(Oe.date!=null&&!t.isValid(Oe.date))?K(M({},st,{sections:Ie})):V(Pe=>M({},Pe,st,{sections:Ie,tempValueStrAndroid:null}))},Te=ye=>{const Oe=(Ie,qe)=>{const st=t.parse(Ie,S);if(st==null||!t.isValid(st))return null;const Pe=Xne(t,R,n,S,st,E,k,a);return Jne(t,R,st,Pe,qe,!1)},ie=o.parseValueStr(ye,W.referenceValue,Oe),_e=o.updateReferenceValue(t,ie,W.referenceValue);K({value:ie,referenceValue:_e,sections:L(ie,W.sections)})},be=({activeSection:ye,newSectionValue:Oe,shouldGoToNextSection:ie})=>{ie&&J&&J.startIndexM({},Ve,Pe,{sections:Ie,tempValueStrAndroid:null}))},ee=ye=>V(Oe=>M({},Oe,{tempValueStrAndroid:ye}));return N.useEffect(()=>{const ye=L(W.value);V(Oe=>M({},Oe,{sections:ye}))},[S,t.locale]),N.useEffect(()=>{let ye=!1;s.areValuesEqual(t,W.value,A)?ye=s.getTimezone(t,W.value)!==s.getTimezone(t,A):ye=!0,ye&&V(Oe=>M({},Oe,{value:A,referenceValue:o.updateReferenceValue(t,A,Oe.referenceValue),sections:L(A)}))},[A]),{state:W,selectedSectionIndexes:J,setSelectedSections:H,clearValue:te,clearActiveSection:z,updateSectionValue:be,updateValueFromValueStr:Te,setTempAndroidValueStr:ee,sectionsValueBoundaries:B,placeholder:F,timezone:R}},Rpt=5e3,ey=e=>e.saveQuery!=null,Ipt=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const a=yr(),[s,o]=N.useState(null),l=on(()=>o(null));N.useEffect(()=>{var g;s!=null&&((g=e[s.sectionIndex])==null?void 0:g.type)!==s.sectionType&&l()},[e,s,l]),N.useEffect(()=>{if(s!=null){const g=setTimeout(()=>l(),Rpt);return()=>{window.clearTimeout(g)}}return()=>{}},[s,l]);const u=({keyPressed:g,sectionIndex:b},S,E)=>{const w=g.toLowerCase(),x=e[b];if(s!=null&&(!E||E(s.value))&&s.sectionIndex===b){const C=`${s.value}${w}`,R=S(C,x);if(!ey(R))return o({sectionIndex:b,value:C,sectionType:x.type}),R}const k=S(w,x);return ey(k)&&!k.saveQuery?(l(),null):(o({sectionIndex:b,value:w,sectionType:x.type}),ey(k)?null:k)},c=g=>{const b=(w,x,k)=>{const C=x.filter(R=>R.toLowerCase().startsWith(k));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},S=(w,x,k,C)=>{const R=A=>s1e(a,i,x.type,A);if(x.contentType==="letter")return b(x.format,R(x.format),w);if(k&&C!=null&&a1e(a,k).contentType==="letter"){const A=R(k),D=b(k,A,w);return ey(D)?{saveQuery:!1}:M({},D,{sectionValue:C(D.sectionValue,A)})}return{saveQuery:!1}};return u(g,(w,x)=>{switch(x.type){case"month":{const k=C=>Zne(a,C,a.formats.month,x.format);return S(w,x,a.formats.month,k)}case"weekDay":{const k=(C,R)=>R.indexOf(C).toString();return S(w,x,a.formats.weekday,k)}case"meridiem":return S(w,x);default:return{saveQuery:!1}}})},f=g=>{const b=(E,w)=>{const x=+`${E}`,k=n[w.type]({currentDate:null,format:w.format,contentType:w.contentType});if(x>k.maximum)return{saveQuery:!1};if(xk.maximum||E.length===k.maximum.toString().length;return{sectionValue:l1e(a,i,x,k,w),shouldGoToNextSection:C}};return u(g,(E,w)=>{if(w.contentType==="digit"||w.contentType==="digit-with-letter")return b(E,w);if(w.type==="month"){const x=d1e(a,i,"digit","month","MM"),k=b(E,{type:w.type,format:"MM",hasLeadingZerosInFormat:x,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ey(k))return k;const C=Zne(a,k.sectionValue,"MM",w.format);return M({},k,{sectionValue:C})}if(w.type==="weekDay"){const x=b(E,w);if(ey(x))return x;const k=zI(a,i,w.format)[Number(x.sectionValue)-1];return M({},x,{sectionValue:k})}return{saveQuery:!1}},E=>!Number.isNaN(Number(E)))};return{applyCharacterEditing:on(g=>{const b=e[g.sectionIndex],E=!Number.isNaN(Number(g.keyPressed))?f(g):c(g);E==null?r(null):t({activeSection:b,newSectionValue:E.sectionValue,shouldGoToNextSection:E.shouldGoToNextSection})}),resetCharacterQuery:l}},Dpt=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],MW=e=>{const t=yr(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:a,clearActiveSection:s,updateSectionValue:o,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:f,timezone:h}=_pt(e),{inputRef:g,internalProps:b,internalProps:{readOnly:S=!1,unstableFieldRef:E,minutesStep:w},forwardedProps:{onClick:x,onKeyDown:k,onFocus:C,onBlur:R,onMouseUp:A,onPaste:D,error:B,clearable:L,onClear:F,disabled:W},fieldValueManager:V,valueManager:Z,validator:Q}=e,H=at(e.forwardedProps,Dpt),{applyCharacterEditing:J,resetCharacterQuery:K}=Ipt({sections:n.sections,updateSectionValue:o,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:h}),X=N.useRef(null),te=Jn(g,X),z=N.useRef(void 0),be=Ni().direction==="rtl",ee=N.useMemo(()=>Dht(n.sections,be),[n.sections,be]),ye=()=>{var le;if(S){i(null);return}const he=(le=X.current.selectionStart)!=null?le:0;let je;he<=n.sections[0].startInInput||he>=n.sections[n.sections.length-1].endInInput?je=1:je=n.sections.findIndex(We=>We.startInInput-We.startSeparator.length>he);const Ze=je===-1?n.sections.length-1:je-1;i(Ze)},Oe=on((le,...he)=>{le.isDefaultPrevented()||(x==null||x(le,...he),ye())}),ie=on(le=>{A==null||A(le),le.preventDefault()}),_e=on((...le)=>{C==null||C(...le);const he=X.current;window.clearTimeout(z.current),z.current=setTimeout(()=>{!he||he!==X.current||r!=null||S||(he.value.length&&Number(he.selectionEnd)-Number(he.selectionStart)===he.value.length?i("all"):ye())})}),Ie=on((...le)=>{R==null||R(...le),i(null)}),qe=on(le=>{if(D==null||D(le),S){le.preventDefault();return}const he=le.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const je=n.sections[r.startIndex],Ze=/^[a-zA-Z]+$/.test(he),We=/^[0-9]+$/.test(he),fe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(he);if(je.contentType==="letter"&&Ze||je.contentType==="digit"&&We||je.contentType==="digit-with-letter"&&fe){K(),o({activeSection:je,newSectionValue:he,shouldGoToNextSection:!0}),le.preventDefault();return}if(Ze||We){le.preventDefault();return}}le.preventDefault(),K(),l(he)}),st=on(le=>{if(S)return;const he=le.target.value;if(he===""){K(),a();return}const je=le.nativeEvent.data,Ze=je&&je.length>1,We=Ze?je:he,fe=Fy(We);if(r==null||Ze){l(Ze?je:fe);return}let xe;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&fe.length===1)xe=fe;else{const ve=Fy(V.getValueStrFromSections(n.sections,be));let De=-1,$e=-1;for(let gt=0;gtvt.end)return;const Kt=fe.length-ve.length+vt.end-Fy(vt.endSeparator||"").length;xe=fe.slice(vt.start+Fy(vt.startSeparator||"").length,Kt)}if(xe.length===0){Iht()?u(We):(K(),s());return}J({keyPressed:xe,sectionIndex:r.startIndex})}),Pe=on(le=>{switch(k==null||k(le),!0){case(le.key==="a"&&(le.ctrlKey||le.metaKey)):{le.preventDefault(),i("all");break}case le.key==="ArrowRight":{if(le.preventDefault(),r==null)i(ee.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const he=ee.neighbors[r.startIndex].rightIndex;he!==null&&i(he)}break}case le.key==="ArrowLeft":{if(le.preventDefault(),r==null)i(ee.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const he=ee.neighbors[r.startIndex].leftIndex;he!==null&&i(he)}break}case le.key==="Delete":{if(le.preventDefault(),S)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():s(),K();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(le.key):{if(le.preventDefault(),S||r==null)break;const he=n.sections[r.startIndex],je=V.getActiveDateManager(t,n,he),Ze=xht(t,h,he,le.key,c,je.date,{minutesStep:w});o({activeSection:he,newSectionValue:Ze,shouldGoToNextSection:!1});break}}});la(()=>{if(!X.current)return;if(r==null){X.current.scrollLeft&&(X.current.scrollLeft=0);return}const le=n.sections[r.startIndex],he=n.sections[r.endIndex];let je=le.startInInput,Ze=he.endInInput;if(r.shouldSelectBoundarySelectors&&(je-=le.startSeparator.length,Ze+=he.endSeparator.length),je!==X.current.selectionStart||Ze!==X.current.selectionEnd){const We=X.current.scrollTop;X.current===l5(document)&&X.current.setSelectionRange(je,Ze),X.current.scrollTop=We}});const tt=O1e(M({},b,{value:n.value,timezone:h}),Q,Z.isSameError,Z.defaultErrorState),Ve=N.useMemo(()=>B!==void 0?B:Z.hasError(tt),[Z,tt,B]);N.useEffect(()=>{!Ve&&!r&&K()},[n.referenceValue,r,Ve]),N.useEffect(()=>(X.current&&X.current===document.activeElement&&i("all"),()=>window.clearTimeout(z.current)),[]),N.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(K(),s())},[n.tempValueStrAndroid]);const Xe=N.useMemo(()=>{var le;return(le=n.tempValueStrAndroid)!=null?le:V.getValueStrFromSections(n.sections,be)},[n.sections,V,n.tempValueStrAndroid,be]),et=N.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),dt=X.current&&X.current===l5(document),At=Z.areValuesEqual(t,n.value,Z.emptyValue),Je=!dt&&At;N.useImperativeHandle(E,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var le,he;const je=(le=X.current.selectionStart)!=null?le:0,Ze=(he=X.current.selectionEnd)!=null?he:0;if(je===0&&Ze===0)return null;const We=je<=n.sections[0].startInInput?1:n.sections.findIndex(fe=>fe.startInInput-fe.startSeparator.length>je);return We===-1?n.sections.length-1:We-1},setSelectedSections:le=>i(le)}));const pe=on((le,...he)=>{var je;le.preventDefault(),F==null||F(le,...he),a(),X==null||(je=X.current)==null||je.focus(),i(0)});return M({placeholder:f,autoComplete:"off",disabled:!!W},H,{value:Je?"":Xe,inputMode:et,readOnly:S,onClick:Oe,onFocus:_e,onBlur:Ie,onPaste:qe,onChange:st,onKeyDown:Pe,onMouseUp:ie,onClear:pe,error:Ve,ref:te,clearable:!!(L&&!At&&!S&&!W)})},Npt=({open:e,onOpen:t,onClose:n})=>{const r=N.useRef(typeof e=="boolean").current,[i,a]=N.useState(!1);N.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const s=N.useCallback(o=>{r||a(o),o&&t&&t(),!o&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:s}},Ppt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},Mpt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:a}=e,s=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Lpt=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},$pt=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:a,onChange:s,value:o,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:f,timezone:h}=e,{current:g}=N.useRef(l),{current:b}=N.useRef(o!==void 0),S=yr(),E=Pd(),[w,x]=ws({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:k,setIsOpen:C}=Npt(e),[R,A]=N.useState(()=>{let _e;return o!==void 0?_e=o:g!==void 0?_e=g:_e=t.emptyValue,{draft:_e,lastPublishedValue:_e,lastCommittedValue:_e,lastControlledValue:o,hasBeenModifiedSinceMount:!1}}),{timezone:D,handleValueChange:B}=PW({timezone:h,value:o,defaultValue:g,onChange:s,valueManager:t});O1e(M({},e,{value:R.draft,timezone:D}),i,t.isSameError,t.defaultErrorState);const L=on(_e=>{const Ie={action:_e,dateState:R,hasChanged:tt=>!t.areValuesEqual(S,_e.value,tt),isControlled:b,closeOnSelect:u},qe=Ppt(Ie),st=Mpt(Ie),Pe=Lpt(Ie);if(A(tt=>M({},tt,{draft:_e.value,lastPublishedValue:qe?_e.value:tt.lastPublishedValue,lastCommittedValue:st?_e.value:tt.lastCommittedValue,hasBeenModifiedSinceMount:!0})),qe){const Ve={validationError:_e.name==="setValueFromField"?_e.context.validationError:i({adapter:E,value:_e.value,props:M({},e,{value:_e.value,timezone:D})})};_e.name==="setValueFromShortcut"&&_e.shortcut!=null&&(Ve.shortcut=_e.shortcut),B(_e.value,Ve)}st&&a&&a(_e.value),Pe&&C(!1)});if(o!==void 0&&(R.lastControlledValue===void 0||!t.areValuesEqual(S,R.lastControlledValue,o))){const _e=t.areValuesEqual(S,R.draft,o);A(Ie=>M({},Ie,{lastControlledValue:o},_e?{}:{lastCommittedValue:o,lastPublishedValue:o,draft:o,hasBeenModifiedSinceMount:!0}))}const F=on(()=>{L({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),W=on(()=>{L({value:R.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),V=on(()=>{L({value:R.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),Z=on(()=>{L({value:R.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),Q=on(()=>{L({value:t.getTodayValue(S,D,n),name:"setValueFromAction",pickerAction:"today"})}),H=on(()=>C(!0)),J=on(()=>C(!1)),K=on((_e,Ie="partial")=>L({name:"setValueFromView",value:_e,selectionState:Ie})),X=on((_e,Ie,qe)=>L({name:"setValueFromShortcut",value:_e,changeImportance:Ie??"accept",shortcut:qe})),te=on((_e,Ie)=>L({name:"setValueFromField",value:_e,context:Ie})),z=on(_e=>{x(_e),f==null||f(_e)}),Te={onClear:F,onAccept:W,onDismiss:V,onCancel:Z,onSetToday:Q,onOpen:H,onClose:J},be={value:R.draft,onChange:te,selectedSections:w,onSelectedSectionsChange:z},ee=N.useMemo(()=>t.cleanValue(S,R.draft),[S,t,R.draft]),ye={value:ee,onChange:K,onClose:J,open:k,onSelectedSectionsChange:z},ie=M({},Te,{value:ee,onChange:K,onSelectShortcut:X,isValid:_e=>{const Ie=i({adapter:E,value:_e,props:M({},e,{value:_e,timezone:D})});return!t.hasError(Ie)}});return{open:k,fieldProps:be,viewProps:ye,layoutProps:ie,actions:Te}};function XT({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:a,focusedView:s,onFocusedViewChange:o}){var l,u;const c=N.useRef(n),f=N.useRef(i),h=N.useRef(i.includes(n)?n:i[0]),[g,b]=ws({name:"useViews",state:"view",controlled:r,default:h.current}),S=N.useRef(a?g:null),[E,w]=ws({name:"useViews",state:"focusedView",controlled:s,default:S.current});N.useEffect(()=>{(c.current&&c.current!==n||f.current&&f.current.some(L=>!i.includes(L)))&&(b(i.includes(n)?n:i[0]),f.current=i,c.current=n)},[n,b,g,i]);const x=i.indexOf(g),k=(l=i[x-1])!=null?l:null,C=(u=i[x+1])!=null?u:null,R=on((L,F)=>{w(F?L:W=>L===W?null:W),o==null||o(L,F)}),A=on(L=>{R(L,!0),L!==g&&(b(L),t&&t(L))}),D=on(()=>{C&&A(C)}),B=on((L,F,W)=>{const V=F==="finish",Z=W?i.indexOf(W){const{onChange:a,open:s,onSelectedSectionsChange:o,onClose:l}=t,{views:u,openTo:c,onViewChange:f,disableOpenPicker:h,viewRenderers:g,timezone:b}=e,S=at(e,Fpt),{view:E,setView:w,defaultView:x,focusedView:k,setFocusedView:C,setValueAndGoToNextView:R}=XT({view:void 0,views:u,openTo:c,onChange:a,onViewChange:f,autoFocus:i}),{hasUIView:A,viewModeLookup:D}=N.useMemo(()=>u.reduce((Q,H)=>{let J;return h?J="field":g[H]!=null?J="UI":J="field",Q.viewModeLookup[H]=J,J==="UI"&&(Q.hasUIView=!0),Q},{hasUIView:!1,viewModeLookup:{}}),[h,g,u]),B=N.useMemo(()=>u.reduce((Q,H)=>g[H]!=null&&cO(H)?Q+1:Q,0),[g,u]),L=D[E],F=on(()=>L==="UI"),[W,V]=N.useState(L==="UI"?E:null);return W!==E&&D[E]==="UI"&&V(E),la(()=>{L==="field"&&s&&(l(),setTimeout(()=>{r==null||r.current.focus(),o(E)}))},[E]),la(()=>{if(!s)return;let Q=E;L==="field"&&W!=null&&(Q=W),Q!==x&&D[Q]==="UI"&&D[x]==="UI"&&(Q=x),Q!==E&&w(Q),C(Q,!0)},[s]),{hasUIView:A,shouldRestoreFocus:F,layoutProps:{views:u,view:W,onViewChange:w},renderCurrentView:()=>{if(W==null)return null;const Q=g[W];return Q==null?null:Q(M({},S,n,t,{views:u,timezone:b,onChange:R,view:W,onViewChange:w,focusedView:k,onFocusedViewChange:C,showViewSwitcher:B>1,timeViewsCount:B}))}}};function ire(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Upt=(e,t)=>{const[n,r]=N.useState(ire);return la(()=>{const a=()=>{r(ire())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),py(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},zpt=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,a=Upt(n.views,i);return{layoutProps:M({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},jpt=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};jpt(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const S1e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:a,validator:s,autoFocusView:o})=>{const l=$pt({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Bpt({props:e,inputRef:i,additionalViewProps:a,autoFocusView:o,propsFromPickerValue:l.viewProps}),c=zpt({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function E1e(e){return Bt("MuiPickersLayout",e)}const l7=Ut("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),Hpt=["onAccept","onClear","onCancel","onSetToday","actions"];function Vpt(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:a}=e,s=at(e,Hpt),o=cs();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(u=>{switch(u){case"clear":return I.jsx(Ws,{onClick:n,children:o.clearButtonLabel},u);case"cancel":return I.jsx(Ws,{onClick:r,children:o.cancelButtonLabel},u);case"accept":return I.jsx(Ws,{onClick:t,children:o.okButtonLabel},u);case"today":return I.jsx(Ws,{onClick:i,children:o.todayButtonLabel},u);default:return null}});return I.jsx(W6e,M({},s,{children:l}))}const Wpt=["items","changeImportance","isLandscape","onChange","isValid"],Qpt=["getValue"];function qpt(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,a=at(e,Wpt);if(t==null||t.length===0)return null;const s=t.map(o=>{let{getValue:l}=o,u=at(o,Qpt);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return I.jsx(ole,M({dense:!0,sx:[{maxHeight:VI,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(o=>I.jsx(A8,{children:I.jsx(cF,M({},o))},o.label))}))}function Gpt(e){return e.view!==null}const Ypt=e=>{const{classes:t,isLandscape:n}=e;return Lt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},E1e,t)},Zpt=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:a,onCancel:s,onSetToday:o,view:l,views:u,onViewChange:c,value:f,onChange:h,onSelectShortcut:g,isValid:b,isLandscape:S,disabled:E,readOnly:w,children:x,components:k,componentsProps:C,slots:R,slotProps:A}=e,D=R??ZT(k),B=A??C,L=Ypt(e),F=(t=D==null?void 0:D.actionBar)!=null?t:Vpt,W=cr({elementType:F,externalSlotProps:B==null?void 0:B.actionBar,additionalProps:{onAccept:i,onClear:a,onCancel:s,onSetToday:o,actions:r==="desktop"?[]:["cancel","accept"],className:L.actionBar},ownerState:M({},e,{wrapperVariant:r})}),V=I.jsx(F,M({},W)),Z=D==null?void 0:D.toolbar,Q=cr({elementType:Z,externalSlotProps:B==null?void 0:B.toolbar,additionalProps:{isLandscape:S,onChange:h,value:f,view:l,onViewChange:c,views:u,disabled:E,readOnly:w,className:L.toolbar},ownerState:M({},e,{wrapperVariant:r})}),H=Gpt(Q)&&Z?I.jsx(Z,M({},Q)):null,J=x,K=D==null?void 0:D.tabs,X=l&&K?I.jsx(K,M({view:l,onViewChange:c,className:L.tabs},B==null?void 0:B.tabs)):null,te=(n=D==null?void 0:D.shortcuts)!=null?n:qpt,z=cr({elementType:te,externalSlotProps:B==null?void 0:B.shortcuts,additionalProps:{isValid:b,isLandscape:S,onChange:g,className:L.shortcuts},ownerState:{isValid:b,isLandscape:S,onChange:g,className:L.shortcuts,wrapperVariant:r}}),Te=l&&te?I.jsx(te,M({},z)):null;return{toolbar:H,content:J,tabs:X,actionBar:V,shortcuts:Te}},Xpt=e=>{const{isLandscape:t,classes:n}=e;return Lt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},E1e,n)},w1e=Re("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${l7.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${l7.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${l7.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));w1e.propTypes={as:Y.elementType,ownerState:Y.shape({isLandscape:Y.bool.isRequired}).isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};const Kpt=Re("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),x1e=function(t){const n=_t({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:s,shortcuts:o}=Zpt(n),{sx:l,className:u,isLandscape:c,ref:f,wrapperVariant:h}=n,g=n,b=Xpt(g);return I.jsxs(w1e,{ref:f,sx:l,className:ft(u,b.root),ownerState:g,children:[c?o:r,c?r:o,I.jsx(Kpt,{className:b.contentWrapper,children:h==="desktop"?I.jsxs(N.Fragment,{children:[i,a]}):I.jsxs(N.Fragment,{children:[a,i]})}),s]})};function Jpt(e,{disableFuture:t,maxDate:n,timezone:r}){const i=yr();return N.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isBefore(a,n)?a:n);return!i.isAfter(s,e)},[t,n,e,i,r])}function emt(e,{disablePast:t,minDate:n,timezone:r}){const i=yr();return N.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isAfter(a,n)?a:n);return!i.isBefore(s,e)},[t,n,e,i,r])}function WI(e,t,n,r){const i=yr(),a=vht(e,i),s=N.useCallback(o=>{const l=e==null?null:Oht(e,o,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:a,handleMeridiemChange:s}}const n9=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],r9=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],T1e=["minDateTime","maxDateTime"],tmt=[...n9,...r9,...T1e],XO=e=>tmt.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),nmt=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],LW=(e,t)=>{const n=M({},e),r={},i=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return nmt.forEach(i),t==="date"?n9.forEach(i):t==="time"?r9.forEach(i):t==="date-time"&&(n9.forEach(i),r9.forEach(i),T1e.forEach(i)),{forwardedProps:n,internalProps:r}},$1=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:o,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=Eo(n.utils,e.minDate,n.defaultDates.minDate),f=Eo(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(o&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},KT=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:a,shouldDisableClock:s,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c,timezone:f}=n,h=e.utils.dateWithTimezone(void 0,f),g=YT(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&g(r,t)):return"minTime";case!!(i&&g(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,h)):return"disableFuture";case!!(u&&e.utils.isBefore(t,h)):return"disablePast";case!!(o&&o(t,"hours")):return"shouldDisableTime-hours";case!!(o&&o(t,"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(t,"seconds")):return"shouldDisableTime-seconds";case!!(s&&s(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(s&&s(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(s&&s(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},QI=({props:e,value:t,adapter:n})=>{const r=$1({adapter:n,value:t,props:e});return r!==null?r:KT({adapter:n,value:t,props:e})};function rmt(e){return Bt("MuiPickersDay",e)}const pg=Ut("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),imt=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],amt=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:o,classes:l}=e,u=s&&!o;return Lt({root:["root",t&&!u&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",s&&o&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},rmt,l)},k1e=({theme:e,ownerState:t})=>M({},e.typography.caption,{width:yx,height:yx,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${pg.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${pg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${pg.disabled}:not(.${pg.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${pg.disabled}&.${pg.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${jI}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${pg.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),C1e=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},smt=Re(Tu,{name:"MuiPickersDay",slot:"Root",overridesResolver:C1e})(k1e),omt=Re("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:C1e})(({theme:e,ownerState:t})=>M({},k1e({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),zE=()=>{},lmt=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:a,day:s,disabled:o=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:f,onDaySelect:h,onFocus:g=zE,onBlur:b=zE,onKeyDown:S=zE,onMouseDown:E=zE,onMouseEnter:w=zE,outsideCurrentMonth:x,selected:k=!1,showDaysOutsideCurrentMonth:C=!1,children:R,today:A=!1}=r,D=at(r,imt),B=M({},r,{autoFocus:i,disabled:o,disableHighlightToday:l,disableMargin:u,selected:k,showDaysOutsideCurrentMonth:C,today:A}),L=amt(B),F=yr(),W=N.useRef(null),V=Jn(W,n);la(()=>{i&&!o&&!c&&!x&&W.current.focus()},[i,o,c,x]);const Z=H=>{E(H),x&&H.preventDefault()},Q=H=>{o||h(s),x&&H.currentTarget.focus(),f&&f(H)};return x&&!C?I.jsx(omt,{className:ft(L.root,L.hiddenDaySpacingFiller,a),ownerState:B,role:D.role}):I.jsx(smt,M({className:ft(L.root,a),ref:V,centerRipple:!0,disabled:o,tabIndex:k?0:-1,onKeyDown:H=>S(H,s),onFocus:H=>g(H,s),onBlur:H=>b(H,s),onMouseEnter:H=>w(H,s),onClick:Q,onMouseDown:Z},D,{ownerState:B,children:R||F.format(s,"dayOfMonth")}))}),umt=N.memo(lmt),cmt=e=>Bt("MuiPickersSlideTransition",e),Zu=Ut("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),dmt=["children","className","reduceAnimations","slideDirection","transKey","classes"],fmt=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Lt(r,cmt,t)},hmt=Re(tF,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Zu["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Zu["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Zu.slideEnterActive}`]:t.slideEnterActive},{[`.${Zu.slideExit}`]:t.slideExit},{[`.${Zu["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Zu["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Zu["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Zu["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Zu.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Zu.slideExit}`]:{transform:"translate(0%)"},[`& .${Zu["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Zu["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function pmt(e){const t=_t({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=at(t,dmt),o=fmt(t),l=Ni();if(i)return I.jsx("div",{className:ft(o.root,r),children:n});const u={exit:o.exit,enterActive:o.enterActive,enter:o.enter,exitActive:o.exitActive};return I.jsx(hmt,{className:ft(o.root,r),childFactory:c=>N.cloneElement(c,{classNames:u}),role:"presentation",children:I.jsx(j4e,M({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),a)})}const A1e=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o})=>{const l=Pd();return N.useCallback(u=>$1({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o}})!==null,[l,e,t,n,r,i,a,s,o])},mmt=e=>Bt("MuiDayCalendar",e);Ut("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const gmt=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],bmt=["ownerState"],ymt=e=>{const{classes:t}=e;return Lt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},mmt,t)},_1e=(yx+jI*2)*6,vmt=Re("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Omt=Re("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Smt=Re(xr,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Emt=Re(xr,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),wmt=Re(xr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>M({},e.typography.caption,{width:yx,height:yx,padding:0,margin:`0 ${jI}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),xmt=Re("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:_1e}),Tmt=Re(pmt,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:_1e}),kmt=Re("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Cmt=Re("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${jI}px 0`,display:"flex",justifyContent:"center"});function Amt(e){var t,n,r;let{parentProps:i,day:a,focusableDay:s,selectedDays:o,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,f=at(e,gmt);const{disabled:h,disableHighlightToday:g,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:S,components:E,componentsProps:w,slots:x,slotProps:k,timezone:C}=i,R=yr(),A=D0(C),D=s!==null&&R.isSameDay(a,s),B=o.some(K=>R.isSameDay(K,a)),L=R.isSameDay(a,A),F=(t=(n=x==null?void 0:x.day)!=null?n:E==null?void 0:E.Day)!=null?t:umt,W=cr({elementType:F,externalSlotProps:(r=k==null?void 0:k.day)!=null?r:w==null?void 0:w.day,additionalProps:M({disableHighlightToday:g,showDaysOutsideCurrentMonth:S,role:"gridcell",isAnimating:b,"data-timestamp":R.toJsDate(a).valueOf()},f),ownerState:M({},i,{day:a,selected:B})}),V=at(W,bmt),Z=N.useMemo(()=>h||l(a),[h,l,a]),Q=N.useMemo(()=>R.getMonth(a)!==u,[R,a,u]),H=N.useMemo(()=>{const K=R.startOfMonth(R.setMonth(a,u));return S?R.isSameDay(a,R.startOfWeek(K)):R.isSameDay(a,K)},[u,a,S,R]),J=N.useMemo(()=>{const K=R.endOfMonth(R.setMonth(a,u));return S?R.isSameDay(a,R.endOfWeek(K)):R.isSameDay(a,K)},[u,a,S,R]);return I.jsx(F,M({},V,{day:a,disabled:Z,autoFocus:c&&D,today:L,outsideCurrentMonth:Q,isFirstVisibleCell:H,isLastVisibleCell:J,selected:B,tabIndex:D?0:-1,"aria-selected":B,"aria-current":L?"date":void 0}))}function _mt(e){const t=_t({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:a,focusedDay:s,loading:o,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:f,renderLoading:h=()=>I.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:b,disablePast:S,disableFuture:E,minDate:w,maxDate:x,shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:R,dayOfWeekFormatter:A,hasFocus:D,onFocusedViewChange:B,gridLabelId:L,displayWeekNumber:F,fixedWeekNumber:W,autoFocus:V,timezone:Z}=t,Q=D0(Z),H=yr(),J=ymt(t),X=Ni().direction==="rtl",te=A||((Je,pe)=>H.format(pe,"weekdayShort").charAt(0).toUpperCase()),z=A1e({shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:R,minDate:w,maxDate:x,disablePast:S,disableFuture:E,timezone:Z}),Te=cs(),[be,ee]=ws({name:"DayCalendar",state:"hasFocus",controlled:D,default:V??!1}),[ye,Oe]=N.useState(()=>s||Q),ie=on(Je=>{c||l(Je)}),_e=Je=>{z(Je)||(n(Je),Oe(Je),B==null||B(!0),ee(!0))},Ie=on((Je,pe)=>{switch(Je.key){case"ArrowUp":_e(H.addDays(pe,-7)),Je.preventDefault();break;case"ArrowDown":_e(H.addDays(pe,7)),Je.preventDefault();break;case"ArrowLeft":{const le=H.addDays(pe,X?1:-1),he=H.addMonths(pe,X?1:-1),je=J2({utils:H,date:le,minDate:X?le:H.startOfMonth(he),maxDate:X?H.endOfMonth(he):le,isDateDisabled:z,timezone:Z});_e(je||le),Je.preventDefault();break}case"ArrowRight":{const le=H.addDays(pe,X?-1:1),he=H.addMonths(pe,X?-1:1),je=J2({utils:H,date:le,minDate:X?H.startOfMonth(he):le,maxDate:X?le:H.endOfMonth(he),isDateDisabled:z,timezone:Z});_e(je||le),Je.preventDefault();break}case"Home":_e(H.startOfWeek(pe)),Je.preventDefault();break;case"End":_e(H.endOfWeek(pe)),Je.preventDefault();break;case"PageUp":_e(H.addMonths(pe,1)),Je.preventDefault();break;case"PageDown":_e(H.addMonths(pe,-1)),Je.preventDefault();break}}),qe=on((Je,pe)=>_e(pe)),st=on((Je,pe)=>{be&&H.isSameDay(ye,pe)&&(B==null||B(!1))}),Pe=H.getMonth(i),tt=N.useMemo(()=>a.filter(Je=>!!Je).map(Je=>H.startOfDay(Je)),[H,a]),Ve=Pe,Xe=N.useMemo(()=>N.createRef(),[Ve]),et=H.startOfWeek(Q),dt=N.useMemo(()=>{const Je=H.startOfMonth(i),pe=H.endOfMonth(i);return z(ye)||H.isAfterDay(ye,pe)||H.isBeforeDay(ye,Je)?J2({utils:H,date:ye,minDate:Je,maxDate:pe,disablePast:S,disableFuture:E,isDateDisabled:z,timezone:Z}):ye},[i,E,S,ye,z,H,Z]),At=N.useMemo(()=>{const Je=H.setTimezone(i,Z),pe=H.getWeekArray(Je);let le=H.addMonths(Je,1);for(;W&&pe.length{pe.length{var le;const he=H.format(Je,"weekdayShort");return I.jsx(Smt,{variant:"caption",role:"columnheader","aria-label":H.format(H.addDays(et,pe),"weekday"),className:J.weekDayLabel,children:(le=te==null?void 0:te(he,Je))!=null?le:he},he+pe.toString())})]}),o?I.jsx(xmt,{className:J.loadingContainer,children:h()}):I.jsx(Tmt,M({transKey:Ve,onExited:u,reduceAnimations:f,slideDirection:g,className:ft(r,J.slideTransition)},b,{nodeRef:Xe,children:I.jsx(kmt,{ref:Xe,role:"rowgroup",className:J.monthContainer,children:At.map((Je,pe)=>I.jsxs(Cmt,{role:"row",className:J.weekContainer,"aria-rowindex":pe+1,children:[F&&I.jsx(wmt,{className:J.weekNumber,role:"rowheader","aria-label":Te.calendarWeekNumberAriaLabelText(H.getWeekNumber(Je[0])),children:Te.calendarWeekNumberText(H.getWeekNumber(Je[0]))}),Je.map((le,he)=>I.jsx(Amt,{parentProps:t,day:le,selectedDays:tt,focusableDay:dt,onKeyDown:Ie,onFocus:qe,onBlur:st,onDaySelect:ie,isDateDisabled:z,currentMonthNumber:Pe,isViewFocused:be,"aria-colindex":he+1},le.toString()))]},`week-${Je[0]}`))})}))]})}const Rmt=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return M({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return M({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const a=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return M({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:a&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Imt=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:a,disableSwitchToMonthOnDayFocus:s=!1,maxDate:o,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:f,timezone:h}=e,g=D0(h),b=yr(),S=N.useRef(Rmt(!!c,s,b)).current,E=N.useMemo(()=>{let B=null;return n?B=n:r&&(B=b.startOfMonth(r)),us.getInitialReferenceValue({value:t,utils:b,timezone:h,props:e,referenceDate:B,granularity:od.day})},[]),[w,x]=N.useReducer(S,{isMonthSwitchingAnimating:!1,focusedDay:b.isValid(t)?t:g,currentMonth:b.startOfMonth(E),slideDirection:"left"}),k=N.useCallback(B=>{x(M({type:"changeMonth"},B)),u&&u(B.newMonth)},[u]),C=N.useCallback(B=>{const L=B;b.isSameMonth(L,w.currentMonth)||k({newMonth:b.startOfMonth(L),direction:b.isAfterDay(L,w.currentMonth)?"left":"right"})},[w.currentMonth,k,b]),R=A1e({shouldDisableDate:f,minDate:l,maxDate:o,disableFuture:i,disablePast:a,timezone:h}),A=N.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]),D=on((B,L)=>{R(B)||x({type:"changeFocusedDay",focusedDay:B,withoutMonthSwitchingAnimation:L})});return{referenceDate:E,calendarState:w,changeMonth:C,changeFocusedDay:D,isDateDisabled:R,onMonthSwitchingAnimationEnd:A,handleChangeMonth:k}},Dmt=["props","getOpenDialogAriaText"],Nmt=["ownerState"],Pmt=["ownerState"],$W=e=>{var t,n,r,i,a;let{props:s,getOpenDialogAriaText:o}=e,l=at(e,Dmt);const{slots:u,slotProps:c,className:f,sx:h,format:g,formatDensity:b,timezone:S,name:E,label:w,inputRef:x,readOnly:k,disabled:C,autoFocus:R,localeText:A,reduceAnimations:D}=s,B=yr(),L=N.useRef(null),F=N.useRef(null),W=Td(),V=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:Z,actions:Q,hasUIView:H,layoutProps:J,renderCurrentView:K,shouldRestoreFocus:X,fieldProps:te}=S1e(M({},l,{props:s,inputRef:L,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),z=(r=u.inputAdornment)!=null?r:Dw,Te=cr({elementType:z,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:s}),be=at(Te,Nmt),ee=(i=u.openPickerButton)!=null?i:wa,ye=cr({elementType:ee,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:C||k,onClick:Z?Q.onClose:Q.onOpen,"aria-label":o(te.value,B),edge:be.position},ownerState:s}),Oe=at(ye,Pmt),ie=u.openPickerIcon,_e=u.field,Ie=cr({elementType:_e,externalSlotProps:c==null?void 0:c.field,additionalProps:M({},te,V&&{id:W},{readOnly:k,disabled:C,className:f,sx:h,format:g,formatDensity:b,timezone:S,label:w,name:E,autoFocus:R&&!s.open,focused:Z?!0:void 0}),ownerState:s});H&&(Ie.InputProps=M({},Ie.InputProps,{ref:F,[`${be.position}Adornment`]:I.jsx(z,M({},be,{children:I.jsx(ee,M({},Oe,{children:I.jsx(ie,M({},c==null?void 0:c.openPickerIcon))}))}))}));const qe=M({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},Ie.slots),st=(a=u.layout)!=null?a:x1e,Pe=Jn(L,Ie.inputRef,x);let tt=W;V&&(w?tt=`${W}-label`:tt=void 0);const Ve=M({},c,{toolbar:M({},c==null?void 0:c.toolbar,{titleId:W}),popper:M({"aria-labelledby":tt},c==null?void 0:c.popper)});return{renderPicker:()=>I.jsxs(f1e,{localeText:A,children:[I.jsx(_e,M({},Ie,{slots:qe,slotProps:Ve,inputRef:Pe})),I.jsx(Spt,M({role:"dialog",placement:"bottom-start",anchorEl:F.current},Q,{open:Z,slots:u,slotProps:Ve,shouldRestoreFocus:X,reduceAnimations:D,children:I.jsx(st,M({},J,Ve==null?void 0:Ve.layout,{slots:u,slotProps:Ve,children:K()}))}))]})}},Mmt=e=>{var t,n,r;const i=yr(),a=L1();return M({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:i.formats.keyboardDate,minDate:Eo(i,e.minDate,a.minDate),maxDate:Eo(i,e.maxDate,a.maxDate)})},Lmt=({props:e,inputRef:t})=>{const n=Mmt(e),{forwardedProps:r,internalProps:i}=LW(n,"date");return MW({inputRef:t,forwardedProps:r,internalProps:i,valueManager:us,fieldValueManager:RW,validator:$1,valueType:"date"})},$mt=["ownerState"],FW=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:a,components:s,componentsProps:o})=>{var l,u,c,f,h,g;const b=cs(),S=(l=(u=i==null?void 0:i.clearButton)!=null?u:s==null?void 0:s.ClearButton)!=null?l:wa,E=cr({elementType:S,externalSlotProps:(c=a==null?void 0:a.clearButton)!=null?c:o==null?void 0:o.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),w=at(E,$mt),x=(f=(h=i==null?void 0:i.clearIcon)!=null?h:s==null?void 0:s.ClearIcon)!=null?f:Kht,k=cr({elementType:x,externalSlotProps:(g=a==null?void 0:a.clearIcon)!=null?g:o==null?void 0:o.clearIcon,ownerState:{}}),C=M({},n,{endAdornment:I.jsxs(N.Fragment,{children:[e&&I.jsx(Dw,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:I.jsx(S,M({},w,{onClick:r,children:I.jsx(x,M({fontSize:"small"},k))}))}),n==null?void 0:n.endAdornment]})}),R=M({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:R}},Fmt=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Bmt=["inputRef"],Umt=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],R1e=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiDateField"}),{components:o,componentsProps:l,slots:u,slotProps:c,InputProps:f,inputProps:h}=s,g=at(s,Fmt),b=s,S=(r=(i=u==null?void 0:u.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:E0,E=cr({elementType:S,externalSlotProps:(a=c==null?void 0:c.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:g,ownerState:b}),{inputRef:w}=E,x=at(E,Bmt);x.inputProps=M({},h,x.inputProps),x.InputProps=M({},f,x.InputProps);const k=Lmt({props:x,inputRef:w}),{ref:C,onPaste:R,onKeyDown:A,inputMode:D,readOnly:B,clearable:L,onClear:F}=k,W=at(k,Umt),{InputProps:V,fieldProps:Z}=FW({onClear:F,clearable:L,fieldProps:W,InputProps:W.InputProps,slots:u,slotProps:c,components:o,componentsProps:l});return I.jsx(S,M({ref:n},Z,{InputProps:M({},V,{readOnly:B}),inputProps:M({},W.inputProps,{inputMode:D,onPaste:R,onKeyDown:A,ref:C})}))}),zmt=e=>Bt("MuiPickersFadeTransitionGroup",e);Ut("MuiPickersFadeTransitionGroup",["root"]);const jmt=e=>{const{classes:t}=e;return Lt({root:["root"]},zmt,t)},Hmt=Re(tF,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function I1e(e){const t=_t({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=jmt(t),o=Ni();return i?n:I.jsx(Hmt,{className:ft(s.root,r),children:I.jsx(tp,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:o.transitions.duration.enteringScreen,enter:o.transitions.duration.enteringScreen,exit:0},children:n},a)})}function Vmt(e){return Bt("MuiPickersMonth",e)}const HA=Ut("MuiPickersMonth",["root","monthButton","disabled","selected"]),Wmt=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],Qmt=e=>{const{disabled:t,selected:n,classes:r}=e;return Lt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Vmt,r)},qmt=Re("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Gmt=Re("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${HA.disabled}`]:t.disabled},{[`&.${HA.selected}`]:t.selected}]})(({theme:e})=>M({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${HA.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${HA.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ymt=N.memo(function(t){const n=_t({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:a,selected:s,value:o,tabIndex:l,onClick:u,onKeyDown:c,onFocus:f,onBlur:h,"aria-current":g,"aria-label":b}=n,S=at(n,Wmt),E=N.useRef(null),w=Qmt(n);return la(()=>{if(r){var x;(x=E.current)==null||x.focus()}},[r]),I.jsx(qmt,M({className:w.root,ownerState:n},S,{children:I.jsx(Gmt,{ref:E,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":g,"aria-checked":s,"aria-label":b,onClick:x=>u(x,o),onKeyDown:x=>c(x,o),onFocus:x=>f(x,o),onBlur:x=>h(x,o),className:w.monthButton,ownerState:n,children:i})}))});function Zmt(e){return Bt("MuiMonthCalendar",e)}Ut("MuiMonthCalendar",["root"]);const Xmt=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],Kmt=e=>{const{classes:t}=e;return Lt({root:["root"]},Zmt,t)};function Jmt(e,t){const n=yr(),r=L1(),i=_t({props:e,name:t});return M({disableFuture:!1,disablePast:!1},i,{minDate:Eo(n,i.minDate,r.minDate),maxDate:Eo(n,i.maxDate,r.maxDate)})}const e0t=Re("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:HI,boxSizing:"border-box"}),t0t=N.forwardRef(function(t,n){const r=Jmt(t,"MuiMonthCalendar"),{className:i,value:a,defaultValue:s,referenceDate:o,disabled:l,disableFuture:u,disablePast:c,maxDate:f,minDate:h,onChange:g,shouldDisableMonth:b,readOnly:S,disableHighlightToday:E,autoFocus:w=!1,onMonthFocus:x,hasFocus:k,onFocusedViewChange:C,monthsPerRow:R=3,timezone:A,gridLabelId:D}=r,B=at(r,Xmt),{value:L,handleValueChange:F,timezone:W}=ZO({name:"MonthCalendar",timezone:A,value:a,defaultValue:s,onChange:g,valueManager:us}),V=D0(W),Z=EO(),Q=yr(),H=N.useMemo(()=>us.getInitialReferenceValue({value:L,utils:Q,props:r,timezone:W,referenceDate:o,granularity:od.month}),[]),J=r,K=Kmt(J),X=N.useMemo(()=>Q.getMonth(V),[Q,V]),te=N.useMemo(()=>L!=null?Q.getMonth(L):E?null:Q.getMonth(H),[L,Q,E,H]),[z,Te]=N.useState(()=>te||X),[be,ee]=ws({name:"MonthCalendar",state:"hasFocus",controlled:k,default:w??!1}),ye=on(Pe=>{ee(Pe),C&&C(Pe)}),Oe=N.useCallback(Pe=>{const tt=Q.startOfMonth(c&&Q.isAfter(V,h)?V:h),Ve=Q.startOfMonth(u&&Q.isBefore(V,f)?V:f),Xe=Q.startOfMonth(Pe);return Q.isBefore(Xe,tt)||Q.isAfter(Xe,Ve)?!0:b?b(Xe):!1},[u,c,f,h,V,b,Q]),ie=on((Pe,tt)=>{if(S)return;const Ve=Q.setMonth(L??H,tt);F(Ve)}),_e=on(Pe=>{Oe(Q.setMonth(L??H,Pe))||(Te(Pe),ye(!0),x&&x(Pe))});N.useEffect(()=>{Te(Pe=>te!==null&&Pe!==te?te:Pe)},[te]);const Ie=on((Pe,tt)=>{switch(Pe.key){case"ArrowUp":_e((12+tt-3)%12),Pe.preventDefault();break;case"ArrowDown":_e((12+tt+3)%12),Pe.preventDefault();break;case"ArrowLeft":_e((12+tt+(Z.direction==="ltr"?-1:1))%12),Pe.preventDefault();break;case"ArrowRight":_e((12+tt+(Z.direction==="ltr"?1:-1))%12),Pe.preventDefault();break}}),qe=on((Pe,tt)=>{_e(tt)}),st=on((Pe,tt)=>{z===tt&&ye(!1)});return I.jsx(e0t,M({ref:n,className:ft(K.root,i),ownerState:J,role:"radiogroup","aria-labelledby":D},B,{children:CW(Q,L??H).map(Pe=>{const tt=Q.getMonth(Pe),Ve=Q.format(Pe,"monthShort"),Xe=Q.format(Pe,"month"),et=tt===te,dt=l||Oe(Pe);return I.jsx(Ymt,{selected:et,value:tt,onClick:ie,onKeyDown:Ie,autoFocus:be&&tt===z,disabled:dt,tabIndex:tt===z?0:-1,onFocus:qe,onBlur:st,"aria-current":X===tt?"date":void 0,"aria-label":Xe,monthsPerRow:R,children:Ve},Ve)})}))});function n0t(e){return Bt("MuiPickersYear",e)}const VA=Ut("MuiPickersYear",["root","yearButton","selected","disabled"]),r0t=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],i0t=e=>{const{disabled:t,selected:n,classes:r}=e;return Lt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},n0t,r)},a0t=Re("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),s0t=Re("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${VA.disabled}`]:t.disabled},{[`&.${VA.selected}`]:t.selected}]})(({theme:e})=>M({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${VA.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${VA.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),o0t=N.memo(function(t){const n=_t({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:a,disabled:s,selected:o,value:l,tabIndex:u,onClick:c,onKeyDown:f,onFocus:h,onBlur:g,"aria-current":b}=n,S=at(n,r0t),E=N.useRef(null),w=i0t(n);return N.useEffect(()=>{r&&E.current.focus()},[r]),I.jsx(a0t,M({className:ft(w.root,i),ownerState:n},S,{children:I.jsx(s0t,{ref:E,disabled:s,type:"button",role:"radio",tabIndex:s?-1:u,"aria-current":b,"aria-checked":o,onClick:x=>c(x,l),onKeyDown:x=>f(x,l),onFocus:x=>h(x,l),onBlur:x=>g(x,l),className:w.yearButton,ownerState:n,children:a})}))});function l0t(e){return Bt("MuiYearCalendar",e)}Ut("MuiYearCalendar",["root"]);const u0t=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],c0t=e=>{const{classes:t}=e;return Lt({root:["root"]},l0t,t)};function d0t(e,t){var n;const r=yr(),i=L1(),a=_t({props:e,name:t});return M({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Eo(r,a.minDate,i.minDate),maxDate:Eo(r,a.maxDate,i.maxDate)})}const f0t=Re("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:HI,maxHeight:spt,boxSizing:"border-box",position:"relative"}),h0t=N.forwardRef(function(t,n){const r=d0t(t,"MuiYearCalendar"),{autoFocus:i,className:a,value:s,defaultValue:o,referenceDate:l,disabled:u,disableFuture:c,disablePast:f,maxDate:h,minDate:g,onChange:b,readOnly:S,shouldDisableYear:E,disableHighlightToday:w,onYearFocus:x,hasFocus:k,onFocusedViewChange:C,yearsPerRow:R,timezone:A,gridLabelId:D}=r,B=at(r,u0t),{value:L,handleValueChange:F,timezone:W}=ZO({name:"YearCalendar",timezone:A,value:s,defaultValue:o,onChange:b,valueManager:us}),V=D0(W),Z=EO(),Q=yr(),H=N.useMemo(()=>us.getInitialReferenceValue({value:L,utils:Q,props:r,timezone:W,referenceDate:l,granularity:od.year}),[]),J=r,K=c0t(J),X=N.useMemo(()=>Q.getYear(V),[Q,V]),te=N.useMemo(()=>L!=null?Q.getYear(L):w?null:Q.getYear(H),[L,Q,w,H]),[z,Te]=N.useState(()=>te||X),[be,ee]=ws({name:"YearCalendar",state:"hasFocus",controlled:k,default:i??!1}),ye=on(Ve=>{ee(Ve),C&&C(Ve)}),Oe=N.useCallback(Ve=>{if(f&&Q.isBeforeYear(Ve,V)||c&&Q.isAfterYear(Ve,V)||g&&Q.isBeforeYear(Ve,g)||h&&Q.isAfterYear(Ve,h))return!0;if(!E)return!1;const Xe=Q.startOfYear(Ve);return E(Xe)},[c,f,h,g,V,E,Q]),ie=on((Ve,Xe)=>{if(S)return;const et=Q.setYear(L??H,Xe);F(et)}),_e=on(Ve=>{Oe(Q.setYear(L??H,Ve))||(Te(Ve),ye(!0),x==null||x(Ve))});N.useEffect(()=>{Te(Ve=>te!==null&&Ve!==te?te:Ve)},[te]);const Ie=on((Ve,Xe)=>{switch(Ve.key){case"ArrowUp":_e(Xe-R),Ve.preventDefault();break;case"ArrowDown":_e(Xe+R),Ve.preventDefault();break;case"ArrowLeft":_e(Xe+(Z.direction==="ltr"?-1:1)),Ve.preventDefault();break;case"ArrowRight":_e(Xe+(Z.direction==="ltr"?1:-1)),Ve.preventDefault();break}}),qe=on((Ve,Xe)=>{_e(Xe)}),st=on((Ve,Xe)=>{z===Xe&&ye(!1)}),Pe=N.useRef(null),tt=Jn(n,Pe);return N.useEffect(()=>{if(i||Pe.current===null)return;const Ve=Pe.current.querySelector('[tabindex="0"]');if(!Ve)return;const Xe=Ve.offsetHeight,et=Ve.offsetTop,dt=Pe.current.clientHeight,At=Pe.current.scrollTop,Je=et+Xe;Xe>dt||et{const Xe=Q.getYear(Ve),et=Xe===te,dt=u||Oe(Ve);return I.jsx(o0t,{selected:et,value:Xe,onClick:ie,onKeyDown:Ie,autoFocus:be&&Xe===z,disabled:dt,tabIndex:Xe===z?0:-1,onFocus:qe,onBlur:st,"aria-current":X===Xe?"date":void 0,yearsPerRow:R,children:Q.format(Ve,"year")},Q.format(Ve,"year"))})}))}),p0t=e=>Bt("MuiPickersCalendarHeader",e),m0t=Ut("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),g0t=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],b0t=["ownerState"],y0t=e=>{const{classes:t}=e;return Lt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},p0t,t)},v0t=Re("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),O0t=Re("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>M({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),S0t=Re("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),E0t=Re(wa,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>M({marginRight:"auto"},e.view==="year"&&{[`.${m0t.switchViewIcon}`]:{transform:"rotate(180deg)"}})),w0t=Re(Qht,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),x0t=N.forwardRef(function(t,n){var r,i,a,s;const o=cs(),l=yr(),u=_t({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:f,components:h,currentMonth:g,disabled:b,disableFuture:S,disablePast:E,maxDate:w,minDate:x,onMonthChange:k,onViewChange:C,view:R,reduceAnimations:A,views:D,labelId:B,className:L,timezone:F}=u,W=at(u,g0t),V=u,Z=y0t(u),Q=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:h==null?void 0:h.SwitchViewButton)!=null?r:E0t,H=cr({elementType:Q,externalSlotProps:f==null?void 0:f.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(R)},ownerState:V,className:Z.switchViewButton}),J=(a=(s=c==null?void 0:c.switchViewIcon)!=null?s:h==null?void 0:h.SwitchViewIcon)!=null?a:w0t,K=cr({elementType:J,externalSlotProps:f==null?void 0:f.switchViewIcon,ownerState:void 0,className:Z.switchViewIcon}),X=at(K,b0t),te=()=>k(l.addMonths(g,1),"left"),z=()=>k(l.addMonths(g,-1),"right"),Te=Jpt(g,{disableFuture:S,maxDate:w,timezone:F}),be=emt(g,{disablePast:E,minDate:x,timezone:F}),ee=()=>{if(!(D.length===1||!C||b))if(D.length===2)C(D.find(ye=>ye!==R)||D[0]);else{const ye=D.indexOf(R)!==0?0:1;C(D[ye])}};return D.length===1&&D[0]==="year"?null:I.jsxs(v0t,M({},W,{ownerState:V,className:ft(L,Z.root),ref:n,children:[I.jsxs(O0t,{role:"presentation",onClick:ee,ownerState:V,"aria-live":"polite",className:Z.labelContainer,children:[I.jsx(I1e,{reduceAnimations:A,transKey:l.format(g,"monthAndYear"),children:I.jsx(S0t,{id:B,ownerState:V,className:Z.label,children:l.format(g,"monthAndYear")})}),D.length>1&&!b&&I.jsx(Q,M({},H,{children:I.jsx(J,M({},X))}))]}),I.jsx(tp,{in:R==="day",children:I.jsx(b1e,{slots:c,slotProps:f,onGoToPrevious:z,isPreviousDisabled:be,previousLabel:o.previousMonth,onGoToNext:te,isNextDisabled:Te,nextLabel:o.nextMonth})})]}))}),qI=Re("div")({overflow:"hidden",width:HI,maxHeight:VI,display:"flex",flexDirection:"column",margin:"0 auto"}),T0t=e=>Bt("MuiDateCalendar",e);Ut("MuiDateCalendar",["root","viewTransitionContainer"]);const k0t=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],C0t=e=>{const{classes:t}=e;return Lt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},T0t,t)};function A0t(e,t){var n,r,i,a,s,o,l;const u=yr(),c=L1(),f=v1e(),h=_t({props:e,name:t});return M({},h,{loading:(n=h.loading)!=null?n:!1,disablePast:(r=h.disablePast)!=null?r:!1,disableFuture:(i=h.disableFuture)!=null?i:!1,openTo:(a=h.openTo)!=null?a:"day",views:(s=h.views)!=null?s:["year","day"],reduceAnimations:(o=h.reduceAnimations)!=null?o:f,renderLoading:(l=h.renderLoading)!=null?l:()=>I.jsx("span",{children:"..."}),minDate:Eo(u,h.minDate,c.minDate),maxDate:Eo(u,h.maxDate,c.maxDate)})}const _0t=Re(qI,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:VI}),R0t=Re(I1e,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),D1e=N.forwardRef(function(t,n){var r,i,a;const s=yr(),o=Td(),l=A0t(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:f,defaultValue:h,referenceDate:g,disableFuture:b,disablePast:S,defaultCalendarMonth:E,onChange:w,onYearChange:x,onMonthChange:k,reduceAnimations:C,shouldDisableDate:R,shouldDisableMonth:A,shouldDisableYear:D,view:B,views:L,openTo:F,className:W,disabled:V,readOnly:Z,minDate:Q,maxDate:H,disableHighlightToday:J,focusedView:K,onFocusedViewChange:X,showDaysOutsideCurrentMonth:te,fixedWeekNumber:z,dayOfWeekFormatter:Te,components:be,componentsProps:ee,slots:ye,slotProps:Oe,loading:ie,renderLoading:_e,displayWeekNumber:Ie,yearsPerRow:qe,monthsPerRow:st,timezone:Pe}=l,tt=at(l,k0t),{value:Ve,handleValueChange:Xe,timezone:et}=ZO({name:"DateCalendar",timezone:Pe,value:f,defaultValue:h,onChange:w,valueManager:us}),{view:dt,setView:At,focusedView:Je,setFocusedView:pe,goToNextView:le,setValueAndGoToNextView:he}=XT({view:B,views:L,openTo:F,onChange:Xe,onViewChange:c,autoFocus:u,focusedView:K,onFocusedViewChange:X}),{referenceDate:je,calendarState:Ze,changeFocusedDay:We,changeMonth:fe,handleChangeMonth:xe,isDateDisabled:ve,onMonthSwitchingAnimationEnd:De}=Imt({value:Ve,defaultCalendarMonth:E,referenceDate:g,reduceAnimations:C,onMonthChange:k,minDate:Q,maxDate:H,shouldDisableDate:R,disablePast:S,disableFuture:b,timezone:et}),$e=V&&Ve||Q,vt=V&&Ve||H,Wt=`${o}-grid-label`,Kt=Je!==null,gt=(r=(i=ye==null?void 0:ye.calendarHeader)!=null?i:be==null?void 0:be.CalendarHeader)!=null?r:x0t,Gt=cr({elementType:gt,externalSlotProps:(a=Oe==null?void 0:Oe.calendarHeader)!=null?a:ee==null?void 0:ee.calendarHeader,additionalProps:{views:L,view:dt,currentMonth:Ze.currentMonth,onViewChange:At,onMonthChange:(Ue,lt)=>xe({newMonth:Ue,direction:lt}),minDate:$e,maxDate:vt,disabled:V,disablePast:S,disableFuture:b,reduceAnimations:C,timezone:et,labelId:Wt,slots:ye,slotProps:Oe},ownerState:l}),ut=on(Ue=>{const lt=s.startOfMonth(Ue),Nt=s.endOfMonth(Ue),Qt=ve(Ue)?J2({utils:s,date:Ue,minDate:s.isBefore(Q,lt)?lt:Q,maxDate:s.isAfter(H,Nt)?Nt:H,disablePast:S,disableFuture:b,isDateDisabled:ve,timezone:et}):Ue;Qt?(he(Qt,"finish"),k==null||k(lt)):(le(),fe(lt)),We(Qt,!0)}),wt=on(Ue=>{const lt=s.startOfYear(Ue),Nt=s.endOfYear(Ue),Qt=ve(Ue)?J2({utils:s,date:Ue,minDate:s.isBefore(Q,lt)?lt:Q,maxDate:s.isAfter(H,Nt)?Nt:H,disablePast:S,disableFuture:b,isDateDisabled:ve,timezone:et}):Ue;Qt?(he(Qt,"finish"),x==null||x(Qt)):(le(),fe(lt)),We(Qt,!0)}),Xt=on(Ue=>Xe(Ue&&e9(s,Ue,Ve??je),"finish",dt));N.useEffect(()=>{Ve!=null&&s.isValid(Ve)&&fe(Ve)},[Ve]);const Ln=l,$n=C0t(Ln),jn={disablePast:S,disableFuture:b,maxDate:H,minDate:Q},ar={disableHighlightToday:J,readOnly:Z,disabled:V,timezone:et,gridLabelId:Wt},Ur=N.useRef(dt);N.useEffect(()=>{Ur.current!==dt&&(Je===Ur.current&&pe(dt,!0),Ur.current=dt)},[Je,pe,dt]);const Me=N.useMemo(()=>[Ve],[Ve]);return I.jsxs(_0t,M({ref:n,className:ft($n.root,W),ownerState:Ln},tt,{children:[I.jsx(gt,M({},Gt)),I.jsx(R0t,{reduceAnimations:C,className:$n.viewTransitionContainer,transKey:dt,ownerState:Ln,children:I.jsxs("div",{children:[dt==="year"&&I.jsx(h0t,M({},jn,ar,{value:Ve,onChange:wt,shouldDisableYear:D,hasFocus:Kt,onFocusedViewChange:Ue=>pe("year",Ue),yearsPerRow:qe,referenceDate:je})),dt==="month"&&I.jsx(t0t,M({},jn,ar,{hasFocus:Kt,className:W,value:Ve,onChange:ut,shouldDisableMonth:A,onFocusedViewChange:Ue=>pe("month",Ue),monthsPerRow:st,referenceDate:je})),dt==="day"&&I.jsx(_mt,M({},Ze,jn,ar,{onMonthSwitchingAnimationEnd:De,onFocusedDayChange:We,reduceAnimations:C,selectedDays:Me,onSelectedDaysChange:Xt,shouldDisableDate:R,shouldDisableMonth:A,shouldDisableYear:D,hasFocus:Kt,onFocusedViewChange:Ue=>pe("day",Ue),showDaysOutsideCurrentMonth:te,fixedWeekNumber:z,dayOfWeekFormatter:Te,displayWeekNumber:Ie,components:be,componentsProps:ee,slots:ye,slotProps:Oe,loading:ie,renderLoading:_e}))]})})]}))}),Ec=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,maxDate:b,shouldDisableDate:S,shouldDisableMonth:E,shouldDisableYear:w,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:R,yearsPerRow:A,defaultCalendarMonth:D,components:B,componentsProps:L,slots:F,slotProps:W,loading:V,renderLoading:Z,disableHighlightToday:Q,readOnly:H,disabled:J,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:X,sx:te,autoFocus:z,fixedWeekNumber:Te,displayWeekNumber:be,timezone:ee})=>I.jsx(D1e,{view:e,onViewChange:t,views:n.filter(lv),focusedView:r&&lv(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,maxDate:b,shouldDisableDate:S,shouldDisableMonth:E,shouldDisableYear:w,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:R,yearsPerRow:A,defaultCalendarMonth:D,components:B,componentsProps:L,slots:F,slotProps:W,loading:V,renderLoading:Z,disableHighlightToday:Q,readOnly:H,disabled:J,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:X,sx:te,autoFocus:z,fixedWeekNumber:Te,displayWeekNumber:be,timezone:ee}),N1e=N.forwardRef(function(t,n){var r,i,a,s;const o=cs(),l=yr(),u=m1e(t,"MuiDesktopDatePicker"),c=M({day:Ec,month:Ec,year:Ec},u.viewRenderers),f=M({},u,{viewRenderers:c,format:gx(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:M({openPickerIcon:g1e,field:R1e},u.slots),slotProps:M({},u.slotProps,{field:g=>{var b;return M({},y0((b=u.slotProps)==null?void 0:b.field,g),XO(u),{ref:n})},toolbar:M({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=$W({props:f,valueManager:us,valueType:"date",getOpenDialogAriaText:(a=(s=f.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:o.openDatePickerDialogue,validator:$1});return h()});N1e.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,minDate:Y.any,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const I0t=["props","getOpenDialogAriaText"],BW=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:a}=e,s=at(e,I0t);const{slots:o,slotProps:l,className:u,sx:c,format:f,formatDensity:h,timezone:g,name:b,label:S,inputRef:E,readOnly:w,disabled:x,localeText:k}=i,C=yr(),R=N.useRef(null),A=Td(),D=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:B,actions:L,layoutProps:F,renderCurrentView:W,fieldProps:V}=S1e(M({},s,{props:i,inputRef:R,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),Z=o.field,Q=cr({elementType:Z,externalSlotProps:l==null?void 0:l.field,additionalProps:M({},V,D&&{id:A},!(x||w)&&{onClick:L.onOpen,onKeyDown:dpt(L.onOpen)},{readOnly:w??!0,disabled:x,className:u,sx:c,format:f,formatDensity:h,timezone:g,label:S,name:b}),ownerState:i});Q.inputProps=M({},Q.inputProps,{"aria-label":a(V.value,C)});const H=M({textField:o.textField},Q.slots),J=(r=o.layout)!=null?r:x1e,K=Jn(R,Q.inputRef,E);let X=A;D&&(S?X=`${A}-label`:X=void 0);const te=M({},l,{toolbar:M({},l==null?void 0:l.toolbar,{titleId:A}),mobilePaper:M({"aria-labelledby":X},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>I.jsxs(f1e,{localeText:k,children:[I.jsx(Z,M({},Q,{slots:H,slotProps:te,inputRef:K})),I.jsx(upt,M({},L,{open:B,slots:o,slotProps:te,children:I.jsx(J,M({},F,te==null?void 0:te.layout,{slots:o,slotProps:te,children:W()}))}))]})}},UW=N.forwardRef(function(t,n){var r,i,a;const s=cs(),o=yr(),l=m1e(t,"MuiMobileDatePicker"),u=M({day:Ec,month:Ec,year:Ec},l.viewRenderers),c=M({},l,{viewRenderers:u,format:gx(o,l,!1),slots:M({field:R1e},l.slots),slotProps:M({},l.slotProps,{field:h=>{var g;return M({},y0((g=l.slotProps)==null?void 0:g.field,h),XO(l),{ref:n})},toolbar:M({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=BW({props:c,valueManager:us,valueType:"date",getOpenDialogAriaText:(i=(a=c.localeText)==null?void 0:a.openDatePickerDialogue)!=null?i:s.openDatePickerDialogue,validator:$1});return f()});UW.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,minDate:Y.any,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const D0t=["desktopModeMediaQuery"],N0t=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=DW}=r,a=at(r,D0t);return TO(i,{defaultMatches:!0})?I.jsx(N1e,M({ref:n},a)):I.jsx(UW,M({ref:n},a))}),P0t=e=>{var t,n,r,i,a,s,o,l;const u=yr(),c=L1(),h=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return M({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:h,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Eo(u,(a=e.minDateTime)!=null?a:e.minDate,c.minDate),maxDate:Eo(u,(s=e.maxDateTime)!=null?s:e.maxDate,c.maxDate),minTime:(o=e.minDateTime)!=null?o:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},M0t=({props:e,inputRef:t})=>{const n=P0t(e),{forwardedProps:r,internalProps:i}=LW(n,"date-time");return MW({inputRef:t,forwardedProps:r,internalProps:i,valueManager:us,fieldValueManager:RW,validator:QI,valueType:"date-time"})},L0t=["components","componentsProps","slots","slotProps","InputProps","inputProps"],$0t=["inputRef"],F0t=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],P1e=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiDateTimeField"}),{components:o,componentsProps:l,slots:u,slotProps:c,InputProps:f,inputProps:h}=s,g=at(s,L0t),b=s,S=(r=(i=u==null?void 0:u.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:E0,E=cr({elementType:S,externalSlotProps:(a=c==null?void 0:c.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:g,ownerState:b}),{inputRef:w}=E,x=at(E,$0t);x.inputProps=M({},h,x.inputProps),x.InputProps=M({},f,x.InputProps);const k=M0t({props:x,inputRef:w}),{ref:C,onPaste:R,onKeyDown:A,inputMode:D,readOnly:B,clearable:L,onClear:F}=k,W=at(k,F0t),{InputProps:V,fieldProps:Z}=FW({onClear:F,clearable:L,fieldProps:W,InputProps:W.InputProps,slots:u,slotProps:c,components:o,componentsProps:l});return I.jsx(S,M({ref:n},Z,{InputProps:M({},V,{readOnly:B}),inputProps:M({},W.inputProps,{inputMode:D,onPaste:R,onKeyDown:A,ref:C})}))});function B0t(e){return Bt("MuiDateTimePickerTabs",e)}Ut("MuiDateTimePickerTabs",["root"]);const U0t=e=>lv(e)?"date":"time",z0t=e=>e==="date"?"day":"hours",j0t=e=>{const{classes:t}=e;return Lt({root:["root"]},B0t,t)},H0t=Re(YMe,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${S4.indicator}`]:{bottom:"auto",top:0}}})),V0t=function(t){const n=_t({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=I.jsx(Zht,{}),onViewChange:i,timeIcon:a=I.jsx(Xht,{}),view:s,hidden:o=typeof window>"u"||window.innerHeight<667,className:l}=n,u=cs(),c=j0t(n),f=(h,g)=>{i(z0t(g))};return o?null:I.jsxs(H0t,{ownerState:n,variant:"fullWidth",value:U0t(s),onChange:f,className:ft(l,c.root),children:[I.jsx(kZ,{value:"date","aria-label":u.dateTableLabel,icon:I.jsx(N.Fragment,{children:r})}),I.jsx(kZ,{value:"time","aria-label":u.timeTableLabel,icon:I.jsx(N.Fragment,{children:a})})]})};function W0t(e){return Bt("MuiDateTimePickerToolbar",e)}const u7=Ut("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Q0t=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],q0t=e=>{const{classes:t,theme:n,isLandscape:r}=e,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Lt(i,W0t,t)},M1e=Re(IW,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));M1e.propTypes={as:Y.elementType,classes:Y.object,className:Y.string,isLandscape:Y.bool.isRequired,isMobileKeyboardViewOpen:Y.bool,landscapeDirection:Y.oneOf(["column","row"]),ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),toggleMobileKeyboardView:Y.func,toolbarTitle:Y.node,viewType:Y.oneOf(["date","time"])};const G0t=Re("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),L1e=Re("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return M({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&M({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Y0t=Re("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>M({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));L1e.propTypes={as:Y.elementType,ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};const are=Re(NW,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),Z0t=Re("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${u7.ampmLabel}`]:t.ampmLabel},{[`&.${u7.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>M({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${u7.ampmLabel}`]:{fontSize:17}}));function X0t(e){const t=_t({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:a,view:s,isLandscape:o,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:f,disabled:h,readOnly:g,toolbarVariant:b="mobile"}=t,S=at(t,Q0t),E=t,w=yr(),{meridiemMode:x,handleMeridiemChange:k}=WI(i,n,a),C=!!(n&&!r),R=b==="desktop",A=cs(),D=Ni(),B=q0t(M({},E,{theme:D})),L=W=>n?w.format(W,"hours12h"):w.format(W,"hours24h"),F=N.useMemo(()=>i?u?w.formatByString(i,u):w.format(i,"shortDate"):c,[i,u,c,w]);return I.jsxs(M1e,M({toolbarTitle:A.dateTimePickerToolbarTitle,isLandscape:o,className:B.root},S,{ownerState:E,children:[I.jsxs(G0t,{className:B.dateContainer,ownerState:E,children:[f.includes("year")&&I.jsx(ou,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:s==="year",value:i?w.format(i,"year"):"–"}),f.includes("day")&&I.jsx(ou,{tabIndex:-1,variant:R?"h5":"h4",onClick:()=>l("day"),selected:s==="day",value:F})]}),I.jsxs(L1e,{className:B.timeContainer,ownerState:E,children:[I.jsxs(Y0t,{className:B.timeDigitsContainer,ownerState:E,children:[f.includes("hours")&&I.jsx(ou,{variant:R?"h5":"h3",width:R&&!o?d2:void 0,onClick:()=>l("hours"),selected:s==="hours",value:i?L(i):"--"}),f.includes("minutes")&&I.jsxs(N.Fragment,{children:[I.jsx(are,{variant:R?"h5":"h3",value:":",className:B.separator,ownerState:E}),I.jsx(ou,{variant:R?"h5":"h3",width:R&&!o?d2:void 0,onClick:()=>l("minutes"),selected:s==="minutes",value:i?w.format(i,"minutes"):"--"})]}),f.includes("seconds")&&I.jsxs(N.Fragment,{children:[I.jsx(are,{variant:R?"h5":"h3",value:":",className:B.separator,ownerState:E}),I.jsx(ou,{variant:R?"h5":"h3",width:R&&!o?d2:void 0,onClick:()=>l("seconds"),selected:s==="seconds",value:i?w.format(i,"seconds"):"--"})]})]}),C&&!R&&I.jsxs(Z0t,{className:B.ampmSelection,ownerState:E,children:[I.jsx(ou,{variant:"subtitle2",selected:x==="am",typographyClassName:B.ampmLabel,value:dd(w,"am"),onClick:g?void 0:()=>k("am"),disabled:h}),I.jsx(ou,{variant:"subtitle2",selected:x==="pm",typographyClassName:B.ampmLabel,value:dd(w,"pm"),onClick:g?void 0:()=>k("pm"),disabled:h})]}),n&&R&&I.jsx(ou,{variant:"h5",onClick:()=>l("meridiem"),selected:s==="meridiem",value:i&&x?dd(w,x):"--",width:d2})]})]}))}function $1e(e,t){var n,r,i,a,s,o,l,u,c,f,h;const g=yr(),b=L1(),S=_t({props:e,name:t}),E=(n=S.ampm)!=null?n:g.is12HourCycleInCurrentLocale(),w=N.useMemo(()=>{var C;return((C=S.localeText)==null?void 0:C.toolbarTitle)==null?S.localeText:M({},S.localeText,{dateTimePickerToolbarTitle:S.localeText.toolbarTitle})},[S.localeText]),x=(r=S.slots)!=null?r:ZT(S.components),k=(i=S.slotProps)!=null?i:S.componentsProps;return M({},S,kW({views:S.views,openTo:S.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:E,localeText:w,orientation:(a=S.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(s=S.disableIgnoringDatePartForTimeValidation)!=null?s:!!(S.minDateTime||S.maxDateTime||S.disablePast||S.disableFuture),disableFuture:(o=S.disableFuture)!=null?o:!1,disablePast:(l=S.disablePast)!=null?l:!1,minDate:Eo(g,(u=S.minDateTime)!=null?u:S.minDate,b.minDate),maxDate:Eo(g,(c=S.maxDateTime)!=null?c:S.maxDate,b.maxDate),minTime:(f=S.minDateTime)!=null?f:S.minTime,maxTime:(h=S.maxDateTime)!=null?h:S.maxTime,slots:M({toolbar:X0t,tabs:V0t},x),slotProps:M({},k,{toolbar:M({ampm:E},k==null?void 0:k.toolbar)})})}function K0t(e){return Bt("MuiMultiSectionDigitalClock",e)}Ut("MuiMultiSectionDigitalClock",["root"]);function J0t(e){return Bt("MuiMultiSectionDigitalClockSection",e)}const egt=Ut("MuiMultiSectionDigitalClockSection",["root","item"]),tgt=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],ngt=e=>{const{classes:t}=e;return Lt({root:["root"],item:["item"]},J0t,t)},rgt=Re(kO,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:y1e,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),igt=Re(np,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:d2,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette.primary.main,e.palette.action.focusOpacity)}})),agt=N.forwardRef(function(t,n){var r;const i=N.useRef(null),a=Jn(n,i),s=N.useRef(null),o=_t({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:f,readOnly:h,items:g,active:b,slots:S,slotProps:E,skipDisabled:w}=o,x=at(o,tgt),k=N.useMemo(()=>M({},o,{alreadyRendered:!!i.current}),[o]),C=ngt(k),R=(r=S==null?void 0:S.digitalClockSectionItem)!=null?r:igt;return N.useEffect(()=>{if(i.current===null)return;const A=i.current.querySelector('[role="option"][aria-selected="true"]');if(b&&l&&A&&A.focus(),!A||s.current===A)return;s.current=A;const D=A.offsetTop;i.current.scrollTop=D-4}),I.jsx(rgt,M({ref:a,className:ft(C.root,c),ownerState:k,autoFocusItem:l&&b,role:"listbox"},x,{children:g.map(A=>{var D,B;if(w&&(D=A.isDisabled)!=null&&D.call(A,A.value))return null;const L=A.isSelected(A.value);return I.jsx(R,M({onClick:()=>!h&&u(A.value),selected:L,disabled:f||((B=A.isDisabled)==null?void 0:B.call(A,A.value)),disableRipple:h,role:"option","aria-disabled":h,"aria-label":A.ariaLabel,"aria-selected":L,className:C.item},E==null?void 0:E.digitalClockSectionItem,{children:A.label}),A.label)})}))}),sgt=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:a,timeStep:s})=>{const o=t?n.getHours(t):null,l=[],u=f=>o===null?!1:r?f===12?o===12||o===0:o===f||o-12===f:o===f,c=r?11:23;for(let f=0;f<=c;f+=s){let h=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const g=a(parseInt(h,10).toString());h=n.formatNumber(h),l.push({value:f,label:h,isSelected:u,isDisabled:i,ariaLabel:g})}return l},sre=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:a,hasValue:s=!0})=>{const o=l=>e===null?!1:s&&e===l;return[...Array.from({length:Math.ceil(60/r)},(l,u)=>{const c=r*u;return{value:c,label:t.formatNumber(i(c)),isDisabled:n,isSelected:o,ariaLabel:a(c.toString())}})]},zW=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const a=N.useMemo(()=>us.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:od.day,timezone:i,getTodayDate:()=>AW(n,i,"date")}),[]);return e??a},ogt=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],lgt=e=>{const{classes:t}=e;return Lt({root:["root"]},K0t,t)},ugt=Re(qI,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),cgt=N.forwardRef(function(t,n){const r=yr(),i=_t({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:o,components:l,componentsProps:u,slots:c,slotProps:f,value:h,defaultValue:g,referenceDate:b,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:E,minTime:w,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:R,shouldDisableTime:A,onChange:D,view:B,views:L=["hours","minutes"],openTo:F,onViewChange:W,focusedView:V,onFocusedViewChange:Z,className:Q,disabled:H,readOnly:J,skipDisabled:K=!1,timezone:X}=i,te=at(i,ogt),{value:z,handleValueChange:Te,timezone:be}=ZO({name:"MultiSectionDigitalClock",timezone:X,value:h,defaultValue:g,onChange:D,valueManager:us}),ee=cs(),ye=D0(be),Oe=N.useMemo(()=>M({hours:1,minutes:5,seconds:5},s),[s]),ie=zW({value:z,referenceDate:b,utils:r,props:i,timezone:be}),_e=on((le,he,je)=>Te(le,he,je)),Ie=N.useMemo(()=>!a||!L.includes("hours")||L.includes("meridiem")?L:[...L,"meridiem"],[a,L]),{view:qe,setValueAndGoToNextView:st,focusedView:Pe}=XT({view:B,views:Ie,openTo:F,onViewChange:W,onChange:_e,focusedView:V,onFocusedViewChange:Z}),tt=on(le=>{st(le,"finish","meridiem")}),{meridiemMode:Ve,handleMeridiemChange:Xe}=WI(ie,a,tt,"finish"),et=N.useCallback((le,he)=>{const je=YT(S,r),Ze=he==="hours"||he==="minutes"&&Ie.includes("seconds"),We=({start:xe,end:ve})=>!(w&&je(w,ve)||E&&je(xe,E)||x&&je(xe,ye)||k&&je(ye,Ze?ve:xe)),fe=(xe,ve=1)=>{if(xe%ve!==0||R!=null&&R(xe,he))return!1;if(A)switch(he){case"hours":return!A(r.setHours(ie,xe),"hours");case"minutes":return!A(r.setMinutes(ie,xe),"minutes");case"seconds":return!A(r.setSeconds(ie,xe),"seconds");default:return!1}return!0};switch(he){case"hours":{const xe=bx(le,Ve,a),ve=r.setHours(ie,xe),De=r.setSeconds(r.setMinutes(ve,0),0),$e=r.setSeconds(r.setMinutes(ve,59),59);return!We({start:De,end:$e})||!fe(xe)}case"minutes":{const xe=r.setMinutes(ie,le),ve=r.setSeconds(xe,0),De=r.setSeconds(xe,59);return!We({start:ve,end:De})||!fe(le,C)}case"seconds":{const xe=r.setSeconds(ie,le);return!We({start:xe,end:xe})||!fe(le)}default:throw new Error("not supported")}},[a,ie,S,E,Ve,w,C,R,A,r,x,k,ye,Ie]),dt=N.useCallback(le=>{switch(le){case"hours":return{onChange:he=>{const je=bx(he,Ve,a);st(r.setHours(ie,je),"finish","hours")},items:sgt({now:ye,value:z,ampm:a,utils:r,isDisabled:he=>H||et(he,"hours"),timeStep:Oe.hours,resolveAriaLabel:ee.hoursClockNumberText})};case"minutes":return{onChange:he=>{st(r.setMinutes(ie,he),"finish","minutes")},items:sre({value:r.getMinutes(ie),utils:r,isDisabled:he=>H||et(he,"minutes"),resolveLabel:he=>r.format(r.setMinutes(ye,he),"minutes"),timeStep:Oe.minutes,hasValue:!!z,resolveAriaLabel:ee.minutesClockNumberText})};case"seconds":return{onChange:he=>{st(r.setSeconds(ie,he),"finish","seconds")},items:sre({value:r.getSeconds(ie),utils:r,isDisabled:he=>H||et(he,"seconds"),resolveLabel:he=>r.format(r.setSeconds(ye,he),"seconds"),timeStep:Oe.seconds,hasValue:!!z,resolveAriaLabel:ee.secondsClockNumberText})};case"meridiem":{const he=dd(r,"am"),je=dd(r,"pm");return{onChange:Xe,items:[{value:"am",label:he,isSelected:()=>!!z&&Ve==="am",ariaLabel:he},{value:"pm",label:je,isSelected:()=>!!z&&Ve==="pm",ariaLabel:je}]}}default:throw new Error(`Unknown view: ${le} found.`)}},[ye,z,a,r,Oe.hours,Oe.minutes,Oe.seconds,ee.hoursClockNumberText,ee.minutesClockNumberText,ee.secondsClockNumberText,Ve,st,ie,H,et,Xe]),At=N.useMemo(()=>Ie.reduce((le,he)=>M({},le,{[he]:dt(he)}),{}),[Ie,dt]),Je=i,pe=lgt(Je);return I.jsx(ugt,M({ref:n,className:ft(pe.root,Q),ownerState:Je,role:"group"},te,{children:Object.entries(At).map(([le,he])=>I.jsx(agt,{items:he.items,onChange:he.onChange,active:qe===le,autoFocus:o??Pe===le,disabled:H,readOnly:J,slots:c??l,slotProps:f??u,skipDisabled:K,"aria-label":ee.selectViewText(le)},le))}))}),dgt=Re("div")({display:"flex",margin:"0 auto"});function fgt(e){return Bt("MuiTimeClock",e)}Ut("MuiTimeClock",["root","arrowSwitcher"]);const dO=220,Bf=36,vx={x:dO/2,y:dO/2},F1e={x:vx.x,y:0},hgt=F1e.x-vx.x,pgt=F1e.y-vx.y,mgt=e=>e*(180/Math.PI),B1e=(e,t,n)=>{const r=t-vx.x,i=n-vx.y,a=Math.atan2(hgt,pgt)-Math.atan2(r,i);let s=mgt(a);s=Math.round(s/e)*e,s%=360;const o=Math.floor(s/e)||0,l=r**2+i**2,u=Math.sqrt(l);return{value:o,distance:u}},ggt=(e,t,n=1)=>{const r=n*6;let{value:i}=B1e(r,e,t);return i=i*n%60,i},bgt=(e,t,n)=>{const{value:r,distance:i}=B1e(30,e,t);let a=r||12;return n?a%=12:i{const{classes:t}=e;return Lt({root:["root"],thumb:["thumb"]},ygt,t)},Sgt=Re("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>M({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),Egt=Re("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>M({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Bf/2}px)`,border:`${(Bf-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function wgt(e){const t=_t({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:a}=t,s=at(t,vgt),o=N.useRef(i);N.useEffect(()=>{o.current=i},[i]);const l=M({},t,{shouldAnimate:o.current!==i}),u=Ogt(l),c=()=>{let h=360/(i==="hours"?12:60)*a;return i==="hours"&&a>12&&(h-=360),{height:Math.round((r?.26:.4)*dO),transform:`rotateZ(${h}deg)`}};return I.jsx(Sgt,M({style:c(),className:ft(n,u.root),ownerState:l},s,{children:I.jsx(Egt,{ownerState:l,className:u.thumb})}))}function xgt(e){return Bt("MuiClock",e)}Ut("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Tgt=e=>{const{classes:t}=e;return Lt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},xgt,t)},kgt=Re("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Cgt=Re("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Agt=Re("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),_gt=Re("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>M({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),Rgt=Re("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Igt=Re(wa,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>M({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Bf},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),Dgt=Re(wa,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>M({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Bf},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),ore=Re(xr,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Ngt(e){const t=_t({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:s,handleMeridiemChange:o,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:f,selectedId:h,type:g,viewValue:b,disabled:S,readOnly:E,className:w}=t,x=t,k=yr(),C=cs(),R=N.useRef(!1),A=Tgt(x),D=l(b,g),B=!n&&g==="hours"&&(b<1||b>12),L=(te,z)=>{S||E||l(te,g)||f(te,z)},F=(te,z)=>{let{offsetX:Te,offsetY:be}=te;if(Te===void 0){const ye=te.target.getBoundingClientRect();Te=te.changedTouches[0].clientX-ye.left,be=te.changedTouches[0].clientY-ye.top}const ee=g==="seconds"||g==="minutes"?ggt(Te,be,c):bgt(Te,be,!!n);L(ee,z)},W=te=>{R.current=!0,F(te,"shallow")},V=te=>{R.current&&(F(te,"finish"),R.current=!1)},Z=te=>{te.buttons>0&&F(te.nativeEvent,"shallow")},Q=te=>{R.current&&(R.current=!1),F(te.nativeEvent,"finish")},H=N.useMemo(()=>g==="hours"?!0:b%5===0,[g,b]),J=g==="minutes"?c:1,K=N.useRef(null);la(()=>{i&&K.current.focus()},[i]);const X=te=>{if(!R.current)switch(te.key){case"Home":L(0,"partial"),te.preventDefault();break;case"End":L(g==="minutes"?59:23,"partial"),te.preventDefault();break;case"ArrowUp":L(b+J,"partial"),te.preventDefault();break;case"ArrowDown":L(b-J,"partial"),te.preventDefault();break}};return I.jsxs(kgt,{className:ft(w,A.root),children:[I.jsxs(Cgt,{className:A.clock,children:[I.jsx(_gt,{onTouchMove:W,onTouchEnd:V,onMouseUp:Q,onMouseMove:Z,ownerState:{disabled:S},className:A.squareMask}),!D&&I.jsxs(N.Fragment,{children:[I.jsx(Rgt,{className:A.pin}),s!=null&&I.jsx(wgt,{type:g,viewValue:b,isInner:B,hasSelected:H})]}),I.jsx(Agt,{"aria-activedescendant":h,"aria-label":C.clockLabelText(g,s,k),ref:K,role:"listbox",onKeyDown:X,tabIndex:0,className:A.wrapper,children:a})]}),n&&r&&I.jsxs(N.Fragment,{children:[I.jsx(Igt,{onClick:E?void 0:()=>o("am"),disabled:S||u===null,ownerState:x,className:A.amButton,title:dd(k,"am"),children:I.jsx(ore,{variant:"caption",className:A.meridiemText,children:dd(k,"am")})}),I.jsx(Dgt,{disabled:S||u===null,onClick:E?void 0:()=>o("pm"),ownerState:x,className:A.pmButton,title:dd(k,"pm"),children:I.jsx(ore,{variant:"caption",className:A.meridiemText,children:dd(k,"pm")})})]})]})}function Pgt(e){return Bt("MuiClockNumber",e)}const WA=Ut("MuiClockNumber",["root","selected","disabled"]),Mgt=["className","disabled","index","inner","label","selected"],Lgt=e=>{const{classes:t,selected:n,disabled:r}=e;return Lt({root:["root",n&&"selected",r&&"disabled"]},Pgt,t)},$gt=Re("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${WA.disabled}`]:t.disabled},{[`&.${WA.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>M({height:Bf,width:Bf,position:"absolute",left:`calc((100% - ${Bf}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${WA.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${WA.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&M({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function U1e(e){const t=_t({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:a,label:s,selected:o}=t,l=at(t,Mgt),u=t,c=Lgt(u),f=i%12/12*Math.PI*2-Math.PI/2,h=(dO-Bf-2)/2*(a?.65:1),g=Math.round(Math.cos(f)*h),b=Math.round(Math.sin(f)*h);return I.jsx($gt,M({className:ft(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":o?!0:void 0,role:"option",style:{transform:`translate(${g}px, ${b+(dO-Bf)/2}px`},ownerState:u},l,{children:s}))}const Fgt=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:a})=>{const s=t?a.getHours(t):null,o=[],l=e?1:0,u=e?12:23,c=f=>s===null?!1:e?f===12?s===12||s===0:s===f||s-12===f:s===f;for(let f=l;f<=u;f+=1){let h=f.toString();f===0&&(h="00");const g=!e&&(f===0||f>12);h=a.formatNumber(h);const b=c(f);o.push(I.jsx(U1e,{id:b?i:void 0,index:f,inner:g,selected:b,disabled:r(f),label:h,"aria-label":n(h)},f))}return o},lre=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([s,o],l)=>{const u=s===t;return I.jsx(U1e,{label:o,id:u?i:void 0,index:l+1,inner:!1,disabled:n(s),selected:u,"aria-label":r(o)},s)})},Bgt=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Ugt=e=>{const{classes:t}=e;return Lt({root:["root"],arrowSwitcher:["arrowSwitcher"]},fgt,t)},zgt=Re(qI,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),jgt=Re(b1e,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Hgt=["hours","minutes"],Vgt=N.forwardRef(function(t,n){const r=yr(),i=_t({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:o,components:l,componentsProps:u,slots:c,slotProps:f,value:h,defaultValue:g,referenceDate:b,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:E,minTime:w,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:R,shouldDisableTime:A,showViewSwitcher:D,onChange:B,view:L,views:F=Hgt,openTo:W,onViewChange:V,focusedView:Z,onFocusedViewChange:Q,className:H,disabled:J,readOnly:K,timezone:X}=i,te=at(i,Bgt),z=c??ZT(l),Te=f??u,{value:be,handleValueChange:ee,timezone:ye}=ZO({name:"TimeClock",timezone:X,value:h,defaultValue:g,onChange:B,valueManager:us}),Oe=zW({value:be,referenceDate:b,utils:r,props:i,timezone:ye}),ie=cs(),_e=D0(ye),{view:Ie,setView:qe,previousView:st,nextView:Pe,setValueAndGoToNextView:tt}=XT({view:L,views:F,openTo:W,onViewChange:V,onChange:ee,focusedView:Z,onFocusedViewChange:Q}),{meridiemMode:Ve,handleMeridiemChange:Xe}=WI(Oe,a,tt),et=N.useCallback((le,he)=>{const je=YT(S,r),Ze=he==="hours"||he==="minutes"&&F.includes("seconds"),We=({start:xe,end:ve})=>!(w&&je(w,ve)||E&&je(xe,E)||x&&je(xe,_e)||k&&je(_e,Ze?ve:xe)),fe=(xe,ve=1)=>{if(xe%ve!==0||R!=null&&R(xe,he))return!1;if(A)switch(he){case"hours":return!A(r.setHours(Oe,xe),"hours");case"minutes":return!A(r.setMinutes(Oe,xe),"minutes");case"seconds":return!A(r.setSeconds(Oe,xe),"seconds");default:return!1}return!0};switch(he){case"hours":{const xe=bx(le,Ve,a),ve=r.setHours(Oe,xe),De=r.setSeconds(r.setMinutes(ve,0),0),$e=r.setSeconds(r.setMinutes(ve,59),59);return!We({start:De,end:$e})||!fe(xe)}case"minutes":{const xe=r.setMinutes(Oe,le),ve=r.setSeconds(xe,0),De=r.setSeconds(xe,59);return!We({start:ve,end:De})||!fe(le,C)}case"seconds":{const xe=r.setSeconds(Oe,le);return!We({start:xe,end:xe})||!fe(le)}default:throw new Error("not supported")}},[a,Oe,S,E,Ve,w,C,R,A,r,x,k,_e,F]),dt=Td(),At=N.useMemo(()=>{switch(Ie){case"hours":{const le=(he,je)=>{const Ze=bx(he,Ve,a);tt(r.setHours(Oe,Ze),je)};return{onChange:le,viewValue:r.getHours(Oe),children:Fgt({value:be,utils:r,ampm:a,onChange:le,getClockNumberText:ie.hoursClockNumberText,isDisabled:he=>J||et(he,"hours"),selectedId:dt})}}case"minutes":{const le=r.getMinutes(Oe),he=(je,Ze)=>{tt(r.setMinutes(Oe,je),Ze)};return{viewValue:le,onChange:he,children:lre({utils:r,value:le,onChange:he,getClockNumberText:ie.minutesClockNumberText,isDisabled:je=>J||et(je,"minutes"),selectedId:dt})}}case"seconds":{const le=r.getSeconds(Oe),he=(je,Ze)=>{tt(r.setSeconds(Oe,je),Ze)};return{viewValue:le,onChange:he,children:lre({utils:r,value:le,onChange:he,getClockNumberText:ie.secondsClockNumberText,isDisabled:je=>J||et(je,"seconds"),selectedId:dt})}}default:throw new Error("You must provide the type for ClockView")}},[Ie,r,be,a,ie.hoursClockNumberText,ie.minutesClockNumberText,ie.secondsClockNumberText,Ve,tt,Oe,et,dt,J]),Je=i,pe=Ugt(Je);return I.jsxs(zgt,M({ref:n,className:ft(pe.root,H),ownerState:Je},te,{children:[I.jsx(Ngt,M({autoFocus:o??!!Z,ampmInClock:s&&F.includes("hours"),value:be,type:Ie,ampm:a,minutesStep:C,isTimeDisabled:et,meridiemMode:Ve,handleMeridiemChange:Xe,selectedId:dt,disabled:J,readOnly:K},At)),D&&I.jsx(jgt,{className:pe.arrowSwitcher,slots:z,slotProps:Te,onGoToPrevious:()=>qe(st),isPreviousDisabled:!st,previousLabel:ie.openPreviousView,onGoToNext:()=>qe(Pe),isNextDisabled:!Pe,nextLabel:ie.openNextView,ownerState:Je})]}))});function Wgt(e){return Bt("MuiDigitalClock",e)}const Qgt=Ut("MuiDigitalClock",["root","list","item"]),qgt=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Ggt=e=>{const{classes:t}=e;return Lt({root:["root"],list:["list"],item:["item"]},Wgt,t)},Ygt=Re(qI,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:y1e})),Zgt=Re(kO,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Xgt=Re(np,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette.primary.main,e.palette.action.focusOpacity)}})),Kgt=N.forwardRef(function(t,n){var r,i,a;const s=yr(),o=N.useRef(null),l=Jn(n,o),u=_t({props:t,name:"MuiDigitalClock"}),{ampm:c=s.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:h,components:g,componentsProps:b,slots:S,slotProps:E,value:w,defaultValue:x,referenceDate:k,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:R,minTime:A,disableFuture:D,disablePast:B,minutesStep:L=1,shouldDisableClock:F,shouldDisableTime:W,onChange:V,view:Z,openTo:Q,onViewChange:H,focusedView:J,onFocusedViewChange:K,className:X,disabled:te,readOnly:z,views:Te=["hours"],skipDisabled:be=!1,timezone:ee}=u,ye=at(u,qgt),{value:Oe,handleValueChange:ie,timezone:_e}=ZO({name:"DigitalClock",timezone:ee,value:w,defaultValue:x,onChange:V,valueManager:us}),Ie=cs(),qe=D0(_e),st=N.useMemo(()=>M({},u,{alreadyRendered:!!o.current}),[u]),Pe=Ggt(st),tt=(r=(i=S==null?void 0:S.digitalClockItem)!=null?i:g==null?void 0:g.DigitalClockItem)!=null?r:Xgt,Ve=cr({elementType:tt,externalSlotProps:(a=E==null?void 0:E.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:Pe.item}),Xe=zW({value:Oe,referenceDate:k,utils:s,props:u,timezone:_e}),et=on(le=>ie(le,"finish","hours")),{setValueAndGoToNextView:dt}=XT({view:Z,views:Te,openTo:Q,onViewChange:H,onChange:et,focusedView:J,onFocusedViewChange:K}),At=on(le=>{dt(le,"finish")});N.useEffect(()=>{if(o.current===null)return;const le=o.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!le)return;const he=le.offsetTop;o.current.scrollTop=he-4});const Je=N.useCallback(le=>{const he=YT(C,s),je=()=>!(A&&he(A,le)||R&&he(le,R)||D&&he(le,qe)||B&&he(qe,le)),Ze=()=>s.getMinutes(le)%L!==0||F!=null&&F(s.toJsDate(le).getTime(),"hours")?!1:W?!W(le,"hours"):!0;return!je()||!Ze()},[C,s,A,R,D,qe,B,L,F,W]),pe=N.useMemo(()=>{const le=s.startOfDay(Xe);return[le,...Array.from({length:Math.ceil(24*60/f)-1},(he,je)=>s.addMinutes(le,f*(je+1)))]},[Xe,f,s]);return I.jsx(Ygt,M({ref:l,className:ft(Pe.root,X),ownerState:st},ye,{children:I.jsx(Zgt,{autoFocusItem:h||!!J,role:"listbox","aria-label":Ie.timePickerToolbarTitle,className:Pe.list,children:pe.map(le=>{if(be&&Je(le))return null;const he=s.isEqual(le,Oe);return I.jsx(tt,M({onClick:()=>!z&&At(le),selected:he,disabled:te||Je(le),disableRipple:z,role:"option","aria-disabled":z,"aria-selected":he},Ve,{children:s.format(le,c?"fullTime12h":"fullTime24h")}),s.toISO(le))})})}))}),cv=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:E,minutesStep:w,ampm:x,ampmInClock:k,components:C,componentsProps:R,slots:A,slotProps:D,readOnly:B,disabled:L,sx:F,autoFocus:W,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:Z,timezone:Q})=>I.jsx(Vgt,{view:e,onViewChange:t,focusedView:n&&cO(n)?n:null,onFocusedViewChange:r,views:i.filter(cO),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:E,minutesStep:w,ampm:x,ampmInClock:k,components:C,componentsProps:R,slots:A,slotProps:D,readOnly:B,disabled:L,sx:F,autoFocus:W,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:Z,timezone:Q}),z1e=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:E,minutesStep:w,ampm:x,components:k,componentsProps:C,slots:R,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeSteps:V,skipDisabled:Z,timezone:Q})=>I.jsx(Kgt,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(cO),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:E,minutesStep:w,ampm:x,components:k,componentsProps:C,slots:R,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeStep:V==null?void 0:V.minutes,skipDisabled:Z,timezone:Q}),i9=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:E,minutesStep:w,ampm:x,components:k,componentsProps:C,slots:R,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeSteps:V,skipDisabled:Z,timezone:Q})=>I.jsx(cgt,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(cO),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:E,minutesStep:w,ampm:x,components:k,componentsProps:C,slots:R,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeSteps:V,skipDisabled:Z,timezone:Q}),mg=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,minTime:b,maxDate:S,maxTime:E,shouldDisableDate:w,shouldDisableMonth:x,shouldDisableYear:k,shouldDisableTime:C,shouldDisableClock:R,reduceAnimations:A,minutesStep:D,ampm:B,onMonthChange:L,monthsPerRow:F,onYearChange:W,yearsPerRow:V,defaultCalendarMonth:Z,components:Q,componentsProps:H,slots:J,slotProps:K,loading:X,renderLoading:te,disableHighlightToday:z,readOnly:Te,disabled:be,showDaysOutsideCurrentMonth:ee,dayOfWeekFormatter:ye,sx:Oe,autoFocus:ie,fixedWeekNumber:_e,displayWeekNumber:Ie,timezone:qe,disableIgnoringDatePartForTimeValidation:st,timeSteps:Pe,skipDisabled:tt,timeViewsCount:Ve,shouldRenderTimeInASingleColumn:Xe})=>{var et,dt;const At=!!((et=y0((dt=K==null?void 0:K.actionBar)!=null?dt:H==null?void 0:H.actionBar,{}))!=null&&(et=et.actions)!=null&&et.length),Je={view:im(e)?e:"hours",onViewChange:t,focusedView:r&&im(r)?r:null,onFocusedViewChange:i,views:n.filter(im),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:b,maxTime:E,shouldDisableTime:C,shouldDisableClock:R,minutesStep:D,ampm:B,components:Q,componentsProps:H,slots:J,slotProps:K,readOnly:Te,disabled:be,autoFocus:ie,disableIgnoringDatePartForTimeValidation:st,timeSteps:Pe,skipDisabled:tt,timezone:qe};return I.jsxs(N.Fragment,{children:[I.jsxs(dgt,{children:[I.jsx(D1e,{view:lv(e)?e:"day",onViewChange:t,views:n.filter(lv),focusedView:r&&lv(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,maxDate:S,shouldDisableDate:w,shouldDisableMonth:x,shouldDisableYear:k,reduceAnimations:A,onMonthChange:L,monthsPerRow:F,onYearChange:W,yearsPerRow:V,defaultCalendarMonth:Z,components:Q,componentsProps:H,slots:J,slotProps:K,loading:X,renderLoading:te,disableHighlightToday:z,readOnly:Te,disabled:be,showDaysOutsideCurrentMonth:ee,dayOfWeekFormatter:ye,sx:Oe,autoFocus:ie,fixedWeekNumber:_e,displayWeekNumber:Ie,timezone:qe}),Ve>0&&I.jsxs(N.Fragment,{children:[I.jsx(c1,{orientation:"vertical"}),Xe?z1e(M({},Je,{view:"hours",views:["hours"],focusedView:r&&im(r)?"hours":null,sx:M({width:"auto",[`&.${Qgt.root}`]:{maxHeight:VI}},Array.isArray(Oe)?Oe:[Oe])})):i9(M({},Je,{view:im(e)?e:"hours",views:n.filter(im),focusedView:r&&im(r)?r:null,sx:M({borderBottom:0,width:"auto",[`.${egt.root}`]:{maxHeight:"100%"}},Array.isArray(Oe)?Oe:[Oe])}))]})]}),At&&I.jsx(c1,{})]})},Jgt=["views","format"],j1e=(e,t)=>{let{views:n,format:r}=t,i=at(t,Jgt);if(r)return r;const a=[],s=[];if(n.forEach(u=>{cO(u)?s.push(u):a.push(u)}),s.length===0)return gx(e,M({views:a},i),!1);if(a.length===0)return o5(e,M({views:s},i));const o=o5(e,M({views:s},i));return`${gx(e,M({views:a},i),!1)} ${o}`},e1t=(e,t,n)=>n?t.filter(r=>!im(r)||r==="hours"):e?[...t,"meridiem"]:t,t1t=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function H1e({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,a=M({hours:1,minutes:5,seconds:5},n),s=t1t(a,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:a,shouldRenderTimeInASingleColumn:s,views:e1t(t,r,s)}}const V1e=N.forwardRef(function(t,n){var r,i,a,s,o,l,u;const c=cs(),f=yr(),h=$1e(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:g,thresholdToRenderTimeInASingleColumn:b,views:S,timeSteps:E}=H1e(h),w=!h.viewRenderers||Object.keys(h.viewRenderers).length===0,x=w?{day:mg,month:mg,year:mg,hours:mg,minutes:mg,seconds:mg,meridiem:mg}:M({day:Ec,month:Ec,year:Ec,hours:null,minutes:null,seconds:null,meridiem:null},h.viewRenderers),k=(r=h.ampmInClock)!=null?r:!0,C=w?["accept"]:[],R=M({},h,{viewRenderers:x,format:j1e(f,h),views:S,yearsPerRow:(i=h.yearsPerRow)!=null?i:4,ampmInClock:k,timeSteps:E,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:g,slots:M({field:P1e,openPickerIcon:g1e},h.slots),slotProps:M({},h.slotProps,{field:D=>{var B;return M({},y0((B=h.slotProps)==null?void 0:B.field,D),XO(h),{ref:n})},toolbar:M({hidden:!0,ampmInClock:k,toolbarVariant:w?"desktop":"mobile"},(a=h.slotProps)==null?void 0:a.toolbar),tabs:M({hidden:!0},(s=h.slotProps)==null?void 0:s.tabs),actionBar:M({actions:C},(o=h.slotProps)==null?void 0:o.actionBar)})}),{renderPicker:A}=$W({props:R,valueManager:us,valueType:"date-time",getOpenDialogAriaText:(l=(u=R.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:QI});return A()});V1e.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,maxDateTime:Y.any,maxTime:Y.any,minDate:Y.any,minDateTime:Y.any,minTime:Y.any,minutesStep:Y.number,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableTime:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,skipDisabled:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),thresholdToRenderTimeInASingleColumn:Y.number,timeSteps:Y.shape({hours:Y.number,minutes:Y.number,seconds:Y.number}),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Y.shape({day:Y.func,hours:Y.func,meridiem:Y.func,minutes:Y.func,month:Y.func,seconds:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const W1e=N.forwardRef(function(t,n){var r,i,a,s,o;const l=cs(),u=yr(),c=$1e(t,"MuiMobileDateTimePicker"),f=M({day:Ec,month:Ec,year:Ec,hours:cv,minutes:cv,seconds:cv},c.viewRenderers),h=(r=c.ampmInClock)!=null?r:!1,g=M({},c,{viewRenderers:f,format:j1e(u,c),ampmInClock:h,slots:M({field:P1e},c.slots),slotProps:M({},c.slotProps,{field:S=>{var E;return M({},y0((E=c.slotProps)==null?void 0:E.field,S),XO(c),{ref:n})},toolbar:M({hidden:!1,ampmInClock:h},(i=c.slotProps)==null?void 0:i.toolbar),tabs:M({hidden:!1},(a=c.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=BW({props:g,valueManager:us,valueType:"date-time",getOpenDialogAriaText:(s=(o=g.localeText)==null?void 0:o.openDatePickerDialogue)!=null?s:l.openDatePickerDialogue,validator:QI});return b()});W1e.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,maxDateTime:Y.any,maxTime:Y.any,minDate:Y.any,minDateTime:Y.any,minTime:Y.any,minutesStep:Y.number,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableTime:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Y.shape({day:Y.func,hours:Y.func,minutes:Y.func,month:Y.func,seconds:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const n1t=["desktopModeMediaQuery"],r1t=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=DW}=r,a=at(r,n1t);return TO(i,{defaultMatches:!0})?I.jsx(V1e,M({ref:n},a)):I.jsx(W1e,M({ref:n},a))}),i1t=e=>{var t,n,r,i;const a=yr(),o=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return M({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:o})},a1t=({props:e,inputRef:t})=>{const n=i1t(e),{forwardedProps:r,internalProps:i}=LW(n,"time");return MW({inputRef:t,forwardedProps:r,internalProps:i,valueManager:us,fieldValueManager:RW,validator:KT,valueType:"time"})},s1t=["slots","slotProps","components","componentsProps","InputProps","inputProps"],o1t=["inputRef"],l1t=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Q1e=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiTimeField"}),{slots:o,slotProps:l,components:u,componentsProps:c,InputProps:f,inputProps:h}=s,g=at(s,s1t),b=s,S=(r=(i=o==null?void 0:o.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:E0,E=cr({elementType:S,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:c==null?void 0:c.textField,externalForwardedProps:g,ownerState:b}),{inputRef:w}=E,x=at(E,o1t);x.inputProps=M({},h,x.inputProps),x.InputProps=M({},f,x.InputProps);const k=a1t({props:x,inputRef:w}),{ref:C,onPaste:R,onKeyDown:A,inputMode:D,readOnly:B,clearable:L,onClear:F}=k,W=at(k,l1t),{InputProps:V,fieldProps:Z}=FW({onClear:F,clearable:L,fieldProps:W,InputProps:W.InputProps,slots:o,slotProps:l,components:u,componentsProps:c});return I.jsx(S,M({ref:n},Z,{InputProps:M({},V,{readOnly:B}),inputProps:M({},W.inputProps,{inputMode:D,onPaste:R,onKeyDown:A,ref:C})}))});function u1t(e){return Bt("MuiTimePickerToolbar",e)}const ew=Ut("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),c1t=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],d1t=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Lt(i,u1t,r)},f1t=Re(IW,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),h1t=Re(NW,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),q1e=Re("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ew.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ew.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>M({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));q1e.propTypes={as:Y.elementType,ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};const G1e=Re("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ew.ampmLabel}`]:t.ampmLabel},{[`&.${ew.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>M({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${ew.ampmLabel}`]:{fontSize:17}}));G1e.propTypes={as:Y.elementType,ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};function p1t(e){const t=_t({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:a,onChange:s,view:o,onViewChange:l,views:u,disabled:c,readOnly:f}=t,h=at(t,c1t),g=yr(),b=cs(),S=Ni(),E=!!(n&&!r&&u.includes("hours")),{meridiemMode:w,handleMeridiemChange:x}=WI(i,n,s),k=D=>n?g.format(D,"hours12h"):g.format(D,"hours24h"),C=t,R=d1t(M({},C,{theme:S})),A=I.jsx(h1t,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:R.separator});return I.jsxs(f1t,M({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:R.root},h,{children:[I.jsxs(q1e,{className:R.hourMinuteLabel,ownerState:C,children:[py(u,"hours")&&I.jsx(ou,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:o==="hours",value:i?k(i):"--"}),py(u,["hours","minutes"])&&A,py(u,"minutes")&&I.jsx(ou,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:o==="minutes",value:i?g.format(i,"minutes"):"--"}),py(u,["minutes","seconds"])&&A,py(u,"seconds")&&I.jsx(ou,{variant:"h3",onClick:()=>l("seconds"),selected:o==="seconds",value:i?g.format(i,"seconds"):"--"})]}),E&&I.jsxs(G1e,{className:R.ampmSelection,ownerState:C,children:[I.jsx(ou,{disableRipple:!0,variant:"subtitle2",selected:w==="am",typographyClassName:R.ampmLabel,value:dd(g,"am"),onClick:f?void 0:()=>x("am"),disabled:c}),I.jsx(ou,{disableRipple:!0,variant:"subtitle2",selected:w==="pm",typographyClassName:R.ampmLabel,value:dd(g,"pm"),onClick:f?void 0:()=>x("pm"),disabled:c})]})]}))}function Y1e(e,t){var n,r,i,a,s;const o=yr(),l=_t({props:e,name:t}),u=(n=l.ampm)!=null?n:o.is12HourCycleInCurrentLocale(),c=N.useMemo(()=>{var g;return((g=l.localeText)==null?void 0:g.toolbarTitle)==null?l.localeText:M({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:ZT(l.components),h=(i=l.slotProps)!=null?i:l.componentsProps;return M({},l,{ampm:u,localeText:c},kW({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(s=l.disablePast)!=null?s:!1,slots:M({toolbar:p1t},f),slotProps:M({},h,{toolbar:M({ampm:u,ampmInClock:l.ampmInClock},h==null?void 0:h.toolbar)})})}const Z1e=N.forwardRef(function(t,n){var r,i,a,s,o,l;const u=cs(),c=yr(),f=Y1e(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:h,views:g,timeSteps:b}=H1e(f),S=h?z1e:i9,E=M({hours:S,minutes:S,seconds:S,meridiem:S},f.viewRenderers),w=(r=f.ampmInClock)!=null?r:!0,x=h?[]:["accept"],C=((i=E.hours)==null?void 0:i.name)===i9.name?g:g.filter(D=>D!=="meridiem"),R=M({},f,{ampmInClock:w,timeSteps:b,viewRenderers:E,format:o5(c,f),views:h?["hours"]:C,slots:M({field:Q1e,openPickerIcon:Yht},f.slots),slotProps:M({},f.slotProps,{field:D=>{var B;return M({},y0((B=f.slotProps)==null?void 0:B.field,D),XO(f),{ref:n})},toolbar:M({hidden:!0,ampmInClock:w},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:M({actions:x},(s=f.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:A}=$W({props:R,valueManager:us,valueType:"time",getOpenDialogAriaText:(o=(l=R.localeText)==null?void 0:l.openTimePickerDialogue)!=null?o:u.openTimePickerDialogue,validator:KT});return A()});Z1e.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,localeText:Y.object,maxTime:Y.any,minTime:Y.any,minutesStep:Y.number,name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,open:Y.bool,openTo:Y.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableTime:Y.func,skipDisabled:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),thresholdToRenderTimeInASingleColumn:Y.number,timeSteps:Y.shape({hours:Y.number,minutes:Y.number,seconds:Y.number}),timezone:Y.string,value:Y.any,view:Y.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Y.shape({hours:Y.func,meridiem:Y.func,minutes:Y.func,seconds:Y.func}),views:Y.arrayOf(Y.oneOf(["hours","minutes","seconds"]).isRequired)};const X1e=N.forwardRef(function(t,n){var r,i,a,s;const o=cs(),l=yr(),u=Y1e(t,"MuiMobileTimePicker"),c=M({hours:cv,minutes:cv,seconds:cv},u.viewRenderers),f=(r=u.ampmInClock)!=null?r:!1,h=M({},u,{ampmInClock:f,viewRenderers:c,format:o5(l,u),slots:M({field:Q1e},u.slots),slotProps:M({},u.slotProps,{field:b=>{var S;return M({},y0((S=u.slotProps)==null?void 0:S.field,b),XO(u),{ref:n})},toolbar:M({hidden:!1,ampmInClock:f},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:g}=BW({props:h,valueManager:us,valueType:"time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openTimePickerDialogue)!=null?a:o.openTimePickerDialogue,validator:KT});return g()});X1e.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,localeText:Y.object,maxTime:Y.any,minTime:Y.any,minutesStep:Y.number,name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,open:Y.bool,openTo:Y.oneOf(["hours","minutes","seconds"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableTime:Y.func,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["hours","minutes","seconds"]),viewRenderers:Y.shape({hours:Y.func,minutes:Y.func,seconds:Y.func}),views:Y.arrayOf(Y.oneOf(["hours","minutes","seconds"]).isRequired)};const m1t=["desktopModeMediaQuery"],g1t=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=DW}=r,a=at(r,m1t);return TO(i,{defaultMatches:!0})?I.jsx(Z1e,M({ref:n},a)):I.jsx(X1e,M({ref:n},a))});var jW={},b1t=ca;Object.defineProperty(jW,"__esModule",{value:!0});var K1e=jW.default=void 0,y1t=b1t(da()),v1t=I;K1e=jW.default=(0,y1t.default)((0,v1t.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var HW={},O1t=ca;Object.defineProperty(HW,"__esModule",{value:!0});var VW=HW.default=void 0,S1t=O1t(da()),E1t=I;VW=HW.default=(0,S1t.default)((0,E1t.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var WW={},w1t=ca;Object.defineProperty(WW,"__esModule",{value:!0});var J1e=WW.default=void 0,x1t=w1t(da()),T1t=I;J1e=WW.default=(0,x1t.default)((0,T1t.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function a9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function M1t(e,t){return k1t(e)||R1t(e,t)||ebe(e,t)||I1t()}function p0(e){return C1t(e)||_1t(e)||ebe(e)||D1t()}function L1t(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function ebe(e,t){if(e){if(typeof e=="string")return a9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a9(e,t)}}var $1t=N.createContext({onError:function(e){return e==null?void 0:e.message}}),Pu=function(){var e;return(e=N.useContext($1t))===null||e===void 0?void 0:e.onError};function Dl(e){var t;return{value:typeof((t=e.transform)===null||t===void 0?void 0:t.input)=="function"?e.transform.input(e.value):e.value,onChange:function(){for(var n=arguments.length,r=new Array(n),i=0;i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email address"}}),w=Il({name:o,control:l,disabled:g.disabled,rules:E}),x=w.field,k=w.fieldState,C=k.error,R=Dl({value:x.value,onChange:x.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(L){return L||""},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(L){var F=L.target.value;return a==="number"&&F?+F:F}}}),A=R.value,D=R.onChange,B=Jn(x.ref,f);return I.jsx(c,fr(cn({},g),{name:x.name,value:A,onChange:function(L){D(L),typeof g.onChange=="function"&&g.onChange(L)},onBlur:x.onBlur,required:s,type:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:g.helperText,ref:t,inputRef:B}))});tbe.displayName="TextFieldElement";var GI=tbe;function JT(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=Js(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),I.jsx(Vge,fr(cn({},i),{children:I.jsx("form",fr(cn({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):I.jsx(F1t,cn({onSuccess:a,onError:s,FormProps:r,children:n},o))}function F1t(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=Js(e,["onSuccess","onError","FormProps","children"]),s=r1e(cn({},a)),o=s.handleSubmit;return I.jsx(Vge,fr(cn({},s),{children:I.jsx("form",fr(cn({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var nbe={disableFuture:"Date must be in the past",maxDate:"Date is later than the maximum allowed date",disablePast:"Past date is not allowed",invalidDate:"Date is invalid",minDate:"Date is earlier than the minimum allowed date",shouldDisableDate:"Date is not allowed",shouldDisableMonth:"Month is not allowed",shouldDisableYear:"Year is not allowed"},B1t=N.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,a=e.validation,s=a===void 0?{}:a,o=e.inputProps,l=e.control,u=e.textReadOnly,c=e.slotProps,f=e.overwriteErrorMessages,h=e.inputRef,g=e.transform,b=Js(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),S=Pd(),E=Pu(),w=n||E,x=cn({},nbe,f),k=fr(cn({},s,i&&!s.required&&{required:"This field is required"}),{validate:cn({internal:function(Z){var Q,H,J=Z==null||!S.utils.isValid(Z)?null:S.utils.getTimezone(Z),K=$1({props:{shouldDisableDate:b.shouldDisableDate,shouldDisableMonth:b.shouldDisableMonth,shouldDisableYear:b.shouldDisableYear,disablePast:!!b.disablePast,disableFuture:!!b.disableFuture,minDate:b.minDate,maxDate:b.maxDate,timezone:(H=(Q=b.timezone)!==null&&Q!==void 0?Q:J)!==null&&H!==void 0?H:"default"},value:Z,adapter:S});return K==null||x[K]}},s.validate)}),C=Il({name:r,control:l,rules:k,disabled:b.disabled,defaultValue:null}),R=C.field,A=C.fieldState,D=A.error,B=Dl({value:R.value,onChange:R.onChange,transform:{input:typeof(g==null?void 0:g.input)=="function"?g.input:function(Z){return Z&&Z==="string"?new Date(Z):Z},output:typeof(g==null?void 0:g.output)=="function"?g.output:function(Z){return Z}}}),L=B.value,F=B.onChange,W=Jn(R.ref,h),V=D?typeof w=="function"?w(D):D.message:null;return I.jsx(N0t,fr(cn({},b,R),{value:L,ref:t,inputRef:W,onClose:function(){for(var Z=arguments.length,Q=new Array(Z),H=0;H"u"?"undefined":L1t(Z))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),I.jsxs(E0,fr(cn({},k),{name:r,value:Z,onBlur:L.onBlur,ref:t,onChange:function(J){if(Q(J),typeof k.onChange=="function"){var K=J.target.value;h==="number"&&K&&(K=Number(K)),g&&(K=c.find(function(X){return X[s]===K})),k.onChange(K)}},select:!0,required:i,error:!!W,helperText:W?typeof R=="function"?R(W):W.message:k.helperText,inputRef:H,children:[A&&I.jsx("option",{}),c.map(function(J){var K,X={key:"".concat(r,"_").concat(J[s]),value:(K=J==null?void 0:J[s])!==null&&K!==void 0?K:J,disabled:vl(J,"disabled")?!!J.disabled:!1,children:J[l]};return A?I.jsx("option",cn({},X)):I.jsx(np,cn({},X))})]}))});rbe.displayName="SelectElement";var s9=rbe,Q1t=N.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,u=l===void 0?"label":l,c=e.valueKey,f=c===void 0?"id":c,h=e.returnObject,g=e.disabled,b=e.row,S=e.control,E=e.checkboxColor,w=e.rules,x=e.labelProps,k=e.transform,C=e.defaultValue,R=C===void 0?[]:C,A=Js(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),D=Ni(),B=Pu(),L=s||B,F=Il({name:a,rules:o?{required:"This field is required"}:w,disabled:g,control:S,defaultValue:R}),W=F.field,V=F.fieldState,Z=V.error,Q=V.invalid,H=Dl({value:W.value,onChange:W.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(z){return Array.isArray(z)?z:[]},output:k==null?void 0:k.output}}),J=H.value,K=H.onChange,X=function(z){var Te=vl(z,f)?z[f]:z,be=J.findIndex(function(ye){var Oe=vl(ye,f)?ye[f]:ye;return Te===Oe}),ee=(be===-1?p0(J).concat([z]):J.filter(function(ye,Oe){return be!==Oe})).map(function(ye){return h||!vl(ye,f)?ye:ye[f]});K(ee),typeof A.onChange=="function"&&A.onChange(ee)},te=Z?typeof L=="function"?L(Z):Z.message:n;return I.jsxs(kd,{error:Q,required:o,ref:t,children:[i?I.jsx(_R,{children:i}):null,I.jsx(mF,{row:b,children:r.map(function(z){var Te=vl(z,f)?z[f]:z,be=vl(z,u)?z[u]:z,ee=J.some(function(ye){return(vl(ye,f)?ye[f]:ye)===Te});return N.createElement(Rw,fr(cn({},x),{control:I.jsx(CR,{sx:{color:Z?D.palette.error.main:void 0},color:E,value:Te,checked:ee,disabled:g,onChange:function(){return X(z)}}),label:"".concat(be),key:"".concat(Te)}))})}),te&&I.jsx(xO,{children:te})]})});Q1t.displayName="CheckboxButtonGroup";var q1t=48,G1t=8,Y1t=N.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,u=l===void 0?"":l,c=e.itemKey,f=c===void 0?"id":c,h=e.itemValue,g=h===void 0?"":h,b=e.itemLabel,S=b===void 0?"label":b,E=e.required,w=E===void 0?!1:E,x=e.validation,k=x===void 0?{}:x,C=e.parseError,R=e.name,A=e.menuMaxHeight,D=A===void 0?q1t*4.5+G1t:A,B=e.menuMaxWidth,L=B===void 0?250:B,F=e.minWidth,W=F===void 0?120:F,V=e.helperText,Z=e.showChips,Q=e.preserveOrder,H=e.control,J=e.showCheckbox,K=e.formControlProps,X=e.inputRef,te=e.transform,z=Js(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),Te=Pu(),be=C||Te,ee=function(et){var dt,At;return(At=(dt=o.find(function(Je){var pe;return((pe=Je[g||f])!==null&&pe!==void 0?pe:Je)===et}))===null||dt===void 0?void 0:dt[S])!==null&&At!==void 0?At:et},ye=cn({},k,w&&!k.required&&{required:"This field is required"}),Oe=Il({name:R,rules:ye,disabled:z.disabled,control:H}),ie=Oe.field,_e=Oe.fieldState,Ie=_e.error,qe=Dl({value:ie.value,onChange:ie.onChange,transform:{input:typeof(te==null?void 0:te.input)=="function"?te.input:function(et){return Array.isArray(et)?et:[]},output:te==null?void 0:te.output}}),st=qe.value,Pe=qe.onChange,tt=Jn(ie.ref,X),Ve=Ie?typeof be=="function"?be(Ie):Ie.message:V,Xe;return I.jsxs(kd,fr(cn({},K),{style:cn({minWidth:W},K==null?void 0:K.style),variant:z.variant,fullWidth:z.fullWidth,error:!!Ie,size:z.size,ref:t,children:[u&&I.jsx(sle,{size:z.size==="small"?"small":void 0,error:!!Ie,htmlFor:z.id||"select-multi-select-".concat(R),required:w,children:u}),I.jsx(yle,fr(cn({},z),{id:z.id||"select-multi-select-".concat(R),multiple:!0,label:u||void 0,error:!!Ie,value:st,required:w,onChange:Pe,onBlur:ie.onBlur,MenuProps:fr(cn({},z.MenuProps),{slotProps:fr(cn({},(n=z.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:cn({},(Xe=(i=z.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&Xe!==void 0?Xe:{style:cn({maxHeight:D,width:L},vl((s=z.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof z.MenuProps.slotProps.paper.style=="object"&&cn({},z.MenuProps.slotProps.paper.style))})})}),renderValue:typeof z.renderValue=="function"?z.renderValue:Z?function(et){return I.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(Q?o.filter(function(dt){return et.includes(dt)}):et||[]).map(function(dt){return I.jsx(cF,{label:ee(dt),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Pe((Array.isArray(st)?st:[]).filter(function(At){return At!==dt}))},deleteIcon:I.jsx(K1e,{onMouseDown:function(At){At.stopPropagation()}})},dt)})})}:function(et){return Array.isArray(et)?et.map(ee).join(", "):""},inputRef:tt,children:o.map(function(et){var dt=et[g||f]||et,At=Array.isArray(st)?st.some(function(Je){return Je===dt}):!1;return I.jsxs(np,{value:dt,sx:{fontWeight:function(Je){return At?Je.typography.fontWeightBold:Je.typography.fontWeightRegular}},children:[J&&I.jsx(CR,{checked:At}),I.jsx(t0,{primary:et[S]||et})]},dt)})})),Ve&&I.jsx(xO,{error:!!Ie,children:Ve})]}))});Y1t.displayName="MultiSelectElement";var ibe=N.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?I.jsx(VW,{}):I.jsx(J1e,{})}:r,a=Js(e,["iconColor","renderIcon"]),s=M1t(N.useState(!0),2),o=s[0],l=s[1];return I.jsx(GI,fr(cn({},a),{ref:t,InputProps:{endAdornment:I.jsx(Dw,{position:"end",children:I.jsx(wa,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});ibe.displayName="PasswordElement";var Z1t=ibe,X1t=N.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,u=e.valueKey,c=u===void 0?"id":u,f=e.required,h=e.emptyOptionLabel,g=e.returnObject,b=e.row,S=e.control,E=e.type,w=e.labelProps,x=e.disabled,k=e.formLabelProps,C=e.transform,R=Js(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),A=Ni(),D=Pu(),B=s||D,L=Il({name:a,rules:f?{required:"This field is required"}:void 0,disabled:x,control:S}),F=L.field,W=L.fieldState,V=W.error,Z=Dl({value:F.value,onChange:F.onChange,transform:{input:typeof(C==null?void 0:C.input)=="function"?C.input:function(X){return X||""},output:typeof(C==null?void 0:C.output)=="function"?C==null?void 0:C.output:function(X,te){return te}}}),Q=Z.value,H=Z.onChange,J=V?typeof B=="function"?B(V):V.message:n,K=function(X,te){var z=g?r.find(function(Te){return Te[c]===te}):te;H(X,z),typeof R.onChange=="function"&&R.onChange(z)};return I.jsxs(kd,{error:!!V,ref:t,children:[i&&I.jsx(_R,fr(cn({},k),{required:f,error:!!V,children:i})),I.jsxs(_7e,{onChange:K,name:a,row:b,value:Q,children:[h&&I.jsx(Rw,fr(cn({},w),{control:I.jsx(SZ,{sx:{color:V?A.palette.error.main:void 0},checked:!Q}),label:h,value:""})),r.map(function(X){var te=X[c];te||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),X);var z=g?Q==null?void 0:Q[c]:Q;E==="number"&&(z=Number(z));var Te=z===te;return N.createElement(Rw,fr(cn({},w),{control:I.jsx(SZ,{sx:{color:V?A.palette.error.main:void 0},disabled:x,checked:Te}),value:te,label:X[l],key:te}))})]}),J&&I.jsx(xO,{children:J})]})});X1t.displayName="RadioButtonGroup";var K1t=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=Js(e,["name","control","switchProps","transform"]),o=Il({name:n,control:r,disabled:s.disabled}),l=o.field,u=Dl({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(g,b){return b}}}),c=u.value,f=u.onChange,h=Jn(l.ref,i==null?void 0:i.ref);return I.jsx(Rw,cn({ref:t,control:I.jsx(T8e,fr(cn({},i),{name:l.name,value:c,onChange:function(g,b){f(g,b),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(g,b)},onBlur:function(g){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(g))},ref:h,checked:!!c}))},s))});K1t.displayName="SwitchElement";var J1t=N.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=Js(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=Yge({name:n,control:i});return I.jsx(Z1t,fr(cn({control:i},a),{ref:t,validation:{validate:function(o){return o===s||(r??"Password should match")}}}))});J1t.displayName="PasswordRepeatElement";var ebt=N.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,u=e.rules,c=e.loadingIndicator,f=e.required,h=e.multiple,g=e.label,b=e.parseError,S=e.transform,E=e.matchId,w=Pu(),x=b||w,k=cn({},u,f&&{required:(u==null?void 0:u.required)||"This field is required"}),C=Il({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),R=C.field,A=C.fieldState,D=A.error,B=function(K){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(K):vl(K,"label")?"".concat(K==null?void 0:K.label):"".concat(K)},L=function(K,X){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(K,X);var te=vl(K,"id")?K.id:K,z=vl(X,"id")?X.id:X;return te===z},F=function(K){return s.find(function(X){return E&&vl(X,"id")?X.id===K:L(X,K)})},W=Dl({value:R.value,onChange:R.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(K){var X;return h?(Array.isArray(K)?K:[]).map(F):(X=F(K))!==null&&X!==void 0?X:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(K,X){if(h){var te=Array.isArray(X)?X:[];return E?te.map(function(z){return vl(z,"id")?z.id:z}):te}return E&&vl(X,"id")?X.id:X}}}),V=W.value,Z=W.onChange,Q=Jn(R.ref,n==null?void 0:n.inputRef),H=c||I.jsx(bp,{color:"inherit",size:20}),J;return I.jsx($Re,fr(cn({},r),{value:V,loading:o,multiple:h,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!h,isOptionEqualToValue:L,getOptionLabel:B,onChange:function(K,X,te,z){Z(K,X,te,z),r!=null&&r.onChange&&r.onChange(K,X,te,z)},ref:t,renderOption:(J=r==null?void 0:r.renderOption)!==null&&J!==void 0?J:l?function(K,X,te){var z=te.selected;return I.jsxs("li",fr(cn({},K),{children:[I.jsx(CR,{sx:{marginRight:1},checked:z}),B(X)]}))}:void 0,onBlur:function(K){R.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(K)},renderInput:function(K){return I.jsx(E0,fr(cn({name:i,required:u!=null&&u.required?!0:f,label:g},n,K),{error:!!D,InputLabelProps:cn({},K.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:cn(fr(cn({},K.InputProps),{endAdornment:I.jsxs(I.Fragment,{children:[o?H:null,K.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:cn({},K.inputProps,n==null?void 0:n.inputProps),helperText:D?typeof x=="function"?x(D):D.message:n==null?void 0:n.helperText,inputRef:Q}))}}))});ebt.displayName="AutocompleteElement";var tbt=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,u=e.formControlProps,c=e.transform,f=Js(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),h=Pu(),g=o||h,b=cn({},s,l&&!s.required&&{required:"This field is required"}),S=Il({name:n,control:r,disabled:f.disabled,rules:b}),E=S.field,w=S.fieldState,x=w.error,k=w.invalid,C=Dl({value:E.value,onChange:E.onChange,transform:c}),R=C.value,A=C.onChange,D=x?typeof g=="function"?g(x):x.message:null;return I.jsxs(kd,fr(cn({error:k,required:l,fullWidth:!0},u),{ref:t,children:[i&&I.jsx(_R,{component:"legend",error:k,children:i}),I.jsx(s8e,fr(cn({},f),{value:R,onChange:A,valueLabelDisplay:f.valueLabelDisplay||"auto"})),D&&I.jsx(xO,{error:k,children:D})]}))});tbt.displayName="SliderElement";var nbt=N.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,u=e.resizeStyle,c=e.inputRef,f=e.inputProps,h=e.transform,g=Js(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),b=Pu(),S=i||b,E=cn({},r,a&&!r.required&&{required:"This field is required"}),w=Il({name:s,control:o,rules:E,disabled:g.disabled}),x=w.field,k=w.fieldState,C=k.error,R=Dl({value:x.value,onChange:x.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(L){return L??""},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(L){return L.target.value}}}),A=R.value,D=R.onChange,B=Jn(x.ref,c);return I.jsx(E0,fr(cn({},g),{name:s,value:A,onChange:function(L){D(L),typeof g.onChange=="function"&&g.onChange(L)},onBlur:x.onBlur,required:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:g.helperText,inputRef:B,multiline:!0,InputProps:{inputComponent:zoe,inputProps:cn({minRows:l,style:{resize:u||"both"}},f||{})},ref:t}))});nbt.displayName="TextareaAutosizeElement";var QW={},rbt=ca;Object.defineProperty(QW,"__esModule",{value:!0});var abe=QW.default=void 0,ibt=rbt(da()),abt=I;abe=QW.default=(0,ibt.default)((0,abt.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const sbt=e=>{var h;const t=pi(QT),n=pi(WF),[r,i]=N.useState(null),[a,s]=N.useState(null),[o,l]=N.useState(!1),[u,c]=N.useState(!1),f=N.useCallback(async g=>{var x,k;l(!0),c(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:g})})).body)==null?void 0:k.getReader();let E=!0,w="";for(;S;){const{done:C,value:R}=await S.read();if(l(!1),C)break;let A=new TextDecoder().decode(R);if(E){const D=A.split(` -`);s(D[0]),E=!1,A=D.slice(1).join(` -`)}w+=A,i(w)}c(!0)},[t.accessToken,(h=n.data)==null?void 0:h.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:u,mutateAsync:f}},obt=e=>{var c;const t=pi(QT),n=pi(WF),[r,i]=N.useState(null),[a,s]=N.useState(!1),[o,l]=N.useState(!1),u=N.useCallback(async f=>{var S,E;if(!e)return;s(!0),l(!1),i(null);const g=(E=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:f})})).body)==null?void 0:E.getReader();let b="";for(;g;){const{done:w,value:x}=await g.read();if(s(!1),w)break;const k=new TextDecoder().decode(x);b+=k,i(b)}l(!0)},[t.accessToken,(c=n.data)==null?void 0:c.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:u}},F1={};F1.write=async e=>{await navigator.clipboard.writeText(e)};F1.read=async()=>navigator.clipboard.readText();F1.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};F1.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};function sbe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[i]=e[i]);return n}function cre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var obe=hn.createContext(),cbt={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},xh={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Ug={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Yoe,transitionDuration:{enter:225,exit:195}},tw=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},dbt=function(t){return""+tw(t.vertical)+tw(t.horizontal)},fbt=function(t){return Object.keys(t).filter(function(n){return!cbt.container[n]}).reduce(function(n,r){var i;return Bi({},n,(i={},i[r]=t[r],i))},{})},pm={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},J4={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+tw(n)+tw(r)},toVariant:function(t){return"variant"+tw(t)}},QA=function(t){return!!t||t===0},dre=function(t){return typeof t=="number"||t===null},hbt=function(t,n,r){return function(i){return i==="autoHideDuration"?dre(t.autoHideDuration)?t.autoHideDuration:dre(n.autoHideDuration)?n.autoHideDuration:Ug.autoHideDuration:t[i]||n[i]||r[i]}};function c7(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Bi({},n,{},t,{},e)}var pbt="SnackbarContent",lbe={root:pbt+"-root"},mbt=Re("div")(function(e){var t,n,r=e.theme;return n={},n["&."+lbe.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),gbt=N.forwardRef(function(e,t){var n=e.className,r=Gm(e,["className"]);return hn.createElement(mbt,Object.assign({ref:t,className:Ox(lbe.root,n)},r))}),fre={right:"left",left:"right",bottom:"up",top:"down"},bbt=function(t){return t.horizontal!=="center"?fre[t.horizontal]:fre[t.vertical]},ybt=function(t){return hn.createElement(Jm,Object.assign({},t),hn.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 - 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},vbt=function(t){return hn.createElement(Jm,Object.assign({},t),hn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Obt=function(t){return hn.createElement(Jm,Object.assign({},t),hn.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, +`));const t=N.useMemo(()=>M({},jht,e.localeText),[e.localeText]);return N.useMemo(()=>M({},e,{localeText:t}),[e,t])},yr=()=>Pd().utils,L1=()=>Pd().defaultDates,cs=()=>Pd().localeText,D0=e=>{const t=yr(),n=N.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function p1e(e){return $t("MuiPickersToolbar",e)}Ft("MuiPickersToolbar",["root","content"]);const Hht=e=>{const{classes:t,isLandscape:n}=e;return Mt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},p1e,t)},Vht=Re("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>M({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Wht=Re("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),DW=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbar"}),{children:i,className:a,toolbarTitle:s,hidden:o,titleId:l}=r,u=r,c=Hht(u);return o?null:I.jsxs(Vht,{ref:n,className:dt(c.root,a),ownerState:u,children:[I.jsx(Sr,{color:"text.secondary",variant:"overline",id:l,children:s}),I.jsx(Wht,{className:c.content,ownerState:u,children:i})]})});function Qht(e){return $t("MuiDatePickerToolbar",e)}Ft("MuiDatePickerToolbar",["root","title"]);const qht=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],Ght=e=>{const{classes:t}=e;return Mt({root:["root"],title:["title"]},Qht,t)},Yht=Re(DW,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zht=Re(Sr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>M({},e.isLandscape&&{margin:"auto 16px auto auto"})),Xht=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:a,toolbarFormat:s,toolbarPlaceholder:o="––",views:l}=r,u=at(r,qht),c=yr(),f=cs(),h=Ght(r),g=N.useMemo(()=>{if(!i)return o;const S=gx(c,{format:s,views:l},!0);return c.formatByString(i,S)},[i,s,o,c,l]),b=r;return I.jsx(Yht,M({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:h.root},u,{children:I.jsx(Zht,{variant:"h4",align:a?"left":"center",ownerState:b,className:h.title,children:g})}))}),XT=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>M({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function m1e(e,t){var n,r,i,a;const s=yr(),o=L1(),l=_t({props:e,name:t}),u=N.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:M({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:XT(l.components);return M({},l,{localeText:u},CW({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(i=l.disablePast)!=null?i:!1,minDate:Eo(s,l.minDate,o.minDate),maxDate:Eo(s,l.maxDate,o.maxDate),slots:M({toolbar:Xht},c),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const Kht=Wa(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Jht=Wa(I.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),ept=Wa(I.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),g1e=Wa(I.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),tpt=Wa(I.jsxs(N.Fragment,{children:[I.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),I.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),npt=Wa(I.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),rpt=Wa(I.jsxs(N.Fragment,{children:[I.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),I.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),ipt=Wa(I.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function apt(e){return $t("MuiPickersArrowSwitcher",e)}Ft("MuiPickersArrowSwitcher",["root","spacer","button"]);const spt=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],opt=["ownerState"],lpt=["ownerState"],upt=Re("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),cpt=Re("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),tre=Re(wa,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>M({},e.hidden&&{visibility:"hidden"})),dpt=e=>{const{classes:t}=e;return Mt({root:["root"],spacer:["spacer"],button:["button"]},apt,t)},b1e=N.forwardRef(function(t,n){var r,i,a,s;const l=Ni().direction==="rtl",u=_t({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:f,slots:h,slotProps:g,isNextDisabled:b,isNextHidden:S,onGoToNext:w,nextLabel:E,isPreviousDisabled:x,isPreviousHidden:k,onGoToPrevious:C,previousLabel:R}=u,A=at(u,spt),D=u,B=dpt(D),L={isDisabled:b,isHidden:S,goTo:w,label:E},F={isDisabled:x,isHidden:k,goTo:C,label:R},W=(r=h==null?void 0:h.previousIconButton)!=null?r:tre,V=cr({elementType:W,externalSlotProps:g==null?void 0:g.previousIconButton,additionalProps:{size:"medium",title:F.label,"aria-label":F.label,disabled:F.isDisabled,edge:"end",onClick:F.goTo},ownerState:M({},D,{hidden:F.isHidden}),className:B.button}),Z=(i=h==null?void 0:h.nextIconButton)!=null?i:tre,Q=cr({elementType:Z,externalSlotProps:g==null?void 0:g.nextIconButton,additionalProps:{size:"medium",title:L.label,"aria-label":L.label,disabled:L.isDisabled,edge:"start",onClick:L.goTo},ownerState:M({},D,{hidden:L.isHidden}),className:B.button}),H=(a=h==null?void 0:h.leftArrowIcon)!=null?a:Jht,J=cr({elementType:H,externalSlotProps:g==null?void 0:g.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),K=at(J,opt),X=(s=h==null?void 0:h.rightArrowIcon)!=null?s:ept,te=cr({elementType:X,externalSlotProps:g==null?void 0:g.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),z=at(te,lpt);return I.jsxs(upt,M({ref:n,className:dt(B.root,f),ownerState:D},A,{children:[I.jsx(W,M({},V,{children:l?I.jsx(X,M({},z)):I.jsx(H,M({},K))})),c?I.jsx(Sr,{variant:"subtitle1",component:"span",children:c}):I.jsx(cpt,{className:B.spacer,ownerState:D}),I.jsx(Z,M({},Q,{children:l?I.jsx(H,M({},K)):I.jsx(X,M({},z))}))]}))}),yx=36,VI=2,WI=320,fpt=280,QI=334,y1e=232,d2=48,hpt=Re(B6e)({[`& .${_2.container}`]:{outline:0},[`& .${_2.paper}`]:{outline:0,minWidth:WI}}),ppt=Re(J6e)({"&:first-of-type":{padding:0}});function mpt(e){var t,n;const{children:r,onDismiss:i,open:a,slots:s,slotProps:o}=e,l=(t=s==null?void 0:s.dialog)!=null?t:hpt,u=(n=s==null?void 0:s.mobileTransition)!=null?n:tp;return I.jsx(l,M({open:a,onClose:i},o==null?void 0:o.dialog,{TransitionComponent:u,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:I.jsx(ppt,{children:r})}))}function gpt(e){return $t("MuiPickersPopper",e)}Ft("MuiPickersPopper",["root","paper"]);function py(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const bpt=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},d5=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?d5(t.shadowRoot):t:null},NW="@media (pointer: fine)",ypt="@media (prefers-reduced-motion: reduce)",uv=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),nre=uv&&uv[1]?parseInt(uv[1],10):null,rre=uv&&uv[2]?parseInt(uv[2],10):null,vpt=nre&&nre<10||rre&&rre<13||!1,v1e=()=>TO(ypt,{defaultMatches:!1})||vpt,Opt=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Spt=e=>{const{classes:t}=e;return Mt({root:["root"],paper:["paper"]},gpt,t)},Ept=Re(wO,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),wpt=Re(Ts,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>M({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function xpt(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const s=on(l=>{if(!a.current)return;const u=r.current;r.current=!1;const c=Ei(i.current);if(!i.current||"clientX"in l&&xpt(l,c))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(i.current)>-1:f=!c.documentElement.contains(l.target)||i.current.contains(l.target),!f&&!u&&t(l)}),o=()=>{r.current=!0};return N.useEffect(()=>{if(e){const l=Ei(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",u)}}},[e,s]),N.useEffect(()=>{if(e){const l=Ei(i.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[i,o,o]}const kpt=N.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:a,paperSlotProps:s,paperClasses:o,onPaperClick:l,onPaperTouchStart:u}=e,c=at(e,Opt),f=M({},i,{placement:r}),h=cr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:o,ownerState:f});return I.jsx(n,M({},c,h,{onClick:g=>{var b;l(g),(b=h.onClick)==null||b.call(h,g)},onTouchStart:g=>{var b;u(g),(b=h.onTouchStart)==null||b.call(h,g)},ownerState:f,children:a}))});function Cpt(e){var t,n,r,i;const a=_t({props:e,name:"MuiPickersPopper"}),{anchorEl:s,children:o,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:f,open:h,role:g,placement:b,slots:S,slotProps:w,reduceAnimations:E}=a;N.useEffect(()=>{function te(z){h&&(z.key==="Escape"||z.key==="Esc")&&f()}return document.addEventListener("keydown",te),()=>{document.removeEventListener("keydown",te)}},[f,h]);const x=N.useRef(null);N.useEffect(()=>{g==="tooltip"||u&&!u()||(h?x.current=d5(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[h,g,u]);const[k,C,R]=Tpt(h,c??f),A=N.useRef(null),D=Jn(A,l),B=Jn(D,k),L=a,F=Spt(L),W=v1e(),V=E??W,Z=te=>{te.key==="Escape"&&(te.stopPropagation(),f())},Q=((t=S==null?void 0:S.desktopTransition)!=null?t:V)?tp:G_,H=(n=S==null?void 0:S.desktopTrapFocus)!=null?n:_oe,J=(r=S==null?void 0:S.desktopPaper)!=null?r:wpt,K=(i=S==null?void 0:S.popper)!=null?i:Ept,X=cr({elementType:K,externalSlotProps:w==null?void 0:w.popper,additionalProps:{transition:!0,role:g,open:h,anchorEl:s,placement:b,onKeyDown:Z},className:F.root,ownerState:a});return I.jsx(K,M({},X,{children:({TransitionProps:te,placement:z})=>I.jsx(H,M({open:h,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},w==null?void 0:w.desktopTrapFocus,{children:I.jsx(Q,M({},te,w==null?void 0:w.desktopTransition,{children:I.jsx(kpt,{PaperComponent:J,ownerState:L,popperPlacement:z,ref:B,onPaperClick:C,onPaperTouchStart:R,paperClasses:F.paper,paperSlotProps:w==null?void 0:w.desktopPaper,children:o})}))}))}))}function Apt(e){return $t("MuiPickersToolbarText",e)}const ire=Ft("MuiPickersToolbarText",["root","selected"]),_pt=["className","selected","value"],Rpt=e=>{const{classes:t,selected:n}=e;return Mt({root:["root",n&&"selected"]},Apt,t)},Ipt=Re(Sr,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${ire.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${ire.selected}`]:{color:(e.vars||e).palette.text.primary}})),PW=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbarText"}),{className:i,value:a}=r,s=at(r,_pt),o=Rpt(r);return I.jsx(Ipt,M({ref:n,className:dt(i,o.root),component:"span"},s,{children:a}))}),Dpt=["align","className","selected","typographyClassName","value","variant","width"],Npt=e=>{const{classes:t}=e;return Mt({root:["root"]},p1e,t)},Ppt=Re(Qs,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ou=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:a,selected:s,typographyClassName:o,value:l,variant:u,width:c}=r,f=at(r,Dpt),h=Npt(r);return I.jsx(Ppt,M({variant:"text",ref:n,className:dt(a,h.root)},c?{sx:{width:c}}:{},f,{children:I.jsx(PW,{align:i,className:o,variant:u,value:l,selected:s})}))}),MW=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var a,s;const o=yr(),l=N.useRef(n),u=(a=t??l.current)!=null?a:i.emptyValue,c=N.useMemo(()=>i.getTimezone(o,u),[o,i,u]),f=on(S=>c==null?S:i.setTimezone(o,c,S)),h=(s=e??c)!=null?s:"default",g=N.useMemo(()=>i.setTimezone(o,h,u),[i,o,h,u]),b=on((S,...w)=>{const E=f(S);r==null||r(E,...w)});return{value:g,handleValueChange:b,timezone:h}},ZO=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:a})=>{const[s,o]=ws({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=on((u,...c)=>{o(u),i==null||i(u,...c)});return MW({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:a})};function O1e(e,t,n,r){const{value:i,onError:a}=e,s=Pd(),o=N.useRef(r),l=t({adapter:s,value:i,props:e});return N.useEffect(()=>{a&&!n(l,o.current)&&a(l,i),o.current=l},[n,a,o,l,i]),l}const Mpt=e=>{const t=yr(),n=cs(),r=Pd(),a=Ni().direction==="rtl",{valueManager:s,fieldValueManager:o,valueType:l,validator:u,internalProps:c,internalProps:{value:f,defaultValue:h,referenceDate:g,onChange:b,format:S,formatDensity:w="dense",selectedSections:E,onSelectedSectionsChange:x,shouldRespectLeadingZeros:k=!1,timezone:C}}=e,{timezone:R,value:A,handleValueChange:D}=MW({timezone:C,value:f,defaultValue:h,onChange:b,valueManager:s}),B=N.useMemo(()=>Mht(t,R),[t,R]),L=N.useCallback((ye,Oe=null)=>o.getSectionsFromValue(t,ye,Oe,a,ie=>Kne(t,R,n,S,ie,w,k,a)),[o,S,n,a,k,t,w,R]),F=N.useMemo(()=>o.getValueStrFromSections(L(s.emptyValue),a),[o,L,s.emptyValue,a]),[W,V]=N.useState(()=>{const ye=L(A),Oe={sections:ye,value:A,referenceValue:s.emptyValue,tempValueStrAndroid:null},ie=Cht(ye),_e=s.getInitialReferenceValue({referenceDate:g,value:A,utils:t,props:c,granularity:ie,timezone:R});return M({},Oe,{referenceValue:_e})}),[Z,Q]=ws({controlled:E,default:null,name:"useField",state:"selectedSectionIndexes"}),H=ye=>{Q(ye),x==null||x(ye),V(Oe=>M({},Oe,{selectedSectionQuery:null}))},J=N.useMemo(()=>{if(Z==null)return null;if(Z==="all")return{startIndex:0,endIndex:W.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof Z=="number")return{startIndex:Z,endIndex:Z};if(typeof Z=="string"){const ye=W.sections.findIndex(Oe=>Oe.type===Z);return{startIndex:ye,endIndex:ye}}return Z},[Z,W.sections]),K=({value:ye,referenceValue:Oe,sections:ie})=>{if(V(Ie=>M({},Ie,{sections:ie,value:ye,referenceValue:Oe,tempValueStrAndroid:null})),s.areValuesEqual(t,W.value,ye))return;const _e={validationError:u({adapter:r,value:ye,props:M({},c,{value:ye,timezone:R})})};D(ye,_e)},X=(ye,Oe)=>{const ie=[...W.sections];return ie[ye]=M({},ie[ye],{value:Oe,modified:!0}),u1e(ie,a)},te=()=>{K({value:s.emptyValue,referenceValue:W.referenceValue,sections:L(s.emptyValue)})},z=()=>{if(J==null)return;const ye=W.sections[J.startIndex],Oe=o.getActiveDateManager(t,W,ye),_e=Oe.getSections(W.sections).filter(Pe=>Pe.value!=="").length===(ye.value===""?0:1),Ie=X(J.startIndex,""),qe=_e?null:t.date(new Date("")),st=Oe.getNewValuesFromNewActiveDate(qe);(qe!=null&&!t.isValid(qe))!=(Oe.date!=null&&!t.isValid(Oe.date))?K(M({},st,{sections:Ie})):V(Pe=>M({},Pe,st,{sections:Ie,tempValueStrAndroid:null}))},Te=ye=>{const Oe=(Ie,qe)=>{const st=t.parse(Ie,S);if(st==null||!t.isValid(st))return null;const Pe=Kne(t,R,n,S,st,w,k,a);return ere(t,R,st,Pe,qe,!1)},ie=o.parseValueStr(ye,W.referenceValue,Oe),_e=o.updateReferenceValue(t,ie,W.referenceValue);K({value:ie,referenceValue:_e,sections:L(ie,W.sections)})},be=({activeSection:ye,newSectionValue:Oe,shouldGoToNextSection:ie})=>{ie&&J&&J.startIndexM({},Ve,Pe,{sections:Ie,tempValueStrAndroid:null}))},ee=ye=>V(Oe=>M({},Oe,{tempValueStrAndroid:ye}));return N.useEffect(()=>{const ye=L(W.value);V(Oe=>M({},Oe,{sections:ye}))},[S,t.locale]),N.useEffect(()=>{let ye=!1;s.areValuesEqual(t,W.value,A)?ye=s.getTimezone(t,W.value)!==s.getTimezone(t,A):ye=!0,ye&&V(Oe=>M({},Oe,{value:A,referenceValue:o.updateReferenceValue(t,A,Oe.referenceValue),sections:L(A)}))},[A]),{state:W,selectedSectionIndexes:J,setSelectedSections:H,clearValue:te,clearActiveSection:z,updateSectionValue:be,updateValueFromValueStr:Te,setTempAndroidValueStr:ee,sectionsValueBoundaries:B,placeholder:F,timezone:R}},Lpt=5e3,ey=e=>e.saveQuery!=null,$pt=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const a=yr(),[s,o]=N.useState(null),l=on(()=>o(null));N.useEffect(()=>{var g;s!=null&&((g=e[s.sectionIndex])==null?void 0:g.type)!==s.sectionType&&l()},[e,s,l]),N.useEffect(()=>{if(s!=null){const g=setTimeout(()=>l(),Lpt);return()=>{window.clearTimeout(g)}}return()=>{}},[s,l]);const u=({keyPressed:g,sectionIndex:b},S,w)=>{const E=g.toLowerCase(),x=e[b];if(s!=null&&(!w||w(s.value))&&s.sectionIndex===b){const C=`${s.value}${E}`,R=S(C,x);if(!ey(R))return o({sectionIndex:b,value:C,sectionType:x.type}),R}const k=S(E,x);return ey(k)&&!k.saveQuery?(l(),null):(o({sectionIndex:b,value:E,sectionType:x.type}),ey(k)?null:k)},c=g=>{const b=(E,x,k)=>{const C=x.filter(R=>R.toLowerCase().startsWith(k));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},S=(E,x,k,C)=>{const R=A=>s1e(a,i,x.type,A);if(x.contentType==="letter")return b(x.format,R(x.format),E);if(k&&C!=null&&a1e(a,k).contentType==="letter"){const A=R(k),D=b(k,A,E);return ey(D)?{saveQuery:!1}:M({},D,{sectionValue:C(D.sectionValue,A)})}return{saveQuery:!1}};return u(g,(E,x)=>{switch(x.type){case"month":{const k=C=>Xne(a,C,a.formats.month,x.format);return S(E,x,a.formats.month,k)}case"weekDay":{const k=(C,R)=>R.indexOf(C).toString();return S(E,x,a.formats.weekday,k)}case"meridiem":return S(E,x);default:return{saveQuery:!1}}})},f=g=>{const b=(w,E)=>{const x=+`${w}`,k=n[E.type]({currentDate:null,format:E.format,contentType:E.contentType});if(x>k.maximum)return{saveQuery:!1};if(xk.maximum||w.length===k.maximum.toString().length;return{sectionValue:l1e(a,i,x,k,E),shouldGoToNextSection:C}};return u(g,(w,E)=>{if(E.contentType==="digit"||E.contentType==="digit-with-letter")return b(w,E);if(E.type==="month"){const x=d1e(a,i,"digit","month","MM"),k=b(w,{type:E.type,format:"MM",hasLeadingZerosInFormat:x,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ey(k))return k;const C=Xne(a,k.sectionValue,"MM",E.format);return M({},k,{sectionValue:C})}if(E.type==="weekDay"){const x=b(w,E);if(ey(x))return x;const k=HI(a,i,E.format)[Number(x.sectionValue)-1];return M({},x,{sectionValue:k})}return{saveQuery:!1}},w=>!Number.isNaN(Number(w)))};return{applyCharacterEditing:on(g=>{const b=e[g.sectionIndex],w=!Number.isNaN(Number(g.keyPressed))?f(g):c(g);w==null?r(null):t({activeSection:b,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:l}},Fpt=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],LW=e=>{const t=yr(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:a,clearActiveSection:s,updateSectionValue:o,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:f,timezone:h}=Mpt(e),{inputRef:g,internalProps:b,internalProps:{readOnly:S=!1,unstableFieldRef:w,minutesStep:E},forwardedProps:{onClick:x,onKeyDown:k,onFocus:C,onBlur:R,onMouseUp:A,onPaste:D,error:B,clearable:L,onClear:F,disabled:W},fieldValueManager:V,valueManager:Z,validator:Q}=e,H=at(e.forwardedProps,Fpt),{applyCharacterEditing:J,resetCharacterQuery:K}=$pt({sections:n.sections,updateSectionValue:o,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:h}),X=N.useRef(null),te=Jn(g,X),z=N.useRef(void 0),be=Ni().direction==="rtl",ee=N.useMemo(()=>Fht(n.sections,be),[n.sections,be]),ye=()=>{var le;if(S){i(null);return}const he=(le=X.current.selectionStart)!=null?le:0;let je;he<=n.sections[0].startInInput||he>=n.sections[n.sections.length-1].endInInput?je=1:je=n.sections.findIndex(We=>We.startInInput-We.startSeparator.length>he);const Ze=je===-1?n.sections.length-1:je-1;i(Ze)},Oe=on((le,...he)=>{le.isDefaultPrevented()||(x==null||x(le,...he),ye())}),ie=on(le=>{A==null||A(le),le.preventDefault()}),_e=on((...le)=>{C==null||C(...le);const he=X.current;window.clearTimeout(z.current),z.current=setTimeout(()=>{!he||he!==X.current||r!=null||S||(he.value.length&&Number(he.selectionEnd)-Number(he.selectionStart)===he.value.length?i("all"):ye())})}),Ie=on((...le)=>{R==null||R(...le),i(null)}),qe=on(le=>{if(D==null||D(le),S){le.preventDefault();return}const he=le.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const je=n.sections[r.startIndex],Ze=/^[a-zA-Z]+$/.test(he),We=/^[0-9]+$/.test(he),fe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(he);if(je.contentType==="letter"&&Ze||je.contentType==="digit"&&We||je.contentType==="digit-with-letter"&&fe){K(),o({activeSection:je,newSectionValue:he,shouldGoToNextSection:!0}),le.preventDefault();return}if(Ze||We){le.preventDefault();return}}le.preventDefault(),K(),l(he)}),st=on(le=>{if(S)return;const he=le.target.value;if(he===""){K(),a();return}const je=le.nativeEvent.data,Ze=je&&je.length>1,We=Ze?je:he,fe=Fy(We);if(r==null||Ze){l(Ze?je:fe);return}let xe;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&fe.length===1)xe=fe;else{const ve=Fy(V.getValueStrFromSections(n.sections,be));let De=-1,$e=-1;for(let gt=0;gtvt.end)return;const Kt=fe.length-ve.length+vt.end-Fy(vt.endSeparator||"").length;xe=fe.slice(vt.start+Fy(vt.startSeparator||"").length,Kt)}if(xe.length===0){$ht()?u(We):(K(),s());return}J({keyPressed:xe,sectionIndex:r.startIndex})}),Pe=on(le=>{switch(k==null||k(le),!0){case(le.key==="a"&&(le.ctrlKey||le.metaKey)):{le.preventDefault(),i("all");break}case le.key==="ArrowRight":{if(le.preventDefault(),r==null)i(ee.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const he=ee.neighbors[r.startIndex].rightIndex;he!==null&&i(he)}break}case le.key==="ArrowLeft":{if(le.preventDefault(),r==null)i(ee.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const he=ee.neighbors[r.startIndex].leftIndex;he!==null&&i(he)}break}case le.key==="Delete":{if(le.preventDefault(),S)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():s(),K();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(le.key):{if(le.preventDefault(),S||r==null)break;const he=n.sections[r.startIndex],je=V.getActiveDateManager(t,n,he),Ze=Rht(t,h,he,le.key,c,je.date,{minutesStep:E});o({activeSection:he,newSectionValue:Ze,shouldGoToNextSection:!1});break}}});la(()=>{if(!X.current)return;if(r==null){X.current.scrollLeft&&(X.current.scrollLeft=0);return}const le=n.sections[r.startIndex],he=n.sections[r.endIndex];let je=le.startInInput,Ze=he.endInInput;if(r.shouldSelectBoundarySelectors&&(je-=le.startSeparator.length,Ze+=he.endSeparator.length),je!==X.current.selectionStart||Ze!==X.current.selectionEnd){const We=X.current.scrollTop;X.current===d5(document)&&X.current.setSelectionRange(je,Ze),X.current.scrollTop=We}});const tt=O1e(M({},b,{value:n.value,timezone:h}),Q,Z.isSameError,Z.defaultErrorState),Ve=N.useMemo(()=>B!==void 0?B:Z.hasError(tt),[Z,tt,B]);N.useEffect(()=>{!Ve&&!r&&K()},[n.referenceValue,r,Ve]),N.useEffect(()=>(X.current&&X.current===document.activeElement&&i("all"),()=>window.clearTimeout(z.current)),[]),N.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(K(),s())},[n.tempValueStrAndroid]);const Xe=N.useMemo(()=>{var le;return(le=n.tempValueStrAndroid)!=null?le:V.getValueStrFromSections(n.sections,be)},[n.sections,V,n.tempValueStrAndroid,be]),et=N.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),ft=X.current&&X.current===d5(document),At=Z.areValuesEqual(t,n.value,Z.emptyValue),Je=!ft&&At;N.useImperativeHandle(w,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var le,he;const je=(le=X.current.selectionStart)!=null?le:0,Ze=(he=X.current.selectionEnd)!=null?he:0;if(je===0&&Ze===0)return null;const We=je<=n.sections[0].startInInput?1:n.sections.findIndex(fe=>fe.startInInput-fe.startSeparator.length>je);return We===-1?n.sections.length-1:We-1},setSelectedSections:le=>i(le)}));const pe=on((le,...he)=>{var je;le.preventDefault(),F==null||F(le,...he),a(),X==null||(je=X.current)==null||je.focus(),i(0)});return M({placeholder:f,autoComplete:"off",disabled:!!W},H,{value:Je?"":Xe,inputMode:et,readOnly:S,onClick:Oe,onFocus:_e,onBlur:Ie,onPaste:qe,onChange:st,onKeyDown:Pe,onMouseUp:ie,onClear:pe,error:Ve,ref:te,clearable:!!(L&&!At&&!S&&!W)})},Bpt=({open:e,onOpen:t,onClose:n})=>{const r=N.useRef(typeof e=="boolean").current,[i,a]=N.useState(!1);N.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const s=N.useCallback(o=>{r||a(o),o&&t&&t(),!o&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:s}},Upt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},zpt=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:a}=e,s=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},jpt=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Hpt=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:a,onChange:s,value:o,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:f,timezone:h}=e,{current:g}=N.useRef(l),{current:b}=N.useRef(o!==void 0),S=yr(),w=Pd(),[E,x]=ws({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:k,setIsOpen:C}=Bpt(e),[R,A]=N.useState(()=>{let _e;return o!==void 0?_e=o:g!==void 0?_e=g:_e=t.emptyValue,{draft:_e,lastPublishedValue:_e,lastCommittedValue:_e,lastControlledValue:o,hasBeenModifiedSinceMount:!1}}),{timezone:D,handleValueChange:B}=MW({timezone:h,value:o,defaultValue:g,onChange:s,valueManager:t});O1e(M({},e,{value:R.draft,timezone:D}),i,t.isSameError,t.defaultErrorState);const L=on(_e=>{const Ie={action:_e,dateState:R,hasChanged:tt=>!t.areValuesEqual(S,_e.value,tt),isControlled:b,closeOnSelect:u},qe=Upt(Ie),st=zpt(Ie),Pe=jpt(Ie);if(A(tt=>M({},tt,{draft:_e.value,lastPublishedValue:qe?_e.value:tt.lastPublishedValue,lastCommittedValue:st?_e.value:tt.lastCommittedValue,hasBeenModifiedSinceMount:!0})),qe){const Ve={validationError:_e.name==="setValueFromField"?_e.context.validationError:i({adapter:w,value:_e.value,props:M({},e,{value:_e.value,timezone:D})})};_e.name==="setValueFromShortcut"&&_e.shortcut!=null&&(Ve.shortcut=_e.shortcut),B(_e.value,Ve)}st&&a&&a(_e.value),Pe&&C(!1)});if(o!==void 0&&(R.lastControlledValue===void 0||!t.areValuesEqual(S,R.lastControlledValue,o))){const _e=t.areValuesEqual(S,R.draft,o);A(Ie=>M({},Ie,{lastControlledValue:o},_e?{}:{lastCommittedValue:o,lastPublishedValue:o,draft:o,hasBeenModifiedSinceMount:!0}))}const F=on(()=>{L({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),W=on(()=>{L({value:R.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),V=on(()=>{L({value:R.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),Z=on(()=>{L({value:R.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),Q=on(()=>{L({value:t.getTodayValue(S,D,n),name:"setValueFromAction",pickerAction:"today"})}),H=on(()=>C(!0)),J=on(()=>C(!1)),K=on((_e,Ie="partial")=>L({name:"setValueFromView",value:_e,selectionState:Ie})),X=on((_e,Ie,qe)=>L({name:"setValueFromShortcut",value:_e,changeImportance:Ie??"accept",shortcut:qe})),te=on((_e,Ie)=>L({name:"setValueFromField",value:_e,context:Ie})),z=on(_e=>{x(_e),f==null||f(_e)}),Te={onClear:F,onAccept:W,onDismiss:V,onCancel:Z,onSetToday:Q,onOpen:H,onClose:J},be={value:R.draft,onChange:te,selectedSections:E,onSelectedSectionsChange:z},ee=N.useMemo(()=>t.cleanValue(S,R.draft),[S,t,R.draft]),ye={value:ee,onChange:K,onClose:J,open:k,onSelectedSectionsChange:z},ie=M({},Te,{value:ee,onChange:K,onSelectShortcut:X,isValid:_e=>{const Ie=i({adapter:w,value:_e,props:M({},e,{value:_e,timezone:D})});return!t.hasError(Ie)}});return{open:k,fieldProps:be,viewProps:ye,layoutProps:ie,actions:Te}};function KT({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:a,focusedView:s,onFocusedViewChange:o}){var l,u;const c=N.useRef(n),f=N.useRef(i),h=N.useRef(i.includes(n)?n:i[0]),[g,b]=ws({name:"useViews",state:"view",controlled:r,default:h.current}),S=N.useRef(a?g:null),[w,E]=ws({name:"useViews",state:"focusedView",controlled:s,default:S.current});N.useEffect(()=>{(c.current&&c.current!==n||f.current&&f.current.some(L=>!i.includes(L)))&&(b(i.includes(n)?n:i[0]),f.current=i,c.current=n)},[n,b,g,i]);const x=i.indexOf(g),k=(l=i[x-1])!=null?l:null,C=(u=i[x+1])!=null?u:null,R=on((L,F)=>{E(F?L:W=>L===W?null:W),o==null||o(L,F)}),A=on(L=>{R(L,!0),L!==g&&(b(L),t&&t(L))}),D=on(()=>{C&&A(C)}),B=on((L,F,W)=>{const V=F==="finish",Z=W?i.indexOf(W){const{onChange:a,open:s,onSelectedSectionsChange:o,onClose:l}=t,{views:u,openTo:c,onViewChange:f,disableOpenPicker:h,viewRenderers:g,timezone:b}=e,S=at(e,Vpt),{view:w,setView:E,defaultView:x,focusedView:k,setFocusedView:C,setValueAndGoToNextView:R}=KT({view:void 0,views:u,openTo:c,onChange:a,onViewChange:f,autoFocus:i}),{hasUIView:A,viewModeLookup:D}=N.useMemo(()=>u.reduce((Q,H)=>{let J;return h?J="field":g[H]!=null?J="UI":J="field",Q.viewModeLookup[H]=J,J==="UI"&&(Q.hasUIView=!0),Q},{hasUIView:!1,viewModeLookup:{}}),[h,g,u]),B=N.useMemo(()=>u.reduce((Q,H)=>g[H]!=null&&cO(H)?Q+1:Q,0),[g,u]),L=D[w],F=on(()=>L==="UI"),[W,V]=N.useState(L==="UI"?w:null);return W!==w&&D[w]==="UI"&&V(w),la(()=>{L==="field"&&s&&(l(),setTimeout(()=>{r==null||r.current.focus(),o(w)}))},[w]),la(()=>{if(!s)return;let Q=w;L==="field"&&W!=null&&(Q=W),Q!==x&&D[Q]==="UI"&&D[x]==="UI"&&(Q=x),Q!==w&&E(Q),C(Q,!0)},[s]),{hasUIView:A,shouldRestoreFocus:F,layoutProps:{views:u,view:W,onViewChange:E},renderCurrentView:()=>{if(W==null)return null;const Q=g[W];return Q==null?null:Q(M({},S,n,t,{views:u,timezone:b,onChange:R,view:W,onViewChange:E,focusedView:k,onFocusedViewChange:C,showViewSwitcher:B>1,timeViewsCount:B}))}}};function are(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Qpt=(e,t)=>{const[n,r]=N.useState(are);return la(()=>{const a=()=>{r(are())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),py(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},qpt=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,a=Qpt(n.views,i);return{layoutProps:M({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Gpt=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};Gpt(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const S1e=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:a,validator:s,autoFocusView:o})=>{const l=Hpt({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=Wpt({props:e,inputRef:i,additionalViewProps:a,autoFocusView:o,propsFromPickerValue:l.viewProps}),c=qpt({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function E1e(e){return $t("MuiPickersLayout",e)}const c7=Ft("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),Ypt=["onAccept","onClear","onCancel","onSetToday","actions"];function Zpt(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:a}=e,s=at(e,Ypt),o=cs();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(u=>{switch(u){case"clear":return I.jsx(Qs,{onClick:n,children:o.clearButtonLabel},u);case"cancel":return I.jsx(Qs,{onClick:r,children:o.cancelButtonLabel},u);case"accept":return I.jsx(Qs,{onClick:t,children:o.okButtonLabel},u);case"today":return I.jsx(Qs,{onClick:i,children:o.todayButtonLabel},u);default:return null}});return I.jsx(W6e,M({},s,{children:l}))}const Xpt=["items","changeImportance","isLandscape","onChange","isValid"],Kpt=["getValue"];function Jpt(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,a=at(e,Xpt);if(t==null||t.length===0)return null;const s=t.map(o=>{let{getValue:l}=o,u=at(o,Kpt);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return I.jsx(gF,M({dense:!0,sx:[{maxHeight:QI,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(o=>I.jsx(Y_,{children:I.jsx(dF,M({},o))},o.label))}))}function emt(e){return e.view!==null}const tmt=e=>{const{classes:t,isLandscape:n}=e;return Mt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},E1e,t)},nmt=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:a,onCancel:s,onSetToday:o,view:l,views:u,onViewChange:c,value:f,onChange:h,onSelectShortcut:g,isValid:b,isLandscape:S,disabled:w,readOnly:E,children:x,components:k,componentsProps:C,slots:R,slotProps:A}=e,D=R??XT(k),B=A??C,L=tmt(e),F=(t=D==null?void 0:D.actionBar)!=null?t:Zpt,W=cr({elementType:F,externalSlotProps:B==null?void 0:B.actionBar,additionalProps:{onAccept:i,onClear:a,onCancel:s,onSetToday:o,actions:r==="desktop"?[]:["cancel","accept"],className:L.actionBar},ownerState:M({},e,{wrapperVariant:r})}),V=I.jsx(F,M({},W)),Z=D==null?void 0:D.toolbar,Q=cr({elementType:Z,externalSlotProps:B==null?void 0:B.toolbar,additionalProps:{isLandscape:S,onChange:h,value:f,view:l,onViewChange:c,views:u,disabled:w,readOnly:E,className:L.toolbar},ownerState:M({},e,{wrapperVariant:r})}),H=emt(Q)&&Z?I.jsx(Z,M({},Q)):null,J=x,K=D==null?void 0:D.tabs,X=l&&K?I.jsx(K,M({view:l,onViewChange:c,className:L.tabs},B==null?void 0:B.tabs)):null,te=(n=D==null?void 0:D.shortcuts)!=null?n:Jpt,z=cr({elementType:te,externalSlotProps:B==null?void 0:B.shortcuts,additionalProps:{isValid:b,isLandscape:S,onChange:g,className:L.shortcuts},ownerState:{isValid:b,isLandscape:S,onChange:g,className:L.shortcuts,wrapperVariant:r}}),Te=l&&te?I.jsx(te,M({},z)):null;return{toolbar:H,content:J,tabs:X,actionBar:V,shortcuts:Te}},rmt=e=>{const{isLandscape:t,classes:n}=e;return Mt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},E1e,n)},w1e=Re("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${c7.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${c7.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${c7.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));w1e.propTypes={as:Y.elementType,ownerState:Y.shape({isLandscape:Y.bool.isRequired}).isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};const imt=Re("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),x1e=function(t){const n=_t({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:s,shortcuts:o}=nmt(n),{sx:l,className:u,isLandscape:c,ref:f,wrapperVariant:h}=n,g=n,b=rmt(g);return I.jsxs(w1e,{ref:f,sx:l,className:dt(u,b.root),ownerState:g,children:[c?o:r,c?r:o,I.jsx(imt,{className:b.contentWrapper,children:h==="desktop"?I.jsxs(N.Fragment,{children:[i,a]}):I.jsxs(N.Fragment,{children:[a,i]})}),s]})};function amt(e,{disableFuture:t,maxDate:n,timezone:r}){const i=yr();return N.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isBefore(a,n)?a:n);return!i.isAfter(s,e)},[t,n,e,i,r])}function smt(e,{disablePast:t,minDate:n,timezone:r}){const i=yr();return N.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isAfter(a,n)?a:n);return!i.isBefore(s,e)},[t,n,e,i,r])}function qI(e,t,n,r){const i=yr(),a=Tht(e,i),s=N.useCallback(o=>{const l=e==null?null:kht(e,o,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:a,handleMeridiemChange:s}}const r9=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],i9=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],T1e=["minDateTime","maxDateTime"],omt=[...r9,...i9,...T1e],XO=e=>omt.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),lmt=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],$W=(e,t)=>{const n=M({},e),r={},i=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return lmt.forEach(i),t==="date"?r9.forEach(i):t==="time"?i9.forEach(i):t==="date-time"&&(r9.forEach(i),i9.forEach(i),T1e.forEach(i)),{forwardedProps:n,internalProps:r}},$1=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:o,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=Eo(n.utils,e.minDate,n.defaultDates.minDate),f=Eo(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(o&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},JT=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:a,shouldDisableClock:s,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c,timezone:f}=n,h=e.utils.dateWithTimezone(void 0,f),g=ZT(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&g(r,t)):return"minTime";case!!(i&&g(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,h)):return"disableFuture";case!!(u&&e.utils.isBefore(t,h)):return"disablePast";case!!(o&&o(t,"hours")):return"shouldDisableTime-hours";case!!(o&&o(t,"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(t,"seconds")):return"shouldDisableTime-seconds";case!!(s&&s(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(s&&s(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(s&&s(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},GI=({props:e,value:t,adapter:n})=>{const r=$1({adapter:n,value:t,props:e});return r!==null?r:JT({adapter:n,value:t,props:e})};function umt(e){return $t("MuiPickersDay",e)}const pg=Ft("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),cmt=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],dmt=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:o,classes:l}=e,u=s&&!o;return Mt({root:["root",t&&!u&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",s&&o&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},umt,l)},k1e=({theme:e,ownerState:t})=>M({},e.typography.caption,{width:yx,height:yx,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${pg.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${pg.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${pg.disabled}:not(.${pg.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${pg.disabled}&.${pg.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${VI}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${pg.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),C1e=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},fmt=Re(Tu,{name:"MuiPickersDay",slot:"Root",overridesResolver:C1e})(k1e),hmt=Re("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:C1e})(({theme:e,ownerState:t})=>M({},k1e({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),zE=()=>{},pmt=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:a,day:s,disabled:o=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:f,onDaySelect:h,onFocus:g=zE,onBlur:b=zE,onKeyDown:S=zE,onMouseDown:w=zE,onMouseEnter:E=zE,outsideCurrentMonth:x,selected:k=!1,showDaysOutsideCurrentMonth:C=!1,children:R,today:A=!1}=r,D=at(r,cmt),B=M({},r,{autoFocus:i,disabled:o,disableHighlightToday:l,disableMargin:u,selected:k,showDaysOutsideCurrentMonth:C,today:A}),L=dmt(B),F=yr(),W=N.useRef(null),V=Jn(W,n);la(()=>{i&&!o&&!c&&!x&&W.current.focus()},[i,o,c,x]);const Z=H=>{w(H),x&&H.preventDefault()},Q=H=>{o||h(s),x&&H.currentTarget.focus(),f&&f(H)};return x&&!C?I.jsx(hmt,{className:dt(L.root,L.hiddenDaySpacingFiller,a),ownerState:B,role:D.role}):I.jsx(fmt,M({className:dt(L.root,a),ref:V,centerRipple:!0,disabled:o,tabIndex:k?0:-1,onKeyDown:H=>S(H,s),onFocus:H=>g(H,s),onBlur:H=>b(H,s),onMouseEnter:H=>E(H,s),onClick:Q,onMouseDown:Z},D,{ownerState:B,children:R||F.format(s,"dayOfMonth")}))}),mmt=N.memo(pmt),gmt=e=>$t("MuiPickersSlideTransition",e),Zu=Ft("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),bmt=["children","className","reduceAnimations","slideDirection","transKey","classes"],ymt=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Mt(r,gmt,t)},vmt=Re(nF,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Zu["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Zu["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Zu.slideEnterActive}`]:t.slideEnterActive},{[`.${Zu.slideExit}`]:t.slideExit},{[`.${Zu["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Zu["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Zu["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Zu["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Zu.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Zu.slideExit}`]:{transform:"translate(0%)"},[`& .${Zu["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Zu["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Omt(e){const t=_t({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=at(t,bmt),o=ymt(t),l=Ni();if(i)return I.jsx("div",{className:dt(o.root,r),children:n});const u={exit:o.exit,enterActive:o.enterActive,enter:o.enter,exitActive:o.exitActive};return I.jsx(vmt,{className:dt(o.root,r),childFactory:c=>N.cloneElement(c,{classNames:u}),role:"presentation",children:I.jsx(j4e,M({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),a)})}const A1e=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o})=>{const l=Pd();return N.useCallback(u=>$1({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o}})!==null,[l,e,t,n,r,i,a,s,o])},Smt=e=>$t("MuiDayCalendar",e);Ft("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Emt=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],wmt=["ownerState"],xmt=e=>{const{classes:t}=e;return Mt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Smt,t)},_1e=(yx+VI*2)*6,Tmt=Re("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kmt=Re("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Cmt=Re(Sr,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Amt=Re(Sr,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),_mt=Re(Sr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>M({},e.typography.caption,{width:yx,height:yx,padding:0,margin:`0 ${VI}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Rmt=Re("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:_1e}),Imt=Re(Omt,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:_1e}),Dmt=Re("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Nmt=Re("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${VI}px 0`,display:"flex",justifyContent:"center"});function Pmt(e){var t,n,r;let{parentProps:i,day:a,focusableDay:s,selectedDays:o,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,f=at(e,Emt);const{disabled:h,disableHighlightToday:g,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:S,components:w,componentsProps:E,slots:x,slotProps:k,timezone:C}=i,R=yr(),A=D0(C),D=s!==null&&R.isSameDay(a,s),B=o.some(K=>R.isSameDay(K,a)),L=R.isSameDay(a,A),F=(t=(n=x==null?void 0:x.day)!=null?n:w==null?void 0:w.Day)!=null?t:mmt,W=cr({elementType:F,externalSlotProps:(r=k==null?void 0:k.day)!=null?r:E==null?void 0:E.day,additionalProps:M({disableHighlightToday:g,showDaysOutsideCurrentMonth:S,role:"gridcell",isAnimating:b,"data-timestamp":R.toJsDate(a).valueOf()},f),ownerState:M({},i,{day:a,selected:B})}),V=at(W,wmt),Z=N.useMemo(()=>h||l(a),[h,l,a]),Q=N.useMemo(()=>R.getMonth(a)!==u,[R,a,u]),H=N.useMemo(()=>{const K=R.startOfMonth(R.setMonth(a,u));return S?R.isSameDay(a,R.startOfWeek(K)):R.isSameDay(a,K)},[u,a,S,R]),J=N.useMemo(()=>{const K=R.endOfMonth(R.setMonth(a,u));return S?R.isSameDay(a,R.endOfWeek(K)):R.isSameDay(a,K)},[u,a,S,R]);return I.jsx(F,M({},V,{day:a,disabled:Z,autoFocus:c&&D,today:L,outsideCurrentMonth:Q,isFirstVisibleCell:H,isLastVisibleCell:J,selected:B,tabIndex:D?0:-1,"aria-selected":B,"aria-current":L?"date":void 0}))}function Mmt(e){const t=_t({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:a,focusedDay:s,loading:o,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:f,renderLoading:h=()=>I.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:b,disablePast:S,disableFuture:w,minDate:E,maxDate:x,shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:R,dayOfWeekFormatter:A,hasFocus:D,onFocusedViewChange:B,gridLabelId:L,displayWeekNumber:F,fixedWeekNumber:W,autoFocus:V,timezone:Z}=t,Q=D0(Z),H=yr(),J=xmt(t),X=Ni().direction==="rtl",te=A||((Je,pe)=>H.format(pe,"weekdayShort").charAt(0).toUpperCase()),z=A1e({shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:R,minDate:E,maxDate:x,disablePast:S,disableFuture:w,timezone:Z}),Te=cs(),[be,ee]=ws({name:"DayCalendar",state:"hasFocus",controlled:D,default:V??!1}),[ye,Oe]=N.useState(()=>s||Q),ie=on(Je=>{c||l(Je)}),_e=Je=>{z(Je)||(n(Je),Oe(Je),B==null||B(!0),ee(!0))},Ie=on((Je,pe)=>{switch(Je.key){case"ArrowUp":_e(H.addDays(pe,-7)),Je.preventDefault();break;case"ArrowDown":_e(H.addDays(pe,7)),Je.preventDefault();break;case"ArrowLeft":{const le=H.addDays(pe,X?1:-1),he=H.addMonths(pe,X?1:-1),je=J2({utils:H,date:le,minDate:X?le:H.startOfMonth(he),maxDate:X?H.endOfMonth(he):le,isDateDisabled:z,timezone:Z});_e(je||le),Je.preventDefault();break}case"ArrowRight":{const le=H.addDays(pe,X?-1:1),he=H.addMonths(pe,X?-1:1),je=J2({utils:H,date:le,minDate:X?H.startOfMonth(he):le,maxDate:X?le:H.endOfMonth(he),isDateDisabled:z,timezone:Z});_e(je||le),Je.preventDefault();break}case"Home":_e(H.startOfWeek(pe)),Je.preventDefault();break;case"End":_e(H.endOfWeek(pe)),Je.preventDefault();break;case"PageUp":_e(H.addMonths(pe,1)),Je.preventDefault();break;case"PageDown":_e(H.addMonths(pe,-1)),Je.preventDefault();break}}),qe=on((Je,pe)=>_e(pe)),st=on((Je,pe)=>{be&&H.isSameDay(ye,pe)&&(B==null||B(!1))}),Pe=H.getMonth(i),tt=N.useMemo(()=>a.filter(Je=>!!Je).map(Je=>H.startOfDay(Je)),[H,a]),Ve=Pe,Xe=N.useMemo(()=>N.createRef(),[Ve]),et=H.startOfWeek(Q),ft=N.useMemo(()=>{const Je=H.startOfMonth(i),pe=H.endOfMonth(i);return z(ye)||H.isAfterDay(ye,pe)||H.isBeforeDay(ye,Je)?J2({utils:H,date:ye,minDate:Je,maxDate:pe,disablePast:S,disableFuture:w,isDateDisabled:z,timezone:Z}):ye},[i,w,S,ye,z,H,Z]),At=N.useMemo(()=>{const Je=H.setTimezone(i,Z),pe=H.getWeekArray(Je);let le=H.addMonths(Je,1);for(;W&&pe.length{pe.length{var le;const he=H.format(Je,"weekdayShort");return I.jsx(Cmt,{variant:"caption",role:"columnheader","aria-label":H.format(H.addDays(et,pe),"weekday"),className:J.weekDayLabel,children:(le=te==null?void 0:te(he,Je))!=null?le:he},he+pe.toString())})]}),o?I.jsx(Rmt,{className:J.loadingContainer,children:h()}):I.jsx(Imt,M({transKey:Ve,onExited:u,reduceAnimations:f,slideDirection:g,className:dt(r,J.slideTransition)},b,{nodeRef:Xe,children:I.jsx(Dmt,{ref:Xe,role:"rowgroup",className:J.monthContainer,children:At.map((Je,pe)=>I.jsxs(Nmt,{role:"row",className:J.weekContainer,"aria-rowindex":pe+1,children:[F&&I.jsx(_mt,{className:J.weekNumber,role:"rowheader","aria-label":Te.calendarWeekNumberAriaLabelText(H.getWeekNumber(Je[0])),children:Te.calendarWeekNumberText(H.getWeekNumber(Je[0]))}),Je.map((le,he)=>I.jsx(Pmt,{parentProps:t,day:le,selectedDays:tt,focusableDay:ft,onKeyDown:Ie,onFocus:qe,onBlur:st,onDaySelect:ie,isDateDisabled:z,currentMonthNumber:Pe,isViewFocused:be,"aria-colindex":he+1},le.toString()))]},`week-${Je[0]}`))})}))]})}const Lmt=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return M({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return M({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const a=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return M({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:a&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},$mt=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:a,disableSwitchToMonthOnDayFocus:s=!1,maxDate:o,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:f,timezone:h}=e,g=D0(h),b=yr(),S=N.useRef(Lmt(!!c,s,b)).current,w=N.useMemo(()=>{let B=null;return n?B=n:r&&(B=b.startOfMonth(r)),us.getInitialReferenceValue({value:t,utils:b,timezone:h,props:e,referenceDate:B,granularity:ld.day})},[]),[E,x]=N.useReducer(S,{isMonthSwitchingAnimating:!1,focusedDay:b.isValid(t)?t:g,currentMonth:b.startOfMonth(w),slideDirection:"left"}),k=N.useCallback(B=>{x(M({type:"changeMonth"},B)),u&&u(B.newMonth)},[u]),C=N.useCallback(B=>{const L=B;b.isSameMonth(L,E.currentMonth)||k({newMonth:b.startOfMonth(L),direction:b.isAfterDay(L,E.currentMonth)?"left":"right"})},[E.currentMonth,k,b]),R=A1e({shouldDisableDate:f,minDate:l,maxDate:o,disableFuture:i,disablePast:a,timezone:h}),A=N.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]),D=on((B,L)=>{R(B)||x({type:"changeFocusedDay",focusedDay:B,withoutMonthSwitchingAnimation:L})});return{referenceDate:w,calendarState:E,changeMonth:C,changeFocusedDay:D,isDateDisabled:R,onMonthSwitchingAnimationEnd:A,handleChangeMonth:k}},Fmt=["props","getOpenDialogAriaText"],Bmt=["ownerState"],Umt=["ownerState"],FW=e=>{var t,n,r,i,a;let{props:s,getOpenDialogAriaText:o}=e,l=at(e,Fmt);const{slots:u,slotProps:c,className:f,sx:h,format:g,formatDensity:b,timezone:S,name:w,label:E,inputRef:x,readOnly:k,disabled:C,autoFocus:R,localeText:A,reduceAnimations:D}=s,B=yr(),L=N.useRef(null),F=N.useRef(null),W=Td(),V=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:Z,actions:Q,hasUIView:H,layoutProps:J,renderCurrentView:K,shouldRestoreFocus:X,fieldProps:te}=S1e(M({},l,{props:s,inputRef:L,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),z=(r=u.inputAdornment)!=null?r:Dw,Te=cr({elementType:z,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:s}),be=at(Te,Bmt),ee=(i=u.openPickerButton)!=null?i:wa,ye=cr({elementType:ee,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:C||k,onClick:Z?Q.onClose:Q.onOpen,"aria-label":o(te.value,B),edge:be.position},ownerState:s}),Oe=at(ye,Umt),ie=u.openPickerIcon,_e=u.field,Ie=cr({elementType:_e,externalSlotProps:c==null?void 0:c.field,additionalProps:M({},te,V&&{id:W},{readOnly:k,disabled:C,className:f,sx:h,format:g,formatDensity:b,timezone:S,label:E,name:w,autoFocus:R&&!s.open,focused:Z?!0:void 0}),ownerState:s});H&&(Ie.InputProps=M({},Ie.InputProps,{ref:F,[`${be.position}Adornment`]:I.jsx(z,M({},be,{children:I.jsx(ee,M({},Oe,{children:I.jsx(ie,M({},c==null?void 0:c.openPickerIcon))}))}))}));const qe=M({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},Ie.slots),st=(a=u.layout)!=null?a:x1e,Pe=Jn(L,Ie.inputRef,x);let tt=W;V&&(E?tt=`${W}-label`:tt=void 0);const Ve=M({},c,{toolbar:M({},c==null?void 0:c.toolbar,{titleId:W}),popper:M({"aria-labelledby":tt},c==null?void 0:c.popper)});return{renderPicker:()=>I.jsxs(f1e,{localeText:A,children:[I.jsx(_e,M({},Ie,{slots:qe,slotProps:Ve,inputRef:Pe})),I.jsx(Cpt,M({role:"dialog",placement:"bottom-start",anchorEl:F.current},Q,{open:Z,slots:u,slotProps:Ve,shouldRestoreFocus:X,reduceAnimations:D,children:I.jsx(st,M({},J,Ve==null?void 0:Ve.layout,{slots:u,slotProps:Ve,children:K()}))}))]})}},zmt=e=>{var t,n,r;const i=yr(),a=L1();return M({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:i.formats.keyboardDate,minDate:Eo(i,e.minDate,a.minDate),maxDate:Eo(i,e.maxDate,a.maxDate)})},jmt=({props:e,inputRef:t})=>{const n=zmt(e),{forwardedProps:r,internalProps:i}=$W(n,"date");return LW({inputRef:t,forwardedProps:r,internalProps:i,valueManager:us,fieldValueManager:IW,validator:$1,valueType:"date"})},Hmt=["ownerState"],BW=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:a,components:s,componentsProps:o})=>{var l,u,c,f,h,g;const b=cs(),S=(l=(u=i==null?void 0:i.clearButton)!=null?u:s==null?void 0:s.ClearButton)!=null?l:wa,w=cr({elementType:S,externalSlotProps:(c=a==null?void 0:a.clearButton)!=null?c:o==null?void 0:o.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),E=at(w,Hmt),x=(f=(h=i==null?void 0:i.clearIcon)!=null?h:s==null?void 0:s.ClearIcon)!=null?f:ipt,k=cr({elementType:x,externalSlotProps:(g=a==null?void 0:a.clearIcon)!=null?g:o==null?void 0:o.clearIcon,ownerState:{}}),C=M({},n,{endAdornment:I.jsxs(N.Fragment,{children:[e&&I.jsx(Dw,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:I.jsx(S,M({},E,{onClick:r,children:I.jsx(x,M({fontSize:"small"},k))}))}),n==null?void 0:n.endAdornment]})}),R=M({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:C,fieldProps:R}},Vmt=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Wmt=["inputRef"],Qmt=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],R1e=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiDateField"}),{components:o,componentsProps:l,slots:u,slotProps:c,InputProps:f,inputProps:h}=s,g=at(s,Vmt),b=s,S=(r=(i=u==null?void 0:u.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:E0,w=cr({elementType:S,externalSlotProps:(a=c==null?void 0:c.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:g,ownerState:b}),{inputRef:E}=w,x=at(w,Wmt);x.inputProps=M({},h,x.inputProps),x.InputProps=M({},f,x.InputProps);const k=jmt({props:x,inputRef:E}),{ref:C,onPaste:R,onKeyDown:A,inputMode:D,readOnly:B,clearable:L,onClear:F}=k,W=at(k,Qmt),{InputProps:V,fieldProps:Z}=BW({onClear:F,clearable:L,fieldProps:W,InputProps:W.InputProps,slots:u,slotProps:c,components:o,componentsProps:l});return I.jsx(S,M({ref:n},Z,{InputProps:M({},V,{readOnly:B}),inputProps:M({},W.inputProps,{inputMode:D,onPaste:R,onKeyDown:A,ref:C})}))}),qmt=e=>$t("MuiPickersFadeTransitionGroup",e);Ft("MuiPickersFadeTransitionGroup",["root"]);const Gmt=e=>{const{classes:t}=e;return Mt({root:["root"]},qmt,t)},Ymt=Re(nF,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function I1e(e){const t=_t({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=Gmt(t),o=Ni();return i?n:I.jsx(Ymt,{className:dt(s.root,r),children:I.jsx(tp,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:o.transitions.duration.enteringScreen,enter:o.transitions.duration.enteringScreen,exit:0},children:n},a)})}function Zmt(e){return $t("MuiPickersMonth",e)}const VA=Ft("MuiPickersMonth",["root","monthButton","disabled","selected"]),Xmt=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],Kmt=e=>{const{disabled:t,selected:n,classes:r}=e;return Mt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Zmt,r)},Jmt=Re("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),e0t=Re("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${VA.disabled}`]:t.disabled},{[`&.${VA.selected}`]:t.selected}]})(({theme:e})=>M({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${VA.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${VA.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),t0t=N.memo(function(t){const n=_t({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:a,selected:s,value:o,tabIndex:l,onClick:u,onKeyDown:c,onFocus:f,onBlur:h,"aria-current":g,"aria-label":b}=n,S=at(n,Xmt),w=N.useRef(null),E=Kmt(n);return la(()=>{if(r){var x;(x=w.current)==null||x.focus()}},[r]),I.jsx(Jmt,M({className:E.root,ownerState:n},S,{children:I.jsx(e0t,{ref:w,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":g,"aria-checked":s,"aria-label":b,onClick:x=>u(x,o),onKeyDown:x=>c(x,o),onFocus:x=>f(x,o),onBlur:x=>h(x,o),className:E.monthButton,ownerState:n,children:i})}))});function n0t(e){return $t("MuiMonthCalendar",e)}Ft("MuiMonthCalendar",["root"]);const r0t=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],i0t=e=>{const{classes:t}=e;return Mt({root:["root"]},n0t,t)};function a0t(e,t){const n=yr(),r=L1(),i=_t({props:e,name:t});return M({disableFuture:!1,disablePast:!1},i,{minDate:Eo(n,i.minDate,r.minDate),maxDate:Eo(n,i.maxDate,r.maxDate)})}const s0t=Re("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:WI,boxSizing:"border-box"}),o0t=N.forwardRef(function(t,n){const r=a0t(t,"MuiMonthCalendar"),{className:i,value:a,defaultValue:s,referenceDate:o,disabled:l,disableFuture:u,disablePast:c,maxDate:f,minDate:h,onChange:g,shouldDisableMonth:b,readOnly:S,disableHighlightToday:w,autoFocus:E=!1,onMonthFocus:x,hasFocus:k,onFocusedViewChange:C,monthsPerRow:R=3,timezone:A,gridLabelId:D}=r,B=at(r,r0t),{value:L,handleValueChange:F,timezone:W}=ZO({name:"MonthCalendar",timezone:A,value:a,defaultValue:s,onChange:g,valueManager:us}),V=D0(W),Z=EO(),Q=yr(),H=N.useMemo(()=>us.getInitialReferenceValue({value:L,utils:Q,props:r,timezone:W,referenceDate:o,granularity:ld.month}),[]),J=r,K=i0t(J),X=N.useMemo(()=>Q.getMonth(V),[Q,V]),te=N.useMemo(()=>L!=null?Q.getMonth(L):w?null:Q.getMonth(H),[L,Q,w,H]),[z,Te]=N.useState(()=>te||X),[be,ee]=ws({name:"MonthCalendar",state:"hasFocus",controlled:k,default:E??!1}),ye=on(Pe=>{ee(Pe),C&&C(Pe)}),Oe=N.useCallback(Pe=>{const tt=Q.startOfMonth(c&&Q.isAfter(V,h)?V:h),Ve=Q.startOfMonth(u&&Q.isBefore(V,f)?V:f),Xe=Q.startOfMonth(Pe);return Q.isBefore(Xe,tt)||Q.isAfter(Xe,Ve)?!0:b?b(Xe):!1},[u,c,f,h,V,b,Q]),ie=on((Pe,tt)=>{if(S)return;const Ve=Q.setMonth(L??H,tt);F(Ve)}),_e=on(Pe=>{Oe(Q.setMonth(L??H,Pe))||(Te(Pe),ye(!0),x&&x(Pe))});N.useEffect(()=>{Te(Pe=>te!==null&&Pe!==te?te:Pe)},[te]);const Ie=on((Pe,tt)=>{switch(Pe.key){case"ArrowUp":_e((12+tt-3)%12),Pe.preventDefault();break;case"ArrowDown":_e((12+tt+3)%12),Pe.preventDefault();break;case"ArrowLeft":_e((12+tt+(Z.direction==="ltr"?-1:1))%12),Pe.preventDefault();break;case"ArrowRight":_e((12+tt+(Z.direction==="ltr"?1:-1))%12),Pe.preventDefault();break}}),qe=on((Pe,tt)=>{_e(tt)}),st=on((Pe,tt)=>{z===tt&&ye(!1)});return I.jsx(s0t,M({ref:n,className:dt(K.root,i),ownerState:J,role:"radiogroup","aria-labelledby":D},B,{children:AW(Q,L??H).map(Pe=>{const tt=Q.getMonth(Pe),Ve=Q.format(Pe,"monthShort"),Xe=Q.format(Pe,"month"),et=tt===te,ft=l||Oe(Pe);return I.jsx(t0t,{selected:et,value:tt,onClick:ie,onKeyDown:Ie,autoFocus:be&&tt===z,disabled:ft,tabIndex:tt===z?0:-1,onFocus:qe,onBlur:st,"aria-current":X===tt?"date":void 0,"aria-label":Xe,monthsPerRow:R,children:Ve},Ve)})}))});function l0t(e){return $t("MuiPickersYear",e)}const WA=Ft("MuiPickersYear",["root","yearButton","selected","disabled"]),u0t=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],c0t=e=>{const{disabled:t,selected:n,classes:r}=e;return Mt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},l0t,r)},d0t=Re("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),f0t=Re("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${WA.disabled}`]:t.disabled},{[`&.${WA.selected}`]:t.selected}]})(({theme:e})=>M({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${WA.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${WA.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),h0t=N.memo(function(t){const n=_t({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:a,disabled:s,selected:o,value:l,tabIndex:u,onClick:c,onKeyDown:f,onFocus:h,onBlur:g,"aria-current":b}=n,S=at(n,u0t),w=N.useRef(null),E=c0t(n);return N.useEffect(()=>{r&&w.current.focus()},[r]),I.jsx(d0t,M({className:dt(E.root,i),ownerState:n},S,{children:I.jsx(f0t,{ref:w,disabled:s,type:"button",role:"radio",tabIndex:s?-1:u,"aria-current":b,"aria-checked":o,onClick:x=>c(x,l),onKeyDown:x=>f(x,l),onFocus:x=>h(x,l),onBlur:x=>g(x,l),className:E.yearButton,ownerState:n,children:a})}))});function p0t(e){return $t("MuiYearCalendar",e)}Ft("MuiYearCalendar",["root"]);const m0t=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],g0t=e=>{const{classes:t}=e;return Mt({root:["root"]},p0t,t)};function b0t(e,t){var n;const r=yr(),i=L1(),a=_t({props:e,name:t});return M({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Eo(r,a.minDate,i.minDate),maxDate:Eo(r,a.maxDate,i.maxDate)})}const y0t=Re("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:WI,maxHeight:fpt,boxSizing:"border-box",position:"relative"}),v0t=N.forwardRef(function(t,n){const r=b0t(t,"MuiYearCalendar"),{autoFocus:i,className:a,value:s,defaultValue:o,referenceDate:l,disabled:u,disableFuture:c,disablePast:f,maxDate:h,minDate:g,onChange:b,readOnly:S,shouldDisableYear:w,disableHighlightToday:E,onYearFocus:x,hasFocus:k,onFocusedViewChange:C,yearsPerRow:R,timezone:A,gridLabelId:D}=r,B=at(r,m0t),{value:L,handleValueChange:F,timezone:W}=ZO({name:"YearCalendar",timezone:A,value:s,defaultValue:o,onChange:b,valueManager:us}),V=D0(W),Z=EO(),Q=yr(),H=N.useMemo(()=>us.getInitialReferenceValue({value:L,utils:Q,props:r,timezone:W,referenceDate:l,granularity:ld.year}),[]),J=r,K=g0t(J),X=N.useMemo(()=>Q.getYear(V),[Q,V]),te=N.useMemo(()=>L!=null?Q.getYear(L):E?null:Q.getYear(H),[L,Q,E,H]),[z,Te]=N.useState(()=>te||X),[be,ee]=ws({name:"YearCalendar",state:"hasFocus",controlled:k,default:i??!1}),ye=on(Ve=>{ee(Ve),C&&C(Ve)}),Oe=N.useCallback(Ve=>{if(f&&Q.isBeforeYear(Ve,V)||c&&Q.isAfterYear(Ve,V)||g&&Q.isBeforeYear(Ve,g)||h&&Q.isAfterYear(Ve,h))return!0;if(!w)return!1;const Xe=Q.startOfYear(Ve);return w(Xe)},[c,f,h,g,V,w,Q]),ie=on((Ve,Xe)=>{if(S)return;const et=Q.setYear(L??H,Xe);F(et)}),_e=on(Ve=>{Oe(Q.setYear(L??H,Ve))||(Te(Ve),ye(!0),x==null||x(Ve))});N.useEffect(()=>{Te(Ve=>te!==null&&Ve!==te?te:Ve)},[te]);const Ie=on((Ve,Xe)=>{switch(Ve.key){case"ArrowUp":_e(Xe-R),Ve.preventDefault();break;case"ArrowDown":_e(Xe+R),Ve.preventDefault();break;case"ArrowLeft":_e(Xe+(Z.direction==="ltr"?-1:1)),Ve.preventDefault();break;case"ArrowRight":_e(Xe+(Z.direction==="ltr"?1:-1)),Ve.preventDefault();break}}),qe=on((Ve,Xe)=>{_e(Xe)}),st=on((Ve,Xe)=>{z===Xe&&ye(!1)}),Pe=N.useRef(null),tt=Jn(n,Pe);return N.useEffect(()=>{if(i||Pe.current===null)return;const Ve=Pe.current.querySelector('[tabindex="0"]');if(!Ve)return;const Xe=Ve.offsetHeight,et=Ve.offsetTop,ft=Pe.current.clientHeight,At=Pe.current.scrollTop,Je=et+Xe;Xe>ft||et{const Xe=Q.getYear(Ve),et=Xe===te,ft=u||Oe(Ve);return I.jsx(h0t,{selected:et,value:Xe,onClick:ie,onKeyDown:Ie,autoFocus:be&&Xe===z,disabled:ft,tabIndex:Xe===z?0:-1,onFocus:qe,onBlur:st,"aria-current":X===Xe?"date":void 0,yearsPerRow:R,children:Q.format(Ve,"year")},Q.format(Ve,"year"))})}))}),O0t=e=>$t("MuiPickersCalendarHeader",e),S0t=Ft("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),E0t=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],w0t=["ownerState"],x0t=e=>{const{classes:t}=e;return Mt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},O0t,t)},T0t=Re("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),k0t=Re("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>M({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),C0t=Re("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),A0t=Re(wa,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>M({marginRight:"auto"},e.view==="year"&&{[`.${S0t.switchViewIcon}`]:{transform:"rotate(180deg)"}})),_0t=Re(Kht,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),R0t=N.forwardRef(function(t,n){var r,i,a,s;const o=cs(),l=yr(),u=_t({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:f,components:h,currentMonth:g,disabled:b,disableFuture:S,disablePast:w,maxDate:E,minDate:x,onMonthChange:k,onViewChange:C,view:R,reduceAnimations:A,views:D,labelId:B,className:L,timezone:F}=u,W=at(u,E0t),V=u,Z=x0t(u),Q=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:h==null?void 0:h.SwitchViewButton)!=null?r:A0t,H=cr({elementType:Q,externalSlotProps:f==null?void 0:f.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(R)},ownerState:V,className:Z.switchViewButton}),J=(a=(s=c==null?void 0:c.switchViewIcon)!=null?s:h==null?void 0:h.SwitchViewIcon)!=null?a:_0t,K=cr({elementType:J,externalSlotProps:f==null?void 0:f.switchViewIcon,ownerState:void 0,className:Z.switchViewIcon}),X=at(K,w0t),te=()=>k(l.addMonths(g,1),"left"),z=()=>k(l.addMonths(g,-1),"right"),Te=amt(g,{disableFuture:S,maxDate:E,timezone:F}),be=smt(g,{disablePast:w,minDate:x,timezone:F}),ee=()=>{if(!(D.length===1||!C||b))if(D.length===2)C(D.find(ye=>ye!==R)||D[0]);else{const ye=D.indexOf(R)!==0?0:1;C(D[ye])}};return D.length===1&&D[0]==="year"?null:I.jsxs(T0t,M({},W,{ownerState:V,className:dt(L,Z.root),ref:n,children:[I.jsxs(k0t,{role:"presentation",onClick:ee,ownerState:V,"aria-live":"polite",className:Z.labelContainer,children:[I.jsx(I1e,{reduceAnimations:A,transKey:l.format(g,"monthAndYear"),children:I.jsx(C0t,{id:B,ownerState:V,className:Z.label,children:l.format(g,"monthAndYear")})}),D.length>1&&!b&&I.jsx(Q,M({},H,{children:I.jsx(J,M({},X))}))]}),I.jsx(tp,{in:R==="day",children:I.jsx(b1e,{slots:c,slotProps:f,onGoToPrevious:z,isPreviousDisabled:be,previousLabel:o.previousMonth,onGoToNext:te,isNextDisabled:Te,nextLabel:o.nextMonth})})]}))}),YI=Re("div")({overflow:"hidden",width:WI,maxHeight:QI,display:"flex",flexDirection:"column",margin:"0 auto"}),I0t=e=>$t("MuiDateCalendar",e);Ft("MuiDateCalendar",["root","viewTransitionContainer"]);const D0t=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],N0t=e=>{const{classes:t}=e;return Mt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},I0t,t)};function P0t(e,t){var n,r,i,a,s,o,l;const u=yr(),c=L1(),f=v1e(),h=_t({props:e,name:t});return M({},h,{loading:(n=h.loading)!=null?n:!1,disablePast:(r=h.disablePast)!=null?r:!1,disableFuture:(i=h.disableFuture)!=null?i:!1,openTo:(a=h.openTo)!=null?a:"day",views:(s=h.views)!=null?s:["year","day"],reduceAnimations:(o=h.reduceAnimations)!=null?o:f,renderLoading:(l=h.renderLoading)!=null?l:()=>I.jsx("span",{children:"..."}),minDate:Eo(u,h.minDate,c.minDate),maxDate:Eo(u,h.maxDate,c.maxDate)})}const M0t=Re(YI,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:QI}),L0t=Re(I1e,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),D1e=N.forwardRef(function(t,n){var r,i,a;const s=yr(),o=Td(),l=P0t(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:f,defaultValue:h,referenceDate:g,disableFuture:b,disablePast:S,defaultCalendarMonth:w,onChange:E,onYearChange:x,onMonthChange:k,reduceAnimations:C,shouldDisableDate:R,shouldDisableMonth:A,shouldDisableYear:D,view:B,views:L,openTo:F,className:W,disabled:V,readOnly:Z,minDate:Q,maxDate:H,disableHighlightToday:J,focusedView:K,onFocusedViewChange:X,showDaysOutsideCurrentMonth:te,fixedWeekNumber:z,dayOfWeekFormatter:Te,components:be,componentsProps:ee,slots:ye,slotProps:Oe,loading:ie,renderLoading:_e,displayWeekNumber:Ie,yearsPerRow:qe,monthsPerRow:st,timezone:Pe}=l,tt=at(l,D0t),{value:Ve,handleValueChange:Xe,timezone:et}=ZO({name:"DateCalendar",timezone:Pe,value:f,defaultValue:h,onChange:E,valueManager:us}),{view:ft,setView:At,focusedView:Je,setFocusedView:pe,goToNextView:le,setValueAndGoToNextView:he}=KT({view:B,views:L,openTo:F,onChange:Xe,onViewChange:c,autoFocus:u,focusedView:K,onFocusedViewChange:X}),{referenceDate:je,calendarState:Ze,changeFocusedDay:We,changeMonth:fe,handleChangeMonth:xe,isDateDisabled:ve,onMonthSwitchingAnimationEnd:De}=$mt({value:Ve,defaultCalendarMonth:w,referenceDate:g,reduceAnimations:C,onMonthChange:k,minDate:Q,maxDate:H,shouldDisableDate:R,disablePast:S,disableFuture:b,timezone:et}),$e=V&&Ve||Q,vt=V&&Ve||H,Wt=`${o}-grid-label`,Kt=Je!==null,gt=(r=(i=ye==null?void 0:ye.calendarHeader)!=null?i:be==null?void 0:be.CalendarHeader)!=null?r:R0t,Gt=cr({elementType:gt,externalSlotProps:(a=Oe==null?void 0:Oe.calendarHeader)!=null?a:ee==null?void 0:ee.calendarHeader,additionalProps:{views:L,view:ft,currentMonth:Ze.currentMonth,onViewChange:At,onMonthChange:(Ue,lt)=>xe({newMonth:Ue,direction:lt}),minDate:$e,maxDate:vt,disabled:V,disablePast:S,disableFuture:b,reduceAnimations:C,timezone:et,labelId:Wt,slots:ye,slotProps:Oe},ownerState:l}),ut=on(Ue=>{const lt=s.startOfMonth(Ue),Nt=s.endOfMonth(Ue),Qt=ve(Ue)?J2({utils:s,date:Ue,minDate:s.isBefore(Q,lt)?lt:Q,maxDate:s.isAfter(H,Nt)?Nt:H,disablePast:S,disableFuture:b,isDateDisabled:ve,timezone:et}):Ue;Qt?(he(Qt,"finish"),k==null||k(lt)):(le(),fe(lt)),We(Qt,!0)}),wt=on(Ue=>{const lt=s.startOfYear(Ue),Nt=s.endOfYear(Ue),Qt=ve(Ue)?J2({utils:s,date:Ue,minDate:s.isBefore(Q,lt)?lt:Q,maxDate:s.isAfter(H,Nt)?Nt:H,disablePast:S,disableFuture:b,isDateDisabled:ve,timezone:et}):Ue;Qt?(he(Qt,"finish"),x==null||x(Qt)):(le(),fe(lt)),We(Qt,!0)}),Xt=on(Ue=>Xe(Ue&&t9(s,Ue,Ve??je),"finish",ft));N.useEffect(()=>{Ve!=null&&s.isValid(Ve)&&fe(Ve)},[Ve]);const Ln=l,$n=N0t(Ln),jn={disablePast:S,disableFuture:b,maxDate:H,minDate:Q},ar={disableHighlightToday:J,readOnly:Z,disabled:V,timezone:et,gridLabelId:Wt},Ur=N.useRef(ft);N.useEffect(()=>{Ur.current!==ft&&(Je===Ur.current&&pe(ft,!0),Ur.current=ft)},[Je,pe,ft]);const Me=N.useMemo(()=>[Ve],[Ve]);return I.jsxs(M0t,M({ref:n,className:dt($n.root,W),ownerState:Ln},tt,{children:[I.jsx(gt,M({},Gt)),I.jsx(L0t,{reduceAnimations:C,className:$n.viewTransitionContainer,transKey:ft,ownerState:Ln,children:I.jsxs("div",{children:[ft==="year"&&I.jsx(v0t,M({},jn,ar,{value:Ve,onChange:wt,shouldDisableYear:D,hasFocus:Kt,onFocusedViewChange:Ue=>pe("year",Ue),yearsPerRow:qe,referenceDate:je})),ft==="month"&&I.jsx(o0t,M({},jn,ar,{hasFocus:Kt,className:W,value:Ve,onChange:ut,shouldDisableMonth:A,onFocusedViewChange:Ue=>pe("month",Ue),monthsPerRow:st,referenceDate:je})),ft==="day"&&I.jsx(Mmt,M({},Ze,jn,ar,{onMonthSwitchingAnimationEnd:De,onFocusedDayChange:We,reduceAnimations:C,selectedDays:Me,onSelectedDaysChange:Xt,shouldDisableDate:R,shouldDisableMonth:A,shouldDisableYear:D,hasFocus:Kt,onFocusedViewChange:Ue=>pe("day",Ue),showDaysOutsideCurrentMonth:te,fixedWeekNumber:z,dayOfWeekFormatter:Te,displayWeekNumber:Ie,components:be,componentsProps:ee,slots:ye,slotProps:Oe,loading:ie,renderLoading:_e}))]})})]}))}),wc=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,maxDate:b,shouldDisableDate:S,shouldDisableMonth:w,shouldDisableYear:E,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:R,yearsPerRow:A,defaultCalendarMonth:D,components:B,componentsProps:L,slots:F,slotProps:W,loading:V,renderLoading:Z,disableHighlightToday:Q,readOnly:H,disabled:J,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:X,sx:te,autoFocus:z,fixedWeekNumber:Te,displayWeekNumber:be,timezone:ee})=>I.jsx(D1e,{view:e,onViewChange:t,views:n.filter(lv),focusedView:r&&lv(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,maxDate:b,shouldDisableDate:S,shouldDisableMonth:w,shouldDisableYear:E,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:R,yearsPerRow:A,defaultCalendarMonth:D,components:B,componentsProps:L,slots:F,slotProps:W,loading:V,renderLoading:Z,disableHighlightToday:Q,readOnly:H,disabled:J,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:X,sx:te,autoFocus:z,fixedWeekNumber:Te,displayWeekNumber:be,timezone:ee}),N1e=N.forwardRef(function(t,n){var r,i,a,s;const o=cs(),l=yr(),u=m1e(t,"MuiDesktopDatePicker"),c=M({day:wc,month:wc,year:wc},u.viewRenderers),f=M({},u,{viewRenderers:c,format:gx(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:M({openPickerIcon:g1e,field:R1e},u.slots),slotProps:M({},u.slotProps,{field:g=>{var b;return M({},y0((b=u.slotProps)==null?void 0:b.field,g),XO(u),{ref:n})},toolbar:M({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=FW({props:f,valueManager:us,valueType:"date",getOpenDialogAriaText:(a=(s=f.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:o.openDatePickerDialogue,validator:$1});return h()});N1e.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,minDate:Y.any,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const $0t=["props","getOpenDialogAriaText"],UW=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:a}=e,s=at(e,$0t);const{slots:o,slotProps:l,className:u,sx:c,format:f,formatDensity:h,timezone:g,name:b,label:S,inputRef:w,readOnly:E,disabled:x,localeText:k}=i,C=yr(),R=N.useRef(null),A=Td(),D=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:B,actions:L,layoutProps:F,renderCurrentView:W,fieldProps:V}=S1e(M({},s,{props:i,inputRef:R,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),Z=o.field,Q=cr({elementType:Z,externalSlotProps:l==null?void 0:l.field,additionalProps:M({},V,D&&{id:A},!(x||E)&&{onClick:L.onOpen,onKeyDown:bpt(L.onOpen)},{readOnly:E??!0,disabled:x,className:u,sx:c,format:f,formatDensity:h,timezone:g,label:S,name:b}),ownerState:i});Q.inputProps=M({},Q.inputProps,{"aria-label":a(V.value,C)});const H=M({textField:o.textField},Q.slots),J=(r=o.layout)!=null?r:x1e,K=Jn(R,Q.inputRef,w);let X=A;D&&(S?X=`${A}-label`:X=void 0);const te=M({},l,{toolbar:M({},l==null?void 0:l.toolbar,{titleId:A}),mobilePaper:M({"aria-labelledby":X},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>I.jsxs(f1e,{localeText:k,children:[I.jsx(Z,M({},Q,{slots:H,slotProps:te,inputRef:K})),I.jsx(mpt,M({},L,{open:B,slots:o,slotProps:te,children:I.jsx(J,M({},F,te==null?void 0:te.layout,{slots:o,slotProps:te,children:W()}))}))]})}},zW=N.forwardRef(function(t,n){var r,i,a;const s=cs(),o=yr(),l=m1e(t,"MuiMobileDatePicker"),u=M({day:wc,month:wc,year:wc},l.viewRenderers),c=M({},l,{viewRenderers:u,format:gx(o,l,!1),slots:M({field:R1e},l.slots),slotProps:M({},l.slotProps,{field:h=>{var g;return M({},y0((g=l.slotProps)==null?void 0:g.field,h),XO(l),{ref:n})},toolbar:M({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=UW({props:c,valueManager:us,valueType:"date",getOpenDialogAriaText:(i=(a=c.localeText)==null?void 0:a.openDatePickerDialogue)!=null?i:s.openDatePickerDialogue,validator:$1});return f()});zW.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,minDate:Y.any,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const F0t=["desktopModeMediaQuery"],B0t=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=NW}=r,a=at(r,F0t);return TO(i,{defaultMatches:!0})?I.jsx(N1e,M({ref:n},a)):I.jsx(zW,M({ref:n},a))}),U0t=e=>{var t,n,r,i,a,s,o,l;const u=yr(),c=L1(),h=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return M({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:h,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Eo(u,(a=e.minDateTime)!=null?a:e.minDate,c.minDate),maxDate:Eo(u,(s=e.maxDateTime)!=null?s:e.maxDate,c.maxDate),minTime:(o=e.minDateTime)!=null?o:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},z0t=({props:e,inputRef:t})=>{const n=U0t(e),{forwardedProps:r,internalProps:i}=$W(n,"date-time");return LW({inputRef:t,forwardedProps:r,internalProps:i,valueManager:us,fieldValueManager:IW,validator:GI,valueType:"date-time"})},j0t=["components","componentsProps","slots","slotProps","InputProps","inputProps"],H0t=["inputRef"],V0t=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],P1e=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiDateTimeField"}),{components:o,componentsProps:l,slots:u,slotProps:c,InputProps:f,inputProps:h}=s,g=at(s,j0t),b=s,S=(r=(i=u==null?void 0:u.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:E0,w=cr({elementType:S,externalSlotProps:(a=c==null?void 0:c.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:g,ownerState:b}),{inputRef:E}=w,x=at(w,H0t);x.inputProps=M({},h,x.inputProps),x.InputProps=M({},f,x.InputProps);const k=z0t({props:x,inputRef:E}),{ref:C,onPaste:R,onKeyDown:A,inputMode:D,readOnly:B,clearable:L,onClear:F}=k,W=at(k,V0t),{InputProps:V,fieldProps:Z}=BW({onClear:F,clearable:L,fieldProps:W,InputProps:W.InputProps,slots:u,slotProps:c,components:o,componentsProps:l});return I.jsx(S,M({ref:n},Z,{InputProps:M({},V,{readOnly:B}),inputProps:M({},W.inputProps,{inputMode:D,onPaste:R,onKeyDown:A,ref:C})}))});function W0t(e){return $t("MuiDateTimePickerTabs",e)}Ft("MuiDateTimePickerTabs",["root"]);const Q0t=e=>lv(e)?"date":"time",q0t=e=>e==="date"?"day":"hours",G0t=e=>{const{classes:t}=e;return Mt({root:["root"]},W0t,t)},Y0t=Re(tLe,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${E4.indicator}`]:{bottom:"auto",top:0}}})),Z0t=function(t){const n=_t({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=I.jsx(npt,{}),onViewChange:i,timeIcon:a=I.jsx(rpt,{}),view:s,hidden:o=typeof window>"u"||window.innerHeight<667,className:l}=n,u=cs(),c=G0t(n),f=(h,g)=>{i(q0t(g))};return o?null:I.jsxs(Y0t,{ownerState:n,variant:"fullWidth",value:Q0t(s),onChange:f,className:dt(l,c.root),children:[I.jsx(CZ,{value:"date","aria-label":u.dateTableLabel,icon:I.jsx(N.Fragment,{children:r})}),I.jsx(CZ,{value:"time","aria-label":u.timeTableLabel,icon:I.jsx(N.Fragment,{children:a})})]})};function X0t(e){return $t("MuiDateTimePickerToolbar",e)}const d7=Ft("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),K0t=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],J0t=e=>{const{classes:t,theme:n,isLandscape:r}=e,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Mt(i,X0t,t)},M1e=Re(DW,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));M1e.propTypes={as:Y.elementType,classes:Y.object,className:Y.string,isLandscape:Y.bool.isRequired,isMobileKeyboardViewOpen:Y.bool,landscapeDirection:Y.oneOf(["column","row"]),ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),toggleMobileKeyboardView:Y.func,toolbarTitle:Y.node,viewType:Y.oneOf(["date","time"])};const egt=Re("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),L1e=Re("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return M({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&M({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),tgt=Re("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>M({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));L1e.propTypes={as:Y.elementType,ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};const sre=Re(PW,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),ngt=Re("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${d7.ampmLabel}`]:t.ampmLabel},{[`&.${d7.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>M({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${d7.ampmLabel}`]:{fontSize:17}}));function rgt(e){const t=_t({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:a,view:s,isLandscape:o,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:f,disabled:h,readOnly:g,toolbarVariant:b="mobile"}=t,S=at(t,K0t),w=t,E=yr(),{meridiemMode:x,handleMeridiemChange:k}=qI(i,n,a),C=!!(n&&!r),R=b==="desktop",A=cs(),D=Ni(),B=J0t(M({},w,{theme:D})),L=W=>n?E.format(W,"hours12h"):E.format(W,"hours24h"),F=N.useMemo(()=>i?u?E.formatByString(i,u):E.format(i,"shortDate"):c,[i,u,c,E]);return I.jsxs(M1e,M({toolbarTitle:A.dateTimePickerToolbarTitle,isLandscape:o,className:B.root},S,{ownerState:w,children:[I.jsxs(egt,{className:B.dateContainer,ownerState:w,children:[f.includes("year")&&I.jsx(ou,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:s==="year",value:i?E.format(i,"year"):"–"}),f.includes("day")&&I.jsx(ou,{tabIndex:-1,variant:R?"h5":"h4",onClick:()=>l("day"),selected:s==="day",value:F})]}),I.jsxs(L1e,{className:B.timeContainer,ownerState:w,children:[I.jsxs(tgt,{className:B.timeDigitsContainer,ownerState:w,children:[f.includes("hours")&&I.jsx(ou,{variant:R?"h5":"h3",width:R&&!o?d2:void 0,onClick:()=>l("hours"),selected:s==="hours",value:i?L(i):"--"}),f.includes("minutes")&&I.jsxs(N.Fragment,{children:[I.jsx(sre,{variant:R?"h5":"h3",value:":",className:B.separator,ownerState:w}),I.jsx(ou,{variant:R?"h5":"h3",width:R&&!o?d2:void 0,onClick:()=>l("minutes"),selected:s==="minutes",value:i?E.format(i,"minutes"):"--"})]}),f.includes("seconds")&&I.jsxs(N.Fragment,{children:[I.jsx(sre,{variant:R?"h5":"h3",value:":",className:B.separator,ownerState:w}),I.jsx(ou,{variant:R?"h5":"h3",width:R&&!o?d2:void 0,onClick:()=>l("seconds"),selected:s==="seconds",value:i?E.format(i,"seconds"):"--"})]})]}),C&&!R&&I.jsxs(ngt,{className:B.ampmSelection,ownerState:w,children:[I.jsx(ou,{variant:"subtitle2",selected:x==="am",typographyClassName:B.ampmLabel,value:fd(E,"am"),onClick:g?void 0:()=>k("am"),disabled:h}),I.jsx(ou,{variant:"subtitle2",selected:x==="pm",typographyClassName:B.ampmLabel,value:fd(E,"pm"),onClick:g?void 0:()=>k("pm"),disabled:h})]}),n&&R&&I.jsx(ou,{variant:"h5",onClick:()=>l("meridiem"),selected:s==="meridiem",value:i&&x?fd(E,x):"--",width:d2})]})]}))}function $1e(e,t){var n,r,i,a,s,o,l,u,c,f,h;const g=yr(),b=L1(),S=_t({props:e,name:t}),w=(n=S.ampm)!=null?n:g.is12HourCycleInCurrentLocale(),E=N.useMemo(()=>{var C;return((C=S.localeText)==null?void 0:C.toolbarTitle)==null?S.localeText:M({},S.localeText,{dateTimePickerToolbarTitle:S.localeText.toolbarTitle})},[S.localeText]),x=(r=S.slots)!=null?r:XT(S.components),k=(i=S.slotProps)!=null?i:S.componentsProps;return M({},S,CW({views:S.views,openTo:S.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:w,localeText:E,orientation:(a=S.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(s=S.disableIgnoringDatePartForTimeValidation)!=null?s:!!(S.minDateTime||S.maxDateTime||S.disablePast||S.disableFuture),disableFuture:(o=S.disableFuture)!=null?o:!1,disablePast:(l=S.disablePast)!=null?l:!1,minDate:Eo(g,(u=S.minDateTime)!=null?u:S.minDate,b.minDate),maxDate:Eo(g,(c=S.maxDateTime)!=null?c:S.maxDate,b.maxDate),minTime:(f=S.minDateTime)!=null?f:S.minTime,maxTime:(h=S.maxDateTime)!=null?h:S.maxTime,slots:M({toolbar:rgt,tabs:Z0t},x),slotProps:M({},k,{toolbar:M({ampm:w},k==null?void 0:k.toolbar)})})}function igt(e){return $t("MuiMultiSectionDigitalClock",e)}Ft("MuiMultiSectionDigitalClock",["root"]);function agt(e){return $t("MuiMultiSectionDigitalClockSection",e)}const sgt=Ft("MuiMultiSectionDigitalClockSection",["root","item"]),ogt=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],lgt=e=>{const{classes:t}=e;return Mt({root:["root"],item:["item"]},agt,t)},ugt=Re(kO,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:y1e,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),cgt=Re(rp,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:d2,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette.primary.main,e.palette.action.focusOpacity)}})),dgt=N.forwardRef(function(t,n){var r;const i=N.useRef(null),a=Jn(n,i),s=N.useRef(null),o=_t({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:f,readOnly:h,items:g,active:b,slots:S,slotProps:w,skipDisabled:E}=o,x=at(o,ogt),k=N.useMemo(()=>M({},o,{alreadyRendered:!!i.current}),[o]),C=lgt(k),R=(r=S==null?void 0:S.digitalClockSectionItem)!=null?r:cgt;return N.useEffect(()=>{if(i.current===null)return;const A=i.current.querySelector('[role="option"][aria-selected="true"]');if(b&&l&&A&&A.focus(),!A||s.current===A)return;s.current=A;const D=A.offsetTop;i.current.scrollTop=D-4}),I.jsx(ugt,M({ref:a,className:dt(C.root,c),ownerState:k,autoFocusItem:l&&b,role:"listbox"},x,{children:g.map(A=>{var D,B;if(E&&(D=A.isDisabled)!=null&&D.call(A,A.value))return null;const L=A.isSelected(A.value);return I.jsx(R,M({onClick:()=>!h&&u(A.value),selected:L,disabled:f||((B=A.isDisabled)==null?void 0:B.call(A,A.value)),disableRipple:h,role:"option","aria-disabled":h,"aria-label":A.ariaLabel,"aria-selected":L,className:C.item},w==null?void 0:w.digitalClockSectionItem,{children:A.label}),A.label)})}))}),fgt=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:a,timeStep:s})=>{const o=t?n.getHours(t):null,l=[],u=f=>o===null?!1:r?f===12?o===12||o===0:o===f||o-12===f:o===f,c=r?11:23;for(let f=0;f<=c;f+=s){let h=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const g=a(parseInt(h,10).toString());h=n.formatNumber(h),l.push({value:f,label:h,isSelected:u,isDisabled:i,ariaLabel:g})}return l},ore=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:a,hasValue:s=!0})=>{const o=l=>e===null?!1:s&&e===l;return[...Array.from({length:Math.ceil(60/r)},(l,u)=>{const c=r*u;return{value:c,label:t.formatNumber(i(c)),isDisabled:n,isSelected:o,ariaLabel:a(c.toString())}})]},jW=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const a=N.useMemo(()=>us.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:ld.day,timezone:i,getTodayDate:()=>_W(n,i,"date")}),[]);return e??a},hgt=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],pgt=e=>{const{classes:t}=e;return Mt({root:["root"]},igt,t)},mgt=Re(YI,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),ggt=N.forwardRef(function(t,n){const r=yr(),i=_t({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:o,components:l,componentsProps:u,slots:c,slotProps:f,value:h,defaultValue:g,referenceDate:b,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:w,minTime:E,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:R,shouldDisableTime:A,onChange:D,view:B,views:L=["hours","minutes"],openTo:F,onViewChange:W,focusedView:V,onFocusedViewChange:Z,className:Q,disabled:H,readOnly:J,skipDisabled:K=!1,timezone:X}=i,te=at(i,hgt),{value:z,handleValueChange:Te,timezone:be}=ZO({name:"MultiSectionDigitalClock",timezone:X,value:h,defaultValue:g,onChange:D,valueManager:us}),ee=cs(),ye=D0(be),Oe=N.useMemo(()=>M({hours:1,minutes:5,seconds:5},s),[s]),ie=jW({value:z,referenceDate:b,utils:r,props:i,timezone:be}),_e=on((le,he,je)=>Te(le,he,je)),Ie=N.useMemo(()=>!a||!L.includes("hours")||L.includes("meridiem")?L:[...L,"meridiem"],[a,L]),{view:qe,setValueAndGoToNextView:st,focusedView:Pe}=KT({view:B,views:Ie,openTo:F,onViewChange:W,onChange:_e,focusedView:V,onFocusedViewChange:Z}),tt=on(le=>{st(le,"finish","meridiem")}),{meridiemMode:Ve,handleMeridiemChange:Xe}=qI(ie,a,tt,"finish"),et=N.useCallback((le,he)=>{const je=ZT(S,r),Ze=he==="hours"||he==="minutes"&&Ie.includes("seconds"),We=({start:xe,end:ve})=>!(E&&je(E,ve)||w&&je(xe,w)||x&&je(xe,ye)||k&&je(ye,Ze?ve:xe)),fe=(xe,ve=1)=>{if(xe%ve!==0||R!=null&&R(xe,he))return!1;if(A)switch(he){case"hours":return!A(r.setHours(ie,xe),"hours");case"minutes":return!A(r.setMinutes(ie,xe),"minutes");case"seconds":return!A(r.setSeconds(ie,xe),"seconds");default:return!1}return!0};switch(he){case"hours":{const xe=bx(le,Ve,a),ve=r.setHours(ie,xe),De=r.setSeconds(r.setMinutes(ve,0),0),$e=r.setSeconds(r.setMinutes(ve,59),59);return!We({start:De,end:$e})||!fe(xe)}case"minutes":{const xe=r.setMinutes(ie,le),ve=r.setSeconds(xe,0),De=r.setSeconds(xe,59);return!We({start:ve,end:De})||!fe(le,C)}case"seconds":{const xe=r.setSeconds(ie,le);return!We({start:xe,end:xe})||!fe(le)}default:throw new Error("not supported")}},[a,ie,S,w,Ve,E,C,R,A,r,x,k,ye,Ie]),ft=N.useCallback(le=>{switch(le){case"hours":return{onChange:he=>{const je=bx(he,Ve,a);st(r.setHours(ie,je),"finish","hours")},items:fgt({now:ye,value:z,ampm:a,utils:r,isDisabled:he=>H||et(he,"hours"),timeStep:Oe.hours,resolveAriaLabel:ee.hoursClockNumberText})};case"minutes":return{onChange:he=>{st(r.setMinutes(ie,he),"finish","minutes")},items:ore({value:r.getMinutes(ie),utils:r,isDisabled:he=>H||et(he,"minutes"),resolveLabel:he=>r.format(r.setMinutes(ye,he),"minutes"),timeStep:Oe.minutes,hasValue:!!z,resolveAriaLabel:ee.minutesClockNumberText})};case"seconds":return{onChange:he=>{st(r.setSeconds(ie,he),"finish","seconds")},items:ore({value:r.getSeconds(ie),utils:r,isDisabled:he=>H||et(he,"seconds"),resolveLabel:he=>r.format(r.setSeconds(ye,he),"seconds"),timeStep:Oe.seconds,hasValue:!!z,resolveAriaLabel:ee.secondsClockNumberText})};case"meridiem":{const he=fd(r,"am"),je=fd(r,"pm");return{onChange:Xe,items:[{value:"am",label:he,isSelected:()=>!!z&&Ve==="am",ariaLabel:he},{value:"pm",label:je,isSelected:()=>!!z&&Ve==="pm",ariaLabel:je}]}}default:throw new Error(`Unknown view: ${le} found.`)}},[ye,z,a,r,Oe.hours,Oe.minutes,Oe.seconds,ee.hoursClockNumberText,ee.minutesClockNumberText,ee.secondsClockNumberText,Ve,st,ie,H,et,Xe]),At=N.useMemo(()=>Ie.reduce((le,he)=>M({},le,{[he]:ft(he)}),{}),[Ie,ft]),Je=i,pe=pgt(Je);return I.jsx(mgt,M({ref:n,className:dt(pe.root,Q),ownerState:Je,role:"group"},te,{children:Object.entries(At).map(([le,he])=>I.jsx(dgt,{items:he.items,onChange:he.onChange,active:qe===le,autoFocus:o??Pe===le,disabled:H,readOnly:J,slots:c??l,slotProps:f??u,skipDisabled:K,"aria-label":ee.selectViewText(le)},le))}))}),bgt=Re("div")({display:"flex",margin:"0 auto"});function ygt(e){return $t("MuiTimeClock",e)}Ft("MuiTimeClock",["root","arrowSwitcher"]);const dO=220,Bf=36,vx={x:dO/2,y:dO/2},F1e={x:vx.x,y:0},vgt=F1e.x-vx.x,Ogt=F1e.y-vx.y,Sgt=e=>e*(180/Math.PI),B1e=(e,t,n)=>{const r=t-vx.x,i=n-vx.y,a=Math.atan2(vgt,Ogt)-Math.atan2(r,i);let s=Sgt(a);s=Math.round(s/e)*e,s%=360;const o=Math.floor(s/e)||0,l=r**2+i**2,u=Math.sqrt(l);return{value:o,distance:u}},Egt=(e,t,n=1)=>{const r=n*6;let{value:i}=B1e(r,e,t);return i=i*n%60,i},wgt=(e,t,n)=>{const{value:r,distance:i}=B1e(30,e,t);let a=r||12;return n?a%=12:i{const{classes:t}=e;return Mt({root:["root"],thumb:["thumb"]},xgt,t)},Cgt=Re("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>M({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),Agt=Re("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>M({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Bf/2}px)`,border:`${(Bf-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function _gt(e){const t=_t({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:a}=t,s=at(t,Tgt),o=N.useRef(i);N.useEffect(()=>{o.current=i},[i]);const l=M({},t,{shouldAnimate:o.current!==i}),u=kgt(l),c=()=>{let h=360/(i==="hours"?12:60)*a;return i==="hours"&&a>12&&(h-=360),{height:Math.round((r?.26:.4)*dO),transform:`rotateZ(${h}deg)`}};return I.jsx(Cgt,M({style:c(),className:dt(n,u.root),ownerState:l},s,{children:I.jsx(Agt,{ownerState:l,className:u.thumb})}))}function Rgt(e){return $t("MuiClock",e)}Ft("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const Igt=e=>{const{classes:t}=e;return Mt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},Rgt,t)},Dgt=Re("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Ngt=Re("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Pgt=Re("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Mgt=Re("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>M({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),Lgt=Re("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),$gt=Re(wa,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>M({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Bf},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),Fgt=Re(wa,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>M({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Bf},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),lre=Re(Sr,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Bgt(e){const t=_t({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:s,handleMeridiemChange:o,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:f,selectedId:h,type:g,viewValue:b,disabled:S,readOnly:w,className:E}=t,x=t,k=yr(),C=cs(),R=N.useRef(!1),A=Igt(x),D=l(b,g),B=!n&&g==="hours"&&(b<1||b>12),L=(te,z)=>{S||w||l(te,g)||f(te,z)},F=(te,z)=>{let{offsetX:Te,offsetY:be}=te;if(Te===void 0){const ye=te.target.getBoundingClientRect();Te=te.changedTouches[0].clientX-ye.left,be=te.changedTouches[0].clientY-ye.top}const ee=g==="seconds"||g==="minutes"?Egt(Te,be,c):wgt(Te,be,!!n);L(ee,z)},W=te=>{R.current=!0,F(te,"shallow")},V=te=>{R.current&&(F(te,"finish"),R.current=!1)},Z=te=>{te.buttons>0&&F(te.nativeEvent,"shallow")},Q=te=>{R.current&&(R.current=!1),F(te.nativeEvent,"finish")},H=N.useMemo(()=>g==="hours"?!0:b%5===0,[g,b]),J=g==="minutes"?c:1,K=N.useRef(null);la(()=>{i&&K.current.focus()},[i]);const X=te=>{if(!R.current)switch(te.key){case"Home":L(0,"partial"),te.preventDefault();break;case"End":L(g==="minutes"?59:23,"partial"),te.preventDefault();break;case"ArrowUp":L(b+J,"partial"),te.preventDefault();break;case"ArrowDown":L(b-J,"partial"),te.preventDefault();break}};return I.jsxs(Dgt,{className:dt(E,A.root),children:[I.jsxs(Ngt,{className:A.clock,children:[I.jsx(Mgt,{onTouchMove:W,onTouchEnd:V,onMouseUp:Q,onMouseMove:Z,ownerState:{disabled:S},className:A.squareMask}),!D&&I.jsxs(N.Fragment,{children:[I.jsx(Lgt,{className:A.pin}),s!=null&&I.jsx(_gt,{type:g,viewValue:b,isInner:B,hasSelected:H})]}),I.jsx(Pgt,{"aria-activedescendant":h,"aria-label":C.clockLabelText(g,s,k),ref:K,role:"listbox",onKeyDown:X,tabIndex:0,className:A.wrapper,children:a})]}),n&&r&&I.jsxs(N.Fragment,{children:[I.jsx($gt,{onClick:w?void 0:()=>o("am"),disabled:S||u===null,ownerState:x,className:A.amButton,title:fd(k,"am"),children:I.jsx(lre,{variant:"caption",className:A.meridiemText,children:fd(k,"am")})}),I.jsx(Fgt,{disabled:S||u===null,onClick:w?void 0:()=>o("pm"),ownerState:x,className:A.pmButton,title:fd(k,"pm"),children:I.jsx(lre,{variant:"caption",className:A.meridiemText,children:fd(k,"pm")})})]})]})}function Ugt(e){return $t("MuiClockNumber",e)}const QA=Ft("MuiClockNumber",["root","selected","disabled"]),zgt=["className","disabled","index","inner","label","selected"],jgt=e=>{const{classes:t,selected:n,disabled:r}=e;return Mt({root:["root",n&&"selected",r&&"disabled"]},Ugt,t)},Hgt=Re("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${QA.disabled}`]:t.disabled},{[`&.${QA.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>M({height:Bf,width:Bf,position:"absolute",left:`calc((100% - ${Bf}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${QA.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${QA.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&M({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function U1e(e){const t=_t({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:a,label:s,selected:o}=t,l=at(t,zgt),u=t,c=jgt(u),f=i%12/12*Math.PI*2-Math.PI/2,h=(dO-Bf-2)/2*(a?.65:1),g=Math.round(Math.cos(f)*h),b=Math.round(Math.sin(f)*h);return I.jsx(Hgt,M({className:dt(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":o?!0:void 0,role:"option",style:{transform:`translate(${g}px, ${b+(dO-Bf)/2}px`},ownerState:u},l,{children:s}))}const Vgt=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:a})=>{const s=t?a.getHours(t):null,o=[],l=e?1:0,u=e?12:23,c=f=>s===null?!1:e?f===12?s===12||s===0:s===f||s-12===f:s===f;for(let f=l;f<=u;f+=1){let h=f.toString();f===0&&(h="00");const g=!e&&(f===0||f>12);h=a.formatNumber(h);const b=c(f);o.push(I.jsx(U1e,{id:b?i:void 0,index:f,inner:g,selected:b,disabled:r(f),label:h,"aria-label":n(h)},f))}return o},ure=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([s,o],l)=>{const u=s===t;return I.jsx(U1e,{label:o,id:u?i:void 0,index:l+1,inner:!1,disabled:n(s),selected:u,"aria-label":r(o)},s)})},Wgt=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Qgt=e=>{const{classes:t}=e;return Mt({root:["root"],arrowSwitcher:["arrowSwitcher"]},ygt,t)},qgt=Re(YI,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Ggt=Re(b1e,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Ygt=["hours","minutes"],Zgt=N.forwardRef(function(t,n){const r=yr(),i=_t({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:o,components:l,componentsProps:u,slots:c,slotProps:f,value:h,defaultValue:g,referenceDate:b,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:w,minTime:E,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:R,shouldDisableTime:A,showViewSwitcher:D,onChange:B,view:L,views:F=Ygt,openTo:W,onViewChange:V,focusedView:Z,onFocusedViewChange:Q,className:H,disabled:J,readOnly:K,timezone:X}=i,te=at(i,Wgt),z=c??XT(l),Te=f??u,{value:be,handleValueChange:ee,timezone:ye}=ZO({name:"TimeClock",timezone:X,value:h,defaultValue:g,onChange:B,valueManager:us}),Oe=jW({value:be,referenceDate:b,utils:r,props:i,timezone:ye}),ie=cs(),_e=D0(ye),{view:Ie,setView:qe,previousView:st,nextView:Pe,setValueAndGoToNextView:tt}=KT({view:L,views:F,openTo:W,onViewChange:V,onChange:ee,focusedView:Z,onFocusedViewChange:Q}),{meridiemMode:Ve,handleMeridiemChange:Xe}=qI(Oe,a,tt),et=N.useCallback((le,he)=>{const je=ZT(S,r),Ze=he==="hours"||he==="minutes"&&F.includes("seconds"),We=({start:xe,end:ve})=>!(E&&je(E,ve)||w&&je(xe,w)||x&&je(xe,_e)||k&&je(_e,Ze?ve:xe)),fe=(xe,ve=1)=>{if(xe%ve!==0||R!=null&&R(xe,he))return!1;if(A)switch(he){case"hours":return!A(r.setHours(Oe,xe),"hours");case"minutes":return!A(r.setMinutes(Oe,xe),"minutes");case"seconds":return!A(r.setSeconds(Oe,xe),"seconds");default:return!1}return!0};switch(he){case"hours":{const xe=bx(le,Ve,a),ve=r.setHours(Oe,xe),De=r.setSeconds(r.setMinutes(ve,0),0),$e=r.setSeconds(r.setMinutes(ve,59),59);return!We({start:De,end:$e})||!fe(xe)}case"minutes":{const xe=r.setMinutes(Oe,le),ve=r.setSeconds(xe,0),De=r.setSeconds(xe,59);return!We({start:ve,end:De})||!fe(le,C)}case"seconds":{const xe=r.setSeconds(Oe,le);return!We({start:xe,end:xe})||!fe(le)}default:throw new Error("not supported")}},[a,Oe,S,w,Ve,E,C,R,A,r,x,k,_e,F]),ft=Td(),At=N.useMemo(()=>{switch(Ie){case"hours":{const le=(he,je)=>{const Ze=bx(he,Ve,a);tt(r.setHours(Oe,Ze),je)};return{onChange:le,viewValue:r.getHours(Oe),children:Vgt({value:be,utils:r,ampm:a,onChange:le,getClockNumberText:ie.hoursClockNumberText,isDisabled:he=>J||et(he,"hours"),selectedId:ft})}}case"minutes":{const le=r.getMinutes(Oe),he=(je,Ze)=>{tt(r.setMinutes(Oe,je),Ze)};return{viewValue:le,onChange:he,children:ure({utils:r,value:le,onChange:he,getClockNumberText:ie.minutesClockNumberText,isDisabled:je=>J||et(je,"minutes"),selectedId:ft})}}case"seconds":{const le=r.getSeconds(Oe),he=(je,Ze)=>{tt(r.setSeconds(Oe,je),Ze)};return{viewValue:le,onChange:he,children:ure({utils:r,value:le,onChange:he,getClockNumberText:ie.secondsClockNumberText,isDisabled:je=>J||et(je,"seconds"),selectedId:ft})}}default:throw new Error("You must provide the type for ClockView")}},[Ie,r,be,a,ie.hoursClockNumberText,ie.minutesClockNumberText,ie.secondsClockNumberText,Ve,tt,Oe,et,ft,J]),Je=i,pe=Qgt(Je);return I.jsxs(qgt,M({ref:n,className:dt(pe.root,H),ownerState:Je},te,{children:[I.jsx(Bgt,M({autoFocus:o??!!Z,ampmInClock:s&&F.includes("hours"),value:be,type:Ie,ampm:a,minutesStep:C,isTimeDisabled:et,meridiemMode:Ve,handleMeridiemChange:Xe,selectedId:ft,disabled:J,readOnly:K},At)),D&&I.jsx(Ggt,{className:pe.arrowSwitcher,slots:z,slotProps:Te,onGoToPrevious:()=>qe(st),isPreviousDisabled:!st,previousLabel:ie.openPreviousView,onGoToNext:()=>qe(Pe),isNextDisabled:!Pe,nextLabel:ie.openNextView,ownerState:Je})]}))});function Xgt(e){return $t("MuiDigitalClock",e)}const Kgt=Ft("MuiDigitalClock",["root","list","item"]),Jgt=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],e1t=e=>{const{classes:t}=e;return Mt({root:["root"],list:["list"],item:["item"]},Xgt,t)},t1t=Re(YI,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:y1e})),n1t=Re(kO,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),r1t=Re(rp,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette.primary.main,e.palette.action.focusOpacity)}})),i1t=N.forwardRef(function(t,n){var r,i,a;const s=yr(),o=N.useRef(null),l=Jn(n,o),u=_t({props:t,name:"MuiDigitalClock"}),{ampm:c=s.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:h,components:g,componentsProps:b,slots:S,slotProps:w,value:E,defaultValue:x,referenceDate:k,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:R,minTime:A,disableFuture:D,disablePast:B,minutesStep:L=1,shouldDisableClock:F,shouldDisableTime:W,onChange:V,view:Z,openTo:Q,onViewChange:H,focusedView:J,onFocusedViewChange:K,className:X,disabled:te,readOnly:z,views:Te=["hours"],skipDisabled:be=!1,timezone:ee}=u,ye=at(u,Jgt),{value:Oe,handleValueChange:ie,timezone:_e}=ZO({name:"DigitalClock",timezone:ee,value:E,defaultValue:x,onChange:V,valueManager:us}),Ie=cs(),qe=D0(_e),st=N.useMemo(()=>M({},u,{alreadyRendered:!!o.current}),[u]),Pe=e1t(st),tt=(r=(i=S==null?void 0:S.digitalClockItem)!=null?i:g==null?void 0:g.DigitalClockItem)!=null?r:r1t,Ve=cr({elementType:tt,externalSlotProps:(a=w==null?void 0:w.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:Pe.item}),Xe=jW({value:Oe,referenceDate:k,utils:s,props:u,timezone:_e}),et=on(le=>ie(le,"finish","hours")),{setValueAndGoToNextView:ft}=KT({view:Z,views:Te,openTo:Q,onViewChange:H,onChange:et,focusedView:J,onFocusedViewChange:K}),At=on(le=>{ft(le,"finish")});N.useEffect(()=>{if(o.current===null)return;const le=o.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!le)return;const he=le.offsetTop;o.current.scrollTop=he-4});const Je=N.useCallback(le=>{const he=ZT(C,s),je=()=>!(A&&he(A,le)||R&&he(le,R)||D&&he(le,qe)||B&&he(qe,le)),Ze=()=>s.getMinutes(le)%L!==0||F!=null&&F(s.toJsDate(le).getTime(),"hours")?!1:W?!W(le,"hours"):!0;return!je()||!Ze()},[C,s,A,R,D,qe,B,L,F,W]),pe=N.useMemo(()=>{const le=s.startOfDay(Xe);return[le,...Array.from({length:Math.ceil(24*60/f)-1},(he,je)=>s.addMinutes(le,f*(je+1)))]},[Xe,f,s]);return I.jsx(t1t,M({ref:l,className:dt(Pe.root,X),ownerState:st},ye,{children:I.jsx(n1t,{autoFocusItem:h||!!J,role:"listbox","aria-label":Ie.timePickerToolbarTitle,className:Pe.list,children:pe.map(le=>{if(be&&Je(le))return null;const he=s.isEqual(le,Oe);return I.jsx(tt,M({onClick:()=>!z&&At(le),selected:he,disabled:te||Je(le),disableRipple:z,role:"option","aria-disabled":z,"aria-selected":he},Ve,{children:s.format(le,c?"fullTime12h":"fullTime24h")}),s.toISO(le))})})}))}),cv=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,ampmInClock:k,components:C,componentsProps:R,slots:A,slotProps:D,readOnly:B,disabled:L,sx:F,autoFocus:W,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:Z,timezone:Q})=>I.jsx(Zgt,{view:e,onViewChange:t,focusedView:n&&cO(n)?n:null,onFocusedViewChange:r,views:i.filter(cO),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,ampmInClock:k,components:C,componentsProps:R,slots:A,slotProps:D,readOnly:B,disabled:L,sx:F,autoFocus:W,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:Z,timezone:Q}),z1e=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,components:k,componentsProps:C,slots:R,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeSteps:V,skipDisabled:Z,timezone:Q})=>I.jsx(i1t,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(cO),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,components:k,componentsProps:C,slots:R,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeStep:V==null?void 0:V.minutes,skipDisabled:Z,timezone:Q}),a9=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,components:k,componentsProps:C,slots:R,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeSteps:V,skipDisabled:Z,timezone:Q})=>I.jsx(ggt,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(cO),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,components:k,componentsProps:C,slots:R,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeSteps:V,skipDisabled:Z,timezone:Q}),mg=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,minTime:b,maxDate:S,maxTime:w,shouldDisableDate:E,shouldDisableMonth:x,shouldDisableYear:k,shouldDisableTime:C,shouldDisableClock:R,reduceAnimations:A,minutesStep:D,ampm:B,onMonthChange:L,monthsPerRow:F,onYearChange:W,yearsPerRow:V,defaultCalendarMonth:Z,components:Q,componentsProps:H,slots:J,slotProps:K,loading:X,renderLoading:te,disableHighlightToday:z,readOnly:Te,disabled:be,showDaysOutsideCurrentMonth:ee,dayOfWeekFormatter:ye,sx:Oe,autoFocus:ie,fixedWeekNumber:_e,displayWeekNumber:Ie,timezone:qe,disableIgnoringDatePartForTimeValidation:st,timeSteps:Pe,skipDisabled:tt,timeViewsCount:Ve,shouldRenderTimeInASingleColumn:Xe})=>{var et,ft;const At=!!((et=y0((ft=K==null?void 0:K.actionBar)!=null?ft:H==null?void 0:H.actionBar,{}))!=null&&(et=et.actions)!=null&&et.length),Je={view:am(e)?e:"hours",onViewChange:t,focusedView:r&&am(r)?r:null,onFocusedViewChange:i,views:n.filter(am),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:b,maxTime:w,shouldDisableTime:C,shouldDisableClock:R,minutesStep:D,ampm:B,components:Q,componentsProps:H,slots:J,slotProps:K,readOnly:Te,disabled:be,autoFocus:ie,disableIgnoringDatePartForTimeValidation:st,timeSteps:Pe,skipDisabled:tt,timezone:qe};return I.jsxs(N.Fragment,{children:[I.jsxs(bgt,{children:[I.jsx(D1e,{view:lv(e)?e:"day",onViewChange:t,views:n.filter(lv),focusedView:r&&lv(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,maxDate:S,shouldDisableDate:E,shouldDisableMonth:x,shouldDisableYear:k,reduceAnimations:A,onMonthChange:L,monthsPerRow:F,onYearChange:W,yearsPerRow:V,defaultCalendarMonth:Z,components:Q,componentsProps:H,slots:J,slotProps:K,loading:X,renderLoading:te,disableHighlightToday:z,readOnly:Te,disabled:be,showDaysOutsideCurrentMonth:ee,dayOfWeekFormatter:ye,sx:Oe,autoFocus:ie,fixedWeekNumber:_e,displayWeekNumber:Ie,timezone:qe}),Ve>0&&I.jsxs(N.Fragment,{children:[I.jsx(c1,{orientation:"vertical"}),Xe?z1e(M({},Je,{view:"hours",views:["hours"],focusedView:r&&am(r)?"hours":null,sx:M({width:"auto",[`&.${Kgt.root}`]:{maxHeight:QI}},Array.isArray(Oe)?Oe:[Oe])})):a9(M({},Je,{view:am(e)?e:"hours",views:n.filter(am),focusedView:r&&am(r)?r:null,sx:M({borderBottom:0,width:"auto",[`.${sgt.root}`]:{maxHeight:"100%"}},Array.isArray(Oe)?Oe:[Oe])}))]})]}),At&&I.jsx(c1,{})]})},a1t=["views","format"],j1e=(e,t)=>{let{views:n,format:r}=t,i=at(t,a1t);if(r)return r;const a=[],s=[];if(n.forEach(u=>{cO(u)?s.push(u):a.push(u)}),s.length===0)return gx(e,M({views:a},i),!1);if(a.length===0)return c5(e,M({views:s},i));const o=c5(e,M({views:s},i));return`${gx(e,M({views:a},i),!1)} ${o}`},s1t=(e,t,n)=>n?t.filter(r=>!am(r)||r==="hours"):e?[...t,"meridiem"]:t,o1t=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function H1e({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,a=M({hours:1,minutes:5,seconds:5},n),s=o1t(a,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:a,shouldRenderTimeInASingleColumn:s,views:s1t(t,r,s)}}const V1e=N.forwardRef(function(t,n){var r,i,a,s,o,l,u;const c=cs(),f=yr(),h=$1e(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:g,thresholdToRenderTimeInASingleColumn:b,views:S,timeSteps:w}=H1e(h),E=!h.viewRenderers||Object.keys(h.viewRenderers).length===0,x=E?{day:mg,month:mg,year:mg,hours:mg,minutes:mg,seconds:mg,meridiem:mg}:M({day:wc,month:wc,year:wc,hours:null,minutes:null,seconds:null,meridiem:null},h.viewRenderers),k=(r=h.ampmInClock)!=null?r:!0,C=E?["accept"]:[],R=M({},h,{viewRenderers:x,format:j1e(f,h),views:S,yearsPerRow:(i=h.yearsPerRow)!=null?i:4,ampmInClock:k,timeSteps:w,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:g,slots:M({field:P1e,openPickerIcon:g1e},h.slots),slotProps:M({},h.slotProps,{field:D=>{var B;return M({},y0((B=h.slotProps)==null?void 0:B.field,D),XO(h),{ref:n})},toolbar:M({hidden:!0,ampmInClock:k,toolbarVariant:E?"desktop":"mobile"},(a=h.slotProps)==null?void 0:a.toolbar),tabs:M({hidden:!0},(s=h.slotProps)==null?void 0:s.tabs),actionBar:M({actions:C},(o=h.slotProps)==null?void 0:o.actionBar)})}),{renderPicker:A}=FW({props:R,valueManager:us,valueType:"date-time",getOpenDialogAriaText:(l=(u=R.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:GI});return A()});V1e.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,maxDateTime:Y.any,maxTime:Y.any,minDate:Y.any,minDateTime:Y.any,minTime:Y.any,minutesStep:Y.number,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableTime:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,skipDisabled:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),thresholdToRenderTimeInASingleColumn:Y.number,timeSteps:Y.shape({hours:Y.number,minutes:Y.number,seconds:Y.number}),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Y.shape({day:Y.func,hours:Y.func,meridiem:Y.func,minutes:Y.func,month:Y.func,seconds:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const W1e=N.forwardRef(function(t,n){var r,i,a,s,o;const l=cs(),u=yr(),c=$1e(t,"MuiMobileDateTimePicker"),f=M({day:wc,month:wc,year:wc,hours:cv,minutes:cv,seconds:cv},c.viewRenderers),h=(r=c.ampmInClock)!=null?r:!1,g=M({},c,{viewRenderers:f,format:j1e(u,c),ampmInClock:h,slots:M({field:P1e},c.slots),slotProps:M({},c.slotProps,{field:S=>{var w;return M({},y0((w=c.slotProps)==null?void 0:w.field,S),XO(c),{ref:n})},toolbar:M({hidden:!1,ampmInClock:h},(i=c.slotProps)==null?void 0:i.toolbar),tabs:M({hidden:!1},(a=c.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=UW({props:g,valueManager:us,valueType:"date-time",getOpenDialogAriaText:(s=(o=g.localeText)==null?void 0:o.openDatePickerDialogue)!=null?s:l.openDatePickerDialogue,validator:GI});return b()});W1e.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,maxDateTime:Y.any,maxTime:Y.any,minDate:Y.any,minDateTime:Y.any,minTime:Y.any,minutesStep:Y.number,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableTime:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Y.shape({day:Y.func,hours:Y.func,minutes:Y.func,month:Y.func,seconds:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const l1t=["desktopModeMediaQuery"],u1t=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=NW}=r,a=at(r,l1t);return TO(i,{defaultMatches:!0})?I.jsx(V1e,M({ref:n},a)):I.jsx(W1e,M({ref:n},a))}),c1t=e=>{var t,n,r,i;const a=yr(),o=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return M({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:o})},d1t=({props:e,inputRef:t})=>{const n=c1t(e),{forwardedProps:r,internalProps:i}=$W(n,"time");return LW({inputRef:t,forwardedProps:r,internalProps:i,valueManager:us,fieldValueManager:IW,validator:JT,valueType:"time"})},f1t=["slots","slotProps","components","componentsProps","InputProps","inputProps"],h1t=["inputRef"],p1t=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Q1e=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiTimeField"}),{slots:o,slotProps:l,components:u,componentsProps:c,InputProps:f,inputProps:h}=s,g=at(s,f1t),b=s,S=(r=(i=o==null?void 0:o.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:E0,w=cr({elementType:S,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:c==null?void 0:c.textField,externalForwardedProps:g,ownerState:b}),{inputRef:E}=w,x=at(w,h1t);x.inputProps=M({},h,x.inputProps),x.InputProps=M({},f,x.InputProps);const k=d1t({props:x,inputRef:E}),{ref:C,onPaste:R,onKeyDown:A,inputMode:D,readOnly:B,clearable:L,onClear:F}=k,W=at(k,p1t),{InputProps:V,fieldProps:Z}=BW({onClear:F,clearable:L,fieldProps:W,InputProps:W.InputProps,slots:o,slotProps:l,components:u,componentsProps:c});return I.jsx(S,M({ref:n},Z,{InputProps:M({},V,{readOnly:B}),inputProps:M({},W.inputProps,{inputMode:D,onPaste:R,onKeyDown:A,ref:C})}))});function m1t(e){return $t("MuiTimePickerToolbar",e)}const ew=Ft("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),g1t=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],b1t=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Mt(i,m1t,r)},y1t=Re(DW,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),v1t=Re(PW,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),q1e=Re("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${ew.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${ew.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>M({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));q1e.propTypes={as:Y.elementType,ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};const G1e=Re("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${ew.ampmLabel}`]:t.ampmLabel},{[`&.${ew.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>M({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${ew.ampmLabel}`]:{fontSize:17}}));G1e.propTypes={as:Y.elementType,ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};function O1t(e){const t=_t({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:a,onChange:s,view:o,onViewChange:l,views:u,disabled:c,readOnly:f}=t,h=at(t,g1t),g=yr(),b=cs(),S=Ni(),w=!!(n&&!r&&u.includes("hours")),{meridiemMode:E,handleMeridiemChange:x}=qI(i,n,s),k=D=>n?g.format(D,"hours12h"):g.format(D,"hours24h"),C=t,R=b1t(M({},C,{theme:S})),A=I.jsx(v1t,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:R.separator});return I.jsxs(y1t,M({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:R.root},h,{children:[I.jsxs(q1e,{className:R.hourMinuteLabel,ownerState:C,children:[py(u,"hours")&&I.jsx(ou,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:o==="hours",value:i?k(i):"--"}),py(u,["hours","minutes"])&&A,py(u,"minutes")&&I.jsx(ou,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:o==="minutes",value:i?g.format(i,"minutes"):"--"}),py(u,["minutes","seconds"])&&A,py(u,"seconds")&&I.jsx(ou,{variant:"h3",onClick:()=>l("seconds"),selected:o==="seconds",value:i?g.format(i,"seconds"):"--"})]}),w&&I.jsxs(G1e,{className:R.ampmSelection,ownerState:C,children:[I.jsx(ou,{disableRipple:!0,variant:"subtitle2",selected:E==="am",typographyClassName:R.ampmLabel,value:fd(g,"am"),onClick:f?void 0:()=>x("am"),disabled:c}),I.jsx(ou,{disableRipple:!0,variant:"subtitle2",selected:E==="pm",typographyClassName:R.ampmLabel,value:fd(g,"pm"),onClick:f?void 0:()=>x("pm"),disabled:c})]})]}))}function Y1e(e,t){var n,r,i,a,s;const o=yr(),l=_t({props:e,name:t}),u=(n=l.ampm)!=null?n:o.is12HourCycleInCurrentLocale(),c=N.useMemo(()=>{var g;return((g=l.localeText)==null?void 0:g.toolbarTitle)==null?l.localeText:M({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:XT(l.components),h=(i=l.slotProps)!=null?i:l.componentsProps;return M({},l,{ampm:u,localeText:c},CW({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(s=l.disablePast)!=null?s:!1,slots:M({toolbar:O1t},f),slotProps:M({},h,{toolbar:M({ampm:u,ampmInClock:l.ampmInClock},h==null?void 0:h.toolbar)})})}const Z1e=N.forwardRef(function(t,n){var r,i,a,s,o,l;const u=cs(),c=yr(),f=Y1e(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:h,views:g,timeSteps:b}=H1e(f),S=h?z1e:a9,w=M({hours:S,minutes:S,seconds:S,meridiem:S},f.viewRenderers),E=(r=f.ampmInClock)!=null?r:!0,x=h?[]:["accept"],C=((i=w.hours)==null?void 0:i.name)===a9.name?g:g.filter(D=>D!=="meridiem"),R=M({},f,{ampmInClock:E,timeSteps:b,viewRenderers:w,format:c5(c,f),views:h?["hours"]:C,slots:M({field:Q1e,openPickerIcon:tpt},f.slots),slotProps:M({},f.slotProps,{field:D=>{var B;return M({},y0((B=f.slotProps)==null?void 0:B.field,D),XO(f),{ref:n})},toolbar:M({hidden:!0,ampmInClock:E},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:M({actions:x},(s=f.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:A}=FW({props:R,valueManager:us,valueType:"time",getOpenDialogAriaText:(o=(l=R.localeText)==null?void 0:l.openTimePickerDialogue)!=null?o:u.openTimePickerDialogue,validator:JT});return A()});Z1e.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,localeText:Y.object,maxTime:Y.any,minTime:Y.any,minutesStep:Y.number,name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,open:Y.bool,openTo:Y.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableTime:Y.func,skipDisabled:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),thresholdToRenderTimeInASingleColumn:Y.number,timeSteps:Y.shape({hours:Y.number,minutes:Y.number,seconds:Y.number}),timezone:Y.string,value:Y.any,view:Y.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Y.shape({hours:Y.func,meridiem:Y.func,minutes:Y.func,seconds:Y.func}),views:Y.arrayOf(Y.oneOf(["hours","minutes","seconds"]).isRequired)};const X1e=N.forwardRef(function(t,n){var r,i,a,s;const o=cs(),l=yr(),u=Y1e(t,"MuiMobileTimePicker"),c=M({hours:cv,minutes:cv,seconds:cv},u.viewRenderers),f=(r=u.ampmInClock)!=null?r:!1,h=M({},u,{ampmInClock:f,viewRenderers:c,format:c5(l,u),slots:M({field:Q1e},u.slots),slotProps:M({},u.slotProps,{field:b=>{var S;return M({},y0((S=u.slotProps)==null?void 0:S.field,b),XO(u),{ref:n})},toolbar:M({hidden:!1,ampmInClock:f},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:g}=UW({props:h,valueManager:us,valueType:"time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openTimePickerDialogue)!=null?a:o.openTimePickerDialogue,validator:JT});return g()});X1e.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:OO,label:Y.node,localeText:Y.object,maxTime:Y.any,minTime:Y.any,minutesStep:Y.number,name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,open:Y.bool,openTo:Y.oneOf(["hours","minutes","seconds"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableTime:Y.func,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["hours","minutes","seconds"]),viewRenderers:Y.shape({hours:Y.func,minutes:Y.func,seconds:Y.func}),views:Y.arrayOf(Y.oneOf(["hours","minutes","seconds"]).isRequired)};const S1t=["desktopModeMediaQuery"],E1t=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=NW}=r,a=at(r,S1t);return TO(i,{defaultMatches:!0})?I.jsx(Z1e,M({ref:n},a)):I.jsx(X1e,M({ref:n},a))});var HW={},w1t=ca;Object.defineProperty(HW,"__esModule",{value:!0});var K1e=HW.default=void 0,x1t=w1t(da()),T1t=I;K1e=HW.default=(0,x1t.default)((0,T1t.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var VW={},k1t=ca;Object.defineProperty(VW,"__esModule",{value:!0});var WW=VW.default=void 0,C1t=k1t(da()),A1t=I;WW=VW.default=(0,C1t.default)((0,A1t.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var QW={},_1t=ca;Object.defineProperty(QW,"__esModule",{value:!0});var J1e=QW.default=void 0,R1t=_1t(da()),I1t=I;J1e=QW.default=(0,R1t.default)((0,I1t.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function s9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function z1t(e,t){return D1t(e)||L1t(e,t)||ebe(e,t)||$1t()}function p0(e){return N1t(e)||M1t(e)||ebe(e)||F1t()}function j1t(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function ebe(e,t){if(e){if(typeof e=="string")return s9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s9(e,t)}}var H1t=N.createContext({onError:function(e){return e==null?void 0:e.message}}),Pu=function(){var e;return(e=N.useContext(H1t))===null||e===void 0?void 0:e.onError};function Dl(e){var t;return{value:typeof((t=e.transform)===null||t===void 0?void 0:t.input)=="function"?e.transform.input(e.value):e.value,onChange:function(){for(var n=arguments.length,r=new Array(n),i=0;i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email address"}}),E=Il({name:o,control:l,disabled:g.disabled,rules:w}),x=E.field,k=E.fieldState,C=k.error,R=Dl({value:x.value,onChange:x.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(L){return L||""},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(L){var F=L.target.value;return a==="number"&&F?+F:F}}}),A=R.value,D=R.onChange,B=Jn(x.ref,f);return I.jsx(c,fr(cn({},g),{name:x.name,value:A,onChange:function(L){D(L),typeof g.onChange=="function"&&g.onChange(L)},onBlur:x.onBlur,required:s,type:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:g.helperText,ref:t,inputRef:B}))});tbe.displayName="TextFieldElement";var ZI=tbe;function ek(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=Js(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),I.jsx(Vge,fr(cn({},i),{children:I.jsx("form",fr(cn({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):I.jsx(V1t,cn({onSuccess:a,onError:s,FormProps:r,children:n},o))}function V1t(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=Js(e,["onSuccess","onError","FormProps","children"]),s=r1e(cn({},a)),o=s.handleSubmit;return I.jsx(Vge,fr(cn({},s),{children:I.jsx("form",fr(cn({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var nbe={disableFuture:"Date must be in the past",maxDate:"Date is later than the maximum allowed date",disablePast:"Past date is not allowed",invalidDate:"Date is invalid",minDate:"Date is earlier than the minimum allowed date",shouldDisableDate:"Date is not allowed",shouldDisableMonth:"Month is not allowed",shouldDisableYear:"Year is not allowed"},W1t=N.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,a=e.validation,s=a===void 0?{}:a,o=e.inputProps,l=e.control,u=e.textReadOnly,c=e.slotProps,f=e.overwriteErrorMessages,h=e.inputRef,g=e.transform,b=Js(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),S=Pd(),w=Pu(),E=n||w,x=cn({},nbe,f),k=fr(cn({},s,i&&!s.required&&{required:"This field is required"}),{validate:cn({internal:function(Z){var Q,H,J=Z==null||!S.utils.isValid(Z)?null:S.utils.getTimezone(Z),K=$1({props:{shouldDisableDate:b.shouldDisableDate,shouldDisableMonth:b.shouldDisableMonth,shouldDisableYear:b.shouldDisableYear,disablePast:!!b.disablePast,disableFuture:!!b.disableFuture,minDate:b.minDate,maxDate:b.maxDate,timezone:(H=(Q=b.timezone)!==null&&Q!==void 0?Q:J)!==null&&H!==void 0?H:"default"},value:Z,adapter:S});return K==null||x[K]}},s.validate)}),C=Il({name:r,control:l,rules:k,disabled:b.disabled,defaultValue:null}),R=C.field,A=C.fieldState,D=A.error,B=Dl({value:R.value,onChange:R.onChange,transform:{input:typeof(g==null?void 0:g.input)=="function"?g.input:function(Z){return Z&&Z==="string"?new Date(Z):Z},output:typeof(g==null?void 0:g.output)=="function"?g.output:function(Z){return Z}}}),L=B.value,F=B.onChange,W=Jn(R.ref,h),V=D?typeof E=="function"?E(D):D.message:null;return I.jsx(B0t,fr(cn({},b,R),{value:L,ref:t,inputRef:W,onClose:function(){for(var Z=arguments.length,Q=new Array(Z),H=0;H"u"?"undefined":j1t(Z))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),I.jsxs(E0,fr(cn({},k),{name:r,value:Z,onBlur:L.onBlur,ref:t,onChange:function(J){if(Q(J),typeof k.onChange=="function"){var K=J.target.value;h==="number"&&K&&(K=Number(K)),g&&(K=c.find(function(X){return X[s]===K})),k.onChange(K)}},select:!0,required:i,error:!!W,helperText:W?typeof R=="function"?R(W):W.message:k.helperText,inputRef:H,children:[A&&I.jsx("option",{}),c.map(function(J){var K,X={key:"".concat(r,"_").concat(J[s]),value:(K=J==null?void 0:J[s])!==null&&K!==void 0?K:J,disabled:vl(J,"disabled")?!!J.disabled:!1,children:J[l]};return A?I.jsx("option",cn({},X)):I.jsx(rp,cn({},X))})]}))});rbe.displayName="SelectElement";var o9=rbe,K1t=N.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,u=l===void 0?"label":l,c=e.valueKey,f=c===void 0?"id":c,h=e.returnObject,g=e.disabled,b=e.row,S=e.control,w=e.checkboxColor,E=e.rules,x=e.labelProps,k=e.transform,C=e.defaultValue,R=C===void 0?[]:C,A=Js(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),D=Ni(),B=Pu(),L=s||B,F=Il({name:a,rules:o?{required:"This field is required"}:E,disabled:g,control:S,defaultValue:R}),W=F.field,V=F.fieldState,Z=V.error,Q=V.invalid,H=Dl({value:W.value,onChange:W.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(z){return Array.isArray(z)?z:[]},output:k==null?void 0:k.output}}),J=H.value,K=H.onChange,X=function(z){var Te=vl(z,f)?z[f]:z,be=J.findIndex(function(ye){var Oe=vl(ye,f)?ye[f]:ye;return Te===Oe}),ee=(be===-1?p0(J).concat([z]):J.filter(function(ye,Oe){return be!==Oe})).map(function(ye){return h||!vl(ye,f)?ye:ye[f]});K(ee),typeof A.onChange=="function"&&A.onChange(ee)},te=Z?typeof L=="function"?L(Z):Z.message:n;return I.jsxs(kd,{error:Q,required:o,ref:t,children:[i?I.jsx(DR,{children:i}):null,I.jsx(mF,{row:b,children:r.map(function(z){var Te=vl(z,f)?z[f]:z,be=vl(z,u)?z[u]:z,ee=J.some(function(ye){return(vl(ye,f)?ye[f]:ye)===Te});return N.createElement(Rw,fr(cn({},x),{control:I.jsx(RR,{sx:{color:Z?D.palette.error.main:void 0},color:w,value:Te,checked:ee,disabled:g,onChange:function(){return X(z)}}),label:"".concat(be),key:"".concat(Te)}))})}),te&&I.jsx(xO,{children:te})]})});K1t.displayName="CheckboxButtonGroup";var J1t=48,ebt=8,tbt=N.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,u=l===void 0?"":l,c=e.itemKey,f=c===void 0?"id":c,h=e.itemValue,g=h===void 0?"":h,b=e.itemLabel,S=b===void 0?"label":b,w=e.required,E=w===void 0?!1:w,x=e.validation,k=x===void 0?{}:x,C=e.parseError,R=e.name,A=e.menuMaxHeight,D=A===void 0?J1t*4.5+ebt:A,B=e.menuMaxWidth,L=B===void 0?250:B,F=e.minWidth,W=F===void 0?120:F,V=e.helperText,Z=e.showChips,Q=e.preserveOrder,H=e.control,J=e.showCheckbox,K=e.formControlProps,X=e.inputRef,te=e.transform,z=Js(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),Te=Pu(),be=C||Te,ee=function(et){var ft,At;return(At=(ft=o.find(function(Je){var pe;return((pe=Je[g||f])!==null&&pe!==void 0?pe:Je)===et}))===null||ft===void 0?void 0:ft[S])!==null&&At!==void 0?At:et},ye=cn({},k,E&&!k.required&&{required:"This field is required"}),Oe=Il({name:R,rules:ye,disabled:z.disabled,control:H}),ie=Oe.field,_e=Oe.fieldState,Ie=_e.error,qe=Dl({value:ie.value,onChange:ie.onChange,transform:{input:typeof(te==null?void 0:te.input)=="function"?te.input:function(et){return Array.isArray(et)?et:[]},output:te==null?void 0:te.output}}),st=qe.value,Pe=qe.onChange,tt=Jn(ie.ref,X),Ve=Ie?typeof be=="function"?be(Ie):Ie.message:V,Xe;return I.jsxs(kd,fr(cn({},K),{style:cn({minWidth:W},K==null?void 0:K.style),variant:z.variant,fullWidth:z.fullWidth,error:!!Ie,size:z.size,ref:t,children:[u&&I.jsx(ole,{size:z.size==="small"?"small":void 0,error:!!Ie,htmlFor:z.id||"select-multi-select-".concat(R),required:E,children:u}),I.jsx(yle,fr(cn({},z),{id:z.id||"select-multi-select-".concat(R),multiple:!0,label:u||void 0,error:!!Ie,value:st,required:E,onChange:Pe,onBlur:ie.onBlur,MenuProps:fr(cn({},z.MenuProps),{slotProps:fr(cn({},(n=z.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:cn({},(Xe=(i=z.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&Xe!==void 0?Xe:{style:cn({maxHeight:D,width:L},vl((s=z.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof z.MenuProps.slotProps.paper.style=="object"&&cn({},z.MenuProps.slotProps.paper.style))})})}),renderValue:typeof z.renderValue=="function"?z.renderValue:Z?function(et){return I.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(Q?o.filter(function(ft){return et.includes(ft)}):et||[]).map(function(ft){return I.jsx(dF,{label:ee(ft),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Pe((Array.isArray(st)?st:[]).filter(function(At){return At!==ft}))},deleteIcon:I.jsx(K1e,{onMouseDown:function(At){At.stopPropagation()}})},ft)})})}:function(et){return Array.isArray(et)?et.map(ee).join(", "):""},inputRef:tt,children:o.map(function(et){var ft=et[g||f]||et,At=Array.isArray(st)?st.some(function(Je){return Je===ft}):!1;return I.jsxs(rp,{value:ft,sx:{fontWeight:function(Je){return At?Je.typography.fontWeightBold:Je.typography.fontWeightRegular}},children:[J&&I.jsx(RR,{checked:At}),I.jsx(np,{primary:et[S]||et})]},ft)})})),Ve&&I.jsx(xO,{error:!!Ie,children:Ve})]}))});tbt.displayName="MultiSelectElement";var ibe=N.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?I.jsx(WW,{}):I.jsx(J1e,{})}:r,a=Js(e,["iconColor","renderIcon"]),s=z1t(N.useState(!0),2),o=s[0],l=s[1];return I.jsx(ZI,fr(cn({},a),{ref:t,InputProps:{endAdornment:I.jsx(Dw,{position:"end",children:I.jsx(wa,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});ibe.displayName="PasswordElement";var nbt=ibe,rbt=N.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,u=e.valueKey,c=u===void 0?"id":u,f=e.required,h=e.emptyOptionLabel,g=e.returnObject,b=e.row,S=e.control,w=e.type,E=e.labelProps,x=e.disabled,k=e.formLabelProps,C=e.transform,R=Js(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),A=Ni(),D=Pu(),B=s||D,L=Il({name:a,rules:f?{required:"This field is required"}:void 0,disabled:x,control:S}),F=L.field,W=L.fieldState,V=W.error,Z=Dl({value:F.value,onChange:F.onChange,transform:{input:typeof(C==null?void 0:C.input)=="function"?C.input:function(X){return X||""},output:typeof(C==null?void 0:C.output)=="function"?C==null?void 0:C.output:function(X,te){return te}}}),Q=Z.value,H=Z.onChange,J=V?typeof B=="function"?B(V):V.message:n,K=function(X,te){var z=g?r.find(function(Te){return Te[c]===te}):te;H(X,z),typeof R.onChange=="function"&&R.onChange(z)};return I.jsxs(kd,{error:!!V,ref:t,children:[i&&I.jsx(DR,fr(cn({},k),{required:f,error:!!V,children:i})),I.jsxs(M7e,{onChange:K,name:a,row:b,value:Q,children:[h&&I.jsx(Rw,fr(cn({},E),{control:I.jsx(EZ,{sx:{color:V?A.palette.error.main:void 0},checked:!Q}),label:h,value:""})),r.map(function(X){var te=X[c];te||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),X);var z=g?Q==null?void 0:Q[c]:Q;w==="number"&&(z=Number(z));var Te=z===te;return N.createElement(Rw,fr(cn({},E),{control:I.jsx(EZ,{sx:{color:V?A.palette.error.main:void 0},disabled:x,checked:Te}),value:te,label:X[l],key:te}))})]}),J&&I.jsx(xO,{children:J})]})});rbt.displayName="RadioButtonGroup";var ibt=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=Js(e,["name","control","switchProps","transform"]),o=Il({name:n,control:r,disabled:s.disabled}),l=o.field,u=Dl({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(g,b){return b}}}),c=u.value,f=u.onChange,h=Jn(l.ref,i==null?void 0:i.ref);return I.jsx(Rw,cn({ref:t,control:I.jsx(I8e,fr(cn({},i),{name:l.name,value:c,onChange:function(g,b){f(g,b),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(g,b)},onBlur:function(g){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(g))},ref:h,checked:!!c}))},s))});ibt.displayName="SwitchElement";var abt=N.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=Js(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=Yge({name:n,control:i});return I.jsx(nbt,fr(cn({control:i},a),{ref:t,validation:{validate:function(o){return o===s||(r??"Password should match")}}}))});abt.displayName="PasswordRepeatElement";var sbt=N.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,u=e.rules,c=e.loadingIndicator,f=e.required,h=e.multiple,g=e.label,b=e.parseError,S=e.transform,w=e.matchId,E=Pu(),x=b||E,k=cn({},u,f&&{required:(u==null?void 0:u.required)||"This field is required"}),C=Il({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),R=C.field,A=C.fieldState,D=A.error,B=function(K){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(K):vl(K,"label")?"".concat(K==null?void 0:K.label):"".concat(K)},L=function(K,X){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(K,X);var te=vl(K,"id")?K.id:K,z=vl(X,"id")?X.id:X;return te===z},F=function(K){return s.find(function(X){return w&&vl(X,"id")?X.id===K:L(X,K)})},W=Dl({value:R.value,onChange:R.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(K){var X;return h?(Array.isArray(K)?K:[]).map(F):(X=F(K))!==null&&X!==void 0?X:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(K,X){if(h){var te=Array.isArray(X)?X:[];return w?te.map(function(z){return vl(z,"id")?z.id:z}):te}return w&&vl(X,"id")?X.id:X}}}),V=W.value,Z=W.onChange,Q=Jn(R.ref,n==null?void 0:n.inputRef),H=c||I.jsx(yp,{color:"inherit",size:20}),J;return I.jsx($Re,fr(cn({},r),{value:V,loading:o,multiple:h,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!h,isOptionEqualToValue:L,getOptionLabel:B,onChange:function(K,X,te,z){Z(K,X,te,z),r!=null&&r.onChange&&r.onChange(K,X,te,z)},ref:t,renderOption:(J=r==null?void 0:r.renderOption)!==null&&J!==void 0?J:l?function(K,X,te){var z=te.selected;return I.jsxs("li",fr(cn({},K),{children:[I.jsx(RR,{sx:{marginRight:1},checked:z}),B(X)]}))}:void 0,onBlur:function(K){R.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(K)},renderInput:function(K){return I.jsx(E0,fr(cn({name:i,required:u!=null&&u.required?!0:f,label:g},n,K),{error:!!D,InputLabelProps:cn({},K.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:cn(fr(cn({},K.InputProps),{endAdornment:I.jsxs(I.Fragment,{children:[o?H:null,K.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:cn({},K.inputProps,n==null?void 0:n.inputProps),helperText:D?typeof x=="function"?x(D):D.message:n==null?void 0:n.helperText,inputRef:Q}))}}))});sbt.displayName="AutocompleteElement";var obt=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,u=e.formControlProps,c=e.transform,f=Js(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),h=Pu(),g=o||h,b=cn({},s,l&&!s.required&&{required:"This field is required"}),S=Il({name:n,control:r,disabled:f.disabled,rules:b}),w=S.field,E=S.fieldState,x=E.error,k=E.invalid,C=Dl({value:w.value,onChange:w.onChange,transform:c}),R=C.value,A=C.onChange,D=x?typeof g=="function"?g(x):x.message:null;return I.jsxs(kd,fr(cn({error:k,required:l,fullWidth:!0},u),{ref:t,children:[i&&I.jsx(DR,{component:"legend",error:k,children:i}),I.jsx(f8e,fr(cn({},f),{value:R,onChange:A,valueLabelDisplay:f.valueLabelDisplay||"auto"})),D&&I.jsx(xO,{error:k,children:D})]}))});obt.displayName="SliderElement";var lbt=N.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,u=e.resizeStyle,c=e.inputRef,f=e.inputProps,h=e.transform,g=Js(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),b=Pu(),S=i||b,w=cn({},r,a&&!r.required&&{required:"This field is required"}),E=Il({name:s,control:o,rules:w,disabled:g.disabled}),x=E.field,k=E.fieldState,C=k.error,R=Dl({value:x.value,onChange:x.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(L){return L??""},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(L){return L.target.value}}}),A=R.value,D=R.onChange,B=Jn(x.ref,c);return I.jsx(E0,fr(cn({},g),{name:s,value:A,onChange:function(L){D(L),typeof g.onChange=="function"&&g.onChange(L)},onBlur:x.onBlur,required:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:g.helperText,inputRef:B,multiline:!0,InputProps:{inputComponent:joe,inputProps:cn({minRows:l,style:{resize:u||"both"}},f||{})},ref:t}))});lbt.displayName="TextareaAutosizeElement";var qW={},ubt=ca;Object.defineProperty(qW,"__esModule",{value:!0});var abe=qW.default=void 0,cbt=ubt(da()),dbt=I;abe=qW.default=(0,cbt.default)((0,dbt.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const fbt=e=>{var h;const t=pi(qT),n=pi(QF),[r,i]=N.useState(null),[a,s]=N.useState(null),[o,l]=N.useState(!1),[u,c]=N.useState(!1),f=N.useCallback(async g=>{var x,k;l(!0),c(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:g})})).body)==null?void 0:k.getReader();let w=!0,E="";for(;S;){const{done:C,value:R}=await S.read();if(l(!1),C)break;let A=new TextDecoder().decode(R);if(w){const D=A.split(` +`);s(D[0]),w=!1,A=D.slice(1).join(` +`)}E+=A,i(E)}c(!0)},[t.accessToken,(h=n.data)==null?void 0:h.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:u,mutateAsync:f}},hbt=e=>{var c;const t=pi(qT),n=pi(QF),[r,i]=N.useState(null),[a,s]=N.useState(!1),[o,l]=N.useState(!1),u=N.useCallback(async f=>{var S,w;if(!e)return;s(!0),l(!1),i(null);const g=(w=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:f})})).body)==null?void 0:w.getReader();let b="";for(;g;){const{done:E,value:x}=await g.read();if(s(!1),E)break;const k=new TextDecoder().decode(x);b+=k,i(b)}l(!0)},[t.accessToken,(c=n.data)==null?void 0:c.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:u}},F1={};F1.write=async e=>{await navigator.clipboard.writeText(e)};F1.read=async()=>navigator.clipboard.readText();F1.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};F1.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};function sbe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t=0)&&(n[i]=e[i]);return n}function dre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var obe=hn.createContext(),gbt={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},xh={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Ug={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Zoe,transitionDuration:{enter:225,exit:195}},tw=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},bbt=function(t){return""+tw(t.vertical)+tw(t.horizontal)},ybt=function(t){return Object.keys(t).filter(function(n){return!gbt.container[n]}).reduce(function(n,r){var i;return Bi({},n,(i={},i[r]=t[r],i))},{})},mm={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},e_={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+tw(n)+tw(r)},toVariant:function(t){return"variant"+tw(t)}},qA=function(t){return!!t||t===0},fre=function(t){return typeof t=="number"||t===null},vbt=function(t,n,r){return function(i){return i==="autoHideDuration"?fre(t.autoHideDuration)?t.autoHideDuration:fre(n.autoHideDuration)?n.autoHideDuration:Ug.autoHideDuration:t[i]||n[i]||r[i]}};function f7(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Bi({},n,{},t,{},e)}var Obt="SnackbarContent",lbe={root:Obt+"-root"},Sbt=Re("div")(function(e){var t,n,r=e.theme;return n={},n["&."+lbe.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),Ebt=N.forwardRef(function(e,t){var n=e.className,r=Ym(e,["className"]);return hn.createElement(Sbt,Object.assign({ref:t,className:Ox(lbe.root,n)},r))}),hre={right:"left",left:"right",bottom:"up",top:"down"},wbt=function(t){return t.horizontal!=="center"?hre[t.horizontal]:hre[t.vertical]},xbt=function(t){return hn.createElement(e0,Object.assign({},t),hn.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 + 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Tbt=function(t){return hn.createElement(e0,Object.assign({},t),hn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},kbt=function(t){return hn.createElement(e0,Object.assign({},t),hn.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, - 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},Sbt=function(t){return hn.createElement(Jm,Object.assign({},t),hn.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, - 0 22,12A10,10 0 0,0 12,2Z`}))},qA={fontSize:20,marginInlineEnd:8},Ebt={default:void 0,success:hn.createElement(ybt,{style:qA}),warning:hn.createElement(vbt,{style:qA}),error:hn.createElement(Obt,{style:qA}),info:hn.createElement(Sbt,{style:qA})};function nw(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},f7=16,gg="SnackbarContainer",td={root:gg+"-root",rootDense:gg+"-rootDense",top:gg+"-top",bottom:gg+"-bottom",left:gg+"-left",right:gg+"-right",center:gg+"-center"},Cbt=Re("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+td.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[d7.container]={pointerEvents:"all"},t[d7.wrapper]={padding:xh.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+xh.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+f7*2+"px)"},t),s["&."+td.rootDense]=(n={},n[d7.wrapper]={padding:xh.snackbar.dense+"px 0px"},n),s["&."+td.top]={top:xh.view.default-xh.snackbar.default,flexDirection:"column"},s["&."+td.bottom]={bottom:xh.view.default-xh.snackbar.default,flexDirection:"column-reverse"},s["&."+td.left]=(r={left:xh.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:f7+"px"},r),s["&."+td.right]=(i={right:xh.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:f7+"px"},i),s["&."+td.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),Abt=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=Gm(t,["className","anchorOrigin","dense"]),s=Ox(td[r.vertical],td[r.horizontal],td.root,n,i&&td.rootDense);return hn.createElement(Cbt,Object.assign({className:s},a))},_bt=hn.memo(Abt),Rbt=function(e){ubt(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,u=o.preventDuplicate,c=Gm(o,["key","preventDuplicate"]),f=QA(l),h=f?l:new Date().getTime()+Math.random(),g=hbt(c,i.props,Ug),b=Bi({key:h},c,{message:a,open:!0,entered:!1,requestClose:!1,variant:g("variant"),anchorOrigin:g("anchorOrigin"),autoHideDuration:g("autoHideDuration")});return c.persist&&(b.autoHideDuration=void 0),i.setState(function(S){if(u===void 0&&i.props.preventDuplicate||u){var E=function(C){return f?C.key===l:C.message===a},w=S.queue.findIndex(E)>-1,x=S.snacks.findIndex(E)>-1;if(w||x)return S}return i.handleDisplaySnack(Bi({},S,{queue:[].concat(S.queue,[b])}))}),h},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Bi({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(c){return!c.open||c.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(c,f){return c+(f.open&&f.persist?1:0)},0);l===i.maxSnack&&(o=!0);var u=a.snacks.map(function(c){return!s&&(!c.persist||o)?(s=!0,c.entered?(c.onClose&&c.onClose(null,pm.MAXSNACK,c.key),i.props.onClose&&i.props.onClose(null,pm.MAXSNACK,c.key),Bi({},c,{open:!1})):Bi({},c,{requestClose:!0})):Bi({},c)});return Bi({},a,{snacks:u})},i.handleEnteredSnack=function(a,s,o){if(!QA(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(c){return c.key===o?Bi({},c,{entered:!0}):Bi({},c)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==pm.CLICKAWAY){var l=o===void 0;i.setState(function(u){var c=u.snacks,f=u.queue;return{snacks:c.map(function(h){return!l&&h.key!==o?Bi({},h):h.entered?Bi({},h,{open:!1}):Bi({},h,{requestClose:!0})}),queue:f.filter(function(h){return h.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});QA(a)&&s&&s.onClose&&s.onClose(null,pm.INSTRUCTED,a),i.handleCloseSnack(null,pm.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!QA(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(Bi({},u,{snacks:u.snacks.filter(function(f){return f.key!==l})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(cre(i)),closeSnackbar:i.closeSnackbar.bind(cre(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,u=l===void 0?Ug.dense:l,c=s.hideIconVariant,f=c===void 0?Ug.hideIconVariant:c,h=s.domRoot,g=s.children,b=s.classes,S=b===void 0?{}:b,E=Gm(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),w=this.state.snacks.reduce(function(k,C){var R,A=dbt(C.anchorOrigin),D=k[A]||[];return Bi({},k,(R={},R[A]=[].concat(D,[C]),R))},{}),x=Object.keys(w).map(function(k){var C=w[k];return hn.createElement(_bt,{key:k,dense:u,anchorOrigin:C[0].anchorOrigin,className:Ox(S.containerRoot,S[J4.toContainerAnchorOrigin(k)])},C.map(function(R){return hn.createElement(kbt,Object.assign({},E,{key:R.key,snack:R,dense:u,iconVariant:o,hideIconVariant:f,classes:fbt(S),onClose:i.handleCloseSnack,onExited:nw([i.handleExitedSnack,i.props.onExited]),onEntered:nw([i.handleEnteredSnack,i.props.onEntered])}))}))});return hn.createElement(obe.Provider,{value:a},g,h?T1.createPortal(x,h):x)},lbt(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Ug.maxSnack}}]),t}(N.Component),YI=function(){return N.useContext(obe)};function Ibt(e){const{title:t,feature:n,onClose:r}=e,i=Ni(),a=kT(),s=pi(AO),{data:o,memoryKey:l,isLoading:u,isComplete:c,mutateAsync:f}=sbt(n),{data:h,isLoading:g,isComplete:b,mutateAsync:S}=obt(l),[E,w]=N.useState(""),x=document.getElementById($B),k=N.useMemo(()=>u||g,[u,g]),C=N.useMemo(()=>c||b,[c,b]),R=N.useMemo(()=>h||o,[o,h]),{enqueueSnackbar:A}=YI(),D=N.useRef(null),B=r1e(),{reset:L,formState:F}=B;N.useEffect(()=>{F.isSubmitSuccessful&&L({content:""})},[F.isSubmitSuccessful,L]),N.useEffect(()=>{w((x==null?void 0:x.getAttribute("content"))??"")},[x]),N.useEffect(()=>{E&&f(E)},[E,f]),N.useEffect(()=>{R&&D.current&&D.current.scrollTo({behavior:"smooth",top:D.current.scrollHeight})},[R]);const W=async()=>{R&&(await F1.write(R),A("URL Copied!",{variant:"success"}))},V=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},Z=H=>{S(H.content)},Q=(H=!1)=>{var be,ee;if(!s.cmView)return;const J=s.cmView.state.selection.main;let K=Math.min(J.to,J.from);const X=Math.max(J.to,J.from);let te=R;H||(K=X,te=` -${te}`);const z=H?K:K+1,Te=K+te.length;(be=s.doc)==null||be.update((ye,Oe)=>{ye.content.edit(K,X,te),Oe.set({selection:ye.content.indexRangeToPosRange([z,Te])})}),(ee=s.cmView)==null||ee.dispatch({changes:{from:K,to:X,insert:te},selection:{anchor:z,head:Te}}),r()};return I.jsxs(lr,{gap:4,children:[I.jsx(Ts,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:I.jsx(xr,{children:t})}),k&&I.jsx(bp,{sx:{marginX:"auto"}}),I.jsx(Ts,{ref:D,sx:{height:350,overflow:"auto"},children:!k&&I.jsx(S0e,{source:$L(R||""),wrapperElement:{"data-color-mode":a}})}),I.jsxs(lr,{gap:2,children:[I.jsx(tp,{in:C,children:I.jsxs(lr,{direction:"row",justifyContent:"flex-end",gap:1,children:[I.jsx(Ws,{variant:"outlined",onClick:V,children:I.jsx(Bge,{fontSize:"small"})}),I.jsx(Ws,{variant:"outlined",onClick:W,children:I.jsx(UI,{fontSize:"small"})}),I.jsx(Ws,{variant:"outlined",onClick:()=>Q(),children:"Insert below"}),I.jsx(Ws,{variant:"contained",onClick:()=>Q(!0),children:"Replace"})]})}),I.jsx(kd,{children:I.jsx(JT,{defaultValues:{content:""},formContext:B,onSuccess:Z,children:I.jsx(lr,{gap:4,alignItems:"flex-end",children:I.jsx(GI,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!C,size:"small",InputProps:{startAdornment:I.jsx(Dw,{position:"start",children:I.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:I.jsx(tp,{in:C,children:I.jsx(Dw,{position:"end",children:I.jsx(wa,{type:"submit",edge:"end",children:I.jsx(abe,{})})})})}})})})})]})]})}function Dbt(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return I.jsx(S0,{disableAutoFocus:!0,...n,children:I.jsx(Zs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:I.jsxs(lr,{gap:4,children:[I.jsxs(lr,{alignItems:"center",gap:1,children:[I.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),I.jsxs(xr,{variant:"h6",align:"center",children:["Do you want to discard",I.jsx("br",{}),"the Yorkie response?"]})]}),I.jsxs(lr,{direction:"row",gap:1,justifyContent:"center",children:[I.jsx(Ws,{variant:"outlined",onClick:i,children:"Discard"}),I.jsx(Ws,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function Nbt(e){const{onClose:t}=e,n=Ni(),r=pi(AO),i=N.useRef(null),[a,s]=N.useState(null),[o,l]=N.useState(null),[u,c]=N.useState(),[f,h]=N.useState(!1),g=N.useRef(null),b=N.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);N.useEffect(()=>{if(i.current)return c(i.current),()=>{c(void 0)}},[]);const S=(w,x)=>{l(w),s(x)},E=()=>{h(w=>!w)};return I.jsxs(Ts,{sx:{position:"absolute",mt:1},children:[I.jsx("span",{ref:i,style:{marginTop:4}}),I.jsx(RR,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:E,children:I.jsx(hF,{ref:g,sx:{boxShadow:n.shadows[11],borderRadius:2,width:b,padding:2},children:o&&a?I.jsx(Ibt,{title:a,feature:o,onClose:t}):I.jsx(qft,{onSelectFeature:S})})}),I.jsx(Dbt,{open:f,onCloseIntelligence:t,onClose:E})]})}function Pbt(){const e=Ni(),[t,n]=N.useState(!1),[r,i]=N.useState(null),[a,s]=N.useState(null),[o,l]=N.useState(null);bW(()=>{l(r)},500,[r]),N.useEffect(()=>{document.addEventListener("selectionchange",function(){const c=document.getElementById(spe),f=document.getElementById($B);i(c),s(f),c||(n(!1),l(null))})},[]);const u=()=>{n(c=>!c)};if(!(!o||!a))return I.jsxs(I.Fragment,{children:[I.jsx(wO,{open:!!o,anchorEl:o,placement:"top-start",transition:!0,children:({TransitionProps:c})=>I.jsx(tp,{...c,children:I.jsx(hF,{sx:{boxShadow:e.shadows[11],borderRadius:2,mb:1},children:I.jsx(Qoe,{sx:{paddingX:1.3,paddingY:.3},onClick:u,children:I.jsxs(lr,{direction:"row",alignItems:"center",gap:1,children:[I.jsx("img",{src:"/yorkie.png",height:20}),I.jsx(xr,{variant:"subtitle1",children:"Yorkie Intelligence"})]})})})})}),t&&T1.createPortal(I.jsx(Nbt,{onClose:u}),a)]})}function Mbt(){var l,u;const e=Du(),t=x0(),n=pi(zF),r=pi(rI),{data:i}=QF(t.workspaceSlug),{data:a}=fUe(i==null?void 0:i.id,t.documentId),{doc:s,client:o}=Nge(a==null?void 0:a.yorkieDocumentId,(l=n.data)==null?void 0:l.nickname);return N.useEffect(()=>{if(!(!s||!o))return e(t3(s)),e(n3(o)),()=>{e(t3(null)),e(n3(null))}},[e,o,s]),I.jsxs(Ts,{height:"calc(100% - 64px)",children:[I.jsx(xge,{}),((u=r.yorkieIntelligence)==null?void 0:u.enable)&&I.jsx(Pbt,{})]})}function Lbt(){return I.jsx(lr,{sx:{flexGrow:1,height:"100vh"},children:I.jsx(kF,{})})}function $bt(){const e=Du(),t=Wf(),[n]=CF();return N.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(gW(r))},[e,t,n]),I.jsx(Ts,{})}var qW={},Fbt=ca;Object.defineProperty(qW,"__esModule",{value:!0});var ube=qW.default=void 0,Bbt=Fbt(da()),Ubt=I;ube=qW.default=(0,Bbt.default)((0,Ubt.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var GW={},zbt=ca;Object.defineProperty(GW,"__esModule",{value:!0});var cbe=GW.default=void 0,jbt=zbt(da()),Hbt=I;cbe=GW.default=(0,jbt.default)((0,Hbt.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var YW={},Vbt=ca;Object.defineProperty(YW,"__esModule",{value:!0});var ZW=YW.default=void 0,Wbt=Vbt(da()),Qbt=I;ZW=YW.default=(0,Wbt.default)((0,Qbt.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode");var XW={},qbt=ca;Object.defineProperty(XW,"__esModule",{value:!0});var KW=XW.default=void 0,Gbt=qbt(da()),Ybt=I;KW=XW.default=(0,Gbt.default)((0,Ybt.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function Zbt(e){const t=Du(),n=kT(),r=()=>{t(gW(null)),t(Q8(null))},i=()=>{t(iue(n=="light"?"dark":"light"))};return I.jsx(RR,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:I.jsxs(kO,{children:[I.jsxs(np,{onClick:i,children:[I.jsx(Nw,{children:n==="light"?I.jsx(KW,{}):I.jsx(ZW,{})}),I.jsx(t0,{children:"Appearance"})]}),I.jsxs(np,{onClick:r,children:[I.jsx(Nw,{children:I.jsx(cbe,{fontSize:"small"})}),I.jsx(t0,{children:"Logout"})]})]})})}var JW={},Xbt=ca;Object.defineProperty(JW,"__esModule",{value:!0});var dbe=JW.default=void 0,Kbt=Xbt(da()),pre=I;dbe=JW.default=(0,Kbt.default)([(0,pre.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,pre.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");var eQ={},Jbt=ca;Object.defineProperty(eQ,"__esModule",{value:!0});var fbe=eQ.default=void 0,eyt=Jbt(da()),mre=I;fbe=eQ.default=(0,eyt.default)([(0,mre.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,mre.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function hbe(e){return I.jsx(Jm,{...e,children:I.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[I.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),I.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),I.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}const tyt=Re(Toe,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...t&&{width:`calc(100% - ${dv}px)`,marginLeft:`${dv}px`,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}));function nyt(e){var h,g;const{open:t,onDrawerOpen:n}=e,r=Ni(),i=Wf(),a=pi(zF),s=pi(pT),[o,l]=N.useState(null),u=b=>{l(b.currentTarget)},c=()=>{l(null)},f=()=>{var b;i(`/${(b=s.data)==null?void 0:b.slug}`)};return I.jsxs(tyt,{position:"fixed",open:t,children:[I.jsx(Ole,{children:I.jsxs(lr,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[I.jsx(wa,{onClick:u,children:I.jsx(fF,{children:(g=(h=a.data)==null?void 0:h.nickname)==null?void 0:g.charAt(0)})}),I.jsxs(lr,{direction:"row",children:[I.jsx(wa,{color:"inherit","aria-label":"open drawer",onClick:n,edge:"start",sx:{mr:2},children:t?r.direction==="ltr"?I.jsx(dbe,{}):I.jsx(fbe,{}):I.jsx(ube,{})}),I.jsx(wa,{onClick:f,children:I.jsx(hbe,{})})]})]})}),I.jsx(Zbt,{open:!!o,anchorEl:o,onClose:c})]})}var tQ={},ryt=ca;Object.defineProperty(tQ,"__esModule",{value:!0});var pbe=tQ.default=void 0,iyt=ryt(da()),ayt=I;pbe=tQ.default=(0,iyt.default)((0,ayt.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var nQ={},syt=ca;Object.defineProperty(nQ,"__esModule",{value:!0});var mbe=nQ.default=void 0,oyt=syt(da()),lyt=I;mbe=nQ.default=(0,oyt.default)((0,lyt.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class Sx extends N.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=w,c&&c(w)};const E=[n];return i&&(o?s?E.unshift(o):E.push(o):this.defaultLoader&&(s?E.unshift(this.defaultLoader):E.push(this.defaultLoader))),hn.createElement(r,S,E)}}Ms(Sx,"propTypes",{children:Y.node.isRequired,element:Y.node,hasMore:Y.bool,initialLoad:Y.bool,isReverse:Y.bool,loader:Y.node,loadMore:Y.func.isRequired,pageStart:Y.number,ref:Y.func,getScrollParent:Y.func,threshold:Y.number,useCapture:Y.bool,useWindow:Y.bool}),Ms(Sx,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var rQ={},uyt=ca;Object.defineProperty(rQ,"__esModule",{value:!0});var gbe=rQ.default=void 0,cyt=uyt(da()),dyt=I;gbe=rQ.default=(0,cyt.default)((0,dyt.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var iQ={},fyt=ca;Object.defineProperty(iQ,"__esModule",{value:!0});var ZI=iQ.default=void 0,hyt=fyt(da()),pyt=I;ZI=iQ.default=(0,hyt.default)((0,pyt.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var aQ={},myt=ca;Object.defineProperty(aQ,"__esModule",{value:!0});var XI=aQ.default=void 0,gyt=myt(da()),byt=I;XI=aQ.default=(0,gyt.default)((0,byt.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const yyt=e=>["check","name-conflict",e],bbe=e=>RO({queryKey:yyt(e||""),enabled:!!e,queryFn:async()=>(await Sr.post("/check/name-conflict",{name:e})).data});function ybe(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=N.useState(""),[o,l]=N.useState(""),{data:u}=bbe(o),c=N.useMemo(()=>u!=null&&u.conflict?"Already Exists":null,[u==null?void 0:u.conflict]);bW(()=>{l(a)},500,[a]);const f=()=>{var b;(b=i==null?void 0:i.onClose)==null||b.call(i,new Event("Close Modal"),"escapeKeyDown")},h=async b=>{await n(b),f()},g=b=>{r&&s(b.target.value)};return I.jsx(S0,{disableAutoFocus:!0,...i,children:I.jsxs(Zs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[I.jsx(wa,{sx:{position:"absolute",top:28,right:28},onClick:f,children:I.jsx(XI,{})}),I.jsxs(lr,{gap:4,children:[I.jsxs(xr,{variant:"h5",children:["Create New ",t]}),I.jsx(kd,{children:I.jsx(JT,{defaultValues:{title:""},onSuccess:h,children:I.jsxs(lr,{gap:4,alignItems:"flex-end",children:[I.jsx(GI,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:g,error:!!c,helperText:c}),I.jsx(Ws,{type:"submit",variant:"contained",size:"large",disabled:!!c,children:"OK"})]})})})]})]})})}function vyt(e){const{width:t,...n}=e,r=Wf(),i=x0(),{data:a,hasNextPage:s,fetchNextPage:o}=yUe(),{mutateAsync:l}=vUe(),u=N.useMemo(()=>(a==null?void 0:a.pages.reduce((E,w)=>E.concat(w.workspaces),[]))??[],[a==null?void 0:a.pages]),[c,f]=N.useState(!1),h=E=>{r(`/${E}`)},g=E=>{var w;i.workspaceSlug!==E&&(h(E),(w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},b=()=>{var E;f(w=>!w),n.open&&((E=n==null?void 0:n.onClose)==null||E.call(n,new Event("Close Popover"),"backdropClick"))},S=async E=>{const w=await l(E);h(w.slug)};return I.jsxs(I.Fragment,{children:[I.jsx(RR,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:I.jsxs(kO,{sx:{width:t},children:[I.jsx(Ts,{style:{maxHeight:300,overflow:"auto"},children:I.jsx(Sx,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:I.jsx(Ts,{className:"loader",children:I.jsx(bp,{size:"sm"})},0),useWindow:!1,children:u.map(E=>I.jsxs(np,{onClick:()=>g(E.slug),children:[I.jsx(t0,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:E.title}),i.workspaceSlug===E.slug&&I.jsx(gF,{children:I.jsx(gbe,{fontSize:"small"})})]},E.id))})}),I.jsx(c1,{}),I.jsxs(np,{onClick:b,children:[I.jsx(Nw,{children:I.jsx(ZI,{fontSize:"small"})}),I.jsx(t0,{children:"Create Workspace"})]})]})}),I.jsx(ybe,{open:c,title:"Workspace",onClose:b,onSuccess:S,enableConflictCheck:!0})]})}var sQ={},Oyt=ca;Object.defineProperty(sQ,"__esModule",{value:!0});var vbe=sQ.default=void 0,Syt=Oyt(da()),Eyt=I;vbe=sQ.default=(0,Syt.default)((0,Eyt.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");function wyt(e){var h;const{open:t}=e,n=w0(),r=x0(),i=Wf(),a=pi(pT),[s,o]=N.useState(null),l=N.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),u=g=>{o(g.currentTarget)},c=()=>{o(null)},f=()=>{i(`/${r.workspaceSlug}/member`)};return I.jsxs(vDe,{sx:{width:dv,flexShrink:0,"& .MuiDrawer-paper":{width:dv,boxSizing:"border-box"}},variant:"persistent",anchor:"left",open:t,children:[I.jsx(Obe,{children:I.jsxs(A8,{disablePadding:!0,children:[I.jsxs(dZ,{onClick:u,children:[I.jsx(t0,{primary:(h=a.data)==null?void 0:h.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),I.jsx(gF,{children:I.jsx(wa,{children:s?I.jsx(mbe,{}):I.jsx(pbe,{})})})]}),I.jsx(vyt,{open:!!s,anchorEl:s,onClose:c,width:dv-32})]})}),I.jsx(c1,{}),I.jsx(A8,{disablePadding:!0,children:I.jsxs(dZ,{onClick:f,selected:l==="member",children:[I.jsx(Nw,{children:I.jsx(vbe,{})}),I.jsx(t0,{primary:"Members"})]})})]})}const dv=282,xyt=Re("main",{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({flexGrow:1,paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingTop:e.spacing(3),transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginLeft:`-${dv}px`,...t&&{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}})),Obe=Re("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function Tyt(){const{drawerOpen:e}=pi(PF),t=Du(),n=()=>{t(oFe(!e))};return I.jsxs(Ts,{sx:{display:"flex"},children:[I.jsx(nyt,{open:e,onDrawerOpen:n}),I.jsx(wyt,{open:e}),I.jsxs(xyt,{open:e,children:[I.jsx(Obe,{}),I.jsx(kF,{})]})]})}const oQ=hn.createContext({isLoading:!0,isLoggedIn:!1}),kyt=e=>{var a;const{children:t}=e,{isLoggedIn:n}=N.useContext(oQ),r=w0(),i=pi(zF);return n?I.jsx(TF,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},Cyt=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=N.useContext(oQ),i=w0();return r?I.jsx(aT,{open:!0,children:I.jsx(bp,{color:"inherit"})}):n?t:I.jsx(TF,{to:"/",state:{from:i},replace:!0})};//! moment.js + 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},Cbt=function(t){return hn.createElement(e0,Object.assign({},t),hn.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, + 0 22,12A10,10 0 0,0 12,2Z`}))},GA={fontSize:20,marginInlineEnd:8},Abt={default:void 0,success:hn.createElement(xbt,{style:GA}),warning:hn.createElement(Tbt,{style:GA}),error:hn.createElement(kbt,{style:GA}),info:hn.createElement(Cbt,{style:GA})};function nw(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},p7=16,gg="SnackbarContainer",nd={root:gg+"-root",rootDense:gg+"-rootDense",top:gg+"-top",bottom:gg+"-bottom",left:gg+"-left",right:gg+"-right",center:gg+"-center"},Nbt=Re("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+nd.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[h7.container]={pointerEvents:"all"},t[h7.wrapper]={padding:xh.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+xh.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+p7*2+"px)"},t),s["&."+nd.rootDense]=(n={},n[h7.wrapper]={padding:xh.snackbar.dense+"px 0px"},n),s["&."+nd.top]={top:xh.view.default-xh.snackbar.default,flexDirection:"column"},s["&."+nd.bottom]={bottom:xh.view.default-xh.snackbar.default,flexDirection:"column-reverse"},s["&."+nd.left]=(r={left:xh.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:p7+"px"},r),s["&."+nd.right]=(i={right:xh.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:p7+"px"},i),s["&."+nd.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),Pbt=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=Ym(t,["className","anchorOrigin","dense"]),s=Ox(nd[r.vertical],nd[r.horizontal],nd.root,n,i&&nd.rootDense);return hn.createElement(Nbt,Object.assign({className:s},a))},Mbt=hn.memo(Pbt),Lbt=function(e){mbt(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,u=o.preventDuplicate,c=Ym(o,["key","preventDuplicate"]),f=qA(l),h=f?l:new Date().getTime()+Math.random(),g=vbt(c,i.props,Ug),b=Bi({key:h},c,{message:a,open:!0,entered:!1,requestClose:!1,variant:g("variant"),anchorOrigin:g("anchorOrigin"),autoHideDuration:g("autoHideDuration")});return c.persist&&(b.autoHideDuration=void 0),i.setState(function(S){if(u===void 0&&i.props.preventDuplicate||u){var w=function(C){return f?C.key===l:C.message===a},E=S.queue.findIndex(w)>-1,x=S.snacks.findIndex(w)>-1;if(E||x)return S}return i.handleDisplaySnack(Bi({},S,{queue:[].concat(S.queue,[b])}))}),h},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Bi({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(c){return!c.open||c.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(c,f){return c+(f.open&&f.persist?1:0)},0);l===i.maxSnack&&(o=!0);var u=a.snacks.map(function(c){return!s&&(!c.persist||o)?(s=!0,c.entered?(c.onClose&&c.onClose(null,mm.MAXSNACK,c.key),i.props.onClose&&i.props.onClose(null,mm.MAXSNACK,c.key),Bi({},c,{open:!1})):Bi({},c,{requestClose:!0})):Bi({},c)});return Bi({},a,{snacks:u})},i.handleEnteredSnack=function(a,s,o){if(!qA(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(c){return c.key===o?Bi({},c,{entered:!0}):Bi({},c)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==mm.CLICKAWAY){var l=o===void 0;i.setState(function(u){var c=u.snacks,f=u.queue;return{snacks:c.map(function(h){return!l&&h.key!==o?Bi({},h):h.entered?Bi({},h,{open:!1}):Bi({},h,{requestClose:!0})}),queue:f.filter(function(h){return h.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});qA(a)&&s&&s.onClose&&s.onClose(null,mm.INSTRUCTED,a),i.handleCloseSnack(null,mm.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!qA(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(Bi({},u,{snacks:u.snacks.filter(function(f){return f.key!==l})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(dre(i)),closeSnackbar:i.closeSnackbar.bind(dre(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,u=l===void 0?Ug.dense:l,c=s.hideIconVariant,f=c===void 0?Ug.hideIconVariant:c,h=s.domRoot,g=s.children,b=s.classes,S=b===void 0?{}:b,w=Ym(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),E=this.state.snacks.reduce(function(k,C){var R,A=bbt(C.anchorOrigin),D=k[A]||[];return Bi({},k,(R={},R[A]=[].concat(D,[C]),R))},{}),x=Object.keys(E).map(function(k){var C=E[k];return hn.createElement(Mbt,{key:k,dense:u,anchorOrigin:C[0].anchorOrigin,className:Ox(S.containerRoot,S[e_.toContainerAnchorOrigin(k)])},C.map(function(R){return hn.createElement(Dbt,Object.assign({},w,{key:R.key,snack:R,dense:u,iconVariant:o,hideIconVariant:f,classes:ybt(S),onClose:i.handleCloseSnack,onExited:nw([i.handleExitedSnack,i.props.onExited]),onEntered:nw([i.handleEnteredSnack,i.props.onEntered])}))}))});return hn.createElement(obe.Provider,{value:a},g,h?T1.createPortal(x,h):x)},pbt(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Ug.maxSnack}}]),t}(N.Component),XI=function(){return N.useContext(obe)};function $bt(e){const{title:t,feature:n,onClose:r}=e,i=Ni(),a=CT(),s=pi(AO),{data:o,memoryKey:l,isLoading:u,isComplete:c,mutateAsync:f}=fbt(n),{data:h,isLoading:g,isComplete:b,mutateAsync:S}=hbt(l),[w,E]=N.useState(""),x=document.getElementById(FB),k=N.useMemo(()=>u||g,[u,g]),C=N.useMemo(()=>c||b,[c,b]),R=N.useMemo(()=>h||o,[o,h]),{enqueueSnackbar:A}=XI(),D=N.useRef(null),B=r1e(),{reset:L,formState:F}=B;N.useEffect(()=>{F.isSubmitSuccessful&&L({content:""})},[F.isSubmitSuccessful,L]),N.useEffect(()=>{E((x==null?void 0:x.getAttribute("content"))??"")},[x]),N.useEffect(()=>{w&&f(w)},[w,f]),N.useEffect(()=>{R&&D.current&&D.current.scrollTo({behavior:"smooth",top:D.current.scrollHeight})},[R]);const W=async()=>{R&&(await F1.write(R),A("URL Copied!",{variant:"success"}))},V=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},Z=H=>{S(H.content)},Q=(H=!1)=>{var be,ee;if(!s.cmView)return;const J=s.cmView.state.selection.main;let K=Math.min(J.to,J.from);const X=Math.max(J.to,J.from);let te=R;H||(K=X,te=` +${te}`);const z=H?K:K+1,Te=K+te.length;(be=s.doc)==null||be.update((ye,Oe)=>{ye.content.edit(K,X,te),Oe.set({selection:ye.content.indexRangeToPosRange([z,Te])})}),(ee=s.cmView)==null||ee.dispatch({changes:{from:K,to:X,insert:te},selection:{anchor:z,head:Te}}),r()};return I.jsxs(lr,{gap:4,children:[I.jsx(ks,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:I.jsx(Sr,{children:t})}),k&&I.jsx(yp,{sx:{marginX:"auto"}}),I.jsx(ks,{ref:D,sx:{height:350,overflow:"auto"},children:!k&&I.jsx(S0e,{source:FL(R||""),wrapperElement:{"data-color-mode":a}})}),I.jsxs(lr,{gap:2,children:[I.jsx(tp,{in:C,children:I.jsxs(lr,{direction:"row",justifyContent:"flex-end",gap:1,children:[I.jsx(Qs,{variant:"outlined",onClick:V,children:I.jsx(Bge,{fontSize:"small"})}),I.jsx(Qs,{variant:"outlined",onClick:W,children:I.jsx(jI,{fontSize:"small"})}),I.jsx(Qs,{variant:"outlined",onClick:()=>Q(),children:"Insert below"}),I.jsx(Qs,{variant:"contained",onClick:()=>Q(!0),children:"Replace"})]})}),I.jsx(kd,{children:I.jsx(ek,{defaultValues:{content:""},formContext:B,onSuccess:Z,children:I.jsx(lr,{gap:4,alignItems:"flex-end",children:I.jsx(ZI,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!C,size:"small",InputProps:{startAdornment:I.jsx(Dw,{position:"start",children:I.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:I.jsx(tp,{in:C,children:I.jsx(Dw,{position:"end",children:I.jsx(wa,{type:"submit",edge:"end",children:I.jsx(abe,{})})})})}})})})})]})]})}function Fbt(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return I.jsx(S0,{disableAutoFocus:!0,...n,children:I.jsx(Ts,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:I.jsxs(lr,{gap:4,children:[I.jsxs(lr,{alignItems:"center",gap:1,children:[I.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),I.jsxs(Sr,{variant:"h6",align:"center",children:["Do you want to discard",I.jsx("br",{}),"the Yorkie response?"]})]}),I.jsxs(lr,{direction:"row",gap:1,justifyContent:"center",children:[I.jsx(Qs,{variant:"outlined",onClick:i,children:"Discard"}),I.jsx(Qs,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function Bbt(e){const{onClose:t}=e,n=Ni(),r=pi(AO),i=N.useRef(null),[a,s]=N.useState(null),[o,l]=N.useState(null),[u,c]=N.useState(),[f,h]=N.useState(!1),g=N.useRef(null),b=N.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);N.useEffect(()=>{if(i.current)return c(i.current),()=>{c(void 0)}},[]);const S=(E,x)=>{l(E),s(x)},w=()=>{h(E=>!E)};return I.jsxs(ks,{sx:{position:"absolute",mt:1},children:[I.jsx("span",{ref:i,style:{marginTop:4}}),I.jsx(sT,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:w,children:I.jsx(hF,{ref:g,sx:{boxShadow:n.shadows[11],borderRadius:2,width:b,padding:2},children:o&&a?I.jsx($bt,{title:a,feature:o,onClose:t}):I.jsx(Jft,{onSelectFeature:S})})}),I.jsx(Fbt,{open:f,onCloseIntelligence:t,onClose:w})]})}function Ubt(){const e=Ni(),[t,n]=N.useState(!1),[r,i]=N.useState(null),[a,s]=N.useState(null),[o,l]=N.useState(null);yW(()=>{l(r)},500,[r]),N.useEffect(()=>{document.addEventListener("selectionchange",function(){const c=document.getElementById(spe),f=document.getElementById(FB);i(c),s(f),c||(n(!1),l(null))})},[]);const u=()=>{n(c=>!c)};if(!(!o||!a))return I.jsxs(I.Fragment,{children:[I.jsx(wO,{open:!!o,anchorEl:o,placement:"top-start",transition:!0,children:({TransitionProps:c})=>I.jsx(tp,{...c,children:I.jsx(hF,{sx:{boxShadow:e.shadows[11],borderRadius:2,mb:1},children:I.jsx(qoe,{sx:{paddingX:1.3,paddingY:.3},onClick:u,children:I.jsxs(lr,{direction:"row",alignItems:"center",gap:1,children:[I.jsx("img",{src:"/yorkie.png",height:20}),I.jsx(Sr,{variant:"subtitle1",children:"Yorkie Intelligence"})]})})})})}),t&&T1.createPortal(I.jsx(Bbt,{onClose:u}),a)]})}function zbt(){var l,u;const e=Du(),t=x0(),n=pi(jF),r=pi(aI),{data:i}=qF(t.workspaceSlug),{data:a}=yUe(i==null?void 0:i.id,t.documentId),{doc:s,client:o}=Nge(a==null?void 0:a.yorkieDocumentId,(l=n.data)==null?void 0:l.nickname);return N.useEffect(()=>{if(!(!s||!o))return e(i3(s)),e(a3(o)),()=>{e(i3(null)),e(a3(null))}},[e,o,s]),I.jsxs(ks,{height:"calc(100% - 64px)",children:[I.jsx(xge,{}),((u=r.yorkieIntelligence)==null?void 0:u.enable)&&I.jsx(Ubt,{})]})}function jbt(){return I.jsx(lr,{sx:{flexGrow:1,height:"100vh"},children:I.jsx(CF,{})})}function Hbt(){const e=Du(),t=Wf(),[n]=AF();return N.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(bW(r))},[e,t,n]),I.jsx(ks,{})}var GW={},Vbt=ca;Object.defineProperty(GW,"__esModule",{value:!0});var ube=GW.default=void 0,Wbt=Vbt(da()),Qbt=I;ube=GW.default=(0,Wbt.default)((0,Qbt.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var YW={},qbt=ca;Object.defineProperty(YW,"__esModule",{value:!0});var cbe=YW.default=void 0,Gbt=qbt(da()),Ybt=I;cbe=YW.default=(0,Gbt.default)((0,Ybt.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var ZW={},Zbt=ca;Object.defineProperty(ZW,"__esModule",{value:!0});var XW=ZW.default=void 0,Xbt=Zbt(da()),Kbt=I;XW=ZW.default=(0,Xbt.default)((0,Kbt.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode");var KW={},Jbt=ca;Object.defineProperty(KW,"__esModule",{value:!0});var JW=KW.default=void 0,eyt=Jbt(da()),tyt=I;JW=KW.default=(0,eyt.default)((0,tyt.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function nyt(e){const t=Du(),n=CT(),r=()=>{t(bW(null)),t(q8(null))},i=()=>{t(iue(n=="light"?"dark":"light"))};return I.jsx(sT,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:I.jsxs(kO,{children:[I.jsxs(rp,{onClick:i,children:[I.jsx(Nw,{children:n==="light"?I.jsx(JW,{}):I.jsx(XW,{})}),I.jsx(np,{children:"Appearance"})]}),I.jsxs(rp,{onClick:r,children:[I.jsx(Nw,{children:I.jsx(cbe,{fontSize:"small"})}),I.jsx(np,{children:"Logout"})]})]})})}var eQ={},ryt=ca;Object.defineProperty(eQ,"__esModule",{value:!0});var dbe=eQ.default=void 0,iyt=ryt(da()),mre=I;dbe=eQ.default=(0,iyt.default)([(0,mre.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,mre.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");var tQ={},ayt=ca;Object.defineProperty(tQ,"__esModule",{value:!0});var fbe=tQ.default=void 0,syt=ayt(da()),gre=I;fbe=tQ.default=(0,syt.default)([(0,gre.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,gre.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function hbe(e){return I.jsx(e0,{...e,children:I.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[I.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),I.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),I.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}const oyt=Re(koe,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...t&&{width:`calc(100% - ${dv}px)`,marginLeft:`${dv}px`,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}));function lyt(e){var h,g;const{open:t,onDrawerOpen:n}=e,r=Ni(),i=Wf(),a=pi(jF),s=pi(mT),[o,l]=N.useState(null),u=b=>{l(b.currentTarget)},c=()=>{l(null)},f=()=>{var b;i(`/${(b=s.data)==null?void 0:b.slug}`)};return I.jsxs(oyt,{position:"fixed",open:t,children:[I.jsx(Ole,{children:I.jsxs(lr,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[I.jsx(wa,{onClick:u,children:I.jsx(q_,{children:(g=(h=a.data)==null?void 0:h.nickname)==null?void 0:g.charAt(0)})}),I.jsxs(lr,{direction:"row",children:[I.jsx(wa,{color:"inherit","aria-label":"open drawer",onClick:n,edge:"start",sx:{mr:2},children:t?r.direction==="ltr"?I.jsx(dbe,{}):I.jsx(fbe,{}):I.jsx(ube,{})}),I.jsx(wa,{onClick:f,children:I.jsx(hbe,{})})]})]})}),I.jsx(nyt,{open:!!o,anchorEl:o,onClose:c})]})}var nQ={},uyt=ca;Object.defineProperty(nQ,"__esModule",{value:!0});var pbe=nQ.default=void 0,cyt=uyt(da()),dyt=I;pbe=nQ.default=(0,cyt.default)((0,dyt.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var rQ={},fyt=ca;Object.defineProperty(rQ,"__esModule",{value:!0});var mbe=rQ.default=void 0,hyt=fyt(da()),pyt=I;mbe=rQ.default=(0,hyt.default)((0,pyt.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class Sx extends N.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=E,c&&c(E)};const w=[n];return i&&(o?s?w.unshift(o):w.push(o):this.defaultLoader&&(s?w.unshift(this.defaultLoader):w.push(this.defaultLoader))),hn.createElement(r,S,w)}}Ls(Sx,"propTypes",{children:Y.node.isRequired,element:Y.node,hasMore:Y.bool,initialLoad:Y.bool,isReverse:Y.bool,loader:Y.node,loadMore:Y.func.isRequired,pageStart:Y.number,ref:Y.func,getScrollParent:Y.func,threshold:Y.number,useCapture:Y.bool,useWindow:Y.bool}),Ls(Sx,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var iQ={},myt=ca;Object.defineProperty(iQ,"__esModule",{value:!0});var gbe=iQ.default=void 0,gyt=myt(da()),byt=I;gbe=iQ.default=(0,gyt.default)((0,byt.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var aQ={},yyt=ca;Object.defineProperty(aQ,"__esModule",{value:!0});var KI=aQ.default=void 0,vyt=yyt(da()),Oyt=I;KI=aQ.default=(0,vyt.default)((0,Oyt.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var sQ={},Syt=ca;Object.defineProperty(sQ,"__esModule",{value:!0});var JI=sQ.default=void 0,Eyt=Syt(da()),wyt=I;JI=sQ.default=(0,Eyt.default)((0,wyt.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const xyt=e=>["check","name-conflict",e],bbe=e=>RO({queryKey:xyt(e||""),enabled:!!e,queryFn:async()=>(await Er.post("/check/name-conflict",{name:e})).data});function ybe(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=N.useState(""),[o,l]=N.useState(""),{data:u}=bbe(o),c=N.useMemo(()=>u!=null&&u.conflict?"Already Exists":null,[u==null?void 0:u.conflict]);yW(()=>{l(a)},500,[a]);const f=()=>{var b;(b=i==null?void 0:i.onClose)==null||b.call(i,new Event("Close Modal"),"escapeKeyDown")},h=async b=>{await n(b),f()},g=b=>{r&&s(b.target.value)};return I.jsx(S0,{disableAutoFocus:!0,...i,children:I.jsxs(Ts,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[I.jsx(wa,{sx:{position:"absolute",top:28,right:28},onClick:f,children:I.jsx(JI,{})}),I.jsxs(lr,{gap:4,children:[I.jsxs(Sr,{variant:"h5",children:["Create New ",t]}),I.jsx(kd,{children:I.jsx(ek,{defaultValues:{title:""},onSuccess:h,children:I.jsxs(lr,{gap:4,alignItems:"flex-end",children:[I.jsx(ZI,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:g,error:!!c,helperText:c}),I.jsx(Qs,{type:"submit",variant:"contained",size:"large",disabled:!!c,children:"OK"})]})})})]})]})})}function Tyt(e){const{width:t,...n}=e,r=Wf(),i=x0(),{data:a,hasNextPage:s,fetchNextPage:o}=xUe(),{mutateAsync:l}=TUe(),u=N.useMemo(()=>(a==null?void 0:a.pages.reduce((w,E)=>w.concat(E.workspaces),[]))??[],[a==null?void 0:a.pages]),[c,f]=N.useState(!1),h=w=>{r(`/${w}`)},g=w=>{var E;i.workspaceSlug!==w&&(h(w),(E=n==null?void 0:n.onClose)==null||E.call(n,new Event("Close Popover"),"backdropClick"))},b=()=>{var w;f(E=>!E),n.open&&((w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},S=async w=>{const E=await l(w);h(E.slug)};return I.jsxs(I.Fragment,{children:[I.jsx(sT,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:I.jsxs(kO,{sx:{width:t},children:[I.jsx(ks,{style:{maxHeight:300,overflow:"auto"},children:I.jsx(Sx,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:I.jsx(ks,{className:"loader",children:I.jsx(yp,{size:"sm"})},0),useWindow:!1,children:u.map(w=>I.jsxs(rp,{onClick:()=>g(w.slug),children:[I.jsx(np,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:w.title}),i.workspaceSlug===w.slug&&I.jsx(bF,{children:I.jsx(gbe,{fontSize:"small"})})]},w.id))})}),I.jsx(c1,{}),I.jsxs(rp,{onClick:b,children:[I.jsx(Nw,{children:I.jsx(KI,{fontSize:"small"})}),I.jsx(np,{children:"Create Workspace"})]})]})}),I.jsx(ybe,{open:c,title:"Workspace",onClose:b,onSuccess:S,enableConflictCheck:!0})]})}var oQ={},kyt=ca;Object.defineProperty(oQ,"__esModule",{value:!0});var vbe=oQ.default=void 0,Cyt=kyt(da()),Ayt=I;vbe=oQ.default=(0,Cyt.default)((0,Ayt.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");function _yt(e){var h;const{open:t}=e,n=w0(),r=x0(),i=Wf(),a=pi(mT),[s,o]=N.useState(null),l=N.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),u=g=>{o(g.currentTarget)},c=()=>{o(null)},f=()=>{i(`/${r.workspaceSlug}/member`)};return I.jsxs(vDe,{sx:{width:dv,flexShrink:0,"& .MuiDrawer-paper":{width:dv,boxSizing:"border-box"}},variant:"persistent",anchor:"left",open:t,children:[I.jsx(Obe,{children:I.jsxs(Y_,{disablePadding:!0,children:[I.jsxs(fZ,{onClick:u,children:[I.jsx(np,{primary:(h=a.data)==null?void 0:h.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),I.jsx(bF,{children:I.jsx(wa,{children:s?I.jsx(mbe,{}):I.jsx(pbe,{})})})]}),I.jsx(Tyt,{open:!!s,anchorEl:s,onClose:c,width:dv-32})]})}),I.jsx(c1,{}),I.jsx(Y_,{disablePadding:!0,children:I.jsxs(fZ,{onClick:f,selected:l==="member",children:[I.jsx(Nw,{children:I.jsx(vbe,{})}),I.jsx(np,{primary:"Members"})]})})]})}const dv=282,Ryt=Re("main",{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({flexGrow:1,paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingTop:e.spacing(3),transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginLeft:`-${dv}px`,...t&&{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}})),Obe=Re("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function Iyt(){const{drawerOpen:e}=pi(MF),t=Du(),n=()=>{t(hFe(!e))};return I.jsxs(ks,{sx:{display:"flex"},children:[I.jsx(lyt,{open:e,onDrawerOpen:n}),I.jsx(_yt,{open:e}),I.jsxs(Ryt,{open:e,children:[I.jsx(Obe,{}),I.jsx(CF,{})]})]})}const lQ=hn.createContext({isLoading:!0,isLoggedIn:!1}),Dyt=e=>{var a;const{children:t}=e,{isLoggedIn:n}=N.useContext(lQ),r=w0(),i=pi(jF);return n?I.jsx(kF,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},Nyt=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=N.useContext(lQ),i=w0();return r?I.jsx(aT,{open:!0,children:I.jsx(yp,{color:"inherit"})}):n?t:I.jsx(kF,{to:"/",state:{from:i},replace:!0})};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var Sbe;function un(){return Sbe.apply(null,arguments)}function Ayt(e){Sbe=e}function Ed(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function e1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Jr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function lQ(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Jr(e,t))return!1;return!0}function pl(e){return e===void 0}function fp(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ek(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ebe(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var fQ=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,GA=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,p7={},fv={};function Un(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(fv[e]=i),t&&(fv[t[0]]=function(){return jf(i.apply(this,arguments),t[1],t[2])}),n&&(fv[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Nyt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Pyt(e){var t=e.match(fQ),n,r;for(n=0,r=t.length;n=0&&GA.test(e);)e=e.replace(GA,r),GA.lastIndex=0,n-=1;return e}var Myt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Lyt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(fQ).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var $yt="Invalid date";function Fyt(){return this._invalidDate}var Byt="%d",Uyt=/\d{1,2}/;function zyt(e){return this._ordinal.replace("%d",e)}var jyt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Hyt(e,t,n,r){var i=this._relativeTime[n];return rh(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Vyt(e,t){var n=this._relativeTime[e>0?"future":"past"];return rh(n)?n(t):n.replace(/%s/i,t)}var yre={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Lc(e){return typeof e=="string"?yre[e]||yre[e.toLowerCase()]:void 0}function hQ(e){var t={},n,r;for(r in e)Jr(e,r)&&(n=Lc(r),n&&(t[n]=e[r]));return t}var Wyt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Qyt(e){var t=[],n;for(n in e)Jr(e,n)&&t.push({unit:n,priority:Wyt[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var kbe=/\d/,Mu=/\d\d/,Cbe=/\d{3}/,pQ=/\d{4}/,JI=/[+-]?\d{6}/,Wi=/\d\d?/,Abe=/\d\d\d\d?/,_be=/\d\d\d\d\d\d?/,e6=/\d{1,3}/,mQ=/\d{1,4}/,t6=/[+-]?\d{1,6}/,KO=/\d+/,n6=/[+-]?\d+/,qyt=/Z|[+-]\d\d:?\d\d/gi,r6=/Z|[+-]\d\d(?::?\d\d)?/gi,Gyt=/[+-]?\d+(\.\d{1,3})?/,nk=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,JO=/^[1-9]\d?/,gQ=/^([1-9]\d|\d)/,u5;u5={};function bn(e,t,n){u5[e]=rh(t)?t:function(r,i){return r&&n?n:t}}function Yyt(e,t){return Jr(u5,e)?u5[e](t._strict,t._locale):new RegExp(Zyt(e))}function Zyt(e){return Gh(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function Gh(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function lc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Nr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=lc(t)),n}var c9={};function vi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),fp(t)&&(r=function(a,s){s[t]=Nr(a)}),i=e.length,n=0;n68?1900:2e3)};var Rbe=eS("FullYear",!0);function evt(){return i6(this.year())}function eS(e,t){return function(n){return n!=null?(Ibe(this,e,n),un.updateOffset(this,t),this):Ex(this,e)}}function Ex(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ibe(e,t,n){var r,i,a,s,o;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=e.date(),o=o===29&&s===1&&!i6(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function tvt(e){return e=Lc(e),rh(this[e])?this[e]():this}function nvt(e,t){if(typeof e=="object"){e=hQ(e);var n=Qyt(e),r,i=n.length;for(r=0;r=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function wx(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function c5(e,t,n){var r=7+t-n,i=(7+wx(e,0,r).getUTCDay()-t)%7;return-i+r-1}function $be(e,t,n,r,i){var a=(7+n-r)%7,s=c5(e,r,i),o=1+7*(t-1)+a+s,l,u;return o<=0?(l=e-1,u=rw(l)+o):o>rw(e)?(l=e+1,u=o-rw(e)):(l=e,u=o),{year:l,dayOfYear:u}}function xx(e,t,n){var r=c5(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+Yh(s,t,n)):i>Yh(e.year(),t,n)?(a=i-Yh(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function Yh(e,t,n){var r=c5(e,t,n),i=c5(e+1,t,n);return(rw(e)-r+i)/7}Un("w",["ww",2],"wo","week");Un("W",["WW",2],"Wo","isoWeek");bn("w",Wi,JO);bn("ww",Wi,Mu);bn("W",Wi,JO);bn("WW",Wi,Mu);rk(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Nr(e)});function mvt(e){return xx(e,this._week.dow,this._week.doy).week}var gvt={dow:0,doy:6};function bvt(){return this._week.dow}function yvt(){return this._week.doy}function vvt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ovt(e){var t=xx(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Un("d",0,"do","day");Un("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Un("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Un("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Un("e",0,0,"weekday");Un("E",0,0,"isoWeekday");bn("d",Wi);bn("e",Wi);bn("E",Wi);bn("dd",function(e,t){return t.weekdaysMinRegex(e)});bn("ddd",function(e,t){return t.weekdaysShortRegex(e)});bn("dddd",function(e,t){return t.weekdaysRegex(e)});rk(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:gr(n).invalidWeekday=e});rk(["d","e","E"],function(e,t,n,r){t[r]=Nr(e)});function Svt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Evt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function yQ(e,t){return e.slice(t,7).concat(e.slice(0,t))}var wvt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fbe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xvt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Tvt=nk,kvt=nk,Cvt=nk;function Avt(e,t){var n=Ed(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?yQ(n,this._week.dow):e?n[e.day()]:n}function _vt(e){return e===!0?yQ(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Rvt(e){return e===!0?yQ(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ivt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=nh([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Da.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Da.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Da.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Da.call(this._weekdaysParse,s),i!==-1||(i=Da.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Da.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Da.call(this._shortWeekdaysParse,s),i!==-1||(i=Da.call(this._weekdaysParse,s),i!==-1)?i:(i=Da.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Da.call(this._minWeekdaysParse,s),i!==-1||(i=Da.call(this._weekdaysParse,s),i!==-1)?i:(i=Da.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Dvt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Ivt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=nh([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Nvt(e){if(!this.isValid())return e!=null?this:NaN;var t=Ex(this,"Day");return e!=null?(e=Svt(e,this.localeData()),this.add(e-t,"d")):t}function Pvt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Mvt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Evt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Lvt(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||vQ.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Jr(this,"_weekdaysRegex")||(this._weekdaysRegex=Tvt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $vt(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||vQ.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kvt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Fvt(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||vQ.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Cvt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vQ(){function e(c,f){return f.length-c.length}var t=[],n=[],r=[],i=[],a,s,o,l,u;for(a=0;a<7;a++)s=nh([2e3,1]).day(a),o=Gh(this.weekdaysMin(s,"")),l=Gh(this.weekdaysShort(s,"")),u=Gh(this.weekdays(s,"")),t.push(o),n.push(l),r.push(u),i.push(o),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function OQ(){return this.hours()%12||12}function Bvt(){return this.hours()||24}Un("H",["HH",2],0,"hour");Un("h",["hh",2],0,OQ);Un("k",["kk",2],0,Bvt);Un("hmm",0,0,function(){return""+OQ.apply(this)+jf(this.minutes(),2)});Un("hmmss",0,0,function(){return""+OQ.apply(this)+jf(this.minutes(),2)+jf(this.seconds(),2)});Un("Hmm",0,0,function(){return""+this.hours()+jf(this.minutes(),2)});Un("Hmmss",0,0,function(){return""+this.hours()+jf(this.minutes(),2)+jf(this.seconds(),2)});function Bbe(e,t){Un(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Bbe("a",!0);Bbe("A",!1);function Ube(e,t){return t._meridiemParse}bn("a",Ube);bn("A",Ube);bn("H",Wi,gQ);bn("h",Wi,JO);bn("k",Wi,JO);bn("HH",Wi,Mu);bn("hh",Wi,Mu);bn("kk",Wi,Mu);bn("hmm",Abe);bn("hmmss",_be);bn("Hmm",Abe);bn("Hmmss",_be);vi(["H","HH"],as);vi(["k","kk"],function(e,t,n){var r=Nr(e);t[as]=r===24?0:r});vi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});vi(["h","hh"],function(e,t,n){t[as]=Nr(e),gr(n).bigHour=!0});vi("hmm",function(e,t,n){var r=e.length-2;t[as]=Nr(e.substr(0,r)),t[fd]=Nr(e.substr(r)),gr(n).bigHour=!0});vi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[as]=Nr(e.substr(0,r)),t[fd]=Nr(e.substr(r,2)),t[zh]=Nr(e.substr(i)),gr(n).bigHour=!0});vi("Hmm",function(e,t,n){var r=e.length-2;t[as]=Nr(e.substr(0,r)),t[fd]=Nr(e.substr(r))});vi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[as]=Nr(e.substr(0,r)),t[fd]=Nr(e.substr(r,2)),t[zh]=Nr(e.substr(i))});function Uvt(e){return(e+"").toLowerCase().charAt(0)==="p"}var zvt=/[ap]\.?m?\.?/i,jvt=eS("Hours",!0);function Hvt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var zbe={calendar:Iyt,longDateFormat:Myt,invalidDate:$yt,ordinal:Byt,dayOfMonthOrdinalParse:Uyt,relativeTime:jyt,months:ivt,monthsShort:Dbe,week:gvt,weekdays:wvt,weekdaysMin:xvt,weekdaysShort:Fbe,meridiemParse:zvt},Yi={},jE={},Tx;function Vvt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=a6(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Vvt(a,r)>=n-1)break;n--}t++}return Tx}function Qvt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function a6(e){var t=null,n;if(Yi[e]===void 0&&typeof f_<"u"&&f_&&f_.exports&&Qvt(e))try{t=Tx._abbr,n=require,n("./locale/"+e),Ym(t)}catch{Yi[e]=null}return Yi[e]}function Ym(e,t){var n;return e&&(pl(t)?n=wp(e):n=SQ(e,t),n?Tx=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Tx._abbr}function SQ(e,t){if(t!==null){var n,r=zbe;if(t.abbr=e,Yi[e]!=null)xbe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Yi[e]._config;else if(t.parentLocale!=null)if(Yi[t.parentLocale]!=null)r=Yi[t.parentLocale]._config;else if(n=a6(t.parentLocale),n!=null)r=n._config;else return jE[t.parentLocale]||(jE[t.parentLocale]=[]),jE[t.parentLocale].push({name:e,config:t}),null;return Yi[e]=new dQ(l9(r,t)),jE[e]&&jE[e].forEach(function(i){SQ(i.name,i.config)}),Ym(e),Yi[e]}else return delete Yi[e],null}function qvt(e,t){if(t!=null){var n,r,i=zbe;Yi[e]!=null&&Yi[e].parentLocale!=null?Yi[e].set(l9(Yi[e]._config,t)):(r=a6(e),r!=null&&(i=r._config),t=l9(i,t),r==null&&(t.abbr=e),n=new dQ(t),n.parentLocale=Yi[e],Yi[e]=n),Ym(e)}else Yi[e]!=null&&(Yi[e].parentLocale!=null?(Yi[e]=Yi[e].parentLocale,e===Ym()&&Ym(e)):Yi[e]!=null&&delete Yi[e]);return Yi[e]}function wp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Tx;if(!Ed(e)){if(t=a6(e),t)return t;e=[e]}return Wvt(e)}function Gvt(){return u9(Yi)}function EQ(e){var t,n=e._a;return n&&gr(e).overflow===-2&&(t=n[Uh]<0||n[Uh]>11?Uh:n[vf]<1||n[vf]>bQ(n[Oo],n[Uh])?vf:n[as]<0||n[as]>24||n[as]===24&&(n[fd]!==0||n[zh]!==0||n[zg]!==0)?as:n[fd]<0||n[fd]>59?fd:n[zh]<0||n[zh]>59?zh:n[zg]<0||n[zg]>999?zg:-1,gr(e)._overflowDayOfYear&&(tvf)&&(t=vf),gr(e)._overflowWeeks&&t===-1&&(t=Kyt),gr(e)._overflowWeekday&&t===-1&&(t=Jyt),gr(e).overflow=t),e}var Yvt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zvt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xvt=/Z|[+-]\d\d(?::?\d\d)?/,YA=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],m7=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Kvt=/^\/?Date\((-?\d+)/i,Jvt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,eOt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function jbe(e){var t,n,r=e._i,i=Yvt.exec(r)||Zvt.exec(r),a,s,o,l,u=YA.length,c=m7.length;if(i){for(gr(e).iso=!0,t=0,n=u;trw(s)||e._dayOfYear===0)&&(gr(e)._overflowDayOfYear=!0),n=wx(s,0,e._dayOfYear),e._a[Uh]=n.getUTCMonth(),e._a[vf]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[as]===24&&e._a[fd]===0&&e._a[zh]===0&&e._a[zg]===0&&(e._nextDay=!0,e._a[as]=0),e._d=(e._useUTC?wx:pvt).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[as]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(gr(e).weekdayMismatch=!0)}}function lOt(e){var t,n,r,i,a,s,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=my(t.GG,e._a[Oo],xx(Vi(),1,4).year),r=my(t.W,1),i=my(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=xx(Vi(),a,s),n=my(t.gg,e._a[Oo],u.year),r=my(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>Yh(n,a,s)?gr(e)._overflowWeeks=!0:l!=null?gr(e)._overflowWeekday=!0:(o=$be(n,r,i,a,s),e._a[Oo]=o.year,e._dayOfYear=o.dayOfYear)}un.ISO_8601=function(){};un.RFC_2822=function(){};function xQ(e){if(e._f===un.ISO_8601){jbe(e);return}if(e._f===un.RFC_2822){Hbe(e);return}e._a=[],gr(e).empty=!0;var t=""+e._i,n,r,i,a,s,o=t.length,l=0,u,c;for(i=Tbe(e._f,e._locale).match(fQ)||[],c=i.length,n=0;n0&&gr(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),fv[a]?(r?gr(e).empty=!1:gr(e).unusedTokens.push(a),Xyt(a,r,e)):e._strict&&!r&&gr(e).unusedTokens.push(a);gr(e).charsLeftOver=o-l,t.length>0&&gr(e).unusedInput.push(t),e._a[as]<=12&&gr(e).bigHour===!0&&e._a[as]>0&&(gr(e).bigHour=void 0),gr(e).parsedDateParts=e._a.slice(0),gr(e).meridiem=e._meridiem,e._a[as]=uOt(e._locale,e._a[as],e._meridiem),u=gr(e).era,u!==null&&(e._a[Oo]=e._locale.erasConvertYear(u,e._a[Oo])),wQ(e),EQ(e)}function uOt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function cOt(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(l===0){gr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:KI()});function Qbe(e,t){var n,r;if(t.length===1&&Ed(t[0])&&(t=t[0]),!t.length)return Vi();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function IOt(){if(!pl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return cQ(e,this),e=Vbe(e),e._a?(t=e._isUTC?nh(e._a):Vi(e._a),this._isDSTShifted=this.isValid()&&EOt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function DOt(){return this.isValid()?!this._isUTC:!1}function NOt(){return this.isValid()?this._isUTC:!1}function Gbe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var POt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,MOt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Md(e,t){var n=e,r=null,i,a,s;return t_(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:fp(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=POt.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Nr(r[vf])*i,h:Nr(r[as])*i,m:Nr(r[fd])*i,s:Nr(r[zh])*i,ms:Nr(d9(r[zg]*1e3))*i}):(r=MOt.exec(e))?(i=r[1]==="-"?-1:1,n={y:bg(r[2],i),M:bg(r[3],i),w:bg(r[4],i),d:bg(r[5],i),h:bg(r[6],i),m:bg(r[7],i),s:bg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=LOt(Vi(n.from),Vi(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new s6(n),t_(e)&&Jr(e,"_locale")&&(a._locale=e._locale),t_(e)&&Jr(e,"_isValid")&&(a._isValid=e._isValid),a}Md.fn=s6.prototype;Md.invalid=SOt;function bg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ore(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function LOt(e,t){var n;return e.isValid()&&t.isValid()?(t=kQ(t,e),e.isBefore(t)?n=Ore(e,t):(n=Ore(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ybe(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(xbe(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Md(n,r),Zbe(this,i,e),this}}function Zbe(e,t,n,r){var i=t._milliseconds,a=d9(t._days),s=d9(t._months);e.isValid()&&(r=r??!0,s&&Pbe(e,Ex(e,"Month")+s*n),a&&Ibe(e,"Date",Ex(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&un.updateOffset(e,a||s))}var $Ot=Ybe(1,"add"),FOt=Ybe(-1,"subtract");function Xbe(e){return typeof e=="string"||e instanceof String}function BOt(e){return wd(e)||ek(e)||Xbe(e)||fp(e)||zOt(e)||UOt(e)||e===null||e===void 0}function UOt(e){var t=e1(e)&&!lQ(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?e_(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):rh(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",e_(n,"Z")):e_(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tSt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function nSt(e){e||(e=this.isUtc()?un.defaultFormatUtc:un.defaultFormat);var t=e_(this,e);return this.localeData().postformat(t)}function rSt(e,t){return this.isValid()&&(wd(e)&&e.isValid()||Vi(e).isValid())?Md({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function iSt(e){return this.from(Vi(),e)}function aSt(e,t){return this.isValid()&&(wd(e)&&e.isValid()||Vi(e).isValid())?Md({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sSt(e){return this.to(Vi(),e)}function Kbe(e){var t;return e===void 0?this._locale._abbr:(t=wp(e),t!=null&&(this._locale=t),this)}var Jbe=Mc("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function eye(){return this._locale}var d5=1e3,hv=60*d5,f5=60*hv,tye=(365*400+97)*24*f5;function pv(e,t){return(e%t+t)%t}function nye(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-tye:new Date(e,t,n).valueOf()}function rye(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-tye:Date.UTC(e,t,n)}function oSt(e){var t,n;if(e=Lc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?rye:nye,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pv(t+(this._isUTC?0:this.utcOffset()*hv),f5);break;case"minute":t=this._d.valueOf(),t-=pv(t,hv);break;case"second":t=this._d.valueOf(),t-=pv(t,d5);break}return this._d.setTime(t),un.updateOffset(this,!0),this}function lSt(e){var t,n;if(e=Lc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?rye:nye,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=f5-pv(t+(this._isUTC?0:this.utcOffset()*hv),f5)-1;break;case"minute":t=this._d.valueOf(),t+=hv-pv(t,hv)-1;break;case"second":t=this._d.valueOf(),t+=d5-pv(t,d5)-1;break}return this._d.setTime(t),un.updateOffset(this,!0),this}function uSt(){return this._d.valueOf()-(this._offset||0)*6e4}function cSt(){return Math.floor(this.valueOf()/1e3)}function dSt(){return new Date(this.valueOf())}function fSt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function hSt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function pSt(){return this.isValid()?this.toISOString():null}function mSt(){return uQ(this)}function gSt(){return Dm({},gr(this))}function bSt(){return gr(this).overflow}function ySt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Un("N",0,0,"eraAbbr");Un("NN",0,0,"eraAbbr");Un("NNN",0,0,"eraAbbr");Un("NNNN",0,0,"eraName");Un("NNNNN",0,0,"eraNarrow");Un("y",["y",1],"yo","eraYear");Un("y",["yy",2],0,"eraYear");Un("y",["yyy",3],0,"eraYear");Un("y",["yyyy",4],0,"eraYear");bn("N",CQ);bn("NN",CQ);bn("NNN",CQ);bn("NNNN",_St);bn("NNNNN",RSt);vi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?gr(n).era=i:gr(n).invalidEra=e});bn("y",KO);bn("yy",KO);bn("yyy",KO);bn("yyyy",KO);bn("yo",ISt);vi(["y","yy","yyy","yyyy"],Oo);vi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Oo]=n._locale.eraYearOrdinalParse(e,i):t[Oo]=parseInt(e,10)});function vSt(e,t){var n,r,i,a=this._eras||wp("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function SSt(e,t){var n=e.since<=e.until?1:-1;return t===void 0?un(e.since).year():un(e.since).year()+(t-e.offset)*n}function ESt(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),FSt.call(this,e,t,n,r,i))}function FSt(e,t,n,r,i){var a=$be(e,t,n,r,i),s=wx(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Un("Q",0,"Qo","quarter");bn("Q",kbe);vi("Q",function(e,t){t[Uh]=(Nr(e)-1)*3});function BSt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Un("D",["DD",2],"Do","date");bn("D",Wi,JO);bn("DD",Wi,Mu);bn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});vi(["D","DD"],vf);vi("Do",function(e,t){t[vf]=Nr(e.match(Wi)[0])});var aye=eS("Date",!0);Un("DDD",["DDDD",3],"DDDo","dayOfYear");bn("DDD",e6);bn("DDDD",Cbe);vi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Nr(e)});function USt(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Un("m",["mm",2],0,"minute");bn("m",Wi,gQ);bn("mm",Wi,Mu);vi(["m","mm"],fd);var zSt=eS("Minutes",!1);Un("s",["ss",2],0,"second");bn("s",Wi,gQ);bn("ss",Wi,Mu);vi(["s","ss"],zh);var jSt=eS("Seconds",!1);Un("S",0,0,function(){return~~(this.millisecond()/100)});Un(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Un(0,["SSS",3],0,"millisecond");Un(0,["SSSS",4],0,function(){return this.millisecond()*10});Un(0,["SSSSS",5],0,function(){return this.millisecond()*100});Un(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Un(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Un(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Un(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});bn("S",e6,kbe);bn("SS",e6,Mu);bn("SSS",e6,Cbe);var Nm,sye;for(Nm="SSSS";Nm.length<=9;Nm+="S")bn(Nm,KO);function HSt(e,t){t[zg]=Nr(("0."+e)*1e3)}for(Nm="S";Nm.length<=9;Nm+="S")vi(Nm,HSt);sye=eS("Milliseconds",!1);Un("z",0,0,"zoneAbbr");Un("zz",0,0,"zoneName");function VSt(){return this._isUTC?"UTC":""}function WSt(){return this._isUTC?"Coordinated Universal Time":""}var Vt=tk.prototype;Vt.add=$Ot;Vt.calendar=VOt;Vt.clone=WOt;Vt.diff=KOt;Vt.endOf=lSt;Vt.format=nSt;Vt.from=rSt;Vt.fromNow=iSt;Vt.to=aSt;Vt.toNow=sSt;Vt.get=tvt;Vt.invalidAt=bSt;Vt.isAfter=QOt;Vt.isBefore=qOt;Vt.isBetween=GOt;Vt.isSame=YOt;Vt.isSameOrAfter=ZOt;Vt.isSameOrBefore=XOt;Vt.isValid=mSt;Vt.lang=Jbe;Vt.locale=Kbe;Vt.localeData=eye;Vt.max=mOt;Vt.min=pOt;Vt.parsingFlags=gSt;Vt.set=nvt;Vt.startOf=oSt;Vt.subtract=FOt;Vt.toArray=fSt;Vt.toObject=hSt;Vt.toDate=dSt;Vt.toISOString=eSt;Vt.inspect=tSt;typeof Symbol<"u"&&Symbol.for!=null&&(Vt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Vt.toJSON=pSt;Vt.toString=JOt;Vt.unix=cSt;Vt.valueOf=uSt;Vt.creationData=ySt;Vt.eraName=ESt;Vt.eraNarrow=wSt;Vt.eraAbbr=xSt;Vt.eraYear=TSt;Vt.year=Rbe;Vt.isLeapYear=evt;Vt.weekYear=DSt;Vt.isoWeekYear=NSt;Vt.quarter=Vt.quarters=BSt;Vt.month=Mbe;Vt.daysInMonth=dvt;Vt.week=Vt.weeks=vvt;Vt.isoWeek=Vt.isoWeeks=Ovt;Vt.weeksInYear=LSt;Vt.weeksInWeekYear=$St;Vt.isoWeeksInYear=PSt;Vt.isoWeeksInISOWeekYear=MSt;Vt.date=aye;Vt.day=Vt.days=Nvt;Vt.weekday=Pvt;Vt.isoWeekday=Mvt;Vt.dayOfYear=USt;Vt.hour=Vt.hours=jvt;Vt.minute=Vt.minutes=zSt;Vt.second=Vt.seconds=jSt;Vt.millisecond=Vt.milliseconds=sye;Vt.utcOffset=xOt;Vt.utc=kOt;Vt.local=COt;Vt.parseZone=AOt;Vt.hasAlignedHourOffset=_Ot;Vt.isDST=ROt;Vt.isLocal=DOt;Vt.isUtcOffset=NOt;Vt.isUtc=Gbe;Vt.isUTC=Gbe;Vt.zoneAbbr=VSt;Vt.zoneName=WSt;Vt.dates=Mc("dates accessor is deprecated. Use date instead.",aye);Vt.months=Mc("months accessor is deprecated. Use month instead",Mbe);Vt.years=Mc("years accessor is deprecated. Use year instead",Rbe);Vt.zone=Mc("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",TOt);Vt.isDSTShifted=Mc("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",IOt);function QSt(e){return Vi(e*1e3)}function qSt(){return Vi.apply(null,arguments).parseZone()}function oye(e){return e}var ei=dQ.prototype;ei.calendar=Dyt;ei.longDateFormat=Lyt;ei.invalidDate=Fyt;ei.ordinal=zyt;ei.preparse=oye;ei.postformat=oye;ei.relativeTime=Hyt;ei.pastFuture=Vyt;ei.set=Ryt;ei.eras=vSt;ei.erasParse=OSt;ei.erasConvertYear=SSt;ei.erasAbbrRegex=CSt;ei.erasNameRegex=kSt;ei.erasNarrowRegex=ASt;ei.months=ovt;ei.monthsShort=lvt;ei.monthsParse=cvt;ei.monthsRegex=hvt;ei.monthsShortRegex=fvt;ei.week=mvt;ei.firstDayOfYear=yvt;ei.firstDayOfWeek=bvt;ei.weekdays=Avt;ei.weekdaysMin=Rvt;ei.weekdaysShort=_vt;ei.weekdaysParse=Dvt;ei.weekdaysRegex=Lvt;ei.weekdaysShortRegex=$vt;ei.weekdaysMinRegex=Fvt;ei.isPM=Uvt;ei.meridiem=Hvt;function h5(e,t,n,r){var i=wp(),a=nh().set(r,t);return i[n](a,e)}function lye(e,t,n){if(fp(e)&&(t=e,e=void 0),e=e||"",t!=null)return h5(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=h5(e,r,n,"month");return i}function _Q(e,t,n,r){typeof e=="boolean"?(fp(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,fp(t)&&(n=t,t=void 0),t=t||"");var i=wp(),a=e?i._week.dow:0,s,o=[];if(n!=null)return h5(t,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=h5(t,(s+a)%7,r,"day");return o}function GSt(e,t){return lye(e,t,"months")}function YSt(e,t){return lye(e,t,"monthsShort")}function ZSt(e,t,n){return _Q(e,t,n,"weekdays")}function XSt(e,t,n){return _Q(e,t,n,"weekdaysShort")}function KSt(e,t,n){return _Q(e,t,n,"weekdaysMin")}Ym("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Nr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});un.lang=Mc("moment.lang is deprecated. Use moment.locale instead.",Ym);un.langData=Mc("moment.langData is deprecated. Use moment.localeData instead.",wp);var kh=Math.abs;function JSt(){var e=this._data;return this._milliseconds=kh(this._milliseconds),this._days=kh(this._days),this._months=kh(this._months),e.milliseconds=kh(e.milliseconds),e.seconds=kh(e.seconds),e.minutes=kh(e.minutes),e.hours=kh(e.hours),e.months=kh(e.months),e.years=kh(e.years),this}function uye(e,t,n,r){var i=Md(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function eEt(e,t){return uye(this,e,t,1)}function tEt(e,t){return uye(this,e,t,-1)}function Sre(e){return e<0?Math.floor(e):Math.ceil(e)}function nEt(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,o,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Sre(h9(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=lc(e/1e3),r.seconds=i%60,a=lc(i/60),r.minutes=a%60,s=lc(a/60),r.hours=s%24,t+=lc(s/24),l=lc(cye(t)),n+=l,t-=Sre(h9(l)),o=lc(n/12),n%=12,r.days=t,r.months=n,r.years=o,this}function cye(e){return e*4800/146097}function h9(e){return e*146097/4800}function rEt(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Lc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+cye(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(h9(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function xp(e){return function(){return this.as(e)}}var dye=xp("ms"),iEt=xp("s"),aEt=xp("m"),sEt=xp("h"),oEt=xp("d"),lEt=xp("w"),uEt=xp("M"),cEt=xp("Q"),dEt=xp("y"),fEt=dye;function hEt(){return Md(this)}function pEt(e){return e=Lc(e),this.isValid()?this[e+"s"]():NaN}function B1(e){return function(){return this.isValid()?this._data[e]:NaN}}var mEt=B1("milliseconds"),gEt=B1("seconds"),bEt=B1("minutes"),yEt=B1("hours"),vEt=B1("days"),OEt=B1("months"),SEt=B1("years");function EEt(){return lc(this.days()/7)}var Rh=Math.round,By={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wEt(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function xEt(e,t,n,r){var i=Md(e).abs(),a=Rh(i.as("s")),s=Rh(i.as("m")),o=Rh(i.as("h")),l=Rh(i.as("d")),u=Rh(i.as("M")),c=Rh(i.as("w")),f=Rh(i.as("y")),h=a<=n.ss&&["s",a]||a0,h[4]=r,wEt.apply(null,h)}function TEt(e){return e===void 0?Rh:typeof e=="function"?(Rh=e,!0):!1}function kEt(e,t){return By[e]===void 0?!1:t===void 0?By[e]:(By[e]=t,e==="s"&&(By.ss=t-1),!0)}function CEt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=By,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},By,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=xEt(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var g7=Math.abs;function ty(e){return(e>0)-(e<0)||+e}function l6(){if(!this.isValid())return this.localeData().invalidDate();var e=g7(this._milliseconds)/1e3,t=g7(this._days),n=g7(this._months),r,i,a,s,o=this.asSeconds(),l,u,c,f;return o?(r=lc(e/60),i=lc(r/60),e%=60,r%=60,a=lc(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=ty(this._months)!==ty(o)?"-":"",c=ty(this._days)!==ty(o)?"-":"",f=ty(this._milliseconds)!==ty(o)?"-":"",l+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var Wr=s6.prototype;Wr.isValid=OOt;Wr.abs=JSt;Wr.add=eEt;Wr.subtract=tEt;Wr.as=rEt;Wr.asMilliseconds=dye;Wr.asSeconds=iEt;Wr.asMinutes=aEt;Wr.asHours=sEt;Wr.asDays=oEt;Wr.asWeeks=lEt;Wr.asMonths=uEt;Wr.asQuarters=cEt;Wr.asYears=dEt;Wr.valueOf=fEt;Wr._bubble=nEt;Wr.clone=hEt;Wr.get=pEt;Wr.milliseconds=mEt;Wr.seconds=gEt;Wr.minutes=bEt;Wr.hours=yEt;Wr.days=vEt;Wr.weeks=EEt;Wr.months=OEt;Wr.years=SEt;Wr.humanize=CEt;Wr.toISOString=l6;Wr.toString=l6;Wr.toJSON=l6;Wr.locale=Kbe;Wr.localeData=eye;Wr.toIsoString=Mc("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",l6);Wr.lang=Jbe;Un("X",0,0,"unix");Un("x",0,0,"valueOf");bn("x",n6);bn("X",Gyt);vi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});vi("x",function(e,t,n){n._d=new Date(Nr(e))});//! moment.js -un.version="2.30.1";Ayt(Vi);un.fn=Vt;un.min=gOt;un.max=bOt;un.now=yOt;un.utc=nh;un.unix=QSt;un.months=GSt;un.isDate=ek;un.locale=Ym;un.invalid=KI;un.duration=Md;un.isMoment=wd;un.weekdays=ZSt;un.parseZone=qSt;un.localeData=wp;un.isDuration=t_;un.monthsShort=YSt;un.weekdaysMin=KSt;un.defineLocale=SQ;un.updateLocale=qvt;un.locales=Gvt;un.weekdaysShort=XSt;un.normalizeUnits=Lc;un.relativeTimeRounding=TEt;un.relativeTimeThreshold=kEt;un.calendarFormat=HOt;un.prototype=Vt;un.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var RQ={},AEt=ca;Object.defineProperty(RQ,"__esModule",{value:!0});var fye=RQ.default=void 0,_Et=AEt(da()),Ere=I;fye=RQ.default=(0,_Et.default)([(0,Ere.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Ere.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function REt(e){const{document:t}=e,n=Wf(),r=x0(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return I.jsx(hF,{sx:{width:"100%"},children:I.jsx(Qoe,{onClick:i,children:I.jsxs(VIe,{children:[I.jsx(xr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),I.jsxs(lr,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(fye,{fontSize:"small",sx:{color:"text.secondary"}}),I.jsxs(xr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",un(t.updatedAt).fromNow()]})]})]})})})}function IEt(){const e=x0(),t=Wf(),{data:n}=QF(e.workspaceSlug),{data:r,fetchNextPage:i,hasNextPage:a}=dUe(n==null?void 0:n.id),{mutateAsync:s}=hUe((n==null?void 0:n.id)||""),[o,l]=N.useState(!1),u=N.useMemo(()=>(r==null?void 0:r.pages.reduce((h,g)=>h.concat(g.documents),[]))??[],[r==null?void 0:r.pages]),c=()=>{l(h=>!h)},f=async h=>{const g=await s(h);t(g.id)};return I.jsxs(lr,{gap:2,children:[I.jsxs(lr,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[I.jsxs(xr,{variant:"h5",fontWeight:"bold",children:[n==null?void 0:n.title," ",I.jsx(xr,{component:"span",variant:"inherit",color:"primary",children:r==null?void 0:r.pages[0].totalLength})]}),I.jsx(Ws,{variant:"contained",startIcon:I.jsx(ZI,{}),onClick:c,children:"New Note"})]}),I.jsx(lr,{style:{maxHeight:"calc(100vh - 144px)",overflow:"auto"},children:I.jsx(Sx,{pageStart:0,loadMore:()=>i(),hasMore:a,loader:I.jsx(lr,{className:"loader",alignItems:"center",children:I.jsx(bp,{size:20})},0),useWindow:!1,children:I.jsx(Ts,{p:2,width:1,children:I.jsx(_y,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:u.map(h=>I.jsx(_y,{item:!0,xs:4,sm:4,md:4,lg:3,children:I.jsx(REt,{document:h})},h.id))})})})}),I.jsx(ybe,{open:o,title:"Note",onSuccess:f,onClose:c})]})}function DEt(){const e=jle();return I.jsx(lr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:I.jsxs(lr,{alignItems:"center",children:[I.jsx(xr,{variant:"h5",children:"Something went wrong"}),wF(e)&&I.jsxs(xr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function NEt(){const e=x0(),t=Wf(),{mutateAsync:n}=SUe();return N.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),I.jsx(aT,{open:!0,children:I.jsx(bp,{color:"inherit"})})}var PEt=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(o){return r[o]}).bind(null,s));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=N},function(e,t,n){var r=n(3);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function s(u,c,f,h,g,b){if(b!==r){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function o(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return K}),n.d(t,"GoogleLoginButton",function(){return z}),n.d(t,"GithubLoginButton",function(){return ee}),n.d(t,"TwitterLoginButton",function(){return ie}),n.d(t,"AmazonLoginButton",function(){return qe}),n.d(t,"InstagramLoginButton",function(){return tt}),n.d(t,"LinkedInLoginButton",function(){return et}),n.d(t,"MicrosoftLoginButton",function(){return Je}),n.d(t,"BufferLoginButton",function(){return he}),n.d(t,"TelegramLoginButton",function(){return We}),n.d(t,"AppleLoginButton",function(){return ve}),n.d(t,"DiscordLoginButton",function(){return vt}),n.d(t,"OktaLoginButton",function(){return gt}),n.d(t,"SlackLoginButton",function(){return wt}),n.d(t,"YahooLoginButton",function(){return $n}),n.d(t,"createButton",function(){return Z}),n.d(t,"createSvgIcon",function(){return H}),n.d(t,"ZaloLoginButton",function(){return Ur}),n.d(t,"TikTokLoginButton",function(){return lt}),n.d(t,"MetamaskLoginButton",function(){return yn});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return K}),n.d(r,"GoogleLoginButton",function(){return z}),n.d(r,"GithubLoginButton",function(){return ee}),n.d(r,"TwitterLoginButton",function(){return ie}),n.d(r,"AmazonLoginButton",function(){return qe}),n.d(r,"InstagramLoginButton",function(){return tt}),n.d(r,"LinkedInLoginButton",function(){return et}),n.d(r,"MicrosoftLoginButton",function(){return Je}),n.d(r,"BufferLoginButton",function(){return he}),n.d(r,"TelegramLoginButton",function(){return We}),n.d(r,"AppleLoginButton",function(){return ve}),n.d(r,"DiscordLoginButton",function(){return vt}),n.d(r,"OktaLoginButton",function(){return gt}),n.d(r,"SlackLoginButton",function(){return wt}),n.d(r,"YahooLoginButton",function(){return $n}),n.d(r,"createButton",function(){return Z}),n.d(r,"createSvgIcon",function(){return H}),n.d(r,"ZaloLoginButton",function(){return Ur}),n.d(r,"TikTokLoginButton",function(){return lt}),n.d(r,"MetamaskLoginButton",function(){return yn});var i=n(1),a=n.n(i),s=n(0),o=n.n(s),l=function(Qe){var Ye=Qe.name,ot=Qe.size,yt=Qe.format;return a.a.createElement("i",{className:yt(Ye),style:{fontSize:ot}})};l.propTypes={format:o.a.func,name:o.a.string.isRequired,size:o.a.oneOfType([o.a.string,o.a.number]).isRequired},l.defaultProps={format:function(Qe){return"demo-icon icon-".concat(Qe)},size:26};var u=l,c=function(Qe){var Ye=Qe.type,ot=Qe.size,yt=Qe.format,Yn=Qe.color,pn=Yn===void 0?"#FFFFFF":Yn;return typeof Ye=="string"?a.a.createElement(u,{format:yt,name:Ye,size:ot}):a.a.createElement(Ye,{size:ot,color:pn})};c.propTypes={format:o.a.func,size:o.a.oneOfType([o.a.number,o.a.string]),type:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),color:o.a.string};var f=c;function h(Qe,Ye){var ot=Object.keys(Qe);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(Qe);Ye&&(yt=yt.filter(function(Yn){return Object.getOwnPropertyDescriptor(Qe,Yn).enumerable})),ot.push.apply(ot,yt)}return ot}function g(Qe){for(var Ye=1;Ye"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var ot,yt=R(Qe);if(Ye){var Yn=R(this).constructor;ot=Reflect.construct(yt,arguments,Yn)}else ot=yt.apply(this,arguments);return C(this,ot)}}function C(Qe,Ye){return!Ye||S(Ye)!=="object"&&typeof Ye!="function"?function(ot){if(ot===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ot}(Qe):Ye}function R(Qe){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(Ye){return Ye.__proto__||Object.getPrototypeOf(Ye)})(Qe)}var A=function(Qe){(function(pn,Fn){if(typeof Fn!="function"&&Fn!==null)throw new TypeError("Super expression must either be null or a function");pn.prototype=Object.create(Fn&&Fn.prototype,{constructor:{value:pn,writable:!0,configurable:!0}}),Fn&&x(pn,Fn)})(Yn,Qe);var Ye,ot,yt=k(Yn);function Yn(pn){var Fn;return function(Pi,nt){if(!(Pi instanceof nt))throw new TypeError("Cannot call a class as a function")}(this,Yn),(Fn=yt.call(this,pn)).state={focused:!1,hovered:!1},Fn.handleMouseEnter=function(){Fn.setState({hovered:!0}),typeof Fn.props.onMouseEnter=="function"&&Fn.props.onMouseEnter()},Fn.handleMouseLeave=function(){Fn.setState({hovered:!1}),typeof Fn.props.onMouseLeave=="function"&&Fn.props.onMouseLeave()},Fn.handleFocus=function(){Fn.setState({focused:!0})},Fn.handleBlur=function(){Fn.setState({focused:!1})},Fn.handleClick=function(Pi){typeof Fn.props.onClick=="function"&&Fn.props.onClick(Pi)},Fn}return Ye=Yn,(ot=[{key:"render",value:function(){var pn=this.props,Fn=pn.activeStyle,Pi=pn.align,nt=pn.text,Be=pn.children,Dt=Be===void 0?nt:Be,en=pn.className,Vn=pn.icon,Zr=pn.iconFormat,Er=pn.iconSize,In=pn.iconColor,Wn=In===void 0?"#FFFFFF":In,ti=pn.preventActiveStyles,qa=pn.size,Fc=pn.style,kp=pn.disabled,H1=this.state,V1=H1.focused,W1=H1.hovered,Q1=B(L.button,{activeStyle:ti?Fc:Fn,customStyle:Fc,active:W1||V1,size:qa});return a.a.createElement("button",E({type:"button",style:Q1,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:en},{disabled:kp}),a.a.createElement("div",{style:L.flex},!D(Er)&&a.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Er}},a.a.createElement(f,{type:Vn,size:Er,format:Zr,color:Wn})),!D(Er)&&a.a.createElement("div",{style:L.divider}),a.a.createElement("div",{style:{textAlign:Pi,width:"100%"}},Dt)))}}])&&w(Ye.prototype,ot),Yn}(i.Component),D=function(Qe){return Qe==="0"||Qe==="0px"||Qe===0},B=function(Qe,Ye){var ot=Ye.size,yt=Ye.customStyle,Yn=Ye.active,pn=Ye.activeStyle;return g(g(g({},Qe),{},{height:ot},yt),Yn&&pn)};A.propTypes={activeStyle:o.a.object,align:o.a.oneOf(["left","right","center"]),children:o.a.node,className:o.a.string,icon:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),iconFormat:o.a.func,iconSize:o.a.string,iconColor:o.a.string,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,preventActiveStyles:o.a.bool,size:o.a.string,style:o.a.object,text:o.a.string,disabled:o.a.bool},A.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var L={button:{display:"block",border:0,borderRadius:3,boxShadow:"rgba(0, 0, 0, 0.5) 0 1px 2px",color:"#ffffff",cursor:"pointer",fontSize:"19px",margin:"5px",width:"calc(100% - 10px)",overflow:"hidden",padding:"0 10px",userSelect:"none"},divider:{width:"10px"},flex:{alignItems:"center",display:"flex",height:"100%"}};function F(Qe,Ye){var ot=Object.keys(Qe);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(Qe);Ye&&(yt=yt.filter(function(Yn){return Object.getOwnPropertyDescriptor(Qe,Yn).enumerable})),ot.push.apply(ot,yt)}return ot}function W(Qe){for(var Ye=1;Ye{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return I.jsx(qoe,{sx:{height:1},children:I.jsx(lr,{alignItems:"center",justifyContent:"center",sx:{height:1},children:I.jsx(Zs,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:I.jsxs(lr,{gap:4,children:[I.jsxs(Ts,{children:[I.jsxs(lr,{direction:"row",gap:1,children:[I.jsx(hbe,{}),I.jsx(xr,{variant:"h6",children:"Login"})]}),I.jsx(xr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),I.jsxs(lr,{gap:2,children:[I.jsxs(_y,{container:!0,spacing:1,alignItems:"center",children:[I.jsx(_y,{item:!0,xs:!0,children:I.jsx(c1,{sx:{width:1}})}),I.jsx(_y,{item:!0,xs:"auto",children:I.jsx(xr,{variant:"body2",color:"text.secondary",children:"Login with"})}),I.jsx(_y,{item:!0,xs:!0,children:I.jsx(c1,{sx:{width:1}})})]}),MEt.map(({SocailLoginComponent:t,provider:n})=>I.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}var IQ={},$Et=ca;Object.defineProperty(IQ,"__esModule",{value:!0});var hye=IQ.default=void 0,FEt=$Et(da()),BEt=I;hye=IQ.default=(0,FEt.default)((0,BEt.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var DQ={},UEt=ca;Object.defineProperty(DQ,"__esModule",{value:!0});var pye=DQ.default=void 0,zEt=UEt(da()),jEt=I;pye=DQ.default=(0,zEt.default)((0,jEt.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");function HEt(){const e=Du(),t=kT(),n=()=>{e(iue(t=="light"?"dark":"light"))};return I.jsx(wa,{onClick:n,color:"inherit",children:t==="light"?I.jsx(KW,{}):I.jsx(ZW,{})})}var NQ={},VEt=ca;Object.defineProperty(NQ,"__esModule",{value:!0});var mye=NQ.default=void 0,WEt=VEt(da()),QEt=I;mye=NQ.default=(0,WEt.default)((0,QEt.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");const mv=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];var p9=(e=>(e.READ="READ",e.EDIT="EDIT",e))(p9||{});function qEt(e){var c,f;const{...t}=e,n=x0(),[r,i]=N.useState(null),a=pi(WF),{mutateAsync:s}=pUe(((c=a.data)==null?void 0:c.workspaceId)||"",((f=a.data)==null?void 0:f.id)||""),{enqueueSnackbar:o}=YI(),l=async h=>{let g;if(h.expiredString===mv[0])g=null;else{const[S,E]=h.expiredString.split(" ");g=un().add(Number(S),E).toDate()}const{sharingToken:b}=await s({role:h.role,expiredAt:g});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${b}`)},u=async()=>{r&&(await F1.write(r),o("URL Copied!",{variant:"success"}))};return I.jsx(S0,{disableAutoFocus:!0,...t,children:I.jsxs(Zs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[I.jsx(wa,{sx:{position:"absolute",top:28,right:28},onClick:h=>{var g;return(g=e.onClose)==null?void 0:g.call(e,h,"backdropClick")},children:I.jsx(XI,{})}),I.jsxs(lr,{gap:1,children:[I.jsx(xr,{variant:"subtitle1",children:"Share Link"}),I.jsx(kd,{children:I.jsx(JT,{defaultValues:{expiredString:mv[0],role:Object.values(p9)[0]},onSuccess:l,children:I.jsxs(lr,{gap:2,children:[I.jsx(s9,{label:"Role",name:"role",options:Object.values(p9).map(h=>({id:h,label:h})),size:"small",sx:{width:1},variant:"filled"}),I.jsx(s9,{label:"Expired Date",name:"expiredString",options:mv.map(h=>({id:h,label:h})),size:"small",sx:{width:1},variant:"filled"}),I.jsx(Ws,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&I.jsxs(lr,{direction:"row",alignItems:"center",gap:2,children:[I.jsx(xr,{variant:"body1",width:1,noWrap:!0,children:r}),I.jsx(wg,{title:"Copy URL",children:I.jsx(wa,{onClick:u,children:I.jsx(UI,{})})})]})]})]})})}function GEt(){const[e,t]=N.useState(!1),n=()=>{t(r=>!r)};return I.jsxs(I.Fragment,{children:[I.jsx(wa,{onClick:n,color:"inherit",children:I.jsx(mye,{})}),I.jsx(qEt,{open:e,onClose:n})]})}var PQ={},YEt=ca;Object.defineProperty(PQ,"__esModule",{value:!0});var gye=PQ.default=void 0,ZEt=YEt(da()),XEt=I;gye=PQ.default=(0,ZEt.default)((0,XEt.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");function KEt(){const e=Du(),t=Wf(),n=pi(AO),r=pi(pT),[i,{set:a,push:s,removeAt:o,clear:l,filter:u}]=Ift([]);N.useEffect(()=>{n.shareRole==="READ"&&e(W8("read"))},[e,n.shareRole]),N.useEffect(()=>{if(!n.doc)return;a(n.doc.getPresences());const h=n.doc.subscribe("others",g=>{var b,S;g.type==="watched"&&a(((S=(b=n.doc)==null?void 0:b.getPresences)==null?void 0:S.call(b))??[]),g.type==="unwatched"&&u(E=>E.clientID!==g.value.clientID)});return()=>{h(),l()}},[n.doc,l,s,o,a,u]);const c=h=>{h&&e(W8(h))},f=()=>{var h;t(`/${(h=r.data)==null?void 0:h.slug}`)};return I.jsx(Toe,{position:"static",sx:{zIndex:100},children:I.jsx(Ole,{children:I.jsxs(lr,{width:"100%",direction:"row",justifyContent:"space-between",children:[I.jsxs(lr,{direction:"row",spacing:1,alignItems:"center",children:[!n.shareRole&&I.jsx(wg,{title:"Back to Previous Page",children:I.jsx(wa,{color:"inherit",onClick:f,children:I.jsx(gye,{})})}),I.jsx(Zs,{children:n.shareRole!=="READ"&&I.jsxs(yLe,{value:n.mode,exclusive:!0,onChange:(h,g)=>c(g),size:"small",children:[I.jsx(ON,{value:"edit","aria-label":"edit",children:I.jsx(wg,{title:"Edit Mode",children:I.jsx(hye,{})})}),I.jsx(ON,{value:"both","aria-label":"both",children:I.jsx(wg,{title:"Both Mode",children:I.jsx(pye,{})})}),I.jsx(ON,{value:"read","aria-label":"read",children:I.jsx(wg,{title:"Read Mode",children:I.jsx(VW,{})})})]})})]}),I.jsxs(lr,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(nIe,{max:4,children:i==null?void 0:i.map(h=>I.jsx(wg,{title:h.presence.name,children:I.jsx(fF,{alt:h.presence.name,sx:{bgcolor:h.presence.color},children:h.presence.name[0]})},h.clientID))}),!n.shareRole&&I.jsx(GEt,{}),I.jsx(HEt,{})]})]})})})}function JEt(){return I.jsxs(Ts,{sx:{flexGrow:1},height:"100vh",children:[I.jsx(KEt,{}),I.jsx(kF,{})]})}const e2t=e=>["documents","share",e],t2t=e=>{const t=Du(),n=RO({queryKey:e2t(e||""),enabled:!!e,queryFn:async()=>(await Sr.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return N.useEffect(()=>(n.data&&t(s3(n.data)),()=>{t(s3(null))}),[t,n.data]),n};function n2t(){const e=Du(),t=w0(),[n]=CF(),r=N.useMemo(()=>n.get("token"),[n]),{data:i}=t2t(r),{doc:a,client:s}=Nge(i==null?void 0:i.yorkieDocumentId,"Anonymous");return N.useEffect(()=>{i!=null&&i.role&&(e(kBe(i.role)),i.role==="READ"&&e(W8("read")))},[e,i==null?void 0:i.role]),N.useEffect(()=>{if(!(!a||!s))return e(t3(a)),e(n3(s)),()=>{e(t3(null)),e(n3(null))}},[e,s,a]),r?I.jsx(Ts,{height:"calc(100% - 64px)",children:I.jsx(xge,{})}):I.jsx(TF,{to:"/",state:{from:t},replace:!0})}const r2t=e=>["workspaces",e,"users"],i2t=e=>VF({queryKey:r2t(e||""),queryFn:async({pageParam:t})=>(await Sr.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0});function a2t(e){var c;const{open:t,onClose:n}=e,r=pi(pT),{mutateAsync:i}=OUe(((c=r.data)==null?void 0:c.id)||""),{enqueueSnackbar:a}=YI(),[s,o]=N.useState(null),l=async f=>{let h;if(f.expiredString===mv[0])h=null;else{const[b,S]=f.expiredString.split(" ");h=un().add(Number(b),S).toDate()}const{invitationToken:g}=await i({expiredAt:h});o(`${window.location.origin}/join/${g}`)},u=async()=>{s&&(await F1.write(s),a("URL Copied!",{variant:"success"}))};return I.jsx(S0,{open:t,disableAutoFocus:!0,onClose:n,children:I.jsxs(Zs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:538},children:[I.jsx(wa,{sx:{position:"absolute",top:28,right:28},onClick:n,children:I.jsx(XI,{})}),I.jsxs(lr,{gap:4,children:[I.jsxs(lr,{children:[I.jsx(xr,{variant:"h5",fontWeight:"bold",children:"Add Members"}),I.jsx(xr,{children:"Generate and share the link."})]}),I.jsx(lr,{gap:1,children:I.jsx(kd,{children:I.jsx(JT,{defaultValues:{expiredString:mv[0]},onSuccess:l,children:I.jsxs(lr,{gap:2,children:[I.jsx(s9,{label:"Expired Date",name:"expiredString",options:mv.map(f=>({id:f,label:f})),size:"small",sx:{width:1}}),I.jsx(Ws,{type:"submit",variant:"contained",children:"Generate"})]})})})}),I.jsxs(lr,{gap:1,children:[I.jsx(xr,{variant:"h6",fontWeight:"bold",children:"Invite Link"}),I.jsx(Ts,{height:40,children:s?I.jsxs(lr,{direction:"row",alignItems:"center",gap:2,children:[I.jsx(xr,{variant:"body1",children:s}),I.jsx(wg,{title:"Copy URL",children:I.jsx(wa,{onClick:u,children:I.jsx(UI,{})})})]}):I.jsx(xr,{mx:"auto",children:"No link has been generated."})})]})]})]})})}function s2t(){const e=x0(),{data:t}=QF(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=i2t(t==null?void 0:t.id),[a,s]=N.useState(!1),o=N.useMemo(()=>(n==null?void 0:n.pages.reduce((u,c)=>u.concat(c.workspaceUsers),[]))??[],[n==null?void 0:n.pages]),l=()=>{s(u=>!u)};return I.jsxs(qoe,{maxWidth:"lg",children:[I.jsxs(lr,{gap:4,children:[I.jsxs(lr,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[I.jsxs(xr,{variant:"h5",fontWeight:"bold",children:[t==null?void 0:t.title," ",I.jsx(xr,{component:"span",variant:"inherit",color:"primary",children:n==null?void 0:n.pages[0].workspaceUsers.length})]}),I.jsx(Ws,{variant:"contained",startIcon:I.jsx(ZI,{}),onClick:l,children:"Add Members"})]}),I.jsxs(aMe,{component:Ts,children:[I.jsx(c1,{}),I.jsx(Sx,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:I.jsx(Ts,{className:"loader",children:I.jsx(bp,{size:"sm"})},0),useWindow:!1,style:{width:"100%"},children:I.jsxs(F8e,{children:[I.jsx(fMe,{children:I.jsxs(DZ,{children:[I.jsx(qb,{children:"Name"}),I.jsx(qb,{children:"Role"}),I.jsx(qb,{})]})}),I.jsx(Q8e,{style:{maxHeight:"100%",overflow:"auto"},children:o.map(u=>I.jsxs(DZ,{sx:{width:"100%"},children:[I.jsx(qb,{component:"th",scope:"row",children:u.nickname}),I.jsx(qb,{children:"-"}),I.jsx(qb,{children:"-"})]},u.id))})]})})]})]}),I.jsx(a2t,{open:a,onClose:l})]})}const o2t=[{path:"",accessType:2,element:I.jsx(Lbt,{}),children:[{path:"",element:I.jsx(LEt,{})}]},{path:":workspaceSlug",accessType:1,element:I.jsx(Tyt,{}),children:[{path:"",element:I.jsx(IEt,{})},{path:"member",element:I.jsx(s2t,{})}]},{path:":workspaceSlug",element:I.jsx(JEt,{}),children:[{path:":documentId",accessType:1,element:I.jsx(Mbt,{})},{path:":documentId/share",accessType:0,element:I.jsx(n2t,{})}]},{path:"auth/callback",accessType:2,element:I.jsx($bt,{})},{path:"join/:invitationToken",accessType:1,element:I.jsx(NEt,{})}],l2t=e=>{const t=n=>(n.accessType===1?n.element=I.jsx(Cyt,{children:n.element}):n.accessType===2&&(n.element=I.jsx(kyt,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=I.jsx(DEt,{}),n))},u2t=l2t(o2t),bye=e=>["users",e],c2t=()=>{const e=Du(),t=pi(QT);t.accessToken&&(Sr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=RO({queryKey:bye(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await Sr.get("/users")).data});return N.useEffect(()=>{n.isSuccess?e(Q8(n.data)):n.isError&&(e(gW(null)),e(Q8(null)),Sr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},d2t=()=>{const e=pi(QT),t=hT();return T0({mutationFn:async n=>(await Sr.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:bye(e.accessToken||"")})}})};function f2t(e){const[t,n]=N.useState(""),[r,i]=N.useState(""),{data:a}=bbe(r),{mutateAsync:s}=d2t(),o=N.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);bW(()=>{i(t)},500,[t]);const l=c=>{n(c.target.value)},u=async c=>{await s(c)};return I.jsx(S0,{disableAutoFocus:!0,...e,children:I.jsx(Zs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:I.jsxs(lr,{gap:4,children:[I.jsx(xr,{variant:"h5",children:"Create Your Nickname"}),I.jsx(kd,{children:I.jsx(JT,{defaultValues:{nickname:""},onSuccess:u,children:I.jsxs(lr,{gap:4,alignItems:"flex-end",children:[I.jsx(GI,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),I.jsx(Ws,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function h2t(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=c2t(),a=N.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return I.jsx(oQ.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?I.jsx(f2t,{open:!0}):t})}function p2t(){const{enqueueSnackbar:e}=YI();return N.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}const yye=Object.prototype.toString;function vye(e){switch(yye.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return hp(e,Error)}}function tS(e,t){return yye.call(e)===`[object ${t}]`}function MQ(e){return tS(e,"ErrorEvent")}function wre(e){return tS(e,"DOMError")}function m2t(e){return tS(e,"DOMException")}function Uf(e){return tS(e,"String")}function LQ(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function $Q(e){return e===null||LQ(e)||typeof e!="object"&&typeof e!="function"}function fO(e){return tS(e,"Object")}function u6(e){return typeof Event<"u"&&hp(e,Event)}function g2t(e){return typeof Element<"u"&&hp(e,Element)}function b2t(e){return tS(e,"RegExp")}function c6(e){return!!(e&&e.then&&typeof e.then=="function")}function y2t(e){return fO(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Oye(e){return typeof e=="number"&&e!==e}function hp(e,t){try{return e instanceof t}catch{return!1}}function Sye(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function gv(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function xre(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rv2t(e,r,n))}function O2t(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!hp(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=S2t(m9(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function m9(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(hp(r[i],Error)){Tre(s,o);const u=e(t,r[i]),c=l.length;kre(u,i,c,o),l=m9(e,t,n,r[i],i,[u,...l],u,c)}return Array.isArray(r.errors)&&r.errors.forEach((u,c)=>{if(hp(u,Error)){Tre(s,o);const f=e(t,u),h=l.length;kre(f,`errors[${c}]`,h,o),l=m9(e,t,n,u,i,[f,...l],f,h)}}),l}function Tre(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function kre(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function S2t(e,t){return e.map(n=>(n.value&&(n.value=gv(n.value,t)),n))}function ZA(e){return e&&e.Math==Math?e:void 0}const si=typeof globalThis=="object"&&ZA(globalThis)||typeof window=="object"&&ZA(window)||typeof self=="object"&&ZA(self)||typeof global=="object"&&ZA(global)||function(){return this}()||{};function FQ(){return si}function Eye(e,t,n){const r=n||si,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const bv=FQ(),E2t=80;function kx(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||E2t;for(;n&&a++1&&s+i.length*l+u.length>=f));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function w2t(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(bv.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Uf(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,k2t="Sentry Logger ",g9=["debug","info","warn","error","log","assert","trace"],p5={};function d6(e){if(!("console"in si))return e();const t=si.console,n={},r=Object.keys(p5);r.forEach(i=>{const a=p5[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function C2t(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return nS?g9.forEach(n=>{t[n]=(...r)=>{e&&d6(()=>{si.console[n](`${k2t}[${n}]:`,...r)})}}):g9.forEach(n=>{t[n]=()=>{}}),t}const Pt=C2t(),A2t=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function _2t(e){return e==="http"||e==="https"}function ak(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function R2t(e){const t=A2t.exec(e);if(!t){d6(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",u=o;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return xye({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function xye(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function I2t(e){if(!nS)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Pt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?_2t(r)?t&&isNaN(parseInt(t,10))?(Pt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Pt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Pt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function D2t(e){const t=typeof e=="string"?R2t(e):xye(e);if(!(!t||!I2t(t)))return t}class Of extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function qs(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&Tye(i,r),e[t]=i}function Cx(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{nS&&Pt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Tye(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Cx(e,"__sentry_original__",t)}catch{}}function BQ(e){return e.__sentry_original__}function N2t(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function kye(e){if(vye(e))return{message:e.message,name:e.name,stack:e.stack,...Are(e)};if(u6(e)){const t={type:e.type,target:Cre(e.target),currentTarget:Cre(e.currentTarget),...Are(e)};return typeof CustomEvent<"u"&&hp(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Cre(e){try{return g2t(e)?kx(e):Object.prototype.toString.call(e)}catch{return""}}function Are(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function P2t(e,t=40){const n=Object.keys(kye(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return gv(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:gv(i,t)}return""}function gc(e){return b9(e,new Map)}function b9(e,t){if(M2t(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=b9(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(b9(i,t))}),r}return e}function M2t(e){if(!fO(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Cye=50,_re=/\(error: (.*)\)/,Rre=/captureMessage|captureException/;function Aye(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` -`);for(let s=r;s1024)continue;const l=_re.test(o)?o.replace(_re,"$1"):o;if(!l.match(/\S*Error: /)){for(const u of t){const c=u(l);if(c){i.push(c);break}}if(i.length>=Cye)break}}return $2t(i)}}function L2t(e){return Array.isArray(e)?Aye(...e):e}function $2t(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Rre.test(t[t.length-1].function||"")&&(t.pop(),Rre.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Cye).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const b7="";function pp(e){try{return!e||typeof e!="function"?b7:e.name||b7}catch{return b7}}const r_={},Ire={};function U1(e,t){r_[e]=r_[e]||[],r_[e].push(t)}function z1(e,t){Ire[e]||(t(),Ire[e]=!0)}function bd(e,t){const n=e&&r_[e];if(n)for(const r of n)try{r(t)}catch(i){nS&&Pt.error(`Error while triggering instrumentation handler. +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var yre={};function xbe(e,t){un.deprecationHandler!=null&&un.deprecationHandler(e,t),yre[e]||(wbe(t),yre[e]=!0)}un.suppressDeprecationWarnings=!1;un.deprecationHandler=null;function rh(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Lyt(e){var t,n;for(n in e)Jr(e,n)&&(t=e[n],rh(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function u9(e,t){var n=Nm({},e),r;for(r in t)Jr(t,r)&&(e1(e[r])&&e1(t[r])?(n[r]={},Nm(n[r],e[r]),Nm(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Jr(e,r)&&!Jr(t,r)&&e1(e[r])&&(n[r]=Nm({},n[r]));return n}function fQ(e){e!=null&&this.set(e)}var c9;Object.keys?c9=Object.keys:c9=function(e){var t,n=[];for(t in e)Jr(e,t)&&n.push(t);return n};var $yt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Fyt(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return rh(r)?r.call(t,n):r}function jf(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var hQ=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,YA=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,g7={},fv={};function Un(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(fv[e]=i),t&&(fv[t[0]]=function(){return jf(i.apply(this,arguments),t[1],t[2])}),n&&(fv[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Byt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Uyt(e){var t=e.match(hQ),n,r;for(n=0,r=t.length;n=0&&YA.test(e);)e=e.replace(YA,r),YA.lastIndex=0,n-=1;return e}var zyt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function jyt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(hQ).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Hyt="Invalid date";function Vyt(){return this._invalidDate}var Wyt="%d",Qyt=/\d{1,2}/;function qyt(e){return this._ordinal.replace("%d",e)}var Gyt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Yyt(e,t,n,r){var i=this._relativeTime[n];return rh(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Zyt(e,t){var n=this._relativeTime[e>0?"future":"past"];return rh(n)?n(t):n.replace(/%s/i,t)}var vre={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function $c(e){return typeof e=="string"?vre[e]||vre[e.toLowerCase()]:void 0}function pQ(e){var t={},n,r;for(r in e)Jr(e,r)&&(n=$c(r),n&&(t[n]=e[r]));return t}var Xyt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Kyt(e){var t=[],n;for(n in e)Jr(e,n)&&t.push({unit:n,priority:Xyt[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var kbe=/\d/,Mu=/\d\d/,Cbe=/\d{3}/,mQ=/\d{4}/,t6=/[+-]?\d{6}/,Wi=/\d\d?/,Abe=/\d\d\d\d?/,_be=/\d\d\d\d\d\d?/,n6=/\d{1,3}/,gQ=/\d{1,4}/,r6=/[+-]?\d{1,6}/,KO=/\d+/,i6=/[+-]?\d+/,Jyt=/Z|[+-]\d\d:?\d\d/gi,a6=/Z|[+-]\d\d(?::?\d\d)?/gi,evt=/[+-]?\d+(\.\d{1,3})?/,rk=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,JO=/^[1-9]\d?/,bQ=/^([1-9]\d|\d)/,f5;f5={};function bn(e,t,n){f5[e]=rh(t)?t:function(r,i){return r&&n?n:t}}function tvt(e,t){return Jr(f5,e)?f5[e](t._strict,t._locale):new RegExp(nvt(e))}function nvt(e){return Gh(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function Gh(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function lc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Nr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=lc(t)),n}var d9={};function vi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),hp(t)&&(r=function(a,s){s[t]=Nr(a)}),i=e.length,n=0;n68?1900:2e3)};var Rbe=eS("FullYear",!0);function svt(){return s6(this.year())}function eS(e,t){return function(n){return n!=null?(Ibe(this,e,n),un.updateOffset(this,t),this):Ex(this,e)}}function Ex(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ibe(e,t,n){var r,i,a,s,o;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=e.date(),o=o===29&&s===1&&!s6(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function ovt(e){return e=$c(e),rh(this[e])?this[e]():this}function lvt(e,t){if(typeof e=="object"){e=pQ(e);var n=Kyt(e),r,i=n.length;for(r=0;r=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function wx(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function h5(e,t,n){var r=7+t-n,i=(7+wx(e,0,r).getUTCDay()-t)%7;return-i+r-1}function $be(e,t,n,r,i){var a=(7+n-r)%7,s=h5(e,r,i),o=1+7*(t-1)+a+s,l,u;return o<=0?(l=e-1,u=rw(l)+o):o>rw(e)?(l=e+1,u=o-rw(e)):(l=e,u=o),{year:l,dayOfYear:u}}function xx(e,t,n){var r=h5(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+Yh(s,t,n)):i>Yh(e.year(),t,n)?(a=i-Yh(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function Yh(e,t,n){var r=h5(e,t,n),i=h5(e+1,t,n);return(rw(e)-r+i)/7}Un("w",["ww",2],"wo","week");Un("W",["WW",2],"Wo","isoWeek");bn("w",Wi,JO);bn("ww",Wi,Mu);bn("W",Wi,JO);bn("WW",Wi,Mu);ik(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Nr(e)});function Svt(e){return xx(e,this._week.dow,this._week.doy).week}var Evt={dow:0,doy:6};function wvt(){return this._week.dow}function xvt(){return this._week.doy}function Tvt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function kvt(e){var t=xx(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Un("d",0,"do","day");Un("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Un("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Un("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Un("e",0,0,"weekday");Un("E",0,0,"isoWeekday");bn("d",Wi);bn("e",Wi);bn("E",Wi);bn("dd",function(e,t){return t.weekdaysMinRegex(e)});bn("ddd",function(e,t){return t.weekdaysShortRegex(e)});bn("dddd",function(e,t){return t.weekdaysRegex(e)});ik(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:gr(n).invalidWeekday=e});ik(["d","e","E"],function(e,t,n,r){t[r]=Nr(e)});function Cvt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Avt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function vQ(e,t){return e.slice(t,7).concat(e.slice(0,t))}var _vt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fbe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rvt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ivt=rk,Dvt=rk,Nvt=rk;function Pvt(e,t){var n=Ed(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?vQ(n,this._week.dow):e?n[e.day()]:n}function Mvt(e){return e===!0?vQ(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Lvt(e){return e===!0?vQ(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $vt(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=nh([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Da.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Da.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Da.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Da.call(this._weekdaysParse,s),i!==-1||(i=Da.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Da.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Da.call(this._shortWeekdaysParse,s),i!==-1||(i=Da.call(this._weekdaysParse,s),i!==-1)?i:(i=Da.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Da.call(this._minWeekdaysParse,s),i!==-1||(i=Da.call(this._weekdaysParse,s),i!==-1)?i:(i=Da.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function Fvt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return $vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=nh([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Bvt(e){if(!this.isValid())return e!=null?this:NaN;var t=Ex(this,"Day");return e!=null?(e=Cvt(e,this.localeData()),this.add(e-t,"d")):t}function Uvt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function zvt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Avt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function jvt(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||OQ.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Jr(this,"_weekdaysRegex")||(this._weekdaysRegex=Ivt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Hvt(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||OQ.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dvt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Vvt(e){return this._weekdaysParseExact?(Jr(this,"_weekdaysRegex")||OQ.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nvt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function OQ(){function e(c,f){return f.length-c.length}var t=[],n=[],r=[],i=[],a,s,o,l,u;for(a=0;a<7;a++)s=nh([2e3,1]).day(a),o=Gh(this.weekdaysMin(s,"")),l=Gh(this.weekdaysShort(s,"")),u=Gh(this.weekdays(s,"")),t.push(o),n.push(l),r.push(u),i.push(o),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function SQ(){return this.hours()%12||12}function Wvt(){return this.hours()||24}Un("H",["HH",2],0,"hour");Un("h",["hh",2],0,SQ);Un("k",["kk",2],0,Wvt);Un("hmm",0,0,function(){return""+SQ.apply(this)+jf(this.minutes(),2)});Un("hmmss",0,0,function(){return""+SQ.apply(this)+jf(this.minutes(),2)+jf(this.seconds(),2)});Un("Hmm",0,0,function(){return""+this.hours()+jf(this.minutes(),2)});Un("Hmmss",0,0,function(){return""+this.hours()+jf(this.minutes(),2)+jf(this.seconds(),2)});function Bbe(e,t){Un(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Bbe("a",!0);Bbe("A",!1);function Ube(e,t){return t._meridiemParse}bn("a",Ube);bn("A",Ube);bn("H",Wi,bQ);bn("h",Wi,JO);bn("k",Wi,JO);bn("HH",Wi,Mu);bn("hh",Wi,Mu);bn("kk",Wi,Mu);bn("hmm",Abe);bn("hmmss",_be);bn("Hmm",Abe);bn("Hmmss",_be);vi(["H","HH"],as);vi(["k","kk"],function(e,t,n){var r=Nr(e);t[as]=r===24?0:r});vi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});vi(["h","hh"],function(e,t,n){t[as]=Nr(e),gr(n).bigHour=!0});vi("hmm",function(e,t,n){var r=e.length-2;t[as]=Nr(e.substr(0,r)),t[hd]=Nr(e.substr(r)),gr(n).bigHour=!0});vi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[as]=Nr(e.substr(0,r)),t[hd]=Nr(e.substr(r,2)),t[zh]=Nr(e.substr(i)),gr(n).bigHour=!0});vi("Hmm",function(e,t,n){var r=e.length-2;t[as]=Nr(e.substr(0,r)),t[hd]=Nr(e.substr(r))});vi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[as]=Nr(e.substr(0,r)),t[hd]=Nr(e.substr(r,2)),t[zh]=Nr(e.substr(i))});function Qvt(e){return(e+"").toLowerCase().charAt(0)==="p"}var qvt=/[ap]\.?m?\.?/i,Gvt=eS("Hours",!0);function Yvt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var zbe={calendar:$yt,longDateFormat:zyt,invalidDate:Hyt,ordinal:Wyt,dayOfMonthOrdinalParse:Qyt,relativeTime:Gyt,months:cvt,monthsShort:Dbe,week:Evt,weekdays:_vt,weekdaysMin:Rvt,weekdaysShort:Fbe,meridiemParse:qvt},Yi={},jE={},Tx;function Zvt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=o6(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Zvt(a,r)>=n-1)break;n--}t++}return Tx}function Kvt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function o6(e){var t=null,n;if(Yi[e]===void 0&&typeof h_<"u"&&h_&&h_.exports&&Kvt(e))try{t=Tx._abbr,n=require,n("./locale/"+e),Zm(t)}catch{Yi[e]=null}return Yi[e]}function Zm(e,t){var n;return e&&(pl(t)?n=xp(e):n=EQ(e,t),n?Tx=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Tx._abbr}function EQ(e,t){if(t!==null){var n,r=zbe;if(t.abbr=e,Yi[e]!=null)xbe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Yi[e]._config;else if(t.parentLocale!=null)if(Yi[t.parentLocale]!=null)r=Yi[t.parentLocale]._config;else if(n=o6(t.parentLocale),n!=null)r=n._config;else return jE[t.parentLocale]||(jE[t.parentLocale]=[]),jE[t.parentLocale].push({name:e,config:t}),null;return Yi[e]=new fQ(u9(r,t)),jE[e]&&jE[e].forEach(function(i){EQ(i.name,i.config)}),Zm(e),Yi[e]}else return delete Yi[e],null}function Jvt(e,t){if(t!=null){var n,r,i=zbe;Yi[e]!=null&&Yi[e].parentLocale!=null?Yi[e].set(u9(Yi[e]._config,t)):(r=o6(e),r!=null&&(i=r._config),t=u9(i,t),r==null&&(t.abbr=e),n=new fQ(t),n.parentLocale=Yi[e],Yi[e]=n),Zm(e)}else Yi[e]!=null&&(Yi[e].parentLocale!=null?(Yi[e]=Yi[e].parentLocale,e===Zm()&&Zm(e)):Yi[e]!=null&&delete Yi[e]);return Yi[e]}function xp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Tx;if(!Ed(e)){if(t=o6(e),t)return t;e=[e]}return Xvt(e)}function eOt(){return c9(Yi)}function wQ(e){var t,n=e._a;return n&&gr(e).overflow===-2&&(t=n[Uh]<0||n[Uh]>11?Uh:n[vf]<1||n[vf]>yQ(n[Oo],n[Uh])?vf:n[as]<0||n[as]>24||n[as]===24&&(n[hd]!==0||n[zh]!==0||n[zg]!==0)?as:n[hd]<0||n[hd]>59?hd:n[zh]<0||n[zh]>59?zh:n[zg]<0||n[zg]>999?zg:-1,gr(e)._overflowDayOfYear&&(tvf)&&(t=vf),gr(e)._overflowWeeks&&t===-1&&(t=ivt),gr(e)._overflowWeekday&&t===-1&&(t=avt),gr(e).overflow=t),e}var tOt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nOt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rOt=/Z|[+-]\d\d(?::?\d\d)?/,ZA=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b7=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],iOt=/^\/?Date\((-?\d+)/i,aOt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,sOt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function jbe(e){var t,n,r=e._i,i=tOt.exec(r)||nOt.exec(r),a,s,o,l,u=ZA.length,c=b7.length;if(i){for(gr(e).iso=!0,t=0,n=u;trw(s)||e._dayOfYear===0)&&(gr(e)._overflowDayOfYear=!0),n=wx(s,0,e._dayOfYear),e._a[Uh]=n.getUTCMonth(),e._a[vf]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[as]===24&&e._a[hd]===0&&e._a[zh]===0&&e._a[zg]===0&&(e._nextDay=!0,e._a[as]=0),e._d=(e._useUTC?wx:Ovt).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[as]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(gr(e).weekdayMismatch=!0)}}function pOt(e){var t,n,r,i,a,s,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=my(t.GG,e._a[Oo],xx(Vi(),1,4).year),r=my(t.W,1),i=my(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=xx(Vi(),a,s),n=my(t.gg,e._a[Oo],u.year),r=my(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>Yh(n,a,s)?gr(e)._overflowWeeks=!0:l!=null?gr(e)._overflowWeekday=!0:(o=$be(n,r,i,a,s),e._a[Oo]=o.year,e._dayOfYear=o.dayOfYear)}un.ISO_8601=function(){};un.RFC_2822=function(){};function TQ(e){if(e._f===un.ISO_8601){jbe(e);return}if(e._f===un.RFC_2822){Hbe(e);return}e._a=[],gr(e).empty=!0;var t=""+e._i,n,r,i,a,s,o=t.length,l=0,u,c;for(i=Tbe(e._f,e._locale).match(hQ)||[],c=i.length,n=0;n0&&gr(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),fv[a]?(r?gr(e).empty=!1:gr(e).unusedTokens.push(a),rvt(a,r,e)):e._strict&&!r&&gr(e).unusedTokens.push(a);gr(e).charsLeftOver=o-l,t.length>0&&gr(e).unusedInput.push(t),e._a[as]<=12&&gr(e).bigHour===!0&&e._a[as]>0&&(gr(e).bigHour=void 0),gr(e).parsedDateParts=e._a.slice(0),gr(e).meridiem=e._meridiem,e._a[as]=mOt(e._locale,e._a[as],e._meridiem),u=gr(e).era,u!==null&&(e._a[Oo]=e._locale.erasConvertYear(u,e._a[Oo])),xQ(e),wQ(e)}function mOt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function gOt(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(l===0){gr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:e6()});function Qbe(e,t){var n,r;if(t.length===1&&Ed(t[0])&&(t=t[0]),!t.length)return Vi();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $Ot(){if(!pl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return dQ(e,this),e=Vbe(e),e._a?(t=e._isUTC?nh(e._a):Vi(e._a),this._isDSTShifted=this.isValid()&&AOt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function FOt(){return this.isValid()?!this._isUTC:!1}function BOt(){return this.isValid()?this._isUTC:!1}function Gbe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var UOt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zOt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Md(e,t){var n=e,r=null,i,a,s;return n_(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:hp(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=UOt.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Nr(r[vf])*i,h:Nr(r[as])*i,m:Nr(r[hd])*i,s:Nr(r[zh])*i,ms:Nr(f9(r[zg]*1e3))*i}):(r=zOt.exec(e))?(i=r[1]==="-"?-1:1,n={y:bg(r[2],i),M:bg(r[3],i),w:bg(r[4],i),d:bg(r[5],i),h:bg(r[6],i),m:bg(r[7],i),s:bg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=jOt(Vi(n.from),Vi(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new l6(n),n_(e)&&Jr(e,"_locale")&&(a._locale=e._locale),n_(e)&&Jr(e,"_isValid")&&(a._isValid=e._isValid),a}Md.fn=l6.prototype;Md.invalid=COt;function bg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Sre(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function jOt(e,t){var n;return e.isValid()&&t.isValid()?(t=CQ(t,e),e.isBefore(t)?n=Sre(e,t):(n=Sre(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ybe(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(xbe(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Md(n,r),Zbe(this,i,e),this}}function Zbe(e,t,n,r){var i=t._milliseconds,a=f9(t._days),s=f9(t._months);e.isValid()&&(r=r??!0,s&&Pbe(e,Ex(e,"Month")+s*n),a&&Ibe(e,"Date",Ex(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&un.updateOffset(e,a||s))}var HOt=Ybe(1,"add"),VOt=Ybe(-1,"subtract");function Xbe(e){return typeof e=="string"||e instanceof String}function WOt(e){return wd(e)||tk(e)||Xbe(e)||hp(e)||qOt(e)||QOt(e)||e===null||e===void 0}function QOt(e){var t=e1(e)&&!uQ(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?t_(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):rh(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",t_(n,"Z")):t_(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function oSt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function lSt(e){e||(e=this.isUtc()?un.defaultFormatUtc:un.defaultFormat);var t=t_(this,e);return this.localeData().postformat(t)}function uSt(e,t){return this.isValid()&&(wd(e)&&e.isValid()||Vi(e).isValid())?Md({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cSt(e){return this.from(Vi(),e)}function dSt(e,t){return this.isValid()&&(wd(e)&&e.isValid()||Vi(e).isValid())?Md({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fSt(e){return this.to(Vi(),e)}function Kbe(e){var t;return e===void 0?this._locale._abbr:(t=xp(e),t!=null&&(this._locale=t),this)}var Jbe=Lc("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function eye(){return this._locale}var p5=1e3,hv=60*p5,m5=60*hv,tye=(365*400+97)*24*m5;function pv(e,t){return(e%t+t)%t}function nye(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-tye:new Date(e,t,n).valueOf()}function rye(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-tye:Date.UTC(e,t,n)}function hSt(e){var t,n;if(e=$c(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?rye:nye,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pv(t+(this._isUTC?0:this.utcOffset()*hv),m5);break;case"minute":t=this._d.valueOf(),t-=pv(t,hv);break;case"second":t=this._d.valueOf(),t-=pv(t,p5);break}return this._d.setTime(t),un.updateOffset(this,!0),this}function pSt(e){var t,n;if(e=$c(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?rye:nye,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=m5-pv(t+(this._isUTC?0:this.utcOffset()*hv),m5)-1;break;case"minute":t=this._d.valueOf(),t+=hv-pv(t,hv)-1;break;case"second":t=this._d.valueOf(),t+=p5-pv(t,p5)-1;break}return this._d.setTime(t),un.updateOffset(this,!0),this}function mSt(){return this._d.valueOf()-(this._offset||0)*6e4}function gSt(){return Math.floor(this.valueOf()/1e3)}function bSt(){return new Date(this.valueOf())}function ySt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function vSt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function OSt(){return this.isValid()?this.toISOString():null}function SSt(){return cQ(this)}function ESt(){return Nm({},gr(this))}function wSt(){return gr(this).overflow}function xSt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Un("N",0,0,"eraAbbr");Un("NN",0,0,"eraAbbr");Un("NNN",0,0,"eraAbbr");Un("NNNN",0,0,"eraName");Un("NNNNN",0,0,"eraNarrow");Un("y",["y",1],"yo","eraYear");Un("y",["yy",2],0,"eraYear");Un("y",["yyy",3],0,"eraYear");Un("y",["yyyy",4],0,"eraYear");bn("N",AQ);bn("NN",AQ);bn("NNN",AQ);bn("NNNN",MSt);bn("NNNNN",LSt);vi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?gr(n).era=i:gr(n).invalidEra=e});bn("y",KO);bn("yy",KO);bn("yyy",KO);bn("yyyy",KO);bn("yo",$St);vi(["y","yy","yyy","yyyy"],Oo);vi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Oo]=n._locale.eraYearOrdinalParse(e,i):t[Oo]=parseInt(e,10)});function TSt(e,t){var n,r,i,a=this._eras||xp("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function CSt(e,t){var n=e.since<=e.until?1:-1;return t===void 0?un(e.since).year():un(e.since).year()+(t-e.offset)*n}function ASt(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),VSt.call(this,e,t,n,r,i))}function VSt(e,t,n,r,i){var a=$be(e,t,n,r,i),s=wx(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Un("Q",0,"Qo","quarter");bn("Q",kbe);vi("Q",function(e,t){t[Uh]=(Nr(e)-1)*3});function WSt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Un("D",["DD",2],"Do","date");bn("D",Wi,JO);bn("DD",Wi,Mu);bn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});vi(["D","DD"],vf);vi("Do",function(e,t){t[vf]=Nr(e.match(Wi)[0])});var aye=eS("Date",!0);Un("DDD",["DDDD",3],"DDDo","dayOfYear");bn("DDD",n6);bn("DDDD",Cbe);vi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Nr(e)});function QSt(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Un("m",["mm",2],0,"minute");bn("m",Wi,bQ);bn("mm",Wi,Mu);vi(["m","mm"],hd);var qSt=eS("Minutes",!1);Un("s",["ss",2],0,"second");bn("s",Wi,bQ);bn("ss",Wi,Mu);vi(["s","ss"],zh);var GSt=eS("Seconds",!1);Un("S",0,0,function(){return~~(this.millisecond()/100)});Un(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Un(0,["SSS",3],0,"millisecond");Un(0,["SSSS",4],0,function(){return this.millisecond()*10});Un(0,["SSSSS",5],0,function(){return this.millisecond()*100});Un(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Un(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Un(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Un(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});bn("S",n6,kbe);bn("SS",n6,Mu);bn("SSS",n6,Cbe);var Pm,sye;for(Pm="SSSS";Pm.length<=9;Pm+="S")bn(Pm,KO);function YSt(e,t){t[zg]=Nr(("0."+e)*1e3)}for(Pm="S";Pm.length<=9;Pm+="S")vi(Pm,YSt);sye=eS("Milliseconds",!1);Un("z",0,0,"zoneAbbr");Un("zz",0,0,"zoneName");function ZSt(){return this._isUTC?"UTC":""}function XSt(){return this._isUTC?"Coordinated Universal Time":""}var Vt=nk.prototype;Vt.add=HOt;Vt.calendar=ZOt;Vt.clone=XOt;Vt.diff=iSt;Vt.endOf=pSt;Vt.format=lSt;Vt.from=uSt;Vt.fromNow=cSt;Vt.to=dSt;Vt.toNow=fSt;Vt.get=ovt;Vt.invalidAt=wSt;Vt.isAfter=KOt;Vt.isBefore=JOt;Vt.isBetween=eSt;Vt.isSame=tSt;Vt.isSameOrAfter=nSt;Vt.isSameOrBefore=rSt;Vt.isValid=SSt;Vt.lang=Jbe;Vt.locale=Kbe;Vt.localeData=eye;Vt.max=SOt;Vt.min=OOt;Vt.parsingFlags=ESt;Vt.set=lvt;Vt.startOf=hSt;Vt.subtract=VOt;Vt.toArray=ySt;Vt.toObject=vSt;Vt.toDate=bSt;Vt.toISOString=sSt;Vt.inspect=oSt;typeof Symbol<"u"&&Symbol.for!=null&&(Vt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Vt.toJSON=OSt;Vt.toString=aSt;Vt.unix=gSt;Vt.valueOf=mSt;Vt.creationData=xSt;Vt.eraName=ASt;Vt.eraNarrow=_St;Vt.eraAbbr=RSt;Vt.eraYear=ISt;Vt.year=Rbe;Vt.isLeapYear=svt;Vt.weekYear=FSt;Vt.isoWeekYear=BSt;Vt.quarter=Vt.quarters=WSt;Vt.month=Mbe;Vt.daysInMonth=bvt;Vt.week=Vt.weeks=Tvt;Vt.isoWeek=Vt.isoWeeks=kvt;Vt.weeksInYear=jSt;Vt.weeksInWeekYear=HSt;Vt.isoWeeksInYear=USt;Vt.isoWeeksInISOWeekYear=zSt;Vt.date=aye;Vt.day=Vt.days=Bvt;Vt.weekday=Uvt;Vt.isoWeekday=zvt;Vt.dayOfYear=QSt;Vt.hour=Vt.hours=Gvt;Vt.minute=Vt.minutes=qSt;Vt.second=Vt.seconds=GSt;Vt.millisecond=Vt.milliseconds=sye;Vt.utcOffset=ROt;Vt.utc=DOt;Vt.local=NOt;Vt.parseZone=POt;Vt.hasAlignedHourOffset=MOt;Vt.isDST=LOt;Vt.isLocal=FOt;Vt.isUtcOffset=BOt;Vt.isUtc=Gbe;Vt.isUTC=Gbe;Vt.zoneAbbr=ZSt;Vt.zoneName=XSt;Vt.dates=Lc("dates accessor is deprecated. Use date instead.",aye);Vt.months=Lc("months accessor is deprecated. Use month instead",Mbe);Vt.years=Lc("years accessor is deprecated. Use year instead",Rbe);Vt.zone=Lc("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",IOt);Vt.isDSTShifted=Lc("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$Ot);function KSt(e){return Vi(e*1e3)}function JSt(){return Vi.apply(null,arguments).parseZone()}function oye(e){return e}var ei=fQ.prototype;ei.calendar=Fyt;ei.longDateFormat=jyt;ei.invalidDate=Vyt;ei.ordinal=qyt;ei.preparse=oye;ei.postformat=oye;ei.relativeTime=Yyt;ei.pastFuture=Zyt;ei.set=Lyt;ei.eras=TSt;ei.erasParse=kSt;ei.erasConvertYear=CSt;ei.erasAbbrRegex=NSt;ei.erasNameRegex=DSt;ei.erasNarrowRegex=PSt;ei.months=hvt;ei.monthsShort=pvt;ei.monthsParse=gvt;ei.monthsRegex=vvt;ei.monthsShortRegex=yvt;ei.week=Svt;ei.firstDayOfYear=xvt;ei.firstDayOfWeek=wvt;ei.weekdays=Pvt;ei.weekdaysMin=Lvt;ei.weekdaysShort=Mvt;ei.weekdaysParse=Fvt;ei.weekdaysRegex=jvt;ei.weekdaysShortRegex=Hvt;ei.weekdaysMinRegex=Vvt;ei.isPM=Qvt;ei.meridiem=Yvt;function g5(e,t,n,r){var i=xp(),a=nh().set(r,t);return i[n](a,e)}function lye(e,t,n){if(hp(e)&&(t=e,e=void 0),e=e||"",t!=null)return g5(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=g5(e,r,n,"month");return i}function RQ(e,t,n,r){typeof e=="boolean"?(hp(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,hp(t)&&(n=t,t=void 0),t=t||"");var i=xp(),a=e?i._week.dow:0,s,o=[];if(n!=null)return g5(t,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=g5(t,(s+a)%7,r,"day");return o}function eEt(e,t){return lye(e,t,"months")}function tEt(e,t){return lye(e,t,"monthsShort")}function nEt(e,t,n){return RQ(e,t,n,"weekdays")}function rEt(e,t,n){return RQ(e,t,n,"weekdaysShort")}function iEt(e,t,n){return RQ(e,t,n,"weekdaysMin")}Zm("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Nr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});un.lang=Lc("moment.lang is deprecated. Use moment.locale instead.",Zm);un.langData=Lc("moment.langData is deprecated. Use moment.localeData instead.",xp);var kh=Math.abs;function aEt(){var e=this._data;return this._milliseconds=kh(this._milliseconds),this._days=kh(this._days),this._months=kh(this._months),e.milliseconds=kh(e.milliseconds),e.seconds=kh(e.seconds),e.minutes=kh(e.minutes),e.hours=kh(e.hours),e.months=kh(e.months),e.years=kh(e.years),this}function uye(e,t,n,r){var i=Md(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function sEt(e,t){return uye(this,e,t,1)}function oEt(e,t){return uye(this,e,t,-1)}function Ere(e){return e<0?Math.floor(e):Math.ceil(e)}function lEt(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,o,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Ere(p9(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=lc(e/1e3),r.seconds=i%60,a=lc(i/60),r.minutes=a%60,s=lc(a/60),r.hours=s%24,t+=lc(s/24),l=lc(cye(t)),n+=l,t-=Ere(p9(l)),o=lc(n/12),n%=12,r.days=t,r.months=n,r.years=o,this}function cye(e){return e*4800/146097}function p9(e){return e*146097/4800}function uEt(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=$c(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+cye(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(p9(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Tp(e){return function(){return this.as(e)}}var dye=Tp("ms"),cEt=Tp("s"),dEt=Tp("m"),fEt=Tp("h"),hEt=Tp("d"),pEt=Tp("w"),mEt=Tp("M"),gEt=Tp("Q"),bEt=Tp("y"),yEt=dye;function vEt(){return Md(this)}function OEt(e){return e=$c(e),this.isValid()?this[e+"s"]():NaN}function B1(e){return function(){return this.isValid()?this._data[e]:NaN}}var SEt=B1("milliseconds"),EEt=B1("seconds"),wEt=B1("minutes"),xEt=B1("hours"),TEt=B1("days"),kEt=B1("months"),CEt=B1("years");function AEt(){return lc(this.days()/7)}var Rh=Math.round,By={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _Et(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function REt(e,t,n,r){var i=Md(e).abs(),a=Rh(i.as("s")),s=Rh(i.as("m")),o=Rh(i.as("h")),l=Rh(i.as("d")),u=Rh(i.as("M")),c=Rh(i.as("w")),f=Rh(i.as("y")),h=a<=n.ss&&["s",a]||a0,h[4]=r,_Et.apply(null,h)}function IEt(e){return e===void 0?Rh:typeof e=="function"?(Rh=e,!0):!1}function DEt(e,t){return By[e]===void 0?!1:t===void 0?By[e]:(By[e]=t,e==="s"&&(By.ss=t-1),!0)}function NEt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=By,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},By,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=REt(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var y7=Math.abs;function ty(e){return(e>0)-(e<0)||+e}function c6(){if(!this.isValid())return this.localeData().invalidDate();var e=y7(this._milliseconds)/1e3,t=y7(this._days),n=y7(this._months),r,i,a,s,o=this.asSeconds(),l,u,c,f;return o?(r=lc(e/60),i=lc(r/60),e%=60,r%=60,a=lc(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=ty(this._months)!==ty(o)?"-":"",c=ty(this._days)!==ty(o)?"-":"",f=ty(this._milliseconds)!==ty(o)?"-":"",l+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var Wr=l6.prototype;Wr.isValid=kOt;Wr.abs=aEt;Wr.add=sEt;Wr.subtract=oEt;Wr.as=uEt;Wr.asMilliseconds=dye;Wr.asSeconds=cEt;Wr.asMinutes=dEt;Wr.asHours=fEt;Wr.asDays=hEt;Wr.asWeeks=pEt;Wr.asMonths=mEt;Wr.asQuarters=gEt;Wr.asYears=bEt;Wr.valueOf=yEt;Wr._bubble=lEt;Wr.clone=vEt;Wr.get=OEt;Wr.milliseconds=SEt;Wr.seconds=EEt;Wr.minutes=wEt;Wr.hours=xEt;Wr.days=TEt;Wr.weeks=AEt;Wr.months=kEt;Wr.years=CEt;Wr.humanize=NEt;Wr.toISOString=c6;Wr.toString=c6;Wr.toJSON=c6;Wr.locale=Kbe;Wr.localeData=eye;Wr.toIsoString=Lc("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",c6);Wr.lang=Jbe;Un("X",0,0,"unix");Un("x",0,0,"valueOf");bn("x",i6);bn("X",evt);vi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});vi("x",function(e,t,n){n._d=new Date(Nr(e))});//! moment.js +un.version="2.30.1";Pyt(Vi);un.fn=Vt;un.min=EOt;un.max=wOt;un.now=xOt;un.utc=nh;un.unix=KSt;un.months=eEt;un.isDate=tk;un.locale=Zm;un.invalid=e6;un.duration=Md;un.isMoment=wd;un.weekdays=nEt;un.parseZone=JSt;un.localeData=xp;un.isDuration=n_;un.monthsShort=tEt;un.weekdaysMin=iEt;un.defineLocale=EQ;un.updateLocale=Jvt;un.locales=eOt;un.weekdaysShort=rEt;un.normalizeUnits=$c;un.relativeTimeRounding=IEt;un.relativeTimeThreshold=DEt;un.calendarFormat=YOt;un.prototype=Vt;un.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var IQ={},PEt=ca;Object.defineProperty(IQ,"__esModule",{value:!0});var fye=IQ.default=void 0,MEt=PEt(da()),wre=I;fye=IQ.default=(0,MEt.default)([(0,wre.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,wre.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function LEt(e){const{document:t}=e,n=Wf(),r=x0(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return I.jsx(hF,{sx:{width:"100%"},children:I.jsx(qoe,{onClick:i,children:I.jsxs(VIe,{children:[I.jsx(Sr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),I.jsxs(lr,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(fye,{fontSize:"small",sx:{color:"text.secondary"}}),I.jsxs(Sr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",un(t.updatedAt).fromNow()]})]})]})})})}function $Et(){const e=x0(),t=Wf(),{data:n}=qF(e.workspaceSlug),{data:r,fetchNextPage:i,hasNextPage:a}=bUe(n==null?void 0:n.id),{mutateAsync:s}=vUe((n==null?void 0:n.id)||""),[o,l]=N.useState(!1),u=N.useMemo(()=>(r==null?void 0:r.pages.reduce((h,g)=>h.concat(g.documents),[]))??[],[r==null?void 0:r.pages]),c=()=>{l(h=>!h)},f=async h=>{const g=await s(h);t(g.id)};return I.jsxs(lr,{gap:2,children:[I.jsxs(lr,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[I.jsxs(Sr,{variant:"h5",fontWeight:"bold",children:[n==null?void 0:n.title," ",I.jsx(Sr,{component:"span",variant:"inherit",color:"primary",children:r==null?void 0:r.pages[0].totalLength})]}),I.jsx(Qs,{variant:"contained",startIcon:I.jsx(KI,{}),onClick:c,children:"New Note"})]}),I.jsx(lr,{style:{maxHeight:"calc(100vh - 144px)",overflow:"auto"},children:I.jsx(Sx,{pageStart:0,loadMore:()=>i(),hasMore:a,loader:I.jsx(lr,{className:"loader",alignItems:"center",children:I.jsx(yp,{size:20})},0),useWindow:!1,children:I.jsx(ks,{p:2,width:1,children:I.jsx(_y,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:u.map(h=>I.jsx(_y,{item:!0,xs:4,sm:4,md:4,lg:3,children:I.jsx(LEt,{document:h})},h.id))})})})}),I.jsx(ybe,{open:o,title:"Note",onSuccess:f,onClose:c})]})}function FEt(){const e=jle();return I.jsx(lr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:I.jsxs(lr,{alignItems:"center",children:[I.jsx(Sr,{variant:"h5",children:"Something went wrong"}),xF(e)&&I.jsxs(Sr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}function BEt(){const e=x0(),t=Wf(),{mutateAsync:n}=CUe();return N.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),I.jsx(aT,{open:!0,children:I.jsx(yp,{color:"inherit"})})}var UEt=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(o){return r[o]}).bind(null,s));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=N},function(e,t,n){var r=n(3);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function s(u,c,f,h,g,b){if(b!==r){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function o(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return K}),n.d(t,"GoogleLoginButton",function(){return z}),n.d(t,"GithubLoginButton",function(){return ee}),n.d(t,"TwitterLoginButton",function(){return ie}),n.d(t,"AmazonLoginButton",function(){return qe}),n.d(t,"InstagramLoginButton",function(){return tt}),n.d(t,"LinkedInLoginButton",function(){return et}),n.d(t,"MicrosoftLoginButton",function(){return Je}),n.d(t,"BufferLoginButton",function(){return he}),n.d(t,"TelegramLoginButton",function(){return We}),n.d(t,"AppleLoginButton",function(){return ve}),n.d(t,"DiscordLoginButton",function(){return vt}),n.d(t,"OktaLoginButton",function(){return gt}),n.d(t,"SlackLoginButton",function(){return wt}),n.d(t,"YahooLoginButton",function(){return $n}),n.d(t,"createButton",function(){return Z}),n.d(t,"createSvgIcon",function(){return H}),n.d(t,"ZaloLoginButton",function(){return Ur}),n.d(t,"TikTokLoginButton",function(){return lt}),n.d(t,"MetamaskLoginButton",function(){return yn});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return K}),n.d(r,"GoogleLoginButton",function(){return z}),n.d(r,"GithubLoginButton",function(){return ee}),n.d(r,"TwitterLoginButton",function(){return ie}),n.d(r,"AmazonLoginButton",function(){return qe}),n.d(r,"InstagramLoginButton",function(){return tt}),n.d(r,"LinkedInLoginButton",function(){return et}),n.d(r,"MicrosoftLoginButton",function(){return Je}),n.d(r,"BufferLoginButton",function(){return he}),n.d(r,"TelegramLoginButton",function(){return We}),n.d(r,"AppleLoginButton",function(){return ve}),n.d(r,"DiscordLoginButton",function(){return vt}),n.d(r,"OktaLoginButton",function(){return gt}),n.d(r,"SlackLoginButton",function(){return wt}),n.d(r,"YahooLoginButton",function(){return $n}),n.d(r,"createButton",function(){return Z}),n.d(r,"createSvgIcon",function(){return H}),n.d(r,"ZaloLoginButton",function(){return Ur}),n.d(r,"TikTokLoginButton",function(){return lt}),n.d(r,"MetamaskLoginButton",function(){return yn});var i=n(1),a=n.n(i),s=n(0),o=n.n(s),l=function(Qe){var Ye=Qe.name,ot=Qe.size,yt=Qe.format;return a.a.createElement("i",{className:yt(Ye),style:{fontSize:ot}})};l.propTypes={format:o.a.func,name:o.a.string.isRequired,size:o.a.oneOfType([o.a.string,o.a.number]).isRequired},l.defaultProps={format:function(Qe){return"demo-icon icon-".concat(Qe)},size:26};var u=l,c=function(Qe){var Ye=Qe.type,ot=Qe.size,yt=Qe.format,Yn=Qe.color,pn=Yn===void 0?"#FFFFFF":Yn;return typeof Ye=="string"?a.a.createElement(u,{format:yt,name:Ye,size:ot}):a.a.createElement(Ye,{size:ot,color:pn})};c.propTypes={format:o.a.func,size:o.a.oneOfType([o.a.number,o.a.string]),type:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),color:o.a.string};var f=c;function h(Qe,Ye){var ot=Object.keys(Qe);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(Qe);Ye&&(yt=yt.filter(function(Yn){return Object.getOwnPropertyDescriptor(Qe,Yn).enumerable})),ot.push.apply(ot,yt)}return ot}function g(Qe){for(var Ye=1;Ye"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var ot,yt=R(Qe);if(Ye){var Yn=R(this).constructor;ot=Reflect.construct(yt,arguments,Yn)}else ot=yt.apply(this,arguments);return C(this,ot)}}function C(Qe,Ye){return!Ye||S(Ye)!=="object"&&typeof Ye!="function"?function(ot){if(ot===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ot}(Qe):Ye}function R(Qe){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(Ye){return Ye.__proto__||Object.getPrototypeOf(Ye)})(Qe)}var A=function(Qe){(function(pn,Fn){if(typeof Fn!="function"&&Fn!==null)throw new TypeError("Super expression must either be null or a function");pn.prototype=Object.create(Fn&&Fn.prototype,{constructor:{value:pn,writable:!0,configurable:!0}}),Fn&&x(pn,Fn)})(Yn,Qe);var Ye,ot,yt=k(Yn);function Yn(pn){var Fn;return function(Pi,nt){if(!(Pi instanceof nt))throw new TypeError("Cannot call a class as a function")}(this,Yn),(Fn=yt.call(this,pn)).state={focused:!1,hovered:!1},Fn.handleMouseEnter=function(){Fn.setState({hovered:!0}),typeof Fn.props.onMouseEnter=="function"&&Fn.props.onMouseEnter()},Fn.handleMouseLeave=function(){Fn.setState({hovered:!1}),typeof Fn.props.onMouseLeave=="function"&&Fn.props.onMouseLeave()},Fn.handleFocus=function(){Fn.setState({focused:!0})},Fn.handleBlur=function(){Fn.setState({focused:!1})},Fn.handleClick=function(Pi){typeof Fn.props.onClick=="function"&&Fn.props.onClick(Pi)},Fn}return Ye=Yn,(ot=[{key:"render",value:function(){var pn=this.props,Fn=pn.activeStyle,Pi=pn.align,nt=pn.text,Be=pn.children,Dt=Be===void 0?nt:Be,en=pn.className,Vn=pn.icon,Zr=pn.iconFormat,wr=pn.iconSize,In=pn.iconColor,Wn=In===void 0?"#FFFFFF":In,ti=pn.preventActiveStyles,qa=pn.size,Bc=pn.style,Cp=pn.disabled,H1=this.state,V1=H1.focused,W1=H1.hovered,Q1=B(L.button,{activeStyle:ti?Bc:Fn,customStyle:Bc,active:W1||V1,size:qa});return a.a.createElement("button",w({type:"button",style:Q1,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:en},{disabled:Cp}),a.a.createElement("div",{style:L.flex},!D(wr)&&a.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:wr}},a.a.createElement(f,{type:Vn,size:wr,format:Zr,color:Wn})),!D(wr)&&a.a.createElement("div",{style:L.divider}),a.a.createElement("div",{style:{textAlign:Pi,width:"100%"}},Dt)))}}])&&E(Ye.prototype,ot),Yn}(i.Component),D=function(Qe){return Qe==="0"||Qe==="0px"||Qe===0},B=function(Qe,Ye){var ot=Ye.size,yt=Ye.customStyle,Yn=Ye.active,pn=Ye.activeStyle;return g(g(g({},Qe),{},{height:ot},yt),Yn&&pn)};A.propTypes={activeStyle:o.a.object,align:o.a.oneOf(["left","right","center"]),children:o.a.node,className:o.a.string,icon:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),iconFormat:o.a.func,iconSize:o.a.string,iconColor:o.a.string,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,preventActiveStyles:o.a.bool,size:o.a.string,style:o.a.object,text:o.a.string,disabled:o.a.bool},A.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var L={button:{display:"block",border:0,borderRadius:3,boxShadow:"rgba(0, 0, 0, 0.5) 0 1px 2px",color:"#ffffff",cursor:"pointer",fontSize:"19px",margin:"5px",width:"calc(100% - 10px)",overflow:"hidden",padding:"0 10px",userSelect:"none"},divider:{width:"10px"},flex:{alignItems:"center",display:"flex",height:"100%"}};function F(Qe,Ye){var ot=Object.keys(Qe);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(Qe);Ye&&(yt=yt.filter(function(Yn){return Object.getOwnPropertyDescriptor(Qe,Yn).enumerable})),ot.push.apply(ot,yt)}return ot}function W(Qe){for(var Ye=1;Ye{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return I.jsx(Goe,{sx:{height:1},children:I.jsx(lr,{alignItems:"center",justifyContent:"center",sx:{height:1},children:I.jsx(Ts,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:I.jsxs(lr,{gap:4,children:[I.jsxs(ks,{children:[I.jsxs(lr,{direction:"row",gap:1,children:[I.jsx(hbe,{}),I.jsx(Sr,{variant:"h6",children:"Login"})]}),I.jsx(Sr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),I.jsxs(lr,{gap:2,children:[I.jsxs(_y,{container:!0,spacing:1,alignItems:"center",children:[I.jsx(_y,{item:!0,xs:!0,children:I.jsx(c1,{sx:{width:1}})}),I.jsx(_y,{item:!0,xs:"auto",children:I.jsx(Sr,{variant:"body2",color:"text.secondary",children:"Login with"})}),I.jsx(_y,{item:!0,xs:!0,children:I.jsx(c1,{sx:{width:1}})})]}),zEt.map(({SocailLoginComponent:t,provider:n})=>I.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}var DQ={},HEt=ca;Object.defineProperty(DQ,"__esModule",{value:!0});var hye=DQ.default=void 0,VEt=HEt(da()),WEt=I;hye=DQ.default=(0,VEt.default)((0,WEt.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var NQ={},QEt=ca;Object.defineProperty(NQ,"__esModule",{value:!0});var pye=NQ.default=void 0,qEt=QEt(da()),GEt=I;pye=NQ.default=(0,qEt.default)((0,GEt.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");function YEt(){const e=Du(),t=CT(),n=()=>{e(iue(t=="light"?"dark":"light"))};return I.jsx(wa,{onClick:n,color:"inherit",children:t==="light"?I.jsx(JW,{}):I.jsx(XW,{})})}var PQ={},ZEt=ca;Object.defineProperty(PQ,"__esModule",{value:!0});var mye=PQ.default=void 0,XEt=ZEt(da()),KEt=I;mye=PQ.default=(0,XEt.default)((0,KEt.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");const mv=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];var m9=(e=>(e.READ="READ",e.EDIT="EDIT",e))(m9||{});function JEt(e){var c,f;const{...t}=e,n=x0(),[r,i]=N.useState(null),a=pi(QF),{mutateAsync:s}=OUe(((c=a.data)==null?void 0:c.workspaceId)||"",((f=a.data)==null?void 0:f.id)||""),{enqueueSnackbar:o}=XI(),l=async h=>{let g;if(h.expiredString===mv[0])g=null;else{const[S,w]=h.expiredString.split(" ");g=un().add(Number(S),w).toDate()}const{sharingToken:b}=await s({role:h.role,expiredAt:g});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${b}`)},u=async()=>{r&&(await F1.write(r),o("URL Copied!",{variant:"success"}))};return I.jsx(S0,{disableAutoFocus:!0,...t,children:I.jsxs(Ts,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[I.jsx(wa,{sx:{position:"absolute",top:28,right:28},onClick:h=>{var g;return(g=e.onClose)==null?void 0:g.call(e,h,"backdropClick")},children:I.jsx(JI,{})}),I.jsxs(lr,{gap:1,children:[I.jsx(Sr,{variant:"subtitle1",children:"Share Link"}),I.jsx(kd,{children:I.jsx(ek,{defaultValues:{expiredString:mv[0],role:Object.values(m9)[0]},onSuccess:l,children:I.jsxs(lr,{gap:2,children:[I.jsx(o9,{label:"Role",name:"role",options:Object.values(m9).map(h=>({id:h,label:h})),size:"small",sx:{width:1},variant:"filled"}),I.jsx(o9,{label:"Expired Date",name:"expiredString",options:mv.map(h=>({id:h,label:h})),size:"small",sx:{width:1},variant:"filled"}),I.jsx(Qs,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&I.jsxs(lr,{direction:"row",alignItems:"center",gap:2,children:[I.jsx(Sr,{variant:"body1",width:1,noWrap:!0,children:r}),I.jsx(wg,{title:"Copy URL",children:I.jsx(wa,{onClick:u,children:I.jsx(jI,{})})})]})]})]})})}function e2t(){const[e,t]=N.useState(!1),n=()=>{t(r=>!r)};return I.jsxs(I.Fragment,{children:[I.jsx(wa,{onClick:n,color:"inherit",children:I.jsx(mye,{})}),I.jsx(JEt,{open:e,onClose:n})]})}var MQ={},t2t=ca;Object.defineProperty(MQ,"__esModule",{value:!0});var gye=MQ.default=void 0,n2t=t2t(da()),r2t=I;gye=MQ.default=(0,n2t.default)((0,r2t.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");function i2t(){const e=Du(),t=Wf(),n=pi(AO),r=pi(mT),[i,{set:a,push:s,removeAt:o,clear:l,filter:u}]=$ft([]),[c,f]=N.useState(null);N.useEffect(()=>{n.shareRole==="READ"&&e(Q8("read"))},[e,n.shareRole]),N.useEffect(()=>{if(!n.doc)return;a(n.doc.getPresences());const x=n.doc.subscribe("others",k=>{var C,R;k.type==="watched"&&a(((R=(C=n.doc)==null?void 0:C.getPresences)==null?void 0:R.call(C))??[]),k.type==="unwatched"&&u(A=>A.clientID!==k.value.clientID)});return()=>{x(),l()}},[n.doc,l,s,o,a,u]);const h=x=>{x&&e(Q8(x))},g=()=>{var x;t(`/${(x=r.data)==null?void 0:x.slug}`)},b=x=>{f(x.currentTarget)},S=()=>{f(null)},w=!!c,E=i.slice(3);return I.jsx(koe,{position:"static",sx:{zIndex:100},children:I.jsx(Ole,{children:I.jsxs(lr,{width:"100%",direction:"row",justifyContent:"space-between",children:[I.jsxs(lr,{direction:"row",spacing:1,alignItems:"center",children:[!n.shareRole&&I.jsx(wg,{title:"Back to Previous Page",children:I.jsx(wa,{color:"inherit",onClick:g,children:I.jsx(gye,{})})}),I.jsx(Ts,{children:n.shareRole!=="READ"&&I.jsxs(xLe,{value:n.mode,exclusive:!0,onChange:(x,k)=>h(k),size:"small",children:[I.jsx(EN,{value:"edit","aria-label":"edit",children:I.jsx(wg,{title:"Edit Mode",children:I.jsx(hye,{})})}),I.jsx(EN,{value:"both","aria-label":"both",children:I.jsx(wg,{title:"Both Mode",children:I.jsx(pye,{})})}),I.jsx(EN,{value:"read","aria-label":"read",children:I.jsx(wg,{title:"Read Mode",children:I.jsx(WW,{})})})]})})]}),I.jsxs(lr,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(nIe,{max:4,onClick:b,children:i==null?void 0:i.map(x=>I.jsx(wg,{title:x.presence.name,children:I.jsx(q_,{alt:x.presence.name,sx:{bgcolor:x.presence.color},children:x.presence.name[0]})},x.clientID))}),I.jsx(sT,{open:w,anchorEl:c,onClose:S,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:I.jsxs(Ts,{sx:{padding:2},children:[I.jsx(Sr,{variant:"subtitle2",children:"Additional Users"}),I.jsx(gF,{children:E.map(x=>I.jsxs(Y_,{sx:{paddingY:.5},children:[I.jsx(bPe,{children:I.jsx(q_,{sx:{bgcolor:x.presence.color,width:24,height:24,fontSize:12},children:x.presence.name[0]})}),I.jsx(np,{primary:x.presence.name,primaryTypographyProps:{variant:"body2"}})]},x.clientID))})]})}),!n.shareRole&&I.jsx(e2t,{}),I.jsx(YEt,{})]})]})})})}function a2t(){return I.jsxs(ks,{sx:{flexGrow:1},height:"100vh",children:[I.jsx(i2t,{}),I.jsx(CF,{})]})}const s2t=e=>["documents","share",e],o2t=e=>{const t=Du(),n=RO({queryKey:s2t(e||""),enabled:!!e,queryFn:async()=>(await Er.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return N.useEffect(()=>(n.data&&t(u3(n.data)),()=>{t(u3(null))}),[t,n.data]),n};function l2t(){const e=Du(),t=w0(),[n]=AF(),r=N.useMemo(()=>n.get("token"),[n]),{data:i}=o2t(r),{doc:a,client:s}=Nge(i==null?void 0:i.yorkieDocumentId,"Anonymous");return N.useEffect(()=>{i!=null&&i.role&&(e(DBe(i.role)),i.role==="READ"&&e(Q8("read")))},[e,i==null?void 0:i.role]),N.useEffect(()=>{if(!(!a||!s))return e(i3(a)),e(a3(s)),()=>{e(i3(null)),e(a3(null))}},[e,s,a]),r?I.jsx(ks,{height:"calc(100% - 64px)",children:I.jsx(xge,{})}):I.jsx(kF,{to:"/",state:{from:t},replace:!0})}const u2t=e=>["workspaces",e,"users"],c2t=e=>WF({queryKey:u2t(e||""),queryFn:async({pageParam:t})=>(await Er.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0});function d2t(e){var c;const{open:t,onClose:n}=e,r=pi(mT),{mutateAsync:i}=kUe(((c=r.data)==null?void 0:c.id)||""),{enqueueSnackbar:a}=XI(),[s,o]=N.useState(null),l=async f=>{let h;if(f.expiredString===mv[0])h=null;else{const[b,S]=f.expiredString.split(" ");h=un().add(Number(b),S).toDate()}const{invitationToken:g}=await i({expiredAt:h});o(`${window.location.origin}/join/${g}`)},u=async()=>{s&&(await F1.write(s),a("URL Copied!",{variant:"success"}))};return I.jsx(S0,{open:t,disableAutoFocus:!0,onClose:n,children:I.jsxs(Ts,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:538},children:[I.jsx(wa,{sx:{position:"absolute",top:28,right:28},onClick:n,children:I.jsx(JI,{})}),I.jsxs(lr,{gap:4,children:[I.jsxs(lr,{children:[I.jsx(Sr,{variant:"h5",fontWeight:"bold",children:"Add Members"}),I.jsx(Sr,{children:"Generate and share the link."})]}),I.jsx(lr,{gap:1,children:I.jsx(kd,{children:I.jsx(ek,{defaultValues:{expiredString:mv[0]},onSuccess:l,children:I.jsxs(lr,{gap:2,children:[I.jsx(o9,{label:"Expired Date",name:"expiredString",options:mv.map(f=>({id:f,label:f})),size:"small",sx:{width:1}}),I.jsx(Qs,{type:"submit",variant:"contained",children:"Generate"})]})})})}),I.jsxs(lr,{gap:1,children:[I.jsx(Sr,{variant:"h6",fontWeight:"bold",children:"Invite Link"}),I.jsx(ks,{height:40,children:s?I.jsxs(lr,{direction:"row",alignItems:"center",gap:2,children:[I.jsx(Sr,{variant:"body1",children:s}),I.jsx(wg,{title:"Copy URL",children:I.jsx(wa,{onClick:u,children:I.jsx(jI,{})})})]}):I.jsx(Sr,{mx:"auto",children:"No link has been generated."})})]})]})]})})}function f2t(){const e=x0(),{data:t}=qF(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=c2t(t==null?void 0:t.id),[a,s]=N.useState(!1),o=N.useMemo(()=>(n==null?void 0:n.pages.reduce((u,c)=>u.concat(c.workspaceUsers),[]))??[],[n==null?void 0:n.pages]),l=()=>{s(u=>!u)};return I.jsxs(Goe,{maxWidth:"lg",children:[I.jsxs(lr,{gap:4,children:[I.jsxs(lr,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[I.jsxs(Sr,{variant:"h5",fontWeight:"bold",children:[t==null?void 0:t.title," ",I.jsx(Sr,{component:"span",variant:"inherit",color:"primary",children:n==null?void 0:n.pages[0].workspaceUsers.length})]}),I.jsx(Qs,{variant:"contained",startIcon:I.jsx(KI,{}),onClick:l,children:"Add Members"})]}),I.jsxs(dMe,{component:ks,children:[I.jsx(c1,{}),I.jsx(Sx,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:I.jsx(ks,{className:"loader",children:I.jsx(yp,{size:"sm"})},0),useWindow:!1,style:{width:"100%"},children:I.jsxs(V8e,{children:[I.jsx(yMe,{children:I.jsxs(NZ,{children:[I.jsx(qb,{children:"Name"}),I.jsx(qb,{children:"Role"}),I.jsx(qb,{})]})}),I.jsx(K8e,{style:{maxHeight:"100%",overflow:"auto"},children:o.map(u=>I.jsxs(NZ,{sx:{width:"100%"},children:[I.jsx(qb,{component:"th",scope:"row",children:u.nickname}),I.jsx(qb,{children:"-"}),I.jsx(qb,{children:"-"})]},u.id))})]})})]})]}),I.jsx(d2t,{open:a,onClose:l})]})}const h2t=[{path:"",accessType:2,element:I.jsx(jbt,{}),children:[{path:"",element:I.jsx(jEt,{})}]},{path:":workspaceSlug",accessType:1,element:I.jsx(Iyt,{}),children:[{path:"",element:I.jsx($Et,{})},{path:"member",element:I.jsx(f2t,{})}]},{path:":workspaceSlug",element:I.jsx(a2t,{}),children:[{path:":documentId",accessType:1,element:I.jsx(zbt,{})},{path:":documentId/share",accessType:0,element:I.jsx(l2t,{})}]},{path:"auth/callback",accessType:2,element:I.jsx(Hbt,{})},{path:"join/:invitationToken",accessType:1,element:I.jsx(BEt,{})}],p2t=e=>{const t=n=>(n.accessType===1?n.element=I.jsx(Nyt,{children:n.element}):n.accessType===2&&(n.element=I.jsx(Dyt,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=I.jsx(FEt,{}),n))},m2t=p2t(h2t),bye=e=>["users",e],g2t=()=>{const e=Du(),t=pi(qT);t.accessToken&&(Er.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=RO({queryKey:bye(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await Er.get("/users")).data});return N.useEffect(()=>{n.isSuccess?e(q8(n.data)):n.isError&&(e(bW(null)),e(q8(null)),Er.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},b2t=()=>{const e=pi(qT),t=pT();return T0({mutationFn:async n=>(await Er.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:bye(e.accessToken||"")})}})};function y2t(e){const[t,n]=N.useState(""),[r,i]=N.useState(""),{data:a}=bbe(r),{mutateAsync:s}=b2t(),o=N.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);yW(()=>{i(t)},500,[t]);const l=c=>{n(c.target.value)},u=async c=>{await s(c)};return I.jsx(S0,{disableAutoFocus:!0,...e,children:I.jsx(Ts,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:I.jsxs(lr,{gap:4,children:[I.jsx(Sr,{variant:"h5",children:"Create Your Nickname"}),I.jsx(kd,{children:I.jsx(ek,{defaultValues:{nickname:""},onSuccess:u,children:I.jsxs(lr,{gap:4,alignItems:"flex-end",children:[I.jsx(ZI,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),I.jsx(Qs,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function v2t(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=g2t(),a=N.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return I.jsx(lQ.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?I.jsx(y2t,{open:!0}):t})}function O2t(){const{enqueueSnackbar:e}=XI();return N.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}const yye=Object.prototype.toString;function vye(e){switch(yye.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return pp(e,Error)}}function tS(e,t){return yye.call(e)===`[object ${t}]`}function LQ(e){return tS(e,"ErrorEvent")}function xre(e){return tS(e,"DOMError")}function S2t(e){return tS(e,"DOMException")}function Uf(e){return tS(e,"String")}function $Q(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function FQ(e){return e===null||$Q(e)||typeof e!="object"&&typeof e!="function"}function fO(e){return tS(e,"Object")}function d6(e){return typeof Event<"u"&&pp(e,Event)}function E2t(e){return typeof Element<"u"&&pp(e,Element)}function w2t(e){return tS(e,"RegExp")}function f6(e){return!!(e&&e.then&&typeof e.then=="function")}function x2t(e){return fO(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Oye(e){return typeof e=="number"&&e!==e}function pp(e,t){try{return e instanceof t}catch{return!1}}function Sye(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function gv(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Tre(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rT2t(e,r,n))}function k2t(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!pp(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=C2t(g9(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function g9(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(pp(r[i],Error)){kre(s,o);const u=e(t,r[i]),c=l.length;Cre(u,i,c,o),l=g9(e,t,n,r[i],i,[u,...l],u,c)}return Array.isArray(r.errors)&&r.errors.forEach((u,c)=>{if(pp(u,Error)){kre(s,o);const f=e(t,u),h=l.length;Cre(f,`errors[${c}]`,h,o),l=g9(e,t,n,u,i,[f,...l],f,h)}}),l}function kre(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Cre(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function C2t(e,t){return e.map(n=>(n.value&&(n.value=gv(n.value,t)),n))}function XA(e){return e&&e.Math==Math?e:void 0}const si=typeof globalThis=="object"&&XA(globalThis)||typeof window=="object"&&XA(window)||typeof self=="object"&&XA(self)||typeof global=="object"&&XA(global)||function(){return this}()||{};function BQ(){return si}function Eye(e,t,n){const r=n||si,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const bv=BQ(),A2t=80;function kx(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||A2t;for(;n&&a++1&&s+i.length*l+u.length>=f));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function _2t(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(bv.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Uf(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,D2t="Sentry Logger ",b9=["debug","info","warn","error","log","assert","trace"],b5={};function h6(e){if(!("console"in si))return e();const t=si.console,n={},r=Object.keys(b5);r.forEach(i=>{const a=b5[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function N2t(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return nS?b9.forEach(n=>{t[n]=(...r)=>{e&&h6(()=>{si.console[n](`${D2t}[${n}]:`,...r)})}}):b9.forEach(n=>{t[n]=()=>{}}),t}const Pt=N2t(),P2t=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function M2t(e){return e==="http"||e==="https"}function sk(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function L2t(e){const t=P2t.exec(e);if(!t){h6(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",u=o;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return xye({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function xye(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function $2t(e){if(!nS)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Pt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?M2t(r)?t&&isNaN(parseInt(t,10))?(Pt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Pt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Pt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function F2t(e){const t=typeof e=="string"?L2t(e):xye(e);if(!(!t||!$2t(t)))return t}class Of extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Gs(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&Tye(i,r),e[t]=i}function Cx(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{nS&&Pt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Tye(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Cx(e,"__sentry_original__",t)}catch{}}function UQ(e){return e.__sentry_original__}function B2t(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function kye(e){if(vye(e))return{message:e.message,name:e.name,stack:e.stack,..._re(e)};if(d6(e)){const t={type:e.type,target:Are(e.target),currentTarget:Are(e.currentTarget),..._re(e)};return typeof CustomEvent<"u"&&pp(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Are(e){try{return E2t(e)?kx(e):Object.prototype.toString.call(e)}catch{return""}}function _re(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function U2t(e,t=40){const n=Object.keys(kye(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return gv(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:gv(i,t)}return""}function gc(e){return y9(e,new Map)}function y9(e,t){if(z2t(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=y9(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(y9(i,t))}),r}return e}function z2t(e){if(!fO(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Cye=50,Rre=/\(error: (.*)\)/,Ire=/captureMessage|captureException/;function Aye(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` +`);for(let s=r;s1024)continue;const l=Rre.test(o)?o.replace(Rre,"$1"):o;if(!l.match(/\S*Error: /)){for(const u of t){const c=u(l);if(c){i.push(c);break}}if(i.length>=Cye)break}}return H2t(i)}}function j2t(e){return Array.isArray(e)?Aye(...e):e}function H2t(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Ire.test(t[t.length-1].function||"")&&(t.pop(),Ire.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Cye).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const v7="";function mp(e){try{return!e||typeof e!="function"?v7:e.name||v7}catch{return v7}}const i_={},Dre={};function U1(e,t){i_[e]=i_[e]||[],i_[e].push(t)}function z1(e,t){Dre[e]||(t(),Dre[e]=!0)}function bd(e,t){const n=e&&i_[e];if(n)for(const r of n)try{r(t)}catch(i){nS&&Pt.error(`Error while triggering instrumentation handler. Type: ${e} -Name: ${pp(r)} -Error:`,i)}}function F2t(e){const t="console";U1(t,e),z1(t,B2t)}function B2t(){"console"in si&&g9.forEach(function(e){e in si.console&&qs(si.console,e,function(t){return p5[e]=t,function(...n){bd("console",{args:n,level:e});const i=p5[e];i&&i.apply(si.console,n)}})})}function La(){const e=si,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function _ye(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function mm(e){const{message:t,event_id:n}=e;if(t)return t;const r=_ye(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function y9(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function Ax(e,t){const n=_ye(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function Dre(e){if(e&&e.__sentry_captured__)return!0;try{Cx(e,"__sentry_captured__",!0)}catch{}return!1}function Rye(e){return Array.isArray(e)?e:[e]}const gy=si,U2t=1e3;let Nre,v9,O9;function z2t(e){const t="dom";U1(t,e),z1(t,j2t)}function j2t(){if(!gy.document)return;const e=bd.bind(null,"dom"),t=Pre(e,!0);gy.document.addEventListener("click",t,!1),gy.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=gy[n]&&gy[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(qs(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},c=u[a]=u[a]||{refCount:0};if(!c.handler){const f=Pre(e);c.handler=f,i.call(this,a,f,o)}c.refCount++}catch{}return i.call(this,a,s,o)}}),qs(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},c=u[a];c&&(c.refCount--,c.refCount<=0&&(i.call(this,a,c.handler,o),c.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function H2t(e){if(e.type!==v9)return!1;try{if(!e.target||e.target._sentryId!==O9)return!1}catch{}return!0}function V2t(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Pre(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=W2t(n);if(V2t(n.type,r))return;Cx(n,"_sentryCaptured",!0),r&&!r._sentryId&&Cx(r,"_sentryId",La());const i=n.type==="keypress"?"input":n.type;H2t(n)||(e({event:n,name:i,global:t}),v9=n.type,O9=r?r._sentryId:void 0),clearTimeout(Nre),Nre=gy.setTimeout(()=>{O9=void 0,v9=void 0},U2t)}}function W2t(e){try{return e.target}catch{return null}}const S9=FQ();function Iye(){if(!("fetch"in S9))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function E9(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Q2t(){if(typeof EdgeRuntime=="string")return!0;if(!Iye())return!1;if(E9(S9.fetch))return!0;let e=!1;const t=S9.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=E9(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){nS&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Dye(e){const t="fetch";U1(t,e),z1(t,q2t)}function q2t(){Q2t()&&qs(si,"fetch",function(e){return function(...t){const{method:n,url:r}=G2t(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return bd("fetch",{...i}),e.apply(si,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return bd("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw bd("fetch",s),a})}})}function w9(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Mre(e){return typeof e=="string"?e:e?w9(e,"url")?e.url:e.toString?e.toString():"":""}function G2t(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Mre(n),method:w9(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Mre(t),method:w9(t,"method")?String(t.method).toUpperCase():"GET"}}let XA=null;function Nye(e){const t="error";U1(t,e),z1(t,Y2t)}function Y2t(){XA=si.onerror,si.onerror=function(e,t,n,r,i){return bd("error",{column:r,error:i,line:n,msg:e,url:t}),XA&&!XA.__SENTRY_LOADER__?XA.apply(this,arguments):!1},si.onerror.__SENTRY_INSTRUMENTED__=!0}let KA=null;function Pye(e){const t="unhandledrejection";U1(t,e),z1(t,Z2t)}function Z2t(){KA=si.onunhandledrejection,si.onunhandledrejection=function(e){return bd("unhandledrejection",e),KA&&!KA.__SENTRY_LOADER__?KA.apply(this,arguments):!0},si.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const JA=FQ();function X2t(){const e=JA.chrome,t=e&&e.app&&e.app.runtime,n="history"in JA&&!!JA.history.pushState&&!!JA.history.replaceState;return!t&&n}const VE=si;let e4;function UQ(e){const t="history";U1(t,e),z1(t,K2t)}function K2t(){if(!X2t())return;const e=VE.onpopstate;VE.onpopstate=function(...n){const r=VE.location.href,i=e4;if(e4=r,bd("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=e4,s=String(i);e4=s,bd("history",{from:a,to:s})}return n.apply(this,r)}}qs(VE.history,"pushState",t),qs(VE.history,"replaceState",t)}const J2t=si,Uy="__sentry_xhr_v3__";function Mye(e){const t="xhr";U1(t,e),z1(t,ewt)}function ewt(){if(!J2t.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;qs(e,"open",function(t){return function(...n){const r=Date.now(),i=Uf(n[0])?n[0].toUpperCase():void 0,a=twt(n[1]);if(!i||!a)return t.apply(this,n);this[Uy]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[Uy];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};bd("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?qs(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),qs(this,"setRequestHeader",function(o){return function(...l){const[u,c]=l,f=this[Uy];return f&&Uf(u)&&Uf(c)&&(f.request_headers[u.toLowerCase()]=c),o.apply(this,l)}}),t.apply(this,n)}}),qs(e,"send",function(t){return function(...n){const r=this[Uy];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return bd("xhr",i),t.apply(this,n)}})}function twt(e){if(Uf(e))return e;try{return e.toString()}catch{}}function nwt(){return"npm"}function rwt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?Lye(e,t-1,n):r}function x9(e,t,n=1/0,r=1/0,i=rwt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Oye(t))return t;const o=iwt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return x9("",g,l-1,r,i)}catch{}const c=Array.isArray(t)?[]:{};let f=0;const h=kye(t);for(const g in h){if(!Object.prototype.hasOwnProperty.call(h,g))continue;if(f>=r){c[g]="[MaxProperties ~]";break}const b=h[g];c[g]=x9(g,b,l-1,r,i),f++}return s(t),c}function iwt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Sye(t))return"[VueViewModel]";if(y2t(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${pp(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=awt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function awt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function swt(e){return~-encodeURI(e).split(/%..|./).length}function owt(e){return swt(JSON.stringify(e))}var Ih;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ih||(Ih={}));function hO(e){return new hu(t=>{t(e)})}function zQ(e){return new hu((t,n)=>{n(e)})}class hu{constructor(t){hu.prototype.__init.call(this),hu.prototype.__init2.call(this),hu.prototype.__init3.call(this),hu.prototype.__init4.call(this),this._state=Ih.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new hu((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new hu((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Ih.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Ih.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Ih.PENDING){if(c6(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ih.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ih.RESOLVED&&n[1](this._value),this._state===Ih.REJECTED&&n[2](this._value),n[0]=!0)})}}}function lwt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new hu((o,l)=>{let u=t.length;if(!u)return o(!0);const c=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(f=>{hO(f).then(()=>{--u||(clearTimeout(c),o(!0))},l)})})}return{$:t,add:i,drain:a}}function i_(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const uwt=["fatal","error","warning","log","info","debug"];function cwt(e){return e==="warn"?"warning":uwt.includes(e)?e:"log"}const $ye=1e3;function sk(){return Date.now()/$ye}function dwt(){const{performance:e}=si;if(!e||!e.now)return sk;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/$ye}const ok=dwt(),Hf=(()=>{const{performance:e}=si;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=Lre(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=Lre(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(fwt)){const s=i.slice(Fye.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function Bye(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Fye}${r}`]=i),n),{});return mwt(t)}function Lre(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function mwt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>hwt?(nS&&Pt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const gwt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function bwt(e){if(!e)return;const t=e.match(gwt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function ywt(e,t){const n=bwt(e),r=pwt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||La(),parentSpanId:a||La().substring(16),spanId:La().substring(16),sampled:s,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||La(),spanId:La().substring(16)}}}function jQ(e=La(),t=La().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function rS(e,t=[]){return[e,t]}function vwt(e,t){const[n,r]=e;return[n,[...r,t]]}function $re(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function k9(e,t){return(t||new TextEncoder).encode(e)}function Owt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[k9(i,t),s]:i.push(typeof s=="string"?k9(s,t):s)}for(const s of r){const[o,l]=s;if(a(` +Name: ${mp(r)} +Error:`,i)}}function V2t(e){const t="console";U1(t,e),z1(t,W2t)}function W2t(){"console"in si&&b9.forEach(function(e){e in si.console&&Gs(si.console,e,function(t){return b5[e]=t,function(...n){bd("console",{args:n,level:e});const i=b5[e];i&&i.apply(si.console,n)}})})}function La(){const e=si,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function _ye(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function gm(e){const{message:t,event_id:n}=e;if(t)return t;const r=_ye(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function v9(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function Ax(e,t){const n=_ye(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function Nre(e){if(e&&e.__sentry_captured__)return!0;try{Cx(e,"__sentry_captured__",!0)}catch{}return!1}function Rye(e){return Array.isArray(e)?e:[e]}const gy=si,Q2t=1e3;let Pre,O9,S9;function q2t(e){const t="dom";U1(t,e),z1(t,G2t)}function G2t(){if(!gy.document)return;const e=bd.bind(null,"dom"),t=Mre(e,!0);gy.document.addEventListener("click",t,!1),gy.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=gy[n]&&gy[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Gs(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},c=u[a]=u[a]||{refCount:0};if(!c.handler){const f=Mre(e);c.handler=f,i.call(this,a,f,o)}c.refCount++}catch{}return i.call(this,a,s,o)}}),Gs(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},c=u[a];c&&(c.refCount--,c.refCount<=0&&(i.call(this,a,c.handler,o),c.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function Y2t(e){if(e.type!==O9)return!1;try{if(!e.target||e.target._sentryId!==S9)return!1}catch{}return!0}function Z2t(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Mre(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=X2t(n);if(Z2t(n.type,r))return;Cx(n,"_sentryCaptured",!0),r&&!r._sentryId&&Cx(r,"_sentryId",La());const i=n.type==="keypress"?"input":n.type;Y2t(n)||(e({event:n,name:i,global:t}),O9=n.type,S9=r?r._sentryId:void 0),clearTimeout(Pre),Pre=gy.setTimeout(()=>{S9=void 0,O9=void 0},Q2t)}}function X2t(e){try{return e.target}catch{return null}}const E9=BQ();function Iye(){if(!("fetch"in E9))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function w9(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function K2t(){if(typeof EdgeRuntime=="string")return!0;if(!Iye())return!1;if(w9(E9.fetch))return!0;let e=!1;const t=E9.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=w9(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){nS&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Dye(e){const t="fetch";U1(t,e),z1(t,J2t)}function J2t(){K2t()&&Gs(si,"fetch",function(e){return function(...t){const{method:n,url:r}=ewt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return bd("fetch",{...i}),e.apply(si,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return bd("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw bd("fetch",s),a})}})}function x9(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Lre(e){return typeof e=="string"?e:e?x9(e,"url")?e.url:e.toString?e.toString():"":""}function ewt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Lre(n),method:x9(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Lre(t),method:x9(t,"method")?String(t.method).toUpperCase():"GET"}}let KA=null;function Nye(e){const t="error";U1(t,e),z1(t,twt)}function twt(){KA=si.onerror,si.onerror=function(e,t,n,r,i){return bd("error",{column:r,error:i,line:n,msg:e,url:t}),KA&&!KA.__SENTRY_LOADER__?KA.apply(this,arguments):!1},si.onerror.__SENTRY_INSTRUMENTED__=!0}let JA=null;function Pye(e){const t="unhandledrejection";U1(t,e),z1(t,nwt)}function nwt(){JA=si.onunhandledrejection,si.onunhandledrejection=function(e){return bd("unhandledrejection",e),JA&&!JA.__SENTRY_LOADER__?JA.apply(this,arguments):!0},si.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const e4=BQ();function rwt(){const e=e4.chrome,t=e&&e.app&&e.app.runtime,n="history"in e4&&!!e4.history.pushState&&!!e4.history.replaceState;return!t&&n}const VE=si;let t4;function zQ(e){const t="history";U1(t,e),z1(t,iwt)}function iwt(){if(!rwt())return;const e=VE.onpopstate;VE.onpopstate=function(...n){const r=VE.location.href,i=t4;if(t4=r,bd("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=t4,s=String(i);t4=s,bd("history",{from:a,to:s})}return n.apply(this,r)}}Gs(VE.history,"pushState",t),Gs(VE.history,"replaceState",t)}const awt=si,Uy="__sentry_xhr_v3__";function Mye(e){const t="xhr";U1(t,e),z1(t,swt)}function swt(){if(!awt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Gs(e,"open",function(t){return function(...n){const r=Date.now(),i=Uf(n[0])?n[0].toUpperCase():void 0,a=owt(n[1]);if(!i||!a)return t.apply(this,n);this[Uy]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[Uy];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};bd("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Gs(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),Gs(this,"setRequestHeader",function(o){return function(...l){const[u,c]=l,f=this[Uy];return f&&Uf(u)&&Uf(c)&&(f.request_headers[u.toLowerCase()]=c),o.apply(this,l)}}),t.apply(this,n)}}),Gs(e,"send",function(t){return function(...n){const r=this[Uy];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return bd("xhr",i),t.apply(this,n)}})}function owt(e){if(Uf(e))return e;try{return e.toString()}catch{}}function lwt(){return"npm"}function uwt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?Lye(e,t-1,n):r}function T9(e,t,n=1/0,r=1/0,i=uwt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Oye(t))return t;const o=cwt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return T9("",g,l-1,r,i)}catch{}const c=Array.isArray(t)?[]:{};let f=0;const h=kye(t);for(const g in h){if(!Object.prototype.hasOwnProperty.call(h,g))continue;if(f>=r){c[g]="[MaxProperties ~]";break}const b=h[g];c[g]=T9(g,b,l-1,r,i),f++}return s(t),c}function cwt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Sye(t))return"[VueViewModel]";if(x2t(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${mp(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=dwt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function dwt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function fwt(e){return~-encodeURI(e).split(/%..|./).length}function hwt(e){return fwt(JSON.stringify(e))}var Ih;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ih||(Ih={}));function hO(e){return new hu(t=>{t(e)})}function jQ(e){return new hu((t,n)=>{n(e)})}class hu{constructor(t){hu.prototype.__init.call(this),hu.prototype.__init2.call(this),hu.prototype.__init3.call(this),hu.prototype.__init4.call(this),this._state=Ih.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new hu((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new hu((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Ih.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Ih.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Ih.PENDING){if(f6(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ih.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ih.RESOLVED&&n[1](this._value),this._state===Ih.REJECTED&&n[2](this._value),n[0]=!0)})}}}function pwt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new hu((o,l)=>{let u=t.length;if(!u)return o(!0);const c=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(f=>{hO(f).then(()=>{--u||(clearTimeout(c),o(!0))},l)})})}return{$:t,add:i,drain:a}}function a_(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const mwt=["fatal","error","warning","log","info","debug"];function gwt(e){return e==="warn"?"warning":mwt.includes(e)?e:"log"}const $ye=1e3;function ok(){return Date.now()/$ye}function bwt(){const{performance:e}=si;if(!e||!e.now)return ok;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/$ye}const lk=bwt(),Hf=(()=>{const{performance:e}=si;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=$re(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=$re(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(ywt)){const s=i.slice(Fye.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function Bye(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Fye}${r}`]=i),n),{});return Swt(t)}function $re(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function Swt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>vwt?(nS&&Pt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const Ewt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function wwt(e){if(!e)return;const t=e.match(Ewt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function xwt(e,t){const n=wwt(e),r=Owt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||La(),parentSpanId:a||La().substring(16),spanId:La().substring(16),sampled:s,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||La(),spanId:La().substring(16)}}}function HQ(e=La(),t=La().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function rS(e,t=[]){return[e,t]}function Twt(e,t){const[n,r]=e;return[n,[...r,t]]}function Fre(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function C9(e,t){return(t||new TextEncoder).encode(e)}function kwt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[C9(i,t),s]:i.push(typeof s=="string"?C9(s,t):s)}for(const s of r){const[o,l]=s;if(a(` ${JSON.stringify(o)} -`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(um(l))}a(u)}}return typeof i=="string"?i:Swt(i)}function Swt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Ewt(e,t){const n=typeof e.data=="string"?k9(e.data,t):e.data;return[gc({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const wwt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Fre(e){return wwt[e]}function Uye(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function xwt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ak(r)},...i&&{trace:gc({...i})}}}function Twt(e,t,n){const r=[{type:"client_report"},{timestamp:n||sk(),discarded_events:e}];return rS(t?{dsn:t}:{},[r])}const kwt=60*1e3;function Cwt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?kwt:r-t}function Awt(e,t){return e[t]||e.all||0}function _wt(e,t,n=Date.now()){return Awt(e,t)>n}function Rwt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u]=o.split(":",2),c=parseInt(l,10),f=(isNaN(c)?60:c)*1e3;if(!u)i.all=r+f;else for(const h of u.split(";"))i[h]=r+f}else s?i.all=r+Cwt(s,r):t===429&&(i.all=r+60*1e3);return i}const zn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,f6="production";function HQ(){return Eye("globalEventProcessors",()=>[])}function Iwt(e){HQ().push(e)}function m5(e,t,n,r=0){return new hu((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);zn&&s.id&&o===null&&Pt.log(`Event processor "${s.id}" dropped event`),c6(o)?o.then(l=>m5(e,l,n,r+1).then(i)).then(null,a):m5(e,o,n,r+1).then(i).then(null,a)}})}function zye(e){const t=ok(),n={sid:La(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Dwt(n)};return e&&S1(n,e),n}function S1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ok(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:La()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function jye(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),S1(e,n)}function Dwt(e){return gc({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Nwt=0,Hye=1;function VQ(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=Zo(e);return gc({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function h6(e){const{traceId:t,spanId:n}=e.spanContext(),r=Vye(e);return jQ(t,n,r)}function p6(e){return typeof e=="number"?Bre(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Bre(e.getTime()):ok()}function Bre(e){return e>9999999999?e/1e3:e}function Zo(e){return Pwt(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Pwt(e){return typeof e.getSpanJSON=="function"}function Vye(e){const{traceFlags:t}=e.spanContext();return!!(t&Hye)}function Mwt(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||La(),timestamp:t.timestamp||sk()},u=n.integrations||e.integrations.map(E=>E.name);Lwt(l,e),Bwt(l,u),t.type===void 0&&$wt(l,e.stackParser);const c=zwt(r,n.captureContext);n.mechanism&&Ax(l,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],h=ext().getScopeData();if(a){const E=a.getScopeData();Hre(h,E)}if(c){const E=c.getScopeData();Hre(h,E)}const g=[...n.attachments||[],...h.attachments];g.length&&(n.attachments=g),Gye(l,h);const b=[...f,...HQ(),...h.eventProcessors];return m5(b,l,n).then(E=>(E&&Fwt(E),typeof s=="number"&&s>0?Uwt(E,s,o):E))}function Lwt(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:f6),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=gv(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=gv(s.value,a));const o=e.request;o&&o.url&&(o.url=gv(o.url,a))}const Ure=new WeakMap;function $wt(e,t){const n=si._sentryDebugIds;if(!n)return;let r;const i=Ure.get(t);i?r=i:(r=new Map,Ure.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const u=r.get(o);u?l=u:(l=t(o),r.set(o,l));for(let c=l.length-1;c>=0;c--){const f=l[c];if(f.filename){s[f.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function Fwt(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Bwt(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Uwt(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:um(i.data,t,n)}}))},...e.user&&{user:um(e.user,t,n)},...e.contexts&&{contexts:um(e.contexts,t,n)},...e.extra&&{extra:um(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=um(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=Zo(i).data;return a&&(i.data=um(a,t,n)),i})),r}function zwt(e,t){if(!t)return e;const n=e?e.clone():new _f;return n.update(t),n}function jwt(e){if(e)return Hwt(e)?{captureContext:e}:Wwt(e)?{captureContext:e}:e}function Hwt(e){return e instanceof _f||typeof e=="function"}const Vwt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Wwt(e){return Object.keys(e).some(t=>Vwt.includes(t))}function Qwt(e,t){return $c().captureException(e,jwt(t))}function Wye(e,t){return $c().captureEvent(e,t)}function E1(e,t){$c().addBreadcrumb(e,t)}function qwt(...e){const t=$c();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function eo(){return $c().getClient()}function Tp(){return $c().getScope()}function zre(e){const t=eo(),n=j1(),r=Tp(),{release:i,environment:a=f6}=t&&t.getOptions()||{},{userAgent:s}=si.navigator||{},o=zye({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&S1(l,{status:"exited"}),Qye(),n.setSession(o),r.setSession(o),o}function Qye(){const e=j1(),t=Tp(),n=t.getSession()||e.getSession();n&&jye(n),qye(),e.setSession(),t.setSession()}function qye(){const e=j1(),t=Tp(),n=eo(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function jre(e=!1){if(e){Qye();return}qye()}function g5(e){return e.transaction}function m6(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=gc({environment:r.environment||f6,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function _x(e){const t=eo();if(!t)return{};const n=m6(Zo(e).trace_id||"",t,Tp()),r=g5(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=Zo(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(Vye(r)),t.emit&&t.emit("createDsc",n),n}function Gye(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Gwt(e,t),r&&Xwt(e,r),Kwt(e,n),Ywt(e,i),Zwt(e,a)}function Hre(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:f,propagationContext:h,transactionName:g,span:b}=t;WE(e,"extra",n),WE(e,"tags",r),WE(e,"user",i),WE(e,"contexts",a),WE(e,"sdkProcessingMetadata",o),s&&(e.level=s),g&&(e.transactionName=g),b&&(e.span=b),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function WE(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Gwt(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=gc(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=gc(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const c=gc(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const f=gc(a);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function Ywt(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Zwt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Xwt(e,t){e.contexts={trace:VQ(t),...e.contexts};const n=g5(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:_x(t),...e.sdkProcessingMetadata};const r=Zo(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Kwt(e,t){e.fingerprint=e.fingerprint?Rye(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Jwt=100;let y7;class _f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Vre()}static clone(t){return t?t.clone():new _f}clone(){const t=new _f;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&S1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof _f?n:this}return t instanceof _f?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):fO(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Vre(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Jwt;if(r<=0)return this;const i={timestamp:sk(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:f,_transactionName:h,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:f,transactionName:h,span:g}}applyToEvent(t,n={},r=[]){Gye(t,this.getScopeData());const i=[...r,...HQ(),...this._eventProcessors];return m5(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:La();if(!this._client)return Pt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:La();if(!this._client)return Pt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Pt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function ext(){return y7||(y7=new _f),y7}function Vre(){return{traceId:La(),spanId:La().substring(16)}}const C9="7.99.0",Yye=parseFloat(C9),txt=100;class Zye{constructor(t,n,r,i=Yye){this._version=i;let a;n?a=n:(a=new _f,a.setClient(t));let s;r?s=r:(s=new _f,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:La(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:La(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=txt}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:sk(),...t},u=a?d6(()=>a(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Wre(this);try{t(this)}finally{Wre(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return zn&&Pt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return zn&&!r&&(this.getClient()?Pt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(cm(l))}a(u)}}return typeof i=="string"?i:Cwt(i)}function Cwt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Awt(e,t){const n=typeof e.data=="string"?C9(e.data,t):e.data;return[gc({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const _wt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Bre(e){return _wt[e]}function Uye(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Rwt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:sk(r)},...i&&{trace:gc({...i})}}}function Iwt(e,t,n){const r=[{type:"client_report"},{timestamp:n||ok(),discarded_events:e}];return rS(t?{dsn:t}:{},[r])}const Dwt=60*1e3;function Nwt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Dwt:r-t}function Pwt(e,t){return e[t]||e.all||0}function Mwt(e,t,n=Date.now()){return Pwt(e,t)>n}function Lwt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u]=o.split(":",2),c=parseInt(l,10),f=(isNaN(c)?60:c)*1e3;if(!u)i.all=r+f;else for(const h of u.split(";"))i[h]=r+f}else s?i.all=r+Nwt(s,r):t===429&&(i.all=r+60*1e3);return i}const zn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,p6="production";function VQ(){return Eye("globalEventProcessors",()=>[])}function $wt(e){VQ().push(e)}function y5(e,t,n,r=0){return new hu((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);zn&&s.id&&o===null&&Pt.log(`Event processor "${s.id}" dropped event`),f6(o)?o.then(l=>y5(e,l,n,r+1).then(i)).then(null,a):y5(e,o,n,r+1).then(i).then(null,a)}})}function zye(e){const t=lk(),n={sid:La(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Fwt(n)};return e&&S1(n,e),n}function S1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||lk(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:La()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function jye(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),S1(e,n)}function Fwt(e){return gc({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Bwt=0,Hye=1;function WQ(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=Zo(e);return gc({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function m6(e){const{traceId:t,spanId:n}=e.spanContext(),r=Vye(e);return HQ(t,n,r)}function g6(e){return typeof e=="number"?Ure(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ure(e.getTime()):lk()}function Ure(e){return e>9999999999?e/1e3:e}function Zo(e){return Uwt(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Uwt(e){return typeof e.getSpanJSON=="function"}function Vye(e){const{traceFlags:t}=e.spanContext();return!!(t&Hye)}function zwt(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||La(),timestamp:t.timestamp||ok()},u=n.integrations||e.integrations.map(w=>w.name);jwt(l,e),Wwt(l,u),t.type===void 0&&Hwt(l,e.stackParser);const c=qwt(r,n.captureContext);n.mechanism&&Ax(l,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],h=sxt().getScopeData();if(a){const w=a.getScopeData();Vre(h,w)}if(c){const w=c.getScopeData();Vre(h,w)}const g=[...n.attachments||[],...h.attachments];g.length&&(n.attachments=g),Gye(l,h);const b=[...f,...VQ(),...h.eventProcessors];return y5(b,l,n).then(w=>(w&&Vwt(w),typeof s=="number"&&s>0?Qwt(w,s,o):w))}function jwt(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:p6),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=gv(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=gv(s.value,a));const o=e.request;o&&o.url&&(o.url=gv(o.url,a))}const zre=new WeakMap;function Hwt(e,t){const n=si._sentryDebugIds;if(!n)return;let r;const i=zre.get(t);i?r=i:(r=new Map,zre.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const u=r.get(o);u?l=u:(l=t(o),r.set(o,l));for(let c=l.length-1;c>=0;c--){const f=l[c];if(f.filename){s[f.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function Vwt(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Wwt(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Qwt(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:cm(i.data,t,n)}}))},...e.user&&{user:cm(e.user,t,n)},...e.contexts&&{contexts:cm(e.contexts,t,n)},...e.extra&&{extra:cm(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=cm(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=Zo(i).data;return a&&(i.data=cm(a,t,n)),i})),r}function qwt(e,t){if(!t)return e;const n=e?e.clone():new _f;return n.update(t),n}function Gwt(e){if(e)return Ywt(e)?{captureContext:e}:Xwt(e)?{captureContext:e}:e}function Ywt(e){return e instanceof _f||typeof e=="function"}const Zwt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Xwt(e){return Object.keys(e).some(t=>Zwt.includes(t))}function Kwt(e,t){return Fc().captureException(e,Gwt(t))}function Wye(e,t){return Fc().captureEvent(e,t)}function E1(e,t){Fc().addBreadcrumb(e,t)}function Jwt(...e){const t=Fc();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function eo(){return Fc().getClient()}function kp(){return Fc().getScope()}function jre(e){const t=eo(),n=j1(),r=kp(),{release:i,environment:a=p6}=t&&t.getOptions()||{},{userAgent:s}=si.navigator||{},o=zye({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&S1(l,{status:"exited"}),Qye(),n.setSession(o),r.setSession(o),o}function Qye(){const e=j1(),t=kp(),n=t.getSession()||e.getSession();n&&jye(n),qye(),e.setSession(),t.setSession()}function qye(){const e=j1(),t=kp(),n=eo(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Hre(e=!1){if(e){Qye();return}qye()}function v5(e){return e.transaction}function b6(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=gc({environment:r.environment||p6,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function _x(e){const t=eo();if(!t)return{};const n=b6(Zo(e).trace_id||"",t,kp()),r=v5(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=Zo(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(Vye(r)),t.emit&&t.emit("createDsc",n),n}function Gye(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;ext(e,t),r&&rxt(e,r),ixt(e,n),txt(e,i),nxt(e,a)}function Vre(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:f,propagationContext:h,transactionName:g,span:b}=t;WE(e,"extra",n),WE(e,"tags",r),WE(e,"user",i),WE(e,"contexts",a),WE(e,"sdkProcessingMetadata",o),s&&(e.level=s),g&&(e.transactionName=g),b&&(e.span=b),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function WE(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function ext(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=gc(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=gc(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const c=gc(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const f=gc(a);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function txt(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function nxt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function rxt(e,t){e.contexts={trace:WQ(t),...e.contexts};const n=v5(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:_x(t),...e.sdkProcessingMetadata};const r=Zo(n).description;r&&(e.tags={transaction:r,...e.tags})}}function ixt(e,t){e.fingerprint=e.fingerprint?Rye(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const axt=100;let O7;class _f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Wre()}static clone(t){return t?t.clone():new _f}clone(){const t=new _f;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&S1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof _f?n:this}return t instanceof _f?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):fO(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Wre(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:axt;if(r<=0)return this;const i={timestamp:ok(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:f,_transactionName:h,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:f,transactionName:h,span:g}}applyToEvent(t,n={},r=[]){Gye(t,this.getScopeData());const i=[...r,...VQ(),...this._eventProcessors];return y5(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:La();if(!this._client)return Pt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:La();if(!this._client)return Pt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Pt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function sxt(){return O7||(O7=new _f),O7}function Wre(){return{traceId:La(),spanId:La().substring(16)}}const A9="7.99.0",Yye=parseFloat(A9),oxt=100;class Zye{constructor(t,n,r,i=Yye){this._version=i;let a;n?a=n:(a=new _f,a.setClient(t));let s;r?s=r:(s=new _f,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:La(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:La(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=oxt}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:ok(),...t},u=a?h6(()=>a(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Qre(this);try{t(this)}finally{Qre(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return zn&&Pt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return zn&&!r&&(this.getClient()?Pt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); -`):Pt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&jye(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=f6}=r&&r.getOptions()||{},{userAgent:s}=si.navigator||{},o=zye({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&S1(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=lk().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);zn&&Pt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function lk(){return si.__SENTRY__=si.__SENTRY__||{extensions:{},hub:void 0},si}function Wre(e){const t=lk(),n=A9(t);return Xye(t,e),n}function $c(){const e=lk();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return nxt(e)}function j1(){return $c().getIsolationScope()}function nxt(e=lk()){return(!rxt(e)||A9(e).isOlderThan(Yye))&&Xye(e,new Zye),A9(e)}function rxt(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function A9(e){return Eye("hub",()=>new Zye,e)}function Xye(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function iS(e){return(e||$c()).getScope().getTransaction()}let Qre=!1;function ixt(){Qre||(Qre=!0,Nye(_9),Pye(_9))}function _9(){const e=iS();if(e){const t="internal_error";zn&&Pt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}_9.tag="sentry_tracingErrorCallback";const yv="sentry.source",zy="sentry.sample_rate",t4="sentry.op",jy="sentry.origin";var qre;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const c="internal_error";e.InternalError=c;const f="unknown_error";e.UnknownError=f;const h="cancelled";e.Cancelled=h;const g="already_exists";e.AlreadyExists=g;const b="failed_precondition";e.FailedPrecondition=b;const S="aborted";e.Aborted=S;const E="out_of_range";e.OutOfRange=E;const w="data_loss";e.DataLoss=w})(qre||(qre={}));function axt(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function WQ(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=axt(t);n!=="unknown_error"&&e.setStatus(n)}class Kye{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class QQ{constructor(t={}){this._traceId=t.traceId||La(),this._spanId=t.spanId||La().substring(16),this._startTime=t.startTimestamp||ok(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[jy]:t.origin||"manual",[t4]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp)}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[t4]}set op(t){this.setAttribute(t4,t)}get origin(){return this._attributes[jy]}set origin(t){this.setAttribute(jy,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Hye:Nwt}}startChild(t){const n=new QQ({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=g5(this);if(n.transaction=r,zn&&r){const i=t&&t.op||"< unknown op >",a=Zo(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;Pt.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return WQ(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=g5(this);if(zn&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Pt.log(r.replace("Starting","Finishing"))}this._endTime=p6(t)}toTraceparent(){return h6(this)}toContext(){return gc({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return VQ(this)}getSpanJSON(){return gc({data:this._getData(),description:this._name,op:this._attributes[t4],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[jy]})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class Jye extends QQ{constructor(t,n){super(t),this._measurements={},this._contexts={},this._hub=n||$c(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[yv]&&{source:this._attributes[yv]},...this._attributes[zy]&&{sampleRate:this._attributes[zy]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(yv,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Kye(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=p6(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return gc({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return _x(this)}setHub(t){this._hub=t}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(zn&&Pt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){zn&&Pt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&Zo(l).timestamp):[];if(this._trimEnd&&r.length>0){const l=r.map(u=>Zo(u).timestamp).filter(Boolean);this._endTime=l.reduce((u,c)=>u>c?u:c)}const{metadata:i}=this,{source:a}=i,s={contexts:{...this._contexts,trace:VQ(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:_x(this)},...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(zn&&Pt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),zn&&Pt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}const a_={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},sxt="finishReason",ny=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class oxt extends Kye{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Zo(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class lxt extends Jye{constructor(t,n,r=a_.idleTimeout,i=a_.finalTimeout,a=a_.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=ny[4],this._autoFinishAllowed=!o,s&&(zn&&Pt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=ny[3],this.end())},this._finalTimeout)}end(t){const n=p6(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(sxt,this._finishReason),this.spanRecorder){zn&&Pt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Zo(r).timestamp||(r.setStatus("cancelled"),r.end(n),zn&&Pt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=Zo(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new oxt(n,r,this.spanContext().spanId,t),zn&&Pt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=ny[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(zn&&Pt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=ny[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),zn&&Pt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,zn&&Pt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(zn&&Pt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],zn&&Pt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=ok();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=ny[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(zn&&Pt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=ny[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){zn&&Pt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function g6(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=eo(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function eve(e,t,n){if(!g6(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(zy,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(zy,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(zy,Number(r))):(r=1,e.setAttribute(zy,r)),uxt(r)?r?(e.sampled=Math.random()1?(zn&&Pt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function cxt(){const t=this.getScope().getSpan();return t?{"sentry-trace":h6(t)}:{}}function dxt(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(zn&&Pt.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. -The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new Jye(e,this);return s=eve(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Gre(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let c=new lxt(t,e,n,r,s,i,o);return c=eve(c,u,{parentSampled:t.parentSampled,transactionContext:t,...a}),c.isRecording()&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",c),c}function fxt(){const e=lk();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=dxt),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=cxt),ixt())}function tve(e){if(!g6())return;const t=pxt(e),n=$c(),r=e.scope?e.scope.getSpan():hxt();if(!(e.onlyIfParent&&!r)){if(r)return r.startChild(t);{const a=j1(),s=Tp(),{traceId:o,dsc:l,parentSpanId:u,sampled:c}={...a.getPropagationContext(),...s.getPropagationContext()};return n.startTransaction({traceId:o,parentSpanId:u,parentSampled:c,...t,metadata:{dynamicSamplingContext:l,...t.metadata}})}}}function hxt(){return Tp().getSpan()}function pxt(e){if(e.startTime){const t={...e};return t.startTimestamp=p6(e.startTime),delete t.startTime,t}return e}function mxt(e,t,n){const r=iS();r&&r.setMeasurement(e,t,n)}function gxt(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function bxt(e,t,n,r){const i=Uye(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ak(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return rS(a,[s])}function yxt(e,t,n,r){const i=Uye(n),a=e.type&&e.type!=="replay_event"?e.type:"event";gxt(e,n&&n.sdk);const s=xwt(e,i,r,t);return delete e.sdkProcessingMetadata,rS(s,[[{type:a},e]])}const vxt="7";function Oxt(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Sxt(e){return`${Oxt(e)}${e.projectId}/envelope/`}function Ext(e,t){return N2t({sentry_key:e.publicKey,sentry_version:vxt,...t&&{sentry_client:`${t.name}/${t.version}`}})}function wxt(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Sxt(e)}?${Ext(e,r)}`}const Yre=[];function xxt(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Txt(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Rye(n(t)):r=t;const i=xxt(r),a=Cxt(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function kxt(e,t){const n={};return t.forEach(r=>{r&&nve(e,r,n)}),n}function Zre(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function nve(e,t,n){if(n[t.name]){zn&&Pt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Yre.indexOf(t.name)===-1&&(t.setupOnce(Iwt,$c),Yre.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}zn&&Pt.log(`Integration installed: ${t.name}`)}function Cxt(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} -`}return t}function _xt(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=ak(t));const a=Rxt(e);return rS(i,[a])}function Rxt(e){const t=Axt(e);return[{type:"statsd",length:t.length},t]}const Xre="Not capturing exception because it's already been captured.";class Ixt{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=D2t(t.dsn):zn&&Pt.warn("No DSN provided, client will not send events."),this._dsn){const n=wxt(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Dre(t)){zn&&Pt.log(Xre);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=LQ(t)?t:String(t),o=$Q(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&Dre(n.originalException)){zn&&Pt.log(Xre);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(a=>{i=a})),i}captureSession(t){typeof t.release!="string"?zn&&Pt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),S1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):hO(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return zn&&Pt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];nve(this,t,this._integrations),n||Zre(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=yxt(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=vwt(r,Ewt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=bxt(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;zn&&Pt.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}captureAggregateMetrics(t){zn&&Pt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=_xt(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=kxt(this,t),Zre(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(S1(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new hu(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=j1()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),Mwt(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:c,spanId:f,parentSpanId:h,dsc:g}=l;o.contexts={trace:{trace_id:c,span_id:f,parent_span_id:h},...o.contexts};const b=g||m6(c,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:b,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(zn){const a=i;a.logLevel==="log"?Pt.log(a.message):Pt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=ive(t),o=rve(t),l=t.type||"error",u=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),zQ(new Of(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const c=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",c,t),new Of("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return f;const g=Nxt(i,f,n);return Dxt(g,u)}).then(f=>{if(f===null)throw this.recordDroppedEvent("before_send",c,t),new Of(`${u} returned \`null\`, will not send event.`,"log");const h=r&&r.getSession();!s&&h&&this._updateSessionFromEvent(h,f);const g=f.transaction_info;if(s&&g&&f.transaction!==t.transaction){const b="custom";f.transaction_info={...g,source:b}}return this.sendEvent(f,n),f}).then(null,f=>{throw f instanceof Of?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new Of(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${f}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{zn&&Pt.error("Error while sending event:",n)});zn&&Pt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function Dxt(e,t){const n=`${t} must return \`null\` or a valid event.`;if(c6(e))return e.then(r=>{if(!fO(r)&&r!==null)throw new Of(n);return r},r=>{throw new Of(`${t} rejected with ${r}`)});if(!fO(e)&&e!==null)throw new Of(n);return e}function Nxt(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return rve(t)&&r?r(t,n):ive(t)&&i?i(t,n):t}function rve(e){return e.type===void 0}function ive(e){return e.type==="transaction"}function Pxt(e,t){t.debug===!0&&(zn?Pt.enable():d6(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Tp().update(t.initialScope);const r=new e(t);Mxt(r),Lxt(r)}function Mxt(e){const n=$c().getStackTop();n.client=e,n.scope.setClient(e)}function Lxt(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const $xt=30;function ave(e,t,n=lwt(e.bufferSize||$xt)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if($re(s,(f,h)=>{const g=Fre(h);if(_wt(r,g)){const b=Kre(f,h);e.recordDroppedEvent("ratelimit_backoff",g,b)}else o.push(f)}),o.length===0)return hO();const l=rS(s[0],o),u=f=>{$re(l,(h,g)=>{const b=Kre(h,g);e.recordDroppedEvent(f,Fre(g),b)})},c=()=>t({body:Owt(l,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&zn&&Pt.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Rwt(r,f),f),f=>{throw u("network_error"),f});return n.add(c).then(f=>f,f=>{if(f instanceof Of)return zn&&Pt.error("Skipped sending event because buffer is full."),u("queue_overflow"),hO();throw f})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function Kre(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function sve(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:C9})),version:C9}),e._metadata=i}const Fxt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Bxt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ove="InboundFilters",Uxt=(e={})=>({name:ove,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=zxt(e,i);return jxt(t,a)?null:t}}),lve=Uxt;N0(ove,lve);function zxt(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Fxt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Bxt],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function jxt(e,t){return t.ignoreInternal&&Gxt(e)?(zn&&Pt.warn(`Event dropped due to being internal Sentry Error. -Event: ${mm(e)}`),!0):Hxt(e,t.ignoreErrors)?(zn&&Pt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${mm(e)}`),!0):Vxt(e,t.ignoreTransactions)?(zn&&Pt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${mm(e)}`),!0):Wxt(e,t.denyUrls)?(zn&&Pt.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${mm(e)}. -Url: ${b5(e)}`),!0):Qxt(e,t.allowUrls)?!1:(zn&&Pt.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${mm(e)}. -Url: ${b5(e)}`),!0)}function Hxt(e,t){return e.type||!t||!t.length?!1:qxt(e).some(n=>ik(n,t))}function Vxt(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?ik(n,t):!1}function Wxt(e,t){if(!t||!t.length)return!1;const n=b5(e);return n?ik(n,t):!1}function Qxt(e,t){if(!t||!t.length)return!0;const n=b5(e);return n?ik(n,t):!0}function qxt(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),zn&&t.length===0&&Pt.error(`Could not extract message for event ${mm(e)}`),t}function Gxt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Yxt(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function b5(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Yxt(t):null}catch{return zn&&Pt.error(`Cannot extract url for event ${mm(e)}`),null}}let Jre;const uve="FunctionToString",eie=new WeakMap,Zxt=()=>({name:uve,setupOnce(){Jre=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=BQ(this),n=eie.has(eo())&&t!==void 0?t:this;return Jre.apply(n,e)}}catch{}},setup(e){eie.set(e,!0)}}),cve=Zxt;N0(uve,cve);const ia=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ai=si;function Xxt(){ai&&ai.document?ai.document.addEventListener("visibilitychange",()=>{const e=iS();if(ai.document.hidden&&e){const t="cancelled",{op:n,status:r}=Zo(e);ia&&Pt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):ia&&Pt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const qQ=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Kxt=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Jxt=()=>{const e=ai.performance.timing,t=ai.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},dve=()=>ai.__WEB_VITALS_POLYFILL__?ai.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Jxt()):ai.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],fve=()=>{const e=dve();return e&&e.activationStart||0},GQ=(e,t)=>{const n=dve();let r="navigate";return n&&(ai.document.prerendering||fve()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Kxt(),navigationType:r}},b6=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},y6=(e,t)=>{const n=r=>{(r.type==="pagehide"||ai.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},eTt=e=>{const t=GQ("CLS",0);let n,r=0,i=[];const a=o=>{o.forEach(l=>{if(!l.hadRecentInput){const u=i[0],c=i[i.length-1];r&&i.length!==0&&l.startTime-c.startTime<1e3&&l.startTime-u.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=b6("layout-shift",a);if(s){n=qQ(e,t);const o=()=>{a(s.takeRecords()),n(!0)};return y6(o),o}};let s_=-1;const tTt=()=>ai.document.visibilityState==="hidden"&&!ai.document.prerendering?0:1/0,nTt=()=>{y6(({timeStamp:e})=>{s_=e},!0)},YQ=()=>(s_<0&&(s_=tTt(),nTt()),{get firstHiddenTime(){return s_}}),rTt=e=>{const t=YQ(),n=GQ("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=b6("first-input",a);r=qQ(e,n),s&&y6(()=>{a(s.takeRecords()),s.disconnect()},!0)},tie={},iTt=e=>{const t=YQ(),n=GQ("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-fve(),0);l{tie[n.id]||(i(a.takeRecords()),a.disconnect(),tie[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,s,{once:!0,capture:!0})}),y6(s,!0),s}},iw={},y5={};let hve,pve,mve;function aTt(e,t=!1){return XQ("cls",e,lTt,hve,t)}function sTt(e,t=!1){return XQ("lcp",e,cTt,mve,t)}function oTt(e){return XQ("fid",e,uTt,pve)}function ZQ(e,t){return gve(e,t),y5[e]||(dTt(e),y5[e]=!0),bve(e,t)}function v6(e,t){const n=iw[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){ia&&Pt.error(`Error while triggering instrumentation handler. +`):Pt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&jye(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=p6}=r&&r.getOptions()||{},{userAgent:s}=si.navigator||{},o=zye({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&S1(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=uk().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);zn&&Pt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function uk(){return si.__SENTRY__=si.__SENTRY__||{extensions:{},hub:void 0},si}function Qre(e){const t=uk(),n=_9(t);return Xye(t,e),n}function Fc(){const e=uk();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return lxt(e)}function j1(){return Fc().getIsolationScope()}function lxt(e=uk()){return(!uxt(e)||_9(e).isOlderThan(Yye))&&Xye(e,new Zye),_9(e)}function uxt(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function _9(e){return Eye("hub",()=>new Zye,e)}function Xye(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function iS(e){return(e||Fc()).getScope().getTransaction()}let qre=!1;function cxt(){qre||(qre=!0,Nye(R9),Pye(R9))}function R9(){const e=iS();if(e){const t="internal_error";zn&&Pt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}R9.tag="sentry_tracingErrorCallback";const yv="sentry.source",zy="sentry.sample_rate",n4="sentry.op",jy="sentry.origin";var Gre;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const c="internal_error";e.InternalError=c;const f="unknown_error";e.UnknownError=f;const h="cancelled";e.Cancelled=h;const g="already_exists";e.AlreadyExists=g;const b="failed_precondition";e.FailedPrecondition=b;const S="aborted";e.Aborted=S;const w="out_of_range";e.OutOfRange=w;const E="data_loss";e.DataLoss=E})(Gre||(Gre={}));function dxt(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function QQ(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=dxt(t);n!=="unknown_error"&&e.setStatus(n)}class Kye{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class qQ{constructor(t={}){this._traceId=t.traceId||La(),this._spanId=t.spanId||La().substring(16),this._startTime=t.startTimestamp||lk(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[jy]:t.origin||"manual",[n4]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp)}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[n4]}set op(t){this.setAttribute(n4,t)}get origin(){return this._attributes[jy]}set origin(t){this.setAttribute(jy,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Hye:Bwt}}startChild(t){const n=new qQ({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=v5(this);if(n.transaction=r,zn&&r){const i=t&&t.op||"< unknown op >",a=Zo(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;Pt.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return QQ(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=v5(this);if(zn&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Pt.log(r.replace("Starting","Finishing"))}this._endTime=g6(t)}toTraceparent(){return m6(this)}toContext(){return gc({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return WQ(this)}getSpanJSON(){return gc({data:this._getData(),description:this._name,op:this._attributes[n4],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[jy]})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class Jye extends qQ{constructor(t,n){super(t),this._measurements={},this._contexts={},this._hub=n||Fc(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[yv]&&{source:this._attributes[yv]},...this._attributes[zy]&&{sampleRate:this._attributes[zy]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(yv,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Kye(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=g6(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return gc({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return _x(this)}setHub(t){this._hub=t}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(zn&&Pt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){zn&&Pt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&Zo(l).timestamp):[];if(this._trimEnd&&r.length>0){const l=r.map(u=>Zo(u).timestamp).filter(Boolean);this._endTime=l.reduce((u,c)=>u>c?u:c)}const{metadata:i}=this,{source:a}=i,s={contexts:{...this._contexts,trace:WQ(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:_x(this)},...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(zn&&Pt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),zn&&Pt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}const s_={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},fxt="finishReason",ny=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class hxt extends Kye{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Zo(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class pxt extends Jye{constructor(t,n,r=s_.idleTimeout,i=s_.finalTimeout,a=s_.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=ny[4],this._autoFinishAllowed=!o,s&&(zn&&Pt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=ny[3],this.end())},this._finalTimeout)}end(t){const n=g6(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(fxt,this._finishReason),this.spanRecorder){zn&&Pt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Zo(r).timestamp||(r.setStatus("cancelled"),r.end(n),zn&&Pt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=Zo(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new hxt(n,r,this.spanContext().spanId,t),zn&&Pt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=ny[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(zn&&Pt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=ny[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),zn&&Pt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,zn&&Pt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(zn&&Pt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],zn&&Pt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=lk();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=ny[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(zn&&Pt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=ny[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){zn&&Pt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function y6(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=eo(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function eve(e,t,n){if(!y6(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(zy,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(zy,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(zy,Number(r))):(r=1,e.setAttribute(zy,r)),mxt(r)?r?(e.sampled=Math.random()1?(zn&&Pt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function gxt(){const t=this.getScope().getSpan();return t?{"sentry-trace":m6(t)}:{}}function bxt(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(zn&&Pt.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. +The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new Jye(e,this);return s=eve(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Yre(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let c=new pxt(t,e,n,r,s,i,o);return c=eve(c,u,{parentSampled:t.parentSampled,transactionContext:t,...a}),c.isRecording()&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",c),c}function yxt(){const e=uk();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=bxt),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=gxt),cxt())}function tve(e){if(!y6())return;const t=Oxt(e),n=Fc(),r=e.scope?e.scope.getSpan():vxt();if(!(e.onlyIfParent&&!r)){if(r)return r.startChild(t);{const a=j1(),s=kp(),{traceId:o,dsc:l,parentSpanId:u,sampled:c}={...a.getPropagationContext(),...s.getPropagationContext()};return n.startTransaction({traceId:o,parentSpanId:u,parentSampled:c,...t,metadata:{dynamicSamplingContext:l,...t.metadata}})}}}function vxt(){return kp().getSpan()}function Oxt(e){if(e.startTime){const t={...e};return t.startTimestamp=g6(e.startTime),delete t.startTime,t}return e}function Sxt(e,t,n){const r=iS();r&&r.setMeasurement(e,t,n)}function Ext(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function wxt(e,t,n,r){const i=Uye(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:sk(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return rS(a,[s])}function xxt(e,t,n,r){const i=Uye(n),a=e.type&&e.type!=="replay_event"?e.type:"event";Ext(e,n&&n.sdk);const s=Rwt(e,i,r,t);return delete e.sdkProcessingMetadata,rS(s,[[{type:a},e]])}const Txt="7";function kxt(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Cxt(e){return`${kxt(e)}${e.projectId}/envelope/`}function Axt(e,t){return B2t({sentry_key:e.publicKey,sentry_version:Txt,...t&&{sentry_client:`${t.name}/${t.version}`}})}function _xt(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Cxt(e)}?${Axt(e,r)}`}const Zre=[];function Rxt(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Ixt(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Rye(n(t)):r=t;const i=Rxt(r),a=Nxt(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function Dxt(e,t){const n={};return t.forEach(r=>{r&&nve(e,r,n)}),n}function Xre(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function nve(e,t,n){if(n[t.name]){zn&&Pt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Zre.indexOf(t.name)===-1&&(t.setupOnce($wt,Fc),Zre.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}zn&&Pt.log(`Integration installed: ${t.name}`)}function Nxt(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} +`}return t}function Mxt(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=sk(t));const a=Lxt(e);return rS(i,[a])}function Lxt(e){const t=Pxt(e);return[{type:"statsd",length:t.length},t]}const Kre="Not capturing exception because it's already been captured.";class $xt{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=F2t(t.dsn):zn&&Pt.warn("No DSN provided, client will not send events."),this._dsn){const n=_xt(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Nre(t)){zn&&Pt.log(Kre);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=$Q(t)?t:String(t),o=FQ(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&Nre(n.originalException)){zn&&Pt.log(Kre);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(a=>{i=a})),i}captureSession(t){typeof t.release!="string"?zn&&Pt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),S1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):hO(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return zn&&Pt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];nve(this,t,this._integrations),n||Xre(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=xxt(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=Twt(r,Awt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=wxt(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;zn&&Pt.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}captureAggregateMetrics(t){zn&&Pt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=Mxt(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Dxt(this,t),Xre(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(S1(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new hu(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=j1()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),zwt(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:c,spanId:f,parentSpanId:h,dsc:g}=l;o.contexts={trace:{trace_id:c,span_id:f,parent_span_id:h},...o.contexts};const b=g||b6(c,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:b,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(zn){const a=i;a.logLevel==="log"?Pt.log(a.message):Pt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=ive(t),o=rve(t),l=t.type||"error",u=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),jQ(new Of(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const c=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",c,t),new Of("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return f;const g=Bxt(i,f,n);return Fxt(g,u)}).then(f=>{if(f===null)throw this.recordDroppedEvent("before_send",c,t),new Of(`${u} returned \`null\`, will not send event.`,"log");const h=r&&r.getSession();!s&&h&&this._updateSessionFromEvent(h,f);const g=f.transaction_info;if(s&&g&&f.transaction!==t.transaction){const b="custom";f.transaction_info={...g,source:b}}return this.sendEvent(f,n),f}).then(null,f=>{throw f instanceof Of?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new Of(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${f}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{zn&&Pt.error("Error while sending event:",n)});zn&&Pt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function Fxt(e,t){const n=`${t} must return \`null\` or a valid event.`;if(f6(e))return e.then(r=>{if(!fO(r)&&r!==null)throw new Of(n);return r},r=>{throw new Of(`${t} rejected with ${r}`)});if(!fO(e)&&e!==null)throw new Of(n);return e}function Bxt(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return rve(t)&&r?r(t,n):ive(t)&&i?i(t,n):t}function rve(e){return e.type===void 0}function ive(e){return e.type==="transaction"}function Uxt(e,t){t.debug===!0&&(zn?Pt.enable():h6(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),kp().update(t.initialScope);const r=new e(t);zxt(r),jxt(r)}function zxt(e){const n=Fc().getStackTop();n.client=e,n.scope.setClient(e)}function jxt(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const Hxt=30;function ave(e,t,n=pwt(e.bufferSize||Hxt)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(Fre(s,(f,h)=>{const g=Bre(h);if(Mwt(r,g)){const b=Jre(f,h);e.recordDroppedEvent("ratelimit_backoff",g,b)}else o.push(f)}),o.length===0)return hO();const l=rS(s[0],o),u=f=>{Fre(l,(h,g)=>{const b=Jre(h,g);e.recordDroppedEvent(f,Bre(g),b)})},c=()=>t({body:kwt(l,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&zn&&Pt.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Lwt(r,f),f),f=>{throw u("network_error"),f});return n.add(c).then(f=>f,f=>{if(f instanceof Of)return zn&&Pt.error("Skipped sending event because buffer is full."),u("queue_overflow"),hO();throw f})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function Jre(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function sve(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:A9})),version:A9}),e._metadata=i}const Vxt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Wxt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ove="InboundFilters",Qxt=(e={})=>({name:ove,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=qxt(e,i);return Gxt(t,a)?null:t}}),lve=Qxt;N0(ove,lve);function qxt(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Vxt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Wxt],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Gxt(e,t){return t.ignoreInternal&&eTt(e)?(zn&&Pt.warn(`Event dropped due to being internal Sentry Error. +Event: ${gm(e)}`),!0):Yxt(e,t.ignoreErrors)?(zn&&Pt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${gm(e)}`),!0):Zxt(e,t.ignoreTransactions)?(zn&&Pt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${gm(e)}`),!0):Xxt(e,t.denyUrls)?(zn&&Pt.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${gm(e)}. +Url: ${O5(e)}`),!0):Kxt(e,t.allowUrls)?!1:(zn&&Pt.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${gm(e)}. +Url: ${O5(e)}`),!0)}function Yxt(e,t){return e.type||!t||!t.length?!1:Jxt(e).some(n=>ak(n,t))}function Zxt(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?ak(n,t):!1}function Xxt(e,t){if(!t||!t.length)return!1;const n=O5(e);return n?ak(n,t):!1}function Kxt(e,t){if(!t||!t.length)return!0;const n=O5(e);return n?ak(n,t):!0}function Jxt(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),zn&&t.length===0&&Pt.error(`Could not extract message for event ${gm(e)}`),t}function eTt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function tTt(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function O5(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?tTt(t):null}catch{return zn&&Pt.error(`Cannot extract url for event ${gm(e)}`),null}}let eie;const uve="FunctionToString",tie=new WeakMap,nTt=()=>({name:uve,setupOnce(){eie=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=UQ(this),n=tie.has(eo())&&t!==void 0?t:this;return eie.apply(n,e)}}catch{}},setup(e){tie.set(e,!0)}}),cve=nTt;N0(uve,cve);const ia=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ai=si;function rTt(){ai&&ai.document?ai.document.addEventListener("visibilitychange",()=>{const e=iS();if(ai.document.hidden&&e){const t="cancelled",{op:n,status:r}=Zo(e);ia&&Pt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):ia&&Pt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const GQ=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},iTt=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,aTt=()=>{const e=ai.performance.timing,t=ai.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},dve=()=>ai.__WEB_VITALS_POLYFILL__?ai.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||aTt()):ai.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],fve=()=>{const e=dve();return e&&e.activationStart||0},YQ=(e,t)=>{const n=dve();let r="navigate";return n&&(ai.document.prerendering||fve()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:iTt(),navigationType:r}},v6=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},O6=(e,t)=>{const n=r=>{(r.type==="pagehide"||ai.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},sTt=e=>{const t=YQ("CLS",0);let n,r=0,i=[];const a=o=>{o.forEach(l=>{if(!l.hadRecentInput){const u=i[0],c=i[i.length-1];r&&i.length!==0&&l.startTime-c.startTime<1e3&&l.startTime-u.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=v6("layout-shift",a);if(s){n=GQ(e,t);const o=()=>{a(s.takeRecords()),n(!0)};return O6(o),o}};let o_=-1;const oTt=()=>ai.document.visibilityState==="hidden"&&!ai.document.prerendering?0:1/0,lTt=()=>{O6(({timeStamp:e})=>{o_=e},!0)},ZQ=()=>(o_<0&&(o_=oTt(),lTt()),{get firstHiddenTime(){return o_}}),uTt=e=>{const t=ZQ(),n=YQ("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=v6("first-input",a);r=GQ(e,n),s&&O6(()=>{a(s.takeRecords()),s.disconnect()},!0)},nie={},cTt=e=>{const t=ZQ(),n=YQ("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-fve(),0);l{nie[n.id]||(i(a.takeRecords()),a.disconnect(),nie[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,s,{once:!0,capture:!0})}),O6(s,!0),s}},iw={},S5={};let hve,pve,mve;function dTt(e,t=!1){return KQ("cls",e,pTt,hve,t)}function fTt(e,t=!1){return KQ("lcp",e,gTt,mve,t)}function hTt(e){return KQ("fid",e,mTt,pve)}function XQ(e,t){return gve(e,t),S5[e]||(bTt(e),S5[e]=!0),bve(e,t)}function S6(e,t){const n=iw[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){ia&&Pt.error(`Error while triggering instrumentation handler. Type: ${e} -Name: ${pp(r)} -Error:`,i)}}function lTt(){return eTt(e=>{v6("cls",{metric:e}),hve=e})}function uTt(){return rTt(e=>{v6("fid",{metric:e}),pve=e})}function cTt(){return iTt(e=>{v6("lcp",{metric:e}),mve=e})}function XQ(e,t,n,r,i=!1){gve(e,t);let a;return y5[e]||(a=n(),y5[e]=!0),r&&t({metric:r}),bve(e,t,i?a:void 0)}function dTt(e){const t={};e==="event"&&(t.durationThreshold=0),b6(e,n=>{v6(e,{entries:n})},t)}function gve(e,t){iw[e]=iw[e]||[],iw[e].push(t)}function bve(e,t,n){return()=>{n&&n();const r=iw[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function v7(e){return typeof e=="number"&&isFinite(e)}function pO(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const fTt=2147483647;function ns(e){return e/1e3}function yve(){return ai&&ai.addEventListener&&ai.performance}let nie=0,Ra={},of,aw;function hTt(){const e=yve();if(e&&Hf){e.mark&&ai.performance.mark("sentry-tracing-init");const t=yTt(),n=gTt(),r=bTt();return()=>{t(),n(),r()}}return()=>{}}function pTt(){ZQ("longtask",({entries:e})=>{for(const t of e){const n=iS();if(!n)return;const r=ns(Hf+t.startTime),i=ns(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function mTt(){ZQ("event",({entries:e})=>{for(const t of e){const n=iS();if(!n)return;if(t.name==="click"){const r=ns(Hf+t.startTime),i=ns(t.duration),a={description:kx(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=wye(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function gTt(){return aTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ia&&Pt.log("[Measurements] Adding CLS"),Ra.cls={value:e.value,unit:""},aw=t)},!0)}function bTt(){return sTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ia&&Pt.log("[Measurements] Adding LCP"),Ra.lcp={value:e.value,unit:"millisecond"},of=t)},!0)}function yTt(){return oTt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ns(Hf),r=ns(t.startTime);ia&&Pt.log("[Measurements] Adding FID"),Ra.fid={value:e.value,unit:"millisecond"},Ra["mark.fid"]={value:n+r,unit:"second"}})}function vTt(e){const t=yve();if(!t||!ai.performance.getEntries||!Hf)return;ia&&Pt.log("[Tracing] Adding & adjusting spans using Performance API");const n=ns(Hf),r=t.getEntries();let i,a;const{op:s,start_timestamp:o}=Zo(e);if(r.slice(nie).forEach(l=>{const u=ns(l.startTime),c=ns(l.duration);if(!(e.op==="navigation"&&o&&n+u{if(!Ra[u]||!o||n>=o)return;const c=Ra[u].value,f=n+ns(c),h=Math.abs((f-o)*1e3),g=h-c;ia&&Pt.log(`[Measurements] Normalized ${u} from ${c} to ${h} (${g})`),Ra[u].value=h});const l=Ra["mark.fid"];l&&Ra.fid&&(pO(e,{description:"first input delay",endTimestamp:l.value+ns(Ra.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete Ra["mark.fid"]),"fcp"in Ra||delete Ra.cls,Object.keys(Ra).forEach(u=>{mxt(u,Ra[u].value,Ra[u].unit)}),TTt(e)}of=void 0,aw=void 0,Ra={}}function OTt(e,t,n,r,i){const a=i+n,s=a+r;return pO(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function STt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{n4(e,t,r,n)}),n4(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),n4(e,t,"fetch",n,"cache","domainLookupStart"),n4(e,t,"domainLookup",n,"DNS"),ETt(e,t,n)}function n4(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||pO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ns(o),endTimestamp:r+ns(s)})}function ETt(e,t,n){t.responseEnd&&(pO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ns(t.requestStart),endTimestamp:n+ns(t.responseEnd)}),pO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ns(t.responseStart),endTimestamp:n+ns(t.responseEnd)}))}function wTt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=i_(n),o={};O7(o,t,"transferSize","http.response_transfer_size"),O7(o,t,"encodedBodySize","http.response_content_length"),O7(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(ai.location.origin);const l=a+r,u=l+i;pO(e,{description:n.replace(ai.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function xTt(e){const t=ai.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),v7(n.rtt)&&(Ra["connection.rtt"]={value:n.rtt,unit:"millisecond"})),v7(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),v7(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function TTt(e){of&&(ia&&Pt.log("[Measurements] Adding LCP Data"),of.element&&e.setTag("lcp.element",kx(of.element)),of.id&&e.setTag("lcp.id",of.id),of.url&&e.setTag("lcp.url",of.url.trim().slice(0,200)),e.setTag("lcp.size",of.size)),aw&&aw.sources&&(ia&&Pt.log("[Measurements] Adding CLS Data"),aw.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,kx(t.node))))}function O7(e,t,n,r){const i=t[n];i!=null&&i0&&h.setAttribute("http.response_content_length",b)}}else e.error&&h.setStatus("internal_error");h.end(),delete r[f]}return}const s=Tp(),o=eo(),{method:l,url:u}=e.fetchData,c=a?tve({name:`${l} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":l,[jy]:i},op:"http.client"}):void 0;if(c&&(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c),n(e.fetchData.url)&&o){const f=e.args[0];e.args[1]=e.args[1]||{};const h=e.args[1];h.headers=ATt(f,o,s,h,c)}return c}function ATt(e,t,n,r,i){const a=i||n.getSpan(),s=j1(),{traceId:o,spanId:l,sampled:u,dsc:c}={...s.getPropagationContext(),...n.getPropagationContext()},f=a?h6(a):jQ(o,l,u),h=Bye(c||(a?_x(a):m6(o,t,n))),g=r.headers||(typeof Request<"u"&&hp(e,Request)?e.headers:void 0);if(g)if(typeof Headers<"u"&&hp(g,Headers)){const b=new Headers(g);return b.append("sentry-trace",f),h&&b.append(T9,h),b}else if(Array.isArray(g)){const b=[...g,["sentry-trace",f]];return h&&b.push([T9,h]),b}else{const b="baggage"in g?g.baggage:void 0,S=[];return Array.isArray(b)?S.push(...b):b&&S.push(b),h&&S.push(h),{...g,"sentry-trace":f,baggage:S.length>0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:h}}const R9=["localhost",/^\/(?!\/)/],I9={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:R9,tracePropagationTargets:R9};function _Tt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:I9.traceFetch,traceXHR:I9.traceXHR,...e},o=typeof a=="function"?a:c=>!0,l=c=>NTt(c,r||i),u={};t&&Dye(c=>{const f=CTt(c,o,l,u);s&&f&&rie(f)}),n&&Mye(c=>{const f=PTt(c,o,l,u);s&&f&&rie(f)})}function RTt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function rie(e){const{url:t}=Zo(e).data||{};if(!t||typeof t!="string")return;const n=ZQ("resource",({entries:r})=>{r.forEach(i=>{RTt(i)&&i.name.endsWith(t)&&(DTt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function ITt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function tf(e=0){return((Hf||performance.timeOrigin)+e)/1e3}function DTt(e){const{name:t,version:n}=ITt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Hf?[...r,["http.request.redirect_start",tf(e.redirectStart)],["http.request.fetch_start",tf(e.fetchStart)],["http.request.domain_lookup_start",tf(e.domainLookupStart)],["http.request.domain_lookup_end",tf(e.domainLookupEnd)],["http.request.connect_start",tf(e.connectStart)],["http.request.secure_connection_start",tf(e.secureConnectionStart)],["http.request.connection_end",tf(e.connectEnd)],["http.request.request_start",tf(e.requestStart)],["http.request.response_start",tf(e.responseStart)],["http.request.response_end",tf(e.responseEnd)]]:r}function NTt(e,t){return ik(e,t||R9)}function PTt(e,t,n,r){const i=e.xhr,a=i&&i[Uy];if(!g6()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const f=i.__sentry_xhr_span_id__;if(!f)return;const h=r[f];h&&a.status_code!==void 0&&(WQ(h,a.status_code),h.end(),delete r[f]);return}const o=Tp(),l=j1(),u=s?tve({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[jy]:"auto.http.browser"},op:"http.client"}):void 0;u&&(i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u);const c=eo();if(i.setRequestHeader&&n(a.url)&&c){const{traceId:f,spanId:h,sampled:g,dsc:b}={...l.getPropagationContext(),...o.getPropagationContext()},S=u?h6(u):jQ(f,h,g),E=Bye(b||(u?_x(u):m6(f,c,o)));MTt(i,S,E)}return u}function MTt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(T9,n)}catch{}}function LTt(e,t=!0,n=!0){if(!ai||!ai.location){ia&&Pt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=ai.location.href,i;t&&(i=e({name:ai.location.pathname,startTimestamp:Hf?Hf/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&UQ(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(ia&&Pt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:ai.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const $Tt="BrowserTracing",FTt={...a_,markBackgroundTransactions:!0,routingInstrumentation:LTt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...I9};class BTt{constructor(t){this.name=$Tt,this._hasSetTracePropagationTargets=!1,fxt(),ia&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...FTt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=hTt(),this.options.enableLongTask&&pTt(),this.options._experiments.enableInteractions&&mTt()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:c,traceXHR:f,shouldCreateSpanForRequest:h,enableHTTPTimings:g,_experiments:b}=this.options,S=a&&a.tracePropagationTargets,E=S||this.options.tracePropagationTargets;ia&&this._hasSetTracePropagationTargets&&S&&Pt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(w=>{const x=this._createRouteTransaction(w);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,w,n),x},l,o),u&&Xxt(),b.enableInteractions&&this._registerInteractionListener(),_Tt({traceFetch:c,traceXHR:f,tracePropagationTargets:E,shouldCreateSpanForRequest:h,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){ia&&Pt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?iie("sentry-trace"):"",b=o?iie("baggage"):void 0,{traceparentData:S,dynamicSamplingContext:E}=ywt(g,b);l={...t,...S,metadata:{...t.metadata,dynamicSamplingContext:S&&!E?{}:E},trimEnd:!0}}else l={...t,trimEnd:!0};const u=typeof r=="function"?r(l):l,c=u===void 0?{...l,sampled:!1}:u;c.metadata=c.name!==l.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRouteName=c.name,this._latestRouteSource=UTt(c),c.sampled===!1&&ia&&Pt.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),ia&&Pt.log(`[Tracing] Starting ${c.op} transaction on scope`);const{location:f}=ai,h=Gre(n,c,i,a,!0,{location:f},s,o);return o&&(ai.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(ai.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(ai.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(g=>{this._collectWebVitals(),vTt(g)}),h}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=iS();if(o&&o.op&&["navigation","pageload"].includes(o.op)){ia&&Pt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){ia&&Pt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){ia&&Pt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=ai,c={name:this._latestRouteName,op:s,trimEnd:!0,data:{[yv]:this._latestRouteSource||"url"}};t=Gre(l,c,r,i,!0,{location:u},a)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function iie(e){const t=T2t(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function UTt(e){const t=e.attributes&&e.attributes[yv],n=e.data&&e.data[yv],r=e.metadata&&e.metadata.source;return t||n||r}const ui=si;let D9=0;function vve(){return D9>0}function zTt(){D9++,setTimeout(()=>{D9--})}function mO(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(BQ(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(s=>mO(s,t));return e.apply(this,a)}catch(a){throw zTt(),qwt(s=>{s.addEventProcessor(o=>(t.mechanism&&(y9(o,void 0,void 0),Ax(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),Qwt(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Tye(r,e),Cx(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const jh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Ove(e,t){const n=KQ(e,t),r={type:t&&t.name,value:WTt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function jTt(e,t,n,r){const i=eo(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:u6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:GTt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Lye(t,a)}};if(n){const o=KQ(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function S7(e,t){return{exception:{values:[Ove(e,t)]}}}function KQ(e,t){const n=t.stacktrace||t.stack||"",r=VTt(t);try{return e(n,r)}catch{}return[]}const HTt=/Minified React error #\d+;/i;function VTt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(HTt.test(e.message))return 1}return 0}function WTt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function QTt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=JQ(e,t,i,r);return Ax(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),hO(a)}function qTt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=N9(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),hO(s)}function JQ(e,t,n,r,i){let a;if(MQ(t)&&t.error)return S7(e,t.error);if(wre(t)||m2t(t)){const s=t;if("stack"in t)a=S7(e,t);else{const o=s.name||(wre(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=N9(e,l,n,r),y9(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return vye(t)?S7(e,t):fO(t)||u6(t)?(a=jTt(e,t,n,i),Ax(a,{synthetic:!0}),a):(a=N9(e,t,n,r),y9(a,`${t}`,void 0),Ax(a,{synthetic:!0}),a)}function N9(e,t,n,r){const i={};if(r&&n){const a=KQ(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(LQ(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function GTt(e,{isUnhandledRejection:t}){const n=P2t(e),r=t?"promise rejection":"exception";return MQ(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:u6(e)?`Event \`${YTt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function YTt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function ZTt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:ak(r)}},a=XTt(e);return rS(i,[a])}function XTt(e){return[{type:"user_report"},e]}class KTt extends Ixt{constructor(t){const n=ui.SENTRY_SDK_SOURCE||nwt();sve(t,"browser",["browser"],n),super(t),t.sendClientReports&&ui.document&&ui.document.addEventListener("visibilitychange",()=>{ui.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return QTt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return qTt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){jh&&Pt.warn("SDK not enabled, will not capture user feedback.");return}const n=ZTt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){jh&&Pt.log("No outcomes to send");return}if(!this._dsn){jh&&Pt.log("No dsn provided, will not send outcomes");return}jh&&Pt.log("Sending outcomes:",t);const n=Twt(t,this._options.tunnel&&ak(this._dsn));this._sendEnvelope(n)}}let f2;function JTt(){if(f2)return f2;if(E9(ui.fetch))return f2=ui.fetch.bind(ui);const e=ui.document;let t=ui.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){jh&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return f2=t.bind(ui)}function ekt(){f2=void 0}function tkt(e,t=JTt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return ekt(),n-=s,r--,zQ(l)}}return ave(e,i)}const nkt=4;function rkt(e){function t(n){return new hu((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===nkt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return ave(e,t)}const O6="?",ikt=30,akt=40,skt=50;function eq(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const okt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lkt=/\((\S*)(?::(\d+))(?::(\d+))\)/,ukt=e=>{const t=okt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=lkt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Sve(t[1]||O6,t[2]);return eq(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},ckt=[ikt,ukt],dkt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fkt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,hkt=e=>{const t=dkt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=fkt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||O6;return[i,r]=Sve(i,r),eq(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},pkt=[skt,hkt],mkt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gkt=e=>{const t=mkt.exec(e);return t?eq(t[2],t[1]||O6,+t[3],t[4]?+t[4]:void 0):void 0},bkt=[akt,gkt],ykt=[ckt,pkt,bkt],vkt=Aye(...ykt),Sve=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:O6,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},r4=1024,Eve="Breadcrumbs",Okt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Eve,setupOnce(){},setup(n){t.console&&F2t(wkt(n)),t.dom&&z2t(Ekt(n,t.dom)),t.xhr&&Mye(xkt(n)),t.fetch&&Dye(Tkt(n)),t.history&&UQ(kkt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Skt(n))}}},wve=Okt;N0(Eve,wve);function Skt(e){return function(n){eo()===e&&E1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:mm(n)},{event:n})}}function Ekt(e,t){return function(r){if(eo()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>r4&&(jh&&Pt.warn(`\`dom.maxStringLength\` cannot exceed ${r4}, but a value of ${o} was configured. Sentry will use ${r4} instead.`),o=r4),typeof s=="string"&&(s=[s]);try{const u=r.event,c=Ckt(u)?u.target:u;i=kx(c,{keyAttrs:s,maxStringLength:o}),a=wye(c)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),E1(l,{event:r.event,name:r.name,global:r.global})}}function wkt(e){return function(n){if(eo()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:cwt(n.level),message:xre(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${xre(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;E1(r,{input:n.args,level:n.level})}}function xkt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Uy];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,c={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};E1({category:"xhr",data:c,type:"http"},f)}}function Tkt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};E1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};E1({category:"fetch",data:s,type:"http"},o)}}}function kkt(e){return function(n){if(eo()!==e)return;let r=n.from,i=n.to;const a=i_(ui.location.href);let s=r?i_(r):void 0;const o=i_(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),E1({category:"navigation",data:{from:r,to:i}})}}function Ckt(e){return!!e&&!!e.target}const xve="Dedupe",Akt=()=>{let e;return{name:xve,setupOnce(){},processEvent(t){if(t.type)return t;try{if(_kt(t,e))return jh&&Pt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Tve=Akt;N0(xve,Tve);function _kt(e,t){return t?!!(Rkt(e,t)||Ikt(e,t)):!1}function Rkt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Cve(e,t)||!kve(e,t))}function Ikt(e,t){const n=aie(t),r=aie(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Cve(e,t)||!kve(e,t))}function kve(e,t){let n=sie(e),r=sie(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Ave,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Nkt(n),oie("onerror")),t.onunhandledrejection&&(Pkt(n),oie("onunhandledrejection"))}}},_ve=Dkt;N0(Ave,_ve);function Nkt(e){Nye(t=>{const{stackParser:n,attachStacktrace:r}=Ive();if(eo()!==e||vve())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Uf(i)?$kt(i,a,s,o):Rve(JQ(n,l||i,void 0,r,!1),a,s,o);u.level="error",Wye(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Pkt(e){Pye(t=>{const{stackParser:n,attachStacktrace:r}=Ive();if(eo()!==e||vve())return;const i=Mkt(t),a=$Q(i)?Lkt(i):JQ(n,i,void 0,r,!0);a.level="error",Wye(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Mkt(e){if($Q(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function Lkt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function $kt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=MQ(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),Rve({exception:{values:[{type:s,value:a}]}},t,n,r)}function Rve(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,f=Uf(t)&&t.length>0?t:x2t();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:c}),e}function oie(e){jh&&Pt.log(`Global Handler attached: ${e}`)}function Ive(){const e=eo();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Dve="HttpContext",Fkt=()=>({name:Dve,setupOnce(){},preprocessEvent(e){if(!ui.navigator&&!ui.location&&!ui.document)return;const t=e.request&&e.request.url||ui.location&&ui.location.href,{referrer:n}=ui.document||{},{userAgent:r}=ui.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),Nve=Fkt;N0(Dve,Nve);const Bkt="cause",Ukt=5,Pve="LinkedErrors",zkt=(e={})=>{const t=e.limit||Ukt,n=e.key||Bkt;return{name:Pve,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();O2t(Ove,s.stackParser,s.maxValueLength,n,t,r,i)}}},Mve=zkt;N0(Pve,Mve);const jkt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Lve="TryCatch",Hkt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Lve,setupOnce(){t.setTimeout&&qs(ui,"setTimeout",lie),t.setInterval&&qs(ui,"setInterval",lie),t.requestAnimationFrame&&qs(ui,"requestAnimationFrame",Vkt),t.XMLHttpRequest&&"XMLHttpRequest"in ui&&qs(XMLHttpRequest.prototype,"send",Wkt);const n=t.eventTarget;n&&(Array.isArray(n)?n:jkt).forEach(Qkt)}}},$ve=Hkt;N0(Lve,$ve);function lie(e){return function(...t){const n=t[0];return t[0]=mO(n,{mechanism:{data:{function:pp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Vkt(e){return function(t){return e.apply(this,[mO(t,{mechanism:{data:{function:"requestAnimationFrame",handler:pp(e)},handled:!1,type:"instrument"}})])}}function Wkt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&qs(n,i,function(a){const s={mechanism:{data:{function:i,handler:pp(a)},handled:!1,type:"instrument"}},o=BQ(a);return o&&(s.mechanism.data.handler=pp(o)),mO(a,s)})}),e.apply(this,t)}}function Qkt(e){const t=ui,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(qs(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=mO(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:pp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,mO(a,{mechanism:{data:{function:"addEventListener",handler:pp(a),target:e},handled:!1,type:"instrument"}}),s])}}),qs(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const qkt=[lve(),cve(),$ve(),wve(),_ve(),Mve(),Tve(),Nve()];function Gkt(e){return[...qkt]}function Ykt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Gkt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),ui.SENTRY_RELEASE&&ui.SENTRY_RELEASE.id&&(e.release=ui.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:L2t(e.stackParser||vkt),integrations:Txt(e),transport:e.transport||(Iye()?tkt:rkt)};Pxt(KTt,t),e.autoSessionTracking&&Zkt()}function Zkt(){if(typeof ui.document>"u"){jh&&Pt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}zre({ignoreDuration:!0}),jre(),UQ(({from:e,to:t})=>{e!==void 0&&e!==t&&(zre({ignoreDuration:!0}),jre())})}function Xkt(e){const t={...e};sve(t,"react"),Ykt(t)}const Kkt={"routing.instrumentation":"react-router-v6"};function Jkt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=ui&&ui.location&&ui.location.pathname;o&&u&&s({name:u,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:Kkt,metadata:{source:"url"}})}}const eCt=()=>["settings"],tCt=()=>{const e=Du(),t=pi(rI),n=RO({queryKey:eCt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await Sr.get("/settings")).data,staleTime:1e3*60*60*24});return N.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(KZe(r.yorkieIntelligence)),e(JZe(r.fileUpload))},[e,n.data,n.isSuccess]),n};Xkt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.0.0",integrations:[new BTt({routingInstrumentation:Jkt()})],tracesSampleRate:1});const nCt=Y9e(u2t);Sr.defaults.baseURL="https://codepair-api.yorkie.dev";function rCt(){return tCt(),null}function iCt(){const e=pi(PF),t=TO("(prefers-color-scheme: dark)"),n=N.useMemo(()=>{const a=t?"dark":"light";return Y$({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=p2t(),i=N.useMemo(()=>new WBe({queryCache:new Nue({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return I.jsx(ZBe,{client:i,children:I.jsx(h2t,{children:I.jsxs(I4e,{theme:n,children:[I.jsx(E6e,{}),I.jsx(rCt,{}),I.jsx(Ts,{minHeight:"100vh",children:I.jsx(i$e,{router:nCt})})]})})})}var tq={},nq={};nq.__esModule=!0;nq.default=oCt;function o_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o_=function(n){return typeof n}:o_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},o_(e)}function E7(){}var aCt={getItem:E7,setItem:E7,removeItem:E7};function sCt(e){if((typeof self>"u"?"undefined":o_(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function oCt(e){var t="".concat(e,"Storage");return sCt(t)?self[t]:aCt}tq.__esModule=!0;tq.default=cCt;var lCt=uCt(nq);function uCt(e){return e&&e.__esModule?e:{default:e}}function cCt(e){var t=(0,lCt.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var Fve=void 0,dCt=fCt(tq);function fCt(e){return e&&e.__esModule?e:{default:e}}var hCt=(0,dCt.default)("local");Fve=hCt;var rq="persist:",Bve="persist/FLUSH",iq="persist/REHYDRATE",Uve="persist/PAUSE",zve="persist/PERSIST",jve="persist/PURGE",Hve="persist/REGISTER",pCt=-1;function l_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l_=function(n){return typeof n}:l_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l_(e)}function uie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mCt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kCt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var CCt=5e3;function ACt(e,t){var n=e.version!==void 0?e.version:pCt;e.debug;var r=e.stateReconciler===void 0?bCt:e.stateReconciler,i=e.getStoredState||OCt,a=e.timeout!==void 0?e.timeout:CCt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(c,f){var h=c||{},g=h._persist,b=TCt(h,["_persist"]),S=b;if(f.type===zve){var E=!1,w=function(B,L){E||(f.rehydrate(e.key,B,L),E=!0)};if(a&&setTimeout(function(){!E&&w(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=yCt(e)),g)return Ch({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(D){var B=e.migrate||function(L,F){return Promise.resolve(L)};B(D,n).then(function(L){w(L)},function(L){w(void 0,L)})},function(D){w(void 0,D)}),Ch({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===jve)return o=!0,f.result(ECt(e)),Ch({},t(S,f),{_persist:g});if(f.type===Bve)return f.result(s&&s.flush()),Ch({},t(S,f),{_persist:g});if(f.type===Uve)l=!0;else if(f.type===iq){if(o)return Ch({},S,{_persist:Ch({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,C=r!==!1&&k!==void 0?r(k,c,x,e):x,R=Ch({},C,{_persist:Ch({},g,{rehydrated:!0})});return u(R)}}}if(!g)return t(c,f);var A=t(S,f);return A===S?c:u(Ch({},A,{_persist:g}))}}function die(e){return ICt(e)||RCt(e)||_Ct()}function _Ct(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function RCt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function ICt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Vve,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Hve:return P9({},t,{registry:[].concat(die(t.registry),[n.key])});case iq:var r=t.registry.indexOf(n.key),i=die(t.registry);return i.splice(r,1),P9({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function PCt(e,t,n){var r=n||!1,i=_F(NCt,Vve,t&&t.enhancer?t.enhancer:void 0),a=function(u){i.dispatch({type:Hve,key:u})},s=function(u,c,f){var h={type:iq,payload:c,err:f,key:u};e.dispatch(h),i.dispatch(h),r&&o.getState().bootstrapped&&(r(),r=!1)},o=P9({},i,{purge:function(){var u=[];return e.dispatch({type:jve,result:function(f){u.push(f)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Bve,result:function(f){u.push(f)}}),Promise.all(u)},pause:function(){e.dispatch({type:Uve})},persist:function(){e.dispatch({type:zve,register:a,rehydrate:s})}});return t&&t.manualPersist||o.persist(),o}const MCt=Hle({auth:Cft,config:lFe,user:RBe,editor:ABe,workspace:gUe,document:uUe,setting:eXe}),LCt={key:"root",storage:Fve,whitelist:["auth","config"]},$Ct=ACt(LCt,MCt),Wve=z$e({reducer:$Ct,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function u_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u_=function(n){return typeof n}:u_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},u_(e)}function FCt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hie(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(Yve);var Zve={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,c){return u>0&&u+l.length!==c.length&&l.search(t)>-1&&c.charAt(u-2)!==":"&&(c.charAt(u+l.length)!=="-"||c.charAt(u-1)==="-")&&c.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=o||"";return l&&(c=n(o)),u&&(c=a(c)),c}})(Zve);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(Yve),n=s(Zve),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(Q){return Q&&Q.__esModule?Q:{default:Q}}function o(Q,H){if(Q==null)return{};var J=l(Q,H),K,X;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(Q);for(X=0;X=0)&&Object.prototype.propertyIsEnumerable.call(Q,K)&&(J[K]=Q[K])}return J}function l(Q,H){if(Q==null)return{};var J={},K=Object.keys(Q),X,te;for(te=0;te=0)&&(J[X]=Q[X]);return J}function u(Q){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},u(Q)}function c(Q){return g(Q)||h(Q)||x(Q)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(Q){if(typeof Symbol<"u"&&Q[Symbol.iterator]!=null||Q["@@iterator"]!=null)return Array.from(Q)}function g(Q){if(Array.isArray(Q))return k(Q)}function b(Q,H){var J=Object.keys(Q);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(Q);H&&(K=K.filter(function(X){return Object.getOwnPropertyDescriptor(Q,X).enumerable})),J.push.apply(J,K)}return J}function S(Q){for(var H=1;HQ.length)&&(H=Q.length);for(var J=0,K=new Array(H);J2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!H._hasLoadedGA){var te=document.createElement("script");te.async=!0,te.src="".concat(X,"?id=").concat(J),K&&te.setAttribute("nonce",K),document.body.appendChild(te),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},H._hasLoadedGA=!0}}),L(this,"_toGtagOptions",function(J){if(J){var K={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},X=Object.entries(J).reduce(function(te,z){var Te=E(z,2),be=Te[0],ee=Te[1];return K[be]?te[K[be]]=ee:te[be]=ee,te},{});return X}}),L(this,"initialize",function(J){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!J)throw new Error("Require GA_MEASUREMENT_ID");var X=typeof J=="string"?[{trackingId:J}]:J;H._currentMeasurementId=X[0].trackingId;var te=K.gaOptions,z=K.gtagOptions,Te=K.nonce,be=K.testMode,ee=be===void 0?!1:be,ye=K.gtagUrl;if(H._testMode=ee,ee||H._loadGA(H._currentMeasurementId,Te,ye),H.isInitialized||(H._gtag("js",new Date),X.forEach(function(_e){var Ie=S(S(S({},H._toGtagOptions(S(S({},te),_e.gaOptions))),z),_e.gtagOptions);Object.keys(Ie).length?H._gtag("config",_e.trackingId,Ie):H._gtag("config",_e.trackingId)})),H.isInitialized=!0,!ee){var Oe=c(H._queueGtag);for(H._queueGtag=[],H._isQueuing=!1;Oe.length;){var ie=Oe.shift();H._gtag.apply(H,c(ie)),ie[0]==="get"&&(H._isQueuing=!0)}}}),L(this,"set",function(J){if(!J){console.warn("`fieldsObject` is required in .set()");return}if(u(J)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(J).length===0&&console.warn("empty `fieldsObject` given to .set()"),H._gaCommand("set",J)}),L(this,"_gaCommandSendEvent",function(J,K,X,te,z){H._gtag("event",K,S(S({event_category:J,event_label:X,value:te},z&&{non_interaction:z.nonInteraction}),H._toGtagOptions(z)))}),L(this,"_gaCommandSendEventParameters",function(){for(var J=arguments.length,K=new Array(J),X=0;X1?K-1:0),te=1;te{S6("cls",{metric:e}),hve=e})}function mTt(){return uTt(e=>{S6("fid",{metric:e}),pve=e})}function gTt(){return cTt(e=>{S6("lcp",{metric:e}),mve=e})}function KQ(e,t,n,r,i=!1){gve(e,t);let a;return S5[e]||(a=n(),S5[e]=!0),r&&t({metric:r}),bve(e,t,i?a:void 0)}function bTt(e){const t={};e==="event"&&(t.durationThreshold=0),v6(e,n=>{S6(e,{entries:n})},t)}function gve(e,t){iw[e]=iw[e]||[],iw[e].push(t)}function bve(e,t,n){return()=>{n&&n();const r=iw[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function S7(e){return typeof e=="number"&&isFinite(e)}function pO(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const yTt=2147483647;function ns(e){return e/1e3}function yve(){return ai&&ai.addEventListener&&ai.performance}let rie=0,Ra={},of,aw;function vTt(){const e=yve();if(e&&Hf){e.mark&&ai.performance.mark("sentry-tracing-init");const t=xTt(),n=ETt(),r=wTt();return()=>{t(),n(),r()}}return()=>{}}function OTt(){XQ("longtask",({entries:e})=>{for(const t of e){const n=iS();if(!n)return;const r=ns(Hf+t.startTime),i=ns(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function STt(){XQ("event",({entries:e})=>{for(const t of e){const n=iS();if(!n)return;if(t.name==="click"){const r=ns(Hf+t.startTime),i=ns(t.duration),a={description:kx(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=wye(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function ETt(){return dTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ia&&Pt.log("[Measurements] Adding CLS"),Ra.cls={value:e.value,unit:""},aw=t)},!0)}function wTt(){return fTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ia&&Pt.log("[Measurements] Adding LCP"),Ra.lcp={value:e.value,unit:"millisecond"},of=t)},!0)}function xTt(){return hTt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ns(Hf),r=ns(t.startTime);ia&&Pt.log("[Measurements] Adding FID"),Ra.fid={value:e.value,unit:"millisecond"},Ra["mark.fid"]={value:n+r,unit:"second"}})}function TTt(e){const t=yve();if(!t||!ai.performance.getEntries||!Hf)return;ia&&Pt.log("[Tracing] Adding & adjusting spans using Performance API");const n=ns(Hf),r=t.getEntries();let i,a;const{op:s,start_timestamp:o}=Zo(e);if(r.slice(rie).forEach(l=>{const u=ns(l.startTime),c=ns(l.duration);if(!(e.op==="navigation"&&o&&n+u{if(!Ra[u]||!o||n>=o)return;const c=Ra[u].value,f=n+ns(c),h=Math.abs((f-o)*1e3),g=h-c;ia&&Pt.log(`[Measurements] Normalized ${u} from ${c} to ${h} (${g})`),Ra[u].value=h});const l=Ra["mark.fid"];l&&Ra.fid&&(pO(e,{description:"first input delay",endTimestamp:l.value+ns(Ra.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete Ra["mark.fid"]),"fcp"in Ra||delete Ra.cls,Object.keys(Ra).forEach(u=>{Sxt(u,Ra[u].value,Ra[u].unit)}),ITt(e)}of=void 0,aw=void 0,Ra={}}function kTt(e,t,n,r,i){const a=i+n,s=a+r;return pO(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function CTt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{r4(e,t,r,n)}),r4(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),r4(e,t,"fetch",n,"cache","domainLookupStart"),r4(e,t,"domainLookup",n,"DNS"),ATt(e,t,n)}function r4(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||pO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ns(o),endTimestamp:r+ns(s)})}function ATt(e,t,n){t.responseEnd&&(pO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ns(t.requestStart),endTimestamp:n+ns(t.responseEnd)}),pO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ns(t.responseStart),endTimestamp:n+ns(t.responseEnd)}))}function _Tt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=a_(n),o={};E7(o,t,"transferSize","http.response_transfer_size"),E7(o,t,"encodedBodySize","http.response_content_length"),E7(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(ai.location.origin);const l=a+r,u=l+i;pO(e,{description:n.replace(ai.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function RTt(e){const t=ai.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),S7(n.rtt)&&(Ra["connection.rtt"]={value:n.rtt,unit:"millisecond"})),S7(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),S7(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function ITt(e){of&&(ia&&Pt.log("[Measurements] Adding LCP Data"),of.element&&e.setTag("lcp.element",kx(of.element)),of.id&&e.setTag("lcp.id",of.id),of.url&&e.setTag("lcp.url",of.url.trim().slice(0,200)),e.setTag("lcp.size",of.size)),aw&&aw.sources&&(ia&&Pt.log("[Measurements] Adding CLS Data"),aw.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,kx(t.node))))}function E7(e,t,n,r){const i=t[n];i!=null&&i0&&h.setAttribute("http.response_content_length",b)}}else e.error&&h.setStatus("internal_error");h.end(),delete r[f]}return}const s=kp(),o=eo(),{method:l,url:u}=e.fetchData,c=a?tve({name:`${l} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":l,[jy]:i},op:"http.client"}):void 0;if(c&&(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c),n(e.fetchData.url)&&o){const f=e.args[0];e.args[1]=e.args[1]||{};const h=e.args[1];h.headers=PTt(f,o,s,h,c)}return c}function PTt(e,t,n,r,i){const a=i||n.getSpan(),s=j1(),{traceId:o,spanId:l,sampled:u,dsc:c}={...s.getPropagationContext(),...n.getPropagationContext()},f=a?m6(a):HQ(o,l,u),h=Bye(c||(a?_x(a):b6(o,t,n))),g=r.headers||(typeof Request<"u"&&pp(e,Request)?e.headers:void 0);if(g)if(typeof Headers<"u"&&pp(g,Headers)){const b=new Headers(g);return b.append("sentry-trace",f),h&&b.append(k9,h),b}else if(Array.isArray(g)){const b=[...g,["sentry-trace",f]];return h&&b.push([k9,h]),b}else{const b="baggage"in g?g.baggage:void 0,S=[];return Array.isArray(b)?S.push(...b):b&&S.push(b),h&&S.push(h),{...g,"sentry-trace":f,baggage:S.length>0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:h}}const I9=["localhost",/^\/(?!\/)/],D9={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:I9,tracePropagationTargets:I9};function MTt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:D9.traceFetch,traceXHR:D9.traceXHR,...e},o=typeof a=="function"?a:c=>!0,l=c=>BTt(c,r||i),u={};t&&Dye(c=>{const f=NTt(c,o,l,u);s&&f&&iie(f)}),n&&Mye(c=>{const f=UTt(c,o,l,u);s&&f&&iie(f)})}function LTt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function iie(e){const{url:t}=Zo(e).data||{};if(!t||typeof t!="string")return;const n=XQ("resource",({entries:r})=>{r.forEach(i=>{LTt(i)&&i.name.endsWith(t)&&(FTt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function $Tt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function tf(e=0){return((Hf||performance.timeOrigin)+e)/1e3}function FTt(e){const{name:t,version:n}=$Tt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Hf?[...r,["http.request.redirect_start",tf(e.redirectStart)],["http.request.fetch_start",tf(e.fetchStart)],["http.request.domain_lookup_start",tf(e.domainLookupStart)],["http.request.domain_lookup_end",tf(e.domainLookupEnd)],["http.request.connect_start",tf(e.connectStart)],["http.request.secure_connection_start",tf(e.secureConnectionStart)],["http.request.connection_end",tf(e.connectEnd)],["http.request.request_start",tf(e.requestStart)],["http.request.response_start",tf(e.responseStart)],["http.request.response_end",tf(e.responseEnd)]]:r}function BTt(e,t){return ak(e,t||I9)}function UTt(e,t,n,r){const i=e.xhr,a=i&&i[Uy];if(!y6()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const f=i.__sentry_xhr_span_id__;if(!f)return;const h=r[f];h&&a.status_code!==void 0&&(QQ(h,a.status_code),h.end(),delete r[f]);return}const o=kp(),l=j1(),u=s?tve({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[jy]:"auto.http.browser"},op:"http.client"}):void 0;u&&(i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u);const c=eo();if(i.setRequestHeader&&n(a.url)&&c){const{traceId:f,spanId:h,sampled:g,dsc:b}={...l.getPropagationContext(),...o.getPropagationContext()},S=u?m6(u):HQ(f,h,g),w=Bye(b||(u?_x(u):b6(f,c,o)));zTt(i,S,w)}return u}function zTt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(k9,n)}catch{}}function jTt(e,t=!0,n=!0){if(!ai||!ai.location){ia&&Pt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=ai.location.href,i;t&&(i=e({name:ai.location.pathname,startTimestamp:Hf?Hf/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&zQ(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(ia&&Pt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:ai.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const HTt="BrowserTracing",VTt={...s_,markBackgroundTransactions:!0,routingInstrumentation:jTt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...D9};class WTt{constructor(t){this.name=HTt,this._hasSetTracePropagationTargets=!1,yxt(),ia&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...VTt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=vTt(),this.options.enableLongTask&&OTt(),this.options._experiments.enableInteractions&&STt()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:c,traceXHR:f,shouldCreateSpanForRequest:h,enableHTTPTimings:g,_experiments:b}=this.options,S=a&&a.tracePropagationTargets,w=S||this.options.tracePropagationTargets;ia&&this._hasSetTracePropagationTargets&&S&&Pt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(E=>{const x=this._createRouteTransaction(E);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,E,n),x},l,o),u&&rTt(),b.enableInteractions&&this._registerInteractionListener(),MTt({traceFetch:c,traceXHR:f,tracePropagationTargets:w,shouldCreateSpanForRequest:h,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){ia&&Pt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?aie("sentry-trace"):"",b=o?aie("baggage"):void 0,{traceparentData:S,dynamicSamplingContext:w}=xwt(g,b);l={...t,...S,metadata:{...t.metadata,dynamicSamplingContext:S&&!w?{}:w},trimEnd:!0}}else l={...t,trimEnd:!0};const u=typeof r=="function"?r(l):l,c=u===void 0?{...l,sampled:!1}:u;c.metadata=c.name!==l.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRouteName=c.name,this._latestRouteSource=QTt(c),c.sampled===!1&&ia&&Pt.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),ia&&Pt.log(`[Tracing] Starting ${c.op} transaction on scope`);const{location:f}=ai,h=Yre(n,c,i,a,!0,{location:f},s,o);return o&&(ai.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(ai.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(ai.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(g=>{this._collectWebVitals(),TTt(g)}),h}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=iS();if(o&&o.op&&["navigation","pageload"].includes(o.op)){ia&&Pt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){ia&&Pt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){ia&&Pt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=ai,c={name:this._latestRouteName,op:s,trimEnd:!0,data:{[yv]:this._latestRouteSource||"url"}};t=Yre(l,c,r,i,!0,{location:u},a)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function aie(e){const t=I2t(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function QTt(e){const t=e.attributes&&e.attributes[yv],n=e.data&&e.data[yv],r=e.metadata&&e.metadata.source;return t||n||r}const ui=si;let N9=0;function vve(){return N9>0}function qTt(){N9++,setTimeout(()=>{N9--})}function mO(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(UQ(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(s=>mO(s,t));return e.apply(this,a)}catch(a){throw qTt(),Jwt(s=>{s.addEventProcessor(o=>(t.mechanism&&(v9(o,void 0,void 0),Ax(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),Kwt(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Tye(r,e),Cx(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const jh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Ove(e,t){const n=JQ(e,t),r={type:t&&t.name,value:XTt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function GTt(e,t,n,r){const i=eo(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:d6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ekt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Lye(t,a)}};if(n){const o=JQ(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function w7(e,t){return{exception:{values:[Ove(e,t)]}}}function JQ(e,t){const n=t.stacktrace||t.stack||"",r=ZTt(t);try{return e(n,r)}catch{}return[]}const YTt=/Minified React error #\d+;/i;function ZTt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(YTt.test(e.message))return 1}return 0}function XTt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function KTt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=eq(e,t,i,r);return Ax(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),hO(a)}function JTt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=P9(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),hO(s)}function eq(e,t,n,r,i){let a;if(LQ(t)&&t.error)return w7(e,t.error);if(xre(t)||S2t(t)){const s=t;if("stack"in t)a=w7(e,t);else{const o=s.name||(xre(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=P9(e,l,n,r),v9(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return vye(t)?w7(e,t):fO(t)||d6(t)?(a=GTt(e,t,n,i),Ax(a,{synthetic:!0}),a):(a=P9(e,t,n,r),v9(a,`${t}`,void 0),Ax(a,{synthetic:!0}),a)}function P9(e,t,n,r){const i={};if(r&&n){const a=JQ(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if($Q(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function ekt(e,{isUnhandledRejection:t}){const n=U2t(e),r=t?"promise rejection":"exception";return LQ(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:d6(e)?`Event \`${tkt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function tkt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function nkt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:sk(r)}},a=rkt(e);return rS(i,[a])}function rkt(e){return[{type:"user_report"},e]}class ikt extends $xt{constructor(t){const n=ui.SENTRY_SDK_SOURCE||lwt();sve(t,"browser",["browser"],n),super(t),t.sendClientReports&&ui.document&&ui.document.addEventListener("visibilitychange",()=>{ui.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return KTt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return JTt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){jh&&Pt.warn("SDK not enabled, will not capture user feedback.");return}const n=nkt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){jh&&Pt.log("No outcomes to send");return}if(!this._dsn){jh&&Pt.log("No dsn provided, will not send outcomes");return}jh&&Pt.log("Sending outcomes:",t);const n=Iwt(t,this._options.tunnel&&sk(this._dsn));this._sendEnvelope(n)}}let f2;function akt(){if(f2)return f2;if(w9(ui.fetch))return f2=ui.fetch.bind(ui);const e=ui.document;let t=ui.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){jh&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return f2=t.bind(ui)}function skt(){f2=void 0}function okt(e,t=akt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return skt(),n-=s,r--,jQ(l)}}return ave(e,i)}const lkt=4;function ukt(e){function t(n){return new hu((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===lkt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return ave(e,t)}const E6="?",ckt=30,dkt=40,fkt=50;function tq(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const hkt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,pkt=/\((\S*)(?::(\d+))(?::(\d+))\)/,mkt=e=>{const t=hkt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=pkt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Sve(t[1]||E6,t[2]);return tq(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},gkt=[ckt,mkt],bkt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ykt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,vkt=e=>{const t=bkt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=ykt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||E6;return[i,r]=Sve(i,r),tq(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Okt=[fkt,vkt],Skt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ekt=e=>{const t=Skt.exec(e);return t?tq(t[2],t[1]||E6,+t[3],t[4]?+t[4]:void 0):void 0},wkt=[dkt,Ekt],xkt=[gkt,Okt,wkt],Tkt=Aye(...xkt),Sve=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:E6,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},i4=1024,Eve="Breadcrumbs",kkt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Eve,setupOnce(){},setup(n){t.console&&V2t(_kt(n)),t.dom&&q2t(Akt(n,t.dom)),t.xhr&&Mye(Rkt(n)),t.fetch&&Dye(Ikt(n)),t.history&&zQ(Dkt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Ckt(n))}}},wve=kkt;N0(Eve,wve);function Ckt(e){return function(n){eo()===e&&E1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:gm(n)},{event:n})}}function Akt(e,t){return function(r){if(eo()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>i4&&(jh&&Pt.warn(`\`dom.maxStringLength\` cannot exceed ${i4}, but a value of ${o} was configured. Sentry will use ${i4} instead.`),o=i4),typeof s=="string"&&(s=[s]);try{const u=r.event,c=Nkt(u)?u.target:u;i=kx(c,{keyAttrs:s,maxStringLength:o}),a=wye(c)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),E1(l,{event:r.event,name:r.name,global:r.global})}}function _kt(e){return function(n){if(eo()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:gwt(n.level),message:Tre(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Tre(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;E1(r,{input:n.args,level:n.level})}}function Rkt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Uy];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,c={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};E1({category:"xhr",data:c,type:"http"},f)}}function Ikt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};E1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};E1({category:"fetch",data:s,type:"http"},o)}}}function Dkt(e){return function(n){if(eo()!==e)return;let r=n.from,i=n.to;const a=a_(ui.location.href);let s=r?a_(r):void 0;const o=a_(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),E1({category:"navigation",data:{from:r,to:i}})}}function Nkt(e){return!!e&&!!e.target}const xve="Dedupe",Pkt=()=>{let e;return{name:xve,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Mkt(t,e))return jh&&Pt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Tve=Pkt;N0(xve,Tve);function Mkt(e,t){return t?!!(Lkt(e,t)||$kt(e,t)):!1}function Lkt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Cve(e,t)||!kve(e,t))}function $kt(e,t){const n=sie(t),r=sie(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Cve(e,t)||!kve(e,t))}function kve(e,t){let n=oie(e),r=oie(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Ave,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Bkt(n),lie("onerror")),t.onunhandledrejection&&(Ukt(n),lie("onunhandledrejection"))}}},_ve=Fkt;N0(Ave,_ve);function Bkt(e){Nye(t=>{const{stackParser:n,attachStacktrace:r}=Ive();if(eo()!==e||vve())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Uf(i)?Hkt(i,a,s,o):Rve(eq(n,l||i,void 0,r,!1),a,s,o);u.level="error",Wye(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Ukt(e){Pye(t=>{const{stackParser:n,attachStacktrace:r}=Ive();if(eo()!==e||vve())return;const i=zkt(t),a=FQ(i)?jkt(i):eq(n,i,void 0,r,!0);a.level="error",Wye(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function zkt(e){if(FQ(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function jkt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Hkt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=LQ(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),Rve({exception:{values:[{type:s,value:a}]}},t,n,r)}function Rve(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,f=Uf(t)&&t.length>0?t:R2t();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:c}),e}function lie(e){jh&&Pt.log(`Global Handler attached: ${e}`)}function Ive(){const e=eo();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Dve="HttpContext",Vkt=()=>({name:Dve,setupOnce(){},preprocessEvent(e){if(!ui.navigator&&!ui.location&&!ui.document)return;const t=e.request&&e.request.url||ui.location&&ui.location.href,{referrer:n}=ui.document||{},{userAgent:r}=ui.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),Nve=Vkt;N0(Dve,Nve);const Wkt="cause",Qkt=5,Pve="LinkedErrors",qkt=(e={})=>{const t=e.limit||Qkt,n=e.key||Wkt;return{name:Pve,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();k2t(Ove,s.stackParser,s.maxValueLength,n,t,r,i)}}},Mve=qkt;N0(Pve,Mve);const Gkt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Lve="TryCatch",Ykt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Lve,setupOnce(){t.setTimeout&&Gs(ui,"setTimeout",uie),t.setInterval&&Gs(ui,"setInterval",uie),t.requestAnimationFrame&&Gs(ui,"requestAnimationFrame",Zkt),t.XMLHttpRequest&&"XMLHttpRequest"in ui&&Gs(XMLHttpRequest.prototype,"send",Xkt);const n=t.eventTarget;n&&(Array.isArray(n)?n:Gkt).forEach(Kkt)}}},$ve=Ykt;N0(Lve,$ve);function uie(e){return function(...t){const n=t[0];return t[0]=mO(n,{mechanism:{data:{function:mp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Zkt(e){return function(t){return e.apply(this,[mO(t,{mechanism:{data:{function:"requestAnimationFrame",handler:mp(e)},handled:!1,type:"instrument"}})])}}function Xkt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Gs(n,i,function(a){const s={mechanism:{data:{function:i,handler:mp(a)},handled:!1,type:"instrument"}},o=UQ(a);return o&&(s.mechanism.data.handler=mp(o)),mO(a,s)})}),e.apply(this,t)}}function Kkt(e){const t=ui,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Gs(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=mO(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:mp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,mO(a,{mechanism:{data:{function:"addEventListener",handler:mp(a),target:e},handled:!1,type:"instrument"}}),s])}}),Gs(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const Jkt=[lve(),cve(),$ve(),wve(),_ve(),Mve(),Tve(),Nve()];function eCt(e){return[...Jkt]}function tCt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=eCt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),ui.SENTRY_RELEASE&&ui.SENTRY_RELEASE.id&&(e.release=ui.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:j2t(e.stackParser||Tkt),integrations:Ixt(e),transport:e.transport||(Iye()?okt:ukt)};Uxt(ikt,t),e.autoSessionTracking&&nCt()}function nCt(){if(typeof ui.document>"u"){jh&&Pt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}jre({ignoreDuration:!0}),Hre(),zQ(({from:e,to:t})=>{e!==void 0&&e!==t&&(jre({ignoreDuration:!0}),Hre())})}function rCt(e){const t={...e};sve(t,"react"),tCt(t)}const iCt={"routing.instrumentation":"react-router-v6"};function aCt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=ui&&ui.location&&ui.location.pathname;o&&u&&s({name:u,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:iCt,metadata:{source:"url"}})}}const sCt=()=>["settings"],oCt=()=>{const e=Du(),t=pi(aI),n=RO({queryKey:sCt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await Er.get("/settings")).data,staleTime:1e3*60*60*24});return N.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(iXe(r.yorkieIntelligence)),e(aXe(r.fileUpload))},[e,n.data,n.isSuccess]),n};rCt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.0.0",integrations:[new WTt({routingInstrumentation:aCt()})],tracesSampleRate:1});const lCt=t$e(m2t);Er.defaults.baseURL="https://codepair-api.yorkie.dev";function uCt(){return oCt(),null}function cCt(){const e=pi(MF),t=TO("(prefers-color-scheme: dark)"),n=N.useMemo(()=>{const a=t?"dark":"light";return Z$({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=O2t(),i=N.useMemo(()=>new XBe({queryCache:new Nue({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return I.jsx(nUe,{client:i,children:I.jsx(v2t,{children:I.jsxs(I4e,{theme:n,children:[I.jsx(E6e,{}),I.jsx(uCt,{}),I.jsx(ks,{minHeight:"100vh",children:I.jsx(c$e,{router:lCt})})]})})})}var nq={},rq={};rq.__esModule=!0;rq.default=hCt;function l_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l_=function(n){return typeof n}:l_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},l_(e)}function x7(){}var dCt={getItem:x7,setItem:x7,removeItem:x7};function fCt(e){if((typeof self>"u"?"undefined":l_(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function hCt(e){var t="".concat(e,"Storage");return fCt(t)?self[t]:dCt}nq.__esModule=!0;nq.default=gCt;var pCt=mCt(rq);function mCt(e){return e&&e.__esModule?e:{default:e}}function gCt(e){var t=(0,pCt.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var Fve=void 0,bCt=yCt(nq);function yCt(e){return e&&e.__esModule?e:{default:e}}var vCt=(0,bCt.default)("local");Fve=vCt;var iq="persist:",Bve="persist/FLUSH",aq="persist/REHYDRATE",Uve="persist/PAUSE",zve="persist/PERSIST",jve="persist/PURGE",Hve="persist/REGISTER",OCt=-1;function u_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u_=function(n){return typeof n}:u_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},u_(e)}function cie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function SCt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DCt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var NCt=5e3;function PCt(e,t){var n=e.version!==void 0?e.version:OCt;e.debug;var r=e.stateReconciler===void 0?wCt:e.stateReconciler,i=e.getStoredState||kCt,a=e.timeout!==void 0?e.timeout:NCt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(c,f){var h=c||{},g=h._persist,b=ICt(h,["_persist"]),S=b;if(f.type===zve){var w=!1,E=function(B,L){w||(f.rehydrate(e.key,B,L),w=!0)};if(a&&setTimeout(function(){!w&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=xCt(e)),g)return Ch({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(D){var B=e.migrate||function(L,F){return Promise.resolve(L)};B(D,n).then(function(L){E(L)},function(L){E(void 0,L)})},function(D){E(void 0,D)}),Ch({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===jve)return o=!0,f.result(ACt(e)),Ch({},t(S,f),{_persist:g});if(f.type===Bve)return f.result(s&&s.flush()),Ch({},t(S,f),{_persist:g});if(f.type===Uve)l=!0;else if(f.type===aq){if(o)return Ch({},S,{_persist:Ch({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,C=r!==!1&&k!==void 0?r(k,c,x,e):x,R=Ch({},C,{_persist:Ch({},g,{rehydrated:!0})});return u(R)}}}if(!g)return t(c,f);var A=t(S,f);return A===S?c:u(Ch({},A,{_persist:g}))}}function fie(e){return $Ct(e)||LCt(e)||MCt()}function MCt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function LCt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function $Ct(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Vve,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Hve:return M9({},t,{registry:[].concat(fie(t.registry),[n.key])});case aq:var r=t.registry.indexOf(n.key),i=fie(t.registry);return i.splice(r,1),M9({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function UCt(e,t,n){var r=n||!1,i=RF(BCt,Vve,t&&t.enhancer?t.enhancer:void 0),a=function(u){i.dispatch({type:Hve,key:u})},s=function(u,c,f){var h={type:aq,payload:c,err:f,key:u};e.dispatch(h),i.dispatch(h),r&&o.getState().bootstrapped&&(r(),r=!1)},o=M9({},i,{purge:function(){var u=[];return e.dispatch({type:jve,result:function(f){u.push(f)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Bve,result:function(f){u.push(f)}}),Promise.all(u)},pause:function(){e.dispatch({type:Uve})},persist:function(){e.dispatch({type:zve,register:a,rehydrate:s})}});return t&&t.manualPersist||o.persist(),o}const zCt=Hle({auth:Nft,config:pFe,user:LBe,editor:PBe,workspace:EUe,document:mUe,setting:sXe}),jCt={key:"root",storage:Fve,whitelist:["auth","config"]},HCt=PCt(jCt,zCt),Wve=q$e({reducer:HCt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function c_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c_=function(n){return typeof n}:c_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c_(e)}function VCt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pie(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(Yve);var Zve={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,c){return u>0&&u+l.length!==c.length&&l.search(t)>-1&&c.charAt(u-2)!==":"&&(c.charAt(u+l.length)!=="-"||c.charAt(u-1)==="-")&&c.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=o||"";return l&&(c=n(o)),u&&(c=a(c)),c}})(Zve);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(Yve),n=s(Zve),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(Q){return Q&&Q.__esModule?Q:{default:Q}}function o(Q,H){if(Q==null)return{};var J=l(Q,H),K,X;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(Q);for(X=0;X=0)&&Object.prototype.propertyIsEnumerable.call(Q,K)&&(J[K]=Q[K])}return J}function l(Q,H){if(Q==null)return{};var J={},K=Object.keys(Q),X,te;for(te=0;te=0)&&(J[X]=Q[X]);return J}function u(Q){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},u(Q)}function c(Q){return g(Q)||h(Q)||x(Q)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(Q){if(typeof Symbol<"u"&&Q[Symbol.iterator]!=null||Q["@@iterator"]!=null)return Array.from(Q)}function g(Q){if(Array.isArray(Q))return k(Q)}function b(Q,H){var J=Object.keys(Q);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(Q);H&&(K=K.filter(function(X){return Object.getOwnPropertyDescriptor(Q,X).enumerable})),J.push.apply(J,K)}return J}function S(Q){for(var H=1;HQ.length)&&(H=Q.length);for(var J=0,K=new Array(H);J2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!H._hasLoadedGA){var te=document.createElement("script");te.async=!0,te.src="".concat(X,"?id=").concat(J),K&&te.setAttribute("nonce",K),document.body.appendChild(te),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},H._hasLoadedGA=!0}}),L(this,"_toGtagOptions",function(J){if(J){var K={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},X=Object.entries(J).reduce(function(te,z){var Te=w(z,2),be=Te[0],ee=Te[1];return K[be]?te[K[be]]=ee:te[be]=ee,te},{});return X}}),L(this,"initialize",function(J){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!J)throw new Error("Require GA_MEASUREMENT_ID");var X=typeof J=="string"?[{trackingId:J}]:J;H._currentMeasurementId=X[0].trackingId;var te=K.gaOptions,z=K.gtagOptions,Te=K.nonce,be=K.testMode,ee=be===void 0?!1:be,ye=K.gtagUrl;if(H._testMode=ee,ee||H._loadGA(H._currentMeasurementId,Te,ye),H.isInitialized||(H._gtag("js",new Date),X.forEach(function(_e){var Ie=S(S(S({},H._toGtagOptions(S(S({},te),_e.gaOptions))),z),_e.gtagOptions);Object.keys(Ie).length?H._gtag("config",_e.trackingId,Ie):H._gtag("config",_e.trackingId)})),H.isInitialized=!0,!ee){var Oe=c(H._queueGtag);for(H._queueGtag=[],H._isQueuing=!1;Oe.length;){var ie=Oe.shift();H._gtag.apply(H,c(ie)),ie[0]==="get"&&(H._isQueuing=!0)}}}),L(this,"set",function(J){if(!J){console.warn("`fieldsObject` is required in .set()");return}if(u(J)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(J).length===0&&console.warn("empty `fieldsObject` given to .set()"),H._gaCommand("set",J)}),L(this,"_gaCommandSendEvent",function(J,K,X,te,z){H._gtag("event",K,S(S({event_category:J,event_label:X,value:te},z&&{non_interaction:z.nonInteraction}),H._toGtagOptions(z)))}),L(this,"_gaCommandSendEventParameters",function(){for(var J=arguments.length,K=new Array(J),X=0;X1?K-1:0),te=1;te - +