@scenid/react-formulator 2.4.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-6aab2f04.css +1 -0
- package/dist/index.cjs +32 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/package.json +32 -28
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import n from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import i from"@babel/runtime/regenerator";import o,{useState as a,useRef as l,useEffect as u,useContext as c,useMemo as s,createContext as f,useCallback as p,createElement as d,useLayoutEffect as h,cloneElement as g}from"react";import m from"prop-types";import{validate as v}from"@scenid/formulator";import y from"@babel/runtime/helpers/classCallCheck";import b from"@babel/runtime/helpers/createClass";import{Box as x,Typography as k,Paper as w,FormGroup as E,InputAdornment as _,FormControl as S,FormControlLabel as O,FormHelperText as C,Stack as A,TextField as j,CircularProgress as T,MenuItem as F,Checkbox as P,Switch as I,Button as R,IconButton as D,ClickAwayListener as L,List as M,ListItem as z,ListItemText as N,Alert as B,Snackbar as V,Input as q}from"@mui/material";import U from"@mui/styles/makeStyles";import H from"@babel/runtime/helpers/objectWithoutProperties";import{makeStyles as $,useTheme as W}from"@mui/styles";import{Autorenew as G,Clear as K,Add as Z,AutoFixHigh as X,Close as Y,Check as Q}from"@mui/icons-material";import J from"@babel/runtime/helpers/extends";import{DateTime as ee}from"luxon";import ne,{createFilterOptions as te}from"@mui/material/Autocomplete";import re from"@babel/runtime/helpers/typeof";import{alpha as ie}from"@mui/material/styles";var oe=function e(n,t){if(n===t)return!0;if(n&&t&&"object"==typeof n&&"object"==typeof t){if(n.constructor!==t.constructor)return!1;var r,i,o;if(Array.isArray(n)){if((r=n.length)!=t.length)return!1;for(i=r;0!=i--;)if(!e(n[i],t[i]))return!1;return!0}if(n.constructor===RegExp)return n.source===t.source&&n.flags===t.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===t.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===t.toString();if((r=(o=Object.keys(n)).length)!==Object.keys(t).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(n[a],t[a]))return!1}return!0}return n!=n&&t!=t},ae=(0).constructor,le=ae.isFinite;ae.isInteger;var ue=[].constructor.isArray;function ce(e){return null!==e&&"object"==typeof e}function se(e,n){return void 0===n&&(n=0),"string"==typeof e&&e.length>=n}function fe(e){return le(e)}function pe(e){return ue(e)}function de(e,n){return ce(e)&&n in e}var he="'\"`",ge=new(function(){function e(e){this.size=e,this.reset()}return e.prototype.reset=function(){this.oldestIndex=0,this.map={},this.cachedKeys=new Array(this.size)},e.prototype.get=function(e){return this.map[e]},e.prototype.set=function(e,n){this.map[e]=n;var t=this.cachedKeys[this.oldestIndex];void 0!==t&&delete this.map[t],this.cachedKeys[this.oldestIndex]=e,this.oldestIndex++,this.oldestIndex%=this.size},e}())(1e3);function me(e){var n=e.charAt(0),t=e.substr(-1);if(he.includes(n)||he.includes(t)){if(e.length<2||n!==t)throw new SyntaxError('Mismatching string quotation: "'+e+'"');return e.substring(1,e.length-1)}if(e.includes("["))throw new SyntaxError('Missing ] in varName "'+e+'"');return"+"===n?e.substr(1):e}function ve(e,n,t){var r=n.trim();if(""===r)return e;if(r.startsWith(".")){if(!t)throw new SyntaxError('Unexpected . at the start of "'+n+'"');if(""===(r=r.substr(1).trim()))return e}else if(t)throw new SyntaxError('Missing . at the start of "'+n+'"');if(r.endsWith("."))throw new SyntaxError('Unexpected "." at the end of "'+n+'"');for(var i=0,o=r.split(".");i<o.length;i++){var a=o[i].trim();if(""===a)throw new SyntaxError('Empty prop name when parsing "'+n+'"');e.push(a)}return e}function ye(e){if(!se(e))throw new TypeError("Cannot parse path. Expected string. Got a "+typeof e);for(var n,t,r=0,i=!1,o=new Array(0),a=0;a<e.length&&-1!==(n=e.indexOf("[",a));a=r){if(-1===(r=e.indexOf("]",n)))throw new SyntaxError('Missing ] in varName "'+e+'"');if(0===(t=e.substring(n+1,r).trim()).length)throw new SyntaxError("Unexpected token ]");r++,ve(o,e.substring(a,n),i),o.push(me(t)),i=!0}return ve(o,e.substring(r),i)}function be(e,n,t){if(void 0===t&&(t={}),!ce(t))throw new TypeError("get expects an object option. Got "+typeof t);var r=t.depth,i=void 0===r?10:r;if(!fe(i)||i<=0)throw new RangeError("Expected a positive number for depth. Got "+i);var o=Array.isArray(n)?n:ye.cached(n),a=function(){return o.join(" > ")};if(o.length>i)throw new ReferenceError("The path cannot be deeper than "+i+' levels. Got "'+a()+'"');for(var l=e,u=0,c=o;u<c.length;u++){var s=c[u];if(!de(l,s)){if(t.propsExist)throw new ReferenceError(s+' is not defined in the scope at path: "'+a()+'"');return}l=l[s]}return l}ye.cached=function(e){var n=ge.get(e);return void 0===n&&(n=ye(e),ge.set(e,n)),n};var xe=function(){function e(e,n){var t=this;if(void 0===n&&(n={}),this.tokens=e,this.options=n,this.render=function(e){void 0===e&&(e={});var n=t.tokens.varNames.length;t.cacheParsedPaths();for(var r=new Array(n),i=0;i<n;i++)r[i]=be(e,t.toPathCache[i],t.options);return t.stringify(r)},this.renderFn=function(e,n){void 0===n&&(n={});var r=t.resolveVarNames(e,n);return t.stringify(r)},this.renderFnAsync=function(e,n){return void 0===n&&(n={}),Promise.all(t.resolveVarNames(e,n)).then((function(e){return t.stringify(e)}))},!ce(e)||!pe(e.strings)||!pe(e.varNames)||e.strings.length!==e.varNames.length+1)throw new TypeError("Invalid tokens object");if(!ce(n))throw new TypeError("Options should be an object. Got a "+typeof n);n.validateVarNames&&this.cacheParsedPaths()}return e.prototype.cacheParsedPaths=function(){var e=this.tokens.varNames;if(void 0===this.toPathCache){this.toPathCache=new Array(e.length);for(var n=0;n<e.length;n++)this.toPathCache[n]=ye.cached(e[n])}},e.prototype.resolveVarNames=function(e,n){void 0===n&&(n={});var t=this.tokens.varNames;if("function"!=typeof e)throw new TypeError("Expected a resolver function. Got "+String(e));for(var r=t.length,i=new Array(r),o=0;o<r;o++)i[o]=e.call(null,t[o],n);return i},e.prototype.stringify=function(e){for(var n=this.tokens.strings,t=this.options.explicit,r=e.length,i="",o=0;o<r;o++){i+=n[o];var a=e[o];(t||null!=a)&&(i+=a)}return i+=n[r]},e}();function ke(e,n){void 0===n&&(n={});var t=function(e,n){if(void 0===n&&(n={}),!se(e))throw new TypeError("The template parameter must be a string. Got a "+typeof e);if(!ce(n))throw new TypeError("Options should be an object. Got a "+typeof n);var t=n.tags,r=void 0===t?["{{","}}"]:t,i=n.maxVarNameLength,o=void 0===i?1e3:i;if(!pe(r)||2!==r.length)throw TypeError("tags should be an array of two elements. Got "+String(r));var a=r[0],l=r[1];if(!se(a,1)||!se(l,1)||a===l)throw new TypeError('The open and close symbols should be two distinct non-empty strings. Got "'+a+'" and "'+l+'"');if(!fe(o)||o<=0)throw new Error("Expected a positive number for maxVarNameLength. Got "+o);for(var u,c,s=a.length,f=l.length,p=0,d=[],h=[],g=0;g<e.length&&-1!==(u=e.indexOf(a,g));){var m=u+s;if(-1===(p=e.substr(m,o+f).indexOf(l)))throw new SyntaxError('Missing "'+l+'" in the template for the "'+a+'" at position '+u+" within "+o+" characters");if(p+=m,0===(c=e.substring(m,p).trim()).length)throw new SyntaxError('Unexpected "'+l+'" tag found at position '+u);if(c.includes(a))throw new SyntaxError('Variable names cannot have "'+a+'". But at position '+u+'. Got "'+c+'"');h.push(c),p+=f,d.push(e.substring(g,u)),g=p}return d.push(e.substring(p)),{strings:d,varNames:h}}(e,n);return new xe(t,n)}function we(e,n,t){return ke(e,t).render(n)}var Ee=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is,i=a((function(){return t(e.getState())})),o=n(i,2),c=o[0],s=o[1],f=l(t);return f.current=t,u((function(){var n=f.current(e.getState());return e.subscribe((function(){var t=f.current(e.getState());r(n,t)||(n=t,s(t))}))}),[e,r]),c},_e=f(null),Se=function(){return c(_e)},Oe=function(){var e=c(_e);if(!e)throw new Error("useFormContext must be used within a FormulatorForm");return s((function(){return{getState:function(){return e.store.getState()},subscribe:function(n){return e.store.subscribe(n)},submitForm:e.api.submitForm,resetForm:e.api.resetForm,setFieldValue:e.api.setFieldValue,setFieldValues:e.api.setFieldValues}}),[e.api,e.store])},Ce=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,t=c(_e);if(!t)throw new Error("useFormSelector must be used within a FormulatorForm");return Ee(t.store,e,n)},Ae=f(void 0),je=function(){return c(Ae)};function Te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Fe(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Te(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Pe=function(){function e(n){y(this,e),this._state=n,this._listeners=new Set,this._batchDepth=0}return b(e,[{key:"getState",value:function(){return this._state}},{key:"setState",value:function(e){this._state="function"==typeof e?e(this._state):Fe(Fe({},this._state),e),0===this._batchDepth&&this._notify()}},{key:"batch",value:function(e){this._batchDepth++;try{e()}finally{this._batchDepth--,0===this._batchDepth&&this._notify()}}},{key:"_notify",value:function(){this._listeners.forEach((function(e){return e()}))}},{key:"subscribe",value:function(e){var n=this;return this._listeners.add(e),function(){return n._listeners.delete(e)}}}]),e}(),Ie=function(e){var n=e.label,t=e.labelVariant,r=void 0===t?"h5":t,i=e.desc,a=e.descVariant,l=void 0===a?"body2":a,u=e.textAlign,c=void 0===u?"left":u;return!(!n&&!i)&&o.createElement(x,{style:{width:"100%",display:"flex",flexDirection:"column"}},n&&o.createElement(x,{mb:2},o.createElement(k,{variant:r,align:c},n)),i&&o.createElement(x,{mb:2},o.createElement(k,{variant:l,align:c},i)))};Ie.propTypes={label:m.string,labelVariant:m.oneOf(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),desc:m.string,descVariant:m.oneOf(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),textAlign:m.oneOf(["left","center","right"])};var Re=function(e){var n=e.label,t=e.labelVariant,r=e.desc,i=e.descVariant,a=e.textAlign,l=e.children;return o.createElement(x,{mb:2},o.createElement(w,{elevation:0},o.createElement(x,{p:2},o.createElement(Ie,{label:n,labelVariant:t,desc:r,descVariant:i,textAlign:a}),l)))};Re.propTypes={label:m.string,labelVariant:m.oneOf(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),desc:m.string,descVariant:m.oneOf(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),textAlign:m.oneOf(["left","center","right"]),children:m.node};var De=U((function(e){return{formSectionBlock:{"&:not(:last-child)":{marginBottom:e.spacing(3)}}}})),Le=function(e){var n=e.label,t=e.labelVariant,r=e.desc,i=e.descVariant,a=e.textAlign,l=e.children,u=De();return o.createElement(x,{className:u.formSectionBlock},o.createElement(Ie,{label:n,labelVariant:t,desc:r,descVariant:i,textAlign:a}),l)};Le.propTypes={label:m.string,labelVariant:m.oneOf(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),desc:m.string,descVariant:m.oneOf(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),textAlign:m.oneOf(["left","center","right"]),children:m.node};var Me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ze(e){var n={exports:{}};return e(n,n.exports),n.exports
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/}var Ne=ze((function(e){!function(){var n={}.hasOwnProperty;function t(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=t.apply(null,i);a&&e.push(a)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var l in i)n.call(i,l)&&i[l]&&e.push(l);else e.push(i.toString())}}return e.join(" ")}e.exports?(t.default=t,e.exports=t):window.classNames=t}()})),Be=["prepend","append","componentProps"];function Ve(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function qe(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ve(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Ue=$((function(e){return{error:{color:e.palette.error.main}}})),He=function(e){var n,r=e.variant,i=e.formVariant,a=e.type,l=e.name,u=e.label,c=e.component,s=e.componentProps,f=e.defaultValue,p=e.value,d=e.options,h=e.hasErrors,g=e.errors,m=e.required,v=e.disabled,y=e.validating,b=e.dirty,x=e.onChange,k=Ue(),w=qe(qe({formVariant:i,name:l,label:u,defaultValue:f,value:p,options:d,required:m,disabled:v},s),{},{onChange:x}),E="@@render"===a;if(y&&(w.endAdornment=[o.createElement(_,{position:"end"},o.createElement(G,null))]),E)try{var A=c.props||{};n=o.cloneElement(c,qe(qe(qe({variant:r},w),A),{},{label:u,hasErrors:h,errors:g,dirty:b}))}catch(e){throw new Error('error creating control for field "'.concat(l,'": ').concat(e.message))}else try{n=o.createElement(c,qe({variant:r},w))}catch(e){throw new Error('error creating control for field "'.concat(l,'": ').concat(e.message))}var j="boolean"===a,T=j&&"buttons"===w.variant,F="array"===a;return F||E?n:o.createElement(S,{className:"data-card-field",error:b&&h,variant:r,margin:"dense",fullWidth:!0,required:m},j&&!T&&o.createElement(O,{className:Ne(t({},k.error,b&&h)),control:n,label:u,labelPlacement:w.labelPlacement||"end"}),(!j&&!F&&!E||T)&&n,b&&!v&&h&&o.createElement(C,null,g.map((function(e){return e.message})).join(". ")))};He.propTypes={variant:m.oneOf(["standard","filled","outlined"]),formVariant:m.oneOf(["block","card"]),component:m.any.isRequired,componentProps:m.object,type:m.string.isRequired,name:m.string.isRequired,label:m.oneOfType([m.string,m.bool]),defaultValue:m.oneOfType([m.string,m.number,m.bool,m.array,m.object]),value:m.oneOfType([m.string,m.number,m.bool,m.array,m.object]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.any})),hasErrors:m.bool,errors:m.array,validating:m.bool,dirty:m.bool,required:m.bool,disabled:m.bool,onChange:m.func.isRequired};var $e=function(e){var n=e.prepend,t=e.append,r=e.componentProps,i=H(e,Be),a=qe({componentProps:r},i);return"hidden"===(null==r?void 0:r.type)?o.createElement("input",{type:"hidden",name:i.name,value:i.value}):o.createElement(E,null,n,o.createElement(He,a),t)};$e.propTypes={variant:m.oneOf(["standard","filled","outlined"]),component:m.any.isRequired,componentProps:m.object,type:m.string.isRequired,name:m.string.isRequired,label:m.oneOfType([m.string,m.bool]),value:m.oneOfType([m.string,m.number,m.bool,m.array,m.object]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.any})),prepend:m.array,append:m.array,hasErrors:m.bool,errors:m.array,validating:m.bool,required:m.bool,dirty:m.bool,onChange:m.func.isRequired};var We=function(e){var n=e.type,t=e.name,r=e.label,i=e.variant,a=e.value,l=e.defaultValue,u=e.required,c=e.loading,s=e.disabled,f=e.onChange,p=function(e){f&&f({target:{name:t,value:e}})};return o.createElement(A,null,o.createElement(k,{mb:1},r),o.createElement(A,{direction:"row",sx:{flex:"1 1 auto",width:"100%"}},o.createElement(j,{sx:{flex:"1 1 auto"},type:n,name:"".concat(t,".start"),label:"von",variant:i,InputLabelProps:{shrink:!0},value:(null==a?void 0:a.start)||(null==l?void 0:l.start)||"",max:(null==a?void 0:a.end)||(null==l?void 0:l.end)||"",required:u,disabled:s||c,onChange:function(e){var n=structuredClone(a||{});n.start=e.target.value,p(n)}}),o.createElement(x,{sx:{display:"flex",justifyContent:"center",alignItems:"center",ml:2,mr:2}},o.createElement(k,{color:"GrayText"},"–")),o.createElement(j,{sx:{flex:"1 1 auto"},type:n,name:"".concat(t,".end"),label:"bis",variant:i,InputLabelProps:{shrink:!0},value:(null==a?void 0:a.end)||(null==l?void 0:l.end)||"",min:(null==a?void 0:a.start)||(null==l?void 0:l.start)||"",required:u,disabled:s||c,onChange:function(e){var n=structuredClone(a||{});n.end=e.target.value,p(n)}})))};We.propTypes={type:m.string,name:m.string,label:m.string,variant:m.string,value:m.object,defaultValue:m.string,required:m.bool,loading:m.bool,disabled:m.bool,onChange:m.func};var Ge=function(e){var n=e.type,t=e.name,r=e.label,i=e.variant,a=e.value,l=e.defaultValue,u=e.multiline,c=e.minRows,s=e.range,f=e.required,p=e.loading,d=e.disabled,h=e.onChange,g={};return"date"!==n&&"datetime-local"!==n||(g.InputLabelProps={shrink:!0}),s?o.createElement(We,{type:n,name:t,label:r,variant:i,value:a||l||"",required:f,disabled:d||p,onChange:h||function(){}}):o.createElement(j,J({type:n,name:t,label:r,variant:i,value:a||l||"",multiline:u,minRows:c,range:s,required:f,disabled:d||p,onChange:h||function(){}},g))};Ge.propTypes={type:m.string,name:m.string,label:m.string,variant:m.string,value:m.string,defaultValue:m.string,multiline:m.bool,minRows:m.number,range:m.bool,required:m.bool,loading:m.bool,disabled:m.bool,onChange:m.func};var Ke=function(e,n){return void 0===e||Number.isNaN(e)||""===e?"":n&&!Number.isSafeInteger(n)?parseFloat(e,10):parseInt(e,10)},Ze=["name","value","min","max","step","onChange"],Xe=function(e){var n=e.name,t=e.value,r=e.min,i=e.max,a=e.step,l=e.onChange,u=H(e,Ze);return o.createElement(j,J({name:n,type:"number",value:Ke(t,a),inputProps:{min:r,max:i,step:a},onChange:function(e){return l({target:{name:n,value:Ke(e.target.value,a)}})}},u))};Xe.propTypes={name:m.string.isRequired,min:m.number,max:m.number,step:m.number,value:m.oneOfType([m.number,m.string]),onChange:m.func.isRequired};var Ye=function(e,n){var t=ee.DATETIME_FULL;return n&&(t="string"==typeof n?ee[n]:n),ee.fromISO(e).toLocaleString(t)},Qe=function(e){var n=e.value,t=e.type,r=e.renderFormat,i=e.range,a=e.multiline,l=n;return"date"!==t&&"datetime-local"!==t||(l=i?"".concat(Ye((null==n?void 0:n.start)||"",r)," - ").concat(Ye((null==n?void 0:n.end)||"",r)):Ye(n,r)),o.createElement(k,{variant:"body1",style:{whiteSpace:a?"pre-line":"inherit"}},l)};Qe.propTypes={value:m.oneOfType([m.number,m.string]),type:m.string,range:m.bool,renderFormat:m.oneOfType([m.string,m.object]),multiline:m.bool};var Je=te(),en=function(e){var n=e.id,r=e.label,i=e.variant,a=e.loading,l=e.required,u=e.disabled,c=e.allowCreate,s=e.options,f=e.searchKey,p=e.renderOption,d=e.renderNewOption,h=e.value,g=e.onOpen,m=e.onClose,v=e.onChange,y=e.onInputChange;return o.createElement(ne,{id:n,value:h||"",fullWidth:!0,disabled:u,onOpen:g,onClose:m,onChange:function(e,n){"string"==typeof n?c||!Array.isArray(s)||s.find((function(e){return e.entry===n}))?v(t({},f,n)):v(void 0):c&&n&&n.inputValue?v(t({},f,n.inputValue)):v(n)},filterOptions:function(e,n){var r=Je(e,n);return c&&""!==n.inputValue&&r.push(t({inputValue:n.inputValue},f,d(n.inputValue))),r},selectOnFocus:!0,clearOnBlur:!0,handleHomeEndKeys:!0,options:s,freeSolo:c,getOptionLabel:function(e){return"string"==typeof e?c||!Array.isArray(s)||s.find((function(n){return n.entry===e}))?e:"":null!=e&&e.inputValue?null==e?void 0:e.inputValue:e[f]},isOptionEqualToValue:function(e,n){return e[f]===n},renderOption:p,renderInput:function(e){return function(e,n){var t=e.required,r=e.label,i=e.onInputChange,a=e.variant,l=e.loading,u=n.InputProps||{};return l&&(u={endAdornment:o.createElement(_,{position:"end"},o.createElement(T,{size:20,thickness:4}))}),o.createElement(j,J({},n,{required:t,label:r,variant:a,onChange:i,InputProps:u}))}({required:l,disabled:u,label:r,onInputChange:y,variant:i,loading:a},e)}})};en.propTypes={id:m.string,label:m.string.isRequired,variant:m.string,loading:m.bool,required:m.bool,disabled:m.bool,allowCreate:m.bool,options:m.array.isRequired,searchKey:m.string.isRequired,renderOption:m.func.isRequired,renderNewOption:m.func.isRequired,value:m.oneOfType([m.string,m.object]),onOpen:m.func,onClose:m.func,onChange:m.func,onInputChange:m.func};var nn=function(e){var n=e.loading,t=e.name,r=e.label,i=e.value,a=e.options,l=e.allowCreate,u=e.dirty,c=e.hasErrors,s=e.errors,f=e.variant,d=e.required,h=e.disabled,g=e.readOnly,m=e.fetch,v=e.abort,y=e.onChange,b=p((function(e){y({target:{name:t,value:(null==e?void 0:e.entry)||""}})}),[y]);return g?o.createElement(Qe,{name:t,value:i}):a?o.createElement(S,{error:u&&c,margin:"dense",fullWidth:!0,required:d},o.createElement(en,{loading:n,label:r,variant:f,allowCreate:l,options:a,searchKey:"entry",required:d,disabled:h,renderOption:function(e,n){return o.createElement(x,J({},e,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"}}),o.createElement(k,{variant:"body1"},n.entry),void 0!==n.count&&o.createElement(k,{variant:"caption"},"".concat(n.count," Einträge")))},renderNewOption:function(e){return o.createElement(k,{variant:"body1"},o.createElement("strong",null,'"'.concat(e,'" ')),"erstellen")},value:i,onOpen:function(){b({entry:i}),m&&m()},onClose:function(){v&&v()},onChange:b}),u&&!h&&c&&o.createElement(C,null,s.map((function(e){return e.message})).join(". "))):o.createElement(S,{error:u&&c,margin:"dense",fullWidth:!0,required:d},o.createElement(j,{label:r,variant:f,value:i,disabled:!0,InputProps:{endAdornment:o.createElement(_,{position:"end"},o.createElement(T,{size:20,thickness:4}))}}))};nn.propTypes={loading:m.bool,name:m.string,label:m.string,value:m.any,options:m.arrayOf(m.shape({entry:m.string.isRequired,count:m.number})),allowCreate:m.bool,variant:m.oneOf(["standard","filled","outlined"]),required:m.bool,disabled:m.bool,readOnly:m.bool,dirty:m.bool,hasErrors:m.bool,errors:m.array,fetch:m.func,abort:m.func,onChange:m.func};var tn=["name","options","required","defaultValue","value","noSort","onChange"],rn=function(e){var n=e.name,t=e.options,r=e.required,i=e.defaultValue,a=e.value,l=e.noSort,u=e.onChange,c=H(e,tn),s=l?t:t.sort((function(e,n){return e.label.localeCompare(n.label)}));r||i||s.unshift({label:"Auswahl löschen",value:""});var f="";return void 0!==a&&(f=a),""===f&&void 0!==i&&(f=i),o.createElement(j,J({name:n,select:!0,required:r,value:f},c,{onChange:u}),s.map((function(e){var n=e.label,t=e.value;return o.createElement(F,{key:n,value:t},n)})))};rn.propTypes={name:m.string,defaultValue:m.string,value:m.string,options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.any})),required:m.bool,noSort:m.bool,onChange:m.func};var on=["type","options","autocomplete"],an=function(e){var n=e.type,t=e.options,r=e.autocomplete,i=H(e,on);return!0===r?o.createElement(nn,J({type:"autocomplete"},i,{options:t.map((function(e){return{entry:e.value}}))})):o.createElement(rn,J({type:n,options:t},i))};an.propTypes={type:m.string.isRequired,options:m.array.isRequired,autocomplete:m.bool};var ln=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},un=function(e){var n=e.variant,t=e.name,r=e.value,i=e.defaultValue,a=e.disabled,l=e.needsToBeTrue,u=e.firstOption,c=e.labelTrue,s=e.labelFalse,f=e.onChange,p=function(e){var n=e.target.checked;!0===l&&!1===n&&(n=void 0),f({target:{name:t,value:n}})},d=function(e){f({target:{name:t,value:e}})};if("checkbox"===n)return o.createElement(P,{color:"primary",name:t,checked:ln(r,i),onChange:p});if("buttons"===n){var h=o.createElement(R,{disabled:a,disableElevation:!0,variant:ln(r,i)?"outlined":"contained",color:ln(r,i)?"inherit":"primary",sx:{p:0,height:function(e){return e.spacing(7)},flex:" 1 1 auto",mr:!0===u?0:2},onClick:function(){return d(!1)}},s||"Nein"),g=o.createElement(R,{disabled:a,disableElevation:!0,variant:ln(r,i)?"contained":"outlined",color:ln(r,i)?"primary":"inherit",sx:{p:0,height:function(e){return e.spacing(7)},flex:" 1 1 auto",mr:!0===u?2:0},onClick:function(){return d(!0)}},c||"Ja");return o.createElement(A,{direction:"row"},!0===u&&o.createElement(o.Fragment,null,g,h),!0!==u&&o.createElement(o.Fragment,null,h,g))}return o.createElement(I,{color:"primary",name:t,checked:ln(r,i),onChange:p})};un.propTypes={variant:m.string,name:m.string.isRequired,value:m.bool,defaultValue:m.bool,disabled:m.bool,needsToBeTrue:m.bool,firstOption:m.bool,labelTrue:m.string,labelFalse:m.string,onChange:m.func.isRequired};var cn=function(t){var r=t.variant,i=t.entries,l=t.options,u=t.blockedOptions,c=t.onChange,s=a(!1),f=n(s,2),p=f[0],d=f[1],h=a(""),g=n(h,2),m=g[0],v=g[1],y=a(""),b=n(y,2),w=b[0],E=b[1],_=function(){d(!1),v(""),E("")},O=function(){m.length>0&&(c([].concat(e(i),[m])),v(""))};return o.createElement(x,{width:"100%"},(!i||0===(null==i?void 0:i.length))&&o.createElement(x,{mt:1,pl:2},o.createElement(k,{variant:"body2",color:"textSecondary"},"Keine Einträge vorhanden")),i.map((function(n,t){return o.createElement(x,{key:"entry-".concat(t),sx:function(e){return{display:"flex",alignItems:"center",width:"100%",mt:1,px:1.5,py:.75,border:"1px solid ".concat(e.palette.grey[400]),borderRadius:1}}},o.createElement(k,{variant:"body2",sx:function(e){return{mr:1.5,px:.5,color:e.palette.text.secondary,fontSize:e.typography.caption.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1}}},t+1),o.createElement(k,{variant:"body1",sx:{flex:"1 1 auto"}},(r=n,(a=l)&&void 0!==a[r]?a[r]:r)),o.createElement(D,{size:"small",onClick:function(){return n=t,(r=e(i)).splice(n,1),void c(r);var n,r}},o.createElement(K,{fontSize:"small"})));var r,a})),!p&&o.createElement(x,{mt:1},o.createElement(R,{color:"primary",variant:"outlined",onClick:function(){return d(!0)}},"Einträge hinzufügen")),p&&!l&&o.createElement(x,{width:"100%",display:"flex",alignItems:"stretch",mt:1,gap:1},o.createElement(L,{onClickAway:function(){""===m&&d(!1)}},o.createElement(S,{variant:"filled",fullWidth:!0},o.createElement(j,{label:"Neuer Eintrag",variant:r,value:m,onKeyDown:function(e){"Enter"===e.key&&O(),"Escape"===e.key&&_()},onChange:function(e){return v(e.target.value)}}))),o.createElement(R,{variant:"outlined",color:"primary",sx:{minWidth:0,px:2},onClick:O},o.createElement(Z,null))),p&&l&&o.createElement(x,{width:"100%",display:"flex",alignItems:"stretch",mt:1},o.createElement(S,{variant:"filled",fullWidth:!0},o.createElement(j,{label:"Eintrag auswählen",select:!0,variant:r,value:w,onBlur:_,onChange:function(n){E(""),c([].concat(e(i),[n.target.value]))}},Object.entries(l).sort((function(e,n){return e[1].localeCompare(n[1])})).map((function(e){return o.createElement(F,{key:"option-".concat(e[0]),value:e[0],disabled:u.includes(e[0])},e[1])}))))))};cn.propTypes={variant:m.oneOf(["standard","filled","outlined"]),entries:m.array.isRequired,options:m.array.isRequired,blockedOptions:m.array.isRequired,onChange:m.func.isRequired};
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Lodash <https://lodash.com/>
|
|
10
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
11
|
+
* Released under MIT license <https://lodash.com/license>
|
|
12
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
13
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
14
|
+
*/
|
|
15
|
+
var sn=ze((function(e,n){(function(){var t,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=16,l=32,u=64,c=128,s=256,f=1/0,p=9007199254740991,d=NaN,h=4294967295,g=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",l],["partialRight",u],["rearg",s]],m="[object Arguments]",v="[object Array]",y="[object Boolean]",b="[object Date]",x="[object Error]",k="[object Function]",w="[object GeneratorFunction]",E="[object Map]",_="[object Number]",S="[object Object]",O="[object Promise]",C="[object RegExp]",A="[object Set]",j="[object String]",T="[object Symbol]",F="[object WeakMap]",P="[object ArrayBuffer]",I="[object DataView]",R="[object Float32Array]",D="[object Float64Array]",L="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",N="[object Uint8Array]",B="[object Uint8ClampedArray]",V="[object Uint16Array]",q="[object Uint32Array]",U=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(W.source),Z=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ie=/^\s+/,oe=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",je="['’]",Te="["+we+"]",Fe="["+Ae+"]",Pe="["+Ee+"]",Ie="\\d+",Re="["+_e+"]",De="["+Se+"]",Le="[^"+we+Ae+Ie+_e+Se+Oe+"]",ze="\\ud83c[\\udffb-\\udfff]",Ne="[^"+we+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+Oe+"]",Ue="\\u200d",He="(?:"+De+"|"+Le+")",$e="(?:"+qe+"|"+Le+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Pe+"|"+ze+")"+"?",Ze="["+Ce+"]?",Xe=Ze+Ke+("(?:"+Ue+"(?:"+[Ne,Be,Ve].join("|")+")"+Ze+Ke+")*"),Ye="(?:"+[Re,Be,Ve].join("|")+")"+Xe,Qe="(?:"+[Ne+Pe+"?",Pe,Be,Ve,Te].join("|")+")",Je=RegExp(je,"g"),en=RegExp(Pe,"g"),nn=RegExp(ze+"(?="+ze+")|"+Qe+Xe,"g"),tn=RegExp([qe+"?"+De+"+"+We+"(?="+[Fe,qe,"$"].join("|")+")",$e+"+"+Ge+"(?="+[Fe,qe+He,"$"].join("|")+")",qe+"?"+He+"+"+We,qe+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ye].join("|"),"g"),rn=RegExp("["+Ue+we+Ee+Ce+"]"),on=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,an=["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"],ln=-1,un={};un[R]=un[D]=un[L]=un[M]=un[z]=un[N]=un[B]=un[V]=un[q]=!0,un[m]=un[v]=un[P]=un[y]=un[I]=un[b]=un[x]=un[k]=un[E]=un[_]=un[S]=un[C]=un[A]=un[j]=un[F]=!1;var cn={};cn[m]=cn[v]=cn[P]=cn[I]=cn[y]=cn[b]=cn[R]=cn[D]=cn[L]=cn[M]=cn[z]=cn[E]=cn[_]=cn[S]=cn[C]=cn[A]=cn[j]=cn[T]=cn[N]=cn[B]=cn[V]=cn[q]=!0,cn[x]=cn[k]=cn[F]=!1;var sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fn=parseFloat,pn=parseInt,dn="object"==typeof Me&&Me&&Me.Object===Object&&Me,hn="object"==typeof self&&self&&self.Object===Object&&self,gn=dn||hn||Function("return this")(),mn=n&&!n.nodeType&&n,vn=mn&&e&&!e.nodeType&&e,yn=vn&&vn.exports===mn,bn=yn&&dn.process,xn=function(){try{var e=vn&&vn.require&&vn.require("util").types;return e||bn&&bn.binding&&bn.binding("util")}catch(e){}}(),kn=xn&&xn.isArrayBuffer,wn=xn&&xn.isDate,En=xn&&xn.isMap,_n=xn&&xn.isRegExp,Sn=xn&&xn.isSet,On=xn&&xn.isTypedArray;function Cn(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function An(e,n,t,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];n(r,a,t(a),e)}return r}function jn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==n(e[t],t,e););return e}function Tn(e,n){for(var t=null==e?0:e.length;t--&&!1!==n(e[t],t,e););return e}function Fn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(!n(e[t],t,e))return!1;return!0}function Pn(e,n){for(var t=-1,r=null==e?0:e.length,i=0,o=[];++t<r;){var a=e[t];n(a,t,e)&&(o[i++]=a)}return o}function In(e,n){return!!(null==e?0:e.length)&&Un(e,n,0)>-1}function Rn(e,n,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(n,e[r]))return!0;return!1}function Dn(e,n){for(var t=-1,r=null==e?0:e.length,i=Array(r);++t<r;)i[t]=n(e[t],t,e);return i}function Ln(e,n){for(var t=-1,r=n.length,i=e.length;++t<r;)e[i+t]=n[t];return e}function Mn(e,n,t,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(t=e[++i]);++i<o;)t=n(t,e[i],i,e);return t}function zn(e,n,t,r){var i=null==e?0:e.length;for(r&&i&&(t=e[--i]);i--;)t=n(t,e[i],i,e);return t}function Nn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}var Bn=Gn("length");function Vn(e,n,t){var r;return t(e,(function(e,t,i){if(n(e,t,i))return r=t,!1})),r}function qn(e,n,t,r){for(var i=e.length,o=t+(r?1:-1);r?o--:++o<i;)if(n(e[o],o,e))return o;return-1}function Un(e,n,t){return n==n?function(e,n,t){var r=t-1,i=e.length;for(;++r<i;)if(e[r]===n)return r;return-1}(e,n,t):qn(e,$n,t)}function Hn(e,n,t,r){for(var i=t-1,o=e.length;++i<o;)if(r(e[i],n))return i;return-1}function $n(e){return e!=e}function Wn(e,n){var t=null==e?0:e.length;return t?Xn(e,n)/t:d}function Gn(e){return function(n){return null==n?t:n[e]}}function Kn(e){return function(n){return null==e?t:e[n]}}function Zn(e,n,t,r,i){return i(e,(function(e,i,o){t=r?(r=!1,e):n(t,e,i,o)})),t}function Xn(e,n){for(var r,i=-1,o=e.length;++i<o;){var a=n(e[i]);a!==t&&(r=r===t?a:r+a)}return r}function Yn(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}function Qn(e){return e?e.slice(0,gt(e)+1).replace(ie,""):e}function Jn(e){return function(n){return e(n)}}function et(e,n){return Dn(n,(function(n){return e[n]}))}function nt(e,n){return e.has(n)}function tt(e,n){for(var t=-1,r=e.length;++t<r&&Un(n,e[t],0)>-1;);return t}function rt(e,n){for(var t=e.length;t--&&Un(n,e[t],0)>-1;);return t}var it=Kn({"À":"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"}),ot=Kn({"&":"&","<":"<",">":">",'"':""","'":"'"});function at(e){return"\\"+sn[e]}function lt(e){return rn.test(e)}function ut(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function ct(e,n){return function(t){return e(n(t))}}function st(e,n){for(var t=-1,r=e.length,i=0,a=[];++t<r;){var l=e[t];l!==n&&l!==o||(e[t]=o,a[i++]=t)}return a}function ft(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}function pt(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=[e,e]})),t}function dt(e){return lt(e)?function(e){var n=nn.lastIndex=0;for(;nn.test(e);)++n;return n}(e):Bn(e)}function ht(e){return lt(e)?function(e){return e.match(nn)||[]}(e):function(e){return e.split("")}(e)}function gt(e){for(var n=e.length;n--&&oe.test(e.charAt(n)););return n}var mt=Kn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vt=function e(n){var oe,we=(n=null==n?gn:vt.defaults(gn.Object(),n,vt.pick(gn,an))).Array,Ee=n.Date,_e=n.Error,Se=n.Function,Oe=n.Math,Ce=n.Object,Ae=n.RegExp,je=n.String,Te=n.TypeError,Fe=we.prototype,Pe=Se.prototype,Ie=Ce.prototype,Re=n["__core-js_shared__"],De=Pe.toString,Le=Ie.hasOwnProperty,Me=0,ze=(oe=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Ne=Ie.toString,Be=De.call(Ce),Ve=gn._,qe=Ae("^"+De.call(Le).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=yn?n.Buffer:t,He=n.Symbol,$e=n.Uint8Array,We=Ue?Ue.allocUnsafe:t,Ge=ct(Ce.getPrototypeOf,Ce),Ke=Ce.create,Ze=Ie.propertyIsEnumerable,Xe=Fe.splice,Ye=He?He.isConcatSpreadable:t,Qe=He?He.iterator:t,nn=He?He.toStringTag:t,rn=function(){try{var e=po(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),sn=n.clearTimeout!==gn.clearTimeout&&n.clearTimeout,dn=Ee&&Ee.now!==gn.Date.now&&Ee.now,hn=n.setTimeout!==gn.setTimeout&&n.setTimeout,mn=Oe.ceil,vn=Oe.floor,bn=Ce.getOwnPropertySymbols,xn=Ue?Ue.isBuffer:t,Bn=n.isFinite,Kn=Fe.join,yt=ct(Ce.keys,Ce),bt=Oe.max,xt=Oe.min,kt=Ee.now,wt=n.parseInt,Et=Oe.random,_t=Fe.reverse,St=po(n,"DataView"),Ot=po(n,"Map"),Ct=po(n,"Promise"),At=po(n,"Set"),jt=po(n,"WeakMap"),Tt=po(Ce,"create"),Ft=jt&&new jt,Pt={},It=No(St),Rt=No(Ot),Dt=No(Ct),Lt=No(At),Mt=No(jt),zt=He?He.prototype:t,Nt=zt?zt.valueOf:t,Bt=zt?zt.toString:t;function Vt(e){if(tl(e)&&!$a(e)&&!(e instanceof $t)){if(e instanceof Ht)return e;if(Le.call(e,"__wrapped__"))return Bo(e)}return new Ht(e)}var qt=function(){function e(){}return function(n){if(!nl(n))return{};if(Ke)return Ke(n);e.prototype=n;var r=new e;return e.prototype=t,r}}();function Ut(){}function Ht(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function $t(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Wt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Gt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Kt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Zt(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new Kt;++n<t;)this.add(e[n])}function Xt(e){var n=this.__data__=new Gt(e);this.size=n.size}function Yt(e,n){var t=$a(e),r=!t&&Ha(e),i=!t&&!r&&Za(e),o=!t&&!r&&!i&&sl(e),a=t||r||i||o,l=a?Yn(e.length,je):[],u=l.length;for(var c in e)!n&&!Le.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xo(c,u))||l.push(c);return l}function Qt(e){var n=e.length;return n?e[Zr(0,n-1)]:t}function Jt(e,n){return Lo(Ti(e),ur(n,0,e.length))}function er(e){return Lo(Ti(e))}function nr(e,n,r){(r!==t&&!Va(e[n],r)||r===t&&!(n in e))&&ar(e,n,r)}function tr(e,n,r){var i=e[n];Le.call(e,n)&&Va(i,r)&&(r!==t||n in e)||ar(e,n,r)}function rr(e,n){for(var t=e.length;t--;)if(Va(e[t][0],n))return t;return-1}function ir(e,n,t,r){return dr(e,(function(e,i,o){n(r,e,t(e),o)})),r}function or(e,n){return e&&Fi(n,Pl(n),e)}function ar(e,n,t){"__proto__"==n&&rn?rn(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function lr(e,n){for(var r=-1,i=n.length,o=we(i),a=null==e;++r<i;)o[r]=a?t:Cl(e,n[r]);return o}function ur(e,n,r){return e==e&&(r!==t&&(e=e<=r?e:r),n!==t&&(e=e>=n?e:n)),e}function cr(e,n,r,i,o,a){var l,u=1&n,c=2&n,s=4&n;if(r&&(l=o?r(e,i,o,a):r(e)),l!==t)return l;if(!nl(e))return e;var f=$a(e);if(f){if(l=function(e){var n=e.length,t=new e.constructor(n);n&&"string"==typeof e[0]&&Le.call(e,"index")&&(t.index=e.index,t.input=e.input);return t}(e),!u)return Ti(e,l)}else{var p=mo(e),d=p==k||p==w;if(Za(e))return _i(e,u);if(p==S||p==m||d&&!o){if(l=c||d?{}:yo(e),!u)return c?function(e,n){return Fi(e,go(e),n)}(e,function(e,n){return e&&Fi(n,Il(n),e)}(l,e)):function(e,n){return Fi(e,ho(e),n)}(e,or(l,e))}else{if(!cn[p])return o?e:{};l=function(e,n,t){var r=e.constructor;switch(n){case P:return Si(e);case y:case b:return new r(+e);case I:return function(e,n){var t=n?Si(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,t);case R:case D:case L:case M:case z:case N:case B:case V:case q:return Oi(e,t);case E:return new r;case _:case j:return new r(e);case C:return function(e){var n=new e.constructor(e.source,de.exec(e));return n.lastIndex=e.lastIndex,n}(e);case A:return new r;case T:return i=e,Nt?Ce(Nt.call(i)):{}}var i}(e,p,u)}}a||(a=new Xt);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(t){l.add(cr(t,n,r,t,e,a))})):rl(e)&&e.forEach((function(t,i){l.set(i,cr(t,n,r,i,e,a))}));var g=f?t:(s?c?oo:io:c?Il:Pl)(e);return jn(g||e,(function(t,i){g&&(t=e[i=t]),tr(l,i,cr(t,n,r,i,e,a))})),l}function sr(e,n,r){var i=r.length;if(null==e)return!i;for(e=Ce(e);i--;){var o=r[i],a=n[o],l=e[o];if(l===t&&!(o in e)||!a(l))return!1}return!0}function fr(e,n,i){if("function"!=typeof e)throw new Te(r);return Po((function(){e.apply(t,i)}),n)}function pr(e,n,t,r){var i=-1,o=In,a=!0,l=e.length,u=[],c=n.length;if(!l)return u;t&&(n=Dn(n,Jn(t))),r?(o=Rn,a=!1):n.length>=200&&(o=nt,a=!1,n=new Zt(n));e:for(;++i<l;){var s=e[i],f=null==t?s:t(s);if(s=r||0!==s?s:0,a&&f==f){for(var p=c;p--;)if(n[p]===f)continue e;u.push(s)}else o(n,f,r)||u.push(s)}return u}Vt.templateSettings={escape:X,evaluate:Y,interpolate:Q,variable:"",imports:{_:Vt}},Vt.prototype=Ut.prototype,Vt.prototype.constructor=Vt,Ht.prototype=qt(Ut.prototype),Ht.prototype.constructor=Ht,$t.prototype=qt(Ut.prototype),$t.prototype.constructor=$t,Wt.prototype.clear=function(){this.__data__=Tt?Tt(null):{},this.size=0},Wt.prototype.delete=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n},Wt.prototype.get=function(e){var n=this.__data__;if(Tt){var r=n[e];return r===i?t:r}return Le.call(n,e)?n[e]:t},Wt.prototype.has=function(e){var n=this.__data__;return Tt?n[e]!==t:Le.call(n,e)},Wt.prototype.set=function(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tt&&n===t?i:n,this},Gt.prototype.clear=function(){this.__data__=[],this.size=0},Gt.prototype.delete=function(e){var n=this.__data__,t=rr(n,e);return!(t<0)&&(t==n.length-1?n.pop():Xe.call(n,t,1),--this.size,!0)},Gt.prototype.get=function(e){var n=this.__data__,r=rr(n,e);return r<0?t:n[r][1]},Gt.prototype.has=function(e){return rr(this.__data__,e)>-1},Gt.prototype.set=function(e,n){var t=this.__data__,r=rr(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this},Kt.prototype.clear=function(){this.size=0,this.__data__={hash:new Wt,map:new(Ot||Gt),string:new Wt}},Kt.prototype.delete=function(e){var n=so(this,e).delete(e);return this.size-=n?1:0,n},Kt.prototype.get=function(e){return so(this,e).get(e)},Kt.prototype.has=function(e){return so(this,e).has(e)},Kt.prototype.set=function(e,n){var t=so(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this},Zt.prototype.add=Zt.prototype.push=function(e){return this.__data__.set(e,i),this},Zt.prototype.has=function(e){return this.__data__.has(e)},Xt.prototype.clear=function(){this.__data__=new Gt,this.size=0},Xt.prototype.delete=function(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t},Xt.prototype.get=function(e){return this.__data__.get(e)},Xt.prototype.has=function(e){return this.__data__.has(e)},Xt.prototype.set=function(e,n){var t=this.__data__;if(t instanceof Gt){var r=t.__data__;if(!Ot||r.length<199)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new Kt(r)}return t.set(e,n),this.size=t.size,this};var dr=Ri(kr),hr=Ri(wr,!0);function gr(e,n){var t=!0;return dr(e,(function(e,r,i){return t=!!n(e,r,i)})),t}function mr(e,n,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],l=n(a);if(null!=l&&(u===t?l==l&&!cl(l):r(l,u)))var u=l,c=a}return c}function vr(e,n){var t=[];return dr(e,(function(e,r,i){n(e,r,i)&&t.push(e)})),t}function yr(e,n,t,r,i){var o=-1,a=e.length;for(t||(t=bo),i||(i=[]);++o<a;){var l=e[o];n>0&&t(l)?n>1?yr(l,n-1,t,r,i):Ln(i,l):r||(i[i.length]=l)}return i}var br=Di(),xr=Di(!0);function kr(e,n){return e&&br(e,n,Pl)}function wr(e,n){return e&&xr(e,n,Pl)}function Er(e,n){return Pn(n,(function(n){return Qa(e[n])}))}function _r(e,n){for(var r=0,i=(n=xi(n,e)).length;null!=e&&r<i;)e=e[zo(n[r++])];return r&&r==i?e:t}function Sr(e,n,t){var r=n(e);return $a(e)?r:Ln(r,t(e))}function Or(e){return null==e?e===t?"[object Undefined]":"[object Null]":nn&&nn in Ce(e)?function(e){var n=Le.call(e,nn),r=e[nn];try{e[nn]=t;var i=!0}catch(e){}var o=Ne.call(e);i&&(n?e[nn]=r:delete e[nn]);return o}(e):function(e){return Ne.call(e)}(e)}function Cr(e,n){return e>n}function Ar(e,n){return null!=e&&Le.call(e,n)}function jr(e,n){return null!=e&&n in Ce(e)}function Tr(e,n,r){for(var i=r?Rn:In,o=e[0].length,a=e.length,l=a,u=we(a),c=1/0,s=[];l--;){var f=e[l];l&&n&&(f=Dn(f,Jn(n))),c=xt(f.length,c),u[l]=!r&&(n||o>=120&&f.length>=120)?new Zt(l&&f):t}f=e[0];var p=-1,d=u[0];e:for(;++p<o&&s.length<c;){var h=f[p],g=n?n(h):h;if(h=r||0!==h?h:0,!(d?nt(d,g):i(s,g,r))){for(l=a;--l;){var m=u[l];if(!(m?nt(m,g):i(e[l],g,r)))continue e}d&&d.push(g),s.push(h)}}return s}function Fr(e,n,r){var i=null==(e=jo(e,n=xi(n,e)))?e:e[zo(Yo(n))];return null==i?t:Cn(i,e,r)}function Pr(e){return tl(e)&&Or(e)==m}function Ir(e,n,r,i,o){return e===n||(null==e||null==n||!tl(e)&&!tl(n)?e!=e&&n!=n:function(e,n,r,i,o,a){var l=$a(e),u=$a(n),c=l?v:mo(e),s=u?v:mo(n),f=(c=c==m?S:c)==S,p=(s=s==m?S:s)==S,d=c==s;if(d&&Za(e)){if(!Za(n))return!1;l=!0,f=!1}if(d&&!f)return a||(a=new Xt),l||sl(e)?to(e,n,r,i,o,a):function(e,n,t,r,i,o,a){switch(t){case I:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case P:return!(e.byteLength!=n.byteLength||!o(new $e(e),new $e(n)));case y:case b:case _:return Va(+e,+n);case x:return e.name==n.name&&e.message==n.message;case C:case j:return e==n+"";case E:var l=ut;case A:var u=1&r;if(l||(l=ft),e.size!=n.size&&!u)return!1;var c=a.get(e);if(c)return c==n;r|=2,a.set(e,n);var s=to(l(e),l(n),r,i,o,a);return a.delete(e),s;case T:if(Nt)return Nt.call(e)==Nt.call(n)}return!1}(e,n,c,r,i,o,a);if(!(1&r)){var h=f&&Le.call(e,"__wrapped__"),g=p&&Le.call(n,"__wrapped__");if(h||g){var k=h?e.value():e,w=g?n.value():n;return a||(a=new Xt),o(k,w,r,i,a)}}if(!d)return!1;return a||(a=new Xt),function(e,n,r,i,o,a){var l=1&r,u=io(e),c=u.length,s=io(n),f=s.length;if(c!=f&&!l)return!1;var p=c;for(;p--;){var d=u[p];if(!(l?d in n:Le.call(n,d)))return!1}var h=a.get(e),g=a.get(n);if(h&&g)return h==n&&g==e;var m=!0;a.set(e,n),a.set(n,e);var v=l;for(;++p<c;){var y=e[d=u[p]],b=n[d];if(i)var x=l?i(b,y,d,n,e,a):i(y,b,d,e,n,a);if(!(x===t?y===b||o(y,b,r,i,a):x)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var k=e.constructor,w=n.constructor;k==w||!("constructor"in e)||!("constructor"in n)||"function"==typeof k&&k instanceof k&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(n),m}(e,n,r,i,o,a)}(e,n,r,i,Ir,o))}function Rr(e,n,r,i){var o=r.length,a=o,l=!i;if(null==e)return!a;for(e=Ce(e);o--;){var u=r[o];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=r[o])[0],s=e[c],f=u[1];if(l&&u[2]){if(s===t&&!(c in e))return!1}else{var p=new Xt;if(i)var d=i(s,f,c,e,n,p);if(!(d===t?Ir(f,s,3,i,p):d))return!1}}return!0}function Dr(e){return!(!nl(e)||(n=e,ze&&ze in n))&&(Qa(e)?qe:me).test(No(e));var n}function Lr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?$a(e)?qr(e[0],e[1]):Vr(e):du(e)}function Mr(e){if(!So(e))return yt(e);var n=[];for(var t in Ce(e))Le.call(e,t)&&"constructor"!=t&&n.push(t);return n}function zr(e){if(!nl(e))return function(e){var n=[];if(null!=e)for(var t in Ce(e))n.push(t);return n}(e);var n=So(e),t=[];for(var r in e)("constructor"!=r||!n&&Le.call(e,r))&&t.push(r);return t}function Nr(e,n){return e<n}function Br(e,n){var t=-1,r=Ga(e)?we(e.length):[];return dr(e,(function(e,i,o){r[++t]=n(e,i,o)})),r}function Vr(e){var n=fo(e);return 1==n.length&&n[0][2]?Co(n[0][0],n[0][1]):function(t){return t===e||Rr(t,e,n)}}function qr(e,n){return wo(e)&&Oo(n)?Co(zo(e),n):function(r){var i=Cl(r,e);return i===t&&i===n?Al(r,e):Ir(n,i,3)}}function Ur(e,n,r,i,o){e!==n&&br(n,(function(a,l){if(o||(o=new Xt),nl(a))!function(e,n,r,i,o,a,l){var u=To(e,r),c=To(n,r),s=l.get(c);if(s)return void nr(e,r,s);var f=a?a(u,c,r+"",e,n,l):t,p=f===t;if(p){var d=$a(c),h=!d&&Za(c),g=!d&&!h&&sl(c);f=c,d||h||g?$a(u)?f=u:Ka(u)?f=Ti(u):h?(p=!1,f=_i(c,!0)):g?(p=!1,f=Oi(c,!0)):f=[]:ol(c)||Ha(c)?(f=u,Ha(u)?f=yl(u):nl(u)&&!Qa(u)||(f=yo(c))):p=!1}p&&(l.set(c,f),o(f,c,i,a,l),l.delete(c));nr(e,r,f)}(e,n,l,r,Ur,i,o);else{var u=i?i(To(e,l),a,l+"",e,n,o):t;u===t&&(u=a),nr(e,l,u)}}),Il)}function Hr(e,n){var r=e.length;if(r)return xo(n+=n<0?r:0,r)?e[n]:t}function $r(e,n,t){n=n.length?Dn(n,(function(e){return $a(e)?function(n){return _r(n,1===e.length?e[0]:e)}:e})):[iu];var r=-1;n=Dn(n,Jn(co()));var i=Br(e,(function(e,t,i){var o=Dn(n,(function(n){return n(e)}));return{criteria:o,index:++r,value:e}}));return function(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}(i,(function(e,n){return function(e,n,t){var r=-1,i=e.criteria,o=n.criteria,a=i.length,l=t.length;for(;++r<a;){var u=Ci(i[r],o[r]);if(u)return r>=l?u:u*("desc"==t[r]?-1:1)}return e.index-n.index}(e,n,t)}))}function Wr(e,n,t){for(var r=-1,i=n.length,o={};++r<i;){var a=n[r],l=_r(e,a);t(l,a)&&ei(o,xi(a,e),l)}return o}function Gr(e,n,t,r){var i=r?Hn:Un,o=-1,a=n.length,l=e;for(e===n&&(n=Ti(n)),t&&(l=Dn(e,Jn(t)));++o<a;)for(var u=0,c=n[o],s=t?t(c):c;(u=i(l,s,u,r))>-1;)l!==e&&Xe.call(l,u,1),Xe.call(e,u,1);return e}function Kr(e,n){for(var t=e?n.length:0,r=t-1;t--;){var i=n[t];if(t==r||i!==o){var o=i;xo(i)?Xe.call(e,i,1):pi(e,i)}}return e}function Zr(e,n){return e+vn(Et()*(n-e+1))}function Xr(e,n){var t="";if(!e||n<1||n>p)return t;do{n%2&&(t+=e),(n=vn(n/2))&&(e+=e)}while(n);return t}function Yr(e,n){return Io(Ao(e,n,iu),e+"")}function Qr(e){return Qt(Vl(e))}function Jr(e,n){var t=Vl(e);return Lo(t,ur(n,0,t.length))}function ei(e,n,r,i){if(!nl(e))return e;for(var o=-1,a=(n=xi(n,e)).length,l=a-1,u=e;null!=u&&++o<a;){var c=zo(n[o]),s=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=l){var f=u[c];(s=i?i(f,c,u):t)===t&&(s=nl(f)?f:xo(n[o+1])?[]:{})}tr(u,c,s),u=u[c]}return e}var ni=Ft?function(e,n){return Ft.set(e,n),e}:iu,ti=rn?function(e,n){return rn(e,"toString",{configurable:!0,enumerable:!1,value:nu(n),writable:!0})}:iu;function ri(e){return Lo(Vl(e))}function ii(e,n,t){var r=-1,i=e.length;n<0&&(n=-n>i?0:i+n),(t=t>i?i:t)<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var o=we(i);++r<i;)o[r]=e[r+n];return o}function oi(e,n){var t;return dr(e,(function(e,r,i){return!(t=n(e,r,i))})),!!t}function ai(e,n,t){var r=0,i=null==e?r:e.length;if("number"==typeof n&&n==n&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cl(a)&&(t?a<=n:a<n)?r=o+1:i=o}return i}return li(e,n,iu,t)}function li(e,n,r,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(n=r(n))!=n,u=null===n,c=cl(n),s=n===t;o<a;){var f=vn((o+a)/2),p=r(e[f]),d=p!==t,h=null===p,g=p==p,m=cl(p);if(l)var v=i||g;else v=s?g&&(i||d):u?g&&d&&(i||!h):c?g&&d&&!h&&(i||!m):!h&&!m&&(i?p<=n:p<n);v?o=f+1:a=f}return xt(a,4294967294)}function ui(e,n){for(var t=-1,r=e.length,i=0,o=[];++t<r;){var a=e[t],l=n?n(a):a;if(!t||!Va(l,u)){var u=l;o[i++]=0===a?0:a}}return o}function ci(e){return"number"==typeof e?e:cl(e)?d:+e}function si(e){if("string"==typeof e)return e;if($a(e))return Dn(e,si)+"";if(cl(e))return Bt?Bt.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function fi(e,n,t){var r=-1,i=In,o=e.length,a=!0,l=[],u=l;if(t)a=!1,i=Rn;else if(o>=200){var c=n?null:Xi(e);if(c)return ft(c);a=!1,i=nt,u=new Zt}else u=n?[]:l;e:for(;++r<o;){var s=e[r],f=n?n(s):s;if(s=t||0!==s?s:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;n&&u.push(f),l.push(s)}else i(u,f,t)||(u!==l&&u.push(f),l.push(s))}return l}function pi(e,n){return null==(e=jo(e,n=xi(n,e)))||delete e[zo(Yo(n))]}function di(e,n,t,r){return ei(e,n,t(_r(e,n)),r)}function hi(e,n,t,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&n(e[o],o,e););return t?ii(e,r?0:o,r?o+1:i):ii(e,r?o+1:0,r?i:o)}function gi(e,n){var t=e;return t instanceof $t&&(t=t.value()),Mn(n,(function(e,n){return n.func.apply(n.thisArg,Ln([e],n.args))}),t)}function mi(e,n,t){var r=e.length;if(r<2)return r?fi(e[0]):[];for(var i=-1,o=we(r);++i<r;)for(var a=e[i],l=-1;++l<r;)l!=i&&(o[i]=pr(o[i]||a,e[l],n,t));return fi(yr(o,1),n,t)}function vi(e,n,r){for(var i=-1,o=e.length,a=n.length,l={};++i<o;){var u=i<a?n[i]:t;r(l,e[i],u)}return l}function yi(e){return Ka(e)?e:[]}function bi(e){return"function"==typeof e?e:iu}function xi(e,n){return $a(e)?e:wo(e,n)?[e]:Mo(bl(e))}var ki=Yr;function wi(e,n,r){var i=e.length;return r=r===t?i:r,!n&&r>=i?e:ii(e,n,r)}var Ei=sn||function(e){return gn.clearTimeout(e)};function _i(e,n){if(n)return e.slice();var t=e.length,r=We?We(t):new e.constructor(t);return e.copy(r),r}function Si(e){var n=new e.constructor(e.byteLength);return new $e(n).set(new $e(e)),n}function Oi(e,n){var t=n?Si(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Ci(e,n){if(e!==n){var r=e!==t,i=null===e,o=e==e,a=cl(e),l=n!==t,u=null===n,c=n==n,s=cl(n);if(!u&&!s&&!a&&e>n||a&&l&&c&&!u&&!s||i&&l&&c||!r&&c||!o)return 1;if(!i&&!a&&!s&&e<n||s&&r&&o&&!i&&!a||u&&r&&o||!l&&o||!c)return-1}return 0}function Ai(e,n,t,r){for(var i=-1,o=e.length,a=t.length,l=-1,u=n.length,c=bt(o-a,0),s=we(u+c),f=!r;++l<u;)s[l]=n[l];for(;++i<a;)(f||i<o)&&(s[t[i]]=e[i]);for(;c--;)s[l++]=e[i++];return s}function ji(e,n,t,r){for(var i=-1,o=e.length,a=-1,l=t.length,u=-1,c=n.length,s=bt(o-l,0),f=we(s+c),p=!r;++i<s;)f[i]=e[i];for(var d=i;++u<c;)f[d+u]=n[u];for(;++a<l;)(p||i<o)&&(f[d+t[a]]=e[i++]);return f}function Ti(e,n){var t=-1,r=e.length;for(n||(n=we(r));++t<r;)n[t]=e[t];return n}function Fi(e,n,r,i){var o=!r;r||(r={});for(var a=-1,l=n.length;++a<l;){var u=n[a],c=i?i(r[u],e[u],u,r,e):t;c===t&&(c=e[u]),o?ar(r,u,c):tr(r,u,c)}return r}function Pi(e,n){return function(t,r){var i=$a(t)?An:ir,o=n?n():{};return i(t,e,co(r,2),o)}}function Ii(e){return Yr((function(n,r){var i=-1,o=r.length,a=o>1?r[o-1]:t,l=o>2?r[2]:t;for(a=e.length>3&&"function"==typeof a?(o--,a):t,l&&ko(r[0],r[1],l)&&(a=o<3?t:a,o=1),n=Ce(n);++i<o;){var u=r[i];u&&e(n,u,i,a)}return n}))}function Ri(e,n){return function(t,r){if(null==t)return t;if(!Ga(t))return e(t,r);for(var i=t.length,o=n?i:-1,a=Ce(t);(n?o--:++o<i)&&!1!==r(a[o],o,a););return t}}function Di(e){return function(n,t,r){for(var i=-1,o=Ce(n),a=r(n),l=a.length;l--;){var u=a[e?l:++i];if(!1===t(o[u],u,o))break}return n}}function Li(e){return function(n){var r=lt(n=bl(n))?ht(n):t,i=r?r[0]:n.charAt(0),o=r?wi(r,1).join(""):n.slice(1);return i[e]()+o}}function Mi(e){return function(n){return Mn(Ql(Hl(n).replace(Je,"")),e,"")}}function zi(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=qt(e.prototype),r=e.apply(t,n);return nl(r)?r:t}}function Ni(e){return function(n,r,i){var o=Ce(n);if(!Ga(n)){var a=co(r,3);n=Pl(n),r=function(e){return a(o[e],e,o)}}var l=e(n,r,i);return l>-1?o[a?n[l]:l]:t}}function Bi(e){return ro((function(n){var i=n.length,o=i,a=Ht.prototype.thru;for(e&&n.reverse();o--;){var l=n[o];if("function"!=typeof l)throw new Te(r);if(a&&!u&&"wrapper"==lo(l))var u=new Ht([],!0)}for(o=u?o:i;++o<i;){var c=lo(l=n[o]),s="wrapper"==c?ao(l):t;u=s&&Eo(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?u[lo(s[0])].apply(u,s[3]):1==l.length&&Eo(l)?u[c]():u.thru(l)}return function(){var e=arguments,t=e[0];if(u&&1==e.length&&$a(t))return u.plant(t).value();for(var r=0,o=i?n[r].apply(this,e):t;++r<i;)o=n[r].call(this,o);return o}}))}function Vi(e,n,r,i,o,a,l,u,s,f){var p=n&c,d=1&n,h=2&n,g=24&n,m=512&n,v=h?t:zi(e);return function c(){for(var y=arguments.length,b=we(y),x=y;x--;)b[x]=arguments[x];if(g)var k=uo(c),w=function(e,n){for(var t=e.length,r=0;t--;)e[t]===n&&++r;return r}(b,k);if(i&&(b=Ai(b,i,o,g)),a&&(b=ji(b,a,l,g)),y-=w,g&&y<f){var E=st(b,k);return Ki(e,n,Vi,c.placeholder,r,b,E,u,s,f-y)}var _=d?r:this,S=h?_[e]:e;return y=b.length,u?b=function(e,n){var r=e.length,i=xt(n.length,r),o=Ti(e);for(;i--;){var a=n[i];e[i]=xo(a,r)?o[a]:t}return e}(b,u):m&&y>1&&b.reverse(),p&&s<y&&(b.length=s),this&&this!==gn&&this instanceof c&&(S=v||zi(S)),S.apply(_,b)}}function qi(e,n){return function(t,r){return function(e,n,t,r){return kr(e,(function(e,i,o){n(r,t(e),i,o)})),r}(t,e,n(r),{})}}function Ui(e,n){return function(r,i){var o;if(r===t&&i===t)return n;if(r!==t&&(o=r),i!==t){if(o===t)return i;"string"==typeof r||"string"==typeof i?(r=si(r),i=si(i)):(r=ci(r),i=ci(i)),o=e(r,i)}return o}}function Hi(e){return ro((function(n){return n=Dn(n,Jn(co())),Yr((function(t){var r=this;return e(n,(function(e){return Cn(e,r,t)}))}))}))}function $i(e,n){var r=(n=n===t?" ":si(n)).length;if(r<2)return r?Xr(n,e):n;var i=Xr(n,mn(e/dt(n)));return lt(n)?wi(ht(i),0,e).join(""):i.slice(0,e)}function Wi(e){return function(n,r,i){return i&&"number"!=typeof i&&ko(n,r,i)&&(r=i=t),n=hl(n),r===t?(r=n,n=0):r=hl(r),function(e,n,t,r){for(var i=-1,o=bt(mn((n-e)/(t||1)),0),a=we(o);o--;)a[r?o:++i]=e,e+=t;return a}(n,r,i=i===t?n<r?1:-1:hl(i),e)}}function Gi(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=vl(n),t=vl(t)),e(n,t)}}function Ki(e,n,r,i,o,a,c,s,f,p){var d=8&n;n|=d?l:u,4&(n&=~(d?u:l))||(n&=-4);var h=[e,n,o,d?a:t,d?c:t,d?t:a,d?t:c,s,f,p],g=r.apply(t,h);return Eo(e)&&Fo(g,h),g.placeholder=i,Ro(g,e,n)}function Zi(e){var n=Oe[e];return function(e,t){if(e=vl(e),(t=null==t?0:xt(gl(t),292))&&Bn(e)){var r=(bl(e)+"e").split("e");return+((r=(bl(n(r[0]+"e"+(+r[1]+t)))+"e").split("e"))[0]+"e"+(+r[1]-t))}return n(e)}}var Xi=At&&1/ft(new At([,-0]))[1]==f?function(e){return new At(e)}:cu;function Yi(e){return function(n){var t=mo(n);return t==E?ut(n):t==A?pt(n):function(e,n){return Dn(n,(function(n){return[n,e[n]]}))}(n,e(n))}}function Qi(e,n,i,f,p,d,h,g){var m=2&n;if(!m&&"function"!=typeof e)throw new Te(r);var v=f?f.length:0;if(v||(n&=-97,f=p=t),h=h===t?h:bt(gl(h),0),g=g===t?g:gl(g),v-=p?p.length:0,n&u){var y=f,b=p;f=p=t}var x=m?t:ao(e),k=[e,n,i,f,p,y,b,d,h,g];if(x&&function(e,n){var t=e[1],r=n[1],i=t|r,a=i<131,l=r==c&&8==t||r==c&&t==s&&e[7].length<=n[8]||384==r&&n[7].length<=n[8]&&8==t;if(!a&&!l)return e;1&r&&(e[2]=n[2],i|=1&t?0:4);var u=n[3];if(u){var f=e[3];e[3]=f?Ai(f,u,n[4]):u,e[4]=f?st(e[3],o):n[4]}u=n[5],u&&(f=e[5],e[5]=f?ji(f,u,n[6]):u,e[6]=f?st(e[5],o):n[6]);u=n[7],u&&(e[7]=u);r&c&&(e[8]=null==e[8]?n[8]:xt(e[8],n[8]));null==e[9]&&(e[9]=n[9]);e[0]=n[0],e[1]=i}(k,x),e=k[0],n=k[1],i=k[2],f=k[3],p=k[4],!(g=k[9]=k[9]===t?m?0:e.length:bt(k[9]-v,0))&&24&n&&(n&=-25),n&&1!=n)w=8==n||n==a?function(e,n,r){var i=zi(e);return function o(){for(var a=arguments.length,l=we(a),u=a,c=uo(o);u--;)l[u]=arguments[u];var s=a<3&&l[0]!==c&&l[a-1]!==c?[]:st(l,c);return(a-=s.length)<r?Ki(e,n,Vi,o.placeholder,t,l,s,t,t,r-a):Cn(this&&this!==gn&&this instanceof o?i:e,this,l)}}(e,n,g):n!=l&&33!=n||p.length?Vi.apply(t,k):function(e,n,t,r){var i=1&n,o=zi(e);return function n(){for(var a=-1,l=arguments.length,u=-1,c=r.length,s=we(c+l),f=this&&this!==gn&&this instanceof n?o:e;++u<c;)s[u]=r[u];for(;l--;)s[u++]=arguments[++a];return Cn(f,i?t:this,s)}}(e,n,i,f);else var w=function(e,n,t){var r=1&n,i=zi(e);return function n(){return(this&&this!==gn&&this instanceof n?i:e).apply(r?t:this,arguments)}}(e,n,i);return Ro((x?ni:Fo)(w,k),e,n)}function Ji(e,n,r,i){return e===t||Va(e,Ie[r])&&!Le.call(i,r)?n:e}function eo(e,n,r,i,o,a){return nl(e)&&nl(n)&&(a.set(n,e),Ur(e,n,t,eo,a),a.delete(n)),e}function no(e){return ol(e)?t:e}function to(e,n,r,i,o,a){var l=1&r,u=e.length,c=n.length;if(u!=c&&!(l&&c>u))return!1;var s=a.get(e),f=a.get(n);if(s&&f)return s==n&&f==e;var p=-1,d=!0,h=2&r?new Zt:t;for(a.set(e,n),a.set(n,e);++p<u;){var g=e[p],m=n[p];if(i)var v=l?i(m,g,p,n,e,a):i(g,m,p,e,n,a);if(v!==t){if(v)continue;d=!1;break}if(h){if(!Nn(n,(function(e,n){if(!nt(h,n)&&(g===e||o(g,e,r,i,a)))return h.push(n)}))){d=!1;break}}else if(g!==m&&!o(g,m,r,i,a)){d=!1;break}}return a.delete(e),a.delete(n),d}function ro(e){return Io(Ao(e,t,Wo),e+"")}function io(e){return Sr(e,Pl,ho)}function oo(e){return Sr(e,Il,go)}var ao=Ft?function(e){return Ft.get(e)}:cu;function lo(e){for(var n=e.name+"",t=Pt[n],r=Le.call(Pt,n)?t.length:0;r--;){var i=t[r],o=i.func;if(null==o||o==e)return i.name}return n}function uo(e){return(Le.call(Vt,"placeholder")?Vt:e).placeholder}function co(){var e=Vt.iteratee||ou;return e=e===ou?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,n){var t,r,i=e.__data__;return("string"==(r=typeof(t=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?i["string"==typeof n?"string":"hash"]:i.map}function fo(e){for(var n=Pl(e),t=n.length;t--;){var r=n[t],i=e[r];n[t]=[r,i,Oo(i)]}return n}function po(e,n){var r=function(e,n){return null==e?t:e[n]}(e,n);return Dr(r)?r:t}var ho=bn?function(e){return null==e?[]:(e=Ce(e),Pn(bn(e),(function(n){return Ze.call(e,n)})))}:mu,go=bn?function(e){for(var n=[];e;)Ln(n,ho(e)),e=Ge(e);return n}:mu,mo=Or;function vo(e,n,t){for(var r=-1,i=(n=xi(n,e)).length,o=!1;++r<i;){var a=zo(n[r]);if(!(o=null!=e&&t(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&el(i)&&xo(a,i)&&($a(e)||Ha(e))}function yo(e){return"function"!=typeof e.constructor||So(e)?{}:qt(Ge(e))}function bo(e){return $a(e)||Ha(e)||!!(Ye&&e&&e[Ye])}function xo(e,n){var t=typeof e;return!!(n=null==n?p:n)&&("number"==t||"symbol"!=t&&ye.test(e))&&e>-1&&e%1==0&&e<n}function ko(e,n,t){if(!nl(t))return!1;var r=typeof n;return!!("number"==r?Ga(t)&&xo(n,t.length):"string"==r&&n in t)&&Va(t[n],e)}function wo(e,n){if($a(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!cl(e))||(ee.test(e)||!J.test(e)||null!=n&&e in Ce(n))}function Eo(e){var n=lo(e),t=Vt[n];if("function"!=typeof t||!(n in $t.prototype))return!1;if(e===t)return!0;var r=ao(t);return!!r&&e===r[0]}(St&&mo(new St(new ArrayBuffer(1)))!=I||Ot&&mo(new Ot)!=E||Ct&&mo(Ct.resolve())!=O||At&&mo(new At)!=A||jt&&mo(new jt)!=F)&&(mo=function(e){var n=Or(e),r=n==S?e.constructor:t,i=r?No(r):"";if(i)switch(i){case It:return I;case Rt:return E;case Dt:return O;case Lt:return A;case Mt:return F}return n});var _o=Re?Qa:vu;function So(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||Ie)}function Oo(e){return e==e&&!nl(e)}function Co(e,n){return function(r){return null!=r&&(r[e]===n&&(n!==t||e in Ce(r)))}}function Ao(e,n,r){return n=bt(n===t?e.length-1:n,0),function(){for(var t=arguments,i=-1,o=bt(t.length-n,0),a=we(o);++i<o;)a[i]=t[n+i];i=-1;for(var l=we(n+1);++i<n;)l[i]=t[i];return l[n]=r(a),Cn(e,this,l)}}function jo(e,n){return n.length<2?e:_r(e,ii(n,0,-1))}function To(e,n){if(("constructor"!==n||"function"!=typeof e[n])&&"__proto__"!=n)return e[n]}var Fo=Do(ni),Po=hn||function(e,n){return gn.setTimeout(e,n)},Io=Do(ti);function Ro(e,n,t){var r=n+"";return Io(e,function(e,n){var t=n.length;if(!t)return e;var r=t-1;return n[r]=(t>1?"& ":"")+n[r],n=n.join(t>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+n+"] */\n")}(r,function(e,n){return jn(g,(function(t){var r="_."+t[0];n&t[1]&&!In(e,r)&&e.push(r)})),e.sort()}(function(e){var n=e.match(le);return n?n[1].split(ue):[]}(r),t)))}function Do(e){var n=0,r=0;return function(){var i=kt(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(t,arguments)}}function Lo(e,n){var r=-1,i=e.length,o=i-1;for(n=n===t?i:n;++r<n;){var a=Zr(r,o),l=e[a];e[a]=e[r],e[r]=l}return e.length=n,e}var Mo=function(e){var n=Da(e,(function(e){return 500===t.size&&t.clear(),e})),t=n.cache;return n}((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(ne,(function(e,t,r,i){n.push(r?i.replace(fe,"$1"):t||e)})),n}));function zo(e){if("string"==typeof e||cl(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function No(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof $t)return e.clone();var n=new Ht(e.__wrapped__,e.__chain__);return n.__actions__=Ti(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}var Vo=Yr((function(e,n){return Ka(e)?pr(e,yr(n,1,Ka,!0)):[]})),qo=Yr((function(e,n){var r=Yo(n);return Ka(r)&&(r=t),Ka(e)?pr(e,yr(n,1,Ka,!0),co(r,2)):[]})),Uo=Yr((function(e,n){var r=Yo(n);return Ka(r)&&(r=t),Ka(e)?pr(e,yr(n,1,Ka,!0),t,r):[]}));function Ho(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var i=null==t?0:gl(t);return i<0&&(i=bt(r+i,0)),qn(e,co(n,3),i)}function $o(e,n,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==t&&(o=gl(r),o=r<0?bt(i+o,0):xt(o,i-1)),qn(e,co(n,3),o,!0)}function Wo(e){return(null==e?0:e.length)?yr(e,1):[]}function Go(e){return e&&e.length?e[0]:t}var Ko=Yr((function(e){var n=Dn(e,yi);return n.length&&n[0]===e[0]?Tr(n):[]})),Zo=Yr((function(e){var n=Yo(e),r=Dn(e,yi);return n===Yo(r)?n=t:r.pop(),r.length&&r[0]===e[0]?Tr(r,co(n,2)):[]})),Xo=Yr((function(e){var n=Yo(e),r=Dn(e,yi);return(n="function"==typeof n?n:t)&&r.pop(),r.length&&r[0]===e[0]?Tr(r,t,n):[]}));function Yo(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Qo=Yr(Jo);function Jo(e,n){return e&&e.length&&n&&n.length?Gr(e,n):e}var ea=ro((function(e,n){var t=null==e?0:e.length,r=lr(e,n);return Kr(e,Dn(n,(function(e){return xo(e,t)?+e:e})).sort(Ci)),r}));function na(e){return null==e?e:_t.call(e)}var ta=Yr((function(e){return fi(yr(e,1,Ka,!0))})),ra=Yr((function(e){var n=Yo(e);return Ka(n)&&(n=t),fi(yr(e,1,Ka,!0),co(n,2))})),ia=Yr((function(e){var n=Yo(e);return n="function"==typeof n?n:t,fi(yr(e,1,Ka,!0),t,n)}));function oa(e){if(!e||!e.length)return[];var n=0;return e=Pn(e,(function(e){if(Ka(e))return n=bt(e.length,n),!0})),Yn(n,(function(n){return Dn(e,Gn(n))}))}function aa(e,n){if(!e||!e.length)return[];var r=oa(e);return null==n?r:Dn(r,(function(e){return Cn(n,t,e)}))}var la=Yr((function(e,n){return Ka(e)?pr(e,n):[]})),ua=Yr((function(e){return mi(Pn(e,Ka))})),ca=Yr((function(e){var n=Yo(e);return Ka(n)&&(n=t),mi(Pn(e,Ka),co(n,2))})),sa=Yr((function(e){var n=Yo(e);return n="function"==typeof n?n:t,mi(Pn(e,Ka),t,n)})),fa=Yr(oa);var pa=Yr((function(e){var n=e.length,r=n>1?e[n-1]:t;return r="function"==typeof r?(e.pop(),r):t,aa(e,r)}));function da(e){var n=Vt(e);return n.__chain__=!0,n}function ha(e,n){return n(e)}var ga=ro((function(e){var n=e.length,r=n?e[0]:0,i=this.__wrapped__,o=function(n){return lr(n,e)};return!(n>1||this.__actions__.length)&&i instanceof $t&&xo(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:ha,args:[o],thisArg:t}),new Ht(i,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(o)}));var ma=Pi((function(e,n,t){Le.call(e,t)?++e[t]:ar(e,t,1)}));var va=Ni(Ho),ya=Ni($o);function ba(e,n){return($a(e)?jn:dr)(e,co(n,3))}function xa(e,n){return($a(e)?Tn:hr)(e,co(n,3))}var ka=Pi((function(e,n,t){Le.call(e,t)?e[t].push(n):ar(e,t,[n])}));var wa=Yr((function(e,n,t){var r=-1,i="function"==typeof n,o=Ga(e)?we(e.length):[];return dr(e,(function(e){o[++r]=i?Cn(n,e,t):Fr(e,n,t)})),o})),Ea=Pi((function(e,n,t){ar(e,t,n)}));function _a(e,n){return($a(e)?Dn:Br)(e,co(n,3))}var Sa=Pi((function(e,n,t){e[t?0:1].push(n)}),(function(){return[[],[]]}));var Oa=Yr((function(e,n){if(null==e)return[];var t=n.length;return t>1&&ko(e,n[0],n[1])?n=[]:t>2&&ko(n[0],n[1],n[2])&&(n=[n[0]]),$r(e,yr(n,1),[])})),Ca=dn||function(){return gn.Date.now()};function Aa(e,n,r){return n=r?t:n,n=e&&null==n?e.length:n,Qi(e,c,t,t,t,t,n)}function ja(e,n){var i;if("function"!=typeof n)throw new Te(r);return e=gl(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=t),i}}var Ta=Yr((function(e,n,t){var r=1;if(t.length){var i=st(t,uo(Ta));r|=l}return Qi(e,r,n,t,i)})),Fa=Yr((function(e,n,t){var r=3;if(t.length){var i=st(t,uo(Fa));r|=l}return Qi(n,r,e,t,i)}));function Pa(e,n,i){var o,a,l,u,c,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Te(r);function g(n){var r=o,i=a;return o=a=t,f=n,u=e.apply(i,r)}function m(e){var r=e-s;return s===t||r>=n||r<0||d&&e-f>=l}function v(){var e=Ca();if(m(e))return y(e);c=Po(v,function(e){var t=n-(e-s);return d?xt(t,l-(e-f)):t}(e))}function y(e){return c=t,h&&o?g(e):(o=a=t,u)}function b(){var e=Ca(),r=m(e);if(o=arguments,a=this,s=e,r){if(c===t)return function(e){return f=e,c=Po(v,n),p?g(e):u}(s);if(d)return Ei(c),c=Po(v,n),g(s)}return c===t&&(c=Po(v,n)),u}return n=vl(n)||0,nl(i)&&(p=!!i.leading,l=(d="maxWait"in i)?bt(vl(i.maxWait)||0,n):l,h="trailing"in i?!!i.trailing:h),b.cancel=function(){c!==t&&Ei(c),f=0,o=s=a=c=t},b.flush=function(){return c===t?u:y(Ca())},b}var Ia=Yr((function(e,n){return fr(e,1,n)})),Ra=Yr((function(e,n,t){return fr(e,vl(n)||0,t)}));function Da(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Te(r);var t=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return t.cache=o.set(i,a)||o,a};return t.cache=new(Da.Cache||Kt),t}function La(e){if("function"!=typeof e)throw new Te(r);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}Da.Cache=Kt;var Ma=ki((function(e,n){var t=(n=1==n.length&&$a(n[0])?Dn(n[0],Jn(co())):Dn(yr(n,1),Jn(co()))).length;return Yr((function(r){for(var i=-1,o=xt(r.length,t);++i<o;)r[i]=n[i].call(this,r[i]);return Cn(e,this,r)}))})),za=Yr((function(e,n){var r=st(n,uo(za));return Qi(e,l,t,n,r)})),Na=Yr((function(e,n){var r=st(n,uo(Na));return Qi(e,u,t,n,r)})),Ba=ro((function(e,n){return Qi(e,s,t,t,t,n)}));function Va(e,n){return e===n||e!=e&&n!=n}var qa=Gi(Cr),Ua=Gi((function(e,n){return e>=n})),Ha=Pr(function(){return arguments}())?Pr:function(e){return tl(e)&&Le.call(e,"callee")&&!Ze.call(e,"callee")},$a=we.isArray,Wa=kn?Jn(kn):function(e){return tl(e)&&Or(e)==P};function Ga(e){return null!=e&&el(e.length)&&!Qa(e)}function Ka(e){return tl(e)&&Ga(e)}var Za=xn||vu,Xa=wn?Jn(wn):function(e){return tl(e)&&Or(e)==b};function Ya(e){if(!tl(e))return!1;var n=Or(e);return n==x||"[object DOMException]"==n||"string"==typeof e.message&&"string"==typeof e.name&&!ol(e)}function Qa(e){if(!nl(e))return!1;var n=Or(e);return n==k||n==w||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Ja(e){return"number"==typeof e&&e==gl(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function nl(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function tl(e){return null!=e&&"object"==typeof e}var rl=En?Jn(En):function(e){return tl(e)&&mo(e)==E};function il(e){return"number"==typeof e||tl(e)&&Or(e)==_}function ol(e){if(!tl(e)||Or(e)!=S)return!1;var n=Ge(e);if(null===n)return!0;var t=Le.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&De.call(t)==Be}var al=_n?Jn(_n):function(e){return tl(e)&&Or(e)==C};var ll=Sn?Jn(Sn):function(e){return tl(e)&&mo(e)==A};function ul(e){return"string"==typeof e||!$a(e)&&tl(e)&&Or(e)==j}function cl(e){return"symbol"==typeof e||tl(e)&&Or(e)==T}var sl=On?Jn(On):function(e){return tl(e)&&el(e.length)&&!!un[Or(e)]};var fl=Gi(Nr),pl=Gi((function(e,n){return e<=n}));function dl(e){if(!e)return[];if(Ga(e))return ul(e)?ht(e):Ti(e);if(Qe&&e[Qe])return function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t}(e[Qe]());var n=mo(e);return(n==E?ut:n==A?ft:Vl)(e)}function hl(e){return e?(e=vl(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gl(e){var n=hl(e),t=n%1;return n==n?t?n-t:n:0}function ml(e){return e?ur(gl(e),0,h):0}function vl(e){if("number"==typeof e)return e;if(cl(e))return d;if(nl(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=nl(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=Qn(e);var t=ge.test(e);return t||ve.test(e)?pn(e.slice(2),t?2:8):he.test(e)?d:+e}function yl(e){return Fi(e,Il(e))}function bl(e){return null==e?"":si(e)}var xl=Ii((function(e,n){if(So(n)||Ga(n))Fi(n,Pl(n),e);else for(var t in n)Le.call(n,t)&&tr(e,t,n[t])})),kl=Ii((function(e,n){Fi(n,Il(n),e)})),wl=Ii((function(e,n,t,r){Fi(n,Il(n),e,r)})),El=Ii((function(e,n,t,r){Fi(n,Pl(n),e,r)})),_l=ro(lr);var Sl=Yr((function(e,n){e=Ce(e);var r=-1,i=n.length,o=i>2?n[2]:t;for(o&&ko(n[0],n[1],o)&&(i=1);++r<i;)for(var a=n[r],l=Il(a),u=-1,c=l.length;++u<c;){var s=l[u],f=e[s];(f===t||Va(f,Ie[s])&&!Le.call(e,s))&&(e[s]=a[s])}return e})),Ol=Yr((function(e){return e.push(t,eo),Cn(Dl,t,e)}));function Cl(e,n,r){var i=null==e?t:_r(e,n);return i===t?r:i}function Al(e,n){return null!=e&&vo(e,n,jr)}var jl=qi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Ne.call(n)),e[n]=t}),nu(iu)),Tl=qi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Ne.call(n)),Le.call(e,n)?e[n].push(t):e[n]=[t]}),co),Fl=Yr(Fr);function Pl(e){return Ga(e)?Yt(e):Mr(e)}function Il(e){return Ga(e)?Yt(e,!0):zr(e)}var Rl=Ii((function(e,n,t){Ur(e,n,t)})),Dl=Ii((function(e,n,t,r){Ur(e,n,t,r)})),Ll=ro((function(e,n){var t={};if(null==e)return t;var r=!1;n=Dn(n,(function(n){return n=xi(n,e),r||(r=n.length>1),n})),Fi(e,oo(e),t),r&&(t=cr(t,7,no));for(var i=n.length;i--;)pi(t,n[i]);return t}));var Ml=ro((function(e,n){return null==e?{}:function(e,n){return Wr(e,n,(function(n,t){return Al(e,t)}))}(e,n)}));function zl(e,n){if(null==e)return{};var t=Dn(oo(e),(function(e){return[e]}));return n=co(n),Wr(e,t,(function(e,t){return n(e,t[0])}))}var Nl=Yi(Pl),Bl=Yi(Il);function Vl(e){return null==e?[]:et(e,Pl(e))}var ql=Mi((function(e,n,t){return n=n.toLowerCase(),e+(t?Ul(n):n)}));function Ul(e){return Yl(bl(e).toLowerCase())}function Hl(e){return(e=bl(e))&&e.replace(be,it).replace(en,"")}var $l=Mi((function(e,n,t){return e+(t?"-":"")+n.toLowerCase()})),Wl=Mi((function(e,n,t){return e+(t?" ":"")+n.toLowerCase()})),Gl=Li("toLowerCase");var Kl=Mi((function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}));var Zl=Mi((function(e,n,t){return e+(t?" ":"")+Yl(n)}));var Xl=Mi((function(e,n,t){return e+(t?" ":"")+n.toUpperCase()})),Yl=Li("toUpperCase");function Ql(e,n,r){return e=bl(e),(n=r?t:n)===t?function(e){return on.test(e)}(e)?function(e){return e.match(tn)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(n)||[]}var Jl=Yr((function(e,n){try{return Cn(e,t,n)}catch(e){return Ya(e)?e:new _e(e)}})),eu=ro((function(e,n){return jn(n,(function(n){n=zo(n),ar(e,n,Ta(e[n],e))})),e}));function nu(e){return function(){return e}}var tu=Bi(),ru=Bi(!0);function iu(e){return e}function ou(e){return Lr("function"==typeof e?e:cr(e,1))}var au=Yr((function(e,n){return function(t){return Fr(t,e,n)}})),lu=Yr((function(e,n){return function(t){return Fr(e,t,n)}}));function uu(e,n,t){var r=Pl(n),i=Er(n,r);null!=t||nl(n)&&(i.length||!r.length)||(t=n,n=e,e=this,i=Er(n,Pl(n)));var o=!(nl(t)&&"chain"in t&&!t.chain),a=Qa(e);return jn(i,(function(t){var r=n[t];e[t]=r,a&&(e.prototype[t]=function(){var n=this.__chain__;if(o||n){var t=e(this.__wrapped__);return(t.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),t.__chain__=n,t}return r.apply(e,Ln([this.value()],arguments))})})),e}function cu(){}var su=Hi(Dn),fu=Hi(Fn),pu=Hi(Nn);function du(e){return wo(e)?Gn(zo(e)):function(e){return function(n){return _r(n,e)}}(e)}var hu=Wi(),gu=Wi(!0);function mu(){return[]}function vu(){return!1}var yu=Ui((function(e,n){return e+n}),0),bu=Zi("ceil"),xu=Ui((function(e,n){return e/n}),1),ku=Zi("floor");var wu=Ui((function(e,n){return e*n}),1),Eu=Zi("round"),_u=Ui((function(e,n){return e-n}),0);return Vt.after=function(e,n){if("function"!=typeof n)throw new Te(r);return e=gl(e),function(){if(--e<1)return n.apply(this,arguments)}},Vt.ary=Aa,Vt.assign=xl,Vt.assignIn=kl,Vt.assignInWith=wl,Vt.assignWith=El,Vt.at=_l,Vt.before=ja,Vt.bind=Ta,Vt.bindAll=eu,Vt.bindKey=Fa,Vt.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},Vt.chain=da,Vt.chunk=function(e,n,r){n=(r?ko(e,n,r):n===t)?1:bt(gl(n),0);var i=null==e?0:e.length;if(!i||n<1)return[];for(var o=0,a=0,l=we(mn(i/n));o<i;)l[a++]=ii(e,o,o+=n);return l},Vt.compact=function(e){for(var n=-1,t=null==e?0:e.length,r=0,i=[];++n<t;){var o=e[n];o&&(i[r++]=o)}return i},Vt.concat=function(){var e=arguments.length;if(!e)return[];for(var n=we(e-1),t=arguments[0],r=e;r--;)n[r-1]=arguments[r];return Ln($a(t)?Ti(t):[t],yr(n,1))},Vt.cond=function(e){var n=null==e?0:e.length,t=co();return e=n?Dn(e,(function(e){if("function"!=typeof e[1])throw new Te(r);return[t(e[0]),e[1]]})):[],Yr((function(t){for(var r=-1;++r<n;){var i=e[r];if(Cn(i[0],this,t))return Cn(i[1],this,t)}}))},Vt.conforms=function(e){return function(e){var n=Pl(e);return function(t){return sr(t,e,n)}}(cr(e,1))},Vt.constant=nu,Vt.countBy=ma,Vt.create=function(e,n){var t=qt(e);return null==n?t:or(t,n)},Vt.curry=function e(n,r,i){var o=Qi(n,8,t,t,t,t,t,r=i?t:r);return o.placeholder=e.placeholder,o},Vt.curryRight=function e(n,r,i){var o=Qi(n,a,t,t,t,t,t,r=i?t:r);return o.placeholder=e.placeholder,o},Vt.debounce=Pa,Vt.defaults=Sl,Vt.defaultsDeep=Ol,Vt.defer=Ia,Vt.delay=Ra,Vt.difference=Vo,Vt.differenceBy=qo,Vt.differenceWith=Uo,Vt.drop=function(e,n,r){var i=null==e?0:e.length;return i?ii(e,(n=r||n===t?1:gl(n))<0?0:n,i):[]},Vt.dropRight=function(e,n,r){var i=null==e?0:e.length;return i?ii(e,0,(n=i-(n=r||n===t?1:gl(n)))<0?0:n):[]},Vt.dropRightWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!0,!0):[]},Vt.dropWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!0):[]},Vt.fill=function(e,n,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&ko(e,n,r)&&(r=0,i=o),function(e,n,r,i){var o=e.length;for((r=gl(r))<0&&(r=-r>o?0:o+r),(i=i===t||i>o?o:gl(i))<0&&(i+=o),i=r>i?0:ml(i);r<i;)e[r++]=n;return e}(e,n,r,i)):[]},Vt.filter=function(e,n){return($a(e)?Pn:vr)(e,co(n,3))},Vt.flatMap=function(e,n){return yr(_a(e,n),1)},Vt.flatMapDeep=function(e,n){return yr(_a(e,n),f)},Vt.flatMapDepth=function(e,n,r){return r=r===t?1:gl(r),yr(_a(e,n),r)},Vt.flatten=Wo,Vt.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},Vt.flattenDepth=function(e,n){return(null==e?0:e.length)?yr(e,n=n===t?1:gl(n)):[]},Vt.flip=function(e){return Qi(e,512)},Vt.flow=tu,Vt.flowRight=ru,Vt.fromPairs=function(e){for(var n=-1,t=null==e?0:e.length,r={};++n<t;){var i=e[n];r[i[0]]=i[1]}return r},Vt.functions=function(e){return null==e?[]:Er(e,Pl(e))},Vt.functionsIn=function(e){return null==e?[]:Er(e,Il(e))},Vt.groupBy=ka,Vt.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Vt.intersection=Ko,Vt.intersectionBy=Zo,Vt.intersectionWith=Xo,Vt.invert=jl,Vt.invertBy=Tl,Vt.invokeMap=wa,Vt.iteratee=ou,Vt.keyBy=Ea,Vt.keys=Pl,Vt.keysIn=Il,Vt.map=_a,Vt.mapKeys=function(e,n){var t={};return n=co(n,3),kr(e,(function(e,r,i){ar(t,n(e,r,i),e)})),t},Vt.mapValues=function(e,n){var t={};return n=co(n,3),kr(e,(function(e,r,i){ar(t,r,n(e,r,i))})),t},Vt.matches=function(e){return Vr(cr(e,1))},Vt.matchesProperty=function(e,n){return qr(e,cr(n,1))},Vt.memoize=Da,Vt.merge=Rl,Vt.mergeWith=Dl,Vt.method=au,Vt.methodOf=lu,Vt.mixin=uu,Vt.negate=La,Vt.nthArg=function(e){return e=gl(e),Yr((function(n){return Hr(n,e)}))},Vt.omit=Ll,Vt.omitBy=function(e,n){return zl(e,La(co(n)))},Vt.once=function(e){return ja(2,e)},Vt.orderBy=function(e,n,r,i){return null==e?[]:($a(n)||(n=null==n?[]:[n]),$a(r=i?t:r)||(r=null==r?[]:[r]),$r(e,n,r))},Vt.over=su,Vt.overArgs=Ma,Vt.overEvery=fu,Vt.overSome=pu,Vt.partial=za,Vt.partialRight=Na,Vt.partition=Sa,Vt.pick=Ml,Vt.pickBy=zl,Vt.property=du,Vt.propertyOf=function(e){return function(n){return null==e?t:_r(e,n)}},Vt.pull=Qo,Vt.pullAll=Jo,Vt.pullAllBy=function(e,n,t){return e&&e.length&&n&&n.length?Gr(e,n,co(t,2)):e},Vt.pullAllWith=function(e,n,r){return e&&e.length&&n&&n.length?Gr(e,n,t,r):e},Vt.pullAt=ea,Vt.range=hu,Vt.rangeRight=gu,Vt.rearg=Ba,Vt.reject=function(e,n){return($a(e)?Pn:vr)(e,La(co(n,3)))},Vt.remove=function(e,n){var t=[];if(!e||!e.length)return t;var r=-1,i=[],o=e.length;for(n=co(n,3);++r<o;){var a=e[r];n(a,r,e)&&(t.push(a),i.push(r))}return Kr(e,i),t},Vt.rest=function(e,n){if("function"!=typeof e)throw new Te(r);return Yr(e,n=n===t?n:gl(n))},Vt.reverse=na,Vt.sampleSize=function(e,n,r){return n=(r?ko(e,n,r):n===t)?1:gl(n),($a(e)?Jt:Jr)(e,n)},Vt.set=function(e,n,t){return null==e?e:ei(e,n,t)},Vt.setWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:ei(e,n,r,i)},Vt.shuffle=function(e){return($a(e)?er:ri)(e)},Vt.slice=function(e,n,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&ko(e,n,r)?(n=0,r=i):(n=null==n?0:gl(n),r=r===t?i:gl(r)),ii(e,n,r)):[]},Vt.sortBy=Oa,Vt.sortedUniq=function(e){return e&&e.length?ui(e):[]},Vt.sortedUniqBy=function(e,n){return e&&e.length?ui(e,co(n,2)):[]},Vt.split=function(e,n,r){return r&&"number"!=typeof r&&ko(e,n,r)&&(n=r=t),(r=r===t?h:r>>>0)?(e=bl(e))&&("string"==typeof n||null!=n&&!al(n))&&!(n=si(n))&<(e)?wi(ht(e),0,r):e.split(n,r):[]},Vt.spread=function(e,n){if("function"!=typeof e)throw new Te(r);return n=null==n?0:bt(gl(n),0),Yr((function(t){var r=t[n],i=wi(t,0,n);return r&&Ln(i,r),Cn(e,this,i)}))},Vt.tail=function(e){var n=null==e?0:e.length;return n?ii(e,1,n):[]},Vt.take=function(e,n,r){return e&&e.length?ii(e,0,(n=r||n===t?1:gl(n))<0?0:n):[]},Vt.takeRight=function(e,n,r){var i=null==e?0:e.length;return i?ii(e,(n=i-(n=r||n===t?1:gl(n)))<0?0:n,i):[]},Vt.takeRightWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!1,!0):[]},Vt.takeWhile=function(e,n){return e&&e.length?hi(e,co(n,3)):[]},Vt.tap=function(e,n){return n(e),e},Vt.throttle=function(e,n,t){var i=!0,o=!0;if("function"!=typeof e)throw new Te(r);return nl(t)&&(i="leading"in t?!!t.leading:i,o="trailing"in t?!!t.trailing:o),Pa(e,n,{leading:i,maxWait:n,trailing:o})},Vt.thru=ha,Vt.toArray=dl,Vt.toPairs=Nl,Vt.toPairsIn=Bl,Vt.toPath=function(e){return $a(e)?Dn(e,zo):cl(e)?[e]:Ti(Mo(bl(e)))},Vt.toPlainObject=yl,Vt.transform=function(e,n,t){var r=$a(e),i=r||Za(e)||sl(e);if(n=co(n,4),null==t){var o=e&&e.constructor;t=i?r?new o:[]:nl(e)&&Qa(o)?qt(Ge(e)):{}}return(i?jn:kr)(e,(function(e,r,i){return n(t,e,r,i)})),t},Vt.unary=function(e){return Aa(e,1)},Vt.union=ta,Vt.unionBy=ra,Vt.unionWith=ia,Vt.uniq=function(e){return e&&e.length?fi(e):[]},Vt.uniqBy=function(e,n){return e&&e.length?fi(e,co(n,2)):[]},Vt.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?fi(e,t,n):[]},Vt.unset=function(e,n){return null==e||pi(e,n)},Vt.unzip=oa,Vt.unzipWith=aa,Vt.update=function(e,n,t){return null==e?e:di(e,n,bi(t))},Vt.updateWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:di(e,n,bi(r),i)},Vt.values=Vl,Vt.valuesIn=function(e){return null==e?[]:et(e,Il(e))},Vt.without=la,Vt.words=Ql,Vt.wrap=function(e,n){return za(bi(n),e)},Vt.xor=ua,Vt.xorBy=ca,Vt.xorWith=sa,Vt.zip=fa,Vt.zipObject=function(e,n){return vi(e||[],n||[],tr)},Vt.zipObjectDeep=function(e,n){return vi(e||[],n||[],ei)},Vt.zipWith=pa,Vt.entries=Nl,Vt.entriesIn=Bl,Vt.extend=kl,Vt.extendWith=wl,uu(Vt,Vt),Vt.add=yu,Vt.attempt=Jl,Vt.camelCase=ql,Vt.capitalize=Ul,Vt.ceil=bu,Vt.clamp=function(e,n,r){return r===t&&(r=n,n=t),r!==t&&(r=(r=vl(r))==r?r:0),n!==t&&(n=(n=vl(n))==n?n:0),ur(vl(e),n,r)},Vt.clone=function(e){return cr(e,4)},Vt.cloneDeep=function(e){return cr(e,5)},Vt.cloneDeepWith=function(e,n){return cr(e,5,n="function"==typeof n?n:t)},Vt.cloneWith=function(e,n){return cr(e,4,n="function"==typeof n?n:t)},Vt.conformsTo=function(e,n){return null==n||sr(e,n,Pl(n))},Vt.deburr=Hl,Vt.defaultTo=function(e,n){return null==e||e!=e?n:e},Vt.divide=xu,Vt.endsWith=function(e,n,r){e=bl(e),n=si(n);var i=e.length,o=r=r===t?i:ur(gl(r),0,i);return(r-=n.length)>=0&&e.slice(r,o)==n},Vt.eq=Va,Vt.escape=function(e){return(e=bl(e))&&Z.test(e)?e.replace(G,ot):e},Vt.escapeRegExp=function(e){return(e=bl(e))&&re.test(e)?e.replace(te,"\\$&"):e},Vt.every=function(e,n,r){var i=$a(e)?Fn:gr;return r&&ko(e,n,r)&&(n=t),i(e,co(n,3))},Vt.find=va,Vt.findIndex=Ho,Vt.findKey=function(e,n){return Vn(e,co(n,3),kr)},Vt.findLast=ya,Vt.findLastIndex=$o,Vt.findLastKey=function(e,n){return Vn(e,co(n,3),wr)},Vt.floor=ku,Vt.forEach=ba,Vt.forEachRight=xa,Vt.forIn=function(e,n){return null==e?e:br(e,co(n,3),Il)},Vt.forInRight=function(e,n){return null==e?e:xr(e,co(n,3),Il)},Vt.forOwn=function(e,n){return e&&kr(e,co(n,3))},Vt.forOwnRight=function(e,n){return e&&wr(e,co(n,3))},Vt.get=Cl,Vt.gt=qa,Vt.gte=Ua,Vt.has=function(e,n){return null!=e&&vo(e,n,Ar)},Vt.hasIn=Al,Vt.head=Go,Vt.identity=iu,Vt.includes=function(e,n,t,r){e=Ga(e)?e:Vl(e),t=t&&!r?gl(t):0;var i=e.length;return t<0&&(t=bt(i+t,0)),ul(e)?t<=i&&e.indexOf(n,t)>-1:!!i&&Un(e,n,t)>-1},Vt.indexOf=function(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var i=null==t?0:gl(t);return i<0&&(i=bt(r+i,0)),Un(e,n,i)},Vt.inRange=function(e,n,r){return n=hl(n),r===t?(r=n,n=0):r=hl(r),function(e,n,t){return e>=xt(n,t)&&e<bt(n,t)}(e=vl(e),n,r)},Vt.invoke=Fl,Vt.isArguments=Ha,Vt.isArray=$a,Vt.isArrayBuffer=Wa,Vt.isArrayLike=Ga,Vt.isArrayLikeObject=Ka,Vt.isBoolean=function(e){return!0===e||!1===e||tl(e)&&Or(e)==y},Vt.isBuffer=Za,Vt.isDate=Xa,Vt.isElement=function(e){return tl(e)&&1===e.nodeType&&!ol(e)},Vt.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&($a(e)||"string"==typeof e||"function"==typeof e.splice||Za(e)||sl(e)||Ha(e)))return!e.length;var n=mo(e);if(n==E||n==A)return!e.size;if(So(e))return!Mr(e).length;for(var t in e)if(Le.call(e,t))return!1;return!0},Vt.isEqual=function(e,n){return Ir(e,n)},Vt.isEqualWith=function(e,n,r){var i=(r="function"==typeof r?r:t)?r(e,n):t;return i===t?Ir(e,n,t,r):!!i},Vt.isError=Ya,Vt.isFinite=function(e){return"number"==typeof e&&Bn(e)},Vt.isFunction=Qa,Vt.isInteger=Ja,Vt.isLength=el,Vt.isMap=rl,Vt.isMatch=function(e,n){return e===n||Rr(e,n,fo(n))},Vt.isMatchWith=function(e,n,r){return r="function"==typeof r?r:t,Rr(e,n,fo(n),r)},Vt.isNaN=function(e){return il(e)&&e!=+e},Vt.isNative=function(e){if(_o(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Vt.isNil=function(e){return null==e},Vt.isNull=function(e){return null===e},Vt.isNumber=il,Vt.isObject=nl,Vt.isObjectLike=tl,Vt.isPlainObject=ol,Vt.isRegExp=al,Vt.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=p},Vt.isSet=ll,Vt.isString=ul,Vt.isSymbol=cl,Vt.isTypedArray=sl,Vt.isUndefined=function(e){return e===t},Vt.isWeakMap=function(e){return tl(e)&&mo(e)==F},Vt.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==Or(e)},Vt.join=function(e,n){return null==e?"":Kn.call(e,n)},Vt.kebabCase=$l,Vt.last=Yo,Vt.lastIndexOf=function(e,n,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==t&&(o=(o=gl(r))<0?bt(i+o,0):xt(o,i-1)),n==n?function(e,n,t){for(var r=t+1;r--;)if(e[r]===n)return r;return r}(e,n,o):qn(e,$n,o,!0)},Vt.lowerCase=Wl,Vt.lowerFirst=Gl,Vt.lt=fl,Vt.lte=pl,Vt.max=function(e){return e&&e.length?mr(e,iu,Cr):t},Vt.maxBy=function(e,n){return e&&e.length?mr(e,co(n,2),Cr):t},Vt.mean=function(e){return Wn(e,iu)},Vt.meanBy=function(e,n){return Wn(e,co(n,2))},Vt.min=function(e){return e&&e.length?mr(e,iu,Nr):t},Vt.minBy=function(e,n){return e&&e.length?mr(e,co(n,2),Nr):t},Vt.stubArray=mu,Vt.stubFalse=vu,Vt.stubObject=function(){return{}},Vt.stubString=function(){return""},Vt.stubTrue=function(){return!0},Vt.multiply=wu,Vt.nth=function(e,n){return e&&e.length?Hr(e,gl(n)):t},Vt.noConflict=function(){return gn._===this&&(gn._=Ve),this},Vt.noop=cu,Vt.now=Ca,Vt.pad=function(e,n,t){e=bl(e);var r=(n=gl(n))?dt(e):0;if(!n||r>=n)return e;var i=(n-r)/2;return $i(vn(i),t)+e+$i(mn(i),t)},Vt.padEnd=function(e,n,t){e=bl(e);var r=(n=gl(n))?dt(e):0;return n&&r<n?e+$i(n-r,t):e},Vt.padStart=function(e,n,t){e=bl(e);var r=(n=gl(n))?dt(e):0;return n&&r<n?$i(n-r,t)+e:e},Vt.parseInt=function(e,n,t){return t||null==n?n=0:n&&(n=+n),wt(bl(e).replace(ie,""),n||0)},Vt.random=function(e,n,r){if(r&&"boolean"!=typeof r&&ko(e,n,r)&&(n=r=t),r===t&&("boolean"==typeof n?(r=n,n=t):"boolean"==typeof e&&(r=e,e=t)),e===t&&n===t?(e=0,n=1):(e=hl(e),n===t?(n=e,e=0):n=hl(n)),e>n){var i=e;e=n,n=i}if(r||e%1||n%1){var o=Et();return xt(e+o*(n-e+fn("1e-"+((o+"").length-1))),n)}return Zr(e,n)},Vt.reduce=function(e,n,t){var r=$a(e)?Mn:Zn,i=arguments.length<3;return r(e,co(n,4),t,i,dr)},Vt.reduceRight=function(e,n,t){var r=$a(e)?zn:Zn,i=arguments.length<3;return r(e,co(n,4),t,i,hr)},Vt.repeat=function(e,n,r){return n=(r?ko(e,n,r):n===t)?1:gl(n),Xr(bl(e),n)},Vt.replace=function(){var e=arguments,n=bl(e[0]);return e.length<3?n:n.replace(e[1],e[2])},Vt.result=function(e,n,r){var i=-1,o=(n=xi(n,e)).length;for(o||(o=1,e=t);++i<o;){var a=null==e?t:e[zo(n[i])];a===t&&(i=o,a=r),e=Qa(a)?a.call(e):a}return e},Vt.round=Eu,Vt.runInContext=e,Vt.sample=function(e){return($a(e)?Qt:Qr)(e)},Vt.size=function(e){if(null==e)return 0;if(Ga(e))return ul(e)?dt(e):e.length;var n=mo(e);return n==E||n==A?e.size:Mr(e).length},Vt.snakeCase=Kl,Vt.some=function(e,n,r){var i=$a(e)?Nn:oi;return r&&ko(e,n,r)&&(n=t),i(e,co(n,3))},Vt.sortedIndex=function(e,n){return ai(e,n)},Vt.sortedIndexBy=function(e,n,t){return li(e,n,co(t,2))},Vt.sortedIndexOf=function(e,n){var t=null==e?0:e.length;if(t){var r=ai(e,n);if(r<t&&Va(e[r],n))return r}return-1},Vt.sortedLastIndex=function(e,n){return ai(e,n,!0)},Vt.sortedLastIndexBy=function(e,n,t){return li(e,n,co(t,2),!0)},Vt.sortedLastIndexOf=function(e,n){if(null==e?0:e.length){var t=ai(e,n,!0)-1;if(Va(e[t],n))return t}return-1},Vt.startCase=Zl,Vt.startsWith=function(e,n,t){return e=bl(e),t=null==t?0:ur(gl(t),0,e.length),n=si(n),e.slice(t,t+n.length)==n},Vt.subtract=_u,Vt.sum=function(e){return e&&e.length?Xn(e,iu):0},Vt.sumBy=function(e,n){return e&&e.length?Xn(e,co(n,2)):0},Vt.template=function(e,n,r){var i=Vt.templateSettings;r&&ko(e,n,r)&&(n=t),e=bl(e),n=wl({},n,i,Ji);var o,a,l=wl({},n.imports,i.imports,Ji),u=Pl(l),c=et(l,u),s=0,f=n.interpolate||xe,p="__p += '",d=Ae((n.escape||xe).source+"|"+f.source+"|"+(f===Q?pe:xe).source+"|"+(n.evaluate||xe).source+"|$","g"),h="//# sourceURL="+(Le.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ln+"]")+"\n";e.replace(d,(function(n,t,r,i,l,u){return r||(r=i),p+=e.slice(s,u).replace(ke,at),t&&(o=!0,p+="' +\n__e("+t+") +\n'"),l&&(a=!0,p+="';\n"+l+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=u+n.length,n})),p+="';\n";var g=Le.call(n,"variable")&&n.variable;if(g){if(se.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(U,""):p).replace(H,"$1").replace($,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Jl((function(){return Se(u,h+"return "+p).apply(t,c)}));if(m.source=p,Ya(m))throw m;return m},Vt.times=function(e,n){if((e=gl(e))<1||e>p)return[];var t=h,r=xt(e,h);n=co(n),e-=h;for(var i=Yn(r,n);++t<e;)n(t);return i},Vt.toFinite=hl,Vt.toInteger=gl,Vt.toLength=ml,Vt.toLower=function(e){return bl(e).toLowerCase()},Vt.toNumber=vl,Vt.toSafeInteger=function(e){return e?ur(gl(e),-9007199254740991,p):0===e?e:0},Vt.toString=bl,Vt.toUpper=function(e){return bl(e).toUpperCase()},Vt.trim=function(e,n,r){if((e=bl(e))&&(r||n===t))return Qn(e);if(!e||!(n=si(n)))return e;var i=ht(e),o=ht(n);return wi(i,tt(i,o),rt(i,o)+1).join("")},Vt.trimEnd=function(e,n,r){if((e=bl(e))&&(r||n===t))return e.slice(0,gt(e)+1);if(!e||!(n=si(n)))return e;var i=ht(e);return wi(i,0,rt(i,ht(n))+1).join("")},Vt.trimStart=function(e,n,r){if((e=bl(e))&&(r||n===t))return e.replace(ie,"");if(!e||!(n=si(n)))return e;var i=ht(e);return wi(i,tt(i,ht(n))).join("")},Vt.truncate=function(e,n){var r=30,i="...";if(nl(n)){var o="separator"in n?n.separator:o;r="length"in n?gl(n.length):r,i="omission"in n?si(n.omission):i}var a=(e=bl(e)).length;if(lt(e)){var l=ht(e);a=l.length}if(r>=a)return e;var u=r-dt(i);if(u<1)return i;var c=l?wi(l,0,u).join(""):e.slice(0,u);if(o===t)return c+i;if(l&&(u+=c.length-u),al(o)){if(e.slice(u).search(o)){var s,f=c;for(o.global||(o=Ae(o.source,bl(de.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var p=s.index;c=c.slice(0,p===t?u:p)}}else if(e.indexOf(si(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},Vt.unescape=function(e){return(e=bl(e))&&K.test(e)?e.replace(W,mt):e},Vt.uniqueId=function(e){var n=++Me;return bl(e)+n},Vt.upperCase=Xl,Vt.upperFirst=Yl,Vt.each=ba,Vt.eachRight=xa,Vt.first=Go,uu(Vt,function(){var e={};return kr(Vt,(function(n,t){Le.call(Vt.prototype,t)||(e[t]=n)})),e}(),{chain:!1}),Vt.VERSION="4.17.21",jn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vt[e].placeholder=Vt})),jn(["drop","take"],(function(e,n){$t.prototype[e]=function(r){r=r===t?1:bt(gl(r),0);var i=this.__filtered__&&!n?new $t(this):this.clone();return i.__filtered__?i.__takeCount__=xt(r,i.__takeCount__):i.__views__.push({size:xt(r,h),type:e+(i.__dir__<0?"Right":"")}),i},$t.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}})),jn(["filter","map","takeWhile"],(function(e,n){var t=n+1,r=1==t||3==t;$t.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:co(e,3),type:t}),n.__filtered__=n.__filtered__||r,n}})),jn(["head","last"],(function(e,n){var t="take"+(n?"Right":"");$t.prototype[e]=function(){return this[t](1).value()[0]}})),jn(["initial","tail"],(function(e,n){var t="drop"+(n?"":"Right");$t.prototype[e]=function(){return this.__filtered__?new $t(this):this[t](1)}})),$t.prototype.compact=function(){return this.filter(iu)},$t.prototype.find=function(e){return this.filter(e).head()},$t.prototype.findLast=function(e){return this.reverse().find(e)},$t.prototype.invokeMap=Yr((function(e,n){return"function"==typeof e?new $t(this):this.map((function(t){return Fr(t,e,n)}))})),$t.prototype.reject=function(e){return this.filter(La(co(e)))},$t.prototype.slice=function(e,n){e=gl(e);var r=this;return r.__filtered__&&(e>0||n<0)?new $t(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(n=gl(n))<0?r.dropRight(-n):r.take(n-e)),r)},$t.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$t.prototype.toArray=function(){return this.take(h)},kr($t.prototype,(function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=Vt[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(Vt.prototype[n]=function(){var n=this.__wrapped__,l=i?[1]:arguments,u=n instanceof $t,c=l[0],s=u||$a(n),f=function(e){var n=o.apply(Vt,Ln([e],l));return i&&p?n[0]:n};s&&r&&"function"==typeof c&&1!=c.length&&(u=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,g=u&&!d;if(!a&&s){n=g?n:new $t(this);var m=e.apply(n,l);return m.__actions__.push({func:ha,args:[f],thisArg:t}),new Ht(m,p)}return h&&g?e.apply(this,l):(m=this.thru(f),h?i?m.value()[0]:m.value():m)})})),jn(["pop","push","shift","sort","splice","unshift"],(function(e){var n=Fe[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vt.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply($a(i)?i:[],e)}return this[t]((function(t){return n.apply($a(t)?t:[],e)}))}})),kr($t.prototype,(function(e,n){var t=Vt[n];if(t){var r=t.name+"";Le.call(Pt,r)||(Pt[r]=[]),Pt[r].push({name:n,func:t})}})),Pt[Vi(t,2).name]=[{name:"wrapper",func:t}],$t.prototype.clone=function(){var e=new $t(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},$t.prototype.reverse=function(){if(this.__filtered__){var e=new $t(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$t.prototype.value=function(){var e=this.__wrapped__.value(),n=this.__dir__,t=$a(e),r=n<0,i=t?e.length:0,o=function(e,n,t){var r=-1,i=t.length;for(;++r<i;){var o=t[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":n-=a;break;case"take":n=xt(n,e+a);break;case"takeRight":e=bt(e,n-a)}}return{start:e,end:n}}(0,i,this.__views__),a=o.start,l=o.end,u=l-a,c=r?l:a-1,s=this.__iteratees__,f=s.length,p=0,d=xt(u,this.__takeCount__);if(!t||!r&&i==u&&d==u)return gi(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var g=-1,m=e[c+=n];++g<f;){var v=s[g],y=v.iteratee,b=v.type,x=y(m);if(2==b)m=x;else if(!x){if(1==b)continue e;break e}}h[p++]=m}return h},Vt.prototype.at=ga,Vt.prototype.chain=function(){return da(this)},Vt.prototype.commit=function(){return new Ht(this.value(),this.__chain__)},Vt.prototype.next=function(){this.__values__===t&&(this.__values__=dl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},Vt.prototype.plant=function(e){for(var n,r=this;r instanceof Ut;){var i=Bo(r);i.__index__=0,i.__values__=t,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,n},Vt.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $t){var n=e;return this.__actions__.length&&(n=new $t(this)),(n=n.reverse()).__actions__.push({func:ha,args:[na],thisArg:t}),new Ht(n,this.__chain__)}return this.thru(na)},Vt.prototype.toJSON=Vt.prototype.valueOf=Vt.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Vt.prototype.first=Vt.prototype.head,Qe&&(Vt.prototype[Qe]=function(){return this}),Vt}();vn?((vn.exports=vt)._=vt,mn._=vt):gn._=vt}).call(Me)})),fn=function(e){var n=e.entries,t=e.options,r=e.blockedOptions,i=e.onChange,a=s((function(){return sn.chunk(Object.entries(t).map((function(e){var t=e[0],i=n.includes(t),o=r.includes(t)&&!i;return{value:t,label:e[1],selected:i,disabled:o}})),1)}),[t,n,r]);return o.createElement(x,{width:"100%"},a.map((function(e,t){return o.createElement(x,{key:"row-".concat(t),width:"100%",mb:2},e.map((function(e,t){var r=e.value,a=e.label,l=e.selected,u=e.disabled;return o.createElement(R,{key:"option-".concat(r),disabled:u,disableElevation:!0,variant:l?"contained":"outlined",color:l?"primary":"inherit",sx:{width:"100%",p:0,pl:function(e){return e.spacing(2)},pr:function(e){return e.spacing(2)},height:function(e){return e.spacing(7)},mr:0===t?2:0},onClick:function(){return function(e){var t=structuredClone(n);if(t.includes(e)){var r=t.findIndex((function(n){return n===e}));t.splice(r,1)}else t.push(e);i(t)}(r)}},o.createElement(k,{variant:"button",noWrap:!0},a))})))})))};fn.propTypes={entries:m.array.isRequired,options:m.array.isRequired,blockedOptions:m.array.isRequired,onChange:m.func.isRequired};var pn=function(e){var t=e.variant,r=e.name,i=e.label,l=e.value,c=e.options,s=e.maxEntries,f=e.optionsAsGrid,p=e.onChange,d=a(l||[]),h=n(d,2),g=h[0],m=h[1];u((function(){var e=g.length>0?g:void 0;p({target:{name:r,value:e}})}),[g]);var v=[];c&&(v=Object.entries(c).filter((function(e){return Array.isArray(l)&&l.includes(e[0])})).map((function(e){return e[0]}))),s&&(null==l?void 0:l.length)>=s&&(v=Object.entries(c).map((function(e){return e[0]})));var y=f?fn:cn;return o.createElement(x,null,i&&o.createElement(k,{variant:"body1"},i),o.createElement(y,{variant:t,entries:g,options:c,blockedOptions:v,onChange:m}))};pn.propTypes={variant:m.oneOf(["standard","filled","outlined"]),name:m.string,label:m.string,value:m.any,options:m.object,maxEntries:m.number,optionsAsGrid:m.bool,onChange:m.func.isRequired};var dn=["prepend","append","componentProps"];function hn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function gn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?hn(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var mn=U((function(e){return{readOnlyField:{width:"100%",display:"flex",flexDirection:"column",marginBottom:e.spacing(1.5),"&:last-child":{marginBottom:0}}}})),vn=function(e){var n,t=e.formVariant,r=e.type,i=e.name,a=e.label,l=e.component,u=e.componentProps,c=void 0===u?{}:u,s=e.value,f=e.options,p=e.required,d=gn(gn({},c),{},{formVariant:t,name:i,label:a,value:s,options:f,required:p,readOnly:!0}),h=mn(),g="boolean"===r;return!0!==(null==c?void 0:c.readOnlyHidden)&&(n="@@render"===r?o.cloneElement(l,d):o.createElement(l,d),o.createElement(x,{className:h.readOnlyField},a&&!g&&o.createElement(k,{variant:"caption",color:"textSecondary"},a),n))};vn.propTypes={formVariant:m.oneOf(["block","card"]),component:m.any.isRequired,componentProps:m.object,name:m.string.isRequired,type:m.string.isRequired,label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool,m.array]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.any})),required:m.bool};var yn=function(e){e.prepend,e.append;var n=e.componentProps,t=H(e,dn),r=gn({componentProps:n},t);return"hidden"===(null==n?void 0:n.type)?o.createElement("input",{type:"hidden",name:t.name,value:t.value}):o.createElement(vn,r)};yn.propTypes={component:m.any.isRequired,componentProps:m.object,type:m.string.isRequired,name:m.string.isRequired,label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool,m.array]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.any})),prepend:m.array,append:m.array,hasErrors:m.bool,errors:m.array,validating:m.bool,required:m.bool,dirty:m.bool};var bn=o.memo(yn);const xn=["http","https","mailto","tel"];
|
|
16
|
+
/*!
|
|
17
|
+
* Determine if an object is a Buffer
|
|
18
|
+
*
|
|
19
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/
|
|
22
|
+
var kn=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)};function wn(e){return e&&"object"==typeof e?"position"in e||"type"in e?_n(e.position):"start"in e||"end"in e?_n(e):"line"in e||"column"in e?En(e):"":""}function En(e){return Sn(e&&e.line)+":"+Sn(e&&e.column)}function _n(e){return En(e&&e.start)+"-"+En(e&&e.end)}function Sn(e){return e&&"number"==typeof e?e:1}class On extends Error{constructor(e,n,t){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof n&&(t=n,n=void 0),"string"==typeof t){const e=t.indexOf(":");-1===e?r[1]=t:(r[0]=t.slice(0,e),r[1]=t.slice(e+1))}n&&("type"in n||"position"in n?n.position&&(i=n.position):"start"in n||"end"in n?i=n:("line"in n||"column"in n)&&(i.start=n)),this.name=wn(n)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.source=r[0],this.ruleId=r[1],this.position=i,this.actual,this.expected,this.file,this.url,this.note}}On.prototype.file="",On.prototype.name="",On.prototype.reason="",On.prototype.message="",On.prototype.stack="",On.prototype.fatal=null,On.prototype.column=null,On.prototype.line=null,On.prototype.source=null,On.prototype.ruleId=null,On.prototype.position=null;const Cn={basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');An(e);let t,r=0,i=-1,o=e.length;if(void 0===n||0===n.length||n.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(t){r=o+1;break}}else i<0&&(t=!0,i=o+1);return i<0?"":e.slice(r,i)}if(n===e)return"";let a=-1,l=n.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(t){r=o+1;break}}else a<0&&(t=!0,a=o+1),l>-1&&(e.charCodeAt(o)===n.charCodeAt(l--)?l<0&&(i=o):(l=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(An(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){An(e);let n,t=e.length,r=-1,i=0,o=-1,a=0;for(;t--;){const l=e.charCodeAt(t);if(47!==l)r<0&&(n=!0,r=t+1),46===l?o<0?o=t:1!==a&&(a=1):o>-1&&(a=-1);else if(n){i=t+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let n,t=-1;for(;++t<e.length;)An(e[t]),e[t]&&(n=void 0===n?e[t]:n+"/"+e[t]);return void 0===n?".":function(e){An(e);const n=47===e.charCodeAt(0);let t=function(e,n){let t,r,i="",o=0,a=-1,l=0,u=-1;for(;++u<=e.length;){if(u<e.length)t=e.charCodeAt(u);else{if(47===t)break;t=47}if(47===t){if(a===u-1||1===l);else if(a!==u-1&&2===l){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=u,l=0;continue}}else if(i.length>0){i="",o=0,a=u,l=0;continue}n&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,u):i=e.slice(a+1,u),o=u-a-1;a=u,l=0}else 46===t&&l>-1?l++:l=-1}return i}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function An(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const jn={cwd:function(){return"/"}};function Tn(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function Fn(e){if("string"==typeof e)e=new URL(e);else if(!Tn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const n=e.pathname;let t=-1;for(;++t<n.length;)if(37===n.charCodeAt(t)&&50===n.charCodeAt(t+1)){const e=n.charCodeAt(t+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(n)}(e)}const Pn=["history","path","basename","stem","extname","dirname"];class In{constructor(e){let n;n=e?"string"==typeof e||kn(e)?{value:e}:Tn(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=jn.cwd(),this.value,this.stored,this.result,this.map;let t,r=-1;for(;++r<Pn.length;){const e=Pn[r];e in n&&void 0!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(t in n)Pn.includes(t)||(this[t]=n[t])}get path(){return this.history[this.history.length-1]}set path(e){Tn(e)&&(e=Fn(e)),Dn(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?Cn.dirname(this.path):void 0}set dirname(e){Ln(this.basename,"dirname"),this.path=Cn.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?Cn.basename(this.path):void 0}set basename(e){Dn(e,"basename"),Rn(e,"basename"),this.path=Cn.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?Cn.extname(this.path):void 0}set extname(e){if(Rn(e,"extname"),Ln(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Cn.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?Cn.basename(this.path,this.extname):void 0}set stem(e){Dn(e,"stem"),Rn(e,"stem"),this.path=Cn.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,n,t){const r=new On(e,n,t);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,n,t){const r=this.message(e,n,t);return r.fatal=null,r}fail(e,n,t){const r=this.message(e,n,t);throw r.fatal=!0,r}}function Rn(e,n){if(e&&e.includes(Cn.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Cn.sep+"`")}function Dn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Ln(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Mn(e){if(e)throw e}var zn=Object.prototype.hasOwnProperty,Nn=Object.prototype.toString,Bn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,qn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Nn.call(e)},Un=function(e){if(!e||"[object Object]"!==Nn.call(e))return!1;var n,t=zn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&zn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;for(n in e);return void 0===n||zn.call(e,n)},Hn=function(e,n){Bn&&"__proto__"===n.name?Bn(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},$n=function(e,n){if("__proto__"===n){if(!zn.call(e,n))return;if(Vn)return Vn(e,n).value}return e[n]},Wn=function e(){var n,t,r,i,o,a,l=arguments[0],u=1,c=arguments.length,s=!1;for("boolean"==typeof l&&(s=l,l=arguments[1]||{},u=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});u<c;++u)if(null!=(n=arguments[u]))for(t in n)r=$n(l,t),l!==(i=$n(n,t))&&(s&&i&&(Un(i)||(o=qn(i)))?(o?(o=!1,a=r&&qn(r)?r:[]):a=r&&Un(r)?r:{},Hn(l,{name:t,newValue:e(s,a,i)})):void 0!==i&&Hn(l,{name:t,newValue:i}));return l};function Gn(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}function Kn(){const e=[],n={run:function(...n){let t=-1;const r=n.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...a){const l=e[++t];let u=-1;if(o)r(o);else{for(;++u<n.length;)null!==a[u]&&void 0!==a[u]||(a[u]=n[u]);n=a,l?function(e,n){let t;return r;function r(...n){const r=e.length>n.length;let a;r&&n.push(i);try{a=e.apply(this,n)}catch(e){if(r&&t)throw e;return i(e)}r||(a instanceof Promise?a.then(o,i):a instanceof Error?i(a):o(a))}function i(e,...r){t||(t=!0,n(e,...r))}function o(e){i(null,e)}}(l,i)(...a):r(null,...a)}}(null,...n)},use:function(t){if("function"!=typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const Zn=function e(){const n=Kn(),t=[];let r,i={},o=-1;return a.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(et("data",r),i[e]=n,a):Xn.call(i,e)&&i[e]||null;if(e)return et("data",r),i=e,a;return i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(r)return a;for(;++o<t.length;){const[e,...r]=t[o];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const i=e.call(a,...r);"function"==typeof i&&n.use(i)}return r=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=t,a.use=function(e,...n){let o;if(et("use",r),null==e);else if("function"==typeof e)s(e,...n);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?c(e):u(e)}o&&(i.settings=Object.assign(i.settings||{},o));return a;function l(e){if("function"==typeof e)s(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[n,...t]=e;s(n,...t)}else u(e)}}function u(e){c(e.plugins),e.settings&&(o=Object.assign(o||{},e.settings))}function c(e){let n=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++n<e.length;){l(e[n])}}}function s(e,n){let r,i=-1;for(;++i<t.length;)if(t[i][0]===e){r=t[i];break}r?(Gn(r[1])&&Gn(n)&&(n=Wn(!0,r[1],n)),r[1]=n):t.push([...arguments])}},a.parse=function(e){a.freeze();const n=rt(e),t=a.Parser;if(Qn("parse",t),Yn(t,"parse"))return new t(String(n),n).parse();return t(String(n),n)},a.stringify=function(e,n){a.freeze();const t=rt(n),r=a.Compiler;if(Jn("stringify",r),nt(e),Yn(r,"compile"))return new r(e,t).compile();return r(e,t)},a.run=function(e,t,r){nt(e),a.freeze(),r||"function"!=typeof t||(r=t,t=void 0);if(!r)return new Promise(i);function i(i,o){function a(n,t,a){t=t||e,n?o(n):i?i(t):r(null,t,a)}n.run(e,rt(t),a)}i(null,r)},a.runSync=function(e,n){let t,r;return a.run(e,n,i),tt("runSync","run",r),t;function i(e,n){Mn(e),t=n,r=!0}},a.process=function(e,n){if(a.freeze(),Qn("process",a.Parser),Jn("process",a.Compiler),!n)return new Promise(t);function t(t,r){const i=rt(e);function o(e,i){e||!i?r(e):t?t(i):n(null,i)}a.run(a.parse(i),i,((e,n,t)=>{if(!e&&n&&t){const i=a.stringify(n,t);null==i||("string"==typeof(r=i)||kn(r)?t.value=i:t.result=i),o(e,t)}else o(e);var r}))}t(null,n)},a.processSync=function(e){let n;a.freeze(),Qn("processSync",a.Parser),Jn("processSync",a.Compiler);const t=rt(e);return a.process(t,r),tt("processSync","process",n),t;function r(e){n=!0,Mn(e)}},a;function a(){const n=e();let r=-1;for(;++r<t.length;)n.use(...t[r]);return n.data(Wn(!0,{},i)),n}}().freeze(),Xn={}.hasOwnProperty;function Yn(e,n){return"function"==typeof e&&e.prototype&&(function(e){let n;for(n in e)if(Xn.call(e,n))return!0;return!1}(e.prototype)||n in e.prototype)}function Qn(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Jn(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function et(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nt(e){if(!Gn(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function tt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function rt(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new In(e)}function it(e,n){return e&&"object"==typeof e&&(e.value||(n?e.alt:"")||"children"in e&&ot(e.children,n)||Array.isArray(e)&&ot(e,n))||""}function ot(e,n){for(var t=[],r=-1;++r<e.length;)t[r]=it(e[r],n);return t.join("")}function at(e,n,t,r){const i=e.length;let o,a=0;if(n=n<0?-n>i?0:i+n:n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),[].splice.apply(e,o);else for(t&&[].splice.apply(e,[n,t]);a<r.length;)o=r.slice(a,a+1e4),o.unshift(n,0),[].splice.apply(e,o),a+=1e4,n+=1e4}function lt(e,n){return e.length>0?(at(e,e.length,0,n),e):n}const ut={}.hasOwnProperty;function ct(e){const n={};let t=-1;for(;++t<e.length;)st(n,e[t]);return n}function st(e,n){let t;for(t in n){const r=(ut.call(e,t)?e[t]:void 0)||(e[t]={}),i=n[t];let o;for(o in i){ut.call(r,o)||(r[o]=[]);const e=i[o];ft(r[o],Array.isArray(e)?e:e?[e]:[])}}}function ft(e,n){let t=-1;const r=[];for(;++t<n.length;)("after"===n[t].add?e:r).push(n[t]);at(e,0,0,r)}const pt=_t(/[A-Za-z]/),dt=_t(/\d/),ht=_t(/[\dA-Fa-f]/),gt=_t(/[\dA-Za-z]/),mt=_t(/[!-/:-@[-`{-~]/),vt=_t(/[#-'*+\--9=?A-Z^-~]/);function yt(e){return null!==e&&(e<32||127===e)}function bt(e){return null!==e&&(e<0||32===e)}function xt(e){return null!==e&&e<-2}function kt(e){return-2===e||-1===e||32===e}const wt=_t(/\s/),Et=_t(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function _t(e){return function(n){return null!==n&&e.test(String.fromCharCode(n))}}function St(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(kt(r))return e.enter(t),a(r);return n(r)};function a(r){return kt(r)&&o++<i?(e.consume(r),a):(e.exit(t),n(r))}}const Ot={tokenize:function(e){const n=e.attempt(this.parser.constructs.contentInitial,(function(t){if(null===t)return void e.consume(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),St(e,n,"linePrefix")}),(function(n){return e.enter("paragraph"),r(n)}));let t;return n;function r(n){const r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,i(n)}function i(n){return null===n?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(n)):xt(n)?(e.consume(n),e.exit("chunkText"),r):(e.consume(n),i)}}};const Ct={tokenize:function(e){const n=this,t=[];let r,i,o,a=0;return l;function l(r){if(a<t.length){const i=t[a];return n.containerState=i[1],e.attempt(i[0].continuation,u,c)(r)}return c(r)}function u(e){if(a++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,r&&y();const t=n.events.length;let i,o=t;for(;o--;)if("exit"===n.events[o][0]&&"chunkFlow"===n.events[o][1].type){i=n.events[o][1].end;break}v(a);let l=t;for(;l<n.events.length;)n.events[l][1].end=Object.assign({},i),l++;return at(n.events,o+1,0,n.events.slice(t)),n.events.length=l,c(e)}return l(e)}function c(i){if(a===t.length){if(!r)return p(i);if(r.currentConstruct&&r.currentConstruct.concrete)return h(i);n.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(At,s,f)(i)}function s(e){return r&&y(),v(a),p(e)}function f(e){return n.parser.lazy[n.now().line]=a!==t.length,o=n.now().offset,h(e)}function p(t){return n.containerState={},e.attempt(At,d,h)(t)}function d(e){return a++,t.push([n.currentConstruct,n.containerState]),p(e)}function h(t){return null===t?(r&&y(),v(0),void e.consume(t)):(r=r||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),g(t))}function g(t){return null===t?(m(e.exit("chunkFlow"),!0),v(0),void e.consume(t)):xt(t)?(e.consume(t),m(e.exit("chunkFlow")),a=0,n.interrupt=void 0,l):(e.consume(t),g)}function m(e,t){const l=n.sliceStream(e);if(t&&l.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(l),n.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const t=n.events.length;let i,l,u=t;for(;u--;)if("exit"===n.events[u][0]&&"chunkFlow"===n.events[u][1].type){if(i){l=n.events[u][1].end;break}i=!0}for(v(a),e=t;e<n.events.length;)n.events[e][1].end=Object.assign({},l),e++;at(n.events,u+1,0,n.events.slice(t)),n.events.length=e}}function v(r){let i=t.length;for(;i-- >r;){const r=t[i];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function y(){r.write([null]),i=void 0,r=void 0,n.containerState._closeFlow=void 0}}},At={tokenize:function(e,n,t){return St(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function jt(e){return null===e||bt(e)||wt(e)?1:Et(e)?2:void 0}function Tt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Ft={name:"attention",tokenize:function(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=jt(r);let o;return function(n){return e.enter("attentionSequence"),o=n,a(n)};function a(l){if(l===o)return e.consume(l),a;const u=e.exit("attentionSequence"),c=jt(l),s=!c||2===c&&i||t.includes(l),f=!i||2===i&&c||t.includes(r);return u._open=Boolean(42===o?s:s&&(i||!f)),u._close=Boolean(42===o?f:f&&(c||!s)),n(l)}},resolveAll:function(e,n){let t,r,i,o,a,l,u,c,s=-1;for(;++s<e.length;)if("enter"===e[s][0]&&"attentionSequence"===e[s][1].type&&e[s][1]._close)for(t=s;t--;)if("exit"===e[t][0]&&"attentionSequence"===e[t][1].type&&e[t][1]._open&&n.sliceSerialize(e[t][1]).charCodeAt(0)===n.sliceSerialize(e[s][1]).charCodeAt(0)){if((e[t][1]._close||e[s][1]._open)&&(e[s][1].end.offset-e[s][1].start.offset)%3&&!((e[t][1].end.offset-e[t][1].start.offset+e[s][1].end.offset-e[s][1].start.offset)%3))continue;l=e[t][1].end.offset-e[t][1].start.offset>1&&e[s][1].end.offset-e[s][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),p=Object.assign({},e[s][1].start);Pt(f,-l),Pt(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[s][1].start),end:p},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[s][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[t][1].end=Object.assign({},o.start),e[s][1].start=Object.assign({},a.end),u=[],e[t][1].end.offset-e[t][1].start.offset&&(u=lt(u,[["enter",e[t][1],n],["exit",e[t][1],n]])),u=lt(u,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",i,n]]),u=lt(u,Tt(n.parser.constructs.insideSpan.null,e.slice(t+1,s),n)),u=lt(u,[["exit",i,n],["enter",a,n],["exit",a,n],["exit",r,n]]),e[s][1].end.offset-e[s][1].start.offset?(c=2,u=lt(u,[["enter",e[s][1],n],["exit",e[s][1],n]])):c=0,at(e,t-1,s-t+3,u),s=t+u.length-c-2;break}s=-1;for(;++s<e.length;)"attentionSequence"===e[s][1].type&&(e[s][1].type="data");return e}};function Pt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const It={name:"autolink",tokenize:function(e,n,t){let r=1;return function(n){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(n){return pt(n)?(e.consume(n),o):vt(n)?u(n):t(n)}function o(e){return 43===e||45===e||46===e||gt(e)?a(e):u(e)}function a(n){return 58===n?(e.consume(n),l):(43===n||45===n||46===n||gt(n))&&r++<32?(e.consume(n),a):u(n)}function l(n){return 62===n?(e.exit("autolinkProtocol"),p(n)):null===n||32===n||60===n||yt(n)?t(n):(e.consume(n),l)}function u(n){return 64===n?(e.consume(n),r=0,c):vt(n)?(e.consume(n),u):t(n)}function c(e){return gt(e)?s(e):t(e)}function s(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",p(n)):f(n)}function f(n){return(45===n||gt(n))&&r++<63?(e.consume(n),45===n?f:s):t(n)}function p(t){return e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.exit("autolink"),n}}};const Rt={tokenize:function(e,n,t){return St(e,(function(e){return null===e||xt(e)?n(e):t(e)}),"linePrefix")},partial:!0};const Dt={name:"blockQuote",tokenize:function(e,n,t){const r=this;return function(n){if(62===n){const t=r.containerState;return t.open||(e.enter("blockQuote",{_container:!0}),t.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(n),e.exit("blockQuoteMarker"),i}return t(n)};function i(t){return kt(t)?(e.enter("blockQuotePrefixWhitespace"),e.consume(t),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(t))}},continuation:{tokenize:function(e,n,t){return St(e,e.attempt(Dt,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const Lt={name:"characterEscape",tokenize:function(e,n,t){return function(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),r};function r(r){return mt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(r)}}};const Mt=document.createElement("i");function zt(e){const n="&"+e+";";Mt.innerHTML=n;const t=Mt.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===e)&&(t!==n&&t)}const Nt={name:"characterReference",tokenize:function(e,n,t){const r=this;let i,o,a=0;return function(n){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(n),e.exit("characterReferenceMarker"),l};function l(n){return 35===n?(e.enter("characterReferenceMarkerNumeric"),e.consume(n),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=gt,c(n))}function u(n){return 88===n||120===n?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(n),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=ht,c):(e.enter("characterReferenceValue"),i=7,o=dt,c(n))}function c(l){let u;return 59===l&&a?(u=e.exit("characterReferenceValue"),o!==gt||zt(r.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),n):t(l)):o(l)&&a++<i?(e.consume(l),c):t(l)}}};const Bt={name:"codeFenced",tokenize:function(e,n,t){const r=this,i={tokenize:function(e,n,t){let r=0;return St(e,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),o(n)}function o(n){return n===u?(e.consume(n),r++,o):r<c?t(n):(e.exit("codeFencedFenceSequence"),St(e,a,"whitespace")(n))}function a(r){return null===r||xt(r)?(e.exit("codeFencedFence"),n(r)):t(r)}},partial:!0},o={tokenize:function(e,n,t){const r=this;return i;function i(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o}function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}},partial:!0},a=this.events[this.events.length-1],l=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let u,c=0;return function(n){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=n,s(n)};function s(n){return n===u?(e.consume(n),c++,s):(e.exit("codeFencedFenceSequence"),c<3?t(n):St(e,f,"whitespace")(n))}function f(n){return null===n||xt(n)?g(n):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(n))}function p(n){return null===n||bt(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),St(e,d,"whitespace")(n)):96===n&&n===u?t(n):(e.consume(n),p)}function d(n){return null===n||xt(n)?g(n):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(n))}function h(n){return null===n||xt(n)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(n)):96===n&&n===u?t(n):(e.consume(n),h)}function g(t){return e.exit("codeFencedFence"),r.interrupt?n(t):m(t)}function m(n){return null===n?y(n):xt(n)?e.attempt(o,e.attempt(i,y,l?St(e,m,"linePrefix",l+1):m),y)(n):(e.enter("codeFlowValue"),v(n))}function v(n){return null===n||xt(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),v)}function y(t){return e.exit("codeFenced"),n(t)}},concrete:!0};const Vt={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),St(e,i,"linePrefix",5)(n)};function i(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?o(e):t(e)}function o(n){return null===n?l(n):xt(n)?e.attempt(qt,o,l)(n):(e.enter("codeFlowValue"),a(n))}function a(n){return null===n||xt(n)?(e.exit("codeFlowValue"),o(n)):(e.consume(n),a)}function l(t){return e.exit("codeIndented"),n(t)}}},qt={tokenize:function(e,n,t){const r=this;return i;function i(n){return r.parser.lazy[r.now().line]?t(n):xt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i):St(e,o,"linePrefix",5)(n)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?n(e):xt(e)?i(e):t(e)}},partial:!0};const Ut={name:"codeText",tokenize:function(e,n,t){let r,i,o=0;return function(n){return e.enter("codeText"),e.enter("codeTextSequence"),a(n)};function a(n){return 96===n?(e.consume(n),o++,a):(e.exit("codeTextSequence"),l(n))}function l(n){return null===n?t(n):96===n?(i=e.enter("codeTextSequence"),r=0,c(n)):32===n?(e.enter("space"),e.consume(n),e.exit("space"),l):xt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(n))}function u(n){return null===n||32===n||96===n||xt(n)?(e.exit("codeTextData"),l(n)):(e.consume(n),u)}function c(t){return 96===t?(e.consume(t),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),n(t)):(i.type="codeTextData",u(t))}},resolve:function(e){let n,t,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(n=i;++n<r;)if("codeTextData"===e[n][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}n=i-1,r++;for(;++n<=r;)void 0===t?n!==r&&"lineEnding"!==e[n][1].type&&(t=n):n!==r&&"lineEnding"!==e[n][1].type||(e[t][1].type="codeTextData",n!==t+2&&(e[t][1].end=e[n-1][1].end,e.splice(t+2,n-t-2),r-=n-t-2,n=t+2),t=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function Ht(e){const n={};let t,r,i,o,a,l,u,c=-1;for(;++c<e.length;){for(;c in n;)c=n[c];if(t=e[c],c&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[c-1][1].type&&(l=t[1]._tokenizer.events,i=0,i<l.length&&"lineEndingBlank"===l[i][1].type&&(i+=2),i<l.length&&"content"===l[i][1].type))for(;++i<l.length&&"content"!==l[i][1].type;)"chunkText"===l[i][1].type&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===t[0])t[1].contentType&&(Object.assign(n,$t(e,c)),c=n[c],u=!0);else if(t[1]._container){for(i=c,r=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(t[1].end=Object.assign({},e[r][1].start),a=e.slice(r,c),a.unshift(t),at(e,r,c-r+1,a))}}return!u}function $t(e,n){const t=e[n][1],r=e[n][2];let i=n-1;const o=[],a=t._tokenizer||r.parser[t.contentType](t.start),l=a.events,u=[],c={};let s,f,p=-1,d=t,h=0,g=0;const m=[g];for(;d;){for(;e[++i][1]!==d;);o.push(i),d._tokenizer||(s=r.sliceStream(d),d.next||s.push(null),f&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(s),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=t;++p<l.length;)"exit"===l[p][0]&&"enter"===l[p-1][0]&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(g=p+1,m.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):m.pop(),p=m.length;p--;){const n=l.slice(m[p],m[p+1]),t=o.pop();u.unshift([t,t+n.length-1]),at(e,t,2,n)}for(p=-1;++p<u.length;)c[h+u[p][0]]=h+u[p][1],h+=u[p][1]-u[p][0]-1;return c}const Wt={tokenize:function(e,n){let t;return function(n){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),r(n)};function r(n){return null===n?i(n):xt(n)?e.check(Gt,o,i)(n):(e.consume(n),r)}function i(t){return e.exit("chunkContent"),e.exit("content"),n(t)}function o(n){return e.consume(n),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,r}},resolve:function(e){return Ht(e),e}},Gt={tokenize:function(e,n,t){const r=this;return function(n){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),St(e,i,"linePrefix")};function i(i){if(null===i||xt(i))return t(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?n(i):e.interrupt(r.parser.constructs.flow,t,n)(i)}},partial:!0};function Kt(e,n,t,r,i,o,a,l,u){const c=u||Number.POSITIVE_INFINITY;let s=0;return function(n){if(60===n)return e.enter(r),e.enter(i),e.enter(o),e.consume(n),e.exit(o),f;if(null===n||41===n||yt(n))return t(n);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(n)};function f(t){return 62===t?(e.enter(o),e.consume(t),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(t))}function p(n){return 62===n?(e.exit("chunkString"),e.exit(l),f(n)):null===n||60===n||xt(n)?t(n):(e.consume(n),92===n?d:p)}function d(n){return 60===n||62===n||92===n?(e.consume(n),p):p(n)}function h(i){return 40===i?++s>c?t(i):(e.consume(i),h):41===i?s--?(e.consume(i),h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),n(i)):null===i||bt(i)?s?t(i):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),n(i)):yt(i)?t(i):(e.consume(i),92===i?g:h)}function g(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function Zt(e,n,t,r,i,o){const a=this;let l,u=0;return function(n){return e.enter(r),e.enter(i),e.consume(n),e.exit(i),e.enter(o),c};function c(f){return null===f||91===f||93===f&&!l||94===f&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs||u>999?t(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):xt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),s(f))}function s(n){return null===n||91===n||93===n||xt(n)||u++>999?(e.exit("chunkString"),c(n)):(e.consume(n),l=l||!kt(n),92===n?f:s)}function f(n){return 91===n||92===n||93===n?(e.consume(n),u++,s):s(n)}}function Xt(e,n,t,r,i,o){let a;return function(n){return e.enter(r),e.enter(i),e.consume(n),e.exit(i),a=40===n?41:n,l};function l(t){return t===a?(e.enter(i),e.consume(t),e.exit(i),e.exit(r),n):(e.enter(o),u(t))}function u(n){return n===a?(e.exit(o),l(a)):null===n?t(n):xt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),St(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(n))}function c(n){return n===a||null===n||xt(n)?(e.exit("chunkString"),u(n)):(e.consume(n),92===n?s:c)}function s(n){return n===a||92===n?(e.consume(n),c):c(n)}}function Yt(e,n){let t;return function r(i){if(xt(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r;if(kt(i))return St(e,r,t?"linePrefix":"lineSuffix")(i);return n(i)}}function Qt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jt={name:"definition",tokenize:function(e,n,t){const r=this;let i;return function(n){return e.enter("definition"),Zt.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function o(n){return i=Qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Yt(e,Kt(e,e.attempt(er,St(e,a,"whitespace"),St(e,a,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function a(o){return null===o||xt(o)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),n(o)):t(o)}}},er={tokenize:function(e,n,t){return function(n){return bt(n)?Yt(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Xt(e,St(e,i,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function i(e){return null===e||xt(e)?n(e):t(e)}},partial:!0};const nr={name:"hardBreakEscape",tokenize:function(e,n,t){return function(n){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(n),r};function r(r){return xt(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}};const tr={name:"headingAtx",tokenize:function(e,n,t){const r=this;let i=0;return function(n){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(n)};function o(l){return 35===l&&i++<6?(e.consume(l),o):null===l||bt(l)?(e.exit("atxHeadingSequence"),r.interrupt?n(l):a(l)):t(l)}function a(t){return 35===t?(e.enter("atxHeadingSequence"),l(t)):null===t||xt(t)?(e.exit("atxHeading"),n(t)):kt(t)?St(e,a,"whitespace")(t):(e.enter("atxHeadingText"),u(t))}function l(n){return 35===n?(e.consume(n),l):(e.exit("atxHeadingSequence"),a(n))}function u(n){return null===n||35===n||bt(n)?(e.exit("atxHeadingText"),a(n)):(e.consume(n),u)}},resolve:function(e,n){let t,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(t={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},at(e,o,i-o+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const rr=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ir=["pre","script","style","textarea"],or={name:"htmlFlow",tokenize:function(e,n,t){const r=this;let i,o,a,l,u;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(l){return 33===l?(e.consume(l),s):47===l?(e.consume(l),d):63===l?(e.consume(l),i=3,r.interrupt?n:R):pt(l)?(e.consume(l),a=String.fromCharCode(l),o=!0,h):t(l)}function s(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,a="CDATA[",l=0,p):pt(o)?(e.consume(o),i=4,r.interrupt?n:R):t(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?n:R):t(i)}function p(i){return i===a.charCodeAt(l++)?(e.consume(i),l===a.length?r.interrupt?n:O:p):t(i)}function d(n){return pt(n)?(e.consume(n),a=String.fromCharCode(n),h):t(n)}function h(l){return null===l||47===l||62===l||bt(l)?47!==l&&o&&ir.includes(a.toLowerCase())?(i=1,r.interrupt?n(l):O(l)):rr.includes(a.toLowerCase())?(i=6,47===l?(e.consume(l),g):r.interrupt?n(l):O(l)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(l):o?v(l):m(l)):45===l||gt(l)?(e.consume(l),a+=String.fromCharCode(l),h):t(l)}function g(i){return 62===i?(e.consume(i),r.interrupt?n:O):t(i)}function m(n){return kt(n)?(e.consume(n),m):_(n)}function v(n){return 47===n?(e.consume(n),_):58===n||95===n||pt(n)?(e.consume(n),y):kt(n)?(e.consume(n),v):_(n)}function y(n){return 45===n||46===n||58===n||95===n||gt(n)?(e.consume(n),y):b(n)}function b(n){return 61===n?(e.consume(n),x):kt(n)?(e.consume(n),b):v(n)}function x(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),u=n,k):kt(n)?(e.consume(n),x):(u=null,w(n))}function k(n){return null===n||xt(n)?t(n):n===u?(e.consume(n),E):(e.consume(n),k)}function w(n){return null===n||34===n||39===n||60===n||61===n||62===n||96===n||bt(n)?b(n):(e.consume(n),w)}function E(e){return 47===e||62===e||kt(e)?v(e):t(e)}function _(n){return 62===n?(e.consume(n),S):t(n)}function S(n){return kt(n)?(e.consume(n),S):null===n||xt(n)?O(n):t(n)}function O(n){return 45===n&&2===i?(e.consume(n),T):60===n&&1===i?(e.consume(n),F):62===n&&4===i?(e.consume(n),D):63===n&&3===i?(e.consume(n),R):93===n&&5===i?(e.consume(n),I):!xt(n)||6!==i&&7!==i?null===n||xt(n)?C(n):(e.consume(n),O):e.check(ar,D,C)(n)}function C(n){return e.exit("htmlFlowData"),A(n)}function A(n){return null===n?L(n):xt(n)?e.attempt({tokenize:j,partial:!0},A,L)(n):(e.enter("htmlFlowData"),O(n))}function j(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}function T(n){return 45===n?(e.consume(n),R):O(n)}function F(n){return 47===n?(e.consume(n),a="",P):O(n)}function P(n){return 62===n&&ir.includes(a.toLowerCase())?(e.consume(n),D):pt(n)&&a.length<8?(e.consume(n),a+=String.fromCharCode(n),P):O(n)}function I(n){return 93===n?(e.consume(n),R):O(n)}function R(n){return 62===n?(e.consume(n),D):45===n&&2===i?(e.consume(n),R):O(n)}function D(n){return null===n||xt(n)?(e.exit("htmlFlowData"),L(n)):(e.consume(n),D)}function L(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},ar={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(Rt,n,t)}},partial:!0};const lr={name:"htmlText",tokenize:function(e,n,t){const r=this;let i,o,a,l;return function(n){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(n),u};function u(n){return 33===n?(e.consume(n),c):47===n?(e.consume(n),w):63===n?(e.consume(n),x):pt(n)?(e.consume(n),S):t(n)}function c(n){return 45===n?(e.consume(n),s):91===n?(e.consume(n),o="CDATA[",a=0,g):pt(n)?(e.consume(n),b):t(n)}function s(n){return 45===n?(e.consume(n),f):t(n)}function f(n){return null===n||62===n?t(n):45===n?(e.consume(n),p):d(n)}function p(e){return null===e||62===e?t(e):d(e)}function d(n){return null===n?t(n):45===n?(e.consume(n),h):xt(n)?(l=d,I(n)):(e.consume(n),d)}function h(n){return 45===n?(e.consume(n),D):d(n)}function g(n){return n===o.charCodeAt(a++)?(e.consume(n),a===o.length?m:g):t(n)}function m(n){return null===n?t(n):93===n?(e.consume(n),v):xt(n)?(l=m,I(n)):(e.consume(n),m)}function v(n){return 93===n?(e.consume(n),y):m(n)}function y(n){return 62===n?D(n):93===n?(e.consume(n),y):m(n)}function b(n){return null===n||62===n?D(n):xt(n)?(l=b,I(n)):(e.consume(n),b)}function x(n){return null===n?t(n):63===n?(e.consume(n),k):xt(n)?(l=x,I(n)):(e.consume(n),x)}function k(e){return 62===e?D(e):x(e)}function w(n){return pt(n)?(e.consume(n),E):t(n)}function E(n){return 45===n||gt(n)?(e.consume(n),E):_(n)}function _(n){return xt(n)?(l=_,I(n)):kt(n)?(e.consume(n),_):D(n)}function S(n){return 45===n||gt(n)?(e.consume(n),S):47===n||62===n||bt(n)?O(n):t(n)}function O(n){return 47===n?(e.consume(n),D):58===n||95===n||pt(n)?(e.consume(n),C):xt(n)?(l=O,I(n)):kt(n)?(e.consume(n),O):D(n)}function C(n){return 45===n||46===n||58===n||95===n||gt(n)?(e.consume(n),C):A(n)}function A(n){return 61===n?(e.consume(n),j):xt(n)?(l=A,I(n)):kt(n)?(e.consume(n),A):O(n)}function j(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),i=n,T):xt(n)?(l=j,I(n)):kt(n)?(e.consume(n),j):(e.consume(n),i=void 0,P)}function T(n){return n===i?(e.consume(n),F):null===n?t(n):xt(n)?(l=T,I(n)):(e.consume(n),T)}function F(e){return 62===e||47===e||bt(e)?O(e):t(e)}function P(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||bt(n)?O(n):(e.consume(n),P)}function I(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),St(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function R(n){return e.enter("htmlTextData"),l(n)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),n):t(r)}}};const ur={name:"labelEnd",tokenize:function(e,n,t){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(n){if(!i)return t(n);return i._inactive?u(n):(o=r.parser.defined.includes(Qt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelEnd"),l)};function l(t){return 40===t?e.attempt(cr,n,o?n:u)(t):91===t?e.attempt(sr,n,o?e.attempt(fr,n,u):u)(t):o?n(t):u(t)}function u(e){return i._balanced=!0,t(e)}},resolveTo:function(e,n){let t,r,i,o,a=e.length,l=0;for(;a--;)if(t=e[a][1],r){if("link"===t.type||"labelLink"===t.type&&t._inactive)break;"enter"===e[a][0]&&"labelLink"===t.type&&(t._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===t.type||"labelLink"===t.type)&&!t._balanced&&(r=a,"labelLink"!==t.type)){l=2;break}}else"labelEnd"===t.type&&(i=a);const u={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},s={type:"labelText",start:Object.assign({},e[r+l+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",u,n],["enter",c,n]],o=lt(o,e.slice(r+1,r+l+3)),o=lt(o,[["enter",s,n]]),o=lt(o,Tt(n.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),n)),o=lt(o,[["exit",s,n],e[i-2],e[i-1],["exit",c,n]]),o=lt(o,e.slice(i+1)),o=lt(o,[["exit",u,n]]),at(e,r,e.length,o),e},resolveAll:function(e){let n,t=-1;for(;++t<e.length;)n=e[t][1],"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++);return e}},cr={tokenize:function(e,n,t){return function(n){return e.enter("resource"),e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),Yt(e,r)};function r(n){return 41===n?a(n):Kt(e,i,t,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(n)}function i(n){return bt(n)?Yt(e,o)(n):a(n)}function o(n){return 34===n||39===n||40===n?Xt(e,Yt(e,a),t,"resourceTitle","resourceTitleMarker","resourceTitleString")(n):a(n)}function a(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),n):t(r)}}},sr={tokenize:function(e,n,t){const r=this;return function(n){return Zt.call(r,e,i,t,"reference","referenceMarker","referenceString")(n)};function i(e){return r.parser.defined.includes(Qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(e):t(e)}}},fr={tokenize:function(e,n,t){return function(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),n):t(r)}}};const pr={name:"labelStartImage",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(n),e.exit("labelImageMarker"),i};function i(n){return 91===n?(e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelImage"),o):t(n)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?t(e):n(e)}},resolveAll:ur.resolveAll};const dr={name:"labelStartLink",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(n),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?t(e):n(e)}},resolveAll:ur.resolveAll};const hr={name:"lineEnding",tokenize:function(e,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),St(e,n,"linePrefix")}}};const gr={name:"thematicBreak",tokenize:function(e,n,t){let r,i=0;return function(n){return e.enter("thematicBreak"),r=n,o(n)};function o(l){return l===r?(e.enter("thematicBreakSequence"),a(l)):kt(l)?St(e,o,"whitespace")(l):i<3||null!==l&&!xt(l)?t(l):(e.exit("thematicBreak"),n(l))}function a(n){return n===r?(e.consume(n),i++,a):(e.exit("thematicBreakSequence"),o(n))}}};const mr={name:"list",tokenize:function(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(n){const i=r.containerState.type||(42===n||43===n||45===n?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||n===r.containerState.marker:dt(n)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===n||45===n?e.check(gr,t,u)(n):u(n);if(!r.interrupt||49===n)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(n)}return t(n)};function l(n){return dt(n)&&++a<10?(e.consume(n),l):(!r.interrupt||a<2)&&(r.containerState.marker?n===r.containerState.marker:41===n||46===n)?(e.exit("listItemValue"),u(n)):t(n)}function u(n){return e.enter("listItemMarker"),e.consume(n),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||n,e.check(Rt,r.interrupt?t:c,e.attempt(vr,f,s))}function c(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function s(n){return kt(n)?(e.enter("listItemPrefixWhitespace"),e.consume(n),e.exit("listItemPrefixWhitespace"),f):t(n)}function f(t){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(t)}},continuation:{tokenize:function(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Rt,i,o);function i(t){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,St(e,n,"listItemIndent",r.containerState.size+1)(t)}function o(t){return r.containerState.furtherBlankLines||!kt(t)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(t)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yr,n,a)(t))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,St(e,e.attempt(mr,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},vr={tokenize:function(e,n,t){const r=this;return St(e,(function(e){const i=r.events[r.events.length-1];return!kt(e)&&i&&"listItemPrefixWhitespace"===i[1].type?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},yr={tokenize:function(e,n,t){const r=this;return St(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?n(e):t(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const br={name:"setextUnderline",tokenize:function(e,n,t){const r=this;let i,o,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){o="paragraph"===r.events[a][1].type;break}return function(n){if(!r.parser.lazy[r.now().line]&&(r.interrupt||o))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=n,l(n);return t(n)};function l(n){return n===i?(e.consume(n),l):(e.exit("setextHeadingLineSequence"),St(e,u,"lineSuffix")(n))}function u(r){return null===r||xt(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){t=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,n]),e.splice(i+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[i][1].end)):e[t][1]=a;return e.push(["exit",a,n]),e}};const xr={tokenize:function(e){const n=this,t=e.attempt(Rt,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,St(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Wt,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const kr={resolveAll:Sr()},wr=_r("string"),Er=_r("text");function _r(e){return{tokenize:function(n){const t=this,r=this.parser.constructs[e],i=n.attempt(r,o,a);return o;function o(e){return u(e)?i(e):a(e)}function a(e){if(null!==e)return n.enter("data"),n.consume(e),l;n.consume(e)}function l(e){return u(e)?(n.exit("data"),i(e)):(n.consume(e),l)}function u(e){if(null===e)return!0;const n=r[e];let i=-1;if(n)for(;++i<n.length;){const e=n[i];if(!e.previous||e.previous.call(t,t.previous))return!0}return!1}},resolveAll:Sr("text"===e?Or:void 0)}}function Sr(e){return function(n,t){let r,i=-1;for(;++i<=n.length;)void 0===r?n[i]&&"data"===n[i][1].type&&(r=i,i++):n[i]&&"data"===n[i][1].type||(i!==r+2&&(n[r][1].end=n[i-1][1].end,n.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(n,t):n}}function Or(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||"lineEnding"===e[t][1].type)&&"data"===e[t-1][1].type){const r=e[t-1][1],i=n.sliceStream(r);let o,a=i.length,l=-1,u=0;for(;a--;){const e=i[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)u++,l--;if(l)break;l=-1}else if(-2===e)o=!0,u++;else if(-1!==e){a++;break}}if(u){const i={type:t===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-u,offset:r.end.offset-u,_index:r.start._index+a,_bufferIndex:a?l:r.start._bufferIndex+l},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(t,0,["enter",i,n],["exit",i,n]),t+=2)}t++}return e}function Cr(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],l=[];const u={consume:function(e){xt(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,n){const t=n||{};return t.type=e,t.start=p(),c.events.push(["enter",t,c]),l.push(t),t},exit:function(e){const n=l.pop();return n.end=p(),c.events.push(["exit",n,c]),n},attempt:m((function(e,n){v(e,n.from)})),check:m(g),interrupt:m(g,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,n){return function(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=n?" ":"\t";break;case-1:if(!n&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(f(e),n)},now:p,defineSkip:function(e){i[e.line]=e.column,y()},write:function(e){if(a=lt(a,e),d(),null!==a[a.length-1])return[];return v(n,0),c.events=Tt(o,c.events,c),c.events}};let s=n.tokenize.call(c,u);return n.resolveAll&&o.push(n),c;function f(e){return function(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let a;t===i?a=[e[t].slice(r,o)]:(a=e.slice(t,i),r>-1&&(a[0]=a[0].slice(r)),o>0&&a.push(e[i].slice(0,o)));return a}(a,e)}function p(){return Object.assign({},r)}function d(){let e;for(;r._index<a.length;){const n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;)h(n.charCodeAt(r._bufferIndex));else h(n)}}function h(e){s=s(e)}function g(e,n){n.restore()}function m(e,n){return function(t,i,o){let a,s,f,d;return Array.isArray(t)?h(t):"tokenize"in t?h([t]):function(e){return n;function n(n){const t=null!==n&&e[n],r=null!==n&&e.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(n)}}(t);function h(e){return a=e,s=0,0===e.length?o:g(e[s])}function g(e){return function(t){d=function(){const e=p(),n=c.previous,t=c.currentConstruct,i=c.events.length,o=Array.from(l);return{restore:a,from:i};function a(){r=e,c.previous=n,c.currentConstruct=t,c.events.length=i,l=o,y()}}(),f=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return v();return e.tokenize.call(n?Object.assign(Object.create(c),n):c,u,m,v)(t)}}function m(n){return e(f,d),i}function v(e){return d.restore(),++s<a.length?g(a[s]):o}}}function v(e,n){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&at(c.events,n,c.events.length-n,e.resolve(c.events.slice(n),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Ar={42:mr,43:mr,45:mr,48:mr,49:mr,50:mr,51:mr,52:mr,53:mr,54:mr,55:mr,56:mr,57:mr,62:Dt},jr={91:Jt},Tr={[-2]:Vt,[-1]:Vt,32:Vt},Fr={35:tr,42:gr,45:[br,gr],60:or,61:br,95:gr,96:Bt,126:Bt},Pr={38:Nt,92:Lt},Ir={[-5]:hr,[-4]:hr,[-3]:hr,33:pr,38:Nt,42:Ft,60:[It,lr],91:dr,92:[nr,Lt],93:ur,95:Ft,96:Ut},Rr={null:[Ft,kr]};var Dr=Object.freeze({__proto__:null,document:Ar,contentInitial:jr,flowInitial:Tr,flow:Fr,string:Pr,text:Ir,insideSpan:Rr,attentionMarkers:{null:[42,95]},disable:{null:[]}});const Lr=/[\0\t\n\r]/g;function Mr(e,n){const t=Number.parseInt(e,n);return t<9||11===t||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535==(65535&t)||65534==(65535&t)||t>1114111?"�":String.fromCharCode(t)}const zr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nr(e){return e.replace(zr,Br)}function Br(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return Mr(t.slice(n?2:1),n?16:10)}return zt(t)||e}const Vr={}.hasOwnProperty,qr=function(e,n,t){return"string"!=typeof n&&(t=n,n=void 0),function(e={}){const n=Ur({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(re),autolinkProtocol:A,autolinkEmail:A,atxHeading:u(J),blockQuote:u(K),characterEscape:A,characterReference:A,codeFenced:u(Z),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Z,c),codeText:u(X,c),codeTextData:A,data:A,codeFlowValue:A,definition:u(Y),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Q),hardBreakEscape:u(ee),hardBreakTrailing:u(ee),htmlFlow:u(ne,c),htmlFlowData:A,htmlText:u(ne,c),htmlTextData:A,image:u(te),label:c,link:u(re),listItem:u(oe),listItemValue:g,listOrdered:u(ie,h),listUnordered:u(ie),paragraph:u(ae),reference:q,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(J),strong:u(le),thematicBreak:u(ce)},exit:{atxHeading:f(),atxHeadingSequence:_,autolink:f(),autolinkEmail:G,autolinkProtocol:W,blockQuote:f(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:$,codeFenced:f(b),codeFencedFence:y,codeFencedFenceInfo:m,codeFencedFenceMeta:v,codeFlowValue:j,codeIndented:f(x),codeText:f(R),codeTextData:j,data:j,definition:f(),definitionDestinationString:E,definitionLabelString:k,definitionTitleString:w,emphasis:f(),hardBreakEscape:f(F),hardBreakTrailing:f(F),htmlFlow:f(P),htmlFlowData:j,htmlText:f(I),htmlTextData:j,image:f(L),label:z,labelText:M,lineEnding:T,link:f(D),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:U,resourceDestinationString:N,resourceTitleString:B,resource:V,setextHeading:f(C),setextHeadingLineSequence:O,setextHeadingText:S,strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),t={};return r;function r(e){let t={type:"root",children:[]};const r=[],u=[],f={stack:[t],tokenStack:r,config:n,enter:s,exit:p,buffer:c,resume:d,setData:o,getData:a};let h=-1;for(;++h<e.length;)if("listOrdered"===e[h][1].type||"listUnordered"===e[h][1].type)if("enter"===e[h][0])u.push(h);else{h=i(e,u.pop(),h)}for(h=-1;++h<e.length;){const t=n[e[h][0]];Vr.call(t,e[h][1].type)&&t[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},f),e[h][1])}if(r.length>0){const e=r[r.length-1];(e[1]||$r).call(f,void 0,e[0])}for(t.position={start:l(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:l(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<n.transforms.length;)t=n.transforms[h](t)||t;return t}function i(e,n,t){let r,i,o,a,l=n-1,u=-1,c=!1;for(;++l<=t;){const n=e[l];if("listUnordered"===n[1].type||"listOrdered"===n[1].type||"blockQuote"===n[1].type?("enter"===n[0]?u++:u--,a=void 0):"lineEndingBlank"===n[1].type?"enter"===n[0]&&(!r||a||u||o||(o=l),a=void 0):"linePrefix"===n[1].type||"listItemValue"===n[1].type||"listItemMarker"===n[1].type||"listItemPrefix"===n[1].type||"listItemPrefixWhitespace"===n[1].type||(a=void 0),!u&&"enter"===n[0]&&"listItemPrefix"===n[1].type||-1===u&&"exit"===n[0]&&("listUnordered"===n[1].type||"listOrdered"===n[1].type)){if(r){let a=l;for(i=void 0;a--;){const n=e[a];if("lineEnding"===n[1].type||"lineEndingBlank"===n[1].type){if("exit"===n[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),n[1].type="lineEnding",i=a}else if("linePrefix"!==n[1].type&&"blockQuotePrefix"!==n[1].type&&"blockQuotePrefixWhitespace"!==n[1].type&&"blockQuoteMarker"!==n[1].type&&"listItemIndent"!==n[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:n[1].end),e.splice(i||l,0,["exit",r,n[2]]),l++,t++}"listItemPrefix"===n[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},n[1].start)},e.splice(l,0,["enter",r,n[2]]),l++,t++,o=void 0,a=!0)}}return e[n][1]._spread=c,t}function o(e,n){t[e]=n}function a(e){return t[e]}function l(e){return{line:e.line,column:e.column,offset:e.offset}}function u(e,n){return t;function t(t){s.call(this,e(t),t),n&&n.call(this,t)}}function c(){this.stack.push({type:"fragment",children:[]})}function s(e,n,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([n,t]),e.position={start:l(n.start)},e}function f(e){return n;function n(n){e&&e.call(this,n),p.call(this,n)}}function p(e,n){const t=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+wn({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(n)n.call(this,e,r[0]);else{(r[1]||$r).call(this,e,r[0])}return t.position.end=l(e.end),t}function d(){return function(e,n){var{includeImageAlt:t=!0}=n||{};return it(e,t)}(this.stack.pop())}function h(){o("expectingFirstListItemValue",!0)}function g(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),o("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function y(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function x(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function k(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=Qt(this.sliceSerialize(e)).toLowerCase()}function w(){const e=this.resume();this.stack[this.stack.length-1].title=e}function E(){const e=this.resume();this.stack[this.stack.length-1].url=e}function _(e){const n=this.stack[this.stack.length-1];if(!n.depth){const t=this.sliceSerialize(e).length;n.depth=t}}function S(){o("setextHeadingSlurpLineEnding",!0)}function O(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){o("setextHeadingSlurpLineEnding")}function A(e){const n=this.stack[this.stack.length-1];let t=n.children[n.children.length-1];t&&"text"===t.type||(t=ue(),t.position={start:l(e.start)},n.children.push(t)),this.stack.push(t)}function j(e){const n=this.stack.pop();n.value+=this.sliceSerialize(e),n.position.end=l(e.end)}function T(e){const t=this.stack[this.stack.length-1];if(a("atHardBreak")){return t.children[t.children.length-1].position.end=l(e.end),void o("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(t.type)&&(A.call(this,e),j.call(this,e))}function F(){o("atHardBreak",!0)}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];a("inReference")?(e.type+="Reference",e.referenceType=a("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),o("referenceType")}function L(){const e=this.stack[this.stack.length-1];a("inReference")?(e.type+="Reference",e.referenceType=a("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label),o("referenceType")}function M(e){const n=this.stack[this.stack.length-2],t=this.sliceSerialize(e);n.label=Nr(t),n.identifier=Qt(t).toLowerCase()}function z(){const e=this.stack[this.stack.length-1],n=this.resume(),t=this.stack[this.stack.length-1];o("inReference",!0),"link"===t.type?t.children=e.children:t.alt=n}function N(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function V(){o("inReference")}function q(){o("referenceType","collapsed")}function U(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=Qt(this.sliceSerialize(e)).toLowerCase(),o("referenceType","full")}function H(e){o("characterReferenceType",e.type)}function $(e){const n=this.sliceSerialize(e),t=a("characterReferenceType");let r;t?(r=Mr(n,"characterReferenceMarkerNumeric"===t?10:16),o("characterReferenceType")):r=zt(n);const i=this.stack.pop();i.value+=r,i.position.end=l(e.end)}function W(e){j.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){j.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function K(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function X(){return{type:"inlineCode",value:""}}function Y(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function ee(){return{type:"break"}}function ne(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function re(){return{type:"link",title:null,url:"",children:[]}}function ie(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function oe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function le(){return{type:"strong",children:[]}}function ue(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}(t)(function(e){for(;!Ht(e););return e}(function(e={}){const n={defined:[],lazy:{},constructs:ct([Dr].concat(e.extensions||[])),content:t(Ot),document:t(Ct),flow:t(xr),string:t(wr),text:t(Er)};return n;function t(e){return function(t){return Cr(n,e,t)}}}(t).document().write(function(){let e,n=1,t="",r=!0;return function(i,o,a){const l=[];let u,c,s,f,p;for(i=t+i.toString(o),s=0,t="",r&&(65279===i.charCodeAt(0)&&s++,r=void 0);s<i.length;){if(Lr.lastIndex=s,u=Lr.exec(i),f=u&&void 0!==u.index?u.index:i.length,p=i.charCodeAt(f),!u){t=i.slice(s);break}if(10===p&&s===f&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),s<f&&(l.push(i.slice(s,f)),n+=f-s),p){case 0:l.push(65533),n++;break;case 9:for(c=4*Math.ceil(n/4),l.push(-2);n++<c;)l.push(-1);break;case 10:l.push(-4),n=1;break;default:e=!0,n=1}s=f+1}return a&&(e&&l.push(-5),t&&l.push(t),l.push(null)),l}}()(e,n,!0))))};function Ur(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Ur(e,r):Hr(e,r)}return e}function Hr(e,n){let t;for(t in n)if(Vr.call(n,t)){const r="canContainEols"===t||"transforms"===t,i=(Vr.call(e,t)?e[t]:void 0)||(e[t]=r?[]:{}),o=n[t];o&&(r?e[t]=[...i,...o]:Object.assign(i,o))}}function $r(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+wn({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+wn({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+wn({start:n.start,end:n.end})+") is still open")}function Wr(e){Object.assign(this,{Parser:n=>{const t=this.data("settings");return qr(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Gr=function(e,n,t){var r={type:String(e)};return null!=t||"string"!=typeof n&&!Array.isArray(n)?Object.assign(r,n):t=n,Array.isArray(t)?r.children=t:null!=t&&(r.value=String(t)),r};const Kr={}.hasOwnProperty;function Zr(e,n){const t=n.data||{};return"value"in n&&!(Kr.call(t,"hName")||Kr.call(t,"hProperties")||Kr.call(t,"hChildren"))?e.augment(n,Gr("text",n.value)):e(n,"div",Qr(e,n))}function Xr(e,n,t){const r=n&&n.type;let i;if(!r)throw new Error("Expected node, got `"+n+"`");return i=Kr.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?Yr:e.unknownHandler,("function"==typeof i?i:Zr)(e,n,t)}function Yr(e,n){return"children"in n?{...n,children:Qr(e,n)}:n}function Qr(e,n){const t=[];if("children"in n){const r=n.children;let i=-1;for(;++i<r.length;){const o=Xr(e,r[i],n);if(o){if(i&&"break"===r[i-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t}const Jr=function(e){if(null==e)return ni;if("string"==typeof e)return function(e){return ei(n);function n(n){return n&&n.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Jr(e[t]);return ei(r);function r(...e){let t=-1;for(;++t<n.length;)if(n[t].call(this,...e))return!0;return!1}}(e):function(e){return ei(n);function n(n){let t;for(t in e)if(n[t]!==e[t])return!1;return!0}}(e);if("function"==typeof e)return ei(e);throw new Error("Expected function, string, or object as test")};function ei(e){return function(...n){return Boolean(e.call(this,...n))}}function ni(){return!0}const ti=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);const i=Jr(n),o=r?-1:1;!function e(a,l,u){const c="object"==typeof a&&null!==a?a:{};let s;"string"==typeof c.type&&(s="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0,Object.defineProperty(f,"name",{value:"node ("+c.type+(s?"<"+s+">":"")+")"}));return f;function f(){let c,s,f,p=[];if((!n||i(a,l,u[u.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(t(a,u)),false===p[0]))return p;if(a.children&&"skip"!==p[0])for(s=(r?a.children.length:-1)+o,f=u.concat(a);s>-1&&s<a.children.length;){if(c=e(a.children[s],s,f)(),false===c[0])return c;s="number"==typeof c[1]?c[1]:s+o}return p}}(e,null,[])()};const ri=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),ti(e,n,(function(e,n){const r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},ii=ai("start"),oi=ai("end");function ai(e){return function(n){const t=n&&n.position&&n.position[e]||{};return{line:t.line||null,column:t.column||null,offset:t.offset>-1?t.offset:null}}}const li=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);var i=Jr(n),o=r?-1:1;!function e(a,l,u){var c,s="object"==typeof a&&null!==a?a:{};"string"==typeof s.type&&(c="string"==typeof s.tagName?s.tagName:"string"==typeof s.name?s.name:void 0,Object.defineProperty(f,"name",{value:"node ("+s.type+(c?"<"+c+">":"")+")"}));return f;function f(){var c,s,f,p=[];if((!n||i(a,l,u[u.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(t(a,u)),false===p[0]))return p;if(a.children&&"skip"!==p[0])for(s=(r?a.children.length:-1)+o,f=u.concat(a);s>-1&&s<a.children.length;){if(false===(c=e(a.children[s],s,f)())[0])return c;s="number"==typeof c[1]?c[1]:s+o}return p}}(e,null,[])()};const ui=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),li(e,n,(function(e,n){var r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},ci={}.hasOwnProperty;function si(e){return String(e||"").toUpperCase()}const fi={'"':"quot","&":"amp","<":"lt",">":"gt"};function pi(e,n){const t=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+fi[e]+";"}))}(function(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let a="";if(37===o&>(e.charCodeAt(t+1))&>(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const n=e.charCodeAt(t+1);o<56320&&n>56319&&n<57344?(a=String.fromCharCode(o,n),i=1):a="�"}else a=String.fromCharCode(o);a&&(n.push(e.slice(r,t),encodeURIComponent(a)),r=t+i+1,a=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}(e||""));if(!n)return t;const r=t.indexOf(":"),i=t.indexOf("?"),o=t.indexOf("#"),a=t.indexOf("/");return r<0||a>-1&&r>a||i>-1&&r>i||o>-1&&r>o||n.test(t.slice(0,r))?t:""}function di(e,n){const t=[];let r=-1;for(n&&t.push(Gr("text","\n"));++r<e.length;)r&&t.push(Gr("text","\n")),t.push(e[r]);return n&&e.length>0&&t.push(Gr("text","\n")),t}function hi(e,n){const t=String(n.identifier),r=pi(t.toLowerCase()),i=e.footnoteOrder.indexOf(t);let o;-1===i?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,o=e.footnoteOrder.length):(e.footnoteCounts[t]++,o=i+1);const a=e.footnoteCounts[t];return e(n,"sup",[e(n.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[Gr("text",String(o))])])}var gi={};function mi(e,n,t){var r,i,o,a,l,u="";for("string"!=typeof n&&(t=n,n=mi.defaultChars),void 0===t&&(t=!0),l=function(e){var n,t,r=gi[e];if(r)return r;for(r=gi[e]=[],n=0;n<128;n++)t=String.fromCharCode(n),/^[0-9a-z]$/i.test(t)?r.push(t):r.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)r[e.charCodeAt(n)]=e[n];return r}(n),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),t&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))u+=e.slice(r,r+3),r+=2;else if(o<128)u+=l[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){u+=encodeURIComponent(e[r]+e[r+1]),r++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[r]);return u}mi.defaultChars=";/?:@&=+$,-_.!~*'()#",mi.componentChars="-_.!~*'()";var vi=mi;function yi(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return Gr("text","!["+n.alt+r);const i=Qr(e,n),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift(Gr("text","["));const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push(Gr("text",r)),i}function bi(e){const n=e.spread;return null==n?e.children.length>1:n}const xi={blockquote:function(e,n){return e(n,"blockquote",di(Qr(e,n),!0))},break:function(e,n){return[e(n,"br"),Gr("text","\n")]},code:function(e,n){const t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),i={};r&&(i.className=["language-"+r]);const o=e(n,"code",i,[Gr("text",t)]);return n.meta&&(o.data={meta:n.meta}),e(n.position,"pre",[o])},delete:function(e,n){return e(n,"del",Qr(e,n))},emphasis:function(e,n){return e(n,"em",Qr(e,n))},footnoteReference:hi,footnote:function(e,n){const t=e.footnoteById;let r=1;for(;r in t;)r++;const i=String(r);return t[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:n.children}],position:n.position},hi(e,{type:"footnoteReference",identifier:i,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Qr(e,n))},html:function(e,n){return e.dangerous?e.augment(n,Gr("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return yi(e,n);const r={src:vi(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){const t={src:vi(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[Gr("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return yi(e,n);const r={href:vi(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Qr(e,n))},link:function(e,n){const t={href:vi(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Qr(e,n))},listItem:function(e,n,t){const r=Qr(e,n),i=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=bi(t[r]);return Boolean(n)}(t):bi(n),o={},a=[];if("boolean"==typeof n.checked){let t;r[0]&&"element"===r[0].type&&"p"===r[0].tagName?t=r[0]:(t=e(null,"p",[]),r.unshift(t)),t.children.length>0&&t.children.unshift(Gr("text"," ")),t.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(i||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push(Gr("text","\n")),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const u=r[r.length-1];return!u||!i&&"tagName"in u&&"p"===u.tagName||a.push(Gr("text","\n")),e(n,"li",o,a)},list:function(e,n){const t={},r=n.ordered?"ol":"ul",i=Qr(e,n);let o=-1;for("number"==typeof n.start&&1!==n.start&&(t.start=n.start);++o<i.length;){const e=i[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}return e(n,r,t,di(i,!0))},paragraph:function(e,n){return e(n,"p",Qr(e,n))},root:function(e,n){return e.augment(n,Gr("root",di(Qr(e,n))))},strong:function(e,n){return e(n,"strong",Qr(e,n))},table:function(e,n){const t=n.children;let r=-1;const i=n.align||[],o=[];for(;++r<t.length;){const a=t[r].children,l=0===r?"th":"td",u=[];let c=-1;const s=n.align?i.length:a.length;for(;++c<s;){const n=a[c];u.push(e(n,l,{align:i[c]},n?Qr(e,n):[]))}o[r]=e(t[r],"tr",di(u,!0))}return e(n,"table",di([e(o[0].position,"thead",di([o[0]],!0))].concat(o[1]?e({start:ii(o[1]),end:oi(o[o.length-1])},"tbody",di(o.slice(1),!0)):[]),!0))},text:function(e,n){return e.augment(n,Gr("text",String(n.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))},thematicBreak:function(e,n){return e(n,"hr")},toml:ki,yaml:ki,definition:ki,footnoteDefinition:ki};function ki(){return null}const wi={}.hasOwnProperty;function Ei(e,n){const t=n||{},r=t.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=void 0===t.clobberPrefix||null===t.clobberPrefix?"user-content-":t.clobberPrefix,a.footnoteLabel=t.footnoteLabel||"Footnotes",a.footnoteBackLabel=t.footnoteBackLabel||"Back to content",a.definition=function(e){const n=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return ui(e,"definition",(function(e){const t=si(e.identifier);t&&!ci.call(n,t)&&(n[t]=e)})),function(e){const t=si(e);return t&&ci.call(n,t)?n[t]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers={...xi,...t.handlers},a.unknownHandler=t.unknownHandler,a.passThrough=t.passThrough,ri(e,"footnoteDefinition",(e=>{const n=String(e.identifier).toUpperCase();wi.call(i,n)||(i[n]=e)})),a;function o(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const r="type"in e?e:{position:e};(t=r)&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column&&(n.position={start:ii(r),end:oi(r)})}var t;return n}function a(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),o(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}function _i(e,n){const t=Ei(e,n),r=Xr(t,e,null),i=function(e){let n=-1;const t=[];for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n].toUpperCase()];if(!r)continue;const i=Qr(e,r),o=String(r.identifier),a=pi(o.toLowerCase());let l=0;const u=[];for(;++l<=e.footnoteCounts[o];){const n={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&n.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(n)}const c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const s={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:di(i,!0)};r.position&&(s.position=r.position),t.push(s)}return 0===t.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[Gr("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:di(t,!0)},{type:"text",value:"\n"}]}}(t);return i&&r.children.push(Gr("text","\n"),i),Array.isArray(r)?{type:"root",children:r}:r}var Si=function(e,n){return e&&"run"in e?function(e,n){return(t,r,i)=>{e.run(_i(t,n),r,(e=>{i(e)}))}}(e,n):function(e){return n=>_i(n,e)}(e||n)};class Oi{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function Ci(e,n){const t={},r={};let i=-1;for(;++i<e.length;)Object.assign(t,e[i].property),Object.assign(r,e[i].normal);return new Oi(t,r,n)}function Ai(e){return e.toLowerCase()}Oi.prototype.property={},Oi.prototype.normal={},Oi.prototype.space=null;class ji{constructor(e,n){this.property=e,this.attribute=n}}ji.prototype.space=null,ji.prototype.boolean=!1,ji.prototype.booleanish=!1,ji.prototype.overloadedBoolean=!1,ji.prototype.number=!1,ji.prototype.commaSeparated=!1,ji.prototype.spaceSeparated=!1,ji.prototype.commaOrSpaceSeparated=!1,ji.prototype.mustUseProperty=!1,ji.prototype.defined=!1;let Ti=0;const Fi=zi(),Pi=zi(),Ii=zi(),Ri=zi(),Di=zi(),Li=zi(),Mi=zi();function zi(){return 2**++Ti}var Ni=Object.freeze({__proto__:null,boolean:Fi,booleanish:Pi,overloadedBoolean:Ii,number:Ri,spaceSeparated:Di,commaSeparated:Li,commaOrSpaceSeparated:Mi});const Bi=Object.keys(Ni);class Vi extends ji{constructor(e,n,t,r){let i=-1;if(super(e,n),qi(this,"space",r),"number"==typeof t)for(;++i<Bi.length;){const e=Bi[i];qi(this,Bi[i],(t&Ni[e])===Ni[e])}}}function qi(e,n,t){t&&(e[n]=t)}Vi.prototype.defined=!0;const Ui={}.hasOwnProperty;function Hi(e){const n={},t={};let r;for(r in e.properties)if(Ui.call(e.properties,r)){const i=e.properties[r],o=new Vi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Ai(r)]=r,t[Ai(o.attribute)]=r}return new Oi(n,t,e.space)}const $i=Hi({space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Wi=Hi({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Gi(e,n){return n in e?e[n]:n}function Ki(e,n){return Gi(e,n.toLowerCase())}const Zi=Hi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ki,properties:{xmlns:null,xmlnsXLink:null}}),Xi=Hi({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Pi,ariaAutoComplete:null,ariaBusy:Pi,ariaChecked:Pi,ariaColCount:Ri,ariaColIndex:Ri,ariaColSpan:Ri,ariaControls:Di,ariaCurrent:null,ariaDescribedBy:Di,ariaDetails:null,ariaDisabled:Pi,ariaDropEffect:Di,ariaErrorMessage:null,ariaExpanded:Pi,ariaFlowTo:Di,ariaGrabbed:Pi,ariaHasPopup:null,ariaHidden:Pi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Di,ariaLevel:Ri,ariaLive:null,ariaModal:Pi,ariaMultiLine:Pi,ariaMultiSelectable:Pi,ariaOrientation:null,ariaOwns:Di,ariaPlaceholder:null,ariaPosInSet:Ri,ariaPressed:Pi,ariaReadOnly:Pi,ariaRelevant:null,ariaRequired:Pi,ariaRoleDescription:Di,ariaRowCount:Ri,ariaRowIndex:Ri,ariaRowSpan:Ri,ariaSelected:Pi,ariaSetSize:Ri,ariaSort:null,ariaValueMax:Ri,ariaValueMin:Ri,ariaValueNow:Ri,ariaValueText:null,role:null}}),Yi=Hi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ki,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Li,acceptCharset:Di,accessKey:Di,action:null,allow:null,allowFullScreen:Fi,allowPaymentRequest:Fi,allowUserMedia:Fi,alt:null,as:null,async:Fi,autoCapitalize:null,autoComplete:Di,autoFocus:Fi,autoPlay:Fi,capture:Fi,charSet:null,checked:Fi,cite:null,className:Di,cols:Ri,colSpan:null,content:null,contentEditable:Pi,controls:Fi,controlsList:Di,coords:Ri|Li,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Fi,defer:Fi,dir:null,dirName:null,disabled:Fi,download:Ii,draggable:Pi,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Fi,formTarget:null,headers:Di,height:Ri,hidden:Fi,high:Ri,href:null,hrefLang:null,htmlFor:Di,httpEquiv:Di,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Fi,itemId:null,itemProp:Di,itemRef:Di,itemScope:Fi,itemType:Di,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Fi,low:Ri,manifest:null,max:null,maxLength:Ri,media:null,method:null,min:null,minLength:Ri,multiple:Fi,muted:Fi,name:null,nonce:null,noModule:Fi,noValidate:Fi,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Fi,optimum:Ri,pattern:null,ping:Di,placeholder:null,playsInline:Fi,poster:null,preload:null,readOnly:Fi,referrerPolicy:null,rel:Di,required:Fi,reversed:Fi,rows:Ri,rowSpan:Ri,sandbox:Di,scope:null,scoped:Fi,seamless:Fi,selected:Fi,shape:null,size:Ri,sizes:null,slot:null,span:Ri,spellCheck:Pi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ri,step:null,style:null,tabIndex:Ri,target:null,title:null,translate:null,type:null,typeMustMatch:Fi,useMap:null,value:Pi,width:Ri,wrap:null,align:null,aLink:null,archive:Di,axis:null,background:null,bgColor:null,border:Ri,borderColor:null,bottomMargin:Ri,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Fi,declare:Fi,event:null,face:null,frame:null,frameBorder:null,hSpace:Ri,leftMargin:Ri,link:null,longDesc:null,lowSrc:null,marginHeight:Ri,marginWidth:Ri,noResize:Fi,noHref:Fi,noShade:Fi,noWrap:Fi,object:null,profile:null,prompt:null,rev:null,rightMargin:Ri,rules:null,scheme:null,scrolling:Pi,standby:null,summary:null,text:null,topMargin:Ri,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ri,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Fi,disableRemotePlayback:Fi,prefix:null,property:null,results:Ri,security:null,unselectable:null}}),Qi=Hi({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Gi,properties:{about:Mi,accentHeight:Ri,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ri,amplitude:Ri,arabicForm:null,ascent:Ri,attributeName:null,attributeType:null,azimuth:Ri,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ri,by:null,calcMode:null,capHeight:Ri,className:Di,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ri,diffuseConstant:Ri,direction:null,display:null,dur:null,divisor:Ri,dominantBaseline:null,download:Fi,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ri,enableBackground:null,end:null,event:null,exponent:Ri,externalResourcesRequired:null,fill:null,fillOpacity:Ri,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Li,g2:Li,glyphName:Li,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ri,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ri,horizOriginX:Ri,horizOriginY:Ri,id:null,ideographic:Ri,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ri,k:Ri,k1:Ri,k2:Ri,k3:Ri,k4:Ri,kernelMatrix:Mi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ri,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ri,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ri,overlineThickness:Ri,paintOrder:null,panose1:null,path:null,pathLength:Ri,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Di,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ri,pointsAtY:Ri,pointsAtZ:Ri,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Mi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Mi,rev:Mi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Mi,requiredFeatures:Mi,requiredFonts:Mi,requiredFormats:Mi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ri,specularExponent:Ri,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ri,strikethroughThickness:Ri,string:null,stroke:null,strokeDashArray:Mi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ri,strokeOpacity:Ri,strokeWidth:null,style:null,surfaceScale:Ri,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Mi,tabIndex:Ri,tableValues:null,target:null,targetX:Ri,targetY:Ri,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Mi,to:null,transform:null,u1:null,u2:null,underlinePosition:Ri,underlineThickness:Ri,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ri,values:null,vAlphabetic:Ri,vMathematical:Ri,vectorEffect:null,vHanging:Ri,vIdeographic:Ri,version:null,vertAdvY:Ri,vertOriginX:Ri,vertOriginY:Ri,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ri,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ji=/^data[-\w.:]+$/i,eo=/-[a-z]/g,no=/[A-Z]/g;function to(e){return"-"+e.toLowerCase()}function ro(e){return e.charAt(1).toUpperCase()}const io={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"},oo=Ci([Wi,$i,Zi,Xi,Yi],"html"),ao=Ci([Wi,$i,Zi,Xi,Qi],"svg");function lo(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{ri(n,"element",((n,t,r)=>{const i=r;let o;if(e.allowedElements?o=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(n.tagName)),!o&&e.allowElement&&"number"==typeof t&&(o=!e.allowElement(n,t,i)),o&&"number"==typeof t)return e.unwrapDisallowed&&n.children?i.children.splice(t,1,...n.children):i.children.splice(t,1),t}))}}
|
|
23
|
+
/**
|
|
24
|
+
* @license React
|
|
25
|
+
* react-is.production.min.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/var uo=Symbol.for("react.element"),co=Symbol.for("react.portal"),so=Symbol.for("react.fragment"),fo=Symbol.for("react.strict_mode"),po=Symbol.for("react.profiler"),ho=Symbol.for("react.provider"),go=Symbol.for("react.context"),mo=Symbol.for("react.server_context"),vo=Symbol.for("react.forward_ref"),yo=Symbol.for("react.suspense"),bo=Symbol.for("react.suspense_list"),xo=Symbol.for("react.memo"),ko=Symbol.for("react.lazy"),wo=Symbol.for("react.offscreen"),Eo=Symbol.for("react.module.reference");function _o(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case uo:switch(e=e.type){case so:case po:case fo:case yo:case bo:return e;default:switch(e=e&&e.$$typeof){case mo:case go:case vo:case ko:case xo:case ho:return e;default:return n}}case co:return n}}}var So={ContextConsumer:go,ContextProvider:ho,Element:uo,ForwardRef:vo,Fragment:so,Lazy:ko,Memo:xo,Portal:co,Profiler:po,StrictMode:fo,Suspense:yo,SuspenseList:bo,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return _o(e)===go},isContextProvider:function(e){return _o(e)===ho},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===uo},isForwardRef:function(e){return _o(e)===vo},isFragment:function(e){return _o(e)===so},isLazy:function(e){return _o(e)===ko},isMemo:function(e){return _o(e)===xo},isPortal:function(e){return _o(e)===co},isProfiler:function(e){return _o(e)===po},isStrictMode:function(e){return _o(e)===fo},isSuspense:function(e){return _o(e)===yo},isSuspenseList:function(e){return _o(e)===bo},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===so||e===po||e===fo||e===yo||e===bo||e===wo||"object"==typeof e&&null!==e&&(e.$$typeof===ko||e.$$typeof===xo||e.$$typeof===ho||e.$$typeof===go||e.$$typeof===vo||e.$$typeof===Eo||void 0!==e.getModuleId)},typeOf:_o},Oo=ze((function(e,n){"production"!==process.env.NODE_ENV&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.for("react.module.reference");function m(n){if("object"==typeof n&&null!==n){var h=n.$$typeof;switch(h){case e:var g=n.type;switch(g){case r:case o:case i:case s:case f:return g;default:var m=g&&g.$$typeof;switch(m){case u:case l:case c:case d:case p:case a:return m;default:return h}}case t:return h}}}var v=l,y=a,b=e,x=c,k=r,w=d,E=p,_=t,S=o,O=i,C=s,A=f,j=!1,T=!1;n.ContextConsumer=v,n.ContextProvider=y,n.Element=b,n.ForwardRef=x,n.Fragment=k,n.Lazy=w,n.Memo=E,n.Portal=_,n.Profiler=S,n.StrictMode=O,n.Suspense=C,n.SuspenseList=A,n.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},n.isConcurrentMode=function(e){return T||(T=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},n.isContextConsumer=function(e){return m(e)===l},n.isContextProvider=function(e){return m(e)===a},n.isElement=function(n){return"object"==typeof n&&null!==n&&n.$$typeof===e},n.isForwardRef=function(e){return m(e)===c},n.isFragment=function(e){return m(e)===r},n.isLazy=function(e){return m(e)===d},n.isMemo=function(e){return m(e)===p},n.isPortal=function(e){return m(e)===t},n.isProfiler=function(e){return m(e)===o},n.isStrictMode=function(e){return m(e)===i},n.isSuspense=function(e){return m(e)===s},n.isSuspenseList=function(e){return m(e)===f},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||(e===r||e===o||e===i||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===g||void 0!==e.getModuleId))},n.typeOf=m}()})),Co=ze((function(e){"production"===process.env.NODE_ENV?e.exports=So:e.exports=Oo}));var Ao=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,jo=/\n/g,To=/^\s*/,Fo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Po=/^:\s*/,Io=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ro=/^[;\s]*/,Do=/^\s+|\s+$/g,Lo="";function Mo(e){return e?e.replace(Do,Lo):Lo}var zo=function(e,n){var t,r=null;if(!e||"string"!=typeof e)return r;for(var i,o,a=function(e,n){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(e){var n=e.match(jo);n&&(t+=n.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(){var e={line:t,column:r};return function(n){return n.position=new a(e),c(),n}}function a(e){this.start=e,this.end={line:t,column:r},this.source=n.source}function l(i){var o=new Error(n.source+":"+t+":"+r+": "+i);if(o.reason=i,o.filename=n.source,o.line=t,o.column=r,o.source=e,!n.silent)throw o}function u(n){var t=n.exec(e);if(t){var r=t[0];return i(r),e=e.slice(r.length),t}}function c(){u(To)}function s(e){var n;for(e=e||[];n=f();)!1!==n&&e.push(n);return e}function f(){var n=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var t=2;Lo!=e.charAt(t)&&("*"!=e.charAt(t)||"/"!=e.charAt(t+1));)++t;if(t+=2,Lo===e.charAt(t-1))return l("End of comment missing");var a=e.slice(2,t-2);return r+=2,i(a),e=e.slice(t),r+=2,n({type:"comment",comment:a})}}function p(){var e=o(),n=u(Fo);if(n){if(f(),!u(Po))return l("property missing ':'");var t=u(Io),r=e({type:"declaration",property:Mo(n[0].replace(Ao,Lo)),value:t?Mo(t[0].replace(Ao,Lo)):Lo});return u(Ro),r}}return a.prototype.content=e,c(),function(){var e,n=[];for(s(n);e=p();)!1!==e&&(n.push(e),s(n));return n}()}(e),l="function"==typeof n,u=0,c=a.length;u<c;u++)i=(t=a[u]).property,o=t.value,l?n(i,o,t):o&&(r||(r={}),r[i]=o);return r};const No={}.hasOwnProperty,Bo=new Set(["table","thead","tbody","tfoot","tr"]);function Vo(e,n){const t=[];let r,i=-1;for(;++i<n.children.length;)r=n.children[i],"element"===r.type?t.push(qo(e,r,i,n)):"text"===r.type?"element"===n.type&&Bo.has(n.tagName)&&(a=void 0,"string"==typeof(a=(o=r)&&"object"==typeof o&&"text"===o.type?o.value||"":o)&&""===a.replace(/[ \t\n\f\r]/g,""))||t.push(r.value):"raw"!==r.type||e.options.skipHtml||t.push(r.value);var o,a;return t}function qo(e,n,t,r){const i=e.options,a=e.schema,l=n.tagName,u={};let c,s=a;if("html"===a.space&&"svg"===l&&(s=ao,e.schema=s),n.properties)for(c in n.properties)No.call(n.properties,c)&&Ho(u,c,n.properties[c],e);"ol"!==l&&"ul"!==l||e.listDepth++;const f=Vo(e,n);"ol"!==l&&"ul"!==l||e.listDepth--,e.schema=a;const p=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},d=i.components&&No.call(i.components,l)?i.components[l]:l,h="string"==typeof d||d===o.Fragment;if(!Co.isValidElementType(d))throw new TypeError(`Component for name \`${l}\` not defined or is not renderable`);if(u.key=[l,p.start.line,p.start.column,t].join("-"),"a"===l&&i.linkTarget&&(u.target="function"==typeof i.linkTarget?i.linkTarget(String(u.href||""),n.children,"string"==typeof u.title?u.title:null):i.linkTarget),"a"===l&&i.transformLinkUri&&(u.href=i.transformLinkUri(String(u.href||""),n.children,"string"==typeof u.title?u.title:null)),h||"code"!==l||"element"!==r.type||"pre"===r.tagName||(u.inline=!0),h||"h1"!==l&&"h2"!==l&&"h3"!==l&&"h4"!==l&&"h5"!==l&&"h6"!==l||(u.level=Number.parseInt(l.charAt(1),10)),"img"===l&&i.transformImageUri&&(u.src=i.transformImageUri(String(u.src||""),String(u.alt||""),"string"==typeof u.title?u.title:null)),!h&&"li"===l&&"element"===r.type){const e=function(e){let n=-1;for(;++n<e.children.length;){const t=e.children[n];if("element"===t.type&&"input"===t.tagName)return t}return null}(n);u.checked=e&&e.properties?Boolean(e.properties.checked):null,u.index=Uo(r,n),u.ordered="ol"===r.tagName}var g;return h||"ol"!==l&&"ul"!==l||(u.ordered="ol"===l,u.depth=e.listDepth),"td"!==l&&"th"!==l||(u.align&&(u.style||(u.style={}),u.style.textAlign=u.align,delete u.align),h||(u.isHeader="th"===l)),h||"tr"!==l||"element"!==r.type||(u.isHeader=Boolean("thead"===r.tagName)),i.sourcePos&&(u["data-sourcepos"]=[(g=p).start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map((e=>String(e))).join("")),!h&&i.rawSourcePos&&(u.sourcePosition=n.position),!h&&i.includeElementIndex&&(u.index=Uo(r,n),u.siblingCount=Uo(r)),h||(u.node=n),f.length>0?o.createElement(d,u,f):o.createElement(d,u)}function Uo(e,n){let t=-1,r=0;for(;++t<e.children.length&&e.children[t]!==n;)"element"===e.children[t].type&&r++;return r}function Ho(e,n,t,r){const i=function(e,n){const t=Ai(n);let r=n,i=ji;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&Ji.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(eo,ro);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!eo.test(e)){let t=e.replace(no,to);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}i=Vi}return new i(r,n)}(r.schema,n);let o=t;var a,l,u;null!=o&&o==o&&(Array.isArray(o)&&(o=i.commaSeparated?(u=l||{},""===(a=o)[a.length-1]&&(a=a.concat("")),a.join((u.padRight?" ":"")+","+(!1===u.padLeft?"":" ")).trim()):function(e){return e.join(" ").trim()}(o)),"style"===i.property&&"string"==typeof o&&(o=function(e){const n={};try{zo(e,t)}catch{}return n;function t(e,t){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[r.replace(/-([a-z])/g,$o)]=t}}(o)),i.space&&i.property?e[No.call(io,i.property)?io[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function $o(e,n){return n.toUpperCase()}const Wo={}.hasOwnProperty,Go={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Ko(e){for(const n in Go)if(Wo.call(Go,n)&&Wo.call(e,n)){const e=Go[n];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${n}\` (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#${e.id}> for more info)`),delete Go[n]}const n=Zn().use(Wr).use(e.remarkPlugins||[]).use(Si,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(lo,e),t=new In;"string"==typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let i=o.createElement(o.Fragment,{},Vo({options:e,schema:oo,listDepth:0},r));return e.className&&(i=o.createElement("div",{className:e.className},i)),i}Ko.defaultProps={transformLinkUri:function(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let i=-1;for(;++i<xn.length;){const e=xn[i];if(r===e.length&&n.slice(0,e.length).toLowerCase()===e)return n}return i=n.indexOf("?"),-1!==i&&r>i?n:(i=n.indexOf("#"),-1!==i&&r>i?n:"javascript:void(0)")}},Ko.propTypes={children:m.string,className:m.string,allowElement:m.func,allowedElements:m.arrayOf(m.string),disallowedElements:m.arrayOf(m.string),unwrapDisallowed:m.bool,remarkPlugins:m.arrayOf(m.oneOfType([m.object,m.func,m.arrayOf(m.oneOfType([m.bool,m.string,m.object,m.func,m.arrayOf(m.any)]))])),rehypePlugins:m.arrayOf(m.oneOfType([m.object,m.func,m.arrayOf(m.oneOfType([m.bool,m.string,m.object,m.func,m.arrayOf(m.any)]))])),sourcePos:m.bool,rawSourcePos:m.bool,skipHtml:m.bool,includeElementIndex:m.bool,transformLinkUri:m.oneOfType([m.func,m.bool]),linkTarget:m.oneOfType([m.func,m.string]),transformImageUri:m.func,components:m.object};const Zo={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(n){return 87===n||119===n?(e.consume(n),i):t(n)}function i(n){return 87===n||119===n?(e.consume(n),o):t(n)}function o(n){return 46===n?(e.consume(n),a):t(n)}function a(e){return null===e||xt(e)?t(e):n(e)}},partial:!0},Xo={tokenize:function(e,n,t){let r,i;return o;function o(n){return 38===n?e.check(Jo,l,a)(n):46===n||95===n?e.check(Qo,l,a)(n):null===n||yt(n)||wt(n)||45!==n&&Et(n)?l(n):(e.consume(n),o)}function a(n){return 46===n?(i=r,r=void 0,e.consume(n),o):(95===n&&(r=!0),e.consume(n),o)}function l(e){return i||r?t(e):n(e)}},partial:!0},Yo={tokenize:function(e,n){let t=0;return r;function r(a){return 38===a?e.check(Jo,n,i)(a):(40===a&&t++,41===a?e.check(Qo,o,i)(a):la(a)?n(a):aa(a)?e.check(Qo,n,i)(a):(e.consume(a),r))}function i(n){return e.consume(n),r}function o(e){return t--,t<0?n(e):i(e)}},partial:!0},Qo={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(i){return aa(i)?(e.consume(i),r):la(i)?n(i):t(i)}},partial:!0},Jo={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(n){return pt(n)?(e.consume(n),r):59===n?(e.consume(n),i):t(n)}function i(e){return la(e)?n(e):t(e)}},partial:!0},ea={tokenize:function(e,n,t){const r=this;return function(n){if(87!==n&&119!==n||!ca(r.previous)||pa(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Zo,e.attempt(Xo,e.attempt(Yo,i),t),t)(n)};function i(t){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(t)}},previous:ca},na={tokenize:function(e,n,t){const r=this;return function(n){if(72!==n&&104!==n||!sa(r.previous)||pa(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(n),i};function i(n){return 84===n||116===n?(e.consume(n),o):t(n)}function o(n){return 84===n||116===n?(e.consume(n),a):t(n)}function a(n){return 80===n||112===n?(e.consume(n),l):t(n)}function l(n){return 83===n||115===n?(e.consume(n),u):u(n)}function u(n){return 58===n?(e.consume(n),c):t(n)}function c(n){return 47===n?(e.consume(n),s):t(n)}function s(n){return 47===n?(e.consume(n),f):t(n)}function f(n){return null===n||yt(n)||wt(n)||Et(n)?t(n):e.attempt(Xo,e.attempt(Yo,p),t)(n)}function p(t){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(t)}},previous:sa},ta={tokenize:function(e,n,t){const r=this;let i,o;return function(n){if(!ua(n)||!fa(r.previous)||pa(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(n)};function a(n){return ua(n)?(e.consume(n),a):64===n?(e.consume(n),l):t(n)}function l(n){return 46===n?e.check(Qo,f,u)(n):45===n||95===n?e.check(Qo,t,c)(n):gt(n)?(!o&&dt(n)&&(o=!0),e.consume(n),l):f(n)}function u(n){return e.consume(n),i=!0,o=void 0,l}function c(n){return e.consume(n),s}function s(n){return 46===n?e.check(Qo,t,u)(n):l(n)}function f(r){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(r)):t(r)}},previous:fa},ra={},ia={text:ra};let oa=48;for(;oa<123;)ra[oa]=ta,oa++,58===oa?oa=65:91===oa&&(oa=97);function aa(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function la(e){return null===e||60===e||bt(e)}function ua(e){return 43===e||45===e||46===e||95===e||gt(e)}function ca(e){return null===e||40===e||42===e||95===e||126===e||bt(e)}function sa(e){return null===e||!pt(e)}function fa(e){return 47!==e&&sa(e)}function pa(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}ra[43]=ta,ra[45]=ta,ra[46]=ta,ra[95]=ta,ra[72]=[ta,na],ra[104]=[ta,na],ra[87]=[ta,ea],ra[119]=[ta,ea];const da={tokenize:function(e,n,t){const r=this;return St(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?n(e):t(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function ha(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!a||!a._balanced)return t(i);const l=Qt(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==l.charCodeAt(0)||!o.includes(l.slice(1)))return t(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),n(i)}}function ga(e,n){let t=e.length;for(;t--;)if("labelImage"===e[t][1].type&&"enter"===e[t][0]){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",a,n],["exit",a,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...l),e}function ma(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(n){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(n),e.exit("gfmFootnoteCallLabelMarker"),l};function l(n){return 94!==n?t(n):(e.enter("gfmFootnoteCallMarker"),e.consume(n),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(l){let s;return null===l||91===l||a++>999?t(l):93===l?o?(e.exit("chunkString"),s=e.exit("gfmFootnoteCallString"),i.includes(Qt(r.sliceSerialize(s)))?function(t){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n}(l):t(l)):t(l):(e.consume(l),bt(l)||(o=!0),92===l?c:u)}function c(n){return 91===n||92===n||93===n?(e.consume(n),a++,u):u(n)}}function va(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,l=0;return function(n){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(n){return 94===n?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),c):t(n)}function c(n){let i;return null===n||91===n||l>999?t(n):93===n?a?(i=e.exit("gfmFootnoteDefinitionLabelString"),o=Qt(r.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):t(n):xt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),l++,c):(e.enter("chunkString").contentType="string",s(n))}function s(n){return null===n||xt(n)||91===n||93===n||l>999?(e.exit("chunkString"),c(n)):(bt(n)||(a=!0),l++,e.consume(n),92===n?f:s)}function f(n){return 91===n||92===n||93===n?(e.consume(n),l++,s):s(n)}function p(n){return 58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),St(e,d,"gfmFootnoteDefinitionWhitespace")):t(n)}function d(e){return i.includes(o)||i.push(o),n(e)}}function ya(e,n,t){return e.check(Rt,n,e.attempt(da,n,t))}function ba(e){e.exit("gfmFootnoteDefinition")}function xa(e){return null===e||bt(e)||wt(e)?1:Et(e)?2:void 0}function ka(e={}){let n=e.singleTilde;const t={tokenize:function(e,t,r){const i=this.previous,o=this.events;let a=0;return function(n){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(n);return e.enter("strikethroughSequenceTemporary"),l(n)};function l(o){const u=xa(i);if(126===o)return a>1?r(o):(e.consume(o),a++,l);if(a<2&&!n)return r(o);const c=e.exit("strikethroughSequenceTemporary"),s=xa(o);return c._open=!s||2===s&&Boolean(u),c._close=!u||2===u&&Boolean(s),t(o)}},resolveAll:function(e,n){let t=-1;for(;++t<e.length;)if("enter"===e[t][0]&&"strikethroughSequenceTemporary"===e[t][1].type&&e[t][1]._close){let r=t;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[t][1].end.offset-e[t][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[t][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[t][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},a=[["enter",i,n],["enter",e[r][1],n],["exit",e[r][1],n],["enter",o,n]];at(a,a.length,0,Tt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),at(a,a.length,0,[["exit",o,n],["enter",e[t][1],n],["exit",e[t][1],n],["exit",i,n]]),at(e,r-1,t-r+3,a),t=r+a.length-2;break}}t=-1;for(;++t<e.length;)"strikethroughSequenceTemporary"===e[t][1].type&&(e[t][1].type="data");return e}};return null==n&&(n=!0),{text:{126:t},insideSpan:{null:[t]},attentionMarkers:{null:[126]}}}const wa={flow:{null:{tokenize:function(e,n,t){const r=this,i=[];let o,a,l=0;return function(n){if(e.enter("table")._align=i,e.enter("tableHead"),e.enter("tableRow"),124===n)return u(n);return l++,e.enter("temporaryTableCellContent"),f(n)};function u(n){return e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),o=!0,c}function c(n){return null===n||xt(n)?function(n){if(null===n)return t(n);e.exit("tableRow"),e.exit("tableHead");const i=r.interrupt;return r.interrupt=!0,e.attempt({tokenize:A,partial:!0},(function(n){return r.interrupt=i,e.enter("tableDelimiterRow"),d(n)}),(function(e){return r.interrupt=i,t(e)}))(n)}(n):kt(n)?(e.enter("whitespace"),e.consume(n),s):(o&&(o=void 0,l++),124===n?u(n):(e.enter("temporaryTableCellContent"),f(n)))}function s(n){return kt(n)?(e.consume(n),s):(e.exit("whitespace"),c(n))}function f(n){return null===n||124===n||bt(n)?(e.exit("temporaryTableCellContent"),c(n)):(e.consume(n),92===n?p:f)}function p(n){return 92===n||124===n?(e.consume(n),f):f(n)}function d(n){return null===n||xt(n)?y(n):kt(n)?(e.enter("whitespace"),e.consume(n),h):45===n?(e.enter("tableDelimiterFiller"),e.consume(n),a=!0,i.push("none"),g):58===n?(e.enter("tableDelimiterAlignment"),e.consume(n),e.exit("tableDelimiterAlignment"),i.push("left"),m):124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),d):t(n)}function h(n){return kt(n)?(e.consume(n),h):(e.exit("whitespace"),d(n))}function g(n){return 45===n?(e.consume(n),g):(e.exit("tableDelimiterFiller"),58===n?(e.enter("tableDelimiterAlignment"),e.consume(n),e.exit("tableDelimiterAlignment"),i[i.length-1]="left"===i[i.length-1]?"center":"right",v):d(n))}function m(n){return 45===n?(e.enter("tableDelimiterFiller"),e.consume(n),a=!0,g):t(n)}function v(n){return null===n||xt(n)?y(n):kt(n)?(e.enter("whitespace"),e.consume(n),h):124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),d):t(n)}function y(n){return e.exit("tableDelimiterRow"),a&&l===i.length?null===n?b(n):e.check(Ea,b,e.attempt({tokenize:A,partial:!0},St(e,x,"linePrefix",4),b))(n):t(n)}function b(t){return e.exit("table"),n(t)}function x(n){return e.enter("tableBody"),k(n)}function k(n){return e.enter("tableRow"),124===n?w(n):(e.enter("temporaryTableCellContent"),S(n))}function w(n){return e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),E}function E(n){return null===n||xt(n)?function(n){if(e.exit("tableRow"),null===n)return C(n);return e.check(Ea,C,e.attempt({tokenize:A,partial:!0},St(e,k,"linePrefix",4),C))(n)}(n):kt(n)?(e.enter("whitespace"),e.consume(n),_):124===n?w(n):(e.enter("temporaryTableCellContent"),S(n))}function _(n){return kt(n)?(e.consume(n),_):(e.exit("whitespace"),E(n))}function S(n){return null===n||124===n||bt(n)?(e.exit("temporaryTableCellContent"),E(n)):(e.consume(n),92===n?O:S)}function O(n){return 92===n||124===n?(e.consume(n),S):S(n)}function C(n){return e.exit("tableBody"),b(n)}function A(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),St(e,i,"linePrefix")};function i(i){if(r.parser.lazy[r.now().line]||null===i||xt(i))return t(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):(r._gfmTableDynamicInterruptHack=!0,e.check(r.parser.constructs.flow,(function(e){return r._gfmTableDynamicInterruptHack=!1,t(e)}),(function(e){return r._gfmTableDynamicInterruptHack=!1,n(e)}))(i))}}},resolve:function(e,n){let t,r,i,o,a,l,u,c=-1;for(;++c<e.length;){const s=e[c][1];if(i&&("temporaryTableCellContent"===s.type&&(o=o||c,a=c),("tableCellDivider"===s.type||"tableRow"===s.type)&&a)){const t={type:"tableContent",start:e[o][1].start,end:e[a][1].end},r={type:"chunkText",start:t.start,end:t.end,contentType:"text"};e.splice(o,a-o+1,["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]),c-=a-o-3,o=void 0,a=void 0}if("exit"===e[c][0]&&void 0!==l&&l+(u?0:1)<c&&("tableCellDivider"===s.type||"tableRow"===s.type&&(l+3<c||"whitespace"!==e[l][1].type))){const i={type:r?"tableDelimiter":t?"tableHeader":"tableData",start:e[l][1].start,end:e[c][1].end};e.splice(c+("tableCellDivider"===s.type?1:0),0,["exit",i,n]),e.splice(l,0,["enter",i,n]),c+=2,l=c+1,u=!0}"tableRow"===s.type&&(i="enter"===e[c][0],i&&(l=c+1,u=!1)),"tableDelimiterRow"===s.type&&(r="enter"===e[c][0],r&&(l=c+1,u=!1)),"tableHead"===s.type&&(t="enter"===e[c][0])}return e}}}},Ea={tokenize:function(e,n,t){let r=0;return function(n){return e.enter("check"),e.consume(n),i};function i(o){return-1===o||32===o?(e.consume(o),r++,4===r?n:i):null===o||bt(o)?n(o):t(o)}},partial:!0};const _a={tokenize:function(e,n,t){const r=this;return function(n){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return t(n);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(n),e.exit("taskListCheckMarker"),i};function i(n){return bt(n)?(e.enter("taskListCheckValueUnchecked"),e.consume(n),e.exit("taskListCheckValueUnchecked"),o):88===n||120===n?(e.enter("taskListCheckValueChecked"),e.consume(n),e.exit("taskListCheckValueChecked"),o):t(n)}function o(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:Oa},n,t)):t(r)}}},Sa={text:{91:_a}};function Oa(e,n,t){const r=this;return St(e,(function(e){const i=r.events[r.events.length-1];return(i&&"whitespace"===i[1].type||xt(e))&&null!==e?n(e):t(e)}),"whitespace")}function Ca(e,n){const t=String(e);if("string"!=typeof n)throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;-1!==i;)r++,i=t.indexOf(n,i+n.length);return r}const Aa={}.hasOwnProperty,ja=function(e,n,t,r){let i,o;"string"==typeof n||n instanceof RegExp?(o=[[n,t]],i=r):(o=n,i=t),i||(i={});const a=Jr(i.ignore||[]),l=function(e){const n=[];if("object"!=typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let t=-1;for(;++t<e.length;)n.push([Ta(e[t][0]),Fa(e[t][1])])}else{let t;for(t in e)Aa.call(e,t)&&n.push([Ta(t),Fa(e[t])])}return n}(o);let u=-1;for(;++u<l.length;)li(e,"text",c);return e;function c(e,n){let t,r=-1;for(;++r<n.length;){const e=n[r];if(a(e,t?t.children.indexOf(e):void 0,t))return;t=e}if(t)return function(e,n){const t=l[u][0],r=l[u][1];let i,o=0,a=n.children.indexOf(e),c=[];t.lastIndex=0;let s=t.exec(e.value);for(;s;){i=s.index;let n=r(...s,{index:s.index,input:s.input});if("string"==typeof n&&(n=n.length>0?{type:"text",value:n}:void 0),!1!==n&&(o!==i&&c.push({type:"text",value:e.value.slice(o,i)}),Array.isArray(n)?c.push(...n):n&&c.push(n),o=i+s[0].length),!t.global)break;s=t.exec(e.value)}void 0===i?(c=[e],a--):(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),n.children.splice(a,1,...c));return a+c.length+1}(e,t)}};function Ta(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Fa(e){return"function"==typeof e?e:()=>e}const Pa="phrasing",Ia=["autolink","link","image","label"],Ra={transforms:[function(e){ja(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ma],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,za]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:La,literalAutolinkHttp:La,literalAutolinkWww:La},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},Da={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Pa,notInConstruct:Ia},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Pa,notInConstruct:Ia},{character:":",before:"[ps]",after:"\\/",inConstruct:Pa,notInConstruct:Ia}]};function La(e){this.config.enter.autolinkProtocol.call(this,e)}function Ma(e,n,t,r,i){let o="";if(!Na(i))return!1;if(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!function(e){const n=e.split(".");if(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))return!1;return!0}(t))return!1;const a=function(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);let t,r,i,o;if(n)for(e=e.slice(0,n.index),o=n[0],t=o.indexOf(")"),r=Ca(e,"("),i=Ca(e,")");-1!==t&&r>i;)e+=o.slice(0,t+1),o=o.slice(t+1),t=o.indexOf(")"),i++;return[e,o]}(t+r);if(!a[0])return!1;const l={type:"link",title:null,url:o+n+a[0],children:[{type:"text",value:n+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function za(e,n,t,r){return!(!Na(r,!0)||/[_-\d]$/.test(t))&&{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Na(e,n){const t=e.input.charCodeAt(e.index-1);return(0===e.index||wt(t)||Et(t))&&(!n||47!==t)}function Ba(e){return e.label||!e.identifier?e.label||"":Nr(e.identifier)}function Va(e){const n=e||{},t=n.now||{};let r=n.lineShift||0,i=t.line||1,o=t.column||1;return{move:function(e=""){const n=e.split(/\r?\n|\r/g),t=n[n.length-1];return i+=n.length-1,o=1===n.length?o+t.length:1+t.length+r,e},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function qa(e,n,t){const r=n.indexStack,i=e.children||[],o=Va(t),a=[];let l=-1;for(r.push(-1);++l<i.length;){const t=i[l];r[r.length-1]=l,a.push(o.move(n.handle(t,e,n,{before:"\n",after:"\n",...o.current()}))),"list"!==t.type&&(n.bulletLastUsed=void 0),l<i.length-1&&a.push(o.move(u(t,i[l+1])))}return r.pop(),a.join("");function u(t,r){let i=n.join.length;for(;i--;){const o=n.join[i](t,r,e,n);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}}const Ua=/\r?\n|\r/g;function Ha(e,n){const t=[];let r,i=0,o=0;for(;r=Ua.exec(e);)a(e.slice(i,r.index)),t.push(r[0]),i=r.index+r[0].length,o++;return a(e.slice(i)),t.join("");function a(e){t.push(n(e,o,!e))}}function $a(e){if(!e._compiled){const n=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((n?"("+n+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Wa(e,n){return Ga(e,n.inConstruct,!0)&&!Ga(e,n.notInConstruct,!1)}function Ga(e,n,t){if(!n)return t;"string"==typeof n&&(n=[n]);let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Ka(e,n,t){const r=(t.before||"")+(n||"")+(t.after||""),i=[],o=[],a={};let l=-1;for(;++l<e.unsafe.length;){const n=e.unsafe[l];if(!Wa(e.stack,n))continue;const t=$a(n);let o;for(;o=t.exec(r);){const e="before"in n||Boolean(n.atBreak),t="after"in n,r=o.index+(e?o[1].length:0);i.includes(r)?(a[r].before&&!e&&(a[r].before=!1),a[r].after&&!t&&(a[r].after=!1)):(i.push(r),a[r]={before:e,after:t})}}i.sort(Za);let u=t.before?t.before.length:0;const c=r.length-(t.after?t.after.length:0);for(l=-1;++l<i.length;){const e=i[l];e<u||e>=c||(e+1<c&&i[l+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||i[l-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(u!==e&&o.push(Xa(r.slice(u,e),"\\")),u=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||t.encode&&t.encode.includes(r.charAt(e))?(o.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),u++):o.push("\\")))}return o.push(Xa(r.slice(u,c),t.after)),o.join("")}function Za(e,n){return e-n}function Xa(e,n){const t=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+n;let a,l=-1,u=0;for(;a=t.exec(o);)r.push(a.index);for(;++l<r.length;)u!==r[l]&&i.push(e.slice(u,r[l])),i.push("\\"),u=r[l];return i.push(e.slice(u)),i.join("")}function Ya(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,n,t,r){const i=Va(r);let o=i.move("[^");const a=t.enter("footnoteDefinition"),l=t.enter("label");return o+=i.move(Ka(t,Ba(e),{...i.current(),before:o,after:"]"})),l(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(Ha(qa(e,t,i.current()),(function(e,n,t){if(n)return(t?"":" ")+e;return e}))),a(),o},footnoteReference:e}};function e(e,n,t,r){const i=Va(r);let o=i.move("[^");const a=t.enter("footnoteReference"),l=t.enter("reference");return o+=i.move(Ka(t,Ba(e),{...i.current(),before:o,after:"]"})),l(),a(),o+=i.move("]"),o}}function Qa(e){const n=e||{},t=n.now||{};let r=n.lineShift||0,i=t.line||1,o=t.column||1;return{move:function(e=""){const n=e.split(/\r?\n|\r/g),t=n[n.length-1];return i+=n.length-1,o=1===n.length?o+t.length:1+t.length+r,e},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}const Ja={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},el={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:nl}};function nl(e,n,t,r){const i=Qa(r),o=t.enter("emphasis");let a=i.move("~~");return a+=function(e,n,t){const r=n.indexStack,i=e.children||[],o=[];let a=-1,l=t.before;r.push(-1);let u=Qa(t);for(;++a<i.length;){const c=i[a];let s;if(r[r.length-1]=a,a+1<i.length){let t=n.handle.handlers[i[a+1].type];t&&t.peek&&(t=t.peek),s=t?t(i[a+1],e,n,{before:"",after:"",...u.current()}).charAt(0):""}else s=t.after;o.length>0&&("\r"===l||"\n"===l)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",u=Qa(t),u.move(o.join(""))),o.push(u.move(n.handle(c,e,n,{...u.current(),before:l,after:s}))),l=o[o.length-1].slice(-1)}return r.pop(),o.join("")}(e,t,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function tl(e){const n=e||{},t=n.now||{};let r=n.lineShift||0,i=t.line||1,o=t.column||1;return{move:function(e=""){const n=e.split(/\r?\n|\r/g),t=n[n.length-1];return i+=n.length-1,o=1===n.length?o+t.length:1+t.length+r,e},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function rl(e){if(!e._compiled){const n=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((n?"("+n+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function il(e,n,t){let r=e.value||"",i="`",o=-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+" ");++o<t.unsafe.length;){const e=t.unsafe[o],n=rl(e);let i;if(e.atBreak)for(;i=n.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function ol(e){return e.length}function al(e){const n="string"==typeof e?e.codePointAt(0):0;return 67===n||99===n?99:76===n||108===n?108:82===n||114===n?114:0}nl.peek=function(){return"~"},il.peek=function(){return"`"};const ll={enter:{table:function(e){const n=e._align;this.enter({type:"table",align:n.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:cl,tableHeader:cl,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let n=this.resume();this.getData("inTable")&&(n=n.replace(/\\([\\|])/g,sl));this.stack[this.stack.length-1].value=n,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:ul,tableHeader:ul,tableRow:ul}};function ul(e){this.exit(e)}function cl(e){this.enter({type:"tableCell",children:[]},e)}function sl(e,n){return"|"===n?n:e}function fl(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,n,t,r){return l(function(e,n,t){const r=e.children;let i=-1;const o=[],a=n.enter("table");for(;++i<r.length;)o[i]=u(r[i],n,t);return a(),o}(e,t,r),e.align)},tableRow:function(e,n,t,r){const i=u(e,t,r),o=l([i]);return o.slice(0,o.indexOf("\n"))},tableCell:a,inlineCode:function(e,n,t){let r=il(e,0,t);t.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r}}};function a(e,n,t,r){const i=t.enter("tableCell"),a=t.enter("phrasing"),l=function(e,n,t){const r=n.indexStack,i=e.children||[],o=[];let a=-1,l=t.before;r.push(-1);let u=tl(t);for(;++a<i.length;){const c=i[a];let s;if(r[r.length-1]=a,a+1<i.length){let t=n.handle.handlers[i[a+1].type];t&&t.peek&&(t=t.peek),s=t?t(i[a+1],e,n,{before:"",after:"",...u.current()}).charAt(0):""}else s=t.after;o.length>0&&("\r"===l||"\n"===l)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),l=" ",u=tl(t),u.move(o.join(""))),o.push(u.move(n.handle(c,e,n,{...u.current(),before:l,after:s}))),l=o[o.length-1].slice(-1)}return r.pop(),o.join("")}(e,t,{...r,before:o,after:o});return a(),i(),l}function l(e,n){return function(e,n={}){const t=(n.align||[]).concat(),r=n.stringLength||ol,i=[],o=[],a=[],l=[];let u=0,c=-1;for(;++c<e.length;){const t=[],i=[];let f=-1;for(e[c].length>u&&(u=e[c].length);++f<e[c].length;){const o=null==(s=e[c][f])?"":String(s);if(!1!==n.alignDelimiters){const e=r(o);i[f]=e,(void 0===l[f]||e>l[f])&&(l[f]=e)}t.push(o)}o[c]=t,a[c]=i}var s;let f=-1;if("object"==typeof t&&"length"in t)for(;++f<u;)i[f]=al(t[f]);else{const e=al(t);for(;++f<u;)i[f]=e}f=-1;const p=[],d=[];for(;++f<u;){const e=i[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,l[f]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>l[f]&&(l[f]=o),d[f]=o),p[f]=a}o.splice(1,0,p),a.splice(1,0,d),c=-1;const h=[];for(;++c<o.length;){const e=o[c],t=a[c];f=-1;const r=[];for(;++f<u;){const o=e[f]||"";let a="",c="";if(!1!==n.alignDelimiters){const e=l[f]-(t[f]||0),n=i[f];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),c=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),c=a):c=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(c),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===u-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:n,alignDelimiters:r,padding:t,stringLength:i})}function u(e,n,t){const r=e.children;let i=-1;const o=[],l=n.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,n,t);return l(),o}}function pl(e){const n=e||{},t=n.now||{};let r=n.lineShift||0,i=t.line||1,o=t.column||1;return{move:function(e=""){const n=e.split(/\r?\n|\r/g),t=n[n.length-1];return i+=n.length-1,o=1===n.length?o+t.length:1+t.length+r,e},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}const dl=/\r?\n|\r/g;function hl(e,n,t,r){const i=function(e){const n=e.options.listItemIndent||"tab";if(1===n||"1"===n)return"one";if("tab"!==n&&"one"!==n&&"mixed"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}(t);let o=t.bulletCurrent||function(e){const n=e.options.bullet||"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}(t);n&&"list"===n.type&&n.ordered&&(o=("number"==typeof n.start&&n.start>-1?n.start:1)+(!1===t.options.incrementListMarker?0:n.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(n&&"list"===n.type&&n.spread||e.spread))&&(a=4*Math.ceil(a/4));const l=pl(r);l.move(o+" ".repeat(a-o.length)),l.shift(a);const u=t.enter("listItem"),c=function(e,n){const t=[];let r,i=0,o=0;for(;r=dl.exec(e);)a(e.slice(i,r.index)),t.push(r[0]),i=r.index+r[0].length,o++;return a(e.slice(i)),t.join("");function a(e){t.push(n(e,o,!e))}}(function(e,n,t){const r=n.indexStack,i=e.children||[],o=pl(t),a=[];let l=-1;for(r.push(-1);++l<i.length;){const t=i[l];r[r.length-1]=l,a.push(o.move(n.handle(t,e,n,{before:"\n",after:"\n",...o.current()}))),"list"!==t.type&&(n.bulletLastUsed=void 0),l<i.length-1&&a.push(o.move(u(t,i[l+1])))}return r.pop(),a.join("");function u(t,r){let i=n.join.length;for(;i--;){const o=n.join[i](t,r,e,n);if(!0===o||1===o)break;if("number"==typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}}(e,t,l.current()),(function(e,n,t){if(n)return(t?"":" ".repeat(a))+e;return(t?o:o+" ".repeat(a-o.length))+e}));return u(),c}const gl={exit:{taskListCheckValueChecked:vl,taskListCheckValueUnchecked:vl,paragraph:function(e){const n=this.stack[this.stack.length-2],t=this.stack[this.stack.length-1],r=n.children,i=t.children[0];let o,a=-1;if(n&&"listItem"===n.type&&"boolean"==typeof n.checked&&i&&"text"===i.type){for(;++a<r.length;){const e=r[a];if("paragraph"===e.type){o=e;break}}o===t&&(i.value=i.value.slice(1),0===i.value.length?t.children.shift():t.position&&i.position&&"number"==typeof i.position.start.offset&&(i.position.start.column++,i.position.start.offset++,t.position.start=Object.assign({},i.position.start)))}this.exit(e)}}},ml={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,n,t,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",l=pl(r);o&&l.move(a);let u=hl(e,n,t,{...r,...l.current()});o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return u}}};function vl(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function yl(e={}){const n=this.data();function t(e,t){(n[e]?n[e]:n[e]=[]).push(t)}t("micromarkExtensions",function(e){return ct([ia,{document:{91:{tokenize:va,continuation:{tokenize:ya},exit:ba}},text:{91:{tokenize:ma},93:{add:"after",tokenize:ha,resolveTo:ga}}},ka(e),wa,Sa])}(e)),t("fromMarkdownExtensions",[Ra,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=Qt(this.sliceSerialize(e)).toLowerCase()},gfmFootnoteCall:function(e){this.exit(e)},gfmFootnoteCallString:function(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=Qt(this.sliceSerialize(e)).toLowerCase()}}},Ja,ll,gl]),t("toMarkdownExtensions",function(e){return{extensions:[Da,Ya(),el,fl(e),ml]}}(e))}var bl={exports:{}};function xl(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(n){var t=e[n];"object"!=typeof t||Object.isFrozen(t)||xl(t)})),e}bl.exports=xl,bl.exports.default=xl;var kl=bl.exports;class wl{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function El(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function _l(e,...n){const t=Object.create(null);for(const n in e)t[n]=e[n];return n.forEach((function(e){for(const n in e)t[n]=e[n]})),t}const Sl=e=>!!e.kind;class Ol{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=El(e)}openNode(e){if(!Sl(e))return;let n=e.kind;n=e.sublanguage?`language-${n}`:((e,{prefix:n})=>{if(e.includes(".")){const t=e.split(".");return[`${n}${t.shift()}`,...t.map(((e,n)=>`${e}${"_".repeat(n+1)}`))].join(" ")}return`${n}${e}`})(n,{prefix:this.classPrefix}),this.span(n)}closeNode(e){Sl(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class Cl{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n),n.children.forEach((n=>this._walk(e,n))),e.closeNode(n)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{Cl._collapse(e)})))}}class Al extends Cl{constructor(e){super(),this.options=e}addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root;t.kind=n,t.sublanguage=!0,this.add(t)}toHTML(){return new Ol(this,this.options).value()}finalize(){return!0}}function jl(e){return e?"string"==typeof e?e:e.source:null}function Tl(e){return Il("(?=",e,")")}function Fl(e){return Il("(?:",e,")*")}function Pl(e){return Il("(?:",e,")?")}function Il(...e){return e.map((e=>jl(e))).join("")}function Rl(...e){const n=function(e){const n=e[e.length-1];return"object"==typeof n&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}(e);return"("+(n.capture?"":"?:")+e.map((e=>jl(e))).join("|")+")"}function Dl(e){return new RegExp(e.toString()+"|").exec("").length-1}const Ll=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ml(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t;let r=jl(e),i="";for(;r.length>0;){const e=Ll.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+n):(i+=e[0],"("===e[0]&&t++)}return i})).map((e=>`(${e})`)).join(n)}const zl="[a-zA-Z]\\w*",Nl="[a-zA-Z_]\\w*",Bl="\\b\\d+(\\.\\d+)?",Vl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ql="\\b(0b[01]+)",Ul={begin:"\\\\[\\s\\S]",relevance:0},Hl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ul]},$l={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ul]},Wl=function(e,n,t={}){const r=_l({scope:"comment",begin:e,end:n,contains:[]},t);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Rl("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Il(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Gl=Wl("//","$"),Kl=Wl("/\\*","\\*/"),Zl=Wl("#","$"),Xl={scope:"number",begin:Bl,relevance:0},Yl={scope:"number",begin:Vl,relevance:0},Ql={scope:"number",begin:ql,relevance:0},Jl={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Ul,{begin:/\[/,end:/\]/,relevance:0,contains:[Ul]}]}]},eu={scope:"title",begin:zl,relevance:0},nu={scope:"title",begin:Nl,relevance:0},tu={begin:"\\.\\s*"+Nl,relevance:0};var ru=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:zl,UNDERSCORE_IDENT_RE:Nl,NUMBER_RE:Bl,C_NUMBER_RE:Vl,BINARY_NUMBER_RE:ql,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=Il(n,/.*\b/,e.binary,/\b.*/)),_l({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Ul,APOS_STRING_MODE:Hl,QUOTE_STRING_MODE:$l,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:Wl,C_LINE_COMMENT_MODE:Gl,C_BLOCK_COMMENT_MODE:Kl,HASH_COMMENT_MODE:Zl,NUMBER_MODE:Xl,C_NUMBER_MODE:Yl,BINARY_NUMBER_MODE:Ql,REGEXP_MODE:Jl,TITLE_MODE:eu,UNDERSCORE_TITLE_MODE:nu,METHOD_GUARD:tu,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});function iu(e,n){"."===e.input[e.index-1]&&n.ignoreMatch()}function ou(e,n){void 0!==e.className&&(e.scope=e.className,delete e.className)}function au(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=iu,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function lu(e,n){Array.isArray(e.illegal)&&(e.illegal=Rl(...e.illegal))}function uu(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function cu(e,n){void 0===e.relevance&&(e.relevance=1)}const su=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},e);Object.keys(e).forEach((n=>{delete e[n]})),e.keywords=t.keywords,e.begin=Il(t.beforeMatch,Tl(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},fu=["of","and","for","in","not","or","if","then","parent","list","value"],pu="keyword";function du(e,n,t=pu){const r=Object.create(null);return"string"==typeof e?i(t,e.split(" ")):Array.isArray(e)?i(t,e):Object.keys(e).forEach((function(t){Object.assign(r,du(e[t],n,t))})),r;function i(e,t){n&&(t=t.map((e=>e.toLowerCase()))),t.forEach((function(n){const t=n.split("|");r[t[0]]=[e,hu(t[0],t[1])]}))}}function hu(e,n){return n?Number(n):function(e){return fu.includes(e.toLowerCase())}(e)?0:1}const gu={},mu=e=>{console.error(e)},vu=(e,...n)=>{console.log(`WARN: ${e}`,...n)},yu=(e,n)=>{gu[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),gu[`${e}/${n}`]=!0)},bu=new Error;function xu(e,n,{key:t}){let r=0;const i=e[t],o={},a={};for(let e=1;e<=n.length;e++)a[e+r]=i[e],o[e+r]=!0,r+=Dl(n[e-1]);e[t]=a,e[t]._emit=o,e[t]._multi=!0}function ku(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw mu("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bu;if("object"!=typeof e.beginScope||null===e.beginScope)throw mu("beginScope must be object"),bu;xu(e,e.begin,{key:"beginScope"}),e.begin=Ml(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw mu("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bu;if("object"!=typeof e.endScope||null===e.endScope)throw mu("endScope must be object"),bu;xu(e,e.end,{key:"endScope"}),e.end=Ml(e.end,{joinWith:""})}}(e)}function wu(e){function n(n,t){return new RegExp(jl(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(t?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=Dl(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=n(Ml(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const n=this.matcherRe.exec(e);if(!n)return null;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),r=this.matchIndexes[t];return n.splice(0,t),Object.assign(n,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t;return this.rules.slice(e).forEach((([e,t])=>n.addRule(e,t))),n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;let t=n.exec(e);if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)}return t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count&&this.considerAll()),t}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=_l(e.classNameAliases||{}),function t(i,o){const a=i;if(i.isCompiled)return a;[ou,uu,ku,su].forEach((e=>e(i,o))),e.compilerExtensions.forEach((e=>e(i,o))),i.__beforeBegin=null,[au,lu,cu].forEach((e=>e(i,o))),i.isCompiled=!0;let l=null;return"object"==typeof i.keywords&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),l=i.keywords.$pattern,delete i.keywords.$pattern),l=l||/\w+/,i.keywords&&(i.keywords=du(i.keywords,e.case_insensitive)),a.keywordPatternRe=n(l,!0),o&&(i.begin||(i.begin=/\B|\b/),a.beginRe=n(a.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(a.endRe=n(a.end)),a.terminatorEnd=jl(a.end)||"",i.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(i.end?"|":"")+o.terminatorEnd)),i.illegal&&(a.illegalRe=n(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(n){return _l(e,{variants:null},n)})));if(e.cachedVariants)return e.cachedVariants;if(Eu(e))return _l(e,{starts:e.starts?_l(e.starts):null});if(Object.isFrozen(e))return _l(e);return e}("self"===e?i:e)}))),i.contains.forEach((function(e){t(e,a)})),i.starts&&t(i.starts,o),a.matcher=function(e){const n=new r;return e.contains.forEach((e=>n.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n}(a),a}(e)}function Eu(e){return!!e&&(e.endsWithParent||Eu(e.starts))}class _u extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Su=El,Ou=_l,Cu=Symbol("nomatch");var Au=function(e){const n=Object.create(null),t=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Al};function u(e){return l.noHighlightRe.test(e)}function c(e,n,t){let r="",i="";"object"==typeof n?(r=e,t=n.ignoreIllegals,i=n.language):(yu("10.7.0","highlight(lang, code, ...args) has been deprecated."),yu("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,r=n),void 0===t&&(t=!0);const o={code:r,language:i};y("before:highlight",o);const a=o.result?o.result:s(o.language,o.code,t);return a.code=o.code,y("after:highlight",a),a}function s(e,t,r,a){const u=Object.create(null);function c(){if(!_.keywords)return void O.addText(C);let e=0;_.keywordPatternRe.lastIndex=0;let n=_.keywordPatternRe.exec(C),t="";for(;n;){t+=C.substring(e,n.index);const i=k.case_insensitive?n[0].toLowerCase():n[0],o=(r=i,_.keywords[r]);if(o){const[e,r]=o;if(O.addText(t),t="",u[i]=(u[i]||0)+1,u[i]<=7&&(A+=r),e.startsWith("_"))t+=n[0];else{const t=k.classNameAliases[e]||e;O.addKeyword(n[0],t)}}else t+=n[0];e=_.keywordPatternRe.lastIndex,n=_.keywordPatternRe.exec(C)}var r;t+=C.substr(e),O.addText(t)}function p(){null!=_.subLanguage?function(){if(""===C)return;let e=null;if("string"==typeof _.subLanguage){if(!n[_.subLanguage])return void O.addText(C);e=s(_.subLanguage,C,!0,S[_.subLanguage]),S[_.subLanguage]=e._top}else e=f(C,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(A+=e.relevance),O.addSublanguage(e._emitter,e.language)}():c(),C=""}function d(e,n){let t=1;const r=n.length-1;for(;t<=r;){if(!e._emit[t]){t++;continue}const r=k.classNameAliases[e[t]]||e[t],i=n[t];r?O.addKeyword(i,r):(C=i,c(),C=""),t++}}function h(e,n){return e.scope&&"string"==typeof e.scope&&O.openNode(k.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(O.addKeyword(C,k.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),C=""):e.beginScope._multi&&(d(e.beginScope,n),C="")),_=Object.create(e,{parent:{value:_}}),_}function m(e,n,t){let r=function(e,n){const t=e&&e.exec(n);return t&&0===t.index}(e.endRe,t);if(r){if(e["on:end"]){const t=new wl(e);e["on:end"](n,t),t.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return m(e.parent,n,t)}function v(e){return 0===_.matcher.regexIndex?(C+=e[0],1):(F=!0,0)}function y(e){const n=e[0],r=t.substr(e.index),i=m(_,e,r);if(!i)return Cu;const o=_;_.endScope&&_.endScope._wrap?(p(),O.addKeyword(n,_.endScope._wrap)):_.endScope&&_.endScope._multi?(p(),d(_.endScope,e)):o.skip?C+=n:(o.returnEnd||o.excludeEnd||(C+=n),p(),o.excludeEnd&&(C=n));do{_.scope&&O.closeNode(),_.skip||_.subLanguage||(A+=_.relevance),_=_.parent}while(_!==i.parent);return i.starts&&h(i.starts,e),o.returnEnd?0:n.length}let b={};function x(n,o){const a=o&&o[0];if(C+=n,null==a)return p(),0;if("begin"===b.type&&"end"===o.type&&b.index===o.index&&""===a){if(C+=t.slice(o.index,o.index+1),!i){const n=new Error(`0 width match regex (${e})`);throw n.languageName=e,n.badRule=b.rule,n}return 1}if(b=o,"begin"===o.type)return function(e){const n=e[0],t=e.rule,r=new wl(t),i=[t.__beforeBegin,t["on:begin"]];for(const t of i)if(t&&(t(e,r),r.isMatchIgnored))return v(n);return t.skip?C+=n:(t.excludeBegin&&(C+=n),p(),t.returnBegin||t.excludeBegin||(C=n)),h(t,e),t.returnBegin?0:n.length}(o);if("illegal"===o.type&&!r){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(_.scope||"<unnamed>")+'"');throw e.mode=_,e}if("end"===o.type){const e=y(o);if(e!==Cu)return e}if("illegal"===o.type&&""===a)return 1;if(T>1e5&&T>3*o.index){throw new Error("potential infinite loop, way more iterations than matches")}return C+=a,a.length}const k=g(e);if(!k)throw mu(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=wu(k);let E="",_=a||w;const S={},O=new l.__emitter(l);!function(){const e=[];for(let n=_;n!==k;n=n.parent)n.scope&&e.unshift(n.scope);e.forEach((e=>O.openNode(e)))}();let C="",A=0,j=0,T=0,F=!1;try{for(_.matcher.considerAll();;){T++,F?F=!1:_.matcher.considerAll(),_.matcher.lastIndex=j;const e=_.matcher.exec(t);if(!e)break;const n=x(t.substring(j,e.index),e);j=e.index+n}return x(t.substr(j)),O.closeAllNodes(),O.finalize(),E=O.toHTML(),{language:e,value:E,relevance:A,illegal:!1,_emitter:O,_top:_}}catch(n){if(n.message&&n.message.includes("Illegal"))return{language:e,value:Su(t),illegal:!0,relevance:0,_illegalBy:{message:n.message,index:j,context:t.slice(j-100,j+100),mode:n.mode,resultSoFar:E},_emitter:O};if(i)return{language:e,value:Su(t),illegal:!1,relevance:0,errorRaised:n,_emitter:O,_top:_};throw n}}function f(e,t){t=t||l.languages||Object.keys(n);const r=function(e){const n={value:Su(e),illegal:!1,relevance:0,_top:a,_emitter:new l.__emitter(l)};return n._emitter.addText(e),n}(e),i=t.filter(g).filter(v).map((n=>s(n,e,!1)));i.unshift(r);const o=i.sort(((e,n)=>{if(e.relevance!==n.relevance)return n.relevance-e.relevance;if(e.language&&n.language){if(g(e.language).supersetOf===n.language)return 1;if(g(n.language).supersetOf===e.language)return-1}return 0})),[u,c]=o,f=u;return f.secondBest=c,f}function p(e){let n=null;const r=function(e){let n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";const t=l.languageDetectRe.exec(n);if(t){const n=g(t[1]);return n||(vu(o.replace("{}",t[1])),vu("Falling back to no-highlight mode for this block.",e)),n?t[1]:"no-highlight"}return n.split(/\s+/).find((e=>u(e)||g(e)))}(e);if(u(r))return;if(y("before:highlightElement",{el:e,language:r}),e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),l.throwUnescapedHTML)){throw new _u("One of your code blocks includes unescaped HTML.",e.innerHTML)}n=e;const i=n.textContent,a=r?c(i,{language:r,ignoreIllegals:!0}):f(i);e.innerHTML=a.value,function(e,n,r){const i=n&&t[n]||r;e.classList.add("hljs"),e.classList.add(`language-${i}`)}(e,r,a.language),e.result={language:a.language,re:a.relevance,relevance:a.relevance},a.secondBest&&(e.secondBest={language:a.secondBest.language,relevance:a.secondBest.relevance}),y("after:highlightElement",{el:e,result:a,text:i})}let d=!1;function h(){if("loading"===document.readyState)return void(d=!0);document.querySelectorAll(l.cssSelector).forEach(p)}function g(e){return e=(e||"").toLowerCase(),n[e]||n[t[e]]}function m(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach((e=>{t[e.toLowerCase()]=n}))}function v(e){const n=g(e);return n&&!n.disableAutodetect}function y(e,n){const t=e;r.forEach((function(e){e[t]&&e[t](n)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){d&&h()}),!1),Object.assign(e,{highlight:c,highlightAuto:f,highlightAll:h,highlightElement:p,highlightBlock:function(e){return yu("10.7.0","highlightBlock will be removed entirely in v12.0"),yu("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){l=Ou(l,e)},initHighlighting:()=>{h(),yu("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){h(),yu("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,r){let o=null;try{o=r(e)}catch(e){if(mu("Language definition for '{}' could not be registered.".replace("{}",t)),!i)throw e;mu(e),o=a}o.name||(o.name=t),n[t]=o,o.rawDefinition=r.bind(null,e),o.aliases&&m(o.aliases,{languageName:t})},unregisterLanguage:function(e){delete n[e];for(const n of Object.keys(t))t[n]===e&&delete t[n]},listLanguages:function(){return Object.keys(n)},getLanguage:g,registerAliases:m,autoDetection:v,inherit:Ou,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=n=>{e["before:highlightBlock"](Object.assign({block:n.el},n))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=n=>{e["after:highlightBlock"](Object.assign({block:n.el},n))})}(e),r.push(e)}}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString="11.5.1",e.regex={concat:Il,lookahead:Tl,either:Rl,optional:Pl,anyNumberOfTimes:Fl};for(const e in ru)"object"==typeof ru[e]&&kl(ru[e]);return Object.assign(e,ru),e}({}),ju=Au;Au.HighlightJS=Au,Au.default=Au;var Tu=ju,Fu=ze((function(e){!function(){var n;function t(e){for(var n,t,r,i,o=1,a=[].slice.call(arguments),l=0,u=e.length,c="",s=!1,f=!1,p=function(){return a[o++]},d=function(){for(var t="";/\d/.test(e[l]);)t+=e[l++],n=e[l];return t.length>0?parseInt(t):null};l<u;++l)if(n=e[l],s)switch(s=!1,"."==n?(f=!1,n=e[++l]):"0"==n&&"."==e[l+1]?(f=!0,n=e[l+=2]):f=!0,i=d(),n){case"b":c+=parseInt(p(),10).toString(2);break;case"c":c+="string"==typeof(t=p())||t instanceof String?t:String.fromCharCode(parseInt(t,10));break;case"d":c+=parseInt(p(),10);break;case"f":r=String(parseFloat(p()).toFixed(i||6)),c+=f?r:r.replace(/^0/,"");break;case"j":c+=JSON.stringify(p());break;case"o":c+="0"+parseInt(p(),10).toString(8);break;case"s":c+=p();break;case"x":c+="0x"+parseInt(p(),10).toString(16);break;case"X":c+="0x"+parseInt(p(),10).toString(16).toUpperCase();break;default:c+=n}else"%"===n?s=!0:c+=n;return c}(n=e.exports=t).format=t,n.vsprintf=function(e,n){return t.apply(null,[e].concat(n))},"undefined"!=typeof console&&"function"==typeof console.log&&(n.printf=function(){console.log(t.apply(null,arguments))})}()}));const Pu=Object.assign(Iu(Error),{eval:Iu(EvalError),range:Iu(RangeError),reference:Iu(ReferenceError),syntax:Iu(SyntaxError),type:Iu(TypeError),uri:Iu(URIError)});function Iu(e){return n.displayName=e.displayName||e.name,n;function n(n,...t){const r=n?Fu(n,...t):n;return new e(r)}}const Ru={}.hasOwnProperty,Du="hljs-";function Lu(e,n,t={}){let r=t.prefix;if("string"!=typeof e)throw Pu("Expected `string` for name, got `%s`",e);if(!Tu.getLanguage(e))throw Pu("Unknown language: `%s` is not registered",e);if("string"!=typeof n)throw Pu("Expected `string` for value, got `%s`",n);null==r&&(r=Du),Tu.configure({__emitter:Mu,classPrefix:r});const i=Tu.highlight(n,{language:e,ignoreIllegals:!0});if(Tu.configure({}),i.errorRaised)throw i.errorRaised;return i._emitter.root.data.language=i.language,i._emitter.root.data.relevance=i.relevance,i._emitter.root}class Mu{constructor(e){this.options=e,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(e){if(""===e)return;const n=this.stack[this.stack.length-1],t=n.children[n.children.length-1];t&&"text"===t.type?t.value+=e:n.children.push({type:"text",value:e})}addKeyword(e,n){this.openNode(n),this.addText(e),this.closeNode()}addSublanguage(e,n){const t=this.stack[this.stack.length-1],r=e.root.children;n?t.children.push({type:"element",tagName:"span",properties:{className:[n]},children:r}):t.children.push(...r)}openNode(e){const n=e.split(".").map(((e,n)=>n?e+"_".repeat(n):this.options.classPrefix+e)),t={type:"element",tagName:"span",properties:{className:n},children:[]};this.stack[this.stack.length-1].children.push(t),this.stack.push(t)}closeNode(){this.stack.pop()}closeAllNodes(){}finalize(){}toHTML(){return""}}const zu={highlight:Lu,highlightAuto:function(e,n={}){const t=n.subset||Tu.listLanguages();n.prefix;let r=-1,i={type:"root",data:{language:null,relevance:0},children:[]};if("string"!=typeof e)throw Pu("Expected `string` for value, got `%s`",e);for(;++r<t.length;){const o=t[r];if(!Tu.getLanguage(o))continue;const a=Lu(o,e,n);a.data.relevance>i.data.relevance&&(i=a)}return i},registerLanguage:function(e,n){Tu.registerLanguage(e,n)},registered:function(e){return Boolean(Tu.getLanguage(e))},listLanguages:function(){return Tu.listLanguages()},registerAlias:function(e,n){if("string"==typeof e)Tu.registerAliases(n,{languageName:e});else{let n;for(n in e)Ru.call(e,n)&&Tu.registerAliases(e[n],{languageName:n})}}},Nu=function(e){if(null==e)return Vu;if("string"==typeof e)return function(e){return n;function n(n){return Vu(n)&&n.tagName===e}}(e);if("object"==typeof e)return function(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Nu(e[t]);return Bu(r);function r(...e){let t=-1;for(;++t<n.length;)if(n[t].call(this,...e))return!0;return!1}}(e);if("function"==typeof e)return Bu(e);throw new Error("Expected function, string, or array as test")};function Bu(e){return function(n,...t){return Vu(n)&&Boolean(e.call(this,n,...t))}}function Vu(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}var qu=function(e,n,t){var r=Jr(t);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof n){if(n<0||n===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((n=e.children.indexOf(n))<0)throw new Error("Expected child node or index");for(;++n<e.children.length;)if(r(e.children[n],n,e))return e.children[n];return null};const Uu=/\n/g,Hu=/[\t ]+/g,$u=Nu("br"),Wu=Nu("p"),Gu=Nu(["th","td"]),Ku=Nu("tr"),Zu=Nu(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),Xu=Nu(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Yu(e,n={}){const t=e.children||[],r=Xu(e),i=tc(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1});let o,a,l,u=-1;if("text"===e.type||"comment"===e.type)return Ju(e,{whitespace:i,breakBefore:!0,breakAfter:!0});for(o=[];++u<t.length;)o=o.concat(Qu(t[u],e,{whitespace:i,breakBefore:u?null:r,breakAfter:u<t.length-1?$u(t[u+1]):r}));u=-1;const c=[];for(;++u<o.length;)a=o[u],"number"==typeof a?void 0!==l&&a>l&&(l=a):a&&(l&&c.push("\n".repeat(l)),l=0,c.push(a));return c.join("")}function Qu(e,n,t){return"element"===e.type?function(e,n,t){const r=tc(e,t),i=e.children||[];let o,a,l=-1,u=[];if(Zu(e))return u;$u(e)||Ku(e)&&qu(n,e,Ku)?a="\n":Wu(e)?(o=2,a=2):Xu(e)&&(o=1,a=1);for(;++l<i.length;)u=u.concat(Qu(i[l],e,{whitespace:r,breakBefore:l?void 0:o,breakAfter:l<i.length-1?$u(i[l+1]):a}));Gu(e)&&qu(n,e,Gu)&&u.push("\t");o&&u.unshift(o);a&&u.push(a);return u}(e,n,t):"text"===e.type?["normal"===t.whitespace?Ju(e,t):ec(e)]:[]}function Ju(e,n){const t=String(e.value),r=[],i=[];let o,a,l,u=0,c=-1;for(;u<t.length;)Uu.lastIndex=u,o=Uu.exec(t),a=o?o.index:t.length,r.push(nc(t.slice(u,a).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),n.breakBefore,n.breakAfter)),u=a+1;for(;++c<r.length;)8203===r[c].charCodeAt(r[c].length-1)||c<r.length-1&&8203===r[c+1].charCodeAt(0)?(i.push(r[c]),l=""):r[c]&&(l&&i.push(l),i.push(r[c]),l=" ");return i.join("")}function ec(e){return String(e.value)}function nc(e,n,t){const r=[];let i,o,a=0;for(;a<e.length;)Hu.lastIndex=a,i=Hu.exec(e),o=i?i.index:e.length,a||o||!i||n||r.push(""),a!==o&&r.push(e.slice(a,o)),a=i?o+i[0].length:o;return a===o||t||r.push(""),r.join(" ")}function tc(e,n){let t;if("element"===e.type)switch(t=e.properties||{},e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return t.wrap?"pre-wrap":"pre";case"td":case"th":return t.noWrap?"nowrap":n.whitespace;case"textarea":return"pre-wrap"}return n.whitespace}const rc={}.hasOwnProperty;function ic(e={}){const{aliases:n,languages:t,prefix:r,plainText:i,ignoreMissing:o,subset:a}=e;let l="hljs";if(n&&zu.registerAlias(n),t){let e;for(e in t)rc.call(t,e)&&zu.registerLanguage(e,t[e])}if(r){const e=r.indexOf("-");l=e>-1?r.slice(0,e):r}return e=>{ri(e,"element",((e,n,t)=>{const u=t;if(!u||!("tagName"in u)||"pre"!==u.tagName||"code"!==e.tagName||!e.properties)return;const c=function(e){const n=e.properties&&e.properties.className;let t=-1;if(!Array.isArray(n))return;for(;++t<n.length;){const e=String(n[t]);if("no-highlight"===e||"nohighlight"===e)return!1;if("lang-"===e.slice(0,5))return e.slice(5);if("language-"===e.slice(0,9))return e.slice(9)}}(e);if(!1===c||!c&&!1===a||c&&i&&i.includes(c))return;let s;Array.isArray(e.properties.className)||(e.properties.className=[]),e.properties.className.includes(l)||e.properties.className.unshift(l);try{s=c?zu.highlight(c,Yu(u),{prefix:r}):zu.highlightAuto(Yu(u),{prefix:r,subset:a})}catch(e){if(!o||!/Unknown language/.test(e.message))throw e;return}!c&&s.data.language&&e.properties.className.push("language-"+s.data.language),Array.isArray(s.children)&&s.children.length>0&&(e.children=s.children)}))}}var oc=function(e){var n=e.content;return o.createElement(Ko,{remarkPlugins:[yl],rehypePlugins:[ic]},n)};oc.propTypes={content:m.string};var ac=function(e){var n=e.value;return o.createElement(Qe,{value:Ke(n)})};ac.propTypes={value:m.oneOfType([m.number,m.string])};var lc=function(e){var n,t=e.value,r=e.options;return o.createElement(Qe,{value:null===(n=r.find((function(e){return e.value===t})))||void 0===n?void 0:n.label})};lc.propTypes={value:m.string,options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.any})).isRequired};var uc=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},cc=function(e){var n=e.variant,t=e.name,r=e.value,i=e.defaultValue,a=e.label,l=e.labelPlacement;return"checkbox"===n?o.createElement(O,{label:a,labelPlacement:l||"end",disabled:!0,control:o.createElement(P,{name:t,checked:uc(r,i)})}):o.createElement(O,{label:a,labelPlacement:l||"end",disabled:!0,control:o.createElement(I,{name:t,checked:uc(r,i)})})};cc.propTypes={variant:m.string,name:m.string.isRequired,value:m.bool,defaultValue:m.bool,label:m.string,labelPlacement:m.string};var sc=U((function(){return{formRepeater:{padding:0,margin:0}}})),fc=function(e,n){return n&&void 0!==n[e]?n[e]:e},pc=function(e){var n=e.value,t=e.options,r=sc();return o.createElement(M,{className:r.formRepeater,dense:!0},n&&n.map((function(e,n){return o.createElement(z,{key:"entry-".concat(n)},o.createElement(N,{primary:fc(e,t),style:{margin:0}}))})))};pc.propTypes={value:m.array,options:m.object};var dc=function(e){var n=e.subject,t=e.label;return o.createElement(x,{mb:2},o.createElement(B,{severity:"warning"},o.createElement(k,{variant:"body1"},n?"".concat(n," "):"",o.createElement("span",{style:{fontWeight:"bold"}},t)," ist ausgeblendet.")))};dc.propTypes={subject:m.string,label:m.string.isRequired};var hc=function(){var e=je(),t=a(),r=n(t,2),i=r[0],l=r[1];return u((function(){if(e)return e.subscribe((function(){var n=e.getState().expiredNotification;n&&(l(n),e.setState({expiredNotification:void 0}))}))}),[e]),!!e&&o.createElement(V,{open:!!i,autoHideDuration:4e3,anchorOrigin:{vertical:"bottom",horizontal:"right"},message:i?'Reservierung für "'.concat(i.label,'" ist abgelaufen.'):"",onClose:function(){return l(void 0)}})},gc={default:Ge,string:Ge,text:Ge,number:Xe,select:an,boolean:un,array:pn,readOnlyDefault:Qe,readOnlyString:Qe,readOnlyText:Qe,readOnlyMarkdown:oc,readOnlyNumber:ac,readOnlySelect:lc,readOnlyBoolean:cc,readOnlyArray:pc,apDefault:q,apString:q,apNumber:Xe,apSelect:an,apBoolean:un,field:$e,readOnlyField:bn,sectionCard:Re,sectionBlock:Le,hiddenData:dc,reservationExpiredNotification:hc},mc=f(!1),vc=function(){var e=r(i.mark((function e(n){var t,r,o,a,l,u,c,s,f,p,d=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t=d.length>1&&void 0!==d[1]?d[1]:{}).token,o=t.signal,a=t.method,l=void 0===a?"GET":a,u=t.body,e.prev=1,f={method:l},r&&(f.headers={"Content-Type":"application/json",Authorization:"Bearer ".concat(r)}),o&&(f.signal=o),void 0!==u&&(f.body=JSON.stringify(u)),e.next=8,fetch(n,f);case 8:return c=e.sent,e.next=11,c.text();case 11:s=e.sent,e.next=17;break;case 14:throw e.prev=14,e.t0=e.catch(1),new Error(s);case 17:if(p=JSON.parse(s),c.ok){e.next=20;break}throw new Error(p.error);case 20:return e.abrupt("return",p);case 21:case"end":return e.stop()}}),e,null,[[1,14]])})));return function(n){return e.apply(this,arguments)}}();function yc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function bc(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?yc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function xc(e){var n=function(e,n){if("object"!==re(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===re(n)?n:String(n)}var kc=function(e){var o=e.reservationId,c=e.url,s=e.token,f=e.label,d=e.fieldNames,h=e.setFieldValues,g=je(),m=a(!1),v=n(m,2),y=v[0],b=v[1],x=l(),k=l(),w=l({reservationId:o,url:c,token:s,label:f,fieldNames:d,setFieldValues:h});w.current={reservationId:o,url:c,token:s,label:f,fieldNames:d,setFieldValues:h};var E=p((function(){k.current&&(clearInterval(k.current),k.current=void 0)}),[]),_=function(){var e={};return w.current.fieldNames.forEach((function(n){e[n]=void 0})),e},S=p(r(i.mark((function e(){var n,t,r,a,l,u,c=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(c.length>0&&void 0!==c[0]?c[0]:{}).skipServerCall,t=void 0!==n&&n,E(),r=g.getState(),a=r.reservations[o]){e.next=7;break}return e.abrupt("return");case 7:if(l=r.reservations,u=H(l,[o].map(xc)),g.setState({reservations:u}),w.current.setFieldValues(_()),t||!a.releaseUrl){e.next=18;break}return e.prev=11,e.next=14,vc(a.releaseUrl,{method:"DELETE",token:w.current.token});case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(11);case 18:case"end":return e.stop()}}),e,null,[[11,16]])}))),[g,o,E]),O=p((function(){E(),k.current=setInterval((function(){var e=g.getState(),n=e.reservations[o];if(n&&"active"===n.status){var r=n.remaining-1;if(r<=0){E();var i=e.reservations;i[o];var a=H(i,[o].map(xc));return g.setState({reservations:bc(bc({},a),{},t({},o,bc(bc({},n),{},{remaining:0,status:"expired"}))),expiredNotification:{reservationId:o,label:w.current.label||o}}),w.current.setFieldValues(_()),n.releaseUrl&&vc(n.releaseUrl,{method:"DELETE",token:w.current.token}).catch((function(){})),void setTimeout((function(){var e=g.getState().reservations,n=e[o],t=H(e,[o].map(xc));n&&"expired"===n.status&&g.setState({reservations:t})}),100)}g.setState({reservations:bc(bc({},e.reservations),{},t({},o,bc(bc({},n),{},{remaining:r})))})}else E()}),1e3)}),[g,o,E]),C=p(r(i.mark((function e(){var n,r,a,l,u,c,s;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=g.getState().reservations[o])||"active"!==n.status){e.next=4;break}return e.next=4,S();case 4:if(x.current&&x.current.abort(),x.current=new AbortController,b(!0),e.prev=7,a=w.current,l=a.url,u=a.token,"function"!=typeof l){e.next=15;break}return e.next=12,l(x.current.signal);case 12:c=e.sent,e.next=18;break;case 15:return e.next=17,vc(l,{token:u,signal:x.current.signal});case 17:c=e.sent;case 18:x.current=void 0,s={voucher:c.voucher,fields:c.fields,releaseUrl:null===(r=c.links)||void 0===r?void 0:r.release,validFor:c.validFor,remaining:c.validFor,status:"active"},w.current.setFieldValues(c.fields),g.setState({reservations:bc(bc({},g.getState().reservations),{},t({},o,s))}),O(),e.next=28;break;case 25:e.prev=25,e.t0=e.catch(7),"AbortError"!==e.t0.name&&console.error("Reservation generate failed:",e.t0);case 28:b(!1);case 29:case"end":return e.stop()}}),e,null,[[7,25]])}))),[g,o,S,O]);return u((function(){return function(){E(),x.current&&x.current.abort();var e=g.getState(),n=e.reservations[o];if(n&&"active"===n.status&&n.releaseUrl){vc(n.releaseUrl,{method:"DELETE",token:w.current.token}).catch((function(){}));var t=e.reservations;t[o];var r=H(t,[o].map(xc));g.setState({reservations:r})}}}),[g,o,E]),{loading:y,generate:C,release:S}},wc=function(e){var n=e.fieldName,t=e.config,r=e.label,i=e.disabled,a=e.children,c=e.onChange,s=t.url,f=t.token,p=t.buttonLabel,d=void 0===p?"Generieren":p,h=t.releaseLabel,g=t.activeLabel,m=void 0===g?"Reserviert":g,v=t.inactiveLabel,y=void 0===v?"Nicht reserviert":v,b=t.allowManualOverride,w=void 0!==b&&b,E=h||"".concat(r||n," zurücksetzen"),_=Oe().setFieldValues,S=je(),O=kc({reservationId:n,url:s,token:f,label:r||n,fieldNames:[n],setFieldValues:_}),C=O.generate,A=O.release,j=O.loading,F=Ee(S,(function(e){return e.reservations[n]})),P=F&&"active"===F.status,I=l();u((function(){P&&w&&(I.current=F.fields[n])}),[P,w,F,n]);var D={};return P&&!w&&(D.disabled=!0),P&&w&&(D.onChange=function(e){P&&w&&e.target.value!==I.current&&A(),c&&c(e)}),o.createElement(x,{sx:{width:"100%"}},o.Children.map(a,(function(e){return o.isValidElement(e)?o.cloneElement(e,D):e})),o.createElement(x,{sx:function(e){return{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",mt:.5,px:1.5,py:.75,border:"1px solid ".concat(e.palette.primary.main),borderRadius:1}}},P&&o.createElement(k,{variant:"caption",sx:function(e){return{color:F.remaining<=30?e.palette.warning.main:e.palette.text.secondary}}},m," — ",function(e){if(e>=600){var n=Math.floor(e/3600),t=Math.ceil(e%3600/60);return n>0?"".concat(n,"h ").concat(t,"min"):"".concat(t," min")}if(e>=60){var r=Math.floor(e/60),i=e%60;return"".concat(r,":").concat(i.toString().padStart(2,"0"))}return"".concat(e,"s")}(F.remaining)),!P&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!P&&!j&&o.createElement(R,{size:"small",variant:"outlined",startIcon:o.createElement(X,null),disabled:i,onClick:C},d),j&&o.createElement(R,{size:"small",variant:"outlined",startIcon:o.createElement(T,{size:16,thickness:4}),disabled:!0},d),P&&!j&&o.createElement(R,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(Y,null),disabled:i,onClick:A},E)))};wc.propTypes={fieldName:m.string.isRequired,config:m.shape({url:m.oneOfType([m.string,m.func]).isRequired,token:m.string,buttonLabel:m.string,releaseLabel:m.string,activeLabel:m.string,inactiveLabel:m.string,allowManualOverride:m.bool}).isRequired,children:m.node.isRequired};var Ec=["message","options","validator"];function _c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var Sc=function(e,n){return e&&e.errors?e.errors.map((function(e){var r=e.message,i=e.options,o=e.validator,a=H(e,Ec),l=r;return i&&i.human?l=i.human:n[o]&&(l=we(n[o],i)),function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?_c(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_c(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}({message:l,options:i,validator:o},a)})):[]},Oc=o.memo((function(e){var n,t=e.adornmentEntry,r=e.mainFieldName,i=e.position,o=e.inputVariant,a=Se(),l=a.store,u=a.schema,c=a.translations,s=a.errorMessages,f=a.resolvedSlots,p=a.handleFieldChange,h=a.propDisabled,g=t[0],m=Ee(l,(function(e){return e.preSubmitValidation})),v=Ee(l,(function(e){return e.data[g]})),y=Ee(l,(function(e){var n;return null===(n=e.results)||void 0===n?void 0:n[g]})),b=m||h,x=u.properties[g];if(!x)return!1;var k=x.type,w=f["ap".concat(k.charAt(0).toUpperCase()+k.slice(1))]||f.apDefault;return d(w,{key:"form-field-".concat(r,"-").concat(i,"-").concat(g),variant:o,disabled:b,onChange:p,name:g,value:v,required:null==y?void 0:y.required,hasErrors:null==y?void 0:y.hasErrors,errors:Sc(y,s),label:(null==c||null===(n=c.labels)||void 0===n?void 0:n[g])||g})})),Cc=["message","options","validator"],Ac=["hidden","hideLabel","autoGenerate"];function jc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Tc(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?jc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Fc=function(e){var n,r,i,a=e.fieldEntry,l=e.allFields,u=Se(),s=u.store,f=u.schema,p=u.translations,d=u.errorMessages,h=u.readOnly,g=u.inputVariant,m=u.variant,v=u.resolvedSlots,y=u.slotProps,b=u.fieldSlots,x=u.fieldSlotProps,k=u.renderComponentMap,w=u.handleFieldChange,E=u.handleFocus,_=u.handleBlur,S=u.obscuredFields,O=u.propDisabled,C=function(e){return"string"==typeof e?e:Array.isArray(e)?"@@render"===e[0]||"@@markdown"===e[0]?e[1]:e[0]:null}(a),A=Array.isArray(a)&&"@@markdown"===a[0],j=Array.isArray(a)&&"@@render"===a[0],T=!j&&Array.isArray(a)&&((null===(n=a[1])||void 0===n?void 0:n.appends)||(null===(r=a[1])||void 0===r?void 0:r.prepends)),F=c(mc),P=Ee(s,(function(e){return e.data[C]})),I=Ee(s,(function(e){var n;return null===(n=e.results)||void 0===n?void 0:n[C]})),R=Ee(s,(function(e){var n;return null===(n=e.fieldStates)||void 0===n?void 0:n[C]})),D=Ee(s,(function(e){return e.preSubmitValidation}));if(A){var L=v.readOnlyMarkdown;return o.createElement(L,{content:a[2]})}if(T)return!1;var M=function(e){return"string"==typeof e?{}:Array.isArray(e)?"@@render"===e[0]?e[2]||{}:"@@markdown"===e[0]?{}:e[1]||{}:{}}(a),z=M.hidden,N=M.hideLabel,B=M.autoGenerate,V=H(M,Ac);if(!0===z)return!1;var q=D||O||F;if(!I)return!1;var U=I.prohibited,$=I.required,W=I.optional,G=I.hasErrors;I.errors;var K=I.data;if(!0===U||!$&&!W&&void 0===K)return!1;if(h&&(""===P||void 0===P))return!1;if(h&&Array.isArray(S)&&S.includes(C)){var Z,X=v.hiddenData,Y=!0!==N&&((null==p||null===(Z=p.labels)||void 0===Z?void 0:Z[C])||C);return o.createElement(X,{subject:"Das Feld",label:Y})}var Q=f.properties[C];if(!Q)return!1;var ee,ne,te=Q.type,re=Q.default;try{var ie=function(e){var n,t=e.fieldName,r=e.isRender,i=e.schemaType,o=e.resolvedSlots,a=e.fieldSlots,l=e.renderComponentMap;if(r){var u=l[t];if(!u)throw new Error('renderComponentMap has no entry for field "'.concat(t,'"'));return{component:u,props:{}}}if(void 0!==a[t])return{component:a[t],props:{}};if("string"==typeof i&&void 0!==o[i])n=i;else if(Array.isArray(i))n="select";else{if(void 0===o.default)throw new Error('Could not find a component to render for field "'.concat(t,'" (type: ').concat(JSON.stringify(i),")"));n="default"}var c=o[n];if(!c)throw new Error('Could not find a component to render for field "'.concat(t,'"'));return Array.isArray(c)?{component:c[0],props:c[1]}:{component:c,props:{}}}({fieldName:C,isRender:j,schemaType:te,resolvedSlots:v,fieldSlots:b,renderComponentMap:k});ee=ie.component,ne=ie.props}catch(e){return console.error(e),!1}var oe=!0!==N&&((null==p||null===(i=p.labels)||void 0===i?void 0:i[C])||C),ae=function(e){var n=e.schemaType,r=e.fieldName,i=e.schemaField,o=e.translations;return Array.isArray(n)?n.map((function(e){var n;return{label:(null==o||null===(n=o[r])||void 0===n?void 0:n[e])||e,value:e}})):"array"===n&&i.options?i.options.reduce((function(e,n){var i;return Tc(Tc({},e),{},t({},n,(null==o||null===(i=o[r])||void 0===i?void 0:i[n])||n))}),{}):void 0}({schemaType:te,fieldName:C,schemaField:Q,translations:p}),le=j?"@@render":Array.isArray(te)?"select":te||"default",ue=(null==y?void 0:y[le])||{},ce=(null==x?void 0:x[C])||{},se=Tc(Tc(Tc(Tc({},ne),ue),ce),V),fe=function(e,n){return e&&e.errors?e.errors.map((function(e){var t=e.message,r=e.options,i=e.validator,o=H(e,Cc),a=t;return r&&r.human?a=r.human:n[i]&&(a=we(n[i],r)),Tc({message:a,options:r,validator:i},o)})):[]}(I,d);if(h){var pe=v.readOnlyField,de=Array.isArray(te)?"select":te||"string",he="readOnly".concat(de.charAt(0).toUpperCase()+de.slice(1)),ge=b[C]||v[he]||v.readOnlyDefault;return o.createElement(pe,J({type:de,name:C,label:oe,value:P,options:ae,required:$,hasErrors:G,errors:fe,component:ge,componentProps:se},R))}var me=function(e){var n=e.allFields,t=e.fieldName,r=e.inputVariant,i=[],a=[];return n.forEach((function(e){if(Array.isArray(e)&&e[1]){var n=e[1].appends===t,l=e[1].prepends===t;if(n||l){var u=o.createElement(Oc,{key:"adornment-".concat(e[0]),adornmentEntry:e,mainFieldName:t,position:n?"append":"prepend",inputVariant:r});n&&i.push(u),l&&a.push(u)}}})),{append:i.length>0?i:void 0,prepend:a.length>0?a:void 0}}({allFields:l,fieldName:C,inputVariant:g}),ve=v.field,ye=o.createElement(ve,{variant:g,formVariant:m,type:le,name:C,label:oe,defaultValue:re,value:P,options:ae,required:$,hasErrors:G,errors:fe,validating:null==R?void 0:R.validating,dirty:null==R?void 0:R.dirty,component:ee,componentProps:se,prepend:me.prepend,append:me.append,disabled:q,onChange:w,onFocus:E,onBlur:_});return B?o.createElement(wc,{fieldName:C,config:B,label:oe,disabled:q,onChange:w},ye):ye},Pc=o.memo(Fc),Ic=function(e){var n=e.groupId,t=e.config,r=e.label,i=e.fieldNames,a=e.disabled,c=e.children,s=t.url,f=t.token,p=t.buttonLabel,d=void 0===p?"Generieren":p,h=t.releaseLabel,g=t.activeLabel,m=void 0===g?"Reserviert":g,v=t.inactiveLabel,y=void 0===v?"Nicht reserviert":v,b=t.allowManualOverride,w=void 0!==b&&b,E=h||"".concat(r||n," zurücksetzen"),_=Oe().setFieldValues,S=je(),O=kc({reservationId:n,url:s,token:f,label:r||n,fieldNames:i,setFieldValues:_}),C=O.generate,A=O.release,j=O.loading,F=Ee(S,(function(e){return e.reservations[n]})),P=F&&"active"===F.status,I=l();u((function(){I.current=P?F.fields:void 0}),[P,F]);var D=o.useCallback((function(e){var n={};return i.forEach((function(t){n[t]=e.data[t]})),n}),[i]),L=Ce(D,(function(e,n){for(var t=0;t<i.length;t++)if(e[i[t]]!==n[i[t]])return!1;return!0}));return u((function(){if(P&&w&&I.current){var e=I.current;i.some((function(n){return L[n]!==e[n]}))&&A()}}),[P,w,i,L,A]),o.createElement(x,{sx:{width:"100%"}},o.createElement(x,{sx:function(e){return{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",mb:1.5,px:1.5,py:.75,border:"1px solid ".concat(e.palette.primary.main),borderRadius:1}}},P&&o.createElement(k,{variant:"caption",sx:function(e){return{color:F.remaining<=30?e.palette.warning.main:e.palette.text.secondary}}},m," — ",function(e){if(e>=600){var n=Math.floor(e/3600),t=Math.ceil(e%3600/60);return n>0?"".concat(n,"h ").concat(t,"min"):"".concat(t," min")}if(e>=60){var r=Math.floor(e/60),i=e%60;return"".concat(r,":").concat(i.toString().padStart(2,"0"))}return"".concat(e,"s")}(F.remaining)),!P&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!P&&!j&&o.createElement(R,{size:"small",variant:"outlined",startIcon:o.createElement(X,null),disabled:a,onClick:C},d),j&&o.createElement(R,{size:"small",variant:"outlined",startIcon:o.createElement(T,{size:16,thickness:4}),disabled:!0},d),P&&!j&&o.createElement(R,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(Y,null),disabled:a,onClick:A},E)),o.createElement(mc.Provider,{value:P&&!w},c))};Ic.propTypes={groupId:m.string.isRequired,config:m.shape({url:m.oneOfType([m.string,m.func]).isRequired,token:m.string,buttonLabel:m.string,releaseLabel:m.string,activeLabel:m.string,inactiveLabel:m.string,allowManualOverride:m.bool}).isRequired,fieldNames:m.arrayOf(m.string).isRequired,children:m.node.isRequired};var Rc=function(e,n){return"string"==typeof e?e:Array.isArray(e)?"".concat(e[0],"-").concat(e[1]||n):e&&e.id?e.id:String(n)},Dc=function(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];"string"==typeof r?n.push(r):Array.isArray(r)&&"@@render"!==r[0]&&"@@markdown"!==r[0]&&n.push(r[0])}return n},Lc=function e(n){var t=n.sectionId,r=n.label,i=n.desc,a=n.fields,l=n.autoGenerate,u=n.labelVariant,c=n.descVariant,s=n.textAlign,f=n.nested,p=void 0===f?0:f,d=Se(),h=d.variant,g=d.resolvedSlots,m=0===p&&"card"===h?g.sectionCard:Le,v=a.map((function(n,t){return!1!==n&&(n&&"object"===re(n)&&!Array.isArray(n)&&n.fields?o.createElement(e,{key:"form-section-".concat(n.id),sectionId:n.id,label:n.label,desc:n.description,fields:n.fields,autoGenerate:n.autoGenerate,labelVariant:u,descVariant:c,textAlign:s,nested:(p||0)+1}):o.createElement(Pc,{key:Rc(n,t),fieldEntry:n,allFields:a}))}));return o.createElement(m,{groupId:t,label:r,labelVariant:u,desc:i,descVariant:c,textAlign:s},l&&o.createElement(Ic,{groupId:t,config:l,label:r,fieldNames:Dc(a)},v),!l&&v)};Lc.propTypes={sectionId:m.string.isRequired,label:m.string,desc:m.string,labelVariant:m.string,descVariant:m.string,textAlign:m.oneOf(["left","center","right"]),fields:m.array.isRequired,autoGenerate:m.shape({url:m.string.isRequired,token:m.string,allowManualOverride:m.bool,allowRegenerate:m.bool}),nested:m.number};var Mc=o.memo(Lc);function zc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Nc(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?zc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Bc=function(){var e=r(i.mark((function e(n,t){var r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t();case 2:if(!0===(r=e.sent)){e.next=5;break}return e.abrupt("return",{path:n,validator:"Async",message:r});case 5:return e.abrupt("return",!0);case 6:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Vc=function(e,n){if(!e)return n;for(var t={},r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];e[o]&&oe(e[o],n[o])?t[o]=e[o]:t[o]=n[o]}return t},qc=function(e){for(var n=Object.values(e),t=0;t<n.length;t++)if(n[t].dirty)return!0;return!1},Uc=function(e,n,r,i){var o=function(e,n){return v(e,n)}(e,Nc(Nc({},n),r)),a=o.hasErrors,l=o.errors,u=o.results,c=o.data,s=o.sanitizedData,f=i||Object.keys(u).map((function(e){return t({},e,{validating:!1,active:!1,touched:!1,dirty:!1,inactive:!0,pristine:!0,clean:!0})})).reduce((function(e,n){return Nc(Nc({},e),n)}),{}),p=Object.entries(c).map((function(e){var n=e[1];return void 0===n&&void 0!==s[e[0]]&&(n=s[e[0]]),t({},e[0],n)})).reduce((function(e,n){return Nc(Nc({},e),n)}),{});return{preSubmitValidation:!1,hasErrors:a,isDirty:qc(f),errors:l,results:u,data:p,asyncErrors:[],fieldStates:f}},Hc=function(e){var t=e.store,r=e.errorMessages,i=e.translations,a=o.useState((function(){return{hasErrors:t.getState().hasErrors,errors:t.getState().errors}})),l=n(a,2),c=l[0],s=l[1];return u((function(){return t.subscribe((function(){var e=t.getState(),n=e.hasErrors,r=e.errors;s((function(e){return e.hasErrors===n&&oe(e.errors,r)?e:{hasErrors:n,errors:r}}))}))}),[t]),!!c.hasErrors&&o.createElement("div",{className:"errors"},c.errors.map((function(e){var n,t=e.path,a=e.message,l=e.options,u=e.validator,c=a;return l&&l.human?c=l.human:r[u]&&(c=we(r[u],l)),o.createElement("div",{key:"form-error-".concat(t,"-").concat(u),className:"error"},o.createElement("div",{className:"field"},(null==i||null===(n=i.labels)||void 0===n?void 0:n[t])||t),o.createElement("div",{className:"message"},c))})))},$c=function(a){var c=a.id,f=a.variant,d=void 0===f?"card":f,g=a.inputVariant,m=a.groupLabelVariant,y=a.groupDescVariant,b=a.textAlign,x=a.readOnly,k=a.submitOnEnter,w=a.listErrors,E=a.schema,_=a.renderSchema,S=a.data,O=a.transientData,C=a.fieldStates,A=a.disabled,j=a.translations,T=a.slots,F=a.slotProps,P=a.fieldSlots,I=a.fieldSlotProps,R=a.renderComponentMap,D=a.obscuredFields,L=a.obscuredGroups,M=a.errorMessages,z=void 0===M?{}:M,N=a.asyncValidators,B=a.onSubmit,V=a.onReset,q=a.onStatusUpdate,U=a.onStateChange,H=a.onUnmount,$=l(null);null===$.current&&($.current=new Pe(Uc(E,S,O,C)));var W=$.current,G=l(null);null===G.current&&(G.current=new Pe({reservations:{},expiredNotification:void 0}));var K=G.current,Z=l(S),X=l({onSubmit:B,onReset:V,onStatusUpdate:q,onStateChange:U,onUnmount:H});h((function(){X.current={onSubmit:B,onReset:V,onStatusUpdate:q,onStateChange:U,onUnmount:H}}));var Y=l(A);h((function(){Y.current=A}));var Q=p((function(e,n){var t=X.current,r=t.onStateChange,i=t.onStatusUpdate,o=t.onSubmit,a=W.getState();r&&r(e),i&&i({preSubmitValidation:a.preSubmitValidation,hasErrors:e.hasErrors,errors:e.errors,isDirty:a.isDirty}),n&&!e.hasErrors&&o&&o(e.sanitizedData)}),[W]),J=l(null),ee=l(null),ne=p(function(){var n=r(i.mark((function n(t,r,o){var a,l,u,c,s,f,p,d,h,g,m,y,b;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(J.current&&J.current.abort(),J.current=new AbortController,a=J.current.signal,l=v(E,t),u=W.getState().results,l.results=Vc(u,l.results),N){n.next=12;break}return c=W.getState().preSubmitValidation,W.setState(Nc(Nc({},l),{},{data:t,fieldStates:r,asyncErrors:[],preSubmitValidation:!1,isDirty:qc(r)})),Q(l,c),J.current=void 0,n.abrupt("return");case 12:if(s=Object.entries(N).map((function(e){return{path:e[0],func:e[1]}})).filter((function(e){var n,t=e.path;return void 0!==(null===(n=l.results[t])||void 0===n?void 0:n.sanitizedData)})),0!==s.length){n.next=19;break}return f=W.getState().preSubmitValidation,W.setState(Nc(Nc({},l),{},{data:t,fieldStates:r,asyncErrors:o||[],preSubmitValidation:!1,isDirty:qc(r)})),Q(Nc(Nc({},l),{},{asyncErrors:o||[]}),f),J.current=void 0,n.abrupt("return");case 19:return p=Nc({},r),s.forEach((function(e){var n=e.path;p[n]=Nc(Nc({},p[n]),{},{validating:!0})})),W.setState({data:t,fieldStates:p}),n.prev=22,n.next=25,Promise.all(s.map((function(e){var n=e.path,r=e.func;return a.aborted?Promise.resolve(!0):t[n]?Bc(n,(function(){return r(n,t[n])})):Promise.resolve(!0)})));case 25:d=n.sent,n.next=33;break;case 28:if(n.prev=28,n.t0=n.catch(22),"AbortError"!==n.t0.name){n.next=32;break}return n.abrupt("return");case 32:throw n.t0;case 33:if(!a.aborted){n.next=35;break}return n.abrupt("return");case 35:h=d.filter((function(e){return!0!==e})),g=Nc({},l.results),h.forEach((function(n){var t=g[n.path];t&&(t.errors=[].concat(e(t.errors||[]),[n]),t.hasErrors=!0,t.sanitizedData=void 0)})),m=[].concat(e(l.errors),e(h)),y=Nc(Nc({},l),{},{hasErrors:m.length>0,errors:m,asyncErrors:h,results:g}),b=W.getState().preSubmitValidation,W.setState(Nc(Nc({},y),{},{data:t,fieldStates:r,preSubmitValidation:!1,isDirty:qc(r)})),Q(y,b),J.current=void 0;case 44:case"end":return n.stop()}}),n,null,[[22,28]])})));return function(e,t,r){return n.apply(this,arguments)}}(),[E,N,W,Q]),te=p((function(e,n,t){W.setState({data:e,fieldStates:n,isDirty:qc(n)}),ee.current&&cancelAnimationFrame(ee.current),ee.current=requestAnimationFrame((function(){ee.current=void 0,ne(e,n,t)}))}),[W,ne]),re=p((function(e,n,t){return ee.current&&(cancelAnimationFrame(ee.current),ee.current=void 0),ne(e,n,t)}),[ne]),ie=p((function(e){var n=e.target,r=n.name,i=n.value,o=W.getState(),a=o.preSubmitValidation,l=o.data,u=o.asyncErrors,c=o.fieldStates;if(!a&&!Y.current){var s=Z.current[r]!==i,f=Nc(Nc({},l),{},t({},r,i)),p=Nc(Nc({},c),{},t({},r,Nc(Nc({},c[r]),{},{dirty:s,clean:!s}))),d=u.filter((function(e){return e.path!==r}));te(f,p,d)}}),[W,te]),ae=p((function(e){var t=W.getState(),r=t.preSubmitValidation,i=t.data,o=t.asyncErrors,a=t.fieldStates;if(!r&&!Y.current){var l=Object.entries(e),u=Nc({},i),c=Nc({},a),s=[];l.forEach((function(e){var t=n(e,2),r=t[0],i=t[1],o=Z.current[r]!==i;u[r]=i,c[r]=Nc(Nc({},c[r]),{},{dirty:o,clean:!o}),s.push(r)}));var f=o.filter((function(e){var n=e.path;return!s.includes(n)}));te(u,c,f)}}),[W,te]),le=p((function(e){var n=e.target.name;W.setState((function(e){return{fieldStates:Nc(Nc({},e.fieldStates),{},t({},n,Nc(Nc({},e.fieldStates[n]),{},{active:!0,inactive:!1})))}}))}),[W]),ue=p((function(e){var n=e.target.name;W.setState((function(e){return{fieldStates:Nc(Nc({},e.fieldStates),{},t({},n,Nc(Nc({},e.fieldStates[n]),{},{active:!1,inactive:!0,touched:!0,pristine:!1})))}}))}),[W]),ce=p((function(){var e=W.getState(),n=e.hasErrors,t=e.fieldStates,r=X.current.onStatusUpdate;r&&r({preSubmitValidation:!1,hasErrors:n,isDirty:qc(t)})}),[W]),se=p((function(){Z.current=S,W.setState(Uc(E,S,O)),ce()}),[S,E,O,W,ce]),fe=p((function(e){var n=W.getState(),t=n.preSubmitValidation,r=n.data,i=n.asyncErrors,o=n.fieldStates;if(!t&&!Y.current){var a=Nc({},r),l=[],u=Nc({},o);e.forEach((function(e){var n=e.name,t=e.value,c=t;E.properties[n]&&"boolean"===E.properties[n].type&&(c=!0!==r[n]);var s=Z.current[n]!==t;l=i.filter((function(e){return e.path!==n})).concat(l),u[n]=Nc(Nc({},o[n]),{},{dirty:s,clean:!s}),a[n]=c})),re(a,u,l)}}),[W,E,re]),pe=p((function(){var e=W.getState(),n=e.errors,t=e.hasErrors,r=e.data,i=e.asyncErrors,o=e.fieldStates,a=X.current.onStatusUpdate;W.setState({preSubmitValidation:!0});var l=qc(o);a&&a({preSubmitValidation:!0,hasErrors:t,errors:n,isDirty:l}),re(r,o,i)}),[W,re]);u((function(){return ce(),function(){ee.current&&cancelAnimationFrame(ee.current);var e=K.getState().reservations;Object.values(e).forEach((function(e){"active"===e.status&&e.releaseUrl&&vc(e.releaseUrl,{method:"DELETE"}).catch((function(){}))}));var n=W.getState(),t=n.hasErrors,r=n.isDirty,i=n.data,o=n.fieldStates,a=X.current.onUnmount;a&&a({hasErrors:t,isDirty:r,data:i,fieldStates:o})}}),[]);var de=l(S);u((function(){oe(de.current,S)||(de.current=S,Z.current=S,W.setState(Uc(E,S,O)),ce())}),[S]);var he=l(O);u((function(){if(O&&!oe(O,he.current)){he.current=O;var e=Object.entries(O).filter((function(e){var t=n(e,2),r=t[0];return t[1]!==de.current[r]})).map((function(e){var t=n(e,2);return{name:t[0],value:t[1]}}));e.length>0&&fe(e)}}),[O]);var ge=s((function(){return{submitForm:pe,resetForm:function(){se(),X.current.onReset&&X.current.onReset()},setFieldValue:function(e,n){return ie({target:{name:e,value:n}})},setFieldValues:ae}}),[pe,se,ie,ae]),me=s((function(){return Nc(Nc({},gc),T)}),[T]),ve=s((function(){return{store:W,api:ge,id:c,schema:E,translations:j||{},errorMessages:z||{},readOnly:x||!1,inputVariant:g||"standard",variant:d||"card",propDisabled:A||!1,resolvedSlots:me,slotProps:F||{},fieldSlots:P||{},fieldSlotProps:I||{},renderComponentMap:R||{},handleFocus:le,handleBlur:ue,handleFieldChange:ie,obscuredFields:D||[],obscuredGroups:L||[]}}),[W,ge,c,E,j,z,x,g,d,A,me,F,P,I,R,le,ue,ie,D,L]),ye=W.getState().preSubmitValidation||A,be=me.reservationExpiredNotification;return o.createElement(_e.Provider,{value:ve},o.createElement(Ae.Provider,{value:K},o.createElement("form",{id:c,className:"formulator-form",disabled:ye,onSubmit:function(e){return e.preventDefault()},onKeyDown:k?function(e){"Enter"!==e.key||"TEXTAREA"===e.target.tagName||ye||(e.preventDefault(),pe())}:void 0,onReset:function(e){e.preventDefault(),se(),X.current.onReset&&X.current.onReset()}},_.title&&o.createElement("h5",null,_.title),_.description&&o.createElement("h5",null,_.description),_.groups.map((function(e){var n=e.id,t=e.label,r=e.description,i=e.fields,a=e.autoGenerate;return x&&Array.isArray(L)&&L.includes(n)?o.createElement(dc,{key:"hidden-group-".concat(n),subject:"Der Bereich",label:t}):o.createElement(Mc,{key:"form-section-".concat(n),sectionId:n,label:t,desc:r,fields:i,autoGenerate:a,labelVariant:m,descVariant:y,textAlign:b,nested:0})})),w&&o.createElement(Hc,{store:W,errorMessages:z||{},translations:j||{}})),o.createElement(be,null)))};$c.propTypes={id:m.string.isRequired,variant:m.oneOf(["card","block"]),inputVariant:m.oneOf(["standard","filled","outlined"]),textAlign:m.oneOf(["left","center","right"]),groupLabelVariant:m.oneOf(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),groupDescVariant:m.oneOf(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),disabled:m.bool,readOnly:m.bool,submitOnEnter:m.bool,listErrors:m.bool,schema:m.object.isRequired,data:m.object.isRequired,transientData:m.object,fieldStates:m.object,renderSchema:m.object.isRequired,translations:m.object.isRequired,asyncValidators:m.object,errorMessages:m.object,slots:m.object,slotProps:m.object,fieldSlots:m.object,fieldSlotProps:m.object,renderComponentMap:m.object,obscuredFields:m.array,obscuredGroups:m.array,onSubmit:m.func,onReset:m.func,onStatusUpdate:m.func,onStateChange:m.func,onUnmount:m.func};var Wc=["dirty","hasErrors","required","label","value","variant","options","baererToken","formElement"];function Gc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var Kc=function(e){var c=e.dirty,s=e.hasErrors,f=e.required,d=e.label,h=e.value,m=e.variant,v=e.options,y=e.baererToken,b=e.formElement,x=H(e,Wc),k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=l(),u=a(!1),c=n(u,2),s=c[0],f=c[1],d=a(),h=n(d,2),g=h[0],m=h[1],v=p(r(i.mark((function n(){var r,a;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(e)){n.next=2;break}return n.abrupt("return",m(e));case 2:if("string"==typeof e||"function"==typeof e){n.next=4;break}return n.abrupt("return",m([]));case 4:return r=e,"string"==typeof e&&(r=function(n){return vc(e,{token:t.token,signal:n})}),o.current=new AbortController,m(void 0),f(!0),n.prev=9,n.next=12,r(o.current.signal);case 12:if(a=n.sent,o.current=void 0,Array.isArray(a)){n.next=16;break}throw new Error("autocomplete fetcher returned a non array value");case 16:m(a),n.next=22;break;case 19:n.prev=19,n.t0=n.catch(9),f(!1);case 22:f(!1);case 23:case"end":return n.stop()}}),n,null,[[9,19]])}))),[e,t.token]),y=p((function(){s&&f(!1),o.current&&(o.current.abort(),o.current=void 0)}),[s]);return{loading:s,fetch:v,abort:y,options:g}}(v,{token:y}),w=k.loading,E=k.fetch,O=k.abort,C=k.options;return u((function(){E()}),[]),C?o.createElement(S,{error:c&&s,margin:"dense",fullWidth:!0,required:f},g(b,function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Gc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}({label:d,dirty:c,value:h,variant:m,hasErrors:s,required:f,loading:w,options:C.map((function(e){return{entry:e.entry,label:e.entry,value:e.entry,count:e.count}})),fetch:E,abort:O},x))):o.createElement(S,{error:c&&s,margin:"dense",fullWidth:!0,required:f},o.createElement(j,{label:d,variant:m,value:h,disabled:!0,InputProps:{endAdornment:o.createElement(_,{position:"end"},o.createElement(T,{size:20,thickness:4}))}}))};Kc.propTypes={name:m.string,label:m.string,value:m.any,options:m.oneOfType([m.array,m.string,m.func]).isRequired,baererToken:m.string,allowCreate:m.bool,variant:m.oneOf(["standard","filled","outlined"]),required:m.bool,disabled:m.bool,readOnly:m.bool,dirty:m.bool,hasErrors:m.bool,errors:m.array,onChange:m.func,formElement:m.elementType};var Zc=$((function(e){return{default:{margin:0,userSelect:"none","&.clickable":{cursor:"pointer"}},sharpEdges:{borderRadius:0},spanSolitaryToCard:{margin:-1*e.spacing(2),padding:e.spacing(2)},spanBannerToCard:{marginRight:-1*e.spacing(2),marginLeft:-1*e.spacing(2),padding:e.spacing(2),"&.clickable":{marginTop:e.spacing(1),marginBottom:e.spacing(.5),paddingTop:e.spacing(1.5),paddingRight:e.spacing(2),paddingBottom:e.spacing(1.5),paddingLeft:e.spacing(2)}},checked:{backgroundColor:ie(e.palette.primary.main,.12)},unchecked:{backgroundColor:e.palette.grey[200]}}})),Xc=function(e){var n,r=e.formVariant,i=e.solitary,a=e.name,l=e.value,u=e.defaultValue,c=e.onChange,s=e.readOnly,f=e.checkedLabel,p=e.uncheckedLabel,d=Zc(),h=W(),g=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t}(l,u);return o.createElement(w,{elevation:0,className:Ne(d.default,(n={clickable:!s},t(n,d.spanSolitaryToCard,i&&"card"===r),t(n,d.spanBannerToCard,!i&&"card"===r),t(n,d.sharpEdges,!i),t(n,d.checked,g),t(n,d.unchecked,!g),n)),onClick:function(){s||c({target:{name:a,value:!l}})}},o.createElement(x,{display:"flex",flexDirection:"row",justifyContent:s?"flex-start":"space-between",alignItems:"center"},s&&g&&o.createElement(x,{mr:2,mb:-.5},o.createElement(Q,{fontSize:i?"large":"medium",htmlColor:h.palette.text.secondary})),s&&!g&&o.createElement(x,{mr:2,mb:-.5},o.createElement(Y,{fontSize:i?"large":"medium",htmlColor:h.palette.text.secondary})),g&&o.createElement(k,{variant:i?"h5":"body1",color:s?"textSecondary":"primary"},f),!g&&o.createElement(k,{variant:i?"h5":"body1",color:"textSecondary"},p),!s&&o.createElement(I,{color:"primary",name:a,checked:g,onChange:function(e){var n=e.target.checked;c({target:{name:a,value:n}})}})))};Xc.propTypes={formVariant:m.oneOf(["block","card"]).isRequired,solitary:m.bool,name:m.string.isRequired,value:m.bool,defaultValue:m.bool,onChange:m.func.isRequired,readOnly:m.bool,checkedLabel:m.string.isRequired,uncheckedLabel:m.string.isRequired};export{wc as FormAutoGenerate,nn as FormAutocomplete,un as FormBoolean,$e as FormField,Ic as FormGroupAutoGenerate,Xe as FormNumber,Kc as FormOptionsLoader,Xc as FormPrimaryToggle,cc as FormReadOnlyBoolean,bn as FormReadOnlyField,oc as FormReadOnlyMarkdown,ac as FormReadOnlyNumber,pc as FormReadOnlyRepeater,lc as FormReadOnlySelect,Qe as FormReadOnlyText,pn as FormRepeater,rn as FormSelect,Ge as FormText,$c as FormulatorForm,dc as HiddenData,hc as ReservationExpiredSnackbar,en as SelectOrCreate,Oe as useFormContext,Ce as useFormSelector};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|