@scenid/react-formulator 6.7.0 → 6.8.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/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/helpers/toConsumableArray";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,InputAdornment as E,FormControl as _,FormControlLabel as S,FormHelperText as O,FormGroup as C,Stack as A,TextField as j,Autocomplete as T,CircularProgress as P,MenuItem as F,Checkbox as R,Switch as I,Button as D,IconButton as L,ClickAwayListener as z,List as M,ListItem as N,ListItemText as B,Alert as q,Snackbar as V,Input as U}from"@mui/material";import H from"@mui/styles/makeStyles";import $ from"@babel/runtime/helpers/objectWithoutProperties";import{makeStyles as W,useTheme as G}from"@mui/styles";import{Autorenew as K,Clear as Z,Add as X,AutoFixHigh as Y,Close as Q,Check as J}from"@mui/icons-material";import ee from"@babel/runtime/helpers/extends";import{DateTime as ne}from"luxon";import te from"@babel/runtime/helpers/typeof";import re,{createFilterOptions as ie}from"@mui/material/Autocomplete";import{alpha as oe}from"@mui/material/styles";var ae=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},le=function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is,i=a((function(){return t(n.getState())})),o=e(i,2),c=o[0],s=o[1],f=l(t);return f.current=t,u((function(){var e=f.current(n.getState());return n.subscribe((function(){var t=f.current(n.getState());r(e,t)||(e=t,s(t))}))}),[n,r]),c},ue=f(null),ce=function(){return c(ue)},se=function(){var e=c(ue);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])},fe=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,t=c(ue);if(!t)throw new Error("useFormSelector must be used within a FormulatorForm");return le(t.store,e,n)},pe=f(void 0),de=function(){return c(pe)};function he(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 ge(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?he(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var me=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):ge(ge({},this.state),e),0===this.batchDepth&&this.notify()}},{key:"batch",value:function(e){this.batchDepth+=1;try{e()}finally{this.batchDepth-=1,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}(),ve=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)))};ve.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 ye=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(ve,{label:n,labelVariant:t,desc:r,descVariant:i,textAlign:a}),l)))};ye.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 be=H((function(e){return{formSectionBlock:{"&:not(:last-child)":{marginBottom:e.spacing(3)}}}})),xe=function(e){var n=e.label,t=e.labelVariant,r=e.desc,i=e.descVariant,a=e.textAlign,l=e.children,u=be();return o.createElement(x,{className:u.formSectionBlock},o.createElement(ve,{label:n,labelVariant:t,desc:r,descVariant:i,textAlign:a}),l)};xe.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 ke="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function we(e){var n={exports:{}};return e(n,n.exports),n.exports
1
+ import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/helpers/toConsumableArray";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,InputAdornment as E,FormControl as _,FormControlLabel as S,FormHelperText as O,FormGroup as C,Stack as A,TextField as j,Autocomplete as T,CircularProgress as P,MenuItem as F,Checkbox as R,Switch as I,Button as D,IconButton as L,ClickAwayListener as z,List as M,ListItem as N,ListItemText as B,Alert as q,Snackbar as V,Input as U,Card as H}from"@mui/material";import $ from"@mui/styles/makeStyles";import W from"@babel/runtime/helpers/objectWithoutProperties";import{makeStyles as G,useTheme as K}from"@mui/styles";import{Autorenew as Z,Clear as X,Add as Y,AutoFixHigh as Q,Close as J,AttachFile as ee,Image as ne,PictureAsPdf as te,VideoFile as re,AudioFile as ie,Description as oe,Check as ae}from"@mui/icons-material";import le from"@babel/runtime/helpers/extends";import{DateTime as ue}from"luxon";import ce from"@babel/runtime/helpers/typeof";import se,{createFilterOptions as fe}from"@mui/material/Autocomplete";import{alpha as pe}from"@mui/material/styles";var de=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},he=function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.is,i=a((function(){return t(n.getState())})),o=e(i,2),c=o[0],s=o[1],f=l(t);return f.current=t,u((function(){var e=f.current(n.getState());return n.subscribe((function(){var t=f.current(n.getState());r(e,t)||(e=t,s(t))}))}),[n,r]),c},ge=f(null),me=function(){return c(ge)},ve=function(){var e=c(ge);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])},ye=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,t=c(ge);if(!t)throw new Error("useFormSelector must be used within a FormulatorForm");return he(t.store,e,n)},be=f(void 0),xe=function(){return c(be)};function ke(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 we(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ke(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Ee=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):we(we({},this.state),e),0===this.batchDepth&&this.notify()}},{key:"batch",value:function(e){this.batchDepth+=1;try{e()}finally{this.batchDepth-=1,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}(),_e=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)))};_e.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 Se=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(_e,{label:n,labelVariant:t,desc:r,descVariant:i,textAlign:a}),l)))};Se.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 Oe=$((function(e){return{formSectionBlock:{"&:not(:last-child)":{marginBottom:e.spacing(3)}}}})),Ce=function(e){var n=e.label,t=e.labelVariant,r=e.desc,i=e.descVariant,a=e.textAlign,l=e.children,u=Oe();return o.createElement(x,{className:u.formSectionBlock},o.createElement(_e,{label:n,labelVariant:t,desc:r,descVariant:i,textAlign:a}),l)};Ce.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 Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function je(e){var n={exports:{}};return e(n,n.exports),n.exports
2
2
  /*!
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */}var Ee=we((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}()}));function _e(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 Se(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?_e(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Oe=W((function(e){return{error:{color:e.palette.error.main}}})),Ce=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=Oe(),w=Se(Se({name:l,label:u,defaultValue:f,value:p,options:d,required:m,disabled:v},s),{},{onChange:x}),C="@@render"===a;if(y&&(w.endAdornment=[o.createElement(E,{position:"end"},o.createElement(K,null))]),C)try{var A=c.props||{};n=o.cloneElement(c,Se(Se(Se({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{var j="boolean"===a;n=o.createElement(c,Se(Se({variant:r},w),j?{formVariant:i}:{}))}catch(e){throw new Error('error creating control for field "'.concat(l,'": ').concat(e.message))}var T="boolean"===a,P=T&&"buttons"===w.variant,F="array"===a;return F||C?n:o.createElement(_,{className:"data-card-field",size:w.size,error:b&&h,variant:r,margin:"dense",fullWidth:!0,required:m},T&&!P&&o.createElement(S,{className:Ee(t({},k.error,b&&h)),control:n,label:u,labelPlacement:w.labelPlacement||"end"}),(!T&&!F&&!C||P)&&n,b&&!v&&h&&o.createElement(O,null,g.map((function(e){return e.message})).join(". ")))};Ce.propTypes={variant:m.oneOf(["standard","filled","outlined"]),formVariant:m.oneOf(["block","card"]),component:m.oneOfType([m.elementType,m.element]).isRequired,componentProps:m.shape({}),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.arrayOf(m.any),m.shape({})]),value:m.oneOfType([m.string,m.number,m.bool,m.arrayOf(m.any),m.shape({})]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})),hasErrors:m.bool,errors:m.arrayOf(m.shape({})),validating:m.bool,dirty:m.bool,required:m.bool,disabled:m.bool,onChange:m.func.isRequired};var Ae=["prepend","append","componentProps"];function je(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 Te=function(e){var n=e.prepend,r=e.append,i=e.componentProps,a=$(e,Ae),l=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?je(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}({componentProps:i},a);return"hidden"===(null==i?void 0:i.type)?o.createElement("input",{type:"hidden",name:a.name,value:a.value}):o.createElement(C,null,n,o.createElement(Ce,l),r)};Te.propTypes={variant:m.oneOf(["standard","filled","outlined"]),component:m.oneOfType([m.elementType,m.element]).isRequired,componentProps:m.shape({}),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.arrayOf(m.any),m.shape({})]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})),prepend:m.arrayOf(m.element),append:m.arrayOf(m.element),hasErrors:m.bool,errors:m.arrayOf(m.shape({})),validating:m.bool,required:m.bool,dirty:m.bool,onChange:m.func.isRequired};var Pe=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)}})))};Pe.propTypes={type:m.string,name:m.string,label:m.string,variant:m.string,value:m.shape({start:m.string,end:m.string}),defaultValue:m.string,required:m.bool,loading:m.bool,disabled:m.bool,onChange:m.func};var Fe=function(e){var n=e.type,t=e.name,r=e.label,i=e.variant,a=e.size,l=e.value,u=e.defaultValue,c=e.multiline,s=e.minRows,f=e.range,p=e.placeholder,d=e.required,h=e.loading,g=e.disabled,m=e.onChange,v={};return"date"!==n&&"datetime-local"!==n||(v.InputLabelProps={shrink:!0}),f?o.createElement(Pe,{type:n,name:t,label:r,variant:i,value:l||u||"",required:d,disabled:g||h,onChange:m||function(){}}):o.createElement(j,ee({type:n,name:t,label:r,variant:i,size:a,value:l||u||"",multiline:c,minRows:s,range:f,placeholder:p,required:d,disabled:g||h,onChange:m||function(){}},v))};Fe.propTypes={type:m.string,name:m.string,label:m.string,variant:m.string,size:m.oneOf(["small","medium"]),value:m.string,defaultValue:m.string,multiline:m.bool,minRows:m.number,range:m.bool,placeholder:m.string,required:m.bool,loading:m.bool,disabled:m.bool,onChange:m.func};var Re=function(e,n){return void 0===e||Number.isNaN(e)||""===e?"":n&&!Number.isSafeInteger(n)?parseFloat(e,10):parseInt(e,10)},Ie=["name","value","min","max","step","onChange"],De=function(e){var n=e.name,t=e.value,r=e.min,i=e.max,a=e.step,l=e.onChange,u=$(e,Ie);return o.createElement(j,ee({name:n,type:"number",value:Re(t,a),inputProps:{min:r,max:i,step:a},onChange:function(e){return l({target:{name:n,value:Re(e.target.value,a)}})}},u))};function Le(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 ze(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}De.propTypes={name:m.string.isRequired,min:m.number,max:m.number,step:m.oneOfType([m.number,m.string]),value:m.oneOfType([m.number,m.string]),onChange:m.func.isRequired};var Me=function(n){var t=n.name,c=n.label,f=n.value,d=n.options,h=n.fetchOptions,g=n.allowCreate,m=n.variant,v=n.disabled,y=n.required,b=n.dirty,w=n.hasErrors,S=n.errors,C=n.onChange,A=a(),F=e(A,2),R=F[0],I=F[1],D=a(!1),L=e(D,2),z=L[0],M=L[1],N=l(),B=l("string"==typeof f?f:""),q=p((function(){N.current&&(N.current.abort(),N.current=void 0),M(!1)}),[]),V=p(r(i.mark((function e(){var n,t;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return");case 2:return q(),n=new AbortController,N.current=n,M(!0),e.prev=6,e.next=9,h(n.signal);case 9:t=e.sent,Array.isArray(t)&&I(t),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(6);case 15:M(!1);case 16:case"end":return e.stop()}}),e,null,[[6,13]])}))),[h,q]),U=l(V);U.current=V,u((function(){return U.current(),q}),[q]);var H=s((function(){return R?R.map((function(e){return{entry:e.entry,count:e.count}})):d.map((function(e){return{entry:e.value}}))}),[R,d]),$=p((function(e,n){var r="";"string"==typeof n?r=n:null!=n&&n.entry&&(r=n.entry),B.current=r,C({target:{name:t,value:r}})}),[t,C]);return o.createElement(_,{error:b&&w,margin:"dense",fullWidth:!0,required:y},o.createElement(T,{value:f||"",options:H,freeSolo:g,disabled:v,getOptionLabel:function(e){return"string"==typeof e?e:e.entry||""},isOptionEqualToValue:function(e,n){var t="string"==typeof n?n:(null==n?void 0:n.entry)||"";return e.entry===t},onChange:$,onInputChange:g?function(e,n){B.current=n}:void 0,onOpen:function(){V()},onClose:function(){q()},renderInput:function(e){return o.createElement(j,ee({},e,{label:c,variant:m,required:y,onBlur:g?function(){C({target:{name:t,value:B.current}})}:void 0,InputProps:ze(ze({},e.InputProps),{},{endAdornment:o.createElement(o.Fragment,null,z&&o.createElement(E,{position:"end"},o.createElement(P,{size:16,thickness:4})),!z&&e.InputProps.endAdornment)})}))},renderOption:function(e,n){return o.createElement(x,ee({key:n.entry},e,{sx:{display:"flex",alignItems:"center",gap:1}}),o.createElement(k,{variant:"body1",sx:{flex:1}},n.entry),void 0!==n.count&&o.createElement(k,{variant:"caption",sx:{flexShrink:0}},"".concat(n.count," Einträge")))}}),b&&!v&&w&&o.createElement(O,null,S.map((function(e){return e.message})).join(". ")))};Me.propTypes={name:m.string,label:m.string,value:m.oneOfType([m.string,m.number,m.bool,m.shape({}),m.arrayOf(m.any)]),options:m.arrayOf(m.shape({value:m.string,label:m.string})),fetchOptions:m.func,allowCreate:m.bool,variant:m.oneOf(["standard","filled","outlined"]),required:m.bool,disabled:m.bool,dirty:m.bool,hasErrors:m.bool,errors:m.arrayOf(m.shape({message:m.string})),onChange:m.func},Me.defaultProps={options:[]};var Ne=["name","options","required","defaultValue","value","noSort","onChange"],Be=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=$(e,Ne),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,ee({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)})))};Be.propTypes={name:m.string,defaultValue:m.string,value:m.string,options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number])})),required:m.bool,noSort:m.bool,onChange:m.func};var qe=["type","options","autocomplete","allowNew","fetchOptions"],Ve=function(e){var n=e.type,t=e.options,r=e.autocomplete,i=e.allowNew,a=e.fetchOptions,l=$(e,qe);return!0===r||!0===i?o.createElement(Me,ee({},l,{options:t,fetchOptions:a,allowCreate:!0===i})):o.createElement(Be,ee({type:n,options:t},l))};Ve.propTypes={type:m.string.isRequired,options:m.arrayOf(m.shape({value:m.string})).isRequired,autocomplete:m.bool,allowNew:m.bool,fetchOptions:m.func};var Ue=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},He=function(e){var n=e.variant,t=e.size,r=e.name,i=e.value,a=e.defaultValue,l=e.disabled,u=e.needsToBeTrue,c=e.firstOption,s=e.labelTrue,f=e.labelFalse,p=e.onChange,d=function(e){var n=e.target.checked;!0===u&&!1===n&&(n=void 0),p({target:{name:r,value:n}})},h=function(e){p({target:{name:r,value:e}})};if("checkbox"===n)return o.createElement(R,{color:"primary",size:t,name:r,checked:Ue(i,a),onChange:d});if("buttons"===n){var g=o.createElement(D,{disabled:l,disableElevation:!0,variant:Ue(i,a)?"outlined":"contained",color:Ue(i,a)?"inherit":"primary",sx:{p:0,height:function(e){return e.spacing(7)},flex:" 1 1 auto",mr:!0===c?0:2},onClick:function(){return h(!1)}},f||"Nein"),m=o.createElement(D,{disabled:l,disableElevation:!0,variant:Ue(i,a)?"contained":"outlined",color:Ue(i,a)?"primary":"inherit",sx:{p:0,height:function(e){return e.spacing(7)},flex:" 1 1 auto",mr:!0===c?2:0},onClick:function(){return h(!0)}},s||"Ja");return o.createElement(A,{direction:"row"},!0===c&&o.createElement(o.Fragment,null,m,g),!0!==c&&o.createElement(o.Fragment,null,g,m))}return o.createElement(I,{color:"primary",size:t,name:r,checked:Ue(i,a),onChange:d})};He.propTypes={variant:m.string,size:m.oneOf(["small","medium"]),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 $e=function(t){var r=t.variant,i=t.entries,l=t.options,u=t.blockedOptions,c=t.onChange,s=a(!1),f=e(s,2),p=f[0],d=f[1],h=a(""),g=e(h,2),m=g[0],v=g[1],y=a(""),b=e(y,2),w=b[0],E=b[1],S=function(){d(!1),v(""),E("")},O=function(){m.length>0&&(c([].concat(n(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(e,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=e,(a=l)&&void 0!==a[r]?a[r]:r)),o.createElement(L,{size:"small",onClick:function(){return e=t,(r=n(i)).splice(e,1),void c(r);var e,r}},o.createElement(Z,{fontSize:"small"})));var r,a})),!p&&o.createElement(x,{mt:1},o.createElement(D,{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(z,{onClickAway:function(){""===m&&d(!1)}},o.createElement(_,{variant:"filled",fullWidth:!0},o.createElement(j,{label:"Neuer Eintrag",variant:r,value:m,onKeyDown:function(e){"Enter"===e.key&&O(),"Escape"===e.key&&S()},onChange:function(e){return v(e.target.value)}}))),o.createElement(D,{variant:"outlined",color:"primary",sx:{minWidth:0,px:2},onClick:O},o.createElement(X,null))),p&&l&&o.createElement(x,{width:"100%",display:"flex",alignItems:"stretch",mt:1},o.createElement(_,{variant:"filled",fullWidth:!0},o.createElement(j,{label:"Eintrag auswählen",select:!0,variant:r,value:w,onBlur:S,onChange:function(e){E(""),c([].concat(n(i),[e.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])}))))))};$e.propTypes={variant:m.oneOf(["standard","filled","outlined"]),entries:m.arrayOf(m.string).isRequired,options:m.shape({}).isRequired,blockedOptions:m.arrayOf(m.string).isRequired,onChange:m.func.isRequired};
6
+ */}var Te=je((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}()}));function Pe(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?Pe(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Re=G((function(e){return{error:{color:e.palette.error.main}}})),Ie=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=Re(),w=Fe(Fe({name:l,label:u,defaultValue:f,value:p,options:d,required:m,disabled:v},s),{},{onChange:x}),C="@@render"===a;if(y&&(w.endAdornment=[o.createElement(E,{position:"end"},o.createElement(Z,null))]),C)try{var A=c.props||{};n=o.cloneElement(c,Fe(Fe(Fe({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{var j="boolean"===a;n=o.createElement(c,Fe(Fe({variant:r},w),j?{formVariant:i}:{}))}catch(e){throw new Error('error creating control for field "'.concat(l,'": ').concat(e.message))}var T="boolean"===a,P=T&&"buttons"===w.variant,F="array"===a;return F||C?n:o.createElement(_,{className:"data-card-field",size:w.size,error:b&&h,variant:r,margin:"dense",fullWidth:!0,required:m},T&&!P&&o.createElement(S,{className:Te(t({},k.error,b&&h)),control:n,label:u,labelPlacement:w.labelPlacement||"end"}),(!T&&!F&&!C||P)&&n,b&&!v&&h&&o.createElement(O,null,g.map((function(e){return e.message})).join(". ")))};Ie.propTypes={variant:m.oneOf(["standard","filled","outlined"]),formVariant:m.oneOf(["block","card"]),component:m.oneOfType([m.elementType,m.element]).isRequired,componentProps:m.shape({}),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.arrayOf(m.any),m.shape({})]),value:m.oneOfType([m.string,m.number,m.bool,m.arrayOf(m.any),m.shape({})]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})),hasErrors:m.bool,errors:m.arrayOf(m.shape({})),validating:m.bool,dirty:m.bool,required:m.bool,disabled:m.bool,onChange:m.func.isRequired};var De=["prepend","append","componentProps"];function Le(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 ze=function(e){var n=e.prepend,r=e.append,i=e.componentProps,a=W(e,De),l=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}({componentProps:i},a);return"hidden"===(null==i?void 0:i.type)?o.createElement("input",{type:"hidden",name:a.name,value:a.value}):o.createElement(C,null,n,o.createElement(Ie,l),r)};ze.propTypes={variant:m.oneOf(["standard","filled","outlined"]),component:m.oneOfType([m.elementType,m.element]).isRequired,componentProps:m.shape({}),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.arrayOf(m.any),m.shape({})]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})),prepend:m.arrayOf(m.element),append:m.arrayOf(m.element),hasErrors:m.bool,errors:m.arrayOf(m.shape({})),validating:m.bool,required:m.bool,dirty:m.bool,onChange:m.func.isRequired};var Me=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)}})))};Me.propTypes={type:m.string,name:m.string,label:m.string,variant:m.string,value:m.shape({start:m.string,end:m.string}),defaultValue:m.string,required:m.bool,loading:m.bool,disabled:m.bool,onChange:m.func};var Ne=function(e){var n=e.type,t=e.name,r=e.label,i=e.variant,a=e.size,l=e.value,u=e.defaultValue,c=e.multiline,s=e.minRows,f=e.range,p=e.placeholder,d=e.required,h=e.loading,g=e.disabled,m=e.onChange,v={};return"date"!==n&&"datetime-local"!==n||(v.InputLabelProps={shrink:!0}),f?o.createElement(Me,{type:n,name:t,label:r,variant:i,value:l||u||"",required:d,disabled:g||h,onChange:m||function(){}}):o.createElement(j,le({type:n,name:t,label:r,variant:i,size:a,value:l||u||"",multiline:c,minRows:s,range:f,placeholder:p,required:d,disabled:g||h,onChange:m||function(){}},v))};Ne.propTypes={type:m.string,name:m.string,label:m.string,variant:m.string,size:m.oneOf(["small","medium"]),value:m.string,defaultValue:m.string,multiline:m.bool,minRows:m.number,range:m.bool,placeholder:m.string,required:m.bool,loading:m.bool,disabled:m.bool,onChange:m.func};var Be=function(e,n){return void 0===e||Number.isNaN(e)||""===e?"":n&&!Number.isSafeInteger(n)?parseFloat(e,10):parseInt(e,10)},qe=["name","value","min","max","step","onChange"],Ve=function(e){var n=e.name,t=e.value,r=e.min,i=e.max,a=e.step,l=e.onChange,u=W(e,qe);return o.createElement(j,le({name:n,type:"number",value:Be(t,a),inputProps:{min:r,max:i,step:a},onChange:function(e){return l({target:{name:n,value:Be(e.target.value,a)}})}},u))};function Ue(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 He(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ue(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}Ve.propTypes={name:m.string.isRequired,min:m.number,max:m.number,step:m.oneOfType([m.number,m.string]),value:m.oneOfType([m.number,m.string]),onChange:m.func.isRequired};var $e=function(n){var t=n.name,c=n.label,f=n.value,d=n.options,h=n.fetchOptions,g=n.allowCreate,m=n.variant,v=n.disabled,y=n.required,b=n.dirty,w=n.hasErrors,S=n.errors,C=n.onChange,A=a(),F=e(A,2),R=F[0],I=F[1],D=a(!1),L=e(D,2),z=L[0],M=L[1],N=l(),B=l("string"==typeof f?f:""),q=p((function(){N.current&&(N.current.abort(),N.current=void 0),M(!1)}),[]),V=p(r(i.mark((function e(){var n,t;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return");case 2:return q(),n=new AbortController,N.current=n,M(!0),e.prev=6,e.next=9,h(n.signal);case 9:t=e.sent,Array.isArray(t)&&I(t),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(6);case 15:M(!1);case 16:case"end":return e.stop()}}),e,null,[[6,13]])}))),[h,q]),U=l(V);U.current=V,u((function(){return U.current(),q}),[q]);var H=s((function(){return R?R.map((function(e){return{entry:e.entry,count:e.count}})):d.map((function(e){return{entry:e.value}}))}),[R,d]),$=p((function(e,n){var r="";"string"==typeof n?r=n:null!=n&&n.entry&&(r=n.entry),B.current=r,C({target:{name:t,value:r}})}),[t,C]);return o.createElement(_,{error:b&&w,margin:"dense",fullWidth:!0,required:y},o.createElement(T,{value:f||"",options:H,freeSolo:g,disabled:v,getOptionLabel:function(e){return"string"==typeof e?e:e.entry||""},isOptionEqualToValue:function(e,n){var t="string"==typeof n?n:(null==n?void 0:n.entry)||"";return e.entry===t},onChange:$,onInputChange:g?function(e,n){B.current=n}:void 0,onOpen:function(){V()},onClose:function(){q()},renderInput:function(e){return o.createElement(j,le({},e,{label:c,variant:m,required:y,onBlur:g?function(){C({target:{name:t,value:B.current}})}:void 0,InputProps:He(He({},e.InputProps),{},{endAdornment:o.createElement(o.Fragment,null,z&&o.createElement(E,{position:"end"},o.createElement(P,{size:16,thickness:4})),!z&&e.InputProps.endAdornment)})}))},renderOption:function(e,n){return o.createElement(x,le({key:n.entry},e,{sx:{display:"flex",alignItems:"center",gap:1}}),o.createElement(k,{variant:"body1",sx:{flex:1}},n.entry),void 0!==n.count&&o.createElement(k,{variant:"caption",sx:{flexShrink:0}},"".concat(n.count," Einträge")))}}),b&&!v&&w&&o.createElement(O,null,S.map((function(e){return e.message})).join(". ")))};$e.propTypes={name:m.string,label:m.string,value:m.oneOfType([m.string,m.number,m.bool,m.shape({}),m.arrayOf(m.any)]),options:m.arrayOf(m.shape({value:m.string,label:m.string})),fetchOptions:m.func,allowCreate:m.bool,variant:m.oneOf(["standard","filled","outlined"]),required:m.bool,disabled:m.bool,dirty:m.bool,hasErrors:m.bool,errors:m.arrayOf(m.shape({message:m.string})),onChange:m.func},$e.defaultProps={options:[]};var We=["name","options","required","defaultValue","value","noSort","onChange"],Ge=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=W(e,We),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,le({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)})))};Ge.propTypes={name:m.string,defaultValue:m.string,value:m.string,options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number])})),required:m.bool,noSort:m.bool,onChange:m.func};var Ke=["type","options","autocomplete","allowNew","fetchOptions"],Ze=function(e){var n=e.type,t=e.options,r=e.autocomplete,i=e.allowNew,a=e.fetchOptions,l=W(e,Ke);return!0===r||!0===i?o.createElement($e,le({},l,{options:t,fetchOptions:a,allowCreate:!0===i})):o.createElement(Ge,le({type:n,options:t},l))};Ze.propTypes={type:m.string.isRequired,options:m.arrayOf(m.shape({value:m.string})).isRequired,autocomplete:m.bool,allowNew:m.bool,fetchOptions:m.func};var Xe=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},Ye=function(e){var n=e.variant,t=e.size,r=e.name,i=e.value,a=e.defaultValue,l=e.disabled,u=e.needsToBeTrue,c=e.firstOption,s=e.labelTrue,f=e.labelFalse,p=e.onChange,d=function(e){var n=e.target.checked;!0===u&&!1===n&&(n=void 0),p({target:{name:r,value:n}})},h=function(e){p({target:{name:r,value:e}})};if("checkbox"===n)return o.createElement(R,{color:"primary",size:t,name:r,checked:Xe(i,a),onChange:d});if("buttons"===n){var g=o.createElement(D,{disabled:l,disableElevation:!0,variant:Xe(i,a)?"outlined":"contained",color:Xe(i,a)?"inherit":"primary",sx:{p:0,height:function(e){return e.spacing(7)},flex:" 1 1 auto",mr:!0===c?0:2},onClick:function(){return h(!1)}},f||"Nein"),m=o.createElement(D,{disabled:l,disableElevation:!0,variant:Xe(i,a)?"contained":"outlined",color:Xe(i,a)?"primary":"inherit",sx:{p:0,height:function(e){return e.spacing(7)},flex:" 1 1 auto",mr:!0===c?2:0},onClick:function(){return h(!0)}},s||"Ja");return o.createElement(A,{direction:"row"},!0===c&&o.createElement(o.Fragment,null,m,g),!0!==c&&o.createElement(o.Fragment,null,g,m))}return o.createElement(I,{color:"primary",size:t,name:r,checked:Xe(i,a),onChange:d})};Ye.propTypes={variant:m.string,size:m.oneOf(["small","medium"]),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 Qe=function(t){var r=t.variant,i=t.entries,l=t.options,u=t.blockedOptions,c=t.onChange,s=a(!1),f=e(s,2),p=f[0],d=f[1],h=a(""),g=e(h,2),m=g[0],v=g[1],y=a(""),b=e(y,2),w=b[0],E=b[1],S=function(){d(!1),v(""),E("")},O=function(){m.length>0&&(c([].concat(n(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(e,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=e,(a=l)&&void 0!==a[r]?a[r]:r)),o.createElement(L,{size:"small",onClick:function(){return e=t,(r=n(i)).splice(e,1),void c(r);var e,r}},o.createElement(X,{fontSize:"small"})));var r,a})),!p&&o.createElement(x,{mt:1},o.createElement(D,{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(z,{onClickAway:function(){""===m&&d(!1)}},o.createElement(_,{variant:"filled",fullWidth:!0},o.createElement(j,{label:"Neuer Eintrag",variant:r,value:m,onKeyDown:function(e){"Enter"===e.key&&O(),"Escape"===e.key&&S()},onChange:function(e){return v(e.target.value)}}))),o.createElement(D,{variant:"outlined",color:"primary",sx:{minWidth:0,px:2},onClick:O},o.createElement(Y,null))),p&&l&&o.createElement(x,{width:"100%",display:"flex",alignItems:"stretch",mt:1},o.createElement(_,{variant:"filled",fullWidth:!0},o.createElement(j,{label:"Eintrag auswählen",select:!0,variant:r,value:w,onBlur:S,onChange:function(e){E(""),c([].concat(n(i),[e.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])}))))))};Qe.propTypes={variant:m.oneOf(["standard","filled","outlined"]),entries:m.arrayOf(m.string).isRequired,options:m.shape({}).isRequired,blockedOptions:m.arrayOf(m.string).isRequired,onChange:m.func.isRequired};
7
7
  /**
8
8
  * @license
9
9
  * Lodash <https://lodash.com/>
@@ -12,14 +12,14 @@ import e from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime
12
12
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
13
13
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
14
14
  */
15
- var We=we((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]",P="[object WeakMap]",F="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",D="[object Float64Array]",L="[object Int8Array]",z="[object Int16Array]",M="[object Int32Array]",N="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",V="[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=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",je="\\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",Te="['’]",Pe="["+Ee+"]",Fe="["+je+"]",Re="["+_e+"]",Ie="\\d+",De="["+Se+"]",Le="["+Oe+"]",ze="[^"+Ee+je+Ie+Se+Oe+Ce+"]",Me="\\ud83c[\\udffb-\\udfff]",Ne="[^"+Ee+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Ce+"]",Ue="\\u200d",He="(?:"+Le+"|"+ze+")",$e="(?:"+Ve+"|"+ze+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Re+"|"+Me+")"+"?",Ze="["+Ae+"]?",Xe=Ze+Ke+("(?:"+Ue+"(?:"+[Ne,Be,qe].join("|")+")"+Ze+Ke+")*"),Ye="(?:"+[De,Be,qe].join("|")+")"+Xe,Qe="(?:"+[Ne+Re+"?",Re,Be,qe,Pe].join("|")+")",Je=RegExp(Te,"g"),en=RegExp(Re,"g"),nn=RegExp(Me+"(?="+Me+")|"+Qe+Xe,"g"),tn=RegExp([Ve+"?"+Le+"+"+We+"(?="+[Fe,Ve,"$"].join("|")+")",$e+"+"+Ge+"(?="+[Fe,Ve+He,"$"].join("|")+")",Ve+"?"+He+"+"+We,Ve+"+"+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+Ee+_e+Ae+"]"),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[I]=un[D]=un[L]=un[z]=un[M]=un[N]=un[B]=un[q]=un[V]=!0,un[m]=un[v]=un[F]=un[y]=un[R]=un[b]=un[x]=un[k]=un[E]=un[_]=un[S]=un[C]=un[A]=un[j]=un[P]=!1;var cn={};cn[m]=cn[v]=cn[F]=cn[R]=cn[y]=cn[b]=cn[I]=cn[D]=cn[L]=cn[z]=cn[M]=cn[E]=cn[_]=cn[S]=cn[C]=cn[A]=cn[j]=cn[T]=cn[N]=cn[B]=cn[q]=cn[V]=!0,cn[x]=cn[k]=cn[P]=!1;var sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fn=parseFloat,pn=parseInt,dn="object"==typeof ke&&ke&&ke.Object===Object&&ke,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 Pn(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 Fn(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 Rn(e,n){return!!(null==e?0:e.length)&&Un(e,n,0)>-1}function In(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 zn(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 Mn(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 qn(e,n,t){var r;return t(e,(function(e,t,i){if(n(e,t,i))return r=t,!1})),r}function Vn(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):Vn(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({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});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({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vt=function e(n){var oe,ke=(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,Pe=ke.prototype,Fe=Se.prototype,Re=Ce.prototype,Ie=n["__core-js_shared__"],De=Fe.toString,Le=Re.hasOwnProperty,ze=0,Me=(oe=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Ne=Re.toString,Be=De.call(Ce),qe=gn._,Ve=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=Re.propertyIsEnumerable,Xe=Pe.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=Pe.join,yt=ct(Ce.keys,Ce),bt=Oe.max,xt=Oe.min,kt=Ee.now,wt=n.parseInt,Et=Oe.random,_t=Pe.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"),Pt=jt&&new jt,Ft={},Rt=No(St),It=No(Ot),Dt=No(Ct),Lt=No(At),zt=No(jt),Mt=He?He.prototype:t,Nt=Mt?Mt.valueOf:t,Bt=Mt?Mt.toString:t;function qt(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 Vt=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&&!qa(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)&&qa(i,r)&&(r!==t||n in e)||ar(e,n,r)}function rr(e,n){for(var t=e.length;t--;)if(qa(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&&Pi(n,Fl(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=ke(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 Pi(e,go(e),n)}(e,function(e,n){return e&&Pi(n,Rl(n),e)}(l,e)):function(e,n){return Pi(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 F:return Si(e);case y:case b:return new r(+e);case R:return function(e,n){var t=n?Si(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,t);case I:case D:case L:case z:case M:case N:case B:case q:case V: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?Rl:Fl)(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 Fo((function(){e.apply(t,i)}),n)}function pr(e,n,t,r){var i=-1,o=Rn,a=!0,l=e.length,u=[],c=n.length;if(!l)return u;t&&(n=Dn(n,Jn(t))),r?(o=In,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}qt.templateSettings={escape:X,evaluate:Y,interpolate:Q,variable:"",imports:{_:qt}},qt.prototype=Ut.prototype,qt.prototype.constructor=qt,Ht.prototype=Vt(Ut.prototype),Ht.prototype.constructor=Ht,$t.prototype=Vt(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=Ii(kr),hr=Ii(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,Fl)}function wr(e,n){return e&&xr(e,n,Fl)}function Er(e,n){return Fn(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[Mo(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?In:Rn,o=e[0].length,a=e.length,l=a,u=ke(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 Pr(e,n,r){var i=null==(e=jo(e,n=xi(n,e)))?e:e[Mo(Yo(n))];return null==i?t:Cn(i,e,r)}function Fr(e){return tl(e)&&Or(e)==m}function Rr(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 R:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case F:return!(e.byteLength!=n.byteLength||!o(new $e(e),new $e(n)));case y:case b:case _:return qa(+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,Rr,o))}function Ir(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?Rr(f,s,3,i,p):d))return!1}}return!0}function Dr(e){return!(!nl(e)||(n=e,Me&&Me in n))&&(Qa(e)?Ve:me).test(No(e));var n}function Lr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?$a(e)?Vr(e[0],e[1]):qr(e):du(e)}function zr(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 Mr(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)?ke(e.length):[];return dr(e,(function(e,i,o){r[++t]=n(e,i,o)})),r}function qr(e){var n=fo(e);return 1==n.length&&n[0][2]?Co(n[0][0],n[0][1]):function(t){return t===e||Ir(t,e,n)}}function Vr(e,n){return wo(e)&&Oo(n)?Co(Mo(e),n):function(r){var i=Cl(r,e);return i===t&&i===n?Al(r,e):Rr(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)}}),Rl)}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 Ro(Ao(e,n,iu),e+"")}function Qr(e){return Qt(ql(e))}function Jr(e,n){var t=ql(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=Mo(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=Pt?function(e,n){return Pt.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(ql(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=ke(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||!qa(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=Rn,o=e.length,a=!0,l=[],u=l;if(t)a=!1,i=In;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){var t=-1,r=(n=xi(n,e)).length;if(!r)return!0;for(var i=null==e||"object"!=typeof e&&"function"!=typeof e;++t<r;){var o=n[t];if("string"==typeof o){if("__proto__"===o&&!Le.call(e,"__proto__"))return!1;if("constructor"===o&&t+1<r&&"string"==typeof n[t+1]&&"prototype"===n[t+1]){if(i&&0===t)continue;return!1}}}var a=jo(e,n);return null==a||delete a[Mo(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()),zn(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=ke(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]:zo(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=ke(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=ke(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=ke(r));++t<r;)n[t]=e[t];return n}function Pi(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 Fi(e,n){return function(t,r){var i=$a(t)?An:ir,o=n?n():{};return i(t,e,co(r,2),o)}}function Ri(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 Ii(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 zi(e){return function(n){return zn(Ql(Hl(n).replace(Je,"")),e,"")}}function Mi(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=Vt(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=Fl(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 qi(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:Mi(e);return function c(){for(var y=arguments.length,b=ke(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,qi,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||Mi(S)),S.apply(_,b)}}function Vi(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=ke(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)&&Po(g,h),g.placeholder=i,Io(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=Mi(e);return function o(){for(var a=arguments.length,l=ke(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,qi,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?qi.apply(t,k):function(e,n,t,r){var i=1&n,o=Mi(e);return function n(){for(var a=-1,l=arguments.length,u=-1,c=r.length,s=ke(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=Mi(e);return function n(){return(this&&this!==gn&&this instanceof n?i:e).apply(r?t:this,arguments)}}(e,n,i);return Io((x?ni:Po)(w,k),e,n)}function Ji(e,n,r,i){return e===t||qa(e,Re[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 Ro(Ao(e,t,Wo),e+"")}function io(e){return Sr(e,Fl,ho)}function oo(e){return Sr(e,Rl,go)}var ao=Pt?function(e){return Pt.get(e)}:cu;function lo(e){for(var n=e.name+"",t=Ft[n],r=Le.call(Ft,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(qt,"placeholder")?qt:e).placeholder}function co(){var e=qt.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=Fl(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),Fn(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=Mo(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)?{}:Vt(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)&&qa(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=qt[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)))!=R||Ot&&mo(new Ot)!=E||Ct&&mo(Ct.resolve())!=O||At&&mo(new At)!=A||jt&&mo(new jt)!=P)&&(mo=function(e){var n=Or(e),r=n==S?e.constructor:t,i=r?No(r):"";if(i)switch(i){case Rt:return R;case It:return E;case Dt:return O;case Lt:return A;case zt:return P}return n});var _o=Ie?Qa:vu;function So(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||Re)}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=ke(o);++i<o;)a[i]=t[n+i];i=-1;for(var l=ke(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 Po=Do(ni),Fo=hn||function(e,n){return gn.setTimeout(e,n)},Ro=Do(ti);function Io(e,n,t){var r=n+"";return Ro(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]&&!Rn(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 zo=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 Mo(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 qo=Yr((function(e,n){return Ka(e)?pr(e,yr(n,1,Ka,!0)):[]})),Vo=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)),Vn(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)),Vn(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=Fn(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(Fn(e,Ka))})),ca=Yr((function(e){var n=Yo(e);return Ka(n)&&(n=t),mi(Fn(e,Ka),co(n,2))})),sa=Yr((function(e){var n=Yo(e);return n="function"==typeof n?n:t,mi(Fn(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=qt(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=Fi((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=Fi((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)?ke(e.length):[];return dr(e,(function(e){o[++r]=i?Cn(n,e,t):Pr(e,n,t)})),o})),Ea=Fi((function(e,n,t){ar(e,t,n)}));function _a(e,n){return($a(e)?Dn:Br)(e,co(n,3))}var Sa=Fi((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)})),Pa=Yr((function(e,n,t){var r=3;if(t.length){var i=st(t,uo(Pa));r|=l}return Qi(n,r,e,t,i)}));function Fa(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=Fo(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=Fo(v,n),p?g(e):u}(s);if(d)return Ei(c),c=Fo(v,n),g(s)}return c===t&&(c=Fo(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 Ra=Yr((function(e,n){return fr(e,1,n)})),Ia=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 za=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)}))})),Ma=Yr((function(e,n){var r=st(n,uo(Ma));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 qa(e,n){return e===n||e!=e&&n!=n}var Va=Gi(Cr),Ua=Gi((function(e,n){return e>=n})),Ha=Fr(function(){return arguments}())?Fr:function(e){return tl(e)&&Le.call(e,"callee")&&!Ze.call(e,"callee")},$a=ke.isArray,Wa=kn?Jn(kn):function(e){return tl(e)&&Or(e)==F};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:ql)(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 Pi(e,Rl(e))}function bl(e){return null==e?"":si(e)}var xl=Ri((function(e,n){if(So(n)||Ga(n))Pi(n,Fl(n),e);else for(var t in n)Le.call(n,t)&&tr(e,t,n[t])})),kl=Ri((function(e,n){Pi(n,Rl(n),e)})),wl=Ri((function(e,n,t,r){Pi(n,Rl(n),e,r)})),El=Ri((function(e,n,t,r){Pi(n,Fl(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=Rl(a),u=-1,c=l.length;++u<c;){var s=l[u],f=e[s];(f===t||qa(f,Re[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=Vi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Ne.call(n)),e[n]=t}),nu(iu)),Tl=Vi((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),Pl=Yr(Pr);function Fl(e){return Ga(e)?Yt(e):zr(e)}function Rl(e){return Ga(e)?Yt(e,!0):Mr(e)}var Il=Ri((function(e,n,t){Ur(e,n,t)})),Dl=Ri((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})),Pi(e,oo(e),t),r&&(t=cr(t,7,no));for(var i=n.length;i--;)pi(t,n[i]);return t}));var zl=ro((function(e,n){return null==e?{}:function(e,n){return Wr(e,n,(function(n,t){return Al(e,t)}))}(e,n)}));function Ml(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(Fl),Bl=Yi(Rl);function ql(e){return null==e?[]:et(e,Fl(e))}var Vl=zi((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=zi((function(e,n,t){return e+(t?"-":"")+n.toLowerCase()})),Wl=zi((function(e,n,t){return e+(t?" ":"")+n.toLowerCase()})),Gl=Li("toLowerCase");var Kl=zi((function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}));var Zl=zi((function(e,n,t){return e+(t?" ":"")+Yl(n)}));var Xl=zi((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=Mo(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 Pr(t,e,n)}})),lu=Yr((function(e,n){return function(t){return Pr(e,t,n)}}));function uu(e,n,t){var r=Fl(n),i=Er(n,r);null!=t||nl(n)&&(i.length||!r.length)||(t=n,n=e,e=this,i=Er(n,Fl(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(Pn),pu=Hi(Nn);function du(e){return wo(e)?Gn(Mo(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 qt.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)}},qt.ary=Aa,qt.assign=xl,qt.assignIn=kl,qt.assignInWith=wl,qt.assignWith=El,qt.at=_l,qt.before=ja,qt.bind=Ta,qt.bindAll=eu,qt.bindKey=Pa,qt.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},qt.chain=da,qt.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=ke(mn(i/n));o<i;)l[a++]=ii(e,o,o+=n);return l},qt.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},qt.concat=function(){var e=arguments.length;if(!e)return[];for(var n=ke(e-1),t=arguments[0],r=e;r--;)n[r-1]=arguments[r];return Ln($a(t)?Ti(t):[t],yr(n,1))},qt.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)}}))},qt.conforms=function(e){return function(e){var n=Fl(e);return function(t){return sr(t,e,n)}}(cr(e,1))},qt.constant=nu,qt.countBy=ma,qt.create=function(e,n){var t=Vt(e);return null==n?t:or(t,n)},qt.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},qt.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},qt.debounce=Fa,qt.defaults=Sl,qt.defaultsDeep=Ol,qt.defer=Ra,qt.delay=Ia,qt.difference=qo,qt.differenceBy=Vo,qt.differenceWith=Uo,qt.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):[]},qt.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):[]},qt.dropRightWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!0,!0):[]},qt.dropWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!0):[]},qt.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)):[]},qt.filter=function(e,n){return($a(e)?Fn:vr)(e,co(n,3))},qt.flatMap=function(e,n){return yr(_a(e,n),1)},qt.flatMapDeep=function(e,n){return yr(_a(e,n),f)},qt.flatMapDepth=function(e,n,r){return r=r===t?1:gl(r),yr(_a(e,n),r)},qt.flatten=Wo,qt.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},qt.flattenDepth=function(e,n){return(null==e?0:e.length)?yr(e,n=n===t?1:gl(n)):[]},qt.flip=function(e){return Qi(e,512)},qt.flow=tu,qt.flowRight=ru,qt.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},qt.functions=function(e){return null==e?[]:Er(e,Fl(e))},qt.functionsIn=function(e){return null==e?[]:Er(e,Rl(e))},qt.groupBy=ka,qt.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},qt.intersection=Ko,qt.intersectionBy=Zo,qt.intersectionWith=Xo,qt.invert=jl,qt.invertBy=Tl,qt.invokeMap=wa,qt.iteratee=ou,qt.keyBy=Ea,qt.keys=Fl,qt.keysIn=Rl,qt.map=_a,qt.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},qt.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},qt.matches=function(e){return qr(cr(e,1))},qt.matchesProperty=function(e,n){return Vr(e,cr(n,1))},qt.memoize=Da,qt.merge=Il,qt.mergeWith=Dl,qt.method=au,qt.methodOf=lu,qt.mixin=uu,qt.negate=La,qt.nthArg=function(e){return e=gl(e),Yr((function(n){return Hr(n,e)}))},qt.omit=Ll,qt.omitBy=function(e,n){return Ml(e,La(co(n)))},qt.once=function(e){return ja(2,e)},qt.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))},qt.over=su,qt.overArgs=za,qt.overEvery=fu,qt.overSome=pu,qt.partial=Ma,qt.partialRight=Na,qt.partition=Sa,qt.pick=zl,qt.pickBy=Ml,qt.property=du,qt.propertyOf=function(e){return function(n){return null==e?t:_r(e,n)}},qt.pull=Qo,qt.pullAll=Jo,qt.pullAllBy=function(e,n,t){return e&&e.length&&n&&n.length?Gr(e,n,co(t,2)):e},qt.pullAllWith=function(e,n,r){return e&&e.length&&n&&n.length?Gr(e,n,t,r):e},qt.pullAt=ea,qt.range=hu,qt.rangeRight=gu,qt.rearg=Ba,qt.reject=function(e,n){return($a(e)?Fn:vr)(e,La(co(n,3)))},qt.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},qt.rest=function(e,n){if("function"!=typeof e)throw new Te(r);return Yr(e,n=n===t?n:gl(n))},qt.reverse=na,qt.sampleSize=function(e,n,r){return n=(r?ko(e,n,r):n===t)?1:gl(n),($a(e)?Jt:Jr)(e,n)},qt.set=function(e,n,t){return null==e?e:ei(e,n,t)},qt.setWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:ei(e,n,r,i)},qt.shuffle=function(e){return($a(e)?er:ri)(e)},qt.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)):[]},qt.sortBy=Oa,qt.sortedUniq=function(e){return e&&e.length?ui(e):[]},qt.sortedUniqBy=function(e,n){return e&&e.length?ui(e,co(n,2)):[]},qt.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))&&lt(e)?wi(ht(e),0,r):e.split(n,r):[]},qt.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)}))},qt.tail=function(e){var n=null==e?0:e.length;return n?ii(e,1,n):[]},qt.take=function(e,n,r){return e&&e.length?ii(e,0,(n=r||n===t?1:gl(n))<0?0:n):[]},qt.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):[]},qt.takeRightWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!1,!0):[]},qt.takeWhile=function(e,n){return e&&e.length?hi(e,co(n,3)):[]},qt.tap=function(e,n){return n(e),e},qt.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),Fa(e,n,{leading:i,maxWait:n,trailing:o})},qt.thru=ha,qt.toArray=dl,qt.toPairs=Nl,qt.toPairsIn=Bl,qt.toPath=function(e){return $a(e)?Dn(e,Mo):cl(e)?[e]:Ti(zo(bl(e)))},qt.toPlainObject=yl,qt.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)?Vt(Ge(e)):{}}return(i?jn:kr)(e,(function(e,r,i){return n(t,e,r,i)})),t},qt.unary=function(e){return Aa(e,1)},qt.union=ta,qt.unionBy=ra,qt.unionWith=ia,qt.uniq=function(e){return e&&e.length?fi(e):[]},qt.uniqBy=function(e,n){return e&&e.length?fi(e,co(n,2)):[]},qt.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?fi(e,t,n):[]},qt.unset=function(e,n){return null==e||pi(e,n)},qt.unzip=oa,qt.unzipWith=aa,qt.update=function(e,n,t){return null==e?e:di(e,n,bi(t))},qt.updateWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:di(e,n,bi(r),i)},qt.values=ql,qt.valuesIn=function(e){return null==e?[]:et(e,Rl(e))},qt.without=la,qt.words=Ql,qt.wrap=function(e,n){return Ma(bi(n),e)},qt.xor=ua,qt.xorBy=ca,qt.xorWith=sa,qt.zip=fa,qt.zipObject=function(e,n){return vi(e||[],n||[],tr)},qt.zipObjectDeep=function(e,n){return vi(e||[],n||[],ei)},qt.zipWith=pa,qt.entries=Nl,qt.entriesIn=Bl,qt.extend=kl,qt.extendWith=wl,uu(qt,qt),qt.add=yu,qt.attempt=Jl,qt.camelCase=Vl,qt.capitalize=Ul,qt.ceil=bu,qt.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)},qt.clone=function(e){return cr(e,4)},qt.cloneDeep=function(e){return cr(e,5)},qt.cloneDeepWith=function(e,n){return cr(e,5,n="function"==typeof n?n:t)},qt.cloneWith=function(e,n){return cr(e,4,n="function"==typeof n?n:t)},qt.conformsTo=function(e,n){return null==n||sr(e,n,Fl(n))},qt.deburr=Hl,qt.defaultTo=function(e,n){return null==e||e!=e?n:e},qt.divide=xu,qt.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},qt.eq=qa,qt.escape=function(e){return(e=bl(e))&&Z.test(e)?e.replace(G,ot):e},qt.escapeRegExp=function(e){return(e=bl(e))&&re.test(e)?e.replace(te,"\\$&"):e},qt.every=function(e,n,r){var i=$a(e)?Pn:gr;return r&&ko(e,n,r)&&(n=t),i(e,co(n,3))},qt.find=va,qt.findIndex=Ho,qt.findKey=function(e,n){return qn(e,co(n,3),kr)},qt.findLast=ya,qt.findLastIndex=$o,qt.findLastKey=function(e,n){return qn(e,co(n,3),wr)},qt.floor=ku,qt.forEach=ba,qt.forEachRight=xa,qt.forIn=function(e,n){return null==e?e:br(e,co(n,3),Rl)},qt.forInRight=function(e,n){return null==e?e:xr(e,co(n,3),Rl)},qt.forOwn=function(e,n){return e&&kr(e,co(n,3))},qt.forOwnRight=function(e,n){return e&&wr(e,co(n,3))},qt.get=Cl,qt.gt=Va,qt.gte=Ua,qt.has=function(e,n){return null!=e&&vo(e,n,Ar)},qt.hasIn=Al,qt.head=Go,qt.identity=iu,qt.includes=function(e,n,t,r){e=Ga(e)?e:ql(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},qt.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)},qt.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)},qt.invoke=Pl,qt.isArguments=Ha,qt.isArray=$a,qt.isArrayBuffer=Wa,qt.isArrayLike=Ga,qt.isArrayLikeObject=Ka,qt.isBoolean=function(e){return!0===e||!1===e||tl(e)&&Or(e)==y},qt.isBuffer=Za,qt.isDate=Xa,qt.isElement=function(e){return tl(e)&&1===e.nodeType&&!ol(e)},qt.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!zr(e).length;for(var t in e)if(Le.call(e,t))return!1;return!0},qt.isEqual=function(e,n){return Rr(e,n)},qt.isEqualWith=function(e,n,r){var i=(r="function"==typeof r?r:t)?r(e,n):t;return i===t?Rr(e,n,t,r):!!i},qt.isError=Ya,qt.isFinite=function(e){return"number"==typeof e&&Bn(e)},qt.isFunction=Qa,qt.isInteger=Ja,qt.isLength=el,qt.isMap=rl,qt.isMatch=function(e,n){return e===n||Ir(e,n,fo(n))},qt.isMatchWith=function(e,n,r){return r="function"==typeof r?r:t,Ir(e,n,fo(n),r)},qt.isNaN=function(e){return il(e)&&e!=+e},qt.isNative=function(e){if(_o(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},qt.isNil=function(e){return null==e},qt.isNull=function(e){return null===e},qt.isNumber=il,qt.isObject=nl,qt.isObjectLike=tl,qt.isPlainObject=ol,qt.isRegExp=al,qt.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=p},qt.isSet=ll,qt.isString=ul,qt.isSymbol=cl,qt.isTypedArray=sl,qt.isUndefined=function(e){return e===t},qt.isWeakMap=function(e){return tl(e)&&mo(e)==P},qt.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==Or(e)},qt.join=function(e,n){return null==e?"":Kn.call(e,n)},qt.kebabCase=$l,qt.last=Yo,qt.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):Vn(e,$n,o,!0)},qt.lowerCase=Wl,qt.lowerFirst=Gl,qt.lt=fl,qt.lte=pl,qt.max=function(e){return e&&e.length?mr(e,iu,Cr):t},qt.maxBy=function(e,n){return e&&e.length?mr(e,co(n,2),Cr):t},qt.mean=function(e){return Wn(e,iu)},qt.meanBy=function(e,n){return Wn(e,co(n,2))},qt.min=function(e){return e&&e.length?mr(e,iu,Nr):t},qt.minBy=function(e,n){return e&&e.length?mr(e,co(n,2),Nr):t},qt.stubArray=mu,qt.stubFalse=vu,qt.stubObject=function(){return{}},qt.stubString=function(){return""},qt.stubTrue=function(){return!0},qt.multiply=wu,qt.nth=function(e,n){return e&&e.length?Hr(e,gl(n)):t},qt.noConflict=function(){return gn._===this&&(gn._=qe),this},qt.noop=cu,qt.now=Ca,qt.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)},qt.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},qt.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},qt.parseInt=function(e,n,t){return t||null==n?n=0:n&&(n=+n),wt(bl(e).replace(ie,""),n||0)},qt.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)},qt.reduce=function(e,n,t){var r=$a(e)?zn:Zn,i=arguments.length<3;return r(e,co(n,4),t,i,dr)},qt.reduceRight=function(e,n,t){var r=$a(e)?Mn:Zn,i=arguments.length<3;return r(e,co(n,4),t,i,hr)},qt.repeat=function(e,n,r){return n=(r?ko(e,n,r):n===t)?1:gl(n),Xr(bl(e),n)},qt.replace=function(){var e=arguments,n=bl(e[0]);return e.length<3?n:n.replace(e[1],e[2])},qt.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[Mo(n[i])];a===t&&(i=o,a=r),e=Qa(a)?a.call(e):a}return e},qt.round=Eu,qt.runInContext=e,qt.sample=function(e){return($a(e)?Qt:Qr)(e)},qt.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:zr(e).length},qt.snakeCase=Kl,qt.some=function(e,n,r){var i=$a(e)?Nn:oi;return r&&ko(e,n,r)&&(n=t),i(e,co(n,3))},qt.sortedIndex=function(e,n){return ai(e,n)},qt.sortedIndexBy=function(e,n,t){return li(e,n,co(t,2))},qt.sortedIndexOf=function(e,n){var t=null==e?0:e.length;if(t){var r=ai(e,n);if(r<t&&qa(e[r],n))return r}return-1},qt.sortedLastIndex=function(e,n){return ai(e,n,!0)},qt.sortedLastIndexBy=function(e,n,t){return li(e,n,co(t,2),!0)},qt.sortedLastIndexOf=function(e,n){if(null==e?0:e.length){var t=ai(e,n,!0)-1;if(qa(e[t],n))return t}return-1},qt.startCase=Zl,qt.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},qt.subtract=_u,qt.sum=function(e){return e&&e.length?Xn(e,iu):0},qt.sumBy=function(e,n){return e&&e.length?Xn(e,co(n,2)):0},qt.template=function(e,n,r){var i=qt.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=Fl(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(we,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},qt.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},qt.toFinite=hl,qt.toInteger=gl,qt.toLength=ml,qt.toLower=function(e){return bl(e).toLowerCase()},qt.toNumber=vl,qt.toSafeInteger=function(e){return e?ur(gl(e),-9007199254740991,p):0===e?e:0},qt.toString=bl,qt.toUpper=function(e){return bl(e).toUpperCase()},qt.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("")},qt.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("")},qt.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("")},qt.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},qt.unescape=function(e){return(e=bl(e))&&K.test(e)?e.replace(W,mt):e},qt.uniqueId=function(e){var n=++ze;return bl(e)+n},qt.upperCase=Xl,qt.upperFirst=Yl,qt.each=ba,qt.eachRight=xa,qt.first=Go,uu(qt,function(){var e={};return kr(qt,(function(n,t){Le.call(qt.prototype,t)||(e[t]=n)})),e}(),{chain:!1}),qt.VERSION="4.17.23",jn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){qt[e].placeholder=qt})),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 Pr(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=qt[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(qt.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(qt,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=Pe[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);qt.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=qt[n];if(t){var r=t.name+"";Le.call(Ft,r)||(Ft[r]=[]),Ft[r].push({name:n,func:t})}})),Ft[qi(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},qt.prototype.at=ga,qt.prototype.chain=function(){return da(this)},qt.prototype.commit=function(){return new Ht(this.value(),this.__chain__)},qt.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__++]}},qt.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},qt.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)},qt.prototype.toJSON=qt.prototype.valueOf=qt.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},qt.prototype.first=qt.prototype.head,Qe&&(qt.prototype[Qe]=function(){return this}),qt}();vn?((vn.exports=vt)._=vt,mn._=vt):gn._=vt}).call(ke)})),Ge=function(e){var n=e.entries,t=e.options,r=e.blockedOptions,i=e.onChange,a=s((function(){return We.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(D,{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))})))})))};Ge.propTypes={entries:m.arrayOf(m.shape({})).isRequired,options:m.arrayOf(m.shape({})).isRequired,blockedOptions:m.arrayOf(m.shape({})).isRequired,onChange:m.func.isRequired};var Ke=function(n){var t=n.variant,r=n.name,i=n.label,l=n.value,c=n.options,s=n.maxEntries,f=n.optionsAsGrid,p=n.onChange,d=a(l||[]),h=e(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?Ge:$e;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}))};function Ze(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 Xe(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ze(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}Ke.propTypes={variant:m.oneOf(["standard","filled","outlined"]),name:m.string,label:m.string,value:m.oneOfType([m.string,m.number,m.bool,m.shape({}),m.arrayOf(m.any)]),options:m.shape({}),maxEntries:m.number,optionsAsGrid:m.bool,onChange:m.func.isRequired};var Ye=H((function(e){return{readOnlyField:{width:"100%",display:"flex",flexDirection:"column",marginBottom:e.spacing(1.5),"&:last-child":{marginBottom:0}}}})),Qe=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=Xe(Xe({},c),{},{formVariant:t,name:i,label:a,value:s,options:f,required:p,readOnly:!0}),h=Ye(),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))};Qe.propTypes={formVariant:m.oneOf(["block","card"]),component:m.oneOfType([m.elementType,m.element]).isRequired,componentProps:m.shape({}),name:m.string.isRequired,type:m.string.isRequired,label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool,m.arrayOf(m.any)]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})),required:m.bool};var Je=["prepend","append","componentProps"];function en(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 nn=function(e){e.prepend,e.append;var n=e.componentProps,r=$(e,Je),i=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?en(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}({componentProps:n},r);return"hidden"===(null==n?void 0:n.type)?o.createElement("input",{type:"hidden",name:r.name,value:r.value}):o.createElement(Qe,i)};nn.propTypes={component:m.oneOfType([m.elementType,m.element]).isRequired,componentProps:m.shape({}),type:m.string.isRequired,name:m.string.isRequired,label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool,m.arrayOf(m.any)]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})),prepend:m.arrayOf(m.element),append:m.arrayOf(m.element),hasErrors:m.bool,errors:m.arrayOf(m.shape({})),validating:m.bool,required:m.bool,dirty:m.bool};var tn=o.memo(nn),rn=function(e,n){var t=ne.DATETIME_FULL;return n&&(t="string"==typeof n?ne[n]:n),ne.fromISO(e).toLocaleString(t)},on=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(rn((null==n?void 0:n.start)||"",r)," - ").concat(rn((null==n?void 0:n.end)||"",r)):rn(n,r)),o.createElement(k,{variant:"body1",style:{whiteSpace:a?"pre-line":"inherit"}},l)};on.propTypes={value:m.oneOfType([m.number,m.string]),type:m.string,range:m.bool,renderFormat:m.oneOfType([m.string,m.object]),multiline:m.bool};const an=["http","https","mailto","tel"];
15
+ var Je=je((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]",P="[object WeakMap]",F="[object ArrayBuffer]",R="[object DataView]",I="[object Float32Array]",D="[object Float64Array]",L="[object Int8Array]",z="[object Int16Array]",M="[object Int32Array]",N="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",V="[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",je="\\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",Te="['’]",Pe="["+we+"]",Fe="["+je+"]",Re="["+Ee+"]",Ie="\\d+",De="["+_e+"]",Le="["+Se+"]",ze="[^"+we+je+Ie+_e+Se+Oe+"]",Me="\\ud83c[\\udffb-\\udfff]",Ne="[^"+we+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Oe+"]",Ue="\\u200d",He="(?:"+Le+"|"+ze+")",$e="(?:"+Ve+"|"+ze+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Re+"|"+Me+")"+"?",Ze="["+Ce+"]?",Xe=Ze+Ke+("(?:"+Ue+"(?:"+[Ne,Be,qe].join("|")+")"+Ze+Ke+")*"),Ye="(?:"+[De,Be,qe].join("|")+")"+Xe,Qe="(?:"+[Ne+Re+"?",Re,Be,qe,Pe].join("|")+")",Je=RegExp(Te,"g"),en=RegExp(Re,"g"),nn=RegExp(Me+"(?="+Me+")|"+Qe+Xe,"g"),tn=RegExp([Ve+"?"+Le+"+"+We+"(?="+[Fe,Ve,"$"].join("|")+")",$e+"+"+Ge+"(?="+[Fe,Ve+He,"$"].join("|")+")",Ve+"?"+He+"+"+We,Ve+"+"+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[I]=un[D]=un[L]=un[z]=un[M]=un[N]=un[B]=un[q]=un[V]=!0,un[m]=un[v]=un[F]=un[y]=un[R]=un[b]=un[x]=un[k]=un[E]=un[_]=un[S]=un[C]=un[A]=un[j]=un[P]=!1;var cn={};cn[m]=cn[v]=cn[F]=cn[R]=cn[y]=cn[b]=cn[I]=cn[D]=cn[L]=cn[z]=cn[M]=cn[E]=cn[_]=cn[S]=cn[C]=cn[A]=cn[j]=cn[T]=cn[N]=cn[B]=cn[q]=cn[V]=!0,cn[x]=cn[k]=cn[P]=!1;var sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fn=parseFloat,pn=parseInt,dn="object"==typeof Ae&&Ae&&Ae.Object===Object&&Ae,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 Pn(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 Fn(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 Rn(e,n){return!!(null==e?0:e.length)&&Un(e,n,0)>-1}function In(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 zn(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 Mn(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 qn(e,n,t){var r;return t(e,(function(e,t,i){if(n(e,t,i))return r=t,!1})),r}function Vn(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):Vn(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({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});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({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});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,Pe=we.prototype,Fe=Se.prototype,Re=Ce.prototype,Ie=n["__core-js_shared__"],De=Fe.toString,Le=Re.hasOwnProperty,ze=0,Me=(oe=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Ne=Re.toString,Be=De.call(Ce),qe=gn._,Ve=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=Re.propertyIsEnumerable,Xe=Pe.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=Pe.join,yt=ct(Ce.keys,Ce),bt=Oe.max,xt=Oe.min,kt=Ee.now,wt=n.parseInt,Et=Oe.random,_t=Pe.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"),Pt=jt&&new jt,Ft={},Rt=No(St),It=No(Ot),Dt=No(Ct),Lt=No(At),zt=No(jt),Mt=He?He.prototype:t,Nt=Mt?Mt.valueOf:t,Bt=Mt?Mt.toString:t;function qt(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 Vt=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&&!qa(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)&&qa(i,r)&&(r!==t||n in e)||ar(e,n,r)}function rr(e,n){for(var t=e.length;t--;)if(qa(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&&Pi(n,Fl(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 Pi(e,go(e),n)}(e,function(e,n){return e&&Pi(n,Rl(n),e)}(l,e)):function(e,n){return Pi(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 F:return Si(e);case y:case b:return new r(+e);case R:return function(e,n){var t=n?Si(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,t);case I:case D:case L:case z:case M:case N:case B:case q:case V: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?Rl:Fl)(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 Fo((function(){e.apply(t,i)}),n)}function pr(e,n,t,r){var i=-1,o=Rn,a=!0,l=e.length,u=[],c=n.length;if(!l)return u;t&&(n=Dn(n,Jn(t))),r?(o=In,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}qt.templateSettings={escape:X,evaluate:Y,interpolate:Q,variable:"",imports:{_:qt}},qt.prototype=Ut.prototype,qt.prototype.constructor=qt,Ht.prototype=Vt(Ut.prototype),Ht.prototype.constructor=Ht,$t.prototype=Vt(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=Ii(kr),hr=Ii(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,Fl)}function wr(e,n){return e&&xr(e,n,Fl)}function Er(e,n){return Fn(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[Mo(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?In:Rn,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 Pr(e,n,r){var i=null==(e=jo(e,n=xi(n,e)))?e:e[Mo(Yo(n))];return null==i?t:Cn(i,e,r)}function Fr(e){return tl(e)&&Or(e)==m}function Rr(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 R:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case F:return!(e.byteLength!=n.byteLength||!o(new $e(e),new $e(n)));case y:case b:case _:return qa(+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,Rr,o))}function Ir(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?Rr(f,s,3,i,p):d))return!1}}return!0}function Dr(e){return!(!nl(e)||(n=e,Me&&Me in n))&&(Qa(e)?Ve:me).test(No(e));var n}function Lr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?$a(e)?Vr(e[0],e[1]):qr(e):du(e)}function zr(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 Mr(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 qr(e){var n=fo(e);return 1==n.length&&n[0][2]?Co(n[0][0],n[0][1]):function(t){return t===e||Ir(t,e,n)}}function Vr(e,n){return wo(e)&&Oo(n)?Co(Mo(e),n):function(r){var i=Cl(r,e);return i===t&&i===n?Al(r,e):Rr(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)}}),Rl)}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 Ro(Ao(e,n,iu),e+"")}function Qr(e){return Qt(ql(e))}function Jr(e,n){var t=ql(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=Mo(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=Pt?function(e,n){return Pt.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(ql(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||!qa(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=Rn,o=e.length,a=!0,l=[],u=l;if(t)a=!1,i=In;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){var t=-1,r=(n=xi(n,e)).length;if(!r)return!0;for(var i=null==e||"object"!=typeof e&&"function"!=typeof e;++t<r;){var o=n[t];if("string"==typeof o){if("__proto__"===o&&!Le.call(e,"__proto__"))return!1;if("constructor"===o&&t+1<r&&"string"==typeof n[t+1]&&"prototype"===n[t+1]){if(i&&0===t)continue;return!1}}}var a=jo(e,n);return null==a||delete a[Mo(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()),zn(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]:zo(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 Pi(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 Fi(e,n){return function(t,r){var i=$a(t)?An:ir,o=n?n():{};return i(t,e,co(r,2),o)}}function Ri(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 Ii(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 zi(e){return function(n){return zn(Ql(Hl(n).replace(Je,"")),e,"")}}function Mi(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=Vt(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=Fl(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 qi(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:Mi(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,qi,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||Mi(S)),S.apply(_,b)}}function Vi(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)&&Po(g,h),g.placeholder=i,Io(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=Mi(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,qi,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?qi.apply(t,k):function(e,n,t,r){var i=1&n,o=Mi(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=Mi(e);return function n(){return(this&&this!==gn&&this instanceof n?i:e).apply(r?t:this,arguments)}}(e,n,i);return Io((x?ni:Po)(w,k),e,n)}function Ji(e,n,r,i){return e===t||qa(e,Re[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 Ro(Ao(e,t,Wo),e+"")}function io(e){return Sr(e,Fl,ho)}function oo(e){return Sr(e,Rl,go)}var ao=Pt?function(e){return Pt.get(e)}:cu;function lo(e){for(var n=e.name+"",t=Ft[n],r=Le.call(Ft,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(qt,"placeholder")?qt:e).placeholder}function co(){var e=qt.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=Fl(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),Fn(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=Mo(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)?{}:Vt(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)&&qa(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=qt[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)))!=R||Ot&&mo(new Ot)!=E||Ct&&mo(Ct.resolve())!=O||At&&mo(new At)!=A||jt&&mo(new jt)!=P)&&(mo=function(e){var n=Or(e),r=n==S?e.constructor:t,i=r?No(r):"";if(i)switch(i){case Rt:return R;case It:return E;case Dt:return O;case Lt:return A;case zt:return P}return n});var _o=Ie?Qa:vu;function So(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||Re)}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 Po=Do(ni),Fo=hn||function(e,n){return gn.setTimeout(e,n)},Ro=Do(ti);function Io(e,n,t){var r=n+"";return Ro(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]&&!Rn(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 zo=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 Mo(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 qo=Yr((function(e,n){return Ka(e)?pr(e,yr(n,1,Ka,!0)):[]})),Vo=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)),Vn(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)),Vn(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=Fn(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(Fn(e,Ka))})),ca=Yr((function(e){var n=Yo(e);return Ka(n)&&(n=t),mi(Fn(e,Ka),co(n,2))})),sa=Yr((function(e){var n=Yo(e);return n="function"==typeof n?n:t,mi(Fn(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=qt(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=Fi((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=Fi((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):Pr(e,n,t)})),o})),Ea=Fi((function(e,n,t){ar(e,t,n)}));function _a(e,n){return($a(e)?Dn:Br)(e,co(n,3))}var Sa=Fi((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)})),Pa=Yr((function(e,n,t){var r=3;if(t.length){var i=st(t,uo(Pa));r|=l}return Qi(n,r,e,t,i)}));function Fa(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=Fo(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=Fo(v,n),p?g(e):u}(s);if(d)return Ei(c),c=Fo(v,n),g(s)}return c===t&&(c=Fo(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 Ra=Yr((function(e,n){return fr(e,1,n)})),Ia=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 za=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)}))})),Ma=Yr((function(e,n){var r=st(n,uo(Ma));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 qa(e,n){return e===n||e!=e&&n!=n}var Va=Gi(Cr),Ua=Gi((function(e,n){return e>=n})),Ha=Fr(function(){return arguments}())?Fr: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)==F};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:ql)(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 Pi(e,Rl(e))}function bl(e){return null==e?"":si(e)}var xl=Ri((function(e,n){if(So(n)||Ga(n))Pi(n,Fl(n),e);else for(var t in n)Le.call(n,t)&&tr(e,t,n[t])})),kl=Ri((function(e,n){Pi(n,Rl(n),e)})),wl=Ri((function(e,n,t,r){Pi(n,Rl(n),e,r)})),El=Ri((function(e,n,t,r){Pi(n,Fl(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=Rl(a),u=-1,c=l.length;++u<c;){var s=l[u],f=e[s];(f===t||qa(f,Re[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=Vi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Ne.call(n)),e[n]=t}),nu(iu)),Tl=Vi((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),Pl=Yr(Pr);function Fl(e){return Ga(e)?Yt(e):zr(e)}function Rl(e){return Ga(e)?Yt(e,!0):Mr(e)}var Il=Ri((function(e,n,t){Ur(e,n,t)})),Dl=Ri((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})),Pi(e,oo(e),t),r&&(t=cr(t,7,no));for(var i=n.length;i--;)pi(t,n[i]);return t}));var zl=ro((function(e,n){return null==e?{}:function(e,n){return Wr(e,n,(function(n,t){return Al(e,t)}))}(e,n)}));function Ml(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(Fl),Bl=Yi(Rl);function ql(e){return null==e?[]:et(e,Fl(e))}var Vl=zi((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=zi((function(e,n,t){return e+(t?"-":"")+n.toLowerCase()})),Wl=zi((function(e,n,t){return e+(t?" ":"")+n.toLowerCase()})),Gl=Li("toLowerCase");var Kl=zi((function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}));var Zl=zi((function(e,n,t){return e+(t?" ":"")+Yl(n)}));var Xl=zi((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=Mo(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 Pr(t,e,n)}})),lu=Yr((function(e,n){return function(t){return Pr(e,t,n)}}));function uu(e,n,t){var r=Fl(n),i=Er(n,r);null!=t||nl(n)&&(i.length||!r.length)||(t=n,n=e,e=this,i=Er(n,Fl(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(Pn),pu=Hi(Nn);function du(e){return wo(e)?Gn(Mo(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 qt.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)}},qt.ary=Aa,qt.assign=xl,qt.assignIn=kl,qt.assignInWith=wl,qt.assignWith=El,qt.at=_l,qt.before=ja,qt.bind=Ta,qt.bindAll=eu,qt.bindKey=Pa,qt.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},qt.chain=da,qt.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},qt.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},qt.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))},qt.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)}}))},qt.conforms=function(e){return function(e){var n=Fl(e);return function(t){return sr(t,e,n)}}(cr(e,1))},qt.constant=nu,qt.countBy=ma,qt.create=function(e,n){var t=Vt(e);return null==n?t:or(t,n)},qt.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},qt.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},qt.debounce=Fa,qt.defaults=Sl,qt.defaultsDeep=Ol,qt.defer=Ra,qt.delay=Ia,qt.difference=qo,qt.differenceBy=Vo,qt.differenceWith=Uo,qt.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):[]},qt.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):[]},qt.dropRightWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!0,!0):[]},qt.dropWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!0):[]},qt.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)):[]},qt.filter=function(e,n){return($a(e)?Fn:vr)(e,co(n,3))},qt.flatMap=function(e,n){return yr(_a(e,n),1)},qt.flatMapDeep=function(e,n){return yr(_a(e,n),f)},qt.flatMapDepth=function(e,n,r){return r=r===t?1:gl(r),yr(_a(e,n),r)},qt.flatten=Wo,qt.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},qt.flattenDepth=function(e,n){return(null==e?0:e.length)?yr(e,n=n===t?1:gl(n)):[]},qt.flip=function(e){return Qi(e,512)},qt.flow=tu,qt.flowRight=ru,qt.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},qt.functions=function(e){return null==e?[]:Er(e,Fl(e))},qt.functionsIn=function(e){return null==e?[]:Er(e,Rl(e))},qt.groupBy=ka,qt.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},qt.intersection=Ko,qt.intersectionBy=Zo,qt.intersectionWith=Xo,qt.invert=jl,qt.invertBy=Tl,qt.invokeMap=wa,qt.iteratee=ou,qt.keyBy=Ea,qt.keys=Fl,qt.keysIn=Rl,qt.map=_a,qt.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},qt.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},qt.matches=function(e){return qr(cr(e,1))},qt.matchesProperty=function(e,n){return Vr(e,cr(n,1))},qt.memoize=Da,qt.merge=Il,qt.mergeWith=Dl,qt.method=au,qt.methodOf=lu,qt.mixin=uu,qt.negate=La,qt.nthArg=function(e){return e=gl(e),Yr((function(n){return Hr(n,e)}))},qt.omit=Ll,qt.omitBy=function(e,n){return Ml(e,La(co(n)))},qt.once=function(e){return ja(2,e)},qt.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))},qt.over=su,qt.overArgs=za,qt.overEvery=fu,qt.overSome=pu,qt.partial=Ma,qt.partialRight=Na,qt.partition=Sa,qt.pick=zl,qt.pickBy=Ml,qt.property=du,qt.propertyOf=function(e){return function(n){return null==e?t:_r(e,n)}},qt.pull=Qo,qt.pullAll=Jo,qt.pullAllBy=function(e,n,t){return e&&e.length&&n&&n.length?Gr(e,n,co(t,2)):e},qt.pullAllWith=function(e,n,r){return e&&e.length&&n&&n.length?Gr(e,n,t,r):e},qt.pullAt=ea,qt.range=hu,qt.rangeRight=gu,qt.rearg=Ba,qt.reject=function(e,n){return($a(e)?Fn:vr)(e,La(co(n,3)))},qt.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},qt.rest=function(e,n){if("function"!=typeof e)throw new Te(r);return Yr(e,n=n===t?n:gl(n))},qt.reverse=na,qt.sampleSize=function(e,n,r){return n=(r?ko(e,n,r):n===t)?1:gl(n),($a(e)?Jt:Jr)(e,n)},qt.set=function(e,n,t){return null==e?e:ei(e,n,t)},qt.setWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:ei(e,n,r,i)},qt.shuffle=function(e){return($a(e)?er:ri)(e)},qt.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)):[]},qt.sortBy=Oa,qt.sortedUniq=function(e){return e&&e.length?ui(e):[]},qt.sortedUniqBy=function(e,n){return e&&e.length?ui(e,co(n,2)):[]},qt.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))&&lt(e)?wi(ht(e),0,r):e.split(n,r):[]},qt.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)}))},qt.tail=function(e){var n=null==e?0:e.length;return n?ii(e,1,n):[]},qt.take=function(e,n,r){return e&&e.length?ii(e,0,(n=r||n===t?1:gl(n))<0?0:n):[]},qt.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):[]},qt.takeRightWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!1,!0):[]},qt.takeWhile=function(e,n){return e&&e.length?hi(e,co(n,3)):[]},qt.tap=function(e,n){return n(e),e},qt.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),Fa(e,n,{leading:i,maxWait:n,trailing:o})},qt.thru=ha,qt.toArray=dl,qt.toPairs=Nl,qt.toPairsIn=Bl,qt.toPath=function(e){return $a(e)?Dn(e,Mo):cl(e)?[e]:Ti(zo(bl(e)))},qt.toPlainObject=yl,qt.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)?Vt(Ge(e)):{}}return(i?jn:kr)(e,(function(e,r,i){return n(t,e,r,i)})),t},qt.unary=function(e){return Aa(e,1)},qt.union=ta,qt.unionBy=ra,qt.unionWith=ia,qt.uniq=function(e){return e&&e.length?fi(e):[]},qt.uniqBy=function(e,n){return e&&e.length?fi(e,co(n,2)):[]},qt.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?fi(e,t,n):[]},qt.unset=function(e,n){return null==e||pi(e,n)},qt.unzip=oa,qt.unzipWith=aa,qt.update=function(e,n,t){return null==e?e:di(e,n,bi(t))},qt.updateWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:di(e,n,bi(r),i)},qt.values=ql,qt.valuesIn=function(e){return null==e?[]:et(e,Rl(e))},qt.without=la,qt.words=Ql,qt.wrap=function(e,n){return Ma(bi(n),e)},qt.xor=ua,qt.xorBy=ca,qt.xorWith=sa,qt.zip=fa,qt.zipObject=function(e,n){return vi(e||[],n||[],tr)},qt.zipObjectDeep=function(e,n){return vi(e||[],n||[],ei)},qt.zipWith=pa,qt.entries=Nl,qt.entriesIn=Bl,qt.extend=kl,qt.extendWith=wl,uu(qt,qt),qt.add=yu,qt.attempt=Jl,qt.camelCase=Vl,qt.capitalize=Ul,qt.ceil=bu,qt.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)},qt.clone=function(e){return cr(e,4)},qt.cloneDeep=function(e){return cr(e,5)},qt.cloneDeepWith=function(e,n){return cr(e,5,n="function"==typeof n?n:t)},qt.cloneWith=function(e,n){return cr(e,4,n="function"==typeof n?n:t)},qt.conformsTo=function(e,n){return null==n||sr(e,n,Fl(n))},qt.deburr=Hl,qt.defaultTo=function(e,n){return null==e||e!=e?n:e},qt.divide=xu,qt.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},qt.eq=qa,qt.escape=function(e){return(e=bl(e))&&Z.test(e)?e.replace(G,ot):e},qt.escapeRegExp=function(e){return(e=bl(e))&&re.test(e)?e.replace(te,"\\$&"):e},qt.every=function(e,n,r){var i=$a(e)?Pn:gr;return r&&ko(e,n,r)&&(n=t),i(e,co(n,3))},qt.find=va,qt.findIndex=Ho,qt.findKey=function(e,n){return qn(e,co(n,3),kr)},qt.findLast=ya,qt.findLastIndex=$o,qt.findLastKey=function(e,n){return qn(e,co(n,3),wr)},qt.floor=ku,qt.forEach=ba,qt.forEachRight=xa,qt.forIn=function(e,n){return null==e?e:br(e,co(n,3),Rl)},qt.forInRight=function(e,n){return null==e?e:xr(e,co(n,3),Rl)},qt.forOwn=function(e,n){return e&&kr(e,co(n,3))},qt.forOwnRight=function(e,n){return e&&wr(e,co(n,3))},qt.get=Cl,qt.gt=Va,qt.gte=Ua,qt.has=function(e,n){return null!=e&&vo(e,n,Ar)},qt.hasIn=Al,qt.head=Go,qt.identity=iu,qt.includes=function(e,n,t,r){e=Ga(e)?e:ql(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},qt.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)},qt.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)},qt.invoke=Pl,qt.isArguments=Ha,qt.isArray=$a,qt.isArrayBuffer=Wa,qt.isArrayLike=Ga,qt.isArrayLikeObject=Ka,qt.isBoolean=function(e){return!0===e||!1===e||tl(e)&&Or(e)==y},qt.isBuffer=Za,qt.isDate=Xa,qt.isElement=function(e){return tl(e)&&1===e.nodeType&&!ol(e)},qt.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!zr(e).length;for(var t in e)if(Le.call(e,t))return!1;return!0},qt.isEqual=function(e,n){return Rr(e,n)},qt.isEqualWith=function(e,n,r){var i=(r="function"==typeof r?r:t)?r(e,n):t;return i===t?Rr(e,n,t,r):!!i},qt.isError=Ya,qt.isFinite=function(e){return"number"==typeof e&&Bn(e)},qt.isFunction=Qa,qt.isInteger=Ja,qt.isLength=el,qt.isMap=rl,qt.isMatch=function(e,n){return e===n||Ir(e,n,fo(n))},qt.isMatchWith=function(e,n,r){return r="function"==typeof r?r:t,Ir(e,n,fo(n),r)},qt.isNaN=function(e){return il(e)&&e!=+e},qt.isNative=function(e){if(_o(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},qt.isNil=function(e){return null==e},qt.isNull=function(e){return null===e},qt.isNumber=il,qt.isObject=nl,qt.isObjectLike=tl,qt.isPlainObject=ol,qt.isRegExp=al,qt.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=p},qt.isSet=ll,qt.isString=ul,qt.isSymbol=cl,qt.isTypedArray=sl,qt.isUndefined=function(e){return e===t},qt.isWeakMap=function(e){return tl(e)&&mo(e)==P},qt.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==Or(e)},qt.join=function(e,n){return null==e?"":Kn.call(e,n)},qt.kebabCase=$l,qt.last=Yo,qt.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):Vn(e,$n,o,!0)},qt.lowerCase=Wl,qt.lowerFirst=Gl,qt.lt=fl,qt.lte=pl,qt.max=function(e){return e&&e.length?mr(e,iu,Cr):t},qt.maxBy=function(e,n){return e&&e.length?mr(e,co(n,2),Cr):t},qt.mean=function(e){return Wn(e,iu)},qt.meanBy=function(e,n){return Wn(e,co(n,2))},qt.min=function(e){return e&&e.length?mr(e,iu,Nr):t},qt.minBy=function(e,n){return e&&e.length?mr(e,co(n,2),Nr):t},qt.stubArray=mu,qt.stubFalse=vu,qt.stubObject=function(){return{}},qt.stubString=function(){return""},qt.stubTrue=function(){return!0},qt.multiply=wu,qt.nth=function(e,n){return e&&e.length?Hr(e,gl(n)):t},qt.noConflict=function(){return gn._===this&&(gn._=qe),this},qt.noop=cu,qt.now=Ca,qt.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)},qt.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},qt.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},qt.parseInt=function(e,n,t){return t||null==n?n=0:n&&(n=+n),wt(bl(e).replace(ie,""),n||0)},qt.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)},qt.reduce=function(e,n,t){var r=$a(e)?zn:Zn,i=arguments.length<3;return r(e,co(n,4),t,i,dr)},qt.reduceRight=function(e,n,t){var r=$a(e)?Mn:Zn,i=arguments.length<3;return r(e,co(n,4),t,i,hr)},qt.repeat=function(e,n,r){return n=(r?ko(e,n,r):n===t)?1:gl(n),Xr(bl(e),n)},qt.replace=function(){var e=arguments,n=bl(e[0]);return e.length<3?n:n.replace(e[1],e[2])},qt.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[Mo(n[i])];a===t&&(i=o,a=r),e=Qa(a)?a.call(e):a}return e},qt.round=Eu,qt.runInContext=e,qt.sample=function(e){return($a(e)?Qt:Qr)(e)},qt.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:zr(e).length},qt.snakeCase=Kl,qt.some=function(e,n,r){var i=$a(e)?Nn:oi;return r&&ko(e,n,r)&&(n=t),i(e,co(n,3))},qt.sortedIndex=function(e,n){return ai(e,n)},qt.sortedIndexBy=function(e,n,t){return li(e,n,co(t,2))},qt.sortedIndexOf=function(e,n){var t=null==e?0:e.length;if(t){var r=ai(e,n);if(r<t&&qa(e[r],n))return r}return-1},qt.sortedLastIndex=function(e,n){return ai(e,n,!0)},qt.sortedLastIndexBy=function(e,n,t){return li(e,n,co(t,2),!0)},qt.sortedLastIndexOf=function(e,n){if(null==e?0:e.length){var t=ai(e,n,!0)-1;if(qa(e[t],n))return t}return-1},qt.startCase=Zl,qt.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},qt.subtract=_u,qt.sum=function(e){return e&&e.length?Xn(e,iu):0},qt.sumBy=function(e,n){return e&&e.length?Xn(e,co(n,2)):0},qt.template=function(e,n,r){var i=qt.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=Fl(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},qt.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},qt.toFinite=hl,qt.toInteger=gl,qt.toLength=ml,qt.toLower=function(e){return bl(e).toLowerCase()},qt.toNumber=vl,qt.toSafeInteger=function(e){return e?ur(gl(e),-9007199254740991,p):0===e?e:0},qt.toString=bl,qt.toUpper=function(e){return bl(e).toUpperCase()},qt.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("")},qt.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("")},qt.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("")},qt.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},qt.unescape=function(e){return(e=bl(e))&&K.test(e)?e.replace(W,mt):e},qt.uniqueId=function(e){var n=++ze;return bl(e)+n},qt.upperCase=Xl,qt.upperFirst=Yl,qt.each=ba,qt.eachRight=xa,qt.first=Go,uu(qt,function(){var e={};return kr(qt,(function(n,t){Le.call(qt.prototype,t)||(e[t]=n)})),e}(),{chain:!1}),qt.VERSION="4.17.23",jn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){qt[e].placeholder=qt})),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 Pr(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=qt[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(qt.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(qt,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=Pe[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);qt.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=qt[n];if(t){var r=t.name+"";Le.call(Ft,r)||(Ft[r]=[]),Ft[r].push({name:n,func:t})}})),Ft[qi(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},qt.prototype.at=ga,qt.prototype.chain=function(){return da(this)},qt.prototype.commit=function(){return new Ht(this.value(),this.__chain__)},qt.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__++]}},qt.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},qt.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)},qt.prototype.toJSON=qt.prototype.valueOf=qt.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},qt.prototype.first=qt.prototype.head,Qe&&(qt.prototype[Qe]=function(){return this}),qt}();vn?((vn.exports=vt)._=vt,mn._=vt):gn._=vt}).call(Ae)})),en=function(e){var n=e.entries,t=e.options,r=e.blockedOptions,i=e.onChange,a=s((function(){return Je.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(D,{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))})))})))};en.propTypes={entries:m.arrayOf(m.shape({})).isRequired,options:m.arrayOf(m.shape({})).isRequired,blockedOptions:m.arrayOf(m.shape({})).isRequired,onChange:m.func.isRequired};var nn=function(n){var t=n.variant,r=n.name,i=n.label,l=n.value,c=n.options,s=n.maxEntries,f=n.optionsAsGrid,p=n.onChange,d=a(l||[]),h=e(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?en:Qe;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}))};function tn(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 rn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?tn(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}nn.propTypes={variant:m.oneOf(["standard","filled","outlined"]),name:m.string,label:m.string,value:m.oneOfType([m.string,m.number,m.bool,m.shape({}),m.arrayOf(m.any)]),options:m.shape({}),maxEntries:m.number,optionsAsGrid:m.bool,onChange:m.func.isRequired};var on=$((function(e){return{readOnlyField:{width:"100%",display:"flex",flexDirection:"column",marginBottom:e.spacing(1.5),"&:last-child":{marginBottom:0}}}})),an=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=rn(rn({},c),{},{formVariant:t,name:i,label:a,value:s,options:f,required:p,readOnly:!0}),h=on(),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))};an.propTypes={formVariant:m.oneOf(["block","card"]),component:m.oneOfType([m.elementType,m.element]).isRequired,componentProps:m.shape({}),name:m.string.isRequired,type:m.string.isRequired,label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool,m.arrayOf(m.any)]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})),required:m.bool};var ln=["prepend","append","componentProps"];function un(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 cn=function(e){e.prepend,e.append;var n=e.componentProps,r=W(e,ln),i=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?un(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}({componentProps:n},r);return"hidden"===(null==n?void 0:n.type)?o.createElement("input",{type:"hidden",name:r.name,value:r.value}):o.createElement(an,i)};cn.propTypes={component:m.oneOfType([m.elementType,m.element]).isRequired,componentProps:m.shape({}),type:m.string.isRequired,name:m.string.isRequired,label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool,m.arrayOf(m.any)]),options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})),prepend:m.arrayOf(m.element),append:m.arrayOf(m.element),hasErrors:m.bool,errors:m.arrayOf(m.shape({})),validating:m.bool,required:m.bool,dirty:m.bool};var sn=o.memo(cn),fn=function(e,n){var t=ue.DATETIME_FULL;return n&&(t="string"==typeof n?ue[n]:n),ue.fromISO(e).toLocaleString(t)},pn=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(fn((null==n?void 0:n.start)||"",r)," - ").concat(fn((null==n?void 0:n.end)||"",r)):fn(n,r)),o.createElement(k,{variant:"body1",style:{whiteSpace:a?"pre-line":"inherit"}},l)};pn.propTypes={value:m.oneOfType([m.number,m.string]),type:m.string,range:m.bool,renderFormat:m.oneOfType([m.string,m.object]),multiline:m.bool};const dn=["http","https","mailto","tel"];
16
16
  /*!
17
17
  * Determine if an object is a Buffer
18
18
  *
19
19
  * @author Feross Aboukhadijeh <https://feross.org>
20
20
  * @license MIT
21
21
  */
22
- var ln=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)};function un(e){return e&&"object"==typeof e?"position"in e||"type"in e?sn(e.position):"start"in e||"end"in e?sn(e):"line"in e||"column"in e?cn(e):"":""}function cn(e){return fn(e&&e.line)+":"+fn(e&&e.column)}function sn(e){return cn(e&&e.start)+"-"+cn(e&&e.end)}function fn(e){return e&&"number"==typeof e?e:1}class pn 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=un(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}}pn.prototype.file="",pn.prototype.name="",pn.prototype.reason="",pn.prototype.message="",pn.prototype.stack="",pn.prototype.fatal=null,pn.prototype.column=null,pn.prototype.line=null,pn.prototype.source=null,pn.prototype.ruleId=null,pn.prototype.position=null;const dn={basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');hn(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(hn(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){hn(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;)hn(e[t]),e[t]&&(n=void 0===n?e[t]:n+"/"+e[t]);return void 0===n?".":function(e){hn(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 hn(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gn={cwd:function(){return"/"}};function mn(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function vn(e){if("string"==typeof e)e=new URL(e);else if(!mn(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 yn=["history","path","basename","stem","extname","dirname"];class bn{constructor(e){let n;n=e?"string"==typeof e||ln(e)?{value:e}:mn(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=gn.cwd(),this.value,this.stored,this.result,this.map;let t,r=-1;for(;++r<yn.length;){const e=yn[r];e in n&&void 0!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(t in n)yn.includes(t)||(this[t]=n[t])}get path(){return this.history[this.history.length-1]}set path(e){mn(e)&&(e=vn(e)),kn(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?dn.dirname(this.path):void 0}set dirname(e){wn(this.basename,"dirname"),this.path=dn.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?dn.basename(this.path):void 0}set basename(e){kn(e,"basename"),xn(e,"basename"),this.path=dn.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?dn.extname(this.path):void 0}set extname(e){if(xn(e,"extname"),wn(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=dn.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?dn.basename(this.path,this.extname):void 0}set stem(e){kn(e,"stem"),xn(e,"stem"),this.path=dn.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,n,t){const r=new pn(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 xn(e,n){if(e&&e.includes(dn.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+dn.sep+"`")}function kn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function wn(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function En(e){if(e)throw e}var _n=Object.prototype.hasOwnProperty,Sn=Object.prototype.toString,On=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,An=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Sn.call(e)},jn=function(e){if(!e||"[object Object]"!==Sn.call(e))return!1;var n,t=_n.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&_n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;for(n in e);return void 0===n||_n.call(e,n)},Tn=function(e,n){On&&"__proto__"===n.name?On(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},Pn=function(e,n){if("__proto__"===n){if(!_n.call(e,n))return;if(Cn)return Cn(e,n).value}return e[n]},Fn=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=Pn(l,t),l!==(i=Pn(n,t))&&(s&&i&&(jn(i)||(o=An(i)))?(o?(o=!1,a=r&&An(r)?r:[]):a=r&&jn(r)?r:{},Tn(l,{name:t,newValue:e(s,a,i)})):void 0!==i&&Tn(l,{name:t,newValue:i}));return l};function Rn(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}function In(){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 Dn=function e(){const n=In(),t=[];let r,i={},o=-1;return a.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(Bn("data",r),i[e]=n,a):Ln.call(i,e)&&i[e]||null;if(e)return Bn("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(Bn("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?(Rn(r[1])&&Rn(n)&&(n=Fn(!0,r[1],n)),r[1]=n):t.push([...arguments])}},a.parse=function(e){a.freeze();const n=Un(e),t=a.Parser;if(Mn("parse",t),zn(t,"parse"))return new t(String(n),n).parse();return t(String(n),n)},a.stringify=function(e,n){a.freeze();const t=Un(n),r=a.Compiler;if(Nn("stringify",r),qn(e),zn(r,"compile"))return new r(e,t).compile();return r(e,t)},a.run=function(e,t,r){qn(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,Un(t),a)}i(null,r)},a.runSync=function(e,n){let t,r;return a.run(e,n,i),Vn("runSync","run",r),t;function i(e,n){En(e),t=n,r=!0}},a.process=function(e,n){if(a.freeze(),Mn("process",a.Parser),Nn("process",a.Compiler),!n)return new Promise(t);function t(t,r){const i=Un(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)||ln(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(),Mn("processSync",a.Parser),Nn("processSync",a.Compiler);const t=Un(e);return a.process(t,r),Vn("processSync","process",n),t;function r(e){n=!0,En(e)}},a;function a(){const n=e();let r=-1;for(;++r<t.length;)n.use(...t[r]);return n.data(Fn(!0,{},i)),n}}().freeze(),Ln={}.hasOwnProperty;function zn(e,n){return"function"==typeof e&&e.prototype&&(function(e){let n;for(n in e)if(Ln.call(e,n))return!0;return!1}(e.prototype)||n in e.prototype)}function Mn(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Nn(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Bn(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 qn(e){if(!Rn(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Vn(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Un(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new bn(e)}function Hn(e,n){return e&&"object"==typeof e&&(e.value||(n?e.alt:"")||"children"in e&&$n(e.children,n)||Array.isArray(e)&&$n(e,n))||""}function $n(e,n){for(var t=[],r=-1;++r<e.length;)t[r]=Hn(e[r],n);return t.join("")}function Wn(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 Gn(e,n){return e.length>0?(Wn(e,e.length,0,n),e):n}const Kn={}.hasOwnProperty;function Zn(e){const n={};let t=-1;for(;++t<e.length;)Xn(n,e[t]);return n}function Xn(e,n){let t;for(t in n){const r=(Kn.call(e,t)?e[t]:void 0)||(e[t]={}),i=n[t];let o;for(o in i){Kn.call(r,o)||(r[o]=[]);const e=i[o];Yn(r[o],Array.isArray(e)?e:e?[e]:[])}}}function Yn(e,n){let t=-1;const r=[];for(;++t<n.length;)("after"===n[t].add?e:r).push(n[t]);Wn(e,0,0,r)}const Qn=st(/[A-Za-z]/),Jn=st(/\d/),et=st(/[\dA-Fa-f]/),nt=st(/[\dA-Za-z]/),tt=st(/[!-/:-@[-`{-~]/),rt=st(/[#-'*+\--9=?A-Z^-~]/);function it(e){return null!==e&&(e<32||127===e)}function ot(e){return null!==e&&(e<0||32===e)}function at(e){return null!==e&&e<-2}function lt(e){return-2===e||-1===e||32===e}const ut=st(/\s/),ct=st(/[!-/:-@[-`{-~\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 st(e){return function(n){return null!==n&&e.test(String.fromCharCode(n))}}function ft(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(lt(r))return e.enter(t),a(r);return n(r)};function a(r){return lt(r)&&o++<i?(e.consume(r),a):(e.exit(t),n(r))}}const pt={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"),ft(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)):at(n)?(e.consume(n),e.exit("chunkText"),r):(e.consume(n),i)}}};const dt={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 Wn(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(ht,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(ht,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)):at(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++;Wn(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}}},ht={tokenize:function(e,n,t){return ft(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function gt(e){return null===e||ot(e)||ut(e)?1:ct(e)?2:void 0}function mt(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 vt={name:"attention",tokenize:function(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=gt(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=gt(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);yt(f,-l),yt(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=Gn(u,[["enter",e[t][1],n],["exit",e[t][1],n]])),u=Gn(u,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",i,n]]),u=Gn(u,mt(n.parser.constructs.insideSpan.null,e.slice(t+1,s),n)),u=Gn(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=Gn(u,[["enter",e[s][1],n],["exit",e[s][1],n]])):c=0,Wn(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 yt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const bt={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 Qn(n)?(e.consume(n),o):rt(n)?u(n):t(n)}function o(e){return 43===e||45===e||46===e||nt(e)?a(e):u(e)}function a(n){return 58===n?(e.consume(n),l):(43===n||45===n||46===n||nt(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||it(n)?t(n):(e.consume(n),l)}function u(n){return 64===n?(e.consume(n),r=0,c):rt(n)?(e.consume(n),u):t(n)}function c(e){return nt(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||nt(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 xt={tokenize:function(e,n,t){return ft(e,(function(e){return null===e||at(e)?n(e):t(e)}),"linePrefix")},partial:!0};const kt={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 lt(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 ft(e,e.attempt(kt,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const wt={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 tt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(r)}}};const Et=document.createElement("i");function _t(e){const n="&"+e+";";Et.innerHTML=n;const t=Et.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===e)&&(t!==n&&t)}const St={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=nt,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=et,c):(e.enter("characterReferenceValue"),i=7,o=Jn,c(n))}function c(l){let u;return 59===l&&a?(u=e.exit("characterReferenceValue"),o!==nt||_t(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 Ot={name:"codeFenced",tokenize:function(e,n,t){const r=this,i={tokenize:function(e,n,t){let r=0;return ft(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"),ft(e,a,"whitespace")(n))}function a(r){return null===r||at(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):ft(e,f,"whitespace")(n))}function f(n){return null===n||at(n)?g(n):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(n))}function p(n){return null===n||ot(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ft(e,d,"whitespace")(n)):96===n&&n===u?t(n):(e.consume(n),p)}function d(n){return null===n||at(n)?g(n):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(n))}function h(n){return null===n||at(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):at(n)?e.attempt(o,e.attempt(i,y,l?ft(e,m,"linePrefix",l+1):m),y)(n):(e.enter("codeFlowValue"),v(n))}function v(n){return null===n||at(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),v)}function y(t){return e.exit("codeFenced"),n(t)}},concrete:!0};const Ct={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),ft(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):at(n)?e.attempt(At,o,l)(n):(e.enter("codeFlowValue"),a(n))}function a(n){return null===n||at(n)?(e.exit("codeFlowValue"),o(n)):(e.consume(n),a)}function l(t){return e.exit("codeIndented"),n(t)}}},At={tokenize:function(e,n,t){const r=this;return i;function i(n){return r.parser.lazy[r.now().line]?t(n):at(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i):ft(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):at(e)?i(e):t(e)}},partial:!0};const jt={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):at(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||at(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 Tt(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,Pt(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),Wn(e,r,c-r+1,a))}}return!u}function Pt(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]),Wn(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 Ft={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):at(n)?e.check(Rt,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 Tt(e),e}},Rt={tokenize:function(e,n,t){const r=this;return function(n){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ft(e,i,"linePrefix")};function i(i){if(null===i||at(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 It(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||it(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||at(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||ot(i)?s?t(i):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),n(i)):it(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 Dt(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):at(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||at(n)||u++>999?(e.exit("chunkString"),c(n)):(e.consume(n),l=l||!lt(n),92===n?f:s)}function f(n){return 91===n||92===n||93===n?(e.consume(n),u++,s):s(n)}}function Lt(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):at(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ft(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(n))}function c(n){return n===a||null===n||at(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 zt(e,n){let t;return function r(i){if(at(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r;if(lt(i))return ft(e,r,t?"linePrefix":"lineSuffix")(i);return n(i)}}function Mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Nt={name:"definition",tokenize:function(e,n,t){const r=this;let i;return function(n){return e.enter("definition"),Dt.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function o(n){return i=Mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),zt(e,It(e,e.attempt(Bt,ft(e,a,"whitespace"),ft(e,a,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function a(o){return null===o||at(o)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),n(o)):t(o)}}},Bt={tokenize:function(e,n,t){return function(n){return ot(n)?zt(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Lt(e,ft(e,i,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function i(e){return null===e||at(e)?n(e):t(e)}},partial:!0};const qt={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 at(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}};const Vt={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||ot(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||at(t)?(e.exit("atxHeading"),n(t)):lt(t)?ft(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||ot(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"},Wn(e,o,i-o+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const Ut=["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"],Ht=["pre","script","style","textarea"],$t={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:I):Qn(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):Qn(o)?(e.consume(o),i=4,r.interrupt?n:I):t(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?n:I):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 Qn(n)?(e.consume(n),a=String.fromCharCode(n),h):t(n)}function h(l){return null===l||47===l||62===l||ot(l)?47!==l&&o&&Ht.includes(a.toLowerCase())?(i=1,r.interrupt?n(l):O(l)):Ut.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||nt(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 lt(n)?(e.consume(n),m):_(n)}function v(n){return 47===n?(e.consume(n),_):58===n||95===n||Qn(n)?(e.consume(n),y):lt(n)?(e.consume(n),v):_(n)}function y(n){return 45===n||46===n||58===n||95===n||nt(n)?(e.consume(n),y):b(n)}function b(n){return 61===n?(e.consume(n),x):lt(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):lt(n)?(e.consume(n),x):(u=null,w(n))}function k(n){return null===n||at(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||ot(n)?b(n):(e.consume(n),w)}function E(e){return 47===e||62===e||lt(e)?v(e):t(e)}function _(n){return 62===n?(e.consume(n),S):t(n)}function S(n){return lt(n)?(e.consume(n),S):null===n||at(n)?O(n):t(n)}function O(n){return 45===n&&2===i?(e.consume(n),T):60===n&&1===i?(e.consume(n),P):62===n&&4===i?(e.consume(n),D):63===n&&3===i?(e.consume(n),I):93===n&&5===i?(e.consume(n),R):!at(n)||6!==i&&7!==i?null===n||at(n)?C(n):(e.consume(n),O):e.check(Wt,D,C)(n)}function C(n){return e.exit("htmlFlowData"),A(n)}function A(n){return null===n?L(n):at(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),I):O(n)}function P(n){return 47===n?(e.consume(n),a="",F):O(n)}function F(n){return 62===n&&Ht.includes(a.toLowerCase())?(e.consume(n),D):Qn(n)&&a.length<8?(e.consume(n),a+=String.fromCharCode(n),F):O(n)}function R(n){return 93===n?(e.consume(n),I):O(n)}function I(n){return 62===n?(e.consume(n),D):45===n&&2===i?(e.consume(n),I):O(n)}function D(n){return null===n||at(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},Wt={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(xt,n,t)}},partial:!0};const Gt={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):Qn(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):Qn(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):at(n)?(l=d,R(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):at(n)?(l=m,R(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):at(n)?(l=b,R(n)):(e.consume(n),b)}function x(n){return null===n?t(n):63===n?(e.consume(n),k):at(n)?(l=x,R(n)):(e.consume(n),x)}function k(e){return 62===e?D(e):x(e)}function w(n){return Qn(n)?(e.consume(n),E):t(n)}function E(n){return 45===n||nt(n)?(e.consume(n),E):_(n)}function _(n){return at(n)?(l=_,R(n)):lt(n)?(e.consume(n),_):D(n)}function S(n){return 45===n||nt(n)?(e.consume(n),S):47===n||62===n||ot(n)?O(n):t(n)}function O(n){return 47===n?(e.consume(n),D):58===n||95===n||Qn(n)?(e.consume(n),C):at(n)?(l=O,R(n)):lt(n)?(e.consume(n),O):D(n)}function C(n){return 45===n||46===n||58===n||95===n||nt(n)?(e.consume(n),C):A(n)}function A(n){return 61===n?(e.consume(n),j):at(n)?(l=A,R(n)):lt(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):at(n)?(l=j,R(n)):lt(n)?(e.consume(n),j):(e.consume(n),i=void 0,F)}function T(n){return n===i?(e.consume(n),P):null===n?t(n):at(n)?(l=T,R(n)):(e.consume(n),T)}function P(e){return 62===e||47===e||ot(e)?O(e):t(e)}function F(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||ot(n)?O(n):(e.consume(n),F)}function R(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ft(e,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function I(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 Kt={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(Mt(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(Zt,n,o?n:u)(t):91===t?e.attempt(Xt,n,o?e.attempt(Yt,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=Gn(o,e.slice(r+1,r+l+3)),o=Gn(o,[["enter",s,n]]),o=Gn(o,mt(n.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),n)),o=Gn(o,[["exit",s,n],e[i-2],e[i-1],["exit",c,n]]),o=Gn(o,e.slice(i+1)),o=Gn(o,[["exit",u,n]]),Wn(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}},Zt={tokenize:function(e,n,t){return function(n){return e.enter("resource"),e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),zt(e,r)};function r(n){return 41===n?a(n):It(e,i,t,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(n)}function i(n){return ot(n)?zt(e,o)(n):a(n)}function o(n){return 34===n||39===n||40===n?Lt(e,zt(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)}}},Xt={tokenize:function(e,n,t){const r=this;return function(n){return Dt.call(r,e,i,t,"reference","referenceMarker","referenceString")(n)};function i(e){return r.parser.defined.includes(Mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(e):t(e)}}},Yt={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 Qt={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:Kt.resolveAll};const Jt={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:Kt.resolveAll};const er={name:"lineEnding",tokenize:function(e,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ft(e,n,"linePrefix")}}};const nr={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)):lt(l)?ft(e,o,"whitespace")(l):i<3||null!==l&&!at(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 tr={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:Jn(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(nr,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 Jn(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(xt,r.interrupt?t:c,e.attempt(rr,f,s))}function c(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function s(n){return lt(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(xt,i,o);function i(t){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ft(e,n,"listItemIndent",r.containerState.size+1)(t)}function o(t){return r.containerState.furtherBlankLines||!lt(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(ir,n,a)(t))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ft(e,e.attempt(tr,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},rr={tokenize:function(e,n,t){const r=this;return ft(e,(function(e){const i=r.events[r.events.length-1];return!lt(e)&&i&&"listItemPrefixWhitespace"===i[1].type?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},ir={tokenize:function(e,n,t){const r=this;return ft(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 or={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"),ft(e,u,"lineSuffix")(n))}function u(r){return null===r||at(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 ar={tokenize:function(e){const n=this,t=e.attempt(xt,(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,ft(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ft,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 lr={resolveAll:fr()},ur=sr("string"),cr=sr("text");function sr(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:fr("text"===e?pr:void 0)}}function fr(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 pr(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 dr(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){at(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=Gn(a,e),d(),null!==a[a.length-1])return[];return v(n,0),c.events=mt(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&&Wn(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 hr={42:tr,43:tr,45:tr,48:tr,49:tr,50:tr,51:tr,52:tr,53:tr,54:tr,55:tr,56:tr,57:tr,62:kt},gr={91:Nt},mr={[-2]:Ct,[-1]:Ct,32:Ct},vr={35:Vt,42:nr,45:[or,nr],60:$t,61:or,95:nr,96:Ot,126:Ot},yr={38:St,92:wt},br={[-5]:er,[-4]:er,[-3]:er,33:Qt,38:St,42:vt,60:[bt,Gt],91:Jt,92:[qt,wt],93:Kt,95:vt,96:jt},xr={null:[vt,lr]};var kr=Object.freeze({__proto__:null,document:hr,contentInitial:gr,flowInitial:mr,flow:vr,string:yr,text:br,insideSpan:xr,attentionMarkers:{null:[42,95]},disable:{null:[]}});const wr=/[\0\t\n\r]/g;function Er(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 _r=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Sr(e){return e.replace(_r,Or)}function Or(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return Er(t.slice(n?2:1),n?16:10)}return _t(t)||e}const Cr={}.hasOwnProperty,Ar=function(e,n,t){return"string"!=typeof n&&(t=n,n=void 0),function(e={}){const n=jr({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:V,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(I),codeTextData:j,data:j,definition:f(),definitionDestinationString:E,definitionLabelString:k,definitionTitleString:w,emphasis:f(),hardBreakEscape:f(P),hardBreakTrailing:f(P),htmlFlow:f(F),htmlFlowData:j,htmlText:f(R),htmlTextData:j,image:f(L),label:M,labelText:z,lineEnding:T,link:f(D),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:U,resourceDestinationString:N,resourceTitleString:B,resource:q,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]];Cr.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]||Pr).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+"` ("+un({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]||Pr).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 Hn(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=Mt(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 P(){o("atHardBreak",!0)}function F(){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 I(){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 z(e){const n=this.stack[this.stack.length-2],t=this.sliceSerialize(e);n.label=Sr(t),n.identifier=Mt(t).toLowerCase()}function M(){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 q(){o("inReference")}function V(){o("referenceType","collapsed")}function U(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=Mt(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=Er(n,"characterReferenceMarkerNumeric"===t?10:16),o("characterReferenceType")):r=_t(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(;!Tt(e););return e}(function(e={}){const n={defined:[],lazy:{},constructs:Zn([kr].concat(e.extensions||[])),content:t(pt),document:t(dt),flow:t(ar),string:t(ur),text:t(cr)};return n;function t(e){return function(t){return dr(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(wr.lastIndex=s,u=wr.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 jr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?jr(e,r):Tr(e,r)}return e}function Tr(e,n){let t;for(t in n)if(Cr.call(n,t)){const r="canContainEols"===t||"transforms"===t,i=(Cr.call(e,t)?e[t]:void 0)||(e[t]=r?[]:{}),o=n[t];o&&(r?e[t]=[...i,...o]:Object.assign(i,o))}}function Pr(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+un({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+un({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+un({start:n.start,end:n.end})+") is still open")}function Fr(e){Object.assign(this,{Parser:n=>{const t=this.data("settings");return Ar(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Rr=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 Ir={}.hasOwnProperty;function Dr(e,n){const t=n.data||{};return"value"in n&&!(Ir.call(t,"hName")||Ir.call(t,"hProperties")||Ir.call(t,"hChildren"))?e.augment(n,Rr("text",n.value)):e(n,"div",Mr(e,n))}function Lr(e,n,t){const r=n&&n.type;let i;if(!r)throw new Error("Expected node, got `"+n+"`");return i=Ir.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?zr:e.unknownHandler,("function"==typeof i?i:Dr)(e,n,t)}function zr(e,n){return"children"in n?{...n,children:Mr(e,n)}:n}function Mr(e,n){const t=[];if("children"in n){const r=n.children;let i=-1;for(;++i<r.length;){const o=Lr(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 Nr=function(e){if(null==e)return qr;if("string"==typeof e)return function(e){return Br(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]=Nr(e[t]);return Br(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 Br(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 Br(e);throw new Error("Expected function, string, or object as test")};function Br(e){return function(...n){return Boolean(e.call(this,...n))}}function qr(){return!0}const Vr=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);const i=Nr(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 Ur=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),Vr(e,n,(function(e,n){const r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},Hr=Wr("start"),$r=Wr("end");function Wr(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 Gr=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);var i=Nr(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 Kr=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),Gr(e,n,(function(e,n){var r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},Zr={}.hasOwnProperty;function Xr(e){return String(e||"").toUpperCase()}const Yr={'"':"quot","&":"amp","<":"lt",">":"gt"};function Qr(e,n){const t=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+Yr[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&&nt(e.charCodeAt(t+1))&&nt(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 Jr(e,n){const t=[];let r=-1;for(n&&t.push(Rr("text","\n"));++r<e.length;)r&&t.push(Rr("text","\n")),t.push(e[r]);return n&&e.length>0&&t.push(Rr("text","\n")),t}function ei(e,n){const t=String(n.identifier),r=Qr(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"},[Rr("text",String(o))])])}var ni={};function ti(e,n,t){var r,i,o,a,l,u="";for("string"!=typeof n&&(t=n,n=ti.defaultChars),void 0===t&&(t=!0),l=function(e){var n,t,r=ni[e];if(r)return r;for(r=ni[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}ti.defaultChars=";/?:@&=+$,-_.!~*'()#",ti.componentChars="-_.!~*'()";var ri=ti;function ii(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return Rr("text","!["+n.alt+r);const i=Mr(e,n),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift(Rr("text","["));const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push(Rr("text",r)),i}function oi(e){const n=e.spread;return null==n?e.children.length>1:n}const ai={blockquote:function(e,n){return e(n,"blockquote",Jr(Mr(e,n),!0))},break:function(e,n){return[e(n,"br"),Rr("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,[Rr("text",t)]);return n.meta&&(o.data={meta:n.meta}),e(n.position,"pre",[o])},delete:function(e,n){return e(n,"del",Mr(e,n))},emphasis:function(e,n){return e(n,"em",Mr(e,n))},footnoteReference:ei,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},ei(e,{type:"footnoteReference",identifier:i,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Mr(e,n))},html:function(e,n){return e.dangerous?e.augment(n,Rr("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return ii(e,n);const r={src:ri(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:ri(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",[Rr("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return ii(e,n);const r={href:ri(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Mr(e,n))},link:function(e,n){const t={href:ri(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Mr(e,n))},listItem:function(e,n,t){const r=Mr(e,n),i=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=oi(t[r]);return Boolean(n)}(t):oi(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(Rr("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(Rr("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(Rr("text","\n")),e(n,"li",o,a)},list:function(e,n){const t={},r=n.ordered?"ol":"ul",i=Mr(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,Jr(i,!0))},paragraph:function(e,n){return e(n,"p",Mr(e,n))},root:function(e,n){return e.augment(n,Rr("root",Jr(Mr(e,n))))},strong:function(e,n){return e(n,"strong",Mr(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?Mr(e,n):[]))}o[r]=e(t[r],"tr",Jr(u,!0))}return e(n,"table",Jr([e(o[0].position,"thead",Jr([o[0]],!0))].concat(o[1]?e({start:Hr(o[1]),end:$r(o[o.length-1])},"tbody",Jr(o.slice(1),!0)):[]),!0))},text:function(e,n){return e.augment(n,Rr("text",String(n.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))},thematicBreak:function(e,n){return e(n,"hr")},toml:li,yaml:li,definition:li,footnoteDefinition:li};function li(){return null}const ui={}.hasOwnProperty;function ci(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 Kr(e,"definition",(function(e){const t=Xr(e.identifier);t&&!Zr.call(n,t)&&(n[t]=e)})),function(e){const t=Xr(e);return t&&Zr.call(n,t)?n[t]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers={...ai,...t.handlers},a.unknownHandler=t.unknownHandler,a.passThrough=t.passThrough,Ur(e,"footnoteDefinition",(e=>{const n=String(e.identifier).toUpperCase();ui.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:Hr(r),end:$r(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 si(e,n){const t=ci(e,n),r=Lr(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=Mr(e,r),o=String(r.identifier),a=Qr(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:Jr(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:[Rr("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Jr(t,!0)},{type:"text",value:"\n"}]}}(t);return i&&r.children.push(Rr("text","\n"),i),Array.isArray(r)?{type:"root",children:r}:r}var fi=function(e,n){return e&&"run"in e?function(e,n){return(t,r,i)=>{e.run(si(t,n),r,(e=>{i(e)}))}}(e,n):function(e){return n=>si(n,e)}(e||n)};class pi{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function di(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 pi(t,r,n)}function hi(e){return e.toLowerCase()}pi.prototype.property={},pi.prototype.normal={},pi.prototype.space=null;class gi{constructor(e,n){this.property=e,this.attribute=n}}gi.prototype.space=null,gi.prototype.boolean=!1,gi.prototype.booleanish=!1,gi.prototype.overloadedBoolean=!1,gi.prototype.number=!1,gi.prototype.commaSeparated=!1,gi.prototype.spaceSeparated=!1,gi.prototype.commaOrSpaceSeparated=!1,gi.prototype.mustUseProperty=!1,gi.prototype.defined=!1;let mi=0;const vi=_i(),yi=_i(),bi=_i(),xi=_i(),ki=_i(),wi=_i(),Ei=_i();function _i(){return 2**++mi}var Si=Object.freeze({__proto__:null,boolean:vi,booleanish:yi,overloadedBoolean:bi,number:xi,spaceSeparated:ki,commaSeparated:wi,commaOrSpaceSeparated:Ei});const Oi=Object.keys(Si);class Ci extends gi{constructor(e,n,t,r){let i=-1;if(super(e,n),Ai(this,"space",r),"number"==typeof t)for(;++i<Oi.length;){const e=Oi[i];Ai(this,Oi[i],(t&Si[e])===Si[e])}}}function Ai(e,n,t){t&&(e[n]=t)}Ci.prototype.defined=!0;const ji={}.hasOwnProperty;function Ti(e){const n={},t={};let r;for(r in e.properties)if(ji.call(e.properties,r)){const i=e.properties[r],o=new Ci(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[hi(r)]=r,t[hi(o.attribute)]=r}return new pi(n,t,e.space)}const Pi=Ti({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}}),Fi=Ti({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ri(e,n){return n in e?e[n]:n}function Ii(e,n){return Ri(e,n.toLowerCase())}const Di=Ti({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ii,properties:{xmlns:null,xmlnsXLink:null}}),Li=Ti({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:yi,ariaAutoComplete:null,ariaBusy:yi,ariaChecked:yi,ariaColCount:xi,ariaColIndex:xi,ariaColSpan:xi,ariaControls:ki,ariaCurrent:null,ariaDescribedBy:ki,ariaDetails:null,ariaDisabled:yi,ariaDropEffect:ki,ariaErrorMessage:null,ariaExpanded:yi,ariaFlowTo:ki,ariaGrabbed:yi,ariaHasPopup:null,ariaHidden:yi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ki,ariaLevel:xi,ariaLive:null,ariaModal:yi,ariaMultiLine:yi,ariaMultiSelectable:yi,ariaOrientation:null,ariaOwns:ki,ariaPlaceholder:null,ariaPosInSet:xi,ariaPressed:yi,ariaReadOnly:yi,ariaRelevant:null,ariaRequired:yi,ariaRoleDescription:ki,ariaRowCount:xi,ariaRowIndex:xi,ariaRowSpan:xi,ariaSelected:yi,ariaSetSize:xi,ariaSort:null,ariaValueMax:xi,ariaValueMin:xi,ariaValueNow:xi,ariaValueText:null,role:null}}),zi=Ti({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ii,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wi,acceptCharset:ki,accessKey:ki,action:null,allow:null,allowFullScreen:vi,allowPaymentRequest:vi,allowUserMedia:vi,alt:null,as:null,async:vi,autoCapitalize:null,autoComplete:ki,autoFocus:vi,autoPlay:vi,capture:vi,charSet:null,checked:vi,cite:null,className:ki,cols:xi,colSpan:null,content:null,contentEditable:yi,controls:vi,controlsList:ki,coords:xi|wi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:vi,defer:vi,dir:null,dirName:null,disabled:vi,download:bi,draggable:yi,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:vi,formTarget:null,headers:ki,height:xi,hidden:vi,high:xi,href:null,hrefLang:null,htmlFor:ki,httpEquiv:ki,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:vi,itemId:null,itemProp:ki,itemRef:ki,itemScope:vi,itemType:ki,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:vi,low:xi,manifest:null,max:null,maxLength:xi,media:null,method:null,min:null,minLength:xi,multiple:vi,muted:vi,name:null,nonce:null,noModule:vi,noValidate:vi,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:vi,optimum:xi,pattern:null,ping:ki,placeholder:null,playsInline:vi,poster:null,preload:null,readOnly:vi,referrerPolicy:null,rel:ki,required:vi,reversed:vi,rows:xi,rowSpan:xi,sandbox:ki,scope:null,scoped:vi,seamless:vi,selected:vi,shape:null,size:xi,sizes:null,slot:null,span:xi,spellCheck:yi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:xi,step:null,style:null,tabIndex:xi,target:null,title:null,translate:null,type:null,typeMustMatch:vi,useMap:null,value:yi,width:xi,wrap:null,align:null,aLink:null,archive:ki,axis:null,background:null,bgColor:null,border:xi,borderColor:null,bottomMargin:xi,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:vi,declare:vi,event:null,face:null,frame:null,frameBorder:null,hSpace:xi,leftMargin:xi,link:null,longDesc:null,lowSrc:null,marginHeight:xi,marginWidth:xi,noResize:vi,noHref:vi,noShade:vi,noWrap:vi,object:null,profile:null,prompt:null,rev:null,rightMargin:xi,rules:null,scheme:null,scrolling:yi,standby:null,summary:null,text:null,topMargin:xi,valueType:null,version:null,vAlign:null,vLink:null,vSpace:xi,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:vi,disableRemotePlayback:vi,prefix:null,property:null,results:xi,security:null,unselectable:null}}),Mi=Ti({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:Ri,properties:{about:Ei,accentHeight:xi,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:xi,amplitude:xi,arabicForm:null,ascent:xi,attributeName:null,attributeType:null,azimuth:xi,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:xi,by:null,calcMode:null,capHeight:xi,className:ki,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:xi,diffuseConstant:xi,direction:null,display:null,dur:null,divisor:xi,dominantBaseline:null,download:vi,dx:null,dy:null,edgeMode:null,editable:null,elevation:xi,enableBackground:null,end:null,event:null,exponent:xi,externalResourcesRequired:null,fill:null,fillOpacity:xi,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:wi,g2:wi,glyphName:wi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:xi,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:xi,horizOriginX:xi,horizOriginY:xi,id:null,ideographic:xi,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:xi,k:xi,k1:xi,k2:xi,k3:xi,k4:xi,kernelMatrix:Ei,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:xi,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:xi,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:xi,overlineThickness:xi,paintOrder:null,panose1:null,path:null,pathLength:xi,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ki,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:xi,pointsAtY:xi,pointsAtZ:xi,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ei,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ei,rev:Ei,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ei,requiredFeatures:Ei,requiredFonts:Ei,requiredFormats:Ei,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:xi,specularExponent:xi,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:xi,strikethroughThickness:xi,string:null,stroke:null,strokeDashArray:Ei,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:xi,strokeOpacity:xi,strokeWidth:null,style:null,surfaceScale:xi,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ei,tabIndex:xi,tableValues:null,target:null,targetX:xi,targetY:xi,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ei,to:null,transform:null,u1:null,u2:null,underlinePosition:xi,underlineThickness:xi,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:xi,values:null,vAlphabetic:xi,vMathematical:xi,vectorEffect:null,vHanging:xi,vIdeographic:xi,version:null,vertAdvY:xi,vertOriginX:xi,vertOriginY:xi,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:xi,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ni=/^data[-\w.:]+$/i,Bi=/-[a-z]/g,qi=/[A-Z]/g;function Vi(e){return"-"+e.toLowerCase()}function Ui(e){return e.charAt(1).toUpperCase()}const Hi={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"},$i=di([Fi,Pi,Di,Li,zi],"html"),Wi=di([Fi,Pi,Di,Li,Mi],"svg");function Gi(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=>{Ur(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}))}}
22
+ var hn=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)};function gn(e){return e&&"object"==typeof e?"position"in e||"type"in e?vn(e.position):"start"in e||"end"in e?vn(e):"line"in e||"column"in e?mn(e):"":""}function mn(e){return yn(e&&e.line)+":"+yn(e&&e.column)}function vn(e){return mn(e&&e.start)+"-"+mn(e&&e.end)}function yn(e){return e&&"number"==typeof e?e:1}class bn 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=gn(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}}bn.prototype.file="",bn.prototype.name="",bn.prototype.reason="",bn.prototype.message="",bn.prototype.stack="",bn.prototype.fatal=null,bn.prototype.column=null,bn.prototype.line=null,bn.prototype.source=null,bn.prototype.ruleId=null,bn.prototype.position=null;const xn={basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');kn(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(kn(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){kn(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;)kn(e[t]),e[t]&&(n=void 0===n?e[t]:n+"/"+e[t]);return void 0===n?".":function(e){kn(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 kn(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wn={cwd:function(){return"/"}};function En(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function _n(e){if("string"==typeof e)e=new URL(e);else if(!En(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 Sn=["history","path","basename","stem","extname","dirname"];class On{constructor(e){let n;n=e?"string"==typeof e||hn(e)?{value:e}:En(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=wn.cwd(),this.value,this.stored,this.result,this.map;let t,r=-1;for(;++r<Sn.length;){const e=Sn[r];e in n&&void 0!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(t in n)Sn.includes(t)||(this[t]=n[t])}get path(){return this.history[this.history.length-1]}set path(e){En(e)&&(e=_n(e)),An(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?xn.dirname(this.path):void 0}set dirname(e){jn(this.basename,"dirname"),this.path=xn.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?xn.basename(this.path):void 0}set basename(e){An(e,"basename"),Cn(e,"basename"),this.path=xn.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?xn.extname(this.path):void 0}set extname(e){if(Cn(e,"extname"),jn(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=xn.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?xn.basename(this.path,this.extname):void 0}set stem(e){An(e,"stem"),Cn(e,"stem"),this.path=xn.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,n,t){const r=new bn(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 Cn(e,n){if(e&&e.includes(xn.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+xn.sep+"`")}function An(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function jn(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Tn(e){if(e)throw e}var Pn=Object.prototype.hasOwnProperty,Fn=Object.prototype.toString,Rn=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Dn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Fn.call(e)},Ln=function(e){if(!e||"[object Object]"!==Fn.call(e))return!1;var n,t=Pn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Pn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;for(n in e);return void 0===n||Pn.call(e,n)},zn=function(e,n){Rn&&"__proto__"===n.name?Rn(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},Mn=function(e,n){if("__proto__"===n){if(!Pn.call(e,n))return;if(In)return In(e,n).value}return e[n]},Nn=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=Mn(l,t),l!==(i=Mn(n,t))&&(s&&i&&(Ln(i)||(o=Dn(i)))?(o?(o=!1,a=r&&Dn(r)?r:[]):a=r&&Ln(r)?r:{},zn(l,{name:t,newValue:e(s,a,i)})):void 0!==i&&zn(l,{name:t,newValue:i}));return l};function Bn(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}function qn(){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 Vn=function e(){const n=qn(),t=[];let r,i={},o=-1;return a.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(Gn("data",r),i[e]=n,a):Un.call(i,e)&&i[e]||null;if(e)return Gn("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(Gn("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?(Bn(r[1])&&Bn(n)&&(n=Nn(!0,r[1],n)),r[1]=n):t.push([...arguments])}},a.parse=function(e){a.freeze();const n=Xn(e),t=a.Parser;if($n("parse",t),Hn(t,"parse"))return new t(String(n),n).parse();return t(String(n),n)},a.stringify=function(e,n){a.freeze();const t=Xn(n),r=a.Compiler;if(Wn("stringify",r),Kn(e),Hn(r,"compile"))return new r(e,t).compile();return r(e,t)},a.run=function(e,t,r){Kn(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,Xn(t),a)}i(null,r)},a.runSync=function(e,n){let t,r;return a.run(e,n,i),Zn("runSync","run",r),t;function i(e,n){Tn(e),t=n,r=!0}},a.process=function(e,n){if(a.freeze(),$n("process",a.Parser),Wn("process",a.Compiler),!n)return new Promise(t);function t(t,r){const i=Xn(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)||hn(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(),$n("processSync",a.Parser),Wn("processSync",a.Compiler);const t=Xn(e);return a.process(t,r),Zn("processSync","process",n),t;function r(e){n=!0,Tn(e)}},a;function a(){const n=e();let r=-1;for(;++r<t.length;)n.use(...t[r]);return n.data(Nn(!0,{},i)),n}}().freeze(),Un={}.hasOwnProperty;function Hn(e,n){return"function"==typeof e&&e.prototype&&(function(e){let n;for(n in e)if(Un.call(e,n))return!0;return!1}(e.prototype)||n in e.prototype)}function $n(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Wn(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Gn(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 Kn(e){if(!Bn(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Zn(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Xn(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new On(e)}function Yn(e,n){return e&&"object"==typeof e&&(e.value||(n?e.alt:"")||"children"in e&&Qn(e.children,n)||Array.isArray(e)&&Qn(e,n))||""}function Qn(e,n){for(var t=[],r=-1;++r<e.length;)t[r]=Yn(e[r],n);return t.join("")}function Jn(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 et(e,n){return e.length>0?(Jn(e,e.length,0,n),e):n}const nt={}.hasOwnProperty;function tt(e){const n={};let t=-1;for(;++t<e.length;)rt(n,e[t]);return n}function rt(e,n){let t;for(t in n){const r=(nt.call(e,t)?e[t]:void 0)||(e[t]={}),i=n[t];let o;for(o in i){nt.call(r,o)||(r[o]=[]);const e=i[o];it(r[o],Array.isArray(e)?e:e?[e]:[])}}}function it(e,n){let t=-1;const r=[];for(;++t<n.length;)("after"===n[t].add?e:r).push(n[t]);Jn(e,0,0,r)}const ot=vt(/[A-Za-z]/),at=vt(/\d/),lt=vt(/[\dA-Fa-f]/),ut=vt(/[\dA-Za-z]/),ct=vt(/[!-/:-@[-`{-~]/),st=vt(/[#-'*+\--9=?A-Z^-~]/);function ft(e){return null!==e&&(e<32||127===e)}function pt(e){return null!==e&&(e<0||32===e)}function dt(e){return null!==e&&e<-2}function ht(e){return-2===e||-1===e||32===e}const gt=vt(/\s/),mt=vt(/[!-/:-@[-`{-~\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 vt(e){return function(n){return null!==n&&e.test(String.fromCharCode(n))}}function yt(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(ht(r))return e.enter(t),a(r);return n(r)};function a(r){return ht(r)&&o++<i?(e.consume(r),a):(e.exit(t),n(r))}}const bt={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"),yt(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)):dt(n)?(e.consume(n),e.exit("chunkText"),r):(e.consume(n),i)}}};const xt={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 Jn(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(kt,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(kt,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)):dt(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++;Jn(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}}},kt={tokenize:function(e,n,t){return yt(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function wt(e){return null===e||pt(e)||gt(e)?1:mt(e)?2:void 0}function Et(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 _t={name:"attention",tokenize:function(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=wt(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=wt(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);St(f,-l),St(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=et(u,[["enter",e[t][1],n],["exit",e[t][1],n]])),u=et(u,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",i,n]]),u=et(u,Et(n.parser.constructs.insideSpan.null,e.slice(t+1,s),n)),u=et(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=et(u,[["enter",e[s][1],n],["exit",e[s][1],n]])):c=0,Jn(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 St(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ot={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 ot(n)?(e.consume(n),o):st(n)?u(n):t(n)}function o(e){return 43===e||45===e||46===e||ut(e)?a(e):u(e)}function a(n){return 58===n?(e.consume(n),l):(43===n||45===n||46===n||ut(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||ft(n)?t(n):(e.consume(n),l)}function u(n){return 64===n?(e.consume(n),r=0,c):st(n)?(e.consume(n),u):t(n)}function c(e){return ut(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||ut(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 Ct={tokenize:function(e,n,t){return yt(e,(function(e){return null===e||dt(e)?n(e):t(e)}),"linePrefix")},partial:!0};const At={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 ht(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 yt(e,e.attempt(At,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const jt={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 ct(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(r)}}};const Tt=document.createElement("i");function Pt(e){const n="&"+e+";";Tt.innerHTML=n;const t=Tt.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===e)&&(t!==n&&t)}const Ft={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=ut,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=lt,c):(e.enter("characterReferenceValue"),i=7,o=at,c(n))}function c(l){let u;return 59===l&&a?(u=e.exit("characterReferenceValue"),o!==ut||Pt(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 Rt={name:"codeFenced",tokenize:function(e,n,t){const r=this,i={tokenize:function(e,n,t){let r=0;return yt(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"),yt(e,a,"whitespace")(n))}function a(r){return null===r||dt(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):yt(e,f,"whitespace")(n))}function f(n){return null===n||dt(n)?g(n):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(n))}function p(n){return null===n||pt(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),yt(e,d,"whitespace")(n)):96===n&&n===u?t(n):(e.consume(n),p)}function d(n){return null===n||dt(n)?g(n):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(n))}function h(n){return null===n||dt(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):dt(n)?e.attempt(o,e.attempt(i,y,l?yt(e,m,"linePrefix",l+1):m),y)(n):(e.enter("codeFlowValue"),v(n))}function v(n){return null===n||dt(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),v)}function y(t){return e.exit("codeFenced"),n(t)}},concrete:!0};const It={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),yt(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):dt(n)?e.attempt(Dt,o,l)(n):(e.enter("codeFlowValue"),a(n))}function a(n){return null===n||dt(n)?(e.exit("codeFlowValue"),o(n)):(e.consume(n),a)}function l(t){return e.exit("codeIndented"),n(t)}}},Dt={tokenize:function(e,n,t){const r=this;return i;function i(n){return r.parser.lazy[r.now().line]?t(n):dt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i):yt(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):dt(e)?i(e):t(e)}},partial:!0};const Lt={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):dt(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||dt(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 zt(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,Mt(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),Jn(e,r,c-r+1,a))}}return!u}function Mt(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]),Jn(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 Nt={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):dt(n)?e.check(Bt,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 zt(e),e}},Bt={tokenize:function(e,n,t){const r=this;return function(n){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),yt(e,i,"linePrefix")};function i(i){if(null===i||dt(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 qt(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||ft(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||dt(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||pt(i)?s?t(i):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),n(i)):ft(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 Vt(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):dt(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||dt(n)||u++>999?(e.exit("chunkString"),c(n)):(e.consume(n),l=l||!ht(n),92===n?f:s)}function f(n){return 91===n||92===n||93===n?(e.consume(n),u++,s):s(n)}}function Ut(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):dt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),yt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(n))}function c(n){return n===a||null===n||dt(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 Ht(e,n){let t;return function r(i){if(dt(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r;if(ht(i))return yt(e,r,t?"linePrefix":"lineSuffix")(i);return n(i)}}function $t(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wt={name:"definition",tokenize:function(e,n,t){const r=this;let i;return function(n){return e.enter("definition"),Vt.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function o(n){return i=$t(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Ht(e,qt(e,e.attempt(Gt,yt(e,a,"whitespace"),yt(e,a,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function a(o){return null===o||dt(o)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),n(o)):t(o)}}},Gt={tokenize:function(e,n,t){return function(n){return pt(n)?Ht(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Ut(e,yt(e,i,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function i(e){return null===e||dt(e)?n(e):t(e)}},partial:!0};const Kt={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 dt(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}};const Zt={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||pt(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||dt(t)?(e.exit("atxHeading"),n(t)):ht(t)?yt(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||pt(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"},Jn(e,o,i-o+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const Xt=["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"],Yt=["pre","script","style","textarea"],Qt={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:I):ot(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):ot(o)?(e.consume(o),i=4,r.interrupt?n:I):t(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?n:I):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 ot(n)?(e.consume(n),a=String.fromCharCode(n),h):t(n)}function h(l){return null===l||47===l||62===l||pt(l)?47!==l&&o&&Yt.includes(a.toLowerCase())?(i=1,r.interrupt?n(l):O(l)):Xt.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||ut(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 ht(n)?(e.consume(n),m):_(n)}function v(n){return 47===n?(e.consume(n),_):58===n||95===n||ot(n)?(e.consume(n),y):ht(n)?(e.consume(n),v):_(n)}function y(n){return 45===n||46===n||58===n||95===n||ut(n)?(e.consume(n),y):b(n)}function b(n){return 61===n?(e.consume(n),x):ht(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):ht(n)?(e.consume(n),x):(u=null,w(n))}function k(n){return null===n||dt(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||pt(n)?b(n):(e.consume(n),w)}function E(e){return 47===e||62===e||ht(e)?v(e):t(e)}function _(n){return 62===n?(e.consume(n),S):t(n)}function S(n){return ht(n)?(e.consume(n),S):null===n||dt(n)?O(n):t(n)}function O(n){return 45===n&&2===i?(e.consume(n),T):60===n&&1===i?(e.consume(n),P):62===n&&4===i?(e.consume(n),D):63===n&&3===i?(e.consume(n),I):93===n&&5===i?(e.consume(n),R):!dt(n)||6!==i&&7!==i?null===n||dt(n)?C(n):(e.consume(n),O):e.check(Jt,D,C)(n)}function C(n){return e.exit("htmlFlowData"),A(n)}function A(n){return null===n?L(n):dt(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),I):O(n)}function P(n){return 47===n?(e.consume(n),a="",F):O(n)}function F(n){return 62===n&&Yt.includes(a.toLowerCase())?(e.consume(n),D):ot(n)&&a.length<8?(e.consume(n),a+=String.fromCharCode(n),F):O(n)}function R(n){return 93===n?(e.consume(n),I):O(n)}function I(n){return 62===n?(e.consume(n),D):45===n&&2===i?(e.consume(n),I):O(n)}function D(n){return null===n||dt(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},Jt={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(Ct,n,t)}},partial:!0};const er={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):ot(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):ot(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):dt(n)?(l=d,R(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):dt(n)?(l=m,R(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):dt(n)?(l=b,R(n)):(e.consume(n),b)}function x(n){return null===n?t(n):63===n?(e.consume(n),k):dt(n)?(l=x,R(n)):(e.consume(n),x)}function k(e){return 62===e?D(e):x(e)}function w(n){return ot(n)?(e.consume(n),E):t(n)}function E(n){return 45===n||ut(n)?(e.consume(n),E):_(n)}function _(n){return dt(n)?(l=_,R(n)):ht(n)?(e.consume(n),_):D(n)}function S(n){return 45===n||ut(n)?(e.consume(n),S):47===n||62===n||pt(n)?O(n):t(n)}function O(n){return 47===n?(e.consume(n),D):58===n||95===n||ot(n)?(e.consume(n),C):dt(n)?(l=O,R(n)):ht(n)?(e.consume(n),O):D(n)}function C(n){return 45===n||46===n||58===n||95===n||ut(n)?(e.consume(n),C):A(n)}function A(n){return 61===n?(e.consume(n),j):dt(n)?(l=A,R(n)):ht(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):dt(n)?(l=j,R(n)):ht(n)?(e.consume(n),j):(e.consume(n),i=void 0,F)}function T(n){return n===i?(e.consume(n),P):null===n?t(n):dt(n)?(l=T,R(n)):(e.consume(n),T)}function P(e){return 62===e||47===e||pt(e)?O(e):t(e)}function F(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||pt(n)?O(n):(e.consume(n),F)}function R(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),yt(e,I,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function I(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 nr={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($t(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(tr,n,o?n:u)(t):91===t?e.attempt(rr,n,o?e.attempt(ir,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=et(o,e.slice(r+1,r+l+3)),o=et(o,[["enter",s,n]]),o=et(o,Et(n.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),n)),o=et(o,[["exit",s,n],e[i-2],e[i-1],["exit",c,n]]),o=et(o,e.slice(i+1)),o=et(o,[["exit",u,n]]),Jn(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}},tr={tokenize:function(e,n,t){return function(n){return e.enter("resource"),e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),Ht(e,r)};function r(n){return 41===n?a(n):qt(e,i,t,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(n)}function i(n){return pt(n)?Ht(e,o)(n):a(n)}function o(n){return 34===n||39===n||40===n?Ut(e,Ht(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)}}},rr={tokenize:function(e,n,t){const r=this;return function(n){return Vt.call(r,e,i,t,"reference","referenceMarker","referenceString")(n)};function i(e){return r.parser.defined.includes($t(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(e):t(e)}}},ir={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 or={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:nr.resolveAll};const ar={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:nr.resolveAll};const lr={name:"lineEnding",tokenize:function(e,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),yt(e,n,"linePrefix")}}};const ur={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)):ht(l)?yt(e,o,"whitespace")(l):i<3||null!==l&&!dt(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 cr={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:at(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(ur,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 at(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(Ct,r.interrupt?t:c,e.attempt(sr,f,s))}function c(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function s(n){return ht(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(Ct,i,o);function i(t){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,yt(e,n,"listItemIndent",r.containerState.size+1)(t)}function o(t){return r.containerState.furtherBlankLines||!ht(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(fr,n,a)(t))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,yt(e,e.attempt(cr,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},sr={tokenize:function(e,n,t){const r=this;return yt(e,(function(e){const i=r.events[r.events.length-1];return!ht(e)&&i&&"listItemPrefixWhitespace"===i[1].type?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},fr={tokenize:function(e,n,t){const r=this;return yt(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 pr={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"),yt(e,u,"lineSuffix")(n))}function u(r){return null===r||dt(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 dr={tokenize:function(e){const n=this,t=e.attempt(Ct,(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,yt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Nt,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 hr={resolveAll:yr()},gr=vr("string"),mr=vr("text");function vr(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:yr("text"===e?br:void 0)}}function yr(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 br(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 xr(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){dt(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=et(a,e),d(),null!==a[a.length-1])return[];return v(n,0),c.events=Et(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&&Jn(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 kr={42:cr,43:cr,45:cr,48:cr,49:cr,50:cr,51:cr,52:cr,53:cr,54:cr,55:cr,56:cr,57:cr,62:At},wr={91:Wt},Er={[-2]:It,[-1]:It,32:It},_r={35:Zt,42:ur,45:[pr,ur],60:Qt,61:pr,95:ur,96:Rt,126:Rt},Sr={38:Ft,92:jt},Or={[-5]:lr,[-4]:lr,[-3]:lr,33:or,38:Ft,42:_t,60:[Ot,er],91:ar,92:[Kt,jt],93:nr,95:_t,96:Lt},Cr={null:[_t,hr]};var Ar=Object.freeze({__proto__:null,document:kr,contentInitial:wr,flowInitial:Er,flow:_r,string:Sr,text:Or,insideSpan:Cr,attentionMarkers:{null:[42,95]},disable:{null:[]}});const jr=/[\0\t\n\r]/g;function Tr(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 Pr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fr(e){return e.replace(Pr,Rr)}function Rr(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return Tr(t.slice(n?2:1),n?16:10)}return Pt(t)||e}const Ir={}.hasOwnProperty,Dr=function(e,n,t){return"string"!=typeof n&&(t=n,n=void 0),function(e={}){const n=Lr({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:V,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(I),codeTextData:j,data:j,definition:f(),definitionDestinationString:E,definitionLabelString:k,definitionTitleString:w,emphasis:f(),hardBreakEscape:f(P),hardBreakTrailing:f(P),htmlFlow:f(F),htmlFlowData:j,htmlText:f(R),htmlTextData:j,image:f(L),label:M,labelText:z,lineEnding:T,link:f(D),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:U,resourceDestinationString:N,resourceTitleString:B,resource:q,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]];Ir.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]||Mr).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+"` ("+gn({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]||Mr).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 Yn(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=$t(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 P(){o("atHardBreak",!0)}function F(){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 I(){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 z(e){const n=this.stack[this.stack.length-2],t=this.sliceSerialize(e);n.label=Fr(t),n.identifier=$t(t).toLowerCase()}function M(){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 q(){o("inReference")}function V(){o("referenceType","collapsed")}function U(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=$t(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=Tr(n,"characterReferenceMarkerNumeric"===t?10:16),o("characterReferenceType")):r=Pt(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(;!zt(e););return e}(function(e={}){const n={defined:[],lazy:{},constructs:tt([Ar].concat(e.extensions||[])),content:t(bt),document:t(xt),flow:t(dr),string:t(gr),text:t(mr)};return n;function t(e){return function(t){return xr(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(jr.lastIndex=s,u=jr.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 Lr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Lr(e,r):zr(e,r)}return e}function zr(e,n){let t;for(t in n)if(Ir.call(n,t)){const r="canContainEols"===t||"transforms"===t,i=(Ir.call(e,t)?e[t]:void 0)||(e[t]=r?[]:{}),o=n[t];o&&(r?e[t]=[...i,...o]:Object.assign(i,o))}}function Mr(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+gn({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+gn({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+gn({start:n.start,end:n.end})+") is still open")}function Nr(e){Object.assign(this,{Parser:n=>{const t=this.data("settings");return Dr(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Br=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 qr={}.hasOwnProperty;function Vr(e,n){const t=n.data||{};return"value"in n&&!(qr.call(t,"hName")||qr.call(t,"hProperties")||qr.call(t,"hChildren"))?e.augment(n,Br("text",n.value)):e(n,"div",$r(e,n))}function Ur(e,n,t){const r=n&&n.type;let i;if(!r)throw new Error("Expected node, got `"+n+"`");return i=qr.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?Hr:e.unknownHandler,("function"==typeof i?i:Vr)(e,n,t)}function Hr(e,n){return"children"in n?{...n,children:$r(e,n)}:n}function $r(e,n){const t=[];if("children"in n){const r=n.children;let i=-1;for(;++i<r.length;){const o=Ur(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 Wr=function(e){if(null==e)return Kr;if("string"==typeof e)return function(e){return Gr(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]=Wr(e[t]);return Gr(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 Gr(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 Gr(e);throw new Error("Expected function, string, or object as test")};function Gr(e){return function(...n){return Boolean(e.call(this,...n))}}function Kr(){return!0}const Zr=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);const i=Wr(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 Xr=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),Zr(e,n,(function(e,n){const r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},Yr=Jr("start"),Qr=Jr("end");function Jr(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 ei=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);var i=Wr(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 ni=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),ei(e,n,(function(e,n){var r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},ti={}.hasOwnProperty;function ri(e){return String(e||"").toUpperCase()}const ii={'"':"quot","&":"amp","<":"lt",">":"gt"};function oi(e,n){const t=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+ii[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&&ut(e.charCodeAt(t+1))&&ut(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 ai(e,n){const t=[];let r=-1;for(n&&t.push(Br("text","\n"));++r<e.length;)r&&t.push(Br("text","\n")),t.push(e[r]);return n&&e.length>0&&t.push(Br("text","\n")),t}function li(e,n){const t=String(n.identifier),r=oi(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"},[Br("text",String(o))])])}var ui={};function ci(e,n,t){var r,i,o,a,l,u="";for("string"!=typeof n&&(t=n,n=ci.defaultChars),void 0===t&&(t=!0),l=function(e){var n,t,r=ui[e];if(r)return r;for(r=ui[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}ci.defaultChars=";/?:@&=+$,-_.!~*'()#",ci.componentChars="-_.!~*'()";var si=ci;function fi(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return Br("text","!["+n.alt+r);const i=$r(e,n),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift(Br("text","["));const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push(Br("text",r)),i}function pi(e){const n=e.spread;return null==n?e.children.length>1:n}const di={blockquote:function(e,n){return e(n,"blockquote",ai($r(e,n),!0))},break:function(e,n){return[e(n,"br"),Br("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,[Br("text",t)]);return n.meta&&(o.data={meta:n.meta}),e(n.position,"pre",[o])},delete:function(e,n){return e(n,"del",$r(e,n))},emphasis:function(e,n){return e(n,"em",$r(e,n))},footnoteReference:li,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},li(e,{type:"footnoteReference",identifier:i,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,$r(e,n))},html:function(e,n){return e.dangerous?e.augment(n,Br("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return fi(e,n);const r={src:si(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:si(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",[Br("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return fi(e,n);const r={href:si(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,$r(e,n))},link:function(e,n){const t={href:si(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,$r(e,n))},listItem:function(e,n,t){const r=$r(e,n),i=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=pi(t[r]);return Boolean(n)}(t):pi(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(Br("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(Br("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(Br("text","\n")),e(n,"li",o,a)},list:function(e,n){const t={},r=n.ordered?"ol":"ul",i=$r(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,ai(i,!0))},paragraph:function(e,n){return e(n,"p",$r(e,n))},root:function(e,n){return e.augment(n,Br("root",ai($r(e,n))))},strong:function(e,n){return e(n,"strong",$r(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?$r(e,n):[]))}o[r]=e(t[r],"tr",ai(u,!0))}return e(n,"table",ai([e(o[0].position,"thead",ai([o[0]],!0))].concat(o[1]?e({start:Yr(o[1]),end:Qr(o[o.length-1])},"tbody",ai(o.slice(1),!0)):[]),!0))},text:function(e,n){return e.augment(n,Br("text",String(n.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))},thematicBreak:function(e,n){return e(n,"hr")},toml:hi,yaml:hi,definition:hi,footnoteDefinition:hi};function hi(){return null}const gi={}.hasOwnProperty;function mi(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 ni(e,"definition",(function(e){const t=ri(e.identifier);t&&!ti.call(n,t)&&(n[t]=e)})),function(e){const t=ri(e);return t&&ti.call(n,t)?n[t]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers={...di,...t.handlers},a.unknownHandler=t.unknownHandler,a.passThrough=t.passThrough,Xr(e,"footnoteDefinition",(e=>{const n=String(e.identifier).toUpperCase();gi.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:Yr(r),end:Qr(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 vi(e,n){const t=mi(e,n),r=Ur(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=$r(e,r),o=String(r.identifier),a=oi(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:ai(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:[Br("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:ai(t,!0)},{type:"text",value:"\n"}]}}(t);return i&&r.children.push(Br("text","\n"),i),Array.isArray(r)?{type:"root",children:r}:r}var yi=function(e,n){return e&&"run"in e?function(e,n){return(t,r,i)=>{e.run(vi(t,n),r,(e=>{i(e)}))}}(e,n):function(e){return n=>vi(n,e)}(e||n)};class bi{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function xi(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 bi(t,r,n)}function ki(e){return e.toLowerCase()}bi.prototype.property={},bi.prototype.normal={},bi.prototype.space=null;class wi{constructor(e,n){this.property=e,this.attribute=n}}wi.prototype.space=null,wi.prototype.boolean=!1,wi.prototype.booleanish=!1,wi.prototype.overloadedBoolean=!1,wi.prototype.number=!1,wi.prototype.commaSeparated=!1,wi.prototype.spaceSeparated=!1,wi.prototype.commaOrSpaceSeparated=!1,wi.prototype.mustUseProperty=!1,wi.prototype.defined=!1;let Ei=0;const _i=Pi(),Si=Pi(),Oi=Pi(),Ci=Pi(),Ai=Pi(),ji=Pi(),Ti=Pi();function Pi(){return 2**++Ei}var Fi=Object.freeze({__proto__:null,boolean:_i,booleanish:Si,overloadedBoolean:Oi,number:Ci,spaceSeparated:Ai,commaSeparated:ji,commaOrSpaceSeparated:Ti});const Ri=Object.keys(Fi);class Ii extends wi{constructor(e,n,t,r){let i=-1;if(super(e,n),Di(this,"space",r),"number"==typeof t)for(;++i<Ri.length;){const e=Ri[i];Di(this,Ri[i],(t&Fi[e])===Fi[e])}}}function Di(e,n,t){t&&(e[n]=t)}Ii.prototype.defined=!0;const Li={}.hasOwnProperty;function zi(e){const n={},t={};let r;for(r in e.properties)if(Li.call(e.properties,r)){const i=e.properties[r],o=new Ii(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[ki(r)]=r,t[ki(o.attribute)]=r}return new bi(n,t,e.space)}const Mi=zi({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}}),Ni=zi({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Bi(e,n){return n in e?e[n]:n}function qi(e,n){return Bi(e,n.toLowerCase())}const Vi=zi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:qi,properties:{xmlns:null,xmlnsXLink:null}}),Ui=zi({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Si,ariaAutoComplete:null,ariaBusy:Si,ariaChecked:Si,ariaColCount:Ci,ariaColIndex:Ci,ariaColSpan:Ci,ariaControls:Ai,ariaCurrent:null,ariaDescribedBy:Ai,ariaDetails:null,ariaDisabled:Si,ariaDropEffect:Ai,ariaErrorMessage:null,ariaExpanded:Si,ariaFlowTo:Ai,ariaGrabbed:Si,ariaHasPopup:null,ariaHidden:Si,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ai,ariaLevel:Ci,ariaLive:null,ariaModal:Si,ariaMultiLine:Si,ariaMultiSelectable:Si,ariaOrientation:null,ariaOwns:Ai,ariaPlaceholder:null,ariaPosInSet:Ci,ariaPressed:Si,ariaReadOnly:Si,ariaRelevant:null,ariaRequired:Si,ariaRoleDescription:Ai,ariaRowCount:Ci,ariaRowIndex:Ci,ariaRowSpan:Ci,ariaSelected:Si,ariaSetSize:Ci,ariaSort:null,ariaValueMax:Ci,ariaValueMin:Ci,ariaValueNow:Ci,ariaValueText:null,role:null}}),Hi=zi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:qi,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ji,acceptCharset:Ai,accessKey:Ai,action:null,allow:null,allowFullScreen:_i,allowPaymentRequest:_i,allowUserMedia:_i,alt:null,as:null,async:_i,autoCapitalize:null,autoComplete:Ai,autoFocus:_i,autoPlay:_i,capture:_i,charSet:null,checked:_i,cite:null,className:Ai,cols:Ci,colSpan:null,content:null,contentEditable:Si,controls:_i,controlsList:Ai,coords:Ci|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_i,defer:_i,dir:null,dirName:null,disabled:_i,download:Oi,draggable:Si,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_i,formTarget:null,headers:Ai,height:Ci,hidden:_i,high:Ci,href:null,hrefLang:null,htmlFor:Ai,httpEquiv:Ai,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:_i,itemId:null,itemProp:Ai,itemRef:Ai,itemScope:_i,itemType:Ai,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_i,low:Ci,manifest:null,max:null,maxLength:Ci,media:null,method:null,min:null,minLength:Ci,multiple:_i,muted:_i,name:null,nonce:null,noModule:_i,noValidate:_i,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:_i,optimum:Ci,pattern:null,ping:Ai,placeholder:null,playsInline:_i,poster:null,preload:null,readOnly:_i,referrerPolicy:null,rel:Ai,required:_i,reversed:_i,rows:Ci,rowSpan:Ci,sandbox:Ai,scope:null,scoped:_i,seamless:_i,selected:_i,shape:null,size:Ci,sizes:null,slot:null,span:Ci,spellCheck:Si,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ci,step:null,style:null,tabIndex:Ci,target:null,title:null,translate:null,type:null,typeMustMatch:_i,useMap:null,value:Si,width:Ci,wrap:null,align:null,aLink:null,archive:Ai,axis:null,background:null,bgColor:null,border:Ci,borderColor:null,bottomMargin:Ci,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_i,declare:_i,event:null,face:null,frame:null,frameBorder:null,hSpace:Ci,leftMargin:Ci,link:null,longDesc:null,lowSrc:null,marginHeight:Ci,marginWidth:Ci,noResize:_i,noHref:_i,noShade:_i,noWrap:_i,object:null,profile:null,prompt:null,rev:null,rightMargin:Ci,rules:null,scheme:null,scrolling:Si,standby:null,summary:null,text:null,topMargin:Ci,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ci,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_i,disableRemotePlayback:_i,prefix:null,property:null,results:Ci,security:null,unselectable:null}}),$i=zi({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:Bi,properties:{about:Ti,accentHeight:Ci,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ci,amplitude:Ci,arabicForm:null,ascent:Ci,attributeName:null,attributeType:null,azimuth:Ci,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ci,by:null,calcMode:null,capHeight:Ci,className:Ai,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:Ci,diffuseConstant:Ci,direction:null,display:null,dur:null,divisor:Ci,dominantBaseline:null,download:_i,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ci,enableBackground:null,end:null,event:null,exponent:Ci,externalResourcesRequired:null,fill:null,fillOpacity:Ci,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:ji,g2:ji,glyphName:ji,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ci,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ci,horizOriginX:Ci,horizOriginY:Ci,id:null,ideographic:Ci,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ci,k:Ci,k1:Ci,k2:Ci,k3:Ci,k4:Ci,kernelMatrix:Ti,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ci,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:Ci,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:Ci,overlineThickness:Ci,paintOrder:null,panose1:null,path:null,pathLength:Ci,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ai,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ci,pointsAtY:Ci,pointsAtZ:Ci,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ti,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ti,rev:Ti,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ti,requiredFeatures:Ti,requiredFonts:Ti,requiredFormats:Ti,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:Ci,specularExponent:Ci,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ci,strikethroughThickness:Ci,string:null,stroke:null,strokeDashArray:Ti,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ci,strokeOpacity:Ci,strokeWidth:null,style:null,surfaceScale:Ci,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ti,tabIndex:Ci,tableValues:null,target:null,targetX:Ci,targetY:Ci,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ti,to:null,transform:null,u1:null,u2:null,underlinePosition:Ci,underlineThickness:Ci,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ci,values:null,vAlphabetic:Ci,vMathematical:Ci,vectorEffect:null,vHanging:Ci,vIdeographic:Ci,version:null,vertAdvY:Ci,vertOriginX:Ci,vertOriginY:Ci,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ci,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Wi=/^data[-\w.:]+$/i,Gi=/-[a-z]/g,Ki=/[A-Z]/g;function Zi(e){return"-"+e.toLowerCase()}function Xi(e){return e.charAt(1).toUpperCase()}const Yi={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"},Qi=xi([Ni,Mi,Vi,Ui,Hi],"html"),Ji=xi([Ni,Mi,Vi,Ui,$i],"svg");function eo(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=>{Xr(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
23
  /**
24
24
  * @license React
25
25
  * react-is.production.min.js
@@ -28,5 +28,5 @@ var ln=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.con
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var Ki=Symbol.for("react.element"),Zi=Symbol.for("react.portal"),Xi=Symbol.for("react.fragment"),Yi=Symbol.for("react.strict_mode"),Qi=Symbol.for("react.profiler"),Ji=Symbol.for("react.provider"),eo=Symbol.for("react.context"),no=Symbol.for("react.server_context"),to=Symbol.for("react.forward_ref"),ro=Symbol.for("react.suspense"),io=Symbol.for("react.suspense_list"),oo=Symbol.for("react.memo"),ao=Symbol.for("react.lazy"),lo=Symbol.for("react.offscreen"),uo=Symbol.for("react.module.reference");function co(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case Ki:switch(e=e.type){case Xi:case Qi:case Yi:case ro:case io:return e;default:switch(e=e&&e.$$typeof){case no:case eo:case to:case ao:case oo:case Ji:return e;default:return n}}case Zi:return n}}}var so={ContextConsumer:eo,ContextProvider:Ji,Element:Ki,ForwardRef:to,Fragment:Xi,Lazy:ao,Memo:oo,Portal:Zi,Profiler:Qi,StrictMode:Yi,Suspense:ro,SuspenseList:io,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return co(e)===eo},isContextProvider:function(e){return co(e)===Ji},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ki},isForwardRef:function(e){return co(e)===to},isFragment:function(e){return co(e)===Xi},isLazy:function(e){return co(e)===ao},isMemo:function(e){return co(e)===oo},isPortal:function(e){return co(e)===Zi},isProfiler:function(e){return co(e)===Qi},isStrictMode:function(e){return co(e)===Yi},isSuspense:function(e){return co(e)===ro},isSuspenseList:function(e){return co(e)===io},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Xi||e===Qi||e===Yi||e===ro||e===io||e===lo||"object"==typeof e&&null!==e&&(e.$$typeof===ao||e.$$typeof===oo||e.$$typeof===Ji||e.$$typeof===eo||e.$$typeof===to||e.$$typeof===uo||void 0!==e.getModuleId)},typeOf:co},fo=we((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}()})),po=we((function(e){"production"===process.env.NODE_ENV?e.exports=so:e.exports=fo}));var ho=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,go=/\n/g,mo=/^\s*/,vo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yo=/^:\s*/,bo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xo=/^[;\s]*/,ko=/^\s+|\s+$/g,wo="";function Eo(e){return e?e.replace(ko,wo):wo}var _o=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(go);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(mo)}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;wo!=e.charAt(t)&&("*"!=e.charAt(t)||"/"!=e.charAt(t+1));)++t;if(t+=2,wo===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(vo);if(n){if(f(),!u(yo))return l("property missing ':'");var t=u(bo),r=e({type:"declaration",property:Eo(n[0].replace(ho,wo)),value:t?Eo(t[0].replace(ho,wo)):wo});return u(xo),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 So={}.hasOwnProperty,Oo=new Set(["table","thead","tbody","tfoot","tr"]);function Co(e,n){const t=[];let r,i=-1;for(;++i<n.children.length;)r=n.children[i],"element"===r.type?t.push(Ao(e,r,i,n)):"text"===r.type?"element"===n.type&&Oo.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 Ao(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=Wi,e.schema=s),n.properties)for(c in n.properties)So.call(n.properties,c)&&To(u,c,n.properties[c],e);"ol"!==l&&"ul"!==l||e.listDepth++;const f=Co(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&&So.call(i.components,l)?i.components[l]:l,h="string"==typeof d||d===o.Fragment;if(!po.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=jo(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=jo(r,n),u.siblingCount=jo(r)),h||(u.node=n),f.length>0?o.createElement(d,u,f):o.createElement(d,u)}function jo(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 To(e,n,t,r){const i=function(e,n){const t=hi(n);let r=n,i=gi;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&Ni.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Bi,Ui);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Bi.test(e)){let t=e.replace(qi,Vi);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}i=Ci}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{_o(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,Po)]=t}}(o)),i.space&&i.property?e[So.call(Hi,i.property)?Hi[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function Po(e,n){return n.toUpperCase()}const Fo={}.hasOwnProperty,Ro={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 Io(e){for(const n in Ro)if(Fo.call(Ro,n)&&Fo.call(e,n)){const e=Ro[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 Ro[n]}const n=Dn().use(Fr).use(e.remarkPlugins||[]).use(fi,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Gi,e),t=new bn;"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,{},Co({options:e,schema:$i,listDepth:0},r));return e.className&&(i=o.createElement("div",{className:e.className},i)),i}Io.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<an.length;){const e=an[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)")}},Io.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 Do={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||at(e)?t(e):n(e)}},partial:!0},Lo={tokenize:function(e,n,t){let r,i;return o;function o(n){return 38===n?e.check(No,l,a)(n):46===n||95===n?e.check(Mo,l,a)(n):null===n||it(n)||ut(n)||45!==n&&ct(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},zo={tokenize:function(e,n){let t=0;return r;function r(a){return 38===a?e.check(No,n,i)(a):(40===a&&t++,41===a?e.check(Mo,o,i)(a):Go(a)?n(a):Wo(a)?e.check(Mo,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},Mo={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(i){return Wo(i)?(e.consume(i),r):Go(i)?n(i):t(i)}},partial:!0},No={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(n){return Qn(n)?(e.consume(n),r):59===n?(e.consume(n),i):t(n)}function i(e){return Go(e)?n(e):t(e)}},partial:!0},Bo={tokenize:function(e,n,t){const r=this;return function(n){if(87!==n&&119!==n||!Zo(r.previous)||Qo(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Do,e.attempt(Lo,e.attempt(zo,i),t),t)(n)};function i(t){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(t)}},previous:Zo},qo={tokenize:function(e,n,t){const r=this;return function(n){if(72!==n&&104!==n||!Xo(r.previous)||Qo(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||it(n)||ut(n)||ct(n)?t(n):e.attempt(Lo,e.attempt(zo,p),t)(n)}function p(t){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(t)}},previous:Xo},Vo={tokenize:function(e,n,t){const r=this;let i,o;return function(n){if(!Ko(n)||!Yo(r.previous)||Qo(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(n)};function a(n){return Ko(n)?(e.consume(n),a):64===n?(e.consume(n),l):t(n)}function l(n){return 46===n?e.check(Mo,f,u)(n):45===n||95===n?e.check(Mo,t,c)(n):nt(n)?(!o&&Jn(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(Mo,t,u)(n):l(n)}function f(r){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(r)):t(r)}},previous:Yo},Uo={},Ho={text:Uo};let $o=48;for(;$o<123;)Uo[$o]=Vo,$o++,58===$o?$o=65:91===$o&&($o=97);function Wo(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 Go(e){return null===e||60===e||ot(e)}function Ko(e){return 43===e||45===e||46===e||95===e||nt(e)}function Zo(e){return null===e||40===e||42===e||95===e||126===e||ot(e)}function Xo(e){return null===e||!Qn(e)}function Yo(e){return 47!==e&&Xo(e)}function Qo(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}Uo[43]=Vo,Uo[45]=Vo,Uo[46]=Vo,Uo[95]=Vo,Uo[72]=[Vo,qo],Uo[104]=[Vo,qo],Uo[87]=[Vo,Bo],Uo[119]=[Vo,Bo];const Jo={tokenize:function(e,n,t){const r=this;return ft(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 ea(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=Mt(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 na(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 ta(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(Mt(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),ot(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 ra(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=Mt(r.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):t(n):at(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||at(n)||91===n||93===n||l>999?(e.exit("chunkString"),c(n)):(ot(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"),ft(e,d,"gfmFootnoteDefinitionWhitespace")):t(n)}function d(e){return i.includes(o)||i.push(o),n(e)}}function ia(e,n,t){return e.check(xt,n,e.attempt(Jo,n,t))}function oa(e){e.exit("gfmFootnoteDefinition")}function aa(e){return null===e||ot(e)||ut(e)?1:ct(e)?2:void 0}function la(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=aa(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=aa(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]];Wn(a,a.length,0,mt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),Wn(a,a.length,0,[["exit",o,n],["enter",e[t][1],n],["exit",e[t][1],n],["exit",i,n]]),Wn(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 ua={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||at(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):lt(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 lt(n)?(e.consume(n),s):(e.exit("whitespace"),c(n))}function f(n){return null===n||124===n||ot(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||at(n)?y(n):lt(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 lt(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||at(n)?y(n):lt(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(ca,b,e.attempt({tokenize:A,partial:!0},ft(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||at(n)?function(n){if(e.exit("tableRow"),null===n)return C(n);return e.check(ca,C,e.attempt({tokenize:A,partial:!0},ft(e,k,"linePrefix",4),C))(n)}(n):lt(n)?(e.enter("whitespace"),e.consume(n),_):124===n?w(n):(e.enter("temporaryTableCellContent"),S(n))}function _(n){return lt(n)?(e.consume(n),_):(e.exit("whitespace"),E(n))}function S(n){return null===n||124===n||ot(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"),ft(e,i,"linePrefix")};function i(i){if(r.parser.lazy[r.now().line]||null===i||at(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}}}},ca={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||ot(o)?n(o):t(o)}},partial:!0};const sa={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 ot(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:pa},n,t)):t(r)}}},fa={text:{91:sa}};function pa(e,n,t){const r=this;return ft(e,(function(e){const i=r.events[r.events.length-1];return(i&&"whitespace"===i[1].type||at(e))&&null!==e?n(e):t(e)}),"whitespace")}function da(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 ha={}.hasOwnProperty,ga=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=Nr(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([ma(e[t][0]),va(e[t][1])])}else{let t;for(t in e)ha.call(e,t)&&n.push([ma(t),va(e[t])])}return n}(o);let u=-1;for(;++u<l.length;)Gr(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 ma(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 va(e){return"function"==typeof e?e:()=>e}const ya="phrasing",ba=["autolink","link","image","label"],xa={transforms:[function(e){ga(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ea],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,_a]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:wa,literalAutolinkHttp:wa,literalAutolinkWww:wa},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)}}},ka={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ya,notInConstruct:ba},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ya,notInConstruct:ba},{character:":",before:"[ps]",after:"\\/",inConstruct:ya,notInConstruct:ba}]};function wa(e){this.config.enter.autolinkProtocol.call(this,e)}function Ea(e,n,t,r,i){let o="";if(!Sa(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=da(e,"("),i=da(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 _a(e,n,t,r){return!(!Sa(r,!0)||/[_-\d]$/.test(t))&&{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Sa(e,n){const t=e.input.charCodeAt(e.index-1);return(0===e.index||ut(t)||ct(t))&&(!n||47!==t)}function Oa(e){return e.label||!e.identifier?e.label||"":Sr(e.identifier)}function Ca(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 Aa(e,n,t){const r=n.indexStack,i=e.children||[],o=Ca(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 ja=/\r?\n|\r/g;function Ta(e,n){const t=[];let r,i=0,o=0;for(;r=ja.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 Pa(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 Fa(e,n){return Ra(e,n.inConstruct,!0)&&!Ra(e,n.notInConstruct,!1)}function Ra(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 Ia(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(!Fa(e.stack,n))continue;const t=Pa(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(Da);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(La(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(La(r.slice(u,c),t.after)),o.join("")}function Da(e,n){return e-n}function La(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 za(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,n,t,r){const i=Ca(r);let o=i.move("[^");const a=t.enter("footnoteDefinition"),l=t.enter("label");return o+=i.move(Ia(t,Oa(e),{...i.current(),before:o,after:"]"})),l(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(Ta(Aa(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=Ca(r);let o=i.move("[^");const a=t.enter("footnoteReference"),l=t.enter("reference");return o+=i.move(Ia(t,Oa(e),{...i.current(),before:o,after:"]"})),l(),a(),o+=i.move("]"),o}}function Ma(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 Na={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Ba={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:qa}};function qa(e,n,t,r){const i=Ma(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=Ma(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=Ma(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 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 Ua(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 Ha(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=Ua(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 $a(e){return e.length}function Wa(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}qa.peek=function(){return"~"},Ha.peek=function(){return"`"};const Ga={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:Za,tableHeader:Za,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let n=this.resume();this.getData("inTable")&&(n=n.replace(/\\([\\|])/g,Xa));this.stack[this.stack.length-1].value=n,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Ka,tableHeader:Ka,tableRow:Ka}};function Ka(e){this.exit(e)}function Za(e){this.enter({type:"tableCell",children:[]},e)}function Xa(e,n){return"|"===n?n:e}function Ya(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=Ha(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=Va(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=Va(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||$a,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]=Wa(t[f]);else{const e=Wa(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 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=/\r?\n|\r/g;function el(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=Qa(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=Ja.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=Qa(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 nl={exit:{taskListCheckValueChecked:rl,taskListCheckValueUnchecked:rl,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)}}},tl={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=Qa(r);o&&l.move(a);let u=el(e,n,t,{...r,...l.current()});o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return u}}};function rl(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function il(e={}){const n=this.data();function t(e,t){(n[e]?n[e]:n[e]=[]).push(t)}t("micromarkExtensions",function(e){return Zn([Ho,{document:{91:{tokenize:ra,continuation:{tokenize:ia},exit:oa}},text:{91:{tokenize:ta},93:{add:"after",tokenize:ea,resolveTo:na}}},la(e),ua,fa])}(e)),t("fromMarkdownExtensions",[xa,{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=Mt(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=Mt(this.sliceSerialize(e)).toLowerCase()}}},Na,Ga,nl]),t("toMarkdownExtensions",function(e){return{extensions:[ka,za(),Ba,Ya(e),tl]}}(e))}var ol={exports:{}};function al(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)||al(t)})),e}ol.exports=al,ol.exports.default=al;var ll=ol.exports;class ul{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function cl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function sl(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 fl=e=>!!e.kind;class pl{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=cl(e)}openNode(e){if(!fl(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){fl(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class dl{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=>{dl._collapse(e)})))}}class hl extends dl{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 pl(this,this.options).value()}finalize(){return!0}}function gl(e){return e?"string"==typeof e?e:e.source:null}function ml(e){return bl("(?=",e,")")}function vl(e){return bl("(?:",e,")*")}function yl(e){return bl("(?:",e,")?")}function bl(...e){return e.map((e=>gl(e))).join("")}function xl(...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=>gl(e))).join("|")+")"}function kl(e){return new RegExp(e.toString()+"|").exec("").length-1}const wl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function El(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t;let r=gl(e),i="";for(;r.length>0;){const e=wl.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 _l="[a-zA-Z]\\w*",Sl="[a-zA-Z_]\\w*",Ol="\\b\\d+(\\.\\d+)?",Cl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Al="\\b(0b[01]+)",jl={begin:"\\\\[\\s\\S]",relevance:0},Tl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[jl]},Pl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[jl]},Fl=function(e,n,t={}){const r=sl({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=xl("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:bl(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Rl=Fl("//","$"),Il=Fl("/\\*","\\*/"),Dl=Fl("#","$"),Ll={scope:"number",begin:Ol,relevance:0},zl={scope:"number",begin:Cl,relevance:0},Ml={scope:"number",begin:Al,relevance:0},Nl={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[jl,{begin:/\[/,end:/\]/,relevance:0,contains:[jl]}]}]},Bl={scope:"title",begin:_l,relevance:0},ql={scope:"title",begin:Sl,relevance:0},Vl={begin:"\\.\\s*"+Sl,relevance:0};var Ul=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:_l,UNDERSCORE_IDENT_RE:Sl,NUMBER_RE:Ol,C_NUMBER_RE:Cl,BINARY_NUMBER_RE:Al,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=bl(n,/.*\b/,e.binary,/\b.*/)),sl({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:jl,APOS_STRING_MODE:Tl,QUOTE_STRING_MODE:Pl,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:Fl,C_LINE_COMMENT_MODE:Rl,C_BLOCK_COMMENT_MODE:Il,HASH_COMMENT_MODE:Dl,NUMBER_MODE:Ll,C_NUMBER_MODE:zl,BINARY_NUMBER_MODE:Ml,REGEXP_MODE:Nl,TITLE_MODE:Bl,UNDERSCORE_TITLE_MODE:ql,METHOD_GUARD:Vl,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 Hl(e,n){"."===e.input[e.index-1]&&n.ignoreMatch()}function $l(e,n){void 0!==e.className&&(e.scope=e.className,delete e.className)}function Wl(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Hl,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function Gl(e,n){Array.isArray(e.illegal)&&(e.illegal=xl(...e.illegal))}function Kl(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 Zl(e,n){void 0===e.relevance&&(e.relevance=1)}const Xl=(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=bl(t.beforeMatch,ml(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},Yl=["of","and","for","in","not","or","if","then","parent","list","value"],Ql="keyword";function Jl(e,n,t=Ql){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,Jl(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,eu(t[0],t[1])]}))}}function eu(e,n){return n?Number(n):function(e){return Yl.includes(e.toLowerCase())}(e)?0:1}const nu={},tu=e=>{console.error(e)},ru=(e,...n)=>{console.log(`WARN: ${e}`,...n)},iu=(e,n)=>{nu[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),nu[`${e}/${n}`]=!0)},ou=new Error;function au(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+=kl(n[e-1]);e[t]=a,e[t]._emit=o,e[t]._multi=!0}function lu(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 tu("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ou;if("object"!=typeof e.beginScope||null===e.beginScope)throw tu("beginScope must be object"),ou;au(e,e.begin,{key:"beginScope"}),e.begin=El(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw tu("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ou;if("object"!=typeof e.endScope||null===e.endScope)throw tu("endScope must be object"),ou;au(e,e.end,{key:"endScope"}),e.end=El(e.end,{joinWith:""})}}(e)}function uu(e){function n(n,t){return new RegExp(gl(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+=kl(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=n(El(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=sl(e.classNameAliases||{}),function t(i,o){const a=i;if(i.isCompiled)return a;[$l,Kl,lu,Xl].forEach((e=>e(i,o))),e.compilerExtensions.forEach((e=>e(i,o))),i.__beforeBegin=null,[Wl,Gl,Zl].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=Jl(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=gl(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 sl(e,{variants:null},n)})));if(e.cachedVariants)return e.cachedVariants;if(cu(e))return sl(e,{starts:e.starts?sl(e.starts):null});if(Object.isFrozen(e))return sl(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 cu(e){return!!e&&(e.endsWithParent||cu(e.starts))}class su extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const fu=cl,pu=sl,du=Symbol("nomatch");var hu=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:hl};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):(iu("10.7.0","highlight(lang, code, ...args) has been deprecated."),iu("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 ul(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):(P=!0,0)}function y(e){const n=e[0],r=t.substr(e.index),i=m(_,e,r);if(!i)return du;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 ul(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!==du)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 tu(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=uu(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,P=!1;try{for(_.matcher.considerAll();;){T++,P?P=!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:fu(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:fu(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:fu(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||(ru(o.replace("{}",t[1])),ru("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 su("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 iu("10.7.0","highlightBlock will be removed entirely in v12.0"),iu("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){l=pu(l,e)},initHighlighting:()=>{h(),iu("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){h(),iu("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,r){let o=null;try{o=r(e)}catch(e){if(tu("Language definition for '{}' could not be registered.".replace("{}",t)),!i)throw e;tu(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:pu,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:bl,lookahead:ml,either:xl,optional:yl,anyNumberOfTimes:vl};for(const e in Ul)"object"==typeof Ul[e]&&ll(Ul[e]);return Object.assign(e,Ul),e}({}),gu=hu;hu.HighlightJS=hu,hu.default=hu;var mu=gu,vu=we((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 yu=Object.assign(bu(Error),{eval:bu(EvalError),range:bu(RangeError),reference:bu(ReferenceError),syntax:bu(SyntaxError),type:bu(TypeError),uri:bu(URIError)});function bu(e){return n.displayName=e.displayName||e.name,n;function n(n,...t){const r=n?vu(n,...t):n;return new e(r)}}const xu={}.hasOwnProperty,ku="hljs-";function wu(e,n,t={}){let r=t.prefix;if("string"!=typeof e)throw yu("Expected `string` for name, got `%s`",e);if(!mu.getLanguage(e))throw yu("Unknown language: `%s` is not registered",e);if("string"!=typeof n)throw yu("Expected `string` for value, got `%s`",n);null==r&&(r=ku),mu.configure({__emitter:Eu,classPrefix:r});const i=mu.highlight(n,{language:e,ignoreIllegals:!0});if(mu.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 Eu{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 _u={highlight:wu,highlightAuto:function(e,n={}){const t=n.subset||mu.listLanguages();n.prefix;let r=-1,i={type:"root",data:{language:null,relevance:0},children:[]};if("string"!=typeof e)throw yu("Expected `string` for value, got `%s`",e);for(;++r<t.length;){const o=t[r];if(!mu.getLanguage(o))continue;const a=wu(o,e,n);a.data.relevance>i.data.relevance&&(i=a)}return i},registerLanguage:function(e,n){mu.registerLanguage(e,n)},registered:function(e){return Boolean(mu.getLanguage(e))},listLanguages:function(){return mu.listLanguages()},registerAlias:function(e,n){if("string"==typeof e)mu.registerAliases(n,{languageName:e});else{let n;for(n in e)xu.call(e,n)&&mu.registerAliases(e[n],{languageName:n})}}},Su=function(e){if(null==e)return Cu;if("string"==typeof e)return function(e){return n;function n(n){return Cu(n)&&n.tagName===e}}(e);if("object"==typeof e)return function(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Su(e[t]);return Ou(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 Ou(e);throw new Error("Expected function, string, or array as test")};function Ou(e){return function(n,...t){return Cu(n)&&Boolean(e.call(this,n,...t))}}function Cu(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}var Au=function(e,n,t){var r=Nr(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 ju=/\n/g,Tu=/[\t ]+/g,Pu=Su("br"),Fu=Su("p"),Ru=Su(["th","td"]),Iu=Su("tr"),Du=Su(["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}]),Lu=Su(["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 zu(e,n={}){const t=e.children||[],r=Lu(e),i=Vu(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1});let o,a,l,u=-1;if("text"===e.type||"comment"===e.type)return Nu(e,{whitespace:i,breakBefore:!0,breakAfter:!0});for(o=[];++u<t.length;)o=o.concat(Mu(t[u],e,{whitespace:i,breakBefore:u?null:r,breakAfter:u<t.length-1?Pu(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 Mu(e,n,t){return"element"===e.type?function(e,n,t){const r=Vu(e,t),i=e.children||[];let o,a,l=-1,u=[];if(Du(e))return u;Pu(e)||Iu(e)&&Au(n,e,Iu)?a="\n":Fu(e)?(o=2,a=2):Lu(e)&&(o=1,a=1);for(;++l<i.length;)u=u.concat(Mu(i[l],e,{whitespace:r,breakBefore:l?void 0:o,breakAfter:l<i.length-1?Pu(i[l+1]):a}));Ru(e)&&Au(n,e,Ru)&&u.push("\t");o&&u.unshift(o);a&&u.push(a);return u}(e,n,t):"text"===e.type?["normal"===t.whitespace?Nu(e,t):Bu(e)]:[]}function Nu(e,n){const t=String(e.value),r=[],i=[];let o,a,l,u=0,c=-1;for(;u<t.length;)ju.lastIndex=u,o=ju.exec(t),a=o?o.index:t.length,r.push(qu(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 Bu(e){return String(e.value)}function qu(e,n,t){const r=[];let i,o,a=0;for(;a<e.length;)Tu.lastIndex=a,i=Tu.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 Vu(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 Uu={}.hasOwnProperty;function Hu(e={}){const{aliases:n,languages:t,prefix:r,plainText:i,ignoreMissing:o,subset:a}=e;let l="hljs";if(n&&_u.registerAlias(n),t){let e;for(e in t)Uu.call(t,e)&&_u.registerLanguage(e,t[e])}if(r){const e=r.indexOf("-");l=e>-1?r.slice(0,e):r}return e=>{Ur(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?_u.highlight(c,zu(u),{prefix:r}):_u.highlightAuto(zu(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 $u=function(e){var n=e.content;return o.createElement(Io,{remarkPlugins:[il],rehypePlugins:[Hu]},n)};$u.propTypes={content:m.string};var Wu=function(e){var n=e.value,t=e.step;return o.createElement(on,{value:Re(n,t)})};Wu.propTypes={value:m.oneOfType([m.number,m.string]),step:m.oneOfType([m.number,m.string])};var Gu=function(e){var n,t=e.value,r=e.options;return o.createElement(on,{value:null===(n=r.find((function(e){return e.value===t})))||void 0===n?void 0:n.label})};Gu.propTypes={value:m.string,options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})).isRequired};var Ku=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},Zu=function(e){var n=e.variant,t=e.size,r=e.name,i=e.value,a=e.defaultValue,l=e.label,u=e.labelPlacement;return"checkbox"===n?o.createElement(S,{label:l,labelPlacement:u||"end",disabled:!0,control:o.createElement(R,{size:t,name:r,checked:Ku(i,a)})}):o.createElement(S,{label:l,labelPlacement:u||"end",disabled:!0,control:o.createElement(I,{size:t,name:r,checked:Ku(i,a)})})};Zu.propTypes={variant:m.string,size:m.oneOf(["small","medium"]),name:m.string.isRequired,value:m.bool,defaultValue:m.bool,label:m.string,labelPlacement:m.string};var Xu=H((function(){return{formRepeater:{padding:0,margin:0}}})),Yu=function(e,n){return n&&void 0!==n[e]?n[e]:e},Qu=function(e){var n=e.value,t=e.options,r=Xu();return o.createElement(M,{className:r.formRepeater,dense:!0},n&&n.map((function(e,n){return o.createElement(N,{key:"entry-".concat(n)},o.createElement(B,{primary:Yu(e,t),style:{margin:0}}))})))};Qu.propTypes={value:m.arrayOf(m.oneOfType([m.string,m.number])),options:m.shape({})};var Ju=function(e){var n=e.subject,t=e.label;return o.createElement(x,{mb:2},o.createElement(q,{severity:"warning"},o.createElement(k,{variant:"body1"},n?"".concat(n," "):"",o.createElement("span",{style:{fontWeight:"bold"}},t)," ist ausgeblendet.")))};Ju.propTypes={subject:m.string,label:m.string.isRequired};var ec=function(){var n=de(),t=a(),r=e(t,2),i=r[0],l=r[1];return u((function(){if(n)return n.subscribe((function(){var e=n.getState().expiredNotification;e&&(l(e),n.setState({expiredNotification:void 0}))}))}),[n]),!!n&&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)}})},nc={default:Fe,string:Fe,text:Fe,number:De,select:Ve,boolean:He,array:Ke,readOnlyDefault:on,readOnlyString:on,readOnlyText:on,readOnlyMarkdown:$u,readOnlyNumber:Wu,readOnlySelect:Gu,readOnlyBoolean:Zu,readOnlyArray:Qu,apDefault:U,apString:U,apNumber:De,apSelect:Ve,apBoolean:He,field:Te,readOnlyField:tn,sectionCard:ye,sectionBlock:xe,hiddenData:Ju,reservationExpiredNotification:ec},tc=(0).constructor,rc=tc.isFinite;tc.isInteger;var ic=[].constructor.isArray;function oc(e){return null!==e&&"object"==typeof e}function ac(e,n){return void 0===n&&(n=0),"string"==typeof e&&e.length>=n}function lc(e){return rc(e)}function uc(e){return ic(e)}function cc(e,n){return oc(e)&&n in e}var sc="'\"`",fc=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 pc(e){var n=e.charAt(0),t=e.substr(-1);if(sc.includes(n)||sc.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 dc(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 hc(e){if(!ac(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++,dc(o,e.substring(a,n),i),o.push(pc(t)),i=!0}return dc(o,e.substring(r),i)}function gc(e,n,t){if(void 0===t&&(t={}),!oc(t))throw new TypeError("get expects an object option. Got "+typeof t);var r=t.depth,i=void 0===r?10:r;if(!lc(i)||i<=0)throw new RangeError("Expected a positive number for depth. Got "+i);var o=Array.isArray(n)?n:hc.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(!cc(l,s)){if(t.propsExist)throw new ReferenceError(s+' is not defined in the scope at path: "'+a()+'"');return}l=l[s]}return l}hc.cached=function(e){var n=fc.get(e);return void 0===n&&(n=hc(e),fc.set(e,n)),n};var mc=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]=gc(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)}))},!oc(e)||!uc(e.strings)||!uc(e.varNames)||e.strings.length!==e.varNames.length+1)throw new TypeError("Invalid tokens object");if(!oc(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]=hc.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 vc(e,n){void 0===n&&(n={});var t=function(e,n){if(void 0===n&&(n={}),!ac(e))throw new TypeError("The template parameter must be a string. Got a "+typeof e);if(!oc(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(!uc(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(!ac(a,1)||!ac(l,1)||a===l)throw new TypeError('The open and close symbols should be two distinct non-empty strings. Got "'+a+'" and "'+l+'"');if(!lc(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 mc(t,n)}function yc(e,n,t){return vc(e,t).render(n)}var bc=f(!1),xc=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 kc(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 wc(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?kc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Ec(e){var n=function(e,n){if("object"!==te(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===te(n)?n:String(n)}var _c=function(n){var o=n.reservationId,c=n.url,s=n.token,f=n.label,d=n.fieldNames,h=n.setFieldValues,g=n.fetchAdapter,m=de(),v=a(!1),y=e(v,2),b=y[0],x=y[1],k=l(),w=l(),E=l({reservationId:o,url:c,token:s,label:f,fieldNames:d,setFieldValues:h});E.current={reservationId:o,url:c,token:s,label:f,fieldNames:d,setFieldValues:h,fetchAdapter:g};var _=p((function(){w.current&&(clearInterval(w.current),w.current=void 0)}),[]),S=function(){var e={};return E.current.fieldNames.forEach((function(n){e[n]=void 0})),e},O=p(r(i.mark((function e(){var n,t,r,a,l,u,c,s,f,p=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(p.length>0&&void 0!==p[0]?p[0]:{}).skipServerCall,t=void 0!==n&&n,_(),r=m.getState(),a=r.reservations[o]){e.next=7;break}return e.abrupt("return");case 7:if(l=r.reservations,u=$(l,[o].map(Ec)),m.setState({reservations:u}),E.current.setFieldValues(S()),t||!a.releaseUrl){e.next=24;break}if(e.prev=11,c=E.current,s=c.fetchAdapter,f=c.token,!s){e.next=18;break}return e.next=16,s("DELETE",a.releaseUrl);case 16:e.next=20;break;case 18:return e.next=20,xc(a.releaseUrl,{method:"DELETE",token:f});case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(11);case 24:case"end":return e.stop()}}),e,null,[[11,22]])}))),[m,o,_]),C=p((function(){_(),w.current=setInterval((function(){var e=m.getState(),n=e.reservations[o];if(n&&"active"===n.status){var r=n.remaining-1;if(r<=0){_();var i=e.reservations;i[o];var a=$(i,[o].map(Ec));if(m.setState({reservations:wc(wc({},a),{},t({},o,wc(wc({},n),{},{remaining:0,status:"expired"}))),expiredNotification:{reservationId:o,label:E.current.label||o}}),E.current.setFieldValues(S()),n.releaseUrl){var l=E.current,u=l.fetchAdapter,c=l.token;u?u("DELETE",n.releaseUrl).catch((function(){})):xc(n.releaseUrl,{method:"DELETE",token:c}).catch((function(){}))}setTimeout((function(){var e=m.getState().reservations,n=e[o],t=$(e,[o].map(Ec));n&&"expired"===n.status&&m.setState({reservations:t})}),100)}else m.setState({reservations:wc(wc({},e.reservations),{},t({},o,wc(wc({},n),{},{remaining:r})))})}else _()}),1e3)}),[m,o,_]),A=p(r(i.mark((function e(){var n,r,a,l,u,c,s,f;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=m.getState().reservations[o])||"active"!==n.status){e.next=4;break}return e.next=4,O();case 4:if(k.current&&k.current.abort(),k.current=new AbortController,x(!0),e.prev=7,a=E.current,l=a.url,u=a.token,c=a.fetchAdapter,"function"!=typeof l){e.next=15;break}return e.next=12,l(k.current.signal);case 12:s=e.sent,e.next=24;break;case 15:if(!c){e.next=21;break}return e.next=18,c("GET",l,{signal:k.current.signal});case 18:s=e.sent,e.next=24;break;case 21:return e.next=23,xc(l,{token:u,signal:k.current.signal});case 23:s=e.sent;case 24:k.current=void 0,f={voucher:s.voucher,fields:s.fields,releaseUrl:null===(r=s.links)||void 0===r?void 0:r.release,validFor:s.validFor,remaining:s.validFor,status:"active"},E.current.setFieldValues(s.fields),m.setState({reservations:wc(wc({},m.getState().reservations),{},t({},o,f))}),C(),e.next=34;break;case 31:e.prev=31,e.t0=e.catch(7),"AbortError"!==e.t0.name&&console.error("Reservation generate failed:",e.t0);case 34:x(!1);case 35:case"end":return e.stop()}}),e,null,[[7,31]])}))),[m,o,O,C]);return u((function(){return function(){_(),k.current&&k.current.abort();var e=m.getState(),n=e.reservations[o];if(n&&"active"===n.status&&n.releaseUrl){var t=E.current,r=t.fetchAdapter,i=t.token;r?r("DELETE",n.releaseUrl).catch((function(){})):xc(n.releaseUrl,{method:"DELETE",token:i}).catch((function(){}));var a=e.reservations;a[o];var l=$(a,[o].map(Ec));m.setState({reservations:l})}}}),[m,o,_]),{loading:b,generate:A,release:O}},Sc=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"),_=se().setFieldValues,S=de(),O=_c({reservationId:n,url:s,token:f,label:r||n,fieldNames:[n],setFieldValues:_}),C=O.generate,A=O.release,j=O.loading,T=le(S,(function(e){return e.reservations[n]})),F=T&&"active"===T.status,R=l();u((function(){F&&w&&(R.current=T.fields[n])}),[F,w,T,n]);var I={};return F&&!w&&(I.disabled=!0),F&&w&&(I.onChange=function(e){F&&w&&e.target.value!==R.current&&A(),c&&c(e)}),o.createElement(x,{sx:{width:"100%"}},o.Children.map(a,(function(e){return o.isValidElement(e)?o.cloneElement(e,I):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}}},F&&o.createElement(k,{variant:"caption",sx:function(e){return{color:T.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")}(T.remaining)),!F&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!F&&!j&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(Y,null),disabled:i,onClick:C},d),j&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(P,{size:16,thickness:4}),disabled:!0},d),F&&!j&&o.createElement(D,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(Q,null),disabled:i,onClick:A},E)))};Sc.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 Oc=["message","options","validator"];function Cc(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 Ac=function(e,n){return e&&e.errors?e.errors.map((function(e){var r=e.message,i=e.options,o=e.validator,a=$(e,Oc),l=r;return i&&i.human?l=i.human:n[o]&&(l=yc(n[o],i)),function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Cc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}({message:l,options:i,validator:o},a)})):[]},jc=o.memo((function(e){var n,t=e.adornmentEntry,r=e.mainFieldName,i=e.position,o=e.inputVariant,a=ce(),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=le(l,(function(e){return e.preSubmitValidation})),v=le(l,(function(e){return e.data[g]})),y=le(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:Ac(y,s),label:(null==c||null===(n=c.labels)||void 0===n?void 0:n[g])||g})})),Tc=["message","options","validator"],Pc=["hidden","hideLabel","autoGenerate"];function Fc(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 Rc(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Fc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Ic=function(e){var n,r,i,a=e.fieldEntry,l=e.allFields,u=ce(),s=u.store,f=u.schema,p=u.translations,d=u.errorMessages,h=u.readOnly,g=u.inputVariant,m=u.inputSize,v=u.variant,y=u.resolvedSlots,b=u.slotProps,x=u.fieldSlots,k=u.fieldSlotProps,w=u.renderComponentMap,E=u.handleFieldChange,_=u.handleFocus,S=u.handleBlur,O=u.obscuredFields,C=u.propDisabled,A=function(e){return"string"==typeof e?e:Array.isArray(e)?"@@render"===e[0]||"@@markdown"===e[0]?e[1]:e[0]:null}(a),j=Array.isArray(a)&&"@@markdown"===a[0],T=Array.isArray(a)&&"@@render"===a[0],P=!T&&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(bc),R=le(s,(function(e){return e.data[A]})),I=le(s,(function(e){var n;return null===(n=e.results)||void 0===n?void 0:n[A]})),D=le(s,(function(e){var n;return null===(n=e.fieldStates)||void 0===n?void 0:n[A]})),L=le(s,(function(e){return e.preSubmitValidation}));if(j){var z=y.readOnlyMarkdown;return o.createElement(z,{content:a[2]})}if(P)return!1;var M=function(e){return"string"==typeof e?{}:Array.isArray(e)?"@@render"===e[0]?e[2]||{}:"@@markdown"===e[0]?{}:e[1]||{}:{}}(a),N=M.hidden,B=M.hideLabel,q=M.autoGenerate,V=$(M,Pc);if(!0===N)return!1;var U=L||C||F;if(!I)return!1;var H=I.prohibited,W=I.required,G=I.optional,K=I.hasErrors,Z=I.data;if(!0===H||!W&&!G&&void 0===Z)return!1;if(h&&(""===R||void 0===R))return!1;if(h&&Array.isArray(O)&&O.includes(A)){var X,Y=y.hiddenData,Q=!0!==B&&((null==p||null===(X=p.labels)||void 0===X?void 0:X[A])||A);return o.createElement(Y,{subject:"Das Feld",label:Q})}var J=f.properties[A];if(!J)return!1;var ne,te,re=J.type,ie=J.default,oe=J.allowNew;try{var ae=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:A,isRender:T,schemaType:re,resolvedSlots:y,fieldSlots:x,renderComponentMap:w});ne=ae.component,te=ae.props}catch(e){return!1}var ue=!0!==B&&((null==p||null===(i=p.labels)||void 0===i?void 0:i[A])||A),se=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 Rc(Rc({},e),{},t({},n,(null==o||null===(i=o[r])||void 0===i?void 0:i[n])||n))}),{}):void 0}({schemaType:re,fieldName:A,schemaField:J,translations:p}),fe=re||"default";Array.isArray(re)&&(fe="select"),T&&(fe="@@render");var pe=(null==b?void 0:b[fe])||{},de=(null==k?void 0:k[A])||{},he=Rc(Rc(Rc(Rc(Rc({size:m},te),pe),de),V),void 0!==oe&&{allowNew:oe}),ge=function(e,n){return e&&e.errors?e.errors.map((function(e){var t=e.message,r=e.options,i=e.validator,o=$(e,Tc),a=t;return r&&r.human?a=r.human:n[i]&&(a=yc(n[i],r)),Rc({message:a,options:r,validator:i},o)})):[]}(I,d);if(h){var me=y.readOnlyField,ve=Array.isArray(re)?"select":re||"string",ye=ve.charAt(0).toUpperCase()+ve.slice(1),be="readOnly".concat(ye),xe=x[A]||y[be]||y.readOnlyDefault;return o.createElement(me,ee({type:ve,name:A,label:ue,value:R,options:se,required:W,hasErrors:K,errors:ge,size:m,component:xe,componentProps:he},D))}var ke=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(jc,{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:A,inputVariant:g}),we=y.field,Ee=o.createElement(we,{variant:g,formVariant:v,type:fe,name:A,label:ue,defaultValue:ie,value:R,options:se,required:W,hasErrors:K,errors:ge,validating:null==D?void 0:D.validating,dirty:null==D?void 0:D.dirty,component:ne,componentProps:he,prepend:ke.prepend,append:ke.append,disabled:U,onChange:E,onFocus:_,onBlur:S});return q?o.createElement(Sc,{fieldName:A,config:q,label:ue,disabled:U,onChange:E},Ee):Ee},Dc=o.memo(Ic),Lc=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"),_=se().setFieldValues,S=ce().fetchAdapter,O=de(),C=_c({reservationId:n,url:s,token:f,label:r||n,fieldNames:i,setFieldValues:_,fetchAdapter:S}),A=C.generate,j=C.release,T=C.loading,F=le(O,(function(e){return e.reservations[n]})),R=F&&"active"===F.status,I=l();u((function(){I.current=R?F.fields:void 0}),[R,F]);var L=o.useCallback((function(e){var n={};return i.forEach((function(t){n[t]=e.data[t]})),n}),[i]),z=fe(L,(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(R&&w&&I.current){var e=I.current;i.some((function(n){return z[n]!==e[n]}))&&j()}}),[R,w,i,z,j]),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}}},R&&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)),!R&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!R&&!T&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(Y,null),disabled:a,onClick:A},d),T&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(P,{size:16,thickness:4}),disabled:!0},d),R&&!T&&o.createElement(D,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(Q,null),disabled:a,onClick:j},E)),o.createElement(bc.Provider,{value:R&&!w},c))};Lc.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 zc=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)},Mc=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]&&r[1]?n.push(r[1]):"@@render"!==r[0]&&"@@markdown"!==r[0]&&n.push(r[0]))}return n},Nc=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,f=n.textAlign,p=n.nested,d=void 0===p?0:p,h=ce(),g=h.variant,m=h.resolvedSlots,v=h.store,y=s((function(){return Mc(a)}),[a]);if(le(v,(function(e){return y.length>0&&y.every((function(n){var t,r;return!0===(null===(t=e.results)||void 0===t||null===(r=t[n])||void 0===r?void 0:r.prohibited)}))})))return!1;var b=0===d&&"card"===g?m.sectionCard:xe,x=a.map((function(n,t){return!1!==n&&(n&&"object"===te(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:f,nested:(d||0)+1}):o.createElement(Dc,{key:zc(n,t),fieldEntry:n,allFields:a}))}));return o.createElement(b,{groupId:t,label:r,labelVariant:u,desc:i,descVariant:c,textAlign:f},l&&o.createElement(Lc,{groupId:t,config:l,label:r,fieldNames:Mc(a)},x),!l&&x)};Nc.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.arrayOf(m.oneOfType([m.string,m.arrayOf(m.any),m.shape({})])).isRequired,autoGenerate:m.shape({url:m.string.isRequired,token:m.string,allowManualOverride:m.bool,allowRegenerate:m.bool}),nested:m.number};var Bc=o.memo(Nc),qc=function(n){var t=n.store,r=n.errorMessages,i=n.translations,o=a((function(){return{hasErrors:t.getState().hasErrors,errors:t.getState().errors}})),l=e(o,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&&ae(e.errors,r)?e:{hasErrors:n,errors:r}}))}))}),[t]),!!c.hasErrors&&React.createElement("div",{className:"errors"},c.errors.map((function(e){var n,t=e.path,o=e.message,a=e.options,l=e.validator,u=o;return a&&a.human?u=a.human:r[l]&&(u=yc(r[l],a)),React.createElement("div",{key:"form-error-".concat(t,"-").concat(l),className:"error"},React.createElement("div",{className:"field"},(null==i||null===(n=i.labels)||void 0===n?void 0:n[t])||t),React.createElement("div",{className:"message"},u))})))};function Vc(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 Uc(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Vc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}qc.propTypes={store:m.shape({getState:m.func.isRequired,subscribe:m.func.isRequired}).isRequired,errorMessages:m.shape({}).isRequired,translations:m.shape({}).isRequired};var Hc=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)}}(),$c=function(e,n){if(!e)return n;for(var t={},r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];t[o]=n[o],e[o]&&ae(e[o],n[o])&&(t[o]=e[o])}return t},Wc=function(e){for(var n=Object.values(e),t=0;t<n.length;t++)if(n[t].dirty)return!0;return!1},Gc=function(e,n,t,r){var i;if(null!=t&&t[e])return t[e];var o=null==n||null===(i=n[e])||void 0===i?void 0:i.type;return o&&null!=r&&r[o]?r[o]:ae},Kc=function(e,n,t,r){var i;if(null!=t&&t[e])return[].concat(t[e]);var o=null==n||null===(i=n[e])||void 0===i?void 0:i.type;return o&&null!=r&&r[o]?[].concat(r[o]):[]},Zc=function(e,n,r,i){var o=function(e,n){return v(e,n)}(e,Uc(Uc({},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 Uc(Uc({},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 Uc(Uc({},e),n)}),{});return{preSubmitValidation:!1,hasErrors:a,isDirty:Wc(f),errors:l,results:u,data:p,asyncErrors:[],fieldStates:f}},Xc=function(a){var c=a.id,f=a.variant,d=void 0===f?"card":f,g=a.inputVariant,m=a.inputSize,y=a.groupLabelVariant,b=a.groupDescVariant,x=a.textAlign,k=a.readOnly,w=a.submitOnEnter,E=a.listErrors,_=a.schema,S=a.renderSchema,O=a.data,C=a.transientData,A=a.fieldStates,j=a.disabled,T=a.translations,P=a.slots,F=a.slotProps,R=a.fieldSlots,I=a.fieldSlotProps,D=a.renderComponentMap,L=a.fetchAdapter,z=a.equality,M=a.fieldEquality,N=a.validators,B=a.fieldValidators,q=a.obscuredFields,V=a.obscuredGroups,U=a.errorMessages,H=void 0===U?{}:U,$=a.asyncValidators,W=a.onSubmit,G=a.onReset,K=a.onStatusUpdate,Z=a.onStateChange,X=a.onUnmount,Y=l(null);null===Y.current&&(Y.current=new me(Zc(_,O,C,A)));var Q=Y.current,J=l(null);null===J.current&&(J.current=new me({reservations:{},expiredNotification:void 0}));var ee=J.current,ne=l(O),te=l({onSubmit:W,onReset:G,onStatusUpdate:K,onStateChange:Z,onUnmount:X});h((function(){te.current={onSubmit:W,onReset:G,onStatusUpdate:K,onStateChange:Z,onUnmount:X}}));var re=l(j);h((function(){re.current=j}));var ie=p((function(e,n){var t=te.current,r=t.onStateChange,i=t.onStatusUpdate,o=t.onSubmit,a=Q.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)}),[Q]),oe=l(null),le=l(null),ce=l(null),se=p(function(){var e=r(i.mark((function e(t,r,o){var a,l,u,c,s,f,p,d,h,g,m,y,b,x,k,w;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(le.current&&le.current.abort(),le.current=new AbortController,a=le.current.signal,l=v(_,t),u=Q.getState().results,l.results=$c(u,l.results),c=[],s=[],f=new Set,Object.keys(t).forEach((function(e){var n;void 0!==(null===(n=l.results[e])||void 0===n?void 0:n.sanitizedData)&&Kc(e,_.properties,B,N).forEach((function(n){var r=n(t[e],t);r&&"function"==typeof r.then?(f.add(e),s.push(r.then((function(n){return!n||{path:e,validator:"External",message:n}})))):r&&c.push({path:e,validator:"External",message:r})}))})),c.forEach((function(e){var t=l.results[e.path];t&&(t.errors=[].concat(n(t.errors||[]),[e]),t.hasErrors=!0,t.sanitizedData=void 0)})),c.length>0&&(l.errors=[].concat(n(l.errors),c),l.hasErrors=l.errors.length>0),$||0!==s.length){e.next=18;break}return p=Q.getState().preSubmitValidation,Q.setState(Uc(Uc({},l),{},{data:t,fieldStates:r,asyncErrors:[],preSubmitValidation:!1,isDirty:Wc(r)})),ie(l,p),le.current=void 0,e.abrupt("return");case 18:if(d=$?Object.entries($).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!==d.length||0!==s.length){e.next=25;break}return h=Q.getState().preSubmitValidation,Q.setState(Uc(Uc({},l),{},{data:t,fieldStates:r,asyncErrors:o||[],preSubmitValidation:!1,isDirty:Wc(r)})),ie(Uc(Uc({},l),{},{asyncErrors:o||[]}),h),le.current=void 0,e.abrupt("return");case 25:return g=Uc({},r),d.forEach((function(e){var n=e.path;g[n]=Uc(Uc({},g[n]),{},{validating:!0})})),f.forEach((function(e){g[e]=Uc(Uc({},g[e]),{},{validating:!0})})),Q.setState({data:t,fieldStates:g}),e.prev=29,e.next=32,Promise.all([].concat(n(d.map((function(e){var n=e.path,r=e.func;return a.aborted?Promise.resolve(!0):t[n]?Hc(n,(function(){return r(n,t[n])})):Promise.resolve(!0)}))),s));case 32:m=e.sent,e.next=40;break;case 35:if(e.prev=35,e.t0=e.catch(29),"AbortError"!==e.t0.name){e.next=39;break}return e.abrupt("return");case 39:throw e.t0;case 40:if(!a.aborted){e.next=42;break}return e.abrupt("return");case 42:y=m.filter((function(e){return!0!==e})),b=Uc({},l.results),y.forEach((function(e){var t=b[e.path];t&&(t.errors=[].concat(n(t.errors||[]),[e]),t.hasErrors=!0,t.sanitizedData=void 0)})),x=[].concat(n(l.errors),n(y)),k=Uc(Uc({},l),{},{hasErrors:x.length>0,errors:x,asyncErrors:y,results:b}),w=Q.getState().preSubmitValidation,Q.setState(Uc(Uc({},k),{},{data:t,fieldStates:r,preSubmitValidation:!1,isDirty:Wc(r)})),ie(k,w),le.current=void 0;case 51:case"end":return e.stop()}}),e,null,[[29,35]])})));return function(n,t,r){return e.apply(this,arguments)}}(),[_,$,N,B,Q,ie]),fe=p((function(e,n,t){Q.setState({data:e,fieldStates:n,isDirty:Wc(n)}),ce.current&&cancelAnimationFrame(ce.current),ce.current=requestAnimationFrame((function(){ce.current=void 0,se(e,n,t)}))}),[Q,se]),de=p((function(e,n,t){return ce.current&&(cancelAnimationFrame(ce.current),ce.current=void 0),se(e,n,t)}),[se]),he=p((function(e){var n=e.target,r=n.name,i=n.value,o=Q.getState(),a=o.preSubmitValidation,l=o.data,u=o.asyncErrors,c=o.fieldStates;if(!a&&!re.current){var s=!Gc(r,_.properties,M,z)(ne.current[r],i),f=Uc(Uc({},l),{},t({},r,i)),p=Uc(Uc({},c),{},t({},r,Uc(Uc({},c[r]),{},{dirty:s,clean:!s}))),d=u.filter((function(e){return e.path!==r}));fe(f,p,d)}}),[Q,_,z,M,fe]),ge=p((function(n){var t=Q.getState(),r=t.preSubmitValidation,i=t.data,o=t.asyncErrors,a=t.fieldStates;if(!r&&!re.current){var l=Object.entries(n),u=Uc({},i),c=Uc({},a),s=[];l.forEach((function(n){var t=e(n,2),r=t[0],i=t[1],o=!Gc(r,_.properties,M,z)(ne.current[r],i);u[r]=i,c[r]=Uc(Uc({},c[r]),{},{dirty:o,clean:!o}),s.push(r)}));var f=o.filter((function(e){var n=e.path;return!s.includes(n)}));fe(u,c,f)}}),[Q,_,z,M,fe]),ve=p((function(e){var n=e.target.name;Q.setState((function(e){return{fieldStates:Uc(Uc({},e.fieldStates),{},t({},n,Uc(Uc({},e.fieldStates[n]),{},{active:!0,inactive:!1})))}}))}),[Q]),ye=p((function(e){var n=e.target.name;Q.setState((function(e){return{fieldStates:Uc(Uc({},e.fieldStates),{},t({},n,Uc(Uc({},e.fieldStates[n]),{},{active:!1,inactive:!0,touched:!0,pristine:!1})))}}))}),[Q]),be=p((function(){var e=Q.getState(),n=e.hasErrors,t=e.fieldStates,r=te.current.onStatusUpdate;r&&r({preSubmitValidation:!1,hasErrors:n,isDirty:Wc(t)})}),[Q]),xe=p((function(){ne.current=O,Q.setState(Zc(_,O,C)),be()}),[O,_,C,Q,be]),ke=p((function(e){var n=Q.getState(),t=n.preSubmitValidation,r=n.data,i=n.asyncErrors,o=n.fieldStates;if(!t&&!re.current){var a=Uc({},r),l=[],u=Uc({},o);e.forEach((function(e){var n=e.name,t=e.value,c=t;_.properties[n]&&"boolean"===_.properties[n].type&&(c=!0!==r[n]);var s=!Gc(n,_.properties,M,z)(ne.current[n],t);l=i.filter((function(e){return e.path!==n})).concat(l),u[n]=Uc(Uc({},o[n]),{},{dirty:s,clean:!s}),a[n]=c})),de(a,u,l)}}),[Q,_,z,M,de]),we=p((function(){var e=Q.getState(),n=e.errors,t=e.hasErrors,r=e.data,i=e.asyncErrors,o=e.fieldStates,a=te.current.onStatusUpdate;Q.setState({preSubmitValidation:!0});var l=Wc(o);a&&a({preSubmitValidation:!0,hasErrors:t,errors:n,isDirty:l}),de(r,o,i)}),[Q,de]);u((function(){return be(),function(){ce.current&&cancelAnimationFrame(ce.current);var e=ee.getState().reservations;Object.values(e).forEach((function(e){"active"===e.status&&e.releaseUrl&&xc(e.releaseUrl,{method:"DELETE"}).catch((function(){}))}));var n=Q.getState(),t=n.hasErrors,r=n.isDirty,i=n.data,o=n.fieldStates,a=te.current.onUnmount;a&&a({hasErrors:t,isDirty:r,data:i,fieldStates:o})}}),[]);var Ee=l(O);u((function(){ae(Ee.current,O)||(Ee.current=O,ne.current=O,Q.setState(Zc(_,O,C)),be())}),[O]);var _e=l(C);u((function(){if(C&&!ae(C,_e.current)){_e.current=C;var n=Object.entries(C).filter((function(n){var t=e(n,2),r=t[0];return t[1]!==Ee.current[r]})).map((function(n){var t=e(n,2);return{name:t[0],value:t[1]}}));n.length>0&&ke(n)}}),[C]);var Se=s((function(){return{submitForm:we,resetForm:function(){xe(),te.current.onReset&&te.current.onReset()},setFieldValue:function(e,n){return he({target:{name:e,value:n}})},setFieldValues:ge}}),[we,xe,he,ge]),Oe=s((function(){return Uc(Uc({},nc),P)}),[P]),Ce=s((function(){return{store:Q,api:Se,id:c,schema:_,translations:T||{},errorMessages:H||{},readOnly:k||!1,inputVariant:g||"standard",inputSize:m||"medium",variant:d||"card",propDisabled:j||!1,resolvedSlots:Oe,slotProps:F||{},fieldSlots:R||{},fieldSlotProps:I||{},renderComponentMap:D||{},fetchAdapter:L,handleFocus:ve,handleBlur:ye,handleFieldChange:he,obscuredFields:q||[],obscuredGroups:V||[]}}),[Q,Se,c,_,T,H,k,g,m,d,j,Oe,F,R,I,D,L,ve,ye,he,q,V]);u((function(){var e=oe.current;if(w&&e){var n=function(e){"Enter"===e.key&&"TEXTAREA"!==e.target.tagName&&(re.current||(e.preventDefault(),we()))};return e.addEventListener("keydown",n),function(){return e.removeEventListener("keydown",n)}}}),[w,we]);var Ae=Q.getState().preSubmitValidation||j,je=Oe.reservationExpiredNotification;return o.createElement(ue.Provider,{value:Ce},o.createElement(pe.Provider,{value:ee},o.createElement("form",{ref:oe,id:c,className:"formulator-form",disabled:Ae,onSubmit:function(e){e.preventDefault(),we()},onReset:function(e){e.preventDefault(),xe(),te.current.onReset&&te.current.onReset()}},S.title&&o.createElement("h5",null,S.title),S.description&&o.createElement("h5",null,S.description),S.groups.map((function(e){var n=e.id,t=e.label,r=e.description,i=e.fields,a=e.autoGenerate;return k&&Array.isArray(V)&&V.includes(n)?o.createElement(Ju,{key:"hidden-group-".concat(n),subject:"Der Bereich",label:t}):o.createElement(Bc,{key:"form-section-".concat(n),sectionId:n,label:t,desc:r,fields:i,autoGenerate:a,labelVariant:y,descVariant:b,textAlign:x,nested:0})})),E&&o.createElement(qc,{store:Q,errorMessages:H||{},translations:T||{}})),o.createElement(je,null)))};Xc.propTypes={id:m.string.isRequired,variant:m.oneOf(["card","block"]),inputVariant:m.oneOf(["standard","filled","outlined"]),inputSize:m.oneOf(["small","medium"]),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.shape({}).isRequired,data:m.shape({}).isRequired,transientData:m.shape({}),fieldStates:m.shape({}),renderSchema:m.shape({}).isRequired,translations:m.shape({}).isRequired,asyncValidators:m.shape({}),errorMessages:m.shape({}),slots:m.shape({}),slotProps:m.shape({}),fieldSlots:m.shape({}),fieldSlotProps:m.shape({}),renderComponentMap:m.shape({}),fetchAdapter:m.func,equality:m.shape({}),fieldEquality:m.shape({}),validators:m.shape({}),fieldValidators:m.shape({}),obscuredFields:m.arrayOf(m.string),obscuredGroups:m.arrayOf(m.string),onSubmit:m.func,onReset:m.func,onStatusUpdate:m.func,onStateChange:m.func,onUnmount:m.func};var Yc=["dirty","hasErrors","required","label","value","variant","options","baererToken","formElement"];function Qc(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 Jc=function(n){var c=n.dirty,s=n.hasErrors,f=n.required,d=n.label,h=n.value,m=n.variant,v=n.options,y=n.baererToken,b=n.formElement,x=$(n,Yc),k=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=l(),u=a(!1),c=e(u,2),s=c[0],f=c[1],d=a(),h=e(d,2),g=h[0],m=h[1],v=p(r(i.mark((function e(){var r,a;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(n)){e.next=3;break}return m(n),e.abrupt("return");case 3:if("string"==typeof n||"function"==typeof n){e.next=6;break}return m([]),e.abrupt("return");case 6:return r=n,"string"==typeof n&&(r=function(e){return xc(n,{token:t.token,signal:e})}),o.current=new AbortController,m(void 0),f(!0),e.prev=11,e.next=14,r(o.current.signal);case 14:if(a=e.sent,o.current=void 0,Array.isArray(a)){e.next=18;break}throw new Error("autocomplete fetcher returned a non array value");case 18:m(a),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(11),f(!1);case 24:f(!1);case 25:case"end":return e.stop()}}),e,null,[[11,21]])}))),[n,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,S=k.fetch,O=k.abort,C=k.options;return u((function(){S()}),[]),C?o.createElement(_,{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?Qc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qc(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:S,abort:O},x))):o.createElement(_,{error:c&&s,margin:"dense",fullWidth:!0,required:f},o.createElement(j,{label:d,variant:m,value:h,disabled:!0,InputProps:{endAdornment:o.createElement(E,{position:"end"},o.createElement(P,{size:20,thickness:4}))}}))};Jc.propTypes={name:m.string,label:m.string,value:m.oneOfType([m.string,m.number,m.bool,m.shape({}),m.arrayOf(m.any)]),options:m.oneOfType([m.arrayOf(m.shape({})),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.arrayOf(m.shape({})),onChange:m.func,formElement:m.elementType};var es=ie(),ns=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(re,{id:n,value:h||"",fullWidth:!0,disabled:u,onOpen:g,onClose:m,onChange:function(e,n){if("string"==typeof n){var r=Array.isArray(s)&&s.find((function(e){return e.entry===n}));v(c||r?t({},f,n):void 0)}else c&&n&&n.inputValue?v(t({},f,n.inputValue)):v(n)},filterOptions:function(e,n){var r=es(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(E,{position:"end"},o.createElement(P,{size:20,thickness:4}))}),o.createElement(j,ee({},n,{required:t,label:r,variant:a,onChange:i,InputProps:u}))}({required:l,disabled:u,label:r,onInputChange:y,variant:i,loading:a},e)}})};ns.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.arrayOf(m.shape({})).isRequired,searchKey:m.string.isRequired,renderOption:m.func.isRequired,renderNewOption:m.func.isRequired,value:m.oneOfType([m.string,m.shape({})]),onOpen:m.func,onClose:m.func,onChange:m.func,onInputChange:m.func};var ts=W((function(e){return{default:{margin:0,marginBottom:e.spacing(1),userSelect:"none","&.clickable":{cursor:"pointer"}},sharpEdges:{borderRadius:0},spanSolitaryToCard:{marginTop:-1*e.spacing(2),marginRight:-1*e.spacing(2),marginBottom:-1*e.spacing(2),marginLeft:-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:oe(e.palette.primary.main,.12)},unchecked:{backgroundColor:e.palette.grey[200]}}})),rs=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=ts(),h=G(),g=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t}(l,u),m={paddingX:1,paddingY:1};return i&&(m.paddingLeft=2),o.createElement(w,{elevation:0,className:Ee(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",sx:m},s&&g&&o.createElement(x,{mr:2,mb:-.5},o.createElement(J,{fontSize:i?"large":"medium",htmlColor:h.palette.text.secondary})),s&&!g&&o.createElement(x,{mr:2,mb:-.5},o.createElement(Q,{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}})}})))};rs.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{Sc as FormAutoGenerate,Me as FormAutocomplete,He as FormBoolean,Te as FormField,Lc as FormGroupAutoGenerate,De as FormNumber,Jc as FormOptionsLoader,rs as FormPrimaryToggle,Zu as FormReadOnlyBoolean,tn as FormReadOnlyField,$u as FormReadOnlyMarkdown,Wu as FormReadOnlyNumber,Qu as FormReadOnlyRepeater,Gu as FormReadOnlySelect,on as FormReadOnlyText,Ke as FormRepeater,Be as FormSelect,Fe as FormText,Xc as FormulatorForm,Ju as HiddenData,ec as ReservationExpiredSnackbar,ns as SelectOrCreate,se as useFormContext,fe as useFormSelector};
31
+ */var no=Symbol.for("react.element"),to=Symbol.for("react.portal"),ro=Symbol.for("react.fragment"),io=Symbol.for("react.strict_mode"),oo=Symbol.for("react.profiler"),ao=Symbol.for("react.provider"),lo=Symbol.for("react.context"),uo=Symbol.for("react.server_context"),co=Symbol.for("react.forward_ref"),so=Symbol.for("react.suspense"),fo=Symbol.for("react.suspense_list"),po=Symbol.for("react.memo"),ho=Symbol.for("react.lazy"),go=Symbol.for("react.offscreen"),mo=Symbol.for("react.module.reference");function vo(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case no:switch(e=e.type){case ro:case oo:case io:case so:case fo:return e;default:switch(e=e&&e.$$typeof){case uo:case lo:case co:case ho:case po:case ao:return e;default:return n}}case to:return n}}}var yo={ContextConsumer:lo,ContextProvider:ao,Element:no,ForwardRef:co,Fragment:ro,Lazy:ho,Memo:po,Portal:to,Profiler:oo,StrictMode:io,Suspense:so,SuspenseList:fo,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return vo(e)===lo},isContextProvider:function(e){return vo(e)===ao},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===no},isForwardRef:function(e){return vo(e)===co},isFragment:function(e){return vo(e)===ro},isLazy:function(e){return vo(e)===ho},isMemo:function(e){return vo(e)===po},isPortal:function(e){return vo(e)===to},isProfiler:function(e){return vo(e)===oo},isStrictMode:function(e){return vo(e)===io},isSuspense:function(e){return vo(e)===so},isSuspenseList:function(e){return vo(e)===fo},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===ro||e===oo||e===io||e===so||e===fo||e===go||"object"==typeof e&&null!==e&&(e.$$typeof===ho||e.$$typeof===po||e.$$typeof===ao||e.$$typeof===lo||e.$$typeof===co||e.$$typeof===mo||void 0!==e.getModuleId)},typeOf:vo},bo=je((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}()})),xo=je((function(e){"production"===process.env.NODE_ENV?e.exports=yo:e.exports=bo}));var ko=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,wo=/\n/g,Eo=/^\s*/,_o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,So=/^:\s*/,Oo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Co=/^[;\s]*/,Ao=/^\s+|\s+$/g,jo="";function To(e){return e?e.replace(Ao,jo):jo}var Po=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(wo);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(Eo)}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;jo!=e.charAt(t)&&("*"!=e.charAt(t)||"/"!=e.charAt(t+1));)++t;if(t+=2,jo===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(_o);if(n){if(f(),!u(So))return l("property missing ':'");var t=u(Oo),r=e({type:"declaration",property:To(n[0].replace(ko,jo)),value:t?To(t[0].replace(ko,jo)):jo});return u(Co),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 Fo={}.hasOwnProperty,Ro=new Set(["table","thead","tbody","tfoot","tr"]);function Io(e,n){const t=[];let r,i=-1;for(;++i<n.children.length;)r=n.children[i],"element"===r.type?t.push(Do(e,r,i,n)):"text"===r.type?"element"===n.type&&Ro.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 Do(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=Ji,e.schema=s),n.properties)for(c in n.properties)Fo.call(n.properties,c)&&zo(u,c,n.properties[c],e);"ol"!==l&&"ul"!==l||e.listDepth++;const f=Io(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&&Fo.call(i.components,l)?i.components[l]:l,h="string"==typeof d||d===o.Fragment;if(!xo.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=Lo(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=Lo(r,n),u.siblingCount=Lo(r)),h||(u.node=n),f.length>0?o.createElement(d,u,f):o.createElement(d,u)}function Lo(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 zo(e,n,t,r){const i=function(e,n){const t=ki(n);let r=n,i=wi;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&Wi.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Gi,Xi);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Gi.test(e)){let t=e.replace(Ki,Zi);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}i=Ii}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{Po(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,Mo)]=t}}(o)),i.space&&i.property?e[Fo.call(Yi,i.property)?Yi[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function Mo(e,n){return n.toUpperCase()}const No={}.hasOwnProperty,Bo={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 qo(e){for(const n in Bo)if(No.call(Bo,n)&&No.call(e,n)){const e=Bo[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 Bo[n]}const n=Vn().use(Nr).use(e.remarkPlugins||[]).use(yi,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(eo,e),t=new On;"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,{},Io({options:e,schema:Qi,listDepth:0},r));return e.className&&(i=o.createElement("div",{className:e.className},i)),i}qo.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<dn.length;){const e=dn[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)")}},qo.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 Vo={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||dt(e)?t(e):n(e)}},partial:!0},Uo={tokenize:function(e,n,t){let r,i;return o;function o(n){return 38===n?e.check(Wo,l,a)(n):46===n||95===n?e.check($o,l,a)(n):null===n||ft(n)||gt(n)||45!==n&&mt(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},Ho={tokenize:function(e,n){let t=0;return r;function r(a){return 38===a?e.check(Wo,n,i)(a):(40===a&&t++,41===a?e.check($o,o,i)(a):ea(a)?n(a):Jo(a)?e.check($o,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},$o={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(i){return Jo(i)?(e.consume(i),r):ea(i)?n(i):t(i)}},partial:!0},Wo={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(n){return ot(n)?(e.consume(n),r):59===n?(e.consume(n),i):t(n)}function i(e){return ea(e)?n(e):t(e)}},partial:!0},Go={tokenize:function(e,n,t){const r=this;return function(n){if(87!==n&&119!==n||!ta(r.previous)||oa(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Vo,e.attempt(Uo,e.attempt(Ho,i),t),t)(n)};function i(t){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(t)}},previous:ta},Ko={tokenize:function(e,n,t){const r=this;return function(n){if(72!==n&&104!==n||!ra(r.previous)||oa(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||ft(n)||gt(n)||mt(n)?t(n):e.attempt(Uo,e.attempt(Ho,p),t)(n)}function p(t){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(t)}},previous:ra},Zo={tokenize:function(e,n,t){const r=this;let i,o;return function(n){if(!na(n)||!ia(r.previous)||oa(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(n)};function a(n){return na(n)?(e.consume(n),a):64===n?(e.consume(n),l):t(n)}function l(n){return 46===n?e.check($o,f,u)(n):45===n||95===n?e.check($o,t,c)(n):ut(n)?(!o&&at(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($o,t,u)(n):l(n)}function f(r){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(r)):t(r)}},previous:ia},Xo={},Yo={text:Xo};let Qo=48;for(;Qo<123;)Xo[Qo]=Zo,Qo++,58===Qo?Qo=65:91===Qo&&(Qo=97);function Jo(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 ea(e){return null===e||60===e||pt(e)}function na(e){return 43===e||45===e||46===e||95===e||ut(e)}function ta(e){return null===e||40===e||42===e||95===e||126===e||pt(e)}function ra(e){return null===e||!ot(e)}function ia(e){return 47!==e&&ra(e)}function oa(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}Xo[43]=Zo,Xo[45]=Zo,Xo[46]=Zo,Xo[95]=Zo,Xo[72]=[Zo,Ko],Xo[104]=[Zo,Ko],Xo[87]=[Zo,Go],Xo[119]=[Zo,Go];const aa={tokenize:function(e,n,t){const r=this;return yt(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 la(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=$t(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 ua(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 ca(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($t(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),pt(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 sa(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=$t(r.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):t(n):dt(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||dt(n)||91===n||93===n||l>999?(e.exit("chunkString"),c(n)):(pt(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"),yt(e,d,"gfmFootnoteDefinitionWhitespace")):t(n)}function d(e){return i.includes(o)||i.push(o),n(e)}}function fa(e,n,t){return e.check(Ct,n,e.attempt(aa,n,t))}function pa(e){e.exit("gfmFootnoteDefinition")}function da(e){return null===e||pt(e)||gt(e)?1:mt(e)?2:void 0}function ha(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=da(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=da(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]];Jn(a,a.length,0,Et(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),Jn(a,a.length,0,[["exit",o,n],["enter",e[t][1],n],["exit",e[t][1],n],["exit",i,n]]),Jn(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 ga={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||dt(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):ht(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 ht(n)?(e.consume(n),s):(e.exit("whitespace"),c(n))}function f(n){return null===n||124===n||pt(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||dt(n)?y(n):ht(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 ht(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||dt(n)?y(n):ht(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(ma,b,e.attempt({tokenize:A,partial:!0},yt(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||dt(n)?function(n){if(e.exit("tableRow"),null===n)return C(n);return e.check(ma,C,e.attempt({tokenize:A,partial:!0},yt(e,k,"linePrefix",4),C))(n)}(n):ht(n)?(e.enter("whitespace"),e.consume(n),_):124===n?w(n):(e.enter("temporaryTableCellContent"),S(n))}function _(n){return ht(n)?(e.consume(n),_):(e.exit("whitespace"),E(n))}function S(n){return null===n||124===n||pt(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"),yt(e,i,"linePrefix")};function i(i){if(r.parser.lazy[r.now().line]||null===i||dt(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}}}},ma={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||pt(o)?n(o):t(o)}},partial:!0};const va={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 pt(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:ba},n,t)):t(r)}}},ya={text:{91:va}};function ba(e,n,t){const r=this;return yt(e,(function(e){const i=r.events[r.events.length-1];return(i&&"whitespace"===i[1].type||dt(e))&&null!==e?n(e):t(e)}),"whitespace")}function xa(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 ka={}.hasOwnProperty,wa=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=Wr(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([Ea(e[t][0]),_a(e[t][1])])}else{let t;for(t in e)ka.call(e,t)&&n.push([Ea(t),_a(e[t])])}return n}(o);let u=-1;for(;++u<l.length;)ei(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 Ea(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 _a(e){return"function"==typeof e?e:()=>e}const Sa="phrasing",Oa=["autolink","link","image","label"],Ca={transforms:[function(e){wa(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ta],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Pa]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:ja,literalAutolinkHttp:ja,literalAutolinkWww:ja},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)}}},Aa={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Sa,notInConstruct:Oa},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Sa,notInConstruct:Oa},{character:":",before:"[ps]",after:"\\/",inConstruct:Sa,notInConstruct:Oa}]};function ja(e){this.config.enter.autolinkProtocol.call(this,e)}function Ta(e,n,t,r,i){let o="";if(!Fa(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=xa(e,"("),i=xa(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 Pa(e,n,t,r){return!(!Fa(r,!0)||/[_-\d]$/.test(t))&&{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Fa(e,n){const t=e.input.charCodeAt(e.index-1);return(0===e.index||gt(t)||mt(t))&&(!n||47!==t)}function Ra(e){return e.label||!e.identifier?e.label||"":Fr(e.identifier)}function Ia(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 Da(e,n,t){const r=n.indexStack,i=e.children||[],o=Ia(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 La=/\r?\n|\r/g;function za(e,n){const t=[];let r,i=0,o=0;for(;r=La.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 Ma(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 Na(e,n){return Ba(e,n.inConstruct,!0)&&!Ba(e,n.notInConstruct,!1)}function Ba(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 qa(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(!Na(e.stack,n))continue;const t=Ma(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(Va);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(Ua(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(Ua(r.slice(u,c),t.after)),o.join("")}function Va(e,n){return e-n}function Ua(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 Ha(){return e.peek=function(){return"["},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:function(e,n,t,r){const i=Ia(r);let o=i.move("[^");const a=t.enter("footnoteDefinition"),l=t.enter("label");return o+=i.move(qa(t,Ra(e),{...i.current(),before:o,after:"]"})),l(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(za(Da(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=Ia(r);let o=i.move("[^");const a=t.enter("footnoteReference"),l=t.enter("reference");return o+=i.move(qa(t,Ra(e),{...i.current(),before:o,after:"]"})),l(),a(),o+=i.move("]"),o}}function $a(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 Wa={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Ga={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Ka}};function Ka(e,n,t,r){const i=$a(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=$a(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=$a(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 Za(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 Xa(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 Ya(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=Xa(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 Qa(e){return e.length}function Ja(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}Ka.peek=function(){return"~"},Ya.peek=function(){return"`"};const el={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:tl,tableHeader:tl,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let n=this.resume();this.getData("inTable")&&(n=n.replace(/\\([\\|])/g,rl));this.stack[this.stack.length-1].value=n,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:nl,tableHeader:nl,tableRow:nl}};function nl(e){this.exit(e)}function tl(e){this.enter({type:"tableCell",children:[]},e)}function rl(e,n){return"|"===n?n:e}function il(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=Ya(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=Za(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=Za(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||Qa,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]=Ja(t[f]);else{const e=Ja(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 ol(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 al=/\r?\n|\r/g;function ll(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=ol(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=al.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=ol(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 ul={exit:{taskListCheckValueChecked:sl,taskListCheckValueUnchecked:sl,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)}}},cl={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=ol(r);o&&l.move(a);let u=ll(e,n,t,{...r,...l.current()});o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return u}}};function sl(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function fl(e={}){const n=this.data();function t(e,t){(n[e]?n[e]:n[e]=[]).push(t)}t("micromarkExtensions",function(e){return tt([Yo,{document:{91:{tokenize:sa,continuation:{tokenize:fa},exit:pa}},text:{91:{tokenize:ca},93:{add:"after",tokenize:la,resolveTo:ua}}},ha(e),ga,ya])}(e)),t("fromMarkdownExtensions",[Ca,{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=$t(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=$t(this.sliceSerialize(e)).toLowerCase()}}},Wa,el,ul]),t("toMarkdownExtensions",function(e){return{extensions:[Aa,Ha(),Ga,il(e),cl]}}(e))}var pl={exports:{}};function dl(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)||dl(t)})),e}pl.exports=dl,pl.exports.default=dl;var hl=pl.exports;class gl{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ml(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function vl(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 yl=e=>!!e.kind;class bl{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=ml(e)}openNode(e){if(!yl(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){yl(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class xl{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=>{xl._collapse(e)})))}}class kl extends xl{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 bl(this,this.options).value()}finalize(){return!0}}function wl(e){return e?"string"==typeof e?e:e.source:null}function El(e){return Ol("(?=",e,")")}function _l(e){return Ol("(?:",e,")*")}function Sl(e){return Ol("(?:",e,")?")}function Ol(...e){return e.map((e=>wl(e))).join("")}function Cl(...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=>wl(e))).join("|")+")"}function Al(e){return new RegExp(e.toString()+"|").exec("").length-1}const jl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Tl(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t;let r=wl(e),i="";for(;r.length>0;){const e=jl.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 Pl="[a-zA-Z]\\w*",Fl="[a-zA-Z_]\\w*",Rl="\\b\\d+(\\.\\d+)?",Il="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Dl="\\b(0b[01]+)",Ll={begin:"\\\\[\\s\\S]",relevance:0},zl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ll]},Ml={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ll]},Nl=function(e,n,t={}){const r=vl({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=Cl("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:Ol(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Bl=Nl("//","$"),ql=Nl("/\\*","\\*/"),Vl=Nl("#","$"),Ul={scope:"number",begin:Rl,relevance:0},Hl={scope:"number",begin:Il,relevance:0},$l={scope:"number",begin:Dl,relevance:0},Wl={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Ll,{begin:/\[/,end:/\]/,relevance:0,contains:[Ll]}]}]},Gl={scope:"title",begin:Pl,relevance:0},Kl={scope:"title",begin:Fl,relevance:0},Zl={begin:"\\.\\s*"+Fl,relevance:0};var Xl=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:Pl,UNDERSCORE_IDENT_RE:Fl,NUMBER_RE:Rl,C_NUMBER_RE:Il,BINARY_NUMBER_RE:Dl,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=Ol(n,/.*\b/,e.binary,/\b.*/)),vl({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Ll,APOS_STRING_MODE:zl,QUOTE_STRING_MODE:Ml,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:Nl,C_LINE_COMMENT_MODE:Bl,C_BLOCK_COMMENT_MODE:ql,HASH_COMMENT_MODE:Vl,NUMBER_MODE:Ul,C_NUMBER_MODE:Hl,BINARY_NUMBER_MODE:$l,REGEXP_MODE:Wl,TITLE_MODE:Gl,UNDERSCORE_TITLE_MODE:Kl,METHOD_GUARD:Zl,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 Yl(e,n){"."===e.input[e.index-1]&&n.ignoreMatch()}function Ql(e,n){void 0!==e.className&&(e.scope=e.className,delete e.className)}function Jl(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Yl,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function eu(e,n){Array.isArray(e.illegal)&&(e.illegal=Cl(...e.illegal))}function nu(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 tu(e,n){void 0===e.relevance&&(e.relevance=1)}const ru=(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=Ol(t.beforeMatch,El(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},iu=["of","and","for","in","not","or","if","then","parent","list","value"],ou="keyword";function au(e,n,t=ou){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,au(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,lu(t[0],t[1])]}))}}function lu(e,n){return n?Number(n):function(e){return iu.includes(e.toLowerCase())}(e)?0:1}const uu={},cu=e=>{console.error(e)},su=(e,...n)=>{console.log(`WARN: ${e}`,...n)},fu=(e,n)=>{uu[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),uu[`${e}/${n}`]=!0)},pu=new Error;function du(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+=Al(n[e-1]);e[t]=a,e[t]._emit=o,e[t]._multi=!0}function hu(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 cu("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),pu;if("object"!=typeof e.beginScope||null===e.beginScope)throw cu("beginScope must be object"),pu;du(e,e.begin,{key:"beginScope"}),e.begin=Tl(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw cu("skip, excludeEnd, returnEnd not compatible with endScope: {}"),pu;if("object"!=typeof e.endScope||null===e.endScope)throw cu("endScope must be object"),pu;du(e,e.end,{key:"endScope"}),e.end=Tl(e.end,{joinWith:""})}}(e)}function gu(e){function n(n,t){return new RegExp(wl(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+=Al(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=n(Tl(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=vl(e.classNameAliases||{}),function t(i,o){const a=i;if(i.isCompiled)return a;[Ql,nu,hu,ru].forEach((e=>e(i,o))),e.compilerExtensions.forEach((e=>e(i,o))),i.__beforeBegin=null,[Jl,eu,tu].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=au(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=wl(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 vl(e,{variants:null},n)})));if(e.cachedVariants)return e.cachedVariants;if(mu(e))return vl(e,{starts:e.starts?vl(e.starts):null});if(Object.isFrozen(e))return vl(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 mu(e){return!!e&&(e.endsWithParent||mu(e.starts))}class vu extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const yu=ml,bu=vl,xu=Symbol("nomatch");var ku=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:kl};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):(fu("10.7.0","highlight(lang, code, ...args) has been deprecated."),fu("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 gl(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):(P=!0,0)}function y(e){const n=e[0],r=t.substr(e.index),i=m(_,e,r);if(!i)return xu;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 gl(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!==xu)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 cu(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=gu(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,P=!1;try{for(_.matcher.considerAll();;){T++,P?P=!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:yu(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:yu(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:yu(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||(su(o.replace("{}",t[1])),su("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 vu("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 fu("10.7.0","highlightBlock will be removed entirely in v12.0"),fu("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){l=bu(l,e)},initHighlighting:()=>{h(),fu("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){h(),fu("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,r){let o=null;try{o=r(e)}catch(e){if(cu("Language definition for '{}' could not be registered.".replace("{}",t)),!i)throw e;cu(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:bu,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:Ol,lookahead:El,either:Cl,optional:Sl,anyNumberOfTimes:_l};for(const e in Xl)"object"==typeof Xl[e]&&hl(Xl[e]);return Object.assign(e,Xl),e}({}),wu=ku;ku.HighlightJS=ku,ku.default=ku;var Eu=wu,_u=je((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 Su=Object.assign(Ou(Error),{eval:Ou(EvalError),range:Ou(RangeError),reference:Ou(ReferenceError),syntax:Ou(SyntaxError),type:Ou(TypeError),uri:Ou(URIError)});function Ou(e){return n.displayName=e.displayName||e.name,n;function n(n,...t){const r=n?_u(n,...t):n;return new e(r)}}const Cu={}.hasOwnProperty,Au="hljs-";function ju(e,n,t={}){let r=t.prefix;if("string"!=typeof e)throw Su("Expected `string` for name, got `%s`",e);if(!Eu.getLanguage(e))throw Su("Unknown language: `%s` is not registered",e);if("string"!=typeof n)throw Su("Expected `string` for value, got `%s`",n);null==r&&(r=Au),Eu.configure({__emitter:Tu,classPrefix:r});const i=Eu.highlight(n,{language:e,ignoreIllegals:!0});if(Eu.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 Tu{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 Pu={highlight:ju,highlightAuto:function(e,n={}){const t=n.subset||Eu.listLanguages();n.prefix;let r=-1,i={type:"root",data:{language:null,relevance:0},children:[]};if("string"!=typeof e)throw Su("Expected `string` for value, got `%s`",e);for(;++r<t.length;){const o=t[r];if(!Eu.getLanguage(o))continue;const a=ju(o,e,n);a.data.relevance>i.data.relevance&&(i=a)}return i},registerLanguage:function(e,n){Eu.registerLanguage(e,n)},registered:function(e){return Boolean(Eu.getLanguage(e))},listLanguages:function(){return Eu.listLanguages()},registerAlias:function(e,n){if("string"==typeof e)Eu.registerAliases(n,{languageName:e});else{let n;for(n in e)Cu.call(e,n)&&Eu.registerAliases(e[n],{languageName:n})}}},Fu=function(e){if(null==e)return Iu;if("string"==typeof e)return function(e){return n;function n(n){return Iu(n)&&n.tagName===e}}(e);if("object"==typeof e)return function(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Fu(e[t]);return Ru(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 Ru(e);throw new Error("Expected function, string, or array as test")};function Ru(e){return function(n,...t){return Iu(n)&&Boolean(e.call(this,n,...t))}}function Iu(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}var Du=function(e,n,t){var r=Wr(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 Lu=/\n/g,zu=/[\t ]+/g,Mu=Fu("br"),Nu=Fu("p"),Bu=Fu(["th","td"]),qu=Fu("tr"),Vu=Fu(["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}]),Uu=Fu(["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 Hu(e,n={}){const t=e.children||[],r=Uu(e),i=Zu(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1});let o,a,l,u=-1;if("text"===e.type||"comment"===e.type)return Wu(e,{whitespace:i,breakBefore:!0,breakAfter:!0});for(o=[];++u<t.length;)o=o.concat($u(t[u],e,{whitespace:i,breakBefore:u?null:r,breakAfter:u<t.length-1?Mu(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 $u(e,n,t){return"element"===e.type?function(e,n,t){const r=Zu(e,t),i=e.children||[];let o,a,l=-1,u=[];if(Vu(e))return u;Mu(e)||qu(e)&&Du(n,e,qu)?a="\n":Nu(e)?(o=2,a=2):Uu(e)&&(o=1,a=1);for(;++l<i.length;)u=u.concat($u(i[l],e,{whitespace:r,breakBefore:l?void 0:o,breakAfter:l<i.length-1?Mu(i[l+1]):a}));Bu(e)&&Du(n,e,Bu)&&u.push("\t");o&&u.unshift(o);a&&u.push(a);return u}(e,n,t):"text"===e.type?["normal"===t.whitespace?Wu(e,t):Gu(e)]:[]}function Wu(e,n){const t=String(e.value),r=[],i=[];let o,a,l,u=0,c=-1;for(;u<t.length;)Lu.lastIndex=u,o=Lu.exec(t),a=o?o.index:t.length,r.push(Ku(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 Gu(e){return String(e.value)}function Ku(e,n,t){const r=[];let i,o,a=0;for(;a<e.length;)zu.lastIndex=a,i=zu.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 Zu(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 Xu={}.hasOwnProperty;function Yu(e={}){const{aliases:n,languages:t,prefix:r,plainText:i,ignoreMissing:o,subset:a}=e;let l="hljs";if(n&&Pu.registerAlias(n),t){let e;for(e in t)Xu.call(t,e)&&Pu.registerLanguage(e,t[e])}if(r){const e=r.indexOf("-");l=e>-1?r.slice(0,e):r}return e=>{Xr(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?Pu.highlight(c,Hu(u),{prefix:r}):Pu.highlightAuto(Hu(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 Qu=function(e){var n=e.content;return o.createElement(qo,{remarkPlugins:[fl],rehypePlugins:[Yu]},n)};Qu.propTypes={content:m.string};var Ju=function(e){var n=e.value,t=e.step;return o.createElement(pn,{value:Be(n,t)})};Ju.propTypes={value:m.oneOfType([m.number,m.string]),step:m.oneOfType([m.number,m.string])};var ec=function(e){var n,t=e.value,r=e.options;return o.createElement(pn,{value:null===(n=r.find((function(e){return e.value===t})))||void 0===n?void 0:n.label})};ec.propTypes={value:m.string,options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})).isRequired};var nc=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},tc=function(e){var n=e.variant,t=e.size,r=e.name,i=e.value,a=e.defaultValue,l=e.label,u=e.labelPlacement;return"checkbox"===n?o.createElement(S,{label:l,labelPlacement:u||"end",disabled:!0,control:o.createElement(R,{size:t,name:r,checked:nc(i,a)})}):o.createElement(S,{label:l,labelPlacement:u||"end",disabled:!0,control:o.createElement(I,{size:t,name:r,checked:nc(i,a)})})};tc.propTypes={variant:m.string,size:m.oneOf(["small","medium"]),name:m.string.isRequired,value:m.bool,defaultValue:m.bool,label:m.string,labelPlacement:m.string};var rc=$((function(){return{formRepeater:{padding:0,margin:0}}})),ic=function(e,n){return n&&void 0!==n[e]?n[e]:e},oc=function(e){var n=e.value,t=e.options,r=rc();return o.createElement(M,{className:r.formRepeater,dense:!0},n&&n.map((function(e,n){return o.createElement(N,{key:"entry-".concat(n)},o.createElement(B,{primary:ic(e,t),style:{margin:0}}))})))};oc.propTypes={value:m.arrayOf(m.oneOfType([m.string,m.number])),options:m.shape({})};var ac=function(e){var n=e.subject,t=e.label;return o.createElement(x,{mb:2},o.createElement(q,{severity:"warning"},o.createElement(k,{variant:"body1"},n?"".concat(n," "):"",o.createElement("span",{style:{fontWeight:"bold"}},t)," ist ausgeblendet.")))};ac.propTypes={subject:m.string,label:m.string.isRequired};var lc=function(){var n=xe(),t=a(),r=e(t,2),i=r[0],l=r[1];return u((function(){if(n)return n.subscribe((function(){var e=n.getState().expiredNotification;e&&(l(e),n.setState({expiredNotification:void 0}))}))}),[n]),!!n&&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)}})},uc={default:Ne,string:Ne,text:Ne,number:Ve,select:Ze,boolean:Ye,array:nn,readOnlyDefault:pn,readOnlyString:pn,readOnlyText:pn,readOnlyMarkdown:Qu,readOnlyNumber:Ju,readOnlySelect:ec,readOnlyBoolean:tc,readOnlyArray:oc,apDefault:U,apString:U,apNumber:Ve,apSelect:Ze,apBoolean:Ye,field:ze,readOnlyField:sn,sectionCard:Se,sectionBlock:Ce,hiddenData:ac,reservationExpiredNotification:lc},cc=(0).constructor,sc=cc.isFinite;cc.isInteger;var fc=[].constructor.isArray;function pc(e){return null!==e&&"object"==typeof e}function dc(e,n){return void 0===n&&(n=0),"string"==typeof e&&e.length>=n}function hc(e){return sc(e)}function gc(e){return fc(e)}function mc(e,n){return pc(e)&&n in e}var vc="'\"`",yc=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 bc(e){var n=e.charAt(0),t=e.substr(-1);if(vc.includes(n)||vc.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 xc(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 kc(e){if(!dc(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++,xc(o,e.substring(a,n),i),o.push(bc(t)),i=!0}return xc(o,e.substring(r),i)}function wc(e,n,t){if(void 0===t&&(t={}),!pc(t))throw new TypeError("get expects an object option. Got "+typeof t);var r=t.depth,i=void 0===r?10:r;if(!hc(i)||i<=0)throw new RangeError("Expected a positive number for depth. Got "+i);var o=Array.isArray(n)?n:kc.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(!mc(l,s)){if(t.propsExist)throw new ReferenceError(s+' is not defined in the scope at path: "'+a()+'"');return}l=l[s]}return l}kc.cached=function(e){var n=yc.get(e);return void 0===n&&(n=kc(e),yc.set(e,n)),n};var Ec=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]=wc(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)}))},!pc(e)||!gc(e.strings)||!gc(e.varNames)||e.strings.length!==e.varNames.length+1)throw new TypeError("Invalid tokens object");if(!pc(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]=kc.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 _c(e,n){void 0===n&&(n={});var t=function(e,n){if(void 0===n&&(n={}),!dc(e))throw new TypeError("The template parameter must be a string. Got a "+typeof e);if(!pc(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(!gc(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(!dc(a,1)||!dc(l,1)||a===l)throw new TypeError('The open and close symbols should be two distinct non-empty strings. Got "'+a+'" and "'+l+'"');if(!hc(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 Ec(t,n)}function Sc(e,n,t){return _c(e,t).render(n)}var Oc=f(!1),Cc=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 Ac(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 jc(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ac(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ac(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Tc(e){var n=function(e,n){if("object"!==ce(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===ce(n)?n:String(n)}var Pc=function(n){var o=n.reservationId,c=n.url,s=n.token,f=n.label,d=n.fieldNames,h=n.setFieldValues,g=n.fetchAdapter,m=xe(),v=a(!1),y=e(v,2),b=y[0],x=y[1],k=l(),w=l(),E=l({reservationId:o,url:c,token:s,label:f,fieldNames:d,setFieldValues:h});E.current={reservationId:o,url:c,token:s,label:f,fieldNames:d,setFieldValues:h,fetchAdapter:g};var _=p((function(){w.current&&(clearInterval(w.current),w.current=void 0)}),[]),S=function(){var e={};return E.current.fieldNames.forEach((function(n){e[n]=void 0})),e},O=p(r(i.mark((function e(){var n,t,r,a,l,u,c,s,f,p=arguments;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(p.length>0&&void 0!==p[0]?p[0]:{}).skipServerCall,t=void 0!==n&&n,_(),r=m.getState(),a=r.reservations[o]){e.next=7;break}return e.abrupt("return");case 7:if(l=r.reservations,u=W(l,[o].map(Tc)),m.setState({reservations:u}),E.current.setFieldValues(S()),t||!a.releaseUrl){e.next=24;break}if(e.prev=11,c=E.current,s=c.fetchAdapter,f=c.token,!s){e.next=18;break}return e.next=16,s("DELETE",a.releaseUrl);case 16:e.next=20;break;case 18:return e.next=20,Cc(a.releaseUrl,{method:"DELETE",token:f});case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(11);case 24:case"end":return e.stop()}}),e,null,[[11,22]])}))),[m,o,_]),C=p((function(){_(),w.current=setInterval((function(){var e=m.getState(),n=e.reservations[o];if(n&&"active"===n.status){var r=n.remaining-1;if(r<=0){_();var i=e.reservations;i[o];var a=W(i,[o].map(Tc));if(m.setState({reservations:jc(jc({},a),{},t({},o,jc(jc({},n),{},{remaining:0,status:"expired"}))),expiredNotification:{reservationId:o,label:E.current.label||o}}),E.current.setFieldValues(S()),n.releaseUrl){var l=E.current,u=l.fetchAdapter,c=l.token;u?u("DELETE",n.releaseUrl).catch((function(){})):Cc(n.releaseUrl,{method:"DELETE",token:c}).catch((function(){}))}setTimeout((function(){var e=m.getState().reservations,n=e[o],t=W(e,[o].map(Tc));n&&"expired"===n.status&&m.setState({reservations:t})}),100)}else m.setState({reservations:jc(jc({},e.reservations),{},t({},o,jc(jc({},n),{},{remaining:r})))})}else _()}),1e3)}),[m,o,_]),A=p(r(i.mark((function e(){var n,r,a,l,u,c,s,f;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=m.getState().reservations[o])||"active"!==n.status){e.next=4;break}return e.next=4,O();case 4:if(k.current&&k.current.abort(),k.current=new AbortController,x(!0),e.prev=7,a=E.current,l=a.url,u=a.token,c=a.fetchAdapter,"function"!=typeof l){e.next=15;break}return e.next=12,l(k.current.signal);case 12:s=e.sent,e.next=24;break;case 15:if(!c){e.next=21;break}return e.next=18,c("GET",l,{signal:k.current.signal});case 18:s=e.sent,e.next=24;break;case 21:return e.next=23,Cc(l,{token:u,signal:k.current.signal});case 23:s=e.sent;case 24:k.current=void 0,f={voucher:s.voucher,fields:s.fields,releaseUrl:null===(r=s.links)||void 0===r?void 0:r.release,validFor:s.validFor,remaining:s.validFor,status:"active"},E.current.setFieldValues(s.fields),m.setState({reservations:jc(jc({},m.getState().reservations),{},t({},o,f))}),C(),e.next=34;break;case 31:e.prev=31,e.t0=e.catch(7),"AbortError"!==e.t0.name&&console.error("Reservation generate failed:",e.t0);case 34:x(!1);case 35:case"end":return e.stop()}}),e,null,[[7,31]])}))),[m,o,O,C]);return u((function(){return function(){_(),k.current&&k.current.abort();var e=m.getState(),n=e.reservations[o];if(n&&"active"===n.status&&n.releaseUrl){var t=E.current,r=t.fetchAdapter,i=t.token;r?r("DELETE",n.releaseUrl).catch((function(){})):Cc(n.releaseUrl,{method:"DELETE",token:i}).catch((function(){}));var a=e.reservations;a[o];var l=W(a,[o].map(Tc));m.setState({reservations:l})}}}),[m,o,_]),{loading:b,generate:A,release:O}},Fc=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"),_=ve().setFieldValues,S=xe(),O=Pc({reservationId:n,url:s,token:f,label:r||n,fieldNames:[n],setFieldValues:_}),C=O.generate,A=O.release,j=O.loading,T=he(S,(function(e){return e.reservations[n]})),F=T&&"active"===T.status,R=l();u((function(){F&&w&&(R.current=T.fields[n])}),[F,w,T,n]);var I={};return F&&!w&&(I.disabled=!0),F&&w&&(I.onChange=function(e){F&&w&&e.target.value!==R.current&&A(),c&&c(e)}),o.createElement(x,{sx:{width:"100%"}},o.Children.map(a,(function(e){return o.isValidElement(e)?o.cloneElement(e,I):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}}},F&&o.createElement(k,{variant:"caption",sx:function(e){return{color:T.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")}(T.remaining)),!F&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!F&&!j&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(Q,null),disabled:i,onClick:C},d),j&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(P,{size:16,thickness:4}),disabled:!0},d),F&&!j&&o.createElement(D,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(J,null),disabled:i,onClick:A},E)))};Fc.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 Rc=["message","options","validator"];function Ic(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 Dc=function(e,n){return e&&e.errors?e.errors.map((function(e){var r=e.message,i=e.options,o=e.validator,a=W(e,Rc),l=r;return i&&i.human?l=i.human:n[o]&&(l=Sc(n[o],i)),function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ic(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}({message:l,options:i,validator:o},a)})):[]},Lc=o.memo((function(e){var n,t=e.adornmentEntry,r=e.mainFieldName,i=e.position,o=e.inputVariant,a=me(),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=he(l,(function(e){return e.preSubmitValidation})),v=he(l,(function(e){return e.data[g]})),y=he(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:Dc(y,s),label:(null==c||null===(n=c.labels)||void 0===n?void 0:n[g])||g})})),zc=["message","options","validator"],Mc=["hidden","hideLabel","autoGenerate"];function Nc(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?Nc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var qc=function(e){var n,r,i,a=e.fieldEntry,l=e.allFields,u=me(),s=u.store,f=u.schema,p=u.translations,d=u.errorMessages,h=u.readOnly,g=u.inputVariant,m=u.inputSize,v=u.variant,y=u.resolvedSlots,b=u.slotProps,x=u.fieldSlots,k=u.fieldSlotProps,w=u.renderComponentMap,E=u.handleFieldChange,_=u.handleFocus,S=u.handleBlur,O=u.obscuredFields,C=u.propDisabled,A=function(e){return"string"==typeof e?e:Array.isArray(e)?"@@render"===e[0]||"@@markdown"===e[0]?e[1]:e[0]:null}(a),j=Array.isArray(a)&&"@@markdown"===a[0],T=Array.isArray(a)&&"@@render"===a[0],P=!T&&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(Oc),R=he(s,(function(e){return e.data[A]})),I=he(s,(function(e){var n;return null===(n=e.results)||void 0===n?void 0:n[A]})),D=he(s,(function(e){var n;return null===(n=e.fieldStates)||void 0===n?void 0:n[A]})),L=he(s,(function(e){return e.preSubmitValidation}));if(j){var z=y.readOnlyMarkdown;return o.createElement(z,{content:a[2]})}if(P)return!1;var M=function(e){return"string"==typeof e?{}:Array.isArray(e)?"@@render"===e[0]?e[2]||{}:"@@markdown"===e[0]?{}:e[1]||{}:{}}(a),N=M.hidden,B=M.hideLabel,q=M.autoGenerate,V=W(M,Mc);if(!0===N)return!1;var U=L||C||F;if(!I)return!1;var H=I.prohibited,$=I.required,G=I.optional,K=I.hasErrors,Z=I.data;if(!0===H||!$&&!G&&void 0===Z)return!1;if(h&&(""===R||void 0===R))return!1;if(h&&Array.isArray(O)&&O.includes(A)){var X,Y=y.hiddenData,Q=!0!==B&&((null==p||null===(X=p.labels)||void 0===X?void 0:X[A])||A);return o.createElement(Y,{subject:"Das Feld",label:Q})}var J=f.properties[A];if(!J)return!1;var ee,ne,te=J.type,re=J.default,ie=J.allowNew;try{var oe=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:A,isRender:T,schemaType:te,resolvedSlots:y,fieldSlots:x,renderComponentMap:w});ee=oe.component,ne=oe.props}catch(e){return!1}var ae=!0!==B&&((null==p||null===(i=p.labels)||void 0===i?void 0:i[A])||A),ue=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 Bc(Bc({},e),{},t({},n,(null==o||null===(i=o[r])||void 0===i?void 0:i[n])||n))}),{}):void 0}({schemaType:te,fieldName:A,schemaField:J,translations:p}),ce=te||"default";Array.isArray(te)&&(ce="select"),T&&(ce="@@render");var se=(null==b?void 0:b[ce])||{},fe=(null==k?void 0:k[A])||{},pe=Bc(Bc(Bc(Bc(Bc({size:m},ne),se),fe),V),void 0!==ie&&{allowNew:ie}),de=function(e,n){return e&&e.errors?e.errors.map((function(e){var t=e.message,r=e.options,i=e.validator,o=W(e,zc),a=t;return r&&r.human?a=r.human:n[i]&&(a=Sc(n[i],r)),Bc({message:a,options:r,validator:i},o)})):[]}(I,d);if(h){var ge=y.readOnlyField,ve=Array.isArray(te)?"select":te||"string",ye=ve.charAt(0).toUpperCase()+ve.slice(1),be="readOnly".concat(ye),xe=x[A]||y[be]||y.readOnlyDefault;return o.createElement(ge,le({type:ve,name:A,label:ae,value:R,options:ue,required:$,hasErrors:K,errors:de,size:m,component:xe,componentProps:pe},D))}var ke=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(Lc,{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:A,inputVariant:g}),we=y.field,Ee=o.createElement(we,{variant:g,formVariant:v,type:ce,name:A,label:ae,defaultValue:re,value:R,options:ue,required:$,hasErrors:K,errors:de,validating:null==D?void 0:D.validating,dirty:null==D?void 0:D.dirty,component:ee,componentProps:pe,prepend:ke.prepend,append:ke.append,disabled:U,onChange:E,onFocus:_,onBlur:S});return q?o.createElement(Fc,{fieldName:A,config:q,label:ae,disabled:U,onChange:E},Ee):Ee},Vc=o.memo(qc),Uc=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"),_=ve().setFieldValues,S=me().fetchAdapter,O=xe(),C=Pc({reservationId:n,url:s,token:f,label:r||n,fieldNames:i,setFieldValues:_,fetchAdapter:S}),A=C.generate,j=C.release,T=C.loading,F=he(O,(function(e){return e.reservations[n]})),R=F&&"active"===F.status,I=l();u((function(){I.current=R?F.fields:void 0}),[R,F]);var L=o.useCallback((function(e){var n={};return i.forEach((function(t){n[t]=e.data[t]})),n}),[i]),z=ye(L,(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(R&&w&&I.current){var e=I.current;i.some((function(n){return z[n]!==e[n]}))&&j()}}),[R,w,i,z,j]),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}}},R&&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)),!R&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!R&&!T&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(Q,null),disabled:a,onClick:A},d),T&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(P,{size:16,thickness:4}),disabled:!0},d),R&&!T&&o.createElement(D,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(J,null),disabled:a,onClick:j},E)),o.createElement(Oc.Provider,{value:R&&!w},c))};Uc.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 Hc=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)},$c=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]&&r[1]?n.push(r[1]):"@@render"!==r[0]&&"@@markdown"!==r[0]&&n.push(r[0]))}return n},Wc=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,f=n.textAlign,p=n.nested,d=void 0===p?0:p,h=me(),g=h.variant,m=h.resolvedSlots,v=h.store,y=s((function(){return $c(a)}),[a]);if(he(v,(function(e){return y.length>0&&y.every((function(n){var t,r;return!0===(null===(t=e.results)||void 0===t||null===(r=t[n])||void 0===r?void 0:r.prohibited)}))})))return!1;var b=0===d&&"card"===g?m.sectionCard:Ce,x=a.map((function(n,t){return!1!==n&&(n&&"object"===ce(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:f,nested:(d||0)+1}):o.createElement(Vc,{key:Hc(n,t),fieldEntry:n,allFields:a}))}));return o.createElement(b,{groupId:t,label:r,labelVariant:u,desc:i,descVariant:c,textAlign:f},l&&o.createElement(Uc,{groupId:t,config:l,label:r,fieldNames:$c(a)},x),!l&&x)};Wc.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.arrayOf(m.oneOfType([m.string,m.arrayOf(m.any),m.shape({})])).isRequired,autoGenerate:m.shape({url:m.string.isRequired,token:m.string,allowManualOverride:m.bool,allowRegenerate:m.bool}),nested:m.number};var Gc=o.memo(Wc),Kc=function(n){var t=n.store,r=n.errorMessages,i=n.translations,o=a((function(){return{hasErrors:t.getState().hasErrors,errors:t.getState().errors}})),l=e(o,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&&de(e.errors,r)?e:{hasErrors:n,errors:r}}))}))}),[t]),!!c.hasErrors&&React.createElement("div",{className:"errors"},c.errors.map((function(e){var n,t=e.path,o=e.message,a=e.options,l=e.validator,u=o;return a&&a.human?u=a.human:r[l]&&(u=Sc(r[l],a)),React.createElement("div",{key:"form-error-".concat(t,"-").concat(l),className:"error"},React.createElement("div",{className:"field"},(null==i||null===(n=i.labels)||void 0===n?void 0:n[t])||t),React.createElement("div",{className:"message"},u))})))};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 Xc(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}Kc.propTypes={store:m.shape({getState:m.func.isRequired,subscribe:m.func.isRequired}).isRequired,errorMessages:m.shape({}).isRequired,translations:m.shape({}).isRequired};var Yc=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)}}(),Qc=function(e,n){if(!e)return n;for(var t={},r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];t[o]=n[o],e[o]&&de(e[o],n[o])&&(t[o]=e[o])}return t},Jc=function(e){for(var n=Object.values(e),t=0;t<n.length;t++)if(n[t].dirty)return!0;return!1},es=function(e,n,t,r){var i;if(null!=t&&t[e])return t[e];var o=null==n||null===(i=n[e])||void 0===i?void 0:i.type;return o&&null!=r&&r[o]?r[o]:de},ns=function(e,n,t,r){var i;if(null!=t&&t[e])return[].concat(t[e]);var o=null==n||null===(i=n[e])||void 0===i?void 0:i.type;return o&&null!=r&&r[o]?[].concat(r[o]):[]},ts=function(e,n,r,i){var o=function(e,n){return v(e,n)}(e,Xc(Xc({},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 Xc(Xc({},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 Xc(Xc({},e),n)}),{});return{preSubmitValidation:!1,hasErrors:a,isDirty:Jc(f),errors:l,results:u,data:p,asyncErrors:[],fieldStates:f}},rs=function(a){var c=a.id,f=a.variant,d=void 0===f?"card":f,g=a.inputVariant,m=a.inputSize,y=a.groupLabelVariant,b=a.groupDescVariant,x=a.textAlign,k=a.readOnly,w=a.submitOnEnter,E=a.listErrors,_=a.schema,S=a.renderSchema,O=a.data,C=a.transientData,A=a.fieldStates,j=a.disabled,T=a.translations,P=a.slots,F=a.slotProps,R=a.fieldSlots,I=a.fieldSlotProps,D=a.renderComponentMap,L=a.fetchAdapter,z=a.equality,M=a.fieldEquality,N=a.validators,B=a.fieldValidators,q=a.obscuredFields,V=a.obscuredGroups,U=a.errorMessages,H=void 0===U?{}:U,$=a.asyncValidators,W=a.onSubmit,G=a.onReset,K=a.onStatusUpdate,Z=a.onStateChange,X=a.onUnmount,Y=l(null);null===Y.current&&(Y.current=new Ee(ts(_,O,C,A)));var Q=Y.current,J=l(null);null===J.current&&(J.current=new Ee({reservations:{},expiredNotification:void 0}));var ee=J.current,ne=l(O),te=l({onSubmit:W,onReset:G,onStatusUpdate:K,onStateChange:Z,onUnmount:X});h((function(){te.current={onSubmit:W,onReset:G,onStatusUpdate:K,onStateChange:Z,onUnmount:X}}));var re=l(j);h((function(){re.current=j}));var ie=p((function(e,n){var t=te.current,r=t.onStateChange,i=t.onStatusUpdate,o=t.onSubmit,a=Q.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)}),[Q]),oe=l(null),ae=l(null),le=l(null),ue=p(function(){var e=r(i.mark((function e(t,r,o){var a,l,u,c,s,f,p,d,h,g,m,y,b,x,k,w;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ae.current&&ae.current.abort(),ae.current=new AbortController,a=ae.current.signal,l=v(_,t),u=Q.getState().results,l.results=Qc(u,l.results),c=[],s=[],f=new Set,Object.keys(t).forEach((function(e){var n;void 0!==(null===(n=l.results[e])||void 0===n?void 0:n.sanitizedData)&&ns(e,_.properties,B,N).forEach((function(n){var r=n(t[e],t);r&&"function"==typeof r.then?(f.add(e),s.push(r.then((function(n){return!n||{path:e,validator:"External",message:n}})))):r&&c.push({path:e,validator:"External",message:r})}))})),c.forEach((function(e){var t=l.results[e.path];t&&(t.errors=[].concat(n(t.errors||[]),[e]),t.hasErrors=!0,t.sanitizedData=void 0)})),c.length>0&&(l.errors=[].concat(n(l.errors),c),l.hasErrors=l.errors.length>0),$||0!==s.length){e.next=18;break}return p=Q.getState().preSubmitValidation,Q.setState(Xc(Xc({},l),{},{data:t,fieldStates:r,asyncErrors:[],preSubmitValidation:!1,isDirty:Jc(r)})),ie(l,p),ae.current=void 0,e.abrupt("return");case 18:if(d=$?Object.entries($).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!==d.length||0!==s.length){e.next=25;break}return h=Q.getState().preSubmitValidation,Q.setState(Xc(Xc({},l),{},{data:t,fieldStates:r,asyncErrors:o||[],preSubmitValidation:!1,isDirty:Jc(r)})),ie(Xc(Xc({},l),{},{asyncErrors:o||[]}),h),ae.current=void 0,e.abrupt("return");case 25:return g=Xc({},r),d.forEach((function(e){var n=e.path;g[n]=Xc(Xc({},g[n]),{},{validating:!0})})),f.forEach((function(e){g[e]=Xc(Xc({},g[e]),{},{validating:!0})})),Q.setState({data:t,fieldStates:g}),e.prev=29,e.next=32,Promise.all([].concat(n(d.map((function(e){var n=e.path,r=e.func;return a.aborted?Promise.resolve(!0):t[n]?Yc(n,(function(){return r(n,t[n])})):Promise.resolve(!0)}))),s));case 32:m=e.sent,e.next=40;break;case 35:if(e.prev=35,e.t0=e.catch(29),"AbortError"!==e.t0.name){e.next=39;break}return e.abrupt("return");case 39:throw e.t0;case 40:if(!a.aborted){e.next=42;break}return e.abrupt("return");case 42:y=m.filter((function(e){return!0!==e})),b=Xc({},l.results),y.forEach((function(e){var t=b[e.path];t&&(t.errors=[].concat(n(t.errors||[]),[e]),t.hasErrors=!0,t.sanitizedData=void 0)})),x=[].concat(n(l.errors),n(y)),k=Xc(Xc({},l),{},{hasErrors:x.length>0,errors:x,asyncErrors:y,results:b}),w=Q.getState().preSubmitValidation,Q.setState(Xc(Xc({},k),{},{data:t,fieldStates:r,preSubmitValidation:!1,isDirty:Jc(r)})),ie(k,w),ae.current=void 0;case 51:case"end":return e.stop()}}),e,null,[[29,35]])})));return function(n,t,r){return e.apply(this,arguments)}}(),[_,$,N,B,Q,ie]),ce=p((function(e,n,t){Q.setState({data:e,fieldStates:n,isDirty:Jc(n)}),le.current&&cancelAnimationFrame(le.current),le.current=requestAnimationFrame((function(){le.current=void 0,ue(e,n,t)}))}),[Q,ue]),se=p((function(e,n,t){return le.current&&(cancelAnimationFrame(le.current),le.current=void 0),ue(e,n,t)}),[ue]),fe=p((function(e){var n=e.target,r=n.name,i=n.value,o=Q.getState(),a=o.preSubmitValidation,l=o.data,u=o.asyncErrors,c=o.fieldStates;if(!a&&!re.current){var s=!es(r,_.properties,M,z)(ne.current[r],i),f=Xc(Xc({},l),{},t({},r,i)),p=Xc(Xc({},c),{},t({},r,Xc(Xc({},c[r]),{},{dirty:s,clean:!s}))),d=u.filter((function(e){return e.path!==r}));ce(f,p,d)}}),[Q,_,z,M,ce]),pe=p((function(n){var t=Q.getState(),r=t.preSubmitValidation,i=t.data,o=t.asyncErrors,a=t.fieldStates;if(!r&&!re.current){var l=Object.entries(n),u=Xc({},i),c=Xc({},a),s=[];l.forEach((function(n){var t=e(n,2),r=t[0],i=t[1],o=!es(r,_.properties,M,z)(ne.current[r],i);u[r]=i,c[r]=Xc(Xc({},c[r]),{},{dirty:o,clean:!o}),s.push(r)}));var f=o.filter((function(e){var n=e.path;return!s.includes(n)}));ce(u,c,f)}}),[Q,_,z,M,ce]),he=p((function(e){var n=e.target.name;Q.setState((function(e){return{fieldStates:Xc(Xc({},e.fieldStates),{},t({},n,Xc(Xc({},e.fieldStates[n]),{},{active:!0,inactive:!1})))}}))}),[Q]),me=p((function(e){var n=e.target.name;Q.setState((function(e){return{fieldStates:Xc(Xc({},e.fieldStates),{},t({},n,Xc(Xc({},e.fieldStates[n]),{},{active:!1,inactive:!0,touched:!0,pristine:!1})))}}))}),[Q]),ve=p((function(){var e=Q.getState(),n=e.hasErrors,t=e.fieldStates,r=te.current.onStatusUpdate;r&&r({preSubmitValidation:!1,hasErrors:n,isDirty:Jc(t)})}),[Q]),ye=p((function(){ne.current=O,Q.setState(ts(_,O,C)),ve()}),[O,_,C,Q,ve]),xe=p((function(e){var n=Q.getState(),t=n.preSubmitValidation,r=n.data,i=n.asyncErrors,o=n.fieldStates;if(!t&&!re.current){var a=Xc({},r),l=[],u=Xc({},o);e.forEach((function(e){var n=e.name,t=e.value,c=t;_.properties[n]&&"boolean"===_.properties[n].type&&(c=!0!==r[n]);var s=!es(n,_.properties,M,z)(ne.current[n],t);l=i.filter((function(e){return e.path!==n})).concat(l),u[n]=Xc(Xc({},o[n]),{},{dirty:s,clean:!s}),a[n]=c})),se(a,u,l)}}),[Q,_,z,M,se]),ke=p((function(){var e=Q.getState(),n=e.errors,t=e.hasErrors,r=e.data,i=e.asyncErrors,o=e.fieldStates,a=te.current.onStatusUpdate;Q.setState({preSubmitValidation:!0});var l=Jc(o);a&&a({preSubmitValidation:!0,hasErrors:t,errors:n,isDirty:l}),se(r,o,i)}),[Q,se]);u((function(){return ve(),function(){le.current&&cancelAnimationFrame(le.current);var e=ee.getState().reservations;Object.values(e).forEach((function(e){"active"===e.status&&e.releaseUrl&&Cc(e.releaseUrl,{method:"DELETE"}).catch((function(){}))}));var n=Q.getState(),t=n.hasErrors,r=n.isDirty,i=n.data,o=n.fieldStates,a=te.current.onUnmount;a&&a({hasErrors:t,isDirty:r,data:i,fieldStates:o})}}),[]);var we=l(O);u((function(){de(we.current,O)||(we.current=O,ne.current=O,Q.setState(ts(_,O,C)),ve())}),[O]);var _e=l(C);u((function(){if(C&&!de(C,_e.current)){_e.current=C;var n=Object.entries(C).filter((function(n){var t=e(n,2),r=t[0];return t[1]!==we.current[r]})).map((function(n){var t=e(n,2);return{name:t[0],value:t[1]}}));n.length>0&&xe(n)}}),[C]);var Se=s((function(){return{submitForm:ke,resetForm:function(){ye(),te.current.onReset&&te.current.onReset()},setFieldValue:function(e,n){return fe({target:{name:e,value:n}})},setFieldValues:pe}}),[ke,ye,fe,pe]),Oe=s((function(){return Xc(Xc({},uc),P)}),[P]),Ce=s((function(){return{store:Q,api:Se,id:c,schema:_,translations:T||{},errorMessages:H||{},readOnly:k||!1,inputVariant:g||"standard",inputSize:m||"medium",variant:d||"card",propDisabled:j||!1,resolvedSlots:Oe,slotProps:F||{},fieldSlots:R||{},fieldSlotProps:I||{},renderComponentMap:D||{},fetchAdapter:L,handleFocus:he,handleBlur:me,handleFieldChange:fe,obscuredFields:q||[],obscuredGroups:V||[]}}),[Q,Se,c,_,T,H,k,g,m,d,j,Oe,F,R,I,D,L,he,me,fe,q,V]);u((function(){var e=oe.current;if(w&&e){var n=function(e){"Enter"===e.key&&"TEXTAREA"!==e.target.tagName&&(re.current||(e.preventDefault(),ke()))};return e.addEventListener("keydown",n),function(){return e.removeEventListener("keydown",n)}}}),[w,ke]);var Ae=Q.getState().preSubmitValidation||j,je=Oe.reservationExpiredNotification;return o.createElement(ge.Provider,{value:Ce},o.createElement(be.Provider,{value:ee},o.createElement("form",{ref:oe,id:c,className:"formulator-form",disabled:Ae,onSubmit:function(e){e.preventDefault(),ke()},onReset:function(e){e.preventDefault(),ye(),te.current.onReset&&te.current.onReset()}},S.title&&o.createElement("h5",null,S.title),S.description&&o.createElement("h5",null,S.description),S.groups.map((function(e){var n=e.id,t=e.label,r=e.description,i=e.fields,a=e.autoGenerate;return k&&Array.isArray(V)&&V.includes(n)?o.createElement(ac,{key:"hidden-group-".concat(n),subject:"Der Bereich",label:t}):o.createElement(Gc,{key:"form-section-".concat(n),sectionId:n,label:t,desc:r,fields:i,autoGenerate:a,labelVariant:y,descVariant:b,textAlign:x,nested:0})})),E&&o.createElement(Kc,{store:Q,errorMessages:H||{},translations:T||{}})),o.createElement(je,null)))};rs.propTypes={id:m.string.isRequired,variant:m.oneOf(["card","block"]),inputVariant:m.oneOf(["standard","filled","outlined"]),inputSize:m.oneOf(["small","medium"]),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.shape({}).isRequired,data:m.shape({}).isRequired,transientData:m.shape({}),fieldStates:m.shape({}),renderSchema:m.shape({}).isRequired,translations:m.shape({}).isRequired,asyncValidators:m.shape({}),errorMessages:m.shape({}),slots:m.shape({}),slotProps:m.shape({}),fieldSlots:m.shape({}),fieldSlotProps:m.shape({}),renderComponentMap:m.shape({}),fetchAdapter:m.func,equality:m.shape({}),fieldEquality:m.shape({}),validators:m.shape({}),fieldValidators:m.shape({}),obscuredFields:m.arrayOf(m.string),obscuredGroups:m.arrayOf(m.string),onSubmit:m.func,onReset:m.func,onStatusUpdate:m.func,onStateChange:m.func,onUnmount:m.func};var is=function(e){var n=e.fileRef,t=(null==n?void 0:n.originalName)||(null==n?void 0:n.name);if(!t)return!1;var r,i,a=void 0!==(null==n?void 0:n.size)?(r=n.size)<1024?"".concat(r," B"):r<1048576?"".concat((r/1024).toFixed(1)," KB"):"".concat((r/1048576).toFixed(1)," MB"):void 0,l=(i=(null==n?void 0:n.mimeType)||(null==n?void 0:n.type))?i.startsWith("image/")?ne:"application/pdf"===i?te:i.startsWith("video/")?re:i.startsWith("audio/")?ie:i.startsWith("text/")?oe:ee:ee;return o.createElement(H,{elevation:0,variant:"outlined",sx:{px:1.5,py:1}},o.createElement(A,{direction:"row",sx:{alignItems:"center",gap:1}},o.createElement(l,{fontSize:"small",sx:{flexShrink:0}}),o.createElement(x,{sx:{flex:1,minWidth:0}},o.createElement(k,{variant:"body2",noWrap:!0},t)),a&&o.createElement(k,{variant:"body2",sx:{flexShrink:0,color:function(e){return e.palette.text.secondary}}},"(".concat(a,")"))))};is.propTypes={fileRef:m.shape({originalName:m.string,name:m.string,mimeType:m.string,type:m.string,size:m.number})};var os=function(n){var t=n.name,u=n.value,c=n.readOnly,s=n.onChange,f=n.mode,p=n.onUpload,d=l(),h=a(!1),g=e(h,2),m=g[0],v=g[1],y=a(void 0),b=e(y,2),x=b[0],w=b[1],E=function(e){if(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){return}return e}}(u);if(c)return o.createElement(is,{fileRef:E});var _=function(){var e=r(i.mark((function e(n){var r,o,a;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null===(r=n.target.files)||void 0===r?void 0:r[0]){e.next=3;break}return e.abrupt("return");case 3:if(n.target.value="",w(void 0),"blob"!==f){e.next=8;break}return s({target:{name:t,value:o}}),e.abrupt("return");case 8:return v(!0),e.prev=9,e.next=12,p(o);case 12:a=e.sent,s({target:{name:t,value:a}}),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),w(e.t0.message);case 19:v(!1);case 20:case"end":return e.stop()}}),e,null,[[9,16]])})));return function(n){return e.apply(this,arguments)}}();return o.createElement(A,{sx:{gap:1}},o.createElement(is,{fileRef:E}),o.createElement("input",{ref:d,type:"file",style:{display:"none"},onChange:_}),o.createElement(D,{size:"small",variant:"outlined",disabled:m,onClick:function(){return d.current.click()},sx:{alignSelf:"flex-start"}},m&&o.createElement(P,{size:14,sx:{mr:1}}),"Choose file"),x&&o.createElement(k,{variant:"body2",sx:{color:function(e){return e.palette.error.main}}},x))};os.propTypes={name:m.string.isRequired,value:m.oneOfType([m.object,m.string]),readOnly:m.bool,onChange:m.func,mode:m.oneOf(["upload","blob"]),onUpload:m.func};var as=["dirty","hasErrors","required","label","value","variant","options","baererToken","formElement"];function ls(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 us=function(n){var c=n.dirty,s=n.hasErrors,f=n.required,d=n.label,h=n.value,m=n.variant,v=n.options,y=n.baererToken,b=n.formElement,x=W(n,as),k=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=l(),u=a(!1),c=e(u,2),s=c[0],f=c[1],d=a(),h=e(d,2),g=h[0],m=h[1],v=p(r(i.mark((function e(){var r,a;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(n)){e.next=3;break}return m(n),e.abrupt("return");case 3:if("string"==typeof n||"function"==typeof n){e.next=6;break}return m([]),e.abrupt("return");case 6:return r=n,"string"==typeof n&&(r=function(e){return Cc(n,{token:t.token,signal:e})}),o.current=new AbortController,m(void 0),f(!0),e.prev=11,e.next=14,r(o.current.signal);case 14:if(a=e.sent,o.current=void 0,Array.isArray(a)){e.next=18;break}throw new Error("autocomplete fetcher returned a non array value");case 18:m(a),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(11),f(!1);case 24:f(!1);case 25:case"end":return e.stop()}}),e,null,[[11,21]])}))),[n,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,S=k.fetch,O=k.abort,C=k.options;return u((function(){S()}),[]),C?o.createElement(_,{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?ls(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ls(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:S,abort:O},x))):o.createElement(_,{error:c&&s,margin:"dense",fullWidth:!0,required:f},o.createElement(j,{label:d,variant:m,value:h,disabled:!0,InputProps:{endAdornment:o.createElement(E,{position:"end"},o.createElement(P,{size:20,thickness:4}))}}))};us.propTypes={name:m.string,label:m.string,value:m.oneOfType([m.string,m.number,m.bool,m.shape({}),m.arrayOf(m.any)]),options:m.oneOfType([m.arrayOf(m.shape({})),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.arrayOf(m.shape({})),onChange:m.func,formElement:m.elementType};var cs=fe(),ss=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(se,{id:n,value:h||"",fullWidth:!0,disabled:u,onOpen:g,onClose:m,onChange:function(e,n){if("string"==typeof n){var r=Array.isArray(s)&&s.find((function(e){return e.entry===n}));v(c||r?t({},f,n):void 0)}else c&&n&&n.inputValue?v(t({},f,n.inputValue)):v(n)},filterOptions:function(e,n){var r=cs(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(E,{position:"end"},o.createElement(P,{size:20,thickness:4}))}),o.createElement(j,le({},n,{required:t,label:r,variant:a,onChange:i,InputProps:u}))}({required:l,disabled:u,label:r,onInputChange:y,variant:i,loading:a},e)}})};ss.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.arrayOf(m.shape({})).isRequired,searchKey:m.string.isRequired,renderOption:m.func.isRequired,renderNewOption:m.func.isRequired,value:m.oneOfType([m.string,m.shape({})]),onOpen:m.func,onClose:m.func,onChange:m.func,onInputChange:m.func};var fs=G((function(e){return{default:{margin:0,marginBottom:e.spacing(1),userSelect:"none","&.clickable":{cursor:"pointer"}},sharpEdges:{borderRadius:0},spanSolitaryToCard:{marginTop:-1*e.spacing(2),marginRight:-1*e.spacing(2),marginBottom:-1*e.spacing(2),marginLeft:-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:pe(e.palette.primary.main,.12)},unchecked:{backgroundColor:e.palette.grey[200]}}})),ps=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=fs(),h=K(),g=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t}(l,u),m={paddingX:1,paddingY:1};return i&&(m.paddingLeft=2),o.createElement(w,{elevation:0,className:Te(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",sx:m},s&&g&&o.createElement(x,{mr:2,mb:-.5},o.createElement(ae,{fontSize:i?"large":"medium",htmlColor:h.palette.text.secondary})),s&&!g&&o.createElement(x,{mr:2,mb:-.5},o.createElement(J,{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}})}})))};ps.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{Fc as FormAutoGenerate,$e as FormAutocomplete,Ye as FormBoolean,ze as FormField,os as FormFileInput,Uc as FormGroupAutoGenerate,Ve as FormNumber,us as FormOptionsLoader,ps as FormPrimaryToggle,tc as FormReadOnlyBoolean,sn as FormReadOnlyField,Qu as FormReadOnlyMarkdown,Ju as FormReadOnlyNumber,oc as FormReadOnlyRepeater,ec as FormReadOnlySelect,pn as FormReadOnlyText,nn as FormRepeater,Ge as FormSelect,Ne as FormText,rs as FormulatorForm,ac as HiddenData,lc as ReservationExpiredSnackbar,ss as SelectOrCreate,ve as useFormContext,ye as useFormSelector};
32
32
  //# sourceMappingURL=index.js.map