@scenid/react-formulator 6.10.0 → 6.11.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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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 O,FormHelperText as S,FormGroup as C,Stack as A,TextField as j,Autocomplete as T,CircularProgress as
|
|
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 O,FormHelperText as S,FormGroup as C,Stack as A,TextField as j,Autocomplete as T,CircularProgress as F,MenuItem as P,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 V,Snackbar as q,Input as U,Card as H,CardActionArea as $,Dialog as W,DialogTitle as G,DialogContent as K,DialogActions as Z}from"@mui/material";import X from"@mui/styles/makeStyles";import Y from"@babel/runtime/helpers/objectWithoutProperties";import{makeStyles as Q,useTheme as J}from"@mui/styles";import{Autorenew as ee,Clear as ne,Add as te,AutoFixHigh as re,Close as ie,AttachFile as oe,Image as ae,PictureAsPdf as le,VideoFile as ue,AudioFile as ce,Description as se,Check as fe}from"@mui/icons-material";import pe from"@babel/runtime/helpers/extends";import{DateTime as de}from"luxon";import he from"@babel/runtime/helpers/typeof";import ge,{createFilterOptions as me}from"@mui/material/Autocomplete";import{alpha as ve}from"@mui/material/styles";var ye=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},be=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},xe=f(null),ke=function(){return c(xe)},we=function(){var e=c(xe);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])},Ee=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.is,t=c(xe);if(!t)throw new Error("useFormSelector must be used within a FormulatorForm");return be(t.store,e,n)},_e=f(void 0),Oe=function(){return c(_e)};function Se(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 Ce(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Se(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Ae=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):Ce(Ce({},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}(),je=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,s=e.noVisibleFields,f=void 0!==s&&s;if(!n&&!i)return!1;var p=2;return f&&(p=0),o.createElement(x,{style:{width:"100%",display:"flex",flexDirection:"column"}},n&&o.createElement(x,{mb:p},o.createElement(k,{variant:r,align:c,sx:function(e){var n={};return f&&(n.color=e.palette.text.secondary),n}},n)),i&&o.createElement(x,{mb:p},o.createElement(k,{variant:l,align:c,sx:function(e){var n={};return f&&(n.color=e.palette.text.secondary),n}},i)))};je.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"]),noVisibleFields:m.bool};var Te=function(e){var n=e.label,t=e.labelVariant,r=e.desc,i=e.descVariant,a=e.textAlign,l=e.noVisibleFields,u=e.children,c={};return l&&(c.opacity=.6),o.createElement(x,{mb:2},o.createElement(w,{elevation:0,sx:c},o.createElement(x,{p:2},o.createElement(je,{label:n,labelVariant:t,desc:r,descVariant:i,textAlign:a,noVisibleFields:l}),u)))};Te.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"]),noVisibleFields:m.bool,children:m.node};var Fe=X((function(e){return{formSectionBlock:{"&:not(:last-child)":{marginBottom:e.spacing(3)}}}})),Pe=function(e){var n=e.label,t=e.labelVariant,r=e.desc,i=e.descVariant,a=e.textAlign,l=e.noVisibleFields,u=e.children,c=Fe(),s={};return l&&(s.opacity=.6),o.createElement(x,{className:c.formSectionBlock,sx:s},o.createElement(je,{label:n,labelVariant:t,desc:r,descVariant:i,textAlign:a,noVisibleFields:l}),u)};Pe.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"]),noVisibleFields:m.bool,children:m.node};var Re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ie(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 De=Ie((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 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}var Me=Q((function(e){return{error:{color:e.palette.error.main}}})),Ne=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=Me(),w=ze(ze({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(ee,null))]),C)try{var A=c.props||{};n=o.cloneElement(c,ze(ze(ze({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,ze(ze({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,R="array"===a;return R||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(O,{className:De(t({},k.error,b&&h)),control:n,label:u,labelPlacement:w.labelPlacement||"end"}),(!T&&!R&&!C||P)&&n,b&&!v&&h&&o.createElement(S,null,g.map((function(e){return e.message})).join(". ")))};Ne.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 Be=["prepend","append","componentProps"];function qe(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 Ve=function(e){var n=e.prepend,r=e.append,i=e.componentProps,a=Y(e,Be),l=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?qe(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(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(Ne,l),r)};Ve.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 Ue=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)}})))};Ue.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 He=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(Ue,{type:n,name:t,label:r,variant:i,value:l||u||"",required:d,disabled:g||h,onChange:m||function(){}}):o.createElement(j,pe({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))};He.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 $e=function(e,n){return void 0===e||Number.isNaN(e)||""===e?"":n&&!Number.isSafeInteger(n)?parseFloat(e,10):parseInt(e,10)},We=["name","value","min","max","step","onChange"],Ge=function(e){var n=e.name,t=e.value,r=e.min,i=e.max,a=e.step,l=e.onChange,u=Y(e,We);return o.createElement(j,pe({name:n,type:"number",value:$e(t,a),inputProps:{min:r,max:i,step:a},onChange:function(e){return l({target:{name:n,value:$e(e.target.value,a)}})}},u))};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 Ze(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}Ge.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 Xe=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,O=n.errors,C=n.onChange,A=a(),R=e(A,2),F=R[0],I=R[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 F?F.map((function(e){return{entry:e.entry,count:e.count}})):d.map((function(e){return{entry:e.value}}))}),[F,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,pe({},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,pe({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(S,null,O.map((function(e){return e.message})).join(". ")))};Xe.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},Xe.defaultProps={options:[]};var Ye=["name","options","required","defaultValue","value","noSort","onChange"],Qe=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=Y(e,Ye),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,pe({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(R,{key:n,value:t},n)})))};Qe.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 Je=["type","options","autocomplete","allowNew","fetchOptions"],en=function(e){var n=e.type,t=e.options,r=e.autocomplete,i=e.allowNew,a=e.fetchOptions,l=Y(e,Je);return!0===r||!0===i?o.createElement(Xe,pe({},l,{options:t,fetchOptions:a,allowCreate:!0===i})):o.createElement(Qe,pe({type:n,options:t},l))};en.propTypes={type:m.string.isRequired,options:m.arrayOf(m.shape({value:m.string})).isRequired,autocomplete:m.bool,allowNew:m.bool,fetchOptions:m.func};var nn=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},tn=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(F,{color:"primary",size:t,name:r,checked:nn(i,a),onChange:d});if("buttons"===n){var g=o.createElement(D,{disabled:l,disableElevation:!0,variant:nn(i,a)?"outlined":"contained",color:nn(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:nn(i,a)?"contained":"outlined",color:nn(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:nn(i,a),onChange:d})};tn.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 rn=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],O=function(){d(!1),v(""),E("")},S=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(ne,{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&&S(),"Escape"===e.key&&O()},onChange:function(e){return v(e.target.value)}}))),o.createElement(D,{variant:"outlined",color:"primary",sx:{minWidth:0,px:2},onClick:S},o.createElement(te,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:O,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(R,{key:"option-".concat(e[0]),value:e[0],disabled:u.includes(e[0])},e[1])}))))))};rn.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 De=Ie((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 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}var Me=Q((function(e){return{error:{color:e.palette.error.main}}})),Ne=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=Me(),w=ze(ze({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(ee,null))]),C)try{var A=c.props||{};n=o.cloneElement(c,ze(ze(ze({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,ze(ze({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,F=T&&"buttons"===w.variant,P="array"===a;return P||C?n:o.createElement(_,{className:"data-card-field",size:w.size,error:b&&h,variant:r,margin:"dense",fullWidth:!0,required:m},T&&!F&&o.createElement(O,{className:De(t({},k.error,b&&h)),control:n,label:u,labelPlacement:w.labelPlacement||"end"}),(!T&&!P&&!C||F)&&n,b&&!v&&h&&o.createElement(S,null,g.map((function(e){return e.message})).join(". ")))};Ne.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 Be=["prepend","append","componentProps"];function Ve(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var qe=function(e){var n=e.prepend,r=e.append,i=e.componentProps,a=Y(e,Be),l=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ve(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}({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(Ne,l),r)};qe.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 Ue=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)}})))};Ue.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 He=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(Ue,{type:n,name:t,label:r,variant:i,value:l||u||"",required:d,disabled:g||h,onChange:m||function(){}}):o.createElement(j,pe({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))};He.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 $e=function(e,n){return void 0===e||Number.isNaN(e)||""===e?"":n&&!Number.isSafeInteger(n)?parseFloat(e,10):parseInt(e,10)},We=["name","value","min","max","step","onChange"],Ge=function(e){var n=e.name,t=e.value,r=e.min,i=e.max,a=e.step,l=e.onChange,u=Y(e,We);return o.createElement(j,pe({name:n,type:"number",value:$e(t,a),inputProps:{min:r,max:i,step:a},onChange:function(e){return l({target:{name:n,value:$e(e.target.value,a)}})}},u))};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 Ze(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}Ge.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 Xe=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,O=n.errors,C=n.onChange,A=a(),P=e(A,2),R=P[0],I=P[1],D=a(!1),L=e(D,2),z=L[0],M=L[1],N=l(),B=l("string"==typeof f?f:""),V=p((function(){N.current&&(N.current.abort(),N.current=void 0),M(!1)}),[]),q=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 V(),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,V]),U=l(q);U.current=q,u((function(){return U.current(),V}),[V]);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(){q()},onClose:function(){V()},renderInput:function(e){return o.createElement(j,pe({},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(F,{size:16,thickness:4})),!z&&e.InputProps.endAdornment)})}))},renderOption:function(e,n){return o.createElement(x,pe({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(S,null,O.map((function(e){return e.message})).join(". ")))};Xe.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},Xe.defaultProps={options:[]};var Ye=["name","options","required","defaultValue","value","noSort","onChange"],Qe=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=Y(e,Ye),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,pe({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(P,{key:n,value:t},n)})))};Qe.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 Je=["type","options","autocomplete","allowNew","fetchOptions"],en=function(e){var n=e.type,t=e.options,r=e.autocomplete,i=e.allowNew,a=e.fetchOptions,l=Y(e,Je);return!0===r||!0===i?o.createElement(Xe,pe({},l,{options:t,fetchOptions:a,allowCreate:!0===i})):o.createElement(Qe,pe({type:n,options:t},l))};en.propTypes={type:m.string.isRequired,options:m.arrayOf(m.shape({value:m.string})).isRequired,autocomplete:m.bool,allowNew:m.bool,fetchOptions:m.func};var nn=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},tn=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:nn(i,a),onChange:d});if("buttons"===n){var g=o.createElement(D,{disabled:l,disableElevation:!0,variant:nn(i,a)?"outlined":"contained",color:nn(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:nn(i,a)?"contained":"outlined",color:nn(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:nn(i,a),onChange:d})};tn.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 rn=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],O=function(){d(!1),v(""),E("")},S=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(ne,{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&&S(),"Escape"===e.key&&O()},onChange:function(e){return v(e.target.value)}}))),o.createElement(D,{variant:"outlined",color:"primary",sx:{minWidth:0,px:2},onClick:S},o.createElement(te,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:O,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(P,{key:"option-".concat(e[0]),value:e[0],disabled:u.includes(e[0])},e[1])}))))))};rn.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 on=Ie((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]",O="[object Object]",S="[object Promise]",C="[object RegExp]",A="[object Set]",j="[object String]",T="[object Symbol]",P="[object WeakMap]",R="[object ArrayBuffer]",F="[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",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",je="['’]",Te="["+we+"]",Pe="["+Ae+"]",Re="["+Ee+"]",Ie="\\d+",De="["+_e+"]",Le="["+Oe+"]",ze="[^"+we+Ae+Ie+_e+Oe+Se+"]",Me="\\ud83c[\\udffb-\\udfff]",Ne="[^"+we+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Se+"]",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,Te].join("|")+")",Je=RegExp(je,"g"),en=RegExp(Re,"g"),nn=RegExp(Me+"(?="+Me+")|"+Qe+Xe,"g"),tn=RegExp([Ve+"?"+Le+"+"+We+"(?="+[Pe,Ve,"$"].join("|")+")",$e+"+"+Ge+"(?="+[Pe,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[R]=un[y]=un[F]=un[b]=un[x]=un[k]=un[E]=un[_]=un[O]=un[C]=un[A]=un[j]=un[P]=!1;var cn={};cn[m]=cn[v]=cn[R]=cn[F]=cn[y]=cn[b]=cn[I]=cn[D]=cn[L]=cn[z]=cn[M]=cn[E]=cn[_]=cn[O]=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 Fe&&Fe&&Fe.Object===Object&&Fe,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,On=xn&&xn.isSet,Sn=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 Rn(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 Fn(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({"&":"&","<":"<",">":">",'"':""","'":"'"});function at(e){return"\\"+sn[e]}function lt(e){return rn.test(e)}function ut(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function ct(e,n){return function(t){return e(n(t))}}function st(e,n){for(var t=-1,r=e.length,i=0,a=[];++t<r;){var l=e[t];l!==n&&l!==o||(e[t]=o,a[i++]=t)}return a}function ft(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}function pt(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=[e,e]})),t}function dt(e){return lt(e)?function(e){var n=nn.lastIndex=0;for(;nn.test(e);)++n;return n}(e):Bn(e)}function ht(e){return lt(e)?function(e){return e.match(nn)||[]}(e):function(e){return e.split("")}(e)}function gt(e){for(var n=e.length;n--&&oe.test(e.charAt(n)););return n}var mt=Kn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vt=function e(n){var oe,we=(n=null==n?gn:vt.defaults(gn.Object(),n,vt.pick(gn,an))).Array,Ee=n.Date,_e=n.Error,Oe=n.Function,Se=n.Math,Ce=n.Object,Ae=n.RegExp,je=n.String,Te=n.TypeError,Pe=we.prototype,Re=Oe.prototype,Fe=Ce.prototype,Ie=n["__core-js_shared__"],De=Re.toString,Le=Fe.hasOwnProperty,ze=0,Me=(oe=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Ne=Fe.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=Fe.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=Se.ceil,vn=Se.floor,bn=Ce.getOwnPropertySymbols,xn=Ue?Ue.isBuffer:t,Bn=n.isFinite,Kn=Pe.join,yt=ct(Ce.keys,Ce),bt=Se.max,xt=Se.min,kt=Ee.now,wt=n.parseInt,Et=Se.random,_t=Pe.reverse,Ot=po(n,"DataView"),St=po(n,"Map"),Ct=po(n,"Promise"),At=po(n,"Set"),jt=po(n,"WeakMap"),Tt=po(Ce,"create"),Pt=jt&&new jt,Rt={},Ft=No(Ot),It=No(St),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,Rl(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==O||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,Fl(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 R:return Oi(e);case y:case b:return new r(+e);case F:return function(e,n){var t=n?Oi(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 Si(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?Fl:Rl)(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 Ro((function(){e.apply(t,i)}),n)}function pr(e,n,t,r){var i=-1,o=Fn,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(St||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(!St||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,Rl)}function wr(e,n){return e&&xr(e,n,Rl)}function Er(e,n){return Rn(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 Or(e,n,t){var r=n(e);return $a(e)?r:Ln(r,t(e))}function Sr(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:Fn,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 Rr(e){return tl(e)&&Sr(e)==m}function Fr(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?O:c)==O,p=(s=s==m?O:s)==O,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 F:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case R: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,Fr,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?Fr(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(!Oo(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=Oo(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)&&So(n)?Co(Mo(e),n):function(r){var i=Cl(r,e);return i===t&&i===n?Al(r,e):Fr(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=Si(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)}}),Fl)}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 Fo(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=Fn,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 Oi(e){var n=new e.constructor(e.byteLength);return new $e(n).set(new $e(e)),n}function Si(e,n){var t=n?Oi(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 Ri(e,n){return function(t,r){var i=$a(t)?An:ir,o=n?n():{};return i(t,e,co(r,2),o)}}function Fi(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=Rl(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,O=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&&(O=v||Mi(O)),O.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=Se[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,Fe[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 Fo(Ao(e,t,Wo),e+"")}function io(e){return Or(e,Rl,ho)}function oo(e){return Or(e,Fl,go)}var ao=Pt?function(e){return Pt.get(e)}:cu;function lo(e){for(var n=e.name+"",t=Rt[n],r=Le.call(Rt,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=Rl(e),t=n.length;t--;){var r=n[t],i=e[r];n[t]=[r,i,So(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),Rn(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=Sr;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||Oo(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]}(Ot&&mo(new Ot(new ArrayBuffer(1)))!=F||St&&mo(new St)!=E||Ct&&mo(Ct.resolve())!=S||At&&mo(new At)!=A||jt&&mo(new jt)!=P)&&(mo=function(e){var n=Sr(e),r=n==O?e.constructor:t,i=r?No(r):"";if(i)switch(i){case Ft:return F;case It:return E;case Dt:return S;case Lt:return A;case zt:return P}return n});var _o=Ie?Qa:vu;function Oo(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||Fe)}function So(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),Ro=hn||function(e,n){return gn.setTimeout(e,n)},Fo=Do(ti);function Io(e,n,t){var r=n+"";return Fo(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]&&!Fn(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=Rn(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(Rn(e,Ka))})),ca=Yr((function(e){var n=Yo(e);return Ka(n)&&(n=t),mi(Rn(e,Ka),co(n,2))})),sa=Yr((function(e){var n=Yo(e);return n="function"==typeof n?n:t,mi(Rn(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=Ri((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=Ri((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=Ri((function(e,n,t){ar(e,t,n)}));function _a(e,n){return($a(e)?Dn:Br)(e,co(n,3))}var Oa=Ri((function(e,n,t){e[t?0:1].push(n)}),(function(){return[[],[]]}));var Sa=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 Ra(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=Ro(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=Ro(v,n),p?g(e):u}(s);if(d)return Ei(c),c=Ro(v,n),g(s)}return c===t&&(c=Ro(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 Fa=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=Rr(function(){return arguments}())?Rr: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)&&Sr(e)==R};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)&&Sr(e)==b};function Ya(e){if(!tl(e))return!1;var n=Sr(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=Sr(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)&&Sr(e)==_}function ol(e){if(!tl(e)||Sr(e)!=O)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)&&Sr(e)==C};var ll=On?Jn(On):function(e){return tl(e)&&mo(e)==A};function ul(e){return"string"==typeof e||!$a(e)&&tl(e)&&Sr(e)==j}function cl(e){return"symbol"==typeof e||tl(e)&&Sr(e)==T}var sl=Sn?Jn(Sn):function(e){return tl(e)&&el(e.length)&&!!un[Sr(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,Fl(e))}function bl(e){return null==e?"":si(e)}var xl=Fi((function(e,n){if(Oo(n)||Ga(n))Pi(n,Rl(n),e);else for(var t in n)Le.call(n,t)&&tr(e,t,n[t])})),kl=Fi((function(e,n){Pi(n,Fl(n),e)})),wl=Fi((function(e,n,t,r){Pi(n,Fl(n),e,r)})),El=Fi((function(e,n,t,r){Pi(n,Rl(n),e,r)})),_l=ro(lr);var Ol=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=Fl(a),u=-1,c=l.length;++u<c;){var s=l[u],f=e[s];(f===t||qa(f,Fe[s])&&!Le.call(e,s))&&(e[s]=a[s])}return e})),Sl=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 Rl(e){return Ga(e)?Yt(e):zr(e)}function Fl(e){return Ga(e)?Yt(e,!0):Mr(e)}var Il=Fi((function(e,n,t){Ur(e,n,t)})),Dl=Fi((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(Rl),Bl=Yi(Fl);function ql(e){return null==e?[]:et(e,Rl(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=Rl(n),i=Er(n,r);null!=t||nl(n)&&(i.length||!r.length)||(t=n,n=e,e=this,i=Er(n,Rl(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=Rl(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=Ra,qt.defaults=Ol,qt.defaultsDeep=Sl,qt.defer=Fa,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)?Rn: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,Rl(e))},qt.functionsIn=function(e){return null==e?[]:Er(e,Fl(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=Rl,qt.keysIn=Fl,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=Oa,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)?Rn: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=Sa,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))&<(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),Ra(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,Fl(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,Rl(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),Fl)},qt.forInRight=function(e,n){return null==e?e:xr(e,co(n,3),Fl)},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)&&Sr(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(Oo(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 Fr(e,n)},qt.isEqualWith=function(e,n,r){var i=(r="function"==typeof r?r:t)?r(e,n):t;return i===t?Fr(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]"==Sr(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=Rl(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 Oe(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(Rt,r)||(Rt[r]=[]),Rt[r].push({name:n,func:t})}})),Rt[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(Fe)})),an=function(e){var n=e.entries,t=e.options,r=e.blockedOptions,i=e.onChange,a=s((function(){return on.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))})))})))};an.propTypes={entries:m.arrayOf(m.shape({})).isRequired,options:m.arrayOf(m.shape({})).isRequired,blockedOptions:m.arrayOf(m.shape({})).isRequired,onChange:m.func.isRequired};var ln=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?an:rn;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 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}function cn(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}ln.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 sn=X((function(e){return{readOnlyField:{width:"100%",display:"flex",flexDirection:"column",marginBottom:e.spacing(1.5),"&:last-child":{marginBottom:0}}}})),fn=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=cn(cn({},c),{},{formVariant:t,name:i,label:a,value:s,options:f,required:p,readOnly:!0}),h=sn(),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))};fn.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 pn=["prepend","append","componentProps"];function dn(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 hn=function(e){e.prepend,e.append;var n=e.componentProps,r=Y(e,pn),i=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?dn(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(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(fn,i)};hn.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 gn=o.memo(hn),mn=function(e,n){var t=de.DATETIME_FULL;return n&&(t="string"==typeof n?de[n]:n),de.fromISO(e).toLocaleString(t)},vn=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(mn((null==n?void 0:n.start)||"",r)," - ").concat(mn((null==n?void 0:n.end)||"",r)):mn(n,r)),o.createElement(k,{variant:"body1",style:{whiteSpace:a?"pre-line":"inherit"}},l)};vn.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 yn=["http","https","mailto","tel"];
|
|
15
|
+
var on=Ie((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]",O="[object Object]",S="[object Promise]",C="[object RegExp]",A="[object Set]",j="[object String]",T="[object Symbol]",F="[object WeakMap]",P="[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]",V="[object Uint16Array]",q="[object Uint32Array]",U=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(W.source),Z=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ie=/^\s+/,oe=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",je="['’]",Te="["+we+"]",Fe="["+Ae+"]",Pe="["+Ee+"]",Ie="\\d+",De="["+_e+"]",Le="["+Oe+"]",ze="[^"+we+Ae+Ie+_e+Oe+Se+"]",Me="\\ud83c[\\udffb-\\udfff]",Ne="[^"+we+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+Se+"]",Ue="\\u200d",He="(?:"+Le+"|"+ze+")",$e="(?:"+qe+"|"+ze+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Pe+"|"+Me+")"+"?",Ze="["+Ce+"]?",Xe=Ze+Ke+("(?:"+Ue+"(?:"+[Ne,Be,Ve].join("|")+")"+Ze+Ke+")*"),Ye="(?:"+[De,Be,Ve].join("|")+")"+Xe,Qe="(?:"+[Ne+Pe+"?",Pe,Be,Ve,Te].join("|")+")",Je=RegExp(je,"g"),en=RegExp(Pe,"g"),nn=RegExp(Me+"(?="+Me+")|"+Qe+Xe,"g"),tn=RegExp([qe+"?"+Le+"+"+We+"(?="+[Fe,qe,"$"].join("|")+")",$e+"+"+Ge+"(?="+[Fe,qe+He,"$"].join("|")+")",qe+"?"+He+"+"+We,qe+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ye].join("|"),"g"),rn=RegExp("["+Ue+we+Ee+Ce+"]"),on=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,an=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ln=-1,un={};un[I]=un[D]=un[L]=un[z]=un[M]=un[N]=un[B]=un[V]=un[q]=!0,un[m]=un[v]=un[P]=un[y]=un[R]=un[b]=un[x]=un[k]=un[E]=un[_]=un[O]=un[C]=un[A]=un[j]=un[F]=!1;var cn={};cn[m]=cn[v]=cn[P]=cn[R]=cn[y]=cn[b]=cn[I]=cn[D]=cn[L]=cn[z]=cn[M]=cn[E]=cn[_]=cn[O]=cn[C]=cn[A]=cn[j]=cn[T]=cn[N]=cn[B]=cn[V]=cn[q]=!0,cn[x]=cn[k]=cn[F]=!1;var sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fn=parseFloat,pn=parseInt,dn="object"==typeof Re&&Re&&Re.Object===Object&&Re,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,On=xn&&xn.isSet,Sn=xn&&xn.isTypedArray;function Cn(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function An(e,n,t,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];n(r,a,t(a),e)}return r}function jn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==n(e[t],t,e););return e}function Tn(e,n){for(var t=null==e?0:e.length;t--&&!1!==n(e[t],t,e););return e}function Fn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(!n(e[t],t,e))return!1;return!0}function Pn(e,n){for(var t=-1,r=null==e?0:e.length,i=0,o=[];++t<r;){var a=e[t];n(a,t,e)&&(o[i++]=a)}return o}function 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 Vn(e,n,t){var r;return t(e,(function(e,t,i){if(n(e,t,i))return r=t,!1})),r}function qn(e,n,t,r){for(var i=e.length,o=t+(r?1:-1);r?o--:++o<i;)if(n(e[o],o,e))return o;return-1}function Un(e,n,t){return n==n?function(e,n,t){var r=t-1,i=e.length;for(;++r<i;)if(e[r]===n)return r;return-1}(e,n,t):qn(e,$n,t)}function Hn(e,n,t,r){for(var i=t-1,o=e.length;++i<o;)if(r(e[i],n))return i;return-1}function $n(e){return e!=e}function Wn(e,n){var t=null==e?0:e.length;return t?Xn(e,n)/t:d}function Gn(e){return function(n){return null==n?t:n[e]}}function Kn(e){return function(n){return null==e?t:e[n]}}function Zn(e,n,t,r,i){return i(e,(function(e,i,o){t=r?(r=!1,e):n(t,e,i,o)})),t}function Xn(e,n){for(var r,i=-1,o=e.length;++i<o;){var a=n(e[i]);a!==t&&(r=r===t?a:r+a)}return r}function Yn(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}function Qn(e){return e?e.slice(0,gt(e)+1).replace(ie,""):e}function Jn(e){return function(n){return e(n)}}function et(e,n){return Dn(n,(function(n){return e[n]}))}function nt(e,n){return e.has(n)}function tt(e,n){for(var t=-1,r=e.length;++t<r&&Un(n,e[t],0)>-1;);return t}function rt(e,n){for(var t=e.length;t--&&Un(n,e[t],0)>-1;);return t}var it=Kn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ot=Kn({"&":"&","<":"<",">":">",'"':""","'":"'"});function at(e){return"\\"+sn[e]}function lt(e){return rn.test(e)}function ut(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function ct(e,n){return function(t){return e(n(t))}}function st(e,n){for(var t=-1,r=e.length,i=0,a=[];++t<r;){var l=e[t];l!==n&&l!==o||(e[t]=o,a[i++]=t)}return a}function ft(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}function pt(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=[e,e]})),t}function dt(e){return lt(e)?function(e){var n=nn.lastIndex=0;for(;nn.test(e);)++n;return n}(e):Bn(e)}function ht(e){return lt(e)?function(e){return e.match(nn)||[]}(e):function(e){return e.split("")}(e)}function gt(e){for(var n=e.length;n--&&oe.test(e.charAt(n)););return n}var mt=Kn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vt=function e(n){var oe,we=(n=null==n?gn:vt.defaults(gn.Object(),n,vt.pick(gn,an))).Array,Ee=n.Date,_e=n.Error,Oe=n.Function,Se=n.Math,Ce=n.Object,Ae=n.RegExp,je=n.String,Te=n.TypeError,Fe=we.prototype,Pe=Oe.prototype,Re=Ce.prototype,Ie=n["__core-js_shared__"],De=Pe.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),Ve=gn._,qe=Ae("^"+De.call(Le).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=yn?n.Buffer:t,He=n.Symbol,$e=n.Uint8Array,We=Ue?Ue.allocUnsafe:t,Ge=ct(Ce.getPrototypeOf,Ce),Ke=Ce.create,Ze=Re.propertyIsEnumerable,Xe=Fe.splice,Ye=He?He.isConcatSpreadable:t,Qe=He?He.iterator:t,nn=He?He.toStringTag:t,rn=function(){try{var e=po(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),sn=n.clearTimeout!==gn.clearTimeout&&n.clearTimeout,dn=Ee&&Ee.now!==gn.Date.now&&Ee.now,hn=n.setTimeout!==gn.setTimeout&&n.setTimeout,mn=Se.ceil,vn=Se.floor,bn=Ce.getOwnPropertySymbols,xn=Ue?Ue.isBuffer:t,Bn=n.isFinite,Kn=Fe.join,yt=ct(Ce.keys,Ce),bt=Se.max,xt=Se.min,kt=Ee.now,wt=n.parseInt,Et=Se.random,_t=Fe.reverse,Ot=po(n,"DataView"),St=po(n,"Map"),Ct=po(n,"Promise"),At=po(n,"Set"),jt=po(n,"WeakMap"),Tt=po(Ce,"create"),Ft=jt&&new jt,Pt={},Rt=No(Ot),It=No(St),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 Vt(e){if(tl(e)&&!$a(e)&&!(e instanceof $t)){if(e instanceof Ht)return e;if(Le.call(e,"__wrapped__"))return Bo(e)}return new Ht(e)}var qt=function(){function e(){}return function(n){if(!nl(n))return{};if(Ke)return Ke(n);e.prototype=n;var r=new e;return e.prototype=t,r}}();function Ut(){}function Ht(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function $t(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Wt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Gt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Kt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Zt(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new Kt;++n<t;)this.add(e[n])}function Xt(e){var n=this.__data__=new Gt(e);this.size=n.size}function Yt(e,n){var t=$a(e),r=!t&&Ha(e),i=!t&&!r&&Za(e),o=!t&&!r&&!i&&sl(e),a=t||r||i||o,l=a?Yn(e.length,je):[],u=l.length;for(var c in e)!n&&!Le.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xo(c,u))||l.push(c);return l}function Qt(e){var n=e.length;return n?e[Zr(0,n-1)]:t}function Jt(e,n){return Lo(Ti(e),ur(n,0,e.length))}function er(e){return Lo(Ti(e))}function nr(e,n,r){(r!==t&&!Va(e[n],r)||r===t&&!(n in e))&&ar(e,n,r)}function tr(e,n,r){var i=e[n];Le.call(e,n)&&Va(i,r)&&(r!==t||n in e)||ar(e,n,r)}function rr(e,n){for(var t=e.length;t--;)if(Va(e[t][0],n))return t;return-1}function ir(e,n,t,r){return dr(e,(function(e,i,o){n(r,e,t(e),o)})),r}function or(e,n){return e&&Fi(n,Pl(n),e)}function ar(e,n,t){"__proto__"==n&&rn?rn(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function lr(e,n){for(var r=-1,i=n.length,o=we(i),a=null==e;++r<i;)o[r]=a?t:Cl(e,n[r]);return o}function ur(e,n,r){return e==e&&(r!==t&&(e=e<=r?e:r),n!==t&&(e=e>=n?e:n)),e}function cr(e,n,r,i,o,a){var l,u=1&n,c=2&n,s=4&n;if(r&&(l=o?r(e,i,o,a):r(e)),l!==t)return l;if(!nl(e))return e;var f=$a(e);if(f){if(l=function(e){var n=e.length,t=new e.constructor(n);n&&"string"==typeof e[0]&&Le.call(e,"index")&&(t.index=e.index,t.input=e.input);return t}(e),!u)return Ti(e,l)}else{var p=mo(e),d=p==k||p==w;if(Za(e))return _i(e,u);if(p==O||p==m||d&&!o){if(l=c||d?{}:yo(e),!u)return c?function(e,n){return Fi(e,go(e),n)}(e,function(e,n){return e&&Fi(n,Rl(n),e)}(l,e)):function(e,n){return Fi(e,ho(e),n)}(e,or(l,e))}else{if(!cn[p])return o?e:{};l=function(e,n,t){var r=e.constructor;switch(n){case P:return Oi(e);case y:case b:return new r(+e);case R:return function(e,n){var t=n?Oi(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 V:case q:return Si(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:Pl)(e);return jn(g||e,(function(t,i){g&&(t=e[i=t]),tr(l,i,cr(t,n,r,i,e,a))})),l}function sr(e,n,r){var i=r.length;if(null==e)return!i;for(e=Ce(e);i--;){var o=r[i],a=n[o],l=e[o];if(l===t&&!(o in e)||!a(l))return!1}return!0}function fr(e,n,i){if("function"!=typeof e)throw new Te(r);return Po((function(){e.apply(t,i)}),n)}function pr(e,n,t,r){var i=-1,o=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}Vt.templateSettings={escape:X,evaluate:Y,interpolate:Q,variable:"",imports:{_:Vt}},Vt.prototype=Ut.prototype,Vt.prototype.constructor=Vt,Ht.prototype=qt(Ut.prototype),Ht.prototype.constructor=Ht,$t.prototype=qt(Ut.prototype),$t.prototype.constructor=$t,Wt.prototype.clear=function(){this.__data__=Tt?Tt(null):{},this.size=0},Wt.prototype.delete=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n},Wt.prototype.get=function(e){var n=this.__data__;if(Tt){var r=n[e];return r===i?t:r}return Le.call(n,e)?n[e]:t},Wt.prototype.has=function(e){var n=this.__data__;return Tt?n[e]!==t:Le.call(n,e)},Wt.prototype.set=function(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tt&&n===t?i:n,this},Gt.prototype.clear=function(){this.__data__=[],this.size=0},Gt.prototype.delete=function(e){var n=this.__data__,t=rr(n,e);return!(t<0)&&(t==n.length-1?n.pop():Xe.call(n,t,1),--this.size,!0)},Gt.prototype.get=function(e){var n=this.__data__,r=rr(n,e);return r<0?t:n[r][1]},Gt.prototype.has=function(e){return rr(this.__data__,e)>-1},Gt.prototype.set=function(e,n){var t=this.__data__,r=rr(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this},Kt.prototype.clear=function(){this.size=0,this.__data__={hash:new Wt,map:new(St||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(!St||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,Pl)}function wr(e,n){return e&&xr(e,n,Pl)}function Er(e,n){return Pn(n,(function(n){return Qa(e[n])}))}function _r(e,n){for(var r=0,i=(n=xi(n,e)).length;null!=e&&r<i;)e=e[Mo(n[r++])];return r&&r==i?e:t}function Or(e,n,t){var r=n(e);return $a(e)?r:Ln(r,t(e))}function Sr(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 Fr(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 Pr(e){return tl(e)&&Sr(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?O:c)==O,p=(s=s==m?O:s)==O,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 P:return!(e.byteLength!=n.byteLength||!o(new $e(e),new $e(n)));case y:case b:case _:return Va(+e,+n);case x:return e.name==n.name&&e.message==n.message;case C:case j:return e==n+"";case E:var l=ut;case A:var u=1&r;if(l||(l=ft),e.size!=n.size&&!u)return!1;var c=a.get(e);if(c)return c==n;r|=2,a.set(e,n);var s=to(l(e),l(n),r,i,o,a);return a.delete(e),s;case T:if(Nt)return Nt.call(e)==Nt.call(n)}return!1}(e,n,c,r,i,o,a);if(!(1&r)){var h=f&&Le.call(e,"__wrapped__"),g=p&&Le.call(n,"__wrapped__");if(h||g){var k=h?e.value():e,w=g?n.value():n;return a||(a=new Xt),o(k,w,r,i,a)}}if(!d)return!1;return a||(a=new Xt),function(e,n,r,i,o,a){var l=1&r,u=io(e),c=u.length,s=io(n),f=s.length;if(c!=f&&!l)return!1;var p=c;for(;p--;){var d=u[p];if(!(l?d in n:Le.call(n,d)))return!1}var h=a.get(e),g=a.get(n);if(h&&g)return h==n&&g==e;var m=!0;a.set(e,n),a.set(n,e);var v=l;for(;++p<c;){var y=e[d=u[p]],b=n[d];if(i)var x=l?i(b,y,d,n,e,a):i(y,b,d,e,n,a);if(!(x===t?y===b||o(y,b,r,i,a):x)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var k=e.constructor,w=n.constructor;k==w||!("constructor"in e)||!("constructor"in n)||"function"==typeof k&&k instanceof k&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(n),m}(e,n,r,i,o,a)}(e,n,r,i,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)?qe:me).test(No(e));var n}function Lr(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?$a(e)?qr(e[0],e[1]):Vr(e):du(e)}function zr(e){if(!Oo(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=Oo(e),t=[];for(var r in e)("constructor"!=r||!n&&Le.call(e,r))&&t.push(r);return t}function Nr(e,n){return e<n}function Br(e,n){var t=-1,r=Ga(e)?we(e.length):[];return dr(e,(function(e,i,o){r[++t]=n(e,i,o)})),r}function Vr(e){var n=fo(e);return 1==n.length&&n[0][2]?Co(n[0][0],n[0][1]):function(t){return t===e||Ir(t,e,n)}}function qr(e,n){return wo(e)&&So(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=Si(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(Vl(e))}function Jr(e,n){var t=Vl(e);return Lo(t,ur(n,0,t.length))}function ei(e,n,r,i){if(!nl(e))return e;for(var o=-1,a=(n=xi(n,e)).length,l=a-1,u=e;null!=u&&++o<a;){var c=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=Ft?function(e,n){return Ft.set(e,n),e}:iu,ti=rn?function(e,n){return rn(e,"toString",{configurable:!0,enumerable:!1,value:nu(n),writable:!0})}:iu;function ri(e){return Lo(Vl(e))}function ii(e,n,t){var r=-1,i=e.length;n<0&&(n=-n>i?0:i+n),(t=t>i?i:t)<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var o=we(i);++r<i;)o[r]=e[r+n];return o}function oi(e,n){var t;return dr(e,(function(e,r,i){return!(t=n(e,r,i))})),!!t}function ai(e,n,t){var r=0,i=null==e?r:e.length;if("number"==typeof n&&n==n&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cl(a)&&(t?a<=n:a<n)?r=o+1:i=o}return i}return li(e,n,iu,t)}function li(e,n,r,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(n=r(n))!=n,u=null===n,c=cl(n),s=n===t;o<a;){var f=vn((o+a)/2),p=r(e[f]),d=p!==t,h=null===p,g=p==p,m=cl(p);if(l)var v=i||g;else v=s?g&&(i||d):u?g&&d&&(i||!h):c?g&&d&&!h&&(i||!m):!h&&!m&&(i?p<=n:p<n);v?o=f+1:a=f}return xt(a,4294967294)}function ui(e,n){for(var t=-1,r=e.length,i=0,o=[];++t<r;){var a=e[t],l=n?n(a):a;if(!t||!Va(l,u)){var u=l;o[i++]=0===a?0:a}}return o}function ci(e){return"number"==typeof e?e:cl(e)?d:+e}function si(e){if("string"==typeof e)return e;if($a(e))return Dn(e,si)+"";if(cl(e))return Bt?Bt.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function fi(e,n,t){var r=-1,i=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 Oi(e){var n=new e.constructor(e.byteLength);return new $e(n).set(new $e(e)),n}function Si(e,n){var t=n?Oi(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Ci(e,n){if(e!==n){var r=e!==t,i=null===e,o=e==e,a=cl(e),l=n!==t,u=null===n,c=n==n,s=cl(n);if(!u&&!s&&!a&&e>n||a&&l&&c&&!u&&!s||i&&l&&c||!r&&c||!o)return 1;if(!i&&!a&&!s&&e<n||s&&r&&o&&!i&&!a||u&&r&&o||!l&&o||!c)return-1}return 0}function Ai(e,n,t,r){for(var i=-1,o=e.length,a=t.length,l=-1,u=n.length,c=bt(o-a,0),s=we(u+c),f=!r;++l<u;)s[l]=n[l];for(;++i<a;)(f||i<o)&&(s[t[i]]=e[i]);for(;c--;)s[l++]=e[i++];return s}function ji(e,n,t,r){for(var i=-1,o=e.length,a=-1,l=t.length,u=-1,c=n.length,s=bt(o-l,0),f=we(s+c),p=!r;++i<s;)f[i]=e[i];for(var d=i;++u<c;)f[d+u]=n[u];for(;++a<l;)(p||i<o)&&(f[d+t[a]]=e[i++]);return f}function Ti(e,n){var t=-1,r=e.length;for(n||(n=we(r));++t<r;)n[t]=e[t];return n}function Fi(e,n,r,i){var o=!r;r||(r={});for(var a=-1,l=n.length;++a<l;){var u=n[a],c=i?i(r[u],e[u],u,r,e):t;c===t&&(c=e[u]),o?ar(r,u,c):tr(r,u,c)}return r}function Pi(e,n){return function(t,r){var i=$a(t)?An:ir,o=n?n():{};return i(t,e,co(r,2),o)}}function 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=qt(e.prototype),r=e.apply(t,n);return nl(r)?r:t}}function Ni(e){return function(n,r,i){var o=Ce(n);if(!Ga(n)){var a=co(r,3);n=Pl(n),r=function(e){return a(o[e],e,o)}}var l=e(n,r,i);return l>-1?o[a?n[l]:l]:t}}function Bi(e){return ro((function(n){var i=n.length,o=i,a=Ht.prototype.thru;for(e&&n.reverse();o--;){var l=n[o];if("function"!=typeof l)throw new Te(r);if(a&&!u&&"wrapper"==lo(l))var u=new Ht([],!0)}for(o=u?o:i;++o<i;){var c=lo(l=n[o]),s="wrapper"==c?ao(l):t;u=s&&Eo(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?u[lo(s[0])].apply(u,s[3]):1==l.length&&Eo(l)?u[c]():u.thru(l)}return function(){var e=arguments,t=e[0];if(u&&1==e.length&&$a(t))return u.plant(t).value();for(var r=0,o=i?n[r].apply(this,e):t;++r<i;)o=n[r].call(this,o);return o}}))}function Vi(e,n,r,i,o,a,l,u,s,f){var p=n&c,d=1&n,h=2&n,g=24&n,m=512&n,v=h?t: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,Vi,c.placeholder,r,b,E,u,s,f-y)}var _=d?r:this,O=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&&(O=v||Mi(O)),O.apply(_,b)}}function qi(e,n){return function(t,r){return function(e,n,t,r){return kr(e,(function(e,i,o){n(r,t(e),i,o)})),r}(t,e,n(r),{})}}function Ui(e,n){return function(r,i){var o;if(r===t&&i===t)return n;if(r!==t&&(o=r),i!==t){if(o===t)return i;"string"==typeof r||"string"==typeof i?(r=si(r),i=si(i)):(r=ci(r),i=ci(i)),o=e(r,i)}return o}}function Hi(e){return ro((function(n){return n=Dn(n,Jn(co())),Yr((function(t){var r=this;return e(n,(function(e){return Cn(e,r,t)}))}))}))}function $i(e,n){var r=(n=n===t?" ":si(n)).length;if(r<2)return r?Xr(n,e):n;var i=Xr(n,mn(e/dt(n)));return lt(n)?wi(ht(i),0,e).join(""):i.slice(0,e)}function Wi(e){return function(n,r,i){return i&&"number"!=typeof i&&ko(n,r,i)&&(r=i=t),n=hl(n),r===t?(r=n,n=0):r=hl(r),function(e,n,t,r){for(var i=-1,o=bt(mn((n-e)/(t||1)),0),a=we(o);o--;)a[r?o:++i]=e,e+=t;return a}(n,r,i=i===t?n<r?1:-1:hl(i),e)}}function Gi(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=vl(n),t=vl(t)),e(n,t)}}function Ki(e,n,r,i,o,a,c,s,f,p){var d=8&n;n|=d?l:u,4&(n&=~(d?u:l))||(n&=-4);var h=[e,n,o,d?a:t,d?c:t,d?t:a,d?t:c,s,f,p],g=r.apply(t,h);return Eo(e)&&Fo(g,h),g.placeholder=i,Io(g,e,n)}function Zi(e){var n=Se[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,Vi,o.placeholder,t,l,s,t,t,r-a):Cn(this&&this!==gn&&this instanceof o?i:e,this,l)}}(e,n,g):n!=l&&33!=n||p.length?Vi.apply(t,k):function(e,n,t,r){var i=1&n,o=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:Fo)(w,k),e,n)}function Ji(e,n,r,i){return e===t||Va(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 Or(e,Pl,ho)}function oo(e){return Or(e,Rl,go)}var ao=Ft?function(e){return Ft.get(e)}:cu;function lo(e){for(var n=e.name+"",t=Pt[n],r=Le.call(Pt,n)?t.length:0;r--;){var i=t[r],o=i.func;if(null==o||o==e)return i.name}return n}function uo(e){return(Le.call(Vt,"placeholder")?Vt:e).placeholder}function co(){var e=Vt.iteratee||ou;return e=e===ou?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function so(e,n){var t,r,i=e.__data__;return("string"==(r=typeof(t=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?i["string"==typeof n?"string":"hash"]:i.map}function fo(e){for(var n=Pl(e),t=n.length;t--;){var r=n[t],i=e[r];n[t]=[r,i,So(i)]}return n}function po(e,n){var r=function(e,n){return null==e?t:e[n]}(e,n);return Dr(r)?r:t}var ho=bn?function(e){return null==e?[]:(e=Ce(e),Pn(bn(e),(function(n){return Ze.call(e,n)})))}:mu,go=bn?function(e){for(var n=[];e;)Ln(n,ho(e)),e=Ge(e);return n}:mu,mo=Sr;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||Oo(e)?{}:qt(Ge(e))}function bo(e){return $a(e)||Ha(e)||!!(Ye&&e&&e[Ye])}function xo(e,n){var t=typeof e;return!!(n=null==n?p:n)&&("number"==t||"symbol"!=t&&ye.test(e))&&e>-1&&e%1==0&&e<n}function ko(e,n,t){if(!nl(t))return!1;var r=typeof n;return!!("number"==r?Ga(t)&&xo(n,t.length):"string"==r&&n in t)&&Va(t[n],e)}function wo(e,n){if($a(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!cl(e))||(ee.test(e)||!J.test(e)||null!=n&&e in Ce(n))}function Eo(e){var n=lo(e),t=Vt[n];if("function"!=typeof t||!(n in $t.prototype))return!1;if(e===t)return!0;var r=ao(t);return!!r&&e===r[0]}(Ot&&mo(new Ot(new ArrayBuffer(1)))!=R||St&&mo(new St)!=E||Ct&&mo(Ct.resolve())!=S||At&&mo(new At)!=A||jt&&mo(new jt)!=F)&&(mo=function(e){var n=Sr(e),r=n==O?e.constructor:t,i=r?No(r):"";if(i)switch(i){case Rt:return R;case It:return E;case Dt:return S;case Lt:return A;case zt:return F}return n});var _o=Ie?Qa:vu;function Oo(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||Re)}function So(e){return e==e&&!nl(e)}function Co(e,n){return function(r){return null!=r&&(r[e]===n&&(n!==t||e in Ce(r)))}}function Ao(e,n,r){return n=bt(n===t?e.length-1:n,0),function(){for(var t=arguments,i=-1,o=bt(t.length-n,0),a=we(o);++i<o;)a[i]=t[n+i];i=-1;for(var l=we(n+1);++i<n;)l[i]=t[i];return l[n]=r(a),Cn(e,this,l)}}function jo(e,n){return n.length<2?e:_r(e,ii(n,0,-1))}function To(e,n){if(("constructor"!==n||"function"!=typeof e[n])&&"__proto__"!=n)return e[n]}var Fo=Do(ni),Po=hn||function(e,n){return gn.setTimeout(e,n)},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 Vo=Yr((function(e,n){return Ka(e)?pr(e,yr(n,1,Ka,!0)):[]})),qo=Yr((function(e,n){var r=Yo(n);return Ka(r)&&(r=t),Ka(e)?pr(e,yr(n,1,Ka,!0),co(r,2)):[]})),Uo=Yr((function(e,n){var r=Yo(n);return Ka(r)&&(r=t),Ka(e)?pr(e,yr(n,1,Ka,!0),t,r):[]}));function Ho(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var i=null==t?0:gl(t);return i<0&&(i=bt(r+i,0)),qn(e,co(n,3),i)}function $o(e,n,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==t&&(o=gl(r),o=r<0?bt(i+o,0):xt(o,i-1)),qn(e,co(n,3),o,!0)}function Wo(e){return(null==e?0:e.length)?yr(e,1):[]}function Go(e){return e&&e.length?e[0]:t}var Ko=Yr((function(e){var n=Dn(e,yi);return n.length&&n[0]===e[0]?Tr(n):[]})),Zo=Yr((function(e){var n=Yo(e),r=Dn(e,yi);return n===Yo(r)?n=t:r.pop(),r.length&&r[0]===e[0]?Tr(r,co(n,2)):[]})),Xo=Yr((function(e){var n=Yo(e),r=Dn(e,yi);return(n="function"==typeof n?n:t)&&r.pop(),r.length&&r[0]===e[0]?Tr(r,t,n):[]}));function Yo(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Qo=Yr(Jo);function Jo(e,n){return e&&e.length&&n&&n.length?Gr(e,n):e}var ea=ro((function(e,n){var t=null==e?0:e.length,r=lr(e,n);return Kr(e,Dn(n,(function(e){return xo(e,t)?+e:e})).sort(Ci)),r}));function na(e){return null==e?e:_t.call(e)}var ta=Yr((function(e){return fi(yr(e,1,Ka,!0))})),ra=Yr((function(e){var n=Yo(e);return Ka(n)&&(n=t),fi(yr(e,1,Ka,!0),co(n,2))})),ia=Yr((function(e){var n=Yo(e);return n="function"==typeof n?n:t,fi(yr(e,1,Ka,!0),t,n)}));function oa(e){if(!e||!e.length)return[];var n=0;return e=Pn(e,(function(e){if(Ka(e))return n=bt(e.length,n),!0})),Yn(n,(function(n){return Dn(e,Gn(n))}))}function aa(e,n){if(!e||!e.length)return[];var r=oa(e);return null==n?r:Dn(r,(function(e){return Cn(n,t,e)}))}var la=Yr((function(e,n){return Ka(e)?pr(e,n):[]})),ua=Yr((function(e){return mi(Pn(e,Ka))})),ca=Yr((function(e){var n=Yo(e);return Ka(n)&&(n=t),mi(Pn(e,Ka),co(n,2))})),sa=Yr((function(e){var n=Yo(e);return n="function"==typeof n?n:t,mi(Pn(e,Ka),t,n)})),fa=Yr(oa);var pa=Yr((function(e){var n=e.length,r=n>1?e[n-1]:t;return r="function"==typeof r?(e.pop(),r):t,aa(e,r)}));function da(e){var n=Vt(e);return n.__chain__=!0,n}function ha(e,n){return n(e)}var ga=ro((function(e){var n=e.length,r=n?e[0]:0,i=this.__wrapped__,o=function(n){return lr(n,e)};return!(n>1||this.__actions__.length)&&i instanceof $t&&xo(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:ha,args:[o],thisArg:t}),new Ht(i,this.__chain__).thru((function(e){return n&&!e.length&&e.push(t),e}))):this.thru(o)}));var ma=Pi((function(e,n,t){Le.call(e,t)?++e[t]:ar(e,t,1)}));var va=Ni(Ho),ya=Ni($o);function ba(e,n){return($a(e)?jn:dr)(e,co(n,3))}function xa(e,n){return($a(e)?Tn:hr)(e,co(n,3))}var ka=Pi((function(e,n,t){Le.call(e,t)?e[t].push(n):ar(e,t,[n])}));var wa=Yr((function(e,n,t){var r=-1,i="function"==typeof n,o=Ga(e)?we(e.length):[];return dr(e,(function(e){o[++r]=i?Cn(n,e,t):Fr(e,n,t)})),o})),Ea=Pi((function(e,n,t){ar(e,t,n)}));function _a(e,n){return($a(e)?Dn:Br)(e,co(n,3))}var Oa=Pi((function(e,n,t){e[t?0:1].push(n)}),(function(){return[[],[]]}));var Sa=Yr((function(e,n){if(null==e)return[];var t=n.length;return t>1&&ko(e,n[0],n[1])?n=[]:t>2&&ko(n[0],n[1],n[2])&&(n=[n[0]]),$r(e,yr(n,1),[])})),Ca=dn||function(){return gn.Date.now()};function Aa(e,n,r){return n=r?t:n,n=e&&null==n?e.length:n,Qi(e,c,t,t,t,t,n)}function ja(e,n){var i;if("function"!=typeof n)throw new Te(r);return e=gl(e),function(){return--e>0&&(i=n.apply(this,arguments)),e<=1&&(n=t),i}}var Ta=Yr((function(e,n,t){var r=1;if(t.length){var i=st(t,uo(Ta));r|=l}return Qi(e,r,n,t,i)})),Fa=Yr((function(e,n,t){var r=3;if(t.length){var i=st(t,uo(Fa));r|=l}return Qi(n,r,e,t,i)}));function Pa(e,n,i){var o,a,l,u,c,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Te(r);function g(n){var r=o,i=a;return o=a=t,f=n,u=e.apply(i,r)}function m(e){var r=e-s;return s===t||r>=n||r<0||d&&e-f>=l}function v(){var e=Ca();if(m(e))return y(e);c=Po(v,function(e){var t=n-(e-s);return d?xt(t,l-(e-f)):t}(e))}function y(e){return c=t,h&&o?g(e):(o=a=t,u)}function b(){var e=Ca(),r=m(e);if(o=arguments,a=this,s=e,r){if(c===t)return function(e){return f=e,c=Po(v,n),p?g(e):u}(s);if(d)return Ei(c),c=Po(v,n),g(s)}return c===t&&(c=Po(v,n)),u}return n=vl(n)||0,nl(i)&&(p=!!i.leading,l=(d="maxWait"in i)?bt(vl(i.maxWait)||0,n):l,h="trailing"in i?!!i.trailing:h),b.cancel=function(){c!==t&&Ei(c),f=0,o=s=a=c=t},b.flush=function(){return c===t?u:y(Ca())},b}var 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 Va(e,n){return e===n||e!=e&&n!=n}var qa=Gi(Cr),Ua=Gi((function(e,n){return e>=n})),Ha=Pr(function(){return arguments}())?Pr:function(e){return tl(e)&&Le.call(e,"callee")&&!Ze.call(e,"callee")},$a=we.isArray,Wa=kn?Jn(kn):function(e){return tl(e)&&Sr(e)==P};function Ga(e){return null!=e&&el(e.length)&&!Qa(e)}function Ka(e){return tl(e)&&Ga(e)}var Za=xn||vu,Xa=wn?Jn(wn):function(e){return tl(e)&&Sr(e)==b};function Ya(e){if(!tl(e))return!1;var n=Sr(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=Sr(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)&&Sr(e)==_}function ol(e){if(!tl(e)||Sr(e)!=O)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)&&Sr(e)==C};var ll=On?Jn(On):function(e){return tl(e)&&mo(e)==A};function ul(e){return"string"==typeof e||!$a(e)&&tl(e)&&Sr(e)==j}function cl(e){return"symbol"==typeof e||tl(e)&&Sr(e)==T}var sl=Sn?Jn(Sn):function(e){return tl(e)&&el(e.length)&&!!un[Sr(e)]};var fl=Gi(Nr),pl=Gi((function(e,n){return e<=n}));function dl(e){if(!e)return[];if(Ga(e))return ul(e)?ht(e):Ti(e);if(Qe&&e[Qe])return function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t}(e[Qe]());var n=mo(e);return(n==E?ut:n==A?ft:Vl)(e)}function hl(e){return e?(e=vl(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gl(e){var n=hl(e),t=n%1;return n==n?t?n-t:n:0}function ml(e){return e?ur(gl(e),0,h):0}function vl(e){if("number"==typeof e)return e;if(cl(e))return d;if(nl(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=nl(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=Qn(e);var t=ge.test(e);return t||ve.test(e)?pn(e.slice(2),t?2:8):he.test(e)?d:+e}function yl(e){return Fi(e,Rl(e))}function bl(e){return null==e?"":si(e)}var xl=Ri((function(e,n){if(Oo(n)||Ga(n))Fi(n,Pl(n),e);else for(var t in n)Le.call(n,t)&&tr(e,t,n[t])})),kl=Ri((function(e,n){Fi(n,Rl(n),e)})),wl=Ri((function(e,n,t,r){Fi(n,Rl(n),e,r)})),El=Ri((function(e,n,t,r){Fi(n,Pl(n),e,r)})),_l=ro(lr);var Ol=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||Va(f,Re[s])&&!Le.call(e,s))&&(e[s]=a[s])}return e})),Sl=Yr((function(e){return e.push(t,eo),Cn(Dl,t,e)}));function Cl(e,n,r){var i=null==e?t:_r(e,n);return i===t?r:i}function Al(e,n){return null!=e&&vo(e,n,jr)}var jl=qi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Ne.call(n)),e[n]=t}),nu(iu)),Tl=qi((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Ne.call(n)),Le.call(e,n)?e[n].push(t):e[n]=[t]}),co),Fl=Yr(Fr);function Pl(e){return Ga(e)?Yt(e):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})),Fi(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(Pl),Bl=Yi(Rl);function Vl(e){return null==e?[]:et(e,Pl(e))}var ql=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 Fr(t,e,n)}})),lu=Yr((function(e,n){return function(t){return Fr(e,t,n)}}));function uu(e,n,t){var r=Pl(n),i=Er(n,r);null!=t||nl(n)&&(i.length||!r.length)||(t=n,n=e,e=this,i=Er(n,Pl(n)));var o=!(nl(t)&&"chain"in t&&!t.chain),a=Qa(e);return jn(i,(function(t){var r=n[t];e[t]=r,a&&(e.prototype[t]=function(){var n=this.__chain__;if(o||n){var t=e(this.__wrapped__);return(t.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),t.__chain__=n,t}return r.apply(e,Ln([this.value()],arguments))})})),e}function cu(){}var su=Hi(Dn),fu=Hi(Fn),pu=Hi(Nn);function du(e){return wo(e)?Gn(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 Vt.after=function(e,n){if("function"!=typeof n)throw new Te(r);return e=gl(e),function(){if(--e<1)return n.apply(this,arguments)}},Vt.ary=Aa,Vt.assign=xl,Vt.assignIn=kl,Vt.assignInWith=wl,Vt.assignWith=El,Vt.at=_l,Vt.before=ja,Vt.bind=Ta,Vt.bindAll=eu,Vt.bindKey=Fa,Vt.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},Vt.chain=da,Vt.chunk=function(e,n,r){n=(r?ko(e,n,r):n===t)?1:bt(gl(n),0);var i=null==e?0:e.length;if(!i||n<1)return[];for(var o=0,a=0,l=we(mn(i/n));o<i;)l[a++]=ii(e,o,o+=n);return l},Vt.compact=function(e){for(var n=-1,t=null==e?0:e.length,r=0,i=[];++n<t;){var o=e[n];o&&(i[r++]=o)}return i},Vt.concat=function(){var e=arguments.length;if(!e)return[];for(var n=we(e-1),t=arguments[0],r=e;r--;)n[r-1]=arguments[r];return Ln($a(t)?Ti(t):[t],yr(n,1))},Vt.cond=function(e){var n=null==e?0:e.length,t=co();return e=n?Dn(e,(function(e){if("function"!=typeof e[1])throw new Te(r);return[t(e[0]),e[1]]})):[],Yr((function(t){for(var r=-1;++r<n;){var i=e[r];if(Cn(i[0],this,t))return Cn(i[1],this,t)}}))},Vt.conforms=function(e){return function(e){var n=Pl(e);return function(t){return sr(t,e,n)}}(cr(e,1))},Vt.constant=nu,Vt.countBy=ma,Vt.create=function(e,n){var t=qt(e);return null==n?t:or(t,n)},Vt.curry=function e(n,r,i){var o=Qi(n,8,t,t,t,t,t,r=i?t:r);return o.placeholder=e.placeholder,o},Vt.curryRight=function e(n,r,i){var o=Qi(n,a,t,t,t,t,t,r=i?t:r);return o.placeholder=e.placeholder,o},Vt.debounce=Pa,Vt.defaults=Ol,Vt.defaultsDeep=Sl,Vt.defer=Ra,Vt.delay=Ia,Vt.difference=Vo,Vt.differenceBy=qo,Vt.differenceWith=Uo,Vt.drop=function(e,n,r){var i=null==e?0:e.length;return i?ii(e,(n=r||n===t?1:gl(n))<0?0:n,i):[]},Vt.dropRight=function(e,n,r){var i=null==e?0:e.length;return i?ii(e,0,(n=i-(n=r||n===t?1:gl(n)))<0?0:n):[]},Vt.dropRightWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!0,!0):[]},Vt.dropWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!0):[]},Vt.fill=function(e,n,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&ko(e,n,r)&&(r=0,i=o),function(e,n,r,i){var o=e.length;for((r=gl(r))<0&&(r=-r>o?0:o+r),(i=i===t||i>o?o:gl(i))<0&&(i+=o),i=r>i?0:ml(i);r<i;)e[r++]=n;return e}(e,n,r,i)):[]},Vt.filter=function(e,n){return($a(e)?Pn:vr)(e,co(n,3))},Vt.flatMap=function(e,n){return yr(_a(e,n),1)},Vt.flatMapDeep=function(e,n){return yr(_a(e,n),f)},Vt.flatMapDepth=function(e,n,r){return r=r===t?1:gl(r),yr(_a(e,n),r)},Vt.flatten=Wo,Vt.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},Vt.flattenDepth=function(e,n){return(null==e?0:e.length)?yr(e,n=n===t?1:gl(n)):[]},Vt.flip=function(e){return Qi(e,512)},Vt.flow=tu,Vt.flowRight=ru,Vt.fromPairs=function(e){for(var n=-1,t=null==e?0:e.length,r={};++n<t;){var i=e[n];r[i[0]]=i[1]}return r},Vt.functions=function(e){return null==e?[]:Er(e,Pl(e))},Vt.functionsIn=function(e){return null==e?[]:Er(e,Rl(e))},Vt.groupBy=ka,Vt.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Vt.intersection=Ko,Vt.intersectionBy=Zo,Vt.intersectionWith=Xo,Vt.invert=jl,Vt.invertBy=Tl,Vt.invokeMap=wa,Vt.iteratee=ou,Vt.keyBy=Ea,Vt.keys=Pl,Vt.keysIn=Rl,Vt.map=_a,Vt.mapKeys=function(e,n){var t={};return n=co(n,3),kr(e,(function(e,r,i){ar(t,n(e,r,i),e)})),t},Vt.mapValues=function(e,n){var t={};return n=co(n,3),kr(e,(function(e,r,i){ar(t,r,n(e,r,i))})),t},Vt.matches=function(e){return Vr(cr(e,1))},Vt.matchesProperty=function(e,n){return qr(e,cr(n,1))},Vt.memoize=Da,Vt.merge=Il,Vt.mergeWith=Dl,Vt.method=au,Vt.methodOf=lu,Vt.mixin=uu,Vt.negate=La,Vt.nthArg=function(e){return e=gl(e),Yr((function(n){return Hr(n,e)}))},Vt.omit=Ll,Vt.omitBy=function(e,n){return Ml(e,La(co(n)))},Vt.once=function(e){return ja(2,e)},Vt.orderBy=function(e,n,r,i){return null==e?[]:($a(n)||(n=null==n?[]:[n]),$a(r=i?t:r)||(r=null==r?[]:[r]),$r(e,n,r))},Vt.over=su,Vt.overArgs=za,Vt.overEvery=fu,Vt.overSome=pu,Vt.partial=Ma,Vt.partialRight=Na,Vt.partition=Oa,Vt.pick=zl,Vt.pickBy=Ml,Vt.property=du,Vt.propertyOf=function(e){return function(n){return null==e?t:_r(e,n)}},Vt.pull=Qo,Vt.pullAll=Jo,Vt.pullAllBy=function(e,n,t){return e&&e.length&&n&&n.length?Gr(e,n,co(t,2)):e},Vt.pullAllWith=function(e,n,r){return e&&e.length&&n&&n.length?Gr(e,n,t,r):e},Vt.pullAt=ea,Vt.range=hu,Vt.rangeRight=gu,Vt.rearg=Ba,Vt.reject=function(e,n){return($a(e)?Pn:vr)(e,La(co(n,3)))},Vt.remove=function(e,n){var t=[];if(!e||!e.length)return t;var r=-1,i=[],o=e.length;for(n=co(n,3);++r<o;){var a=e[r];n(a,r,e)&&(t.push(a),i.push(r))}return Kr(e,i),t},Vt.rest=function(e,n){if("function"!=typeof e)throw new Te(r);return Yr(e,n=n===t?n:gl(n))},Vt.reverse=na,Vt.sampleSize=function(e,n,r){return n=(r?ko(e,n,r):n===t)?1:gl(n),($a(e)?Jt:Jr)(e,n)},Vt.set=function(e,n,t){return null==e?e:ei(e,n,t)},Vt.setWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:ei(e,n,r,i)},Vt.shuffle=function(e){return($a(e)?er:ri)(e)},Vt.slice=function(e,n,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&ko(e,n,r)?(n=0,r=i):(n=null==n?0:gl(n),r=r===t?i:gl(r)),ii(e,n,r)):[]},Vt.sortBy=Sa,Vt.sortedUniq=function(e){return e&&e.length?ui(e):[]},Vt.sortedUniqBy=function(e,n){return e&&e.length?ui(e,co(n,2)):[]},Vt.split=function(e,n,r){return r&&"number"!=typeof r&&ko(e,n,r)&&(n=r=t),(r=r===t?h:r>>>0)?(e=bl(e))&&("string"==typeof n||null!=n&&!al(n))&&!(n=si(n))&<(e)?wi(ht(e),0,r):e.split(n,r):[]},Vt.spread=function(e,n){if("function"!=typeof e)throw new Te(r);return n=null==n?0:bt(gl(n),0),Yr((function(t){var r=t[n],i=wi(t,0,n);return r&&Ln(i,r),Cn(e,this,i)}))},Vt.tail=function(e){var n=null==e?0:e.length;return n?ii(e,1,n):[]},Vt.take=function(e,n,r){return e&&e.length?ii(e,0,(n=r||n===t?1:gl(n))<0?0:n):[]},Vt.takeRight=function(e,n,r){var i=null==e?0:e.length;return i?ii(e,(n=i-(n=r||n===t?1:gl(n)))<0?0:n,i):[]},Vt.takeRightWhile=function(e,n){return e&&e.length?hi(e,co(n,3),!1,!0):[]},Vt.takeWhile=function(e,n){return e&&e.length?hi(e,co(n,3)):[]},Vt.tap=function(e,n){return n(e),e},Vt.throttle=function(e,n,t){var i=!0,o=!0;if("function"!=typeof e)throw new Te(r);return nl(t)&&(i="leading"in t?!!t.leading:i,o="trailing"in t?!!t.trailing:o),Pa(e,n,{leading:i,maxWait:n,trailing:o})},Vt.thru=ha,Vt.toArray=dl,Vt.toPairs=Nl,Vt.toPairsIn=Bl,Vt.toPath=function(e){return $a(e)?Dn(e,Mo):cl(e)?[e]:Ti(zo(bl(e)))},Vt.toPlainObject=yl,Vt.transform=function(e,n,t){var r=$a(e),i=r||Za(e)||sl(e);if(n=co(n,4),null==t){var o=e&&e.constructor;t=i?r?new o:[]:nl(e)&&Qa(o)?qt(Ge(e)):{}}return(i?jn:kr)(e,(function(e,r,i){return n(t,e,r,i)})),t},Vt.unary=function(e){return Aa(e,1)},Vt.union=ta,Vt.unionBy=ra,Vt.unionWith=ia,Vt.uniq=function(e){return e&&e.length?fi(e):[]},Vt.uniqBy=function(e,n){return e&&e.length?fi(e,co(n,2)):[]},Vt.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?fi(e,t,n):[]},Vt.unset=function(e,n){return null==e||pi(e,n)},Vt.unzip=oa,Vt.unzipWith=aa,Vt.update=function(e,n,t){return null==e?e:di(e,n,bi(t))},Vt.updateWith=function(e,n,r,i){return i="function"==typeof i?i:t,null==e?e:di(e,n,bi(r),i)},Vt.values=Vl,Vt.valuesIn=function(e){return null==e?[]:et(e,Rl(e))},Vt.without=la,Vt.words=Ql,Vt.wrap=function(e,n){return Ma(bi(n),e)},Vt.xor=ua,Vt.xorBy=ca,Vt.xorWith=sa,Vt.zip=fa,Vt.zipObject=function(e,n){return vi(e||[],n||[],tr)},Vt.zipObjectDeep=function(e,n){return vi(e||[],n||[],ei)},Vt.zipWith=pa,Vt.entries=Nl,Vt.entriesIn=Bl,Vt.extend=kl,Vt.extendWith=wl,uu(Vt,Vt),Vt.add=yu,Vt.attempt=Jl,Vt.camelCase=ql,Vt.capitalize=Ul,Vt.ceil=bu,Vt.clamp=function(e,n,r){return r===t&&(r=n,n=t),r!==t&&(r=(r=vl(r))==r?r:0),n!==t&&(n=(n=vl(n))==n?n:0),ur(vl(e),n,r)},Vt.clone=function(e){return cr(e,4)},Vt.cloneDeep=function(e){return cr(e,5)},Vt.cloneDeepWith=function(e,n){return cr(e,5,n="function"==typeof n?n:t)},Vt.cloneWith=function(e,n){return cr(e,4,n="function"==typeof n?n:t)},Vt.conformsTo=function(e,n){return null==n||sr(e,n,Pl(n))},Vt.deburr=Hl,Vt.defaultTo=function(e,n){return null==e||e!=e?n:e},Vt.divide=xu,Vt.endsWith=function(e,n,r){e=bl(e),n=si(n);var i=e.length,o=r=r===t?i:ur(gl(r),0,i);return(r-=n.length)>=0&&e.slice(r,o)==n},Vt.eq=Va,Vt.escape=function(e){return(e=bl(e))&&Z.test(e)?e.replace(G,ot):e},Vt.escapeRegExp=function(e){return(e=bl(e))&&re.test(e)?e.replace(te,"\\$&"):e},Vt.every=function(e,n,r){var i=$a(e)?Fn:gr;return r&&ko(e,n,r)&&(n=t),i(e,co(n,3))},Vt.find=va,Vt.findIndex=Ho,Vt.findKey=function(e,n){return Vn(e,co(n,3),kr)},Vt.findLast=ya,Vt.findLastIndex=$o,Vt.findLastKey=function(e,n){return Vn(e,co(n,3),wr)},Vt.floor=ku,Vt.forEach=ba,Vt.forEachRight=xa,Vt.forIn=function(e,n){return null==e?e:br(e,co(n,3),Rl)},Vt.forInRight=function(e,n){return null==e?e:xr(e,co(n,3),Rl)},Vt.forOwn=function(e,n){return e&&kr(e,co(n,3))},Vt.forOwnRight=function(e,n){return e&&wr(e,co(n,3))},Vt.get=Cl,Vt.gt=qa,Vt.gte=Ua,Vt.has=function(e,n){return null!=e&&vo(e,n,Ar)},Vt.hasIn=Al,Vt.head=Go,Vt.identity=iu,Vt.includes=function(e,n,t,r){e=Ga(e)?e:Vl(e),t=t&&!r?gl(t):0;var i=e.length;return t<0&&(t=bt(i+t,0)),ul(e)?t<=i&&e.indexOf(n,t)>-1:!!i&&Un(e,n,t)>-1},Vt.indexOf=function(e,n,t){var r=null==e?0:e.length;if(!r)return-1;var i=null==t?0:gl(t);return i<0&&(i=bt(r+i,0)),Un(e,n,i)},Vt.inRange=function(e,n,r){return n=hl(n),r===t?(r=n,n=0):r=hl(r),function(e,n,t){return e>=xt(n,t)&&e<bt(n,t)}(e=vl(e),n,r)},Vt.invoke=Fl,Vt.isArguments=Ha,Vt.isArray=$a,Vt.isArrayBuffer=Wa,Vt.isArrayLike=Ga,Vt.isArrayLikeObject=Ka,Vt.isBoolean=function(e){return!0===e||!1===e||tl(e)&&Sr(e)==y},Vt.isBuffer=Za,Vt.isDate=Xa,Vt.isElement=function(e){return tl(e)&&1===e.nodeType&&!ol(e)},Vt.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&($a(e)||"string"==typeof e||"function"==typeof e.splice||Za(e)||sl(e)||Ha(e)))return!e.length;var n=mo(e);if(n==E||n==A)return!e.size;if(Oo(e))return!zr(e).length;for(var t in e)if(Le.call(e,t))return!1;return!0},Vt.isEqual=function(e,n){return Rr(e,n)},Vt.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},Vt.isError=Ya,Vt.isFinite=function(e){return"number"==typeof e&&Bn(e)},Vt.isFunction=Qa,Vt.isInteger=Ja,Vt.isLength=el,Vt.isMap=rl,Vt.isMatch=function(e,n){return e===n||Ir(e,n,fo(n))},Vt.isMatchWith=function(e,n,r){return r="function"==typeof r?r:t,Ir(e,n,fo(n),r)},Vt.isNaN=function(e){return il(e)&&e!=+e},Vt.isNative=function(e){if(_o(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Vt.isNil=function(e){return null==e},Vt.isNull=function(e){return null===e},Vt.isNumber=il,Vt.isObject=nl,Vt.isObjectLike=tl,Vt.isPlainObject=ol,Vt.isRegExp=al,Vt.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=p},Vt.isSet=ll,Vt.isString=ul,Vt.isSymbol=cl,Vt.isTypedArray=sl,Vt.isUndefined=function(e){return e===t},Vt.isWeakMap=function(e){return tl(e)&&mo(e)==F},Vt.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==Sr(e)},Vt.join=function(e,n){return null==e?"":Kn.call(e,n)},Vt.kebabCase=$l,Vt.last=Yo,Vt.lastIndexOf=function(e,n,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==t&&(o=(o=gl(r))<0?bt(i+o,0):xt(o,i-1)),n==n?function(e,n,t){for(var r=t+1;r--;)if(e[r]===n)return r;return r}(e,n,o):qn(e,$n,o,!0)},Vt.lowerCase=Wl,Vt.lowerFirst=Gl,Vt.lt=fl,Vt.lte=pl,Vt.max=function(e){return e&&e.length?mr(e,iu,Cr):t},Vt.maxBy=function(e,n){return e&&e.length?mr(e,co(n,2),Cr):t},Vt.mean=function(e){return Wn(e,iu)},Vt.meanBy=function(e,n){return Wn(e,co(n,2))},Vt.min=function(e){return e&&e.length?mr(e,iu,Nr):t},Vt.minBy=function(e,n){return e&&e.length?mr(e,co(n,2),Nr):t},Vt.stubArray=mu,Vt.stubFalse=vu,Vt.stubObject=function(){return{}},Vt.stubString=function(){return""},Vt.stubTrue=function(){return!0},Vt.multiply=wu,Vt.nth=function(e,n){return e&&e.length?Hr(e,gl(n)):t},Vt.noConflict=function(){return gn._===this&&(gn._=Ve),this},Vt.noop=cu,Vt.now=Ca,Vt.pad=function(e,n,t){e=bl(e);var r=(n=gl(n))?dt(e):0;if(!n||r>=n)return e;var i=(n-r)/2;return $i(vn(i),t)+e+$i(mn(i),t)},Vt.padEnd=function(e,n,t){e=bl(e);var r=(n=gl(n))?dt(e):0;return n&&r<n?e+$i(n-r,t):e},Vt.padStart=function(e,n,t){e=bl(e);var r=(n=gl(n))?dt(e):0;return n&&r<n?$i(n-r,t)+e:e},Vt.parseInt=function(e,n,t){return t||null==n?n=0:n&&(n=+n),wt(bl(e).replace(ie,""),n||0)},Vt.random=function(e,n,r){if(r&&"boolean"!=typeof r&&ko(e,n,r)&&(n=r=t),r===t&&("boolean"==typeof n?(r=n,n=t):"boolean"==typeof e&&(r=e,e=t)),e===t&&n===t?(e=0,n=1):(e=hl(e),n===t?(n=e,e=0):n=hl(n)),e>n){var i=e;e=n,n=i}if(r||e%1||n%1){var o=Et();return xt(e+o*(n-e+fn("1e-"+((o+"").length-1))),n)}return Zr(e,n)},Vt.reduce=function(e,n,t){var r=$a(e)?zn:Zn,i=arguments.length<3;return r(e,co(n,4),t,i,dr)},Vt.reduceRight=function(e,n,t){var r=$a(e)?Mn:Zn,i=arguments.length<3;return r(e,co(n,4),t,i,hr)},Vt.repeat=function(e,n,r){return n=(r?ko(e,n,r):n===t)?1:gl(n),Xr(bl(e),n)},Vt.replace=function(){var e=arguments,n=bl(e[0]);return e.length<3?n:n.replace(e[1],e[2])},Vt.result=function(e,n,r){var i=-1,o=(n=xi(n,e)).length;for(o||(o=1,e=t);++i<o;){var a=null==e?t:e[Mo(n[i])];a===t&&(i=o,a=r),e=Qa(a)?a.call(e):a}return e},Vt.round=Eu,Vt.runInContext=e,Vt.sample=function(e){return($a(e)?Qt:Qr)(e)},Vt.size=function(e){if(null==e)return 0;if(Ga(e))return ul(e)?dt(e):e.length;var n=mo(e);return n==E||n==A?e.size:zr(e).length},Vt.snakeCase=Kl,Vt.some=function(e,n,r){var i=$a(e)?Nn:oi;return r&&ko(e,n,r)&&(n=t),i(e,co(n,3))},Vt.sortedIndex=function(e,n){return ai(e,n)},Vt.sortedIndexBy=function(e,n,t){return li(e,n,co(t,2))},Vt.sortedIndexOf=function(e,n){var t=null==e?0:e.length;if(t){var r=ai(e,n);if(r<t&&Va(e[r],n))return r}return-1},Vt.sortedLastIndex=function(e,n){return ai(e,n,!0)},Vt.sortedLastIndexBy=function(e,n,t){return li(e,n,co(t,2),!0)},Vt.sortedLastIndexOf=function(e,n){if(null==e?0:e.length){var t=ai(e,n,!0)-1;if(Va(e[t],n))return t}return-1},Vt.startCase=Zl,Vt.startsWith=function(e,n,t){return e=bl(e),t=null==t?0:ur(gl(t),0,e.length),n=si(n),e.slice(t,t+n.length)==n},Vt.subtract=_u,Vt.sum=function(e){return e&&e.length?Xn(e,iu):0},Vt.sumBy=function(e,n){return e&&e.length?Xn(e,co(n,2)):0},Vt.template=function(e,n,r){var i=Vt.templateSettings;r&&ko(e,n,r)&&(n=t),e=bl(e),n=wl({},n,i,Ji);var o,a,l=wl({},n.imports,i.imports,Ji),u=Pl(l),c=et(l,u),s=0,f=n.interpolate||xe,p="__p += '",d=Ae((n.escape||xe).source+"|"+f.source+"|"+(f===Q?pe:xe).source+"|"+(n.evaluate||xe).source+"|$","g"),h="//# sourceURL="+(Le.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ln+"]")+"\n";e.replace(d,(function(n,t,r,i,l,u){return r||(r=i),p+=e.slice(s,u).replace(ke,at),t&&(o=!0,p+="' +\n__e("+t+") +\n'"),l&&(a=!0,p+="';\n"+l+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=u+n.length,n})),p+="';\n";var g=Le.call(n,"variable")&&n.variable;if(g){if(se.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(U,""):p).replace(H,"$1").replace($,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m=Jl((function(){return Oe(u,h+"return "+p).apply(t,c)}));if(m.source=p,Ya(m))throw m;return m},Vt.times=function(e,n){if((e=gl(e))<1||e>p)return[];var t=h,r=xt(e,h);n=co(n),e-=h;for(var i=Yn(r,n);++t<e;)n(t);return i},Vt.toFinite=hl,Vt.toInteger=gl,Vt.toLength=ml,Vt.toLower=function(e){return bl(e).toLowerCase()},Vt.toNumber=vl,Vt.toSafeInteger=function(e){return e?ur(gl(e),-9007199254740991,p):0===e?e:0},Vt.toString=bl,Vt.toUpper=function(e){return bl(e).toUpperCase()},Vt.trim=function(e,n,r){if((e=bl(e))&&(r||n===t))return Qn(e);if(!e||!(n=si(n)))return e;var i=ht(e),o=ht(n);return wi(i,tt(i,o),rt(i,o)+1).join("")},Vt.trimEnd=function(e,n,r){if((e=bl(e))&&(r||n===t))return e.slice(0,gt(e)+1);if(!e||!(n=si(n)))return e;var i=ht(e);return wi(i,0,rt(i,ht(n))+1).join("")},Vt.trimStart=function(e,n,r){if((e=bl(e))&&(r||n===t))return e.replace(ie,"");if(!e||!(n=si(n)))return e;var i=ht(e);return wi(i,tt(i,ht(n))).join("")},Vt.truncate=function(e,n){var r=30,i="...";if(nl(n)){var o="separator"in n?n.separator:o;r="length"in n?gl(n.length):r,i="omission"in n?si(n.omission):i}var a=(e=bl(e)).length;if(lt(e)){var l=ht(e);a=l.length}if(r>=a)return e;var u=r-dt(i);if(u<1)return i;var c=l?wi(l,0,u).join(""):e.slice(0,u);if(o===t)return c+i;if(l&&(u+=c.length-u),al(o)){if(e.slice(u).search(o)){var s,f=c;for(o.global||(o=Ae(o.source,bl(de.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var p=s.index;c=c.slice(0,p===t?u:p)}}else if(e.indexOf(si(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},Vt.unescape=function(e){return(e=bl(e))&&K.test(e)?e.replace(W,mt):e},Vt.uniqueId=function(e){var n=++ze;return bl(e)+n},Vt.upperCase=Xl,Vt.upperFirst=Yl,Vt.each=ba,Vt.eachRight=xa,Vt.first=Go,uu(Vt,function(){var e={};return kr(Vt,(function(n,t){Le.call(Vt.prototype,t)||(e[t]=n)})),e}(),{chain:!1}),Vt.VERSION="4.17.23",jn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vt[e].placeholder=Vt})),jn(["drop","take"],(function(e,n){$t.prototype[e]=function(r){r=r===t?1:bt(gl(r),0);var i=this.__filtered__&&!n?new $t(this):this.clone();return i.__filtered__?i.__takeCount__=xt(r,i.__takeCount__):i.__views__.push({size:xt(r,h),type:e+(i.__dir__<0?"Right":"")}),i},$t.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}})),jn(["filter","map","takeWhile"],(function(e,n){var t=n+1,r=1==t||3==t;$t.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:co(e,3),type:t}),n.__filtered__=n.__filtered__||r,n}})),jn(["head","last"],(function(e,n){var t="take"+(n?"Right":"");$t.prototype[e]=function(){return this[t](1).value()[0]}})),jn(["initial","tail"],(function(e,n){var t="drop"+(n?"":"Right");$t.prototype[e]=function(){return this.__filtered__?new $t(this):this[t](1)}})),$t.prototype.compact=function(){return this.filter(iu)},$t.prototype.find=function(e){return this.filter(e).head()},$t.prototype.findLast=function(e){return this.reverse().find(e)},$t.prototype.invokeMap=Yr((function(e,n){return"function"==typeof e?new $t(this):this.map((function(t){return Fr(t,e,n)}))})),$t.prototype.reject=function(e){return this.filter(La(co(e)))},$t.prototype.slice=function(e,n){e=gl(e);var r=this;return r.__filtered__&&(e>0||n<0)?new $t(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),n!==t&&(r=(n=gl(n))<0?r.dropRight(-n):r.take(n-e)),r)},$t.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$t.prototype.toArray=function(){return this.take(h)},kr($t.prototype,(function(e,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=Vt[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(Vt.prototype[n]=function(){var n=this.__wrapped__,l=i?[1]:arguments,u=n instanceof $t,c=l[0],s=u||$a(n),f=function(e){var n=o.apply(Vt,Ln([e],l));return i&&p?n[0]:n};s&&r&&"function"==typeof c&&1!=c.length&&(u=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,g=u&&!d;if(!a&&s){n=g?n:new $t(this);var m=e.apply(n,l);return m.__actions__.push({func:ha,args:[f],thisArg:t}),new Ht(m,p)}return h&&g?e.apply(this,l):(m=this.thru(f),h?i?m.value()[0]:m.value():m)})})),jn(["pop","push","shift","sort","splice","unshift"],(function(e){var n=Fe[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vt.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply($a(i)?i:[],e)}return this[t]((function(t){return n.apply($a(t)?t:[],e)}))}})),kr($t.prototype,(function(e,n){var t=Vt[n];if(t){var r=t.name+"";Le.call(Pt,r)||(Pt[r]=[]),Pt[r].push({name:n,func:t})}})),Pt[Vi(t,2).name]=[{name:"wrapper",func:t}],$t.prototype.clone=function(){var e=new $t(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},$t.prototype.reverse=function(){if(this.__filtered__){var e=new $t(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$t.prototype.value=function(){var e=this.__wrapped__.value(),n=this.__dir__,t=$a(e),r=n<0,i=t?e.length:0,o=function(e,n,t){var r=-1,i=t.length;for(;++r<i;){var o=t[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":n-=a;break;case"take":n=xt(n,e+a);break;case"takeRight":e=bt(e,n-a)}}return{start:e,end:n}}(0,i,this.__views__),a=o.start,l=o.end,u=l-a,c=r?l:a-1,s=this.__iteratees__,f=s.length,p=0,d=xt(u,this.__takeCount__);if(!t||!r&&i==u&&d==u)return gi(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var g=-1,m=e[c+=n];++g<f;){var v=s[g],y=v.iteratee,b=v.type,x=y(m);if(2==b)m=x;else if(!x){if(1==b)continue e;break e}}h[p++]=m}return h},Vt.prototype.at=ga,Vt.prototype.chain=function(){return da(this)},Vt.prototype.commit=function(){return new Ht(this.value(),this.__chain__)},Vt.prototype.next=function(){this.__values__===t&&(this.__values__=dl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},Vt.prototype.plant=function(e){for(var n,r=this;r instanceof Ut;){var i=Bo(r);i.__index__=0,i.__values__=t,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,n},Vt.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $t){var n=e;return this.__actions__.length&&(n=new $t(this)),(n=n.reverse()).__actions__.push({func:ha,args:[na],thisArg:t}),new Ht(n,this.__chain__)}return this.thru(na)},Vt.prototype.toJSON=Vt.prototype.valueOf=Vt.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Vt.prototype.first=Vt.prototype.head,Qe&&(Vt.prototype[Qe]=function(){return this}),Vt}();vn?((vn.exports=vt)._=vt,mn._=vt):gn._=vt}).call(Re)})),an=function(e){var n=e.entries,t=e.options,r=e.blockedOptions,i=e.onChange,a=s((function(){return on.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))})))})))};an.propTypes={entries:m.arrayOf(m.shape({})).isRequired,options:m.arrayOf(m.shape({})).isRequired,blockedOptions:m.arrayOf(m.shape({})).isRequired,onChange:m.func.isRequired};var ln=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?an:rn;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 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}function cn(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}ln.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 sn=X((function(e){return{readOnlyField:{width:"100%",display:"flex",flexDirection:"column",marginBottom:e.spacing(1.5),"&:last-child":{marginBottom:0}}}})),fn=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=cn(cn({},c),{},{formVariant:t,name:i,label:a,value:s,options:f,required:p,readOnly:!0}),h=sn(),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))};fn.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 pn=["prepend","append","componentProps"];function dn(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 hn=function(e){e.prepend,e.append;var n=e.componentProps,r=Y(e,pn),i=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?dn(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(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(fn,i)};hn.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 gn=o.memo(hn),mn=function(e,n){var t=de.DATETIME_FULL;return n&&(t="string"==typeof n?de[n]:n),de.fromISO(e).toLocaleString(t)},vn=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(mn((null==n?void 0:n.start)||"",r)," - ").concat(mn((null==n?void 0:n.end)||"",r)):mn(n,r)),o.createElement(k,{variant:"body1",style:{whiteSpace:a?"pre-line":"inherit"}},l)};vn.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 yn=["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 bn=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)};function xn(e){return e&&"object"==typeof e?"position"in e||"type"in e?wn(e.position):"start"in e||"end"in e?wn(e):"line"in e||"column"in e?kn(e):"":""}function kn(e){return En(e&&e.line)+":"+En(e&&e.column)}function wn(e){return kn(e&&e.start)+"-"+kn(e&&e.end)}function En(e){return e&&"number"==typeof e?e:1}class _n 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=xn(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}}_n.prototype.file="",_n.prototype.name="",_n.prototype.reason="",_n.prototype.message="",_n.prototype.stack="",_n.prototype.fatal=null,_n.prototype.column=null,_n.prototype.line=null,_n.prototype.source=null,_n.prototype.ruleId=null,_n.prototype.position=null;const On={basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');Sn(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(Sn(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){Sn(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;)Sn(e[t]),e[t]&&(n=void 0===n?e[t]:n+"/"+e[t]);return void 0===n?".":function(e){Sn(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 Sn(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Cn={cwd:function(){return"/"}};function An(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function jn(e){if("string"==typeof e)e=new URL(e);else if(!An(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 Tn=["history","path","basename","stem","extname","dirname"];class Pn{constructor(e){let n;n=e?"string"==typeof e||bn(e)?{value:e}:An(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=Cn.cwd(),this.value,this.stored,this.result,this.map;let t,r=-1;for(;++r<Tn.length;){const e=Tn[r];e in n&&void 0!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(t in n)Tn.includes(t)||(this[t]=n[t])}get path(){return this.history[this.history.length-1]}set path(e){An(e)&&(e=jn(e)),Fn(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?On.dirname(this.path):void 0}set dirname(e){In(this.basename,"dirname"),this.path=On.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?On.basename(this.path):void 0}set basename(e){Fn(e,"basename"),Rn(e,"basename"),this.path=On.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?On.extname(this.path):void 0}set extname(e){if(Rn(e,"extname"),In(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=On.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?On.basename(this.path,this.extname):void 0}set stem(e){Fn(e,"stem"),Rn(e,"stem"),this.path=On.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,n,t){const r=new _n(e,n,t);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,n,t){const r=this.message(e,n,t);return r.fatal=null,r}fail(e,n,t){const r=this.message(e,n,t);throw r.fatal=!0,r}}function Rn(e,n){if(e&&e.includes(On.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+On.sep+"`")}function Fn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function In(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Dn(e){if(e)throw e}var Ln=Object.prototype.hasOwnProperty,zn=Object.prototype.toString,Mn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,Bn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===zn.call(e)},qn=function(e){if(!e||"[object Object]"!==zn.call(e))return!1;var n,t=Ln.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ln.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;for(n in e);return void 0===n||Ln.call(e,n)},Vn=function(e,n){Mn&&"__proto__"===n.name?Mn(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},Un=function(e,n){if("__proto__"===n){if(!Ln.call(e,n))return;if(Nn)return Nn(e,n).value}return e[n]},Hn=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=Un(l,t),l!==(i=Un(n,t))&&(s&&i&&(qn(i)||(o=Bn(i)))?(o?(o=!1,a=r&&Bn(r)?r:[]):a=r&&qn(r)?r:{},Vn(l,{name:t,newValue:e(s,a,i)})):void 0!==i&&Vn(l,{name:t,newValue:i}));return l};function $n(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}function Wn(){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 Gn=function e(){const n=Wn(),t=[];let r,i={},o=-1;return a.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(Qn("data",r),i[e]=n,a):Kn.call(i,e)&&i[e]||null;if(e)return Qn("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(Qn("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?($n(r[1])&&$n(n)&&(n=Hn(!0,r[1],n)),r[1]=n):t.push([...arguments])}},a.parse=function(e){a.freeze();const n=nt(e),t=a.Parser;if(Xn("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=nt(n),r=a.Compiler;if(Yn("stringify",r),Jn(e),Zn(r,"compile"))return new r(e,t).compile();return r(e,t)},a.run=function(e,t,r){Jn(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,nt(t),a)}i(null,r)},a.runSync=function(e,n){let t,r;return a.run(e,n,i),et("runSync","run",r),t;function i(e,n){Dn(e),t=n,r=!0}},a.process=function(e,n){if(a.freeze(),Xn("process",a.Parser),Yn("process",a.Compiler),!n)return new Promise(t);function t(t,r){const i=nt(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)||bn(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(),Xn("processSync",a.Parser),Yn("processSync",a.Compiler);const t=nt(e);return a.process(t,r),et("processSync","process",n),t;function r(e){n=!0,Dn(e)}},a;function a(){const n=e();let r=-1;for(;++r<t.length;)n.use(...t[r]);return n.data(Hn(!0,{},i)),n}}().freeze(),Kn={}.hasOwnProperty;function Zn(e,n){return"function"==typeof e&&e.prototype&&(function(e){let n;for(n in e)if(Kn.call(e,n))return!0;return!1}(e.prototype)||n in e.prototype)}function Xn(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Yn(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Qn(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 Jn(e){if(!$n(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function et(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function nt(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Pn(e)}function tt(e,n){return e&&"object"==typeof e&&(e.value||(n?e.alt:"")||"children"in e&&rt(e.children,n)||Array.isArray(e)&&rt(e,n))||""}function rt(e,n){for(var t=[],r=-1;++r<e.length;)t[r]=tt(e[r],n);return t.join("")}function it(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 ot(e,n){return e.length>0?(it(e,e.length,0,n),e):n}const at={}.hasOwnProperty;function lt(e){const n={};let t=-1;for(;++t<e.length;)ut(n,e[t]);return n}function ut(e,n){let t;for(t in n){const r=(at.call(e,t)?e[t]:void 0)||(e[t]={}),i=n[t];let o;for(o in i){at.call(r,o)||(r[o]=[]);const e=i[o];ct(r[o],Array.isArray(e)?e:e?[e]:[])}}}function ct(e,n){let t=-1;const r=[];for(;++t<n.length;)("after"===n[t].add?e:r).push(n[t]);it(e,0,0,r)}const st=wt(/[A-Za-z]/),ft=wt(/\d/),pt=wt(/[\dA-Fa-f]/),dt=wt(/[\dA-Za-z]/),ht=wt(/[!-/:-@[-`{-~]/),gt=wt(/[#-'*+\--9=?A-Z^-~]/);function mt(e){return null!==e&&(e<32||127===e)}function vt(e){return null!==e&&(e<0||32===e)}function yt(e){return null!==e&&e<-2}function bt(e){return-2===e||-1===e||32===e}const xt=wt(/\s/),kt=wt(/[!-/:-@[-`{-~\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 wt(e){return function(n){return null!==n&&e.test(String.fromCharCode(n))}}function Et(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(bt(r))return e.enter(t),a(r);return n(r)};function a(r){return bt(r)&&o++<i?(e.consume(r),a):(e.exit(t),n(r))}}const _t={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"),Et(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)):yt(n)?(e.consume(n),e.exit("chunkText"),r):(e.consume(n),i)}}};const Ot={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 it(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(St,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(St,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)):yt(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++;it(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}}},St={tokenize:function(e,n,t){return Et(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ct(e){return null===e||vt(e)||xt(e)?1:kt(e)?2:void 0}function At(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 jt={name:"attention",tokenize:function(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ct(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=Ct(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);Tt(f,-l),Tt(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=ot(u,[["enter",e[t][1],n],["exit",e[t][1],n]])),u=ot(u,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",i,n]]),u=ot(u,At(n.parser.constructs.insideSpan.null,e.slice(t+1,s),n)),u=ot(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=ot(u,[["enter",e[s][1],n],["exit",e[s][1],n]])):c=0,it(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 Tt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Pt={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 st(n)?(e.consume(n),o):gt(n)?u(n):t(n)}function o(e){return 43===e||45===e||46===e||dt(e)?a(e):u(e)}function a(n){return 58===n?(e.consume(n),l):(43===n||45===n||46===n||dt(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||mt(n)?t(n):(e.consume(n),l)}function u(n){return 64===n?(e.consume(n),r=0,c):gt(n)?(e.consume(n),u):t(n)}function c(e){return dt(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||dt(n))&&r++<63?(e.consume(n),45===n?f:s):t(n)}function p(t){return e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.exit("autolink"),n}}};const Rt={tokenize:function(e,n,t){return Et(e,(function(e){return null===e||yt(e)?n(e):t(e)}),"linePrefix")},partial:!0};const Ft={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 bt(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 Et(e,e.attempt(Ft,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const It={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 ht(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(r)}}};const Dt=document.createElement("i");function Lt(e){const n="&"+e+";";Dt.innerHTML=n;const t=Dt.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===e)&&(t!==n&&t)}const zt={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=dt,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=pt,c):(e.enter("characterReferenceValue"),i=7,o=ft,c(n))}function c(l){let u;return 59===l&&a?(u=e.exit("characterReferenceValue"),o!==dt||Lt(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 Mt={name:"codeFenced",tokenize:function(e,n,t){const r=this,i={tokenize:function(e,n,t){let r=0;return Et(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"),Et(e,a,"whitespace")(n))}function a(r){return null===r||yt(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):Et(e,f,"whitespace")(n))}function f(n){return null===n||yt(n)?g(n):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(n))}function p(n){return null===n||vt(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,d,"whitespace")(n)):96===n&&n===u?t(n):(e.consume(n),p)}function d(n){return null===n||yt(n)?g(n):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(n))}function h(n){return null===n||yt(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):yt(n)?e.attempt(o,e.attempt(i,y,l?Et(e,m,"linePrefix",l+1):m),y)(n):(e.enter("codeFlowValue"),v(n))}function v(n){return null===n||yt(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),v)}function y(t){return e.exit("codeFenced"),n(t)}},concrete:!0};const Nt={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),Et(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):yt(n)?e.attempt(Bt,o,l)(n):(e.enter("codeFlowValue"),a(n))}function a(n){return null===n||yt(n)?(e.exit("codeFlowValue"),o(n)):(e.consume(n),a)}function l(t){return e.exit("codeIndented"),n(t)}}},Bt={tokenize:function(e,n,t){const r=this;return i;function i(n){return r.parser.lazy[r.now().line]?t(n):yt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i):Et(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):yt(e)?i(e):t(e)}},partial:!0};const qt={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):yt(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||yt(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 Vt(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,Ut(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),it(e,r,c-r+1,a))}}return!u}function Ut(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]),it(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 Ht={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):yt(n)?e.check($t,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 Vt(e),e}},$t={tokenize:function(e,n,t){const r=this;return function(n){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Et(e,i,"linePrefix")};function i(i){if(null===i||yt(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 Wt(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||mt(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||yt(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||vt(i)?s?t(i):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),n(i)):mt(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 Gt(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):yt(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||yt(n)||u++>999?(e.exit("chunkString"),c(n)):(e.consume(n),l=l||!bt(n),92===n?f:s)}function f(n){return 91===n||92===n||93===n?(e.consume(n),u++,s):s(n)}}function Kt(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):yt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Et(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(n))}function c(n){return n===a||null===n||yt(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(yt(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r;if(bt(i))return Et(e,r,t?"linePrefix":"lineSuffix")(i);return n(i)}}function Xt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Yt={name:"definition",tokenize:function(e,n,t){const r=this;let i;return function(n){return e.enter("definition"),Gt.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function o(n){return i=Xt(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,Wt(e,e.attempt(Qt,Et(e,a,"whitespace"),Et(e,a,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function a(o){return null===o||yt(o)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),n(o)):t(o)}}},Qt={tokenize:function(e,n,t){return function(n){return vt(n)?Zt(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Kt(e,Et(e,i,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function i(e){return null===e||yt(e)?n(e):t(e)}},partial:!0};const Jt={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 yt(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}};const er={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||vt(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||yt(t)?(e.exit("atxHeading"),n(t)):bt(t)?Et(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||vt(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"},it(e,o,i-o+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const nr=["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"],tr=["pre","script","style","textarea"],rr={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):st(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):st(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:S:p):t(i)}function d(n){return st(n)?(e.consume(n),a=String.fromCharCode(n),h):t(n)}function h(l){return null===l||47===l||62===l||vt(l)?47!==l&&o&&tr.includes(a.toLowerCase())?(i=1,r.interrupt?n(l):S(l)):nr.includes(a.toLowerCase())?(i=6,47===l?(e.consume(l),g):r.interrupt?n(l):S(l)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(l):o?v(l):m(l)):45===l||dt(l)?(e.consume(l),a+=String.fromCharCode(l),h):t(l)}function g(i){return 62===i?(e.consume(i),r.interrupt?n:S):t(i)}function m(n){return bt(n)?(e.consume(n),m):_(n)}function v(n){return 47===n?(e.consume(n),_):58===n||95===n||st(n)?(e.consume(n),y):bt(n)?(e.consume(n),v):_(n)}function y(n){return 45===n||46===n||58===n||95===n||dt(n)?(e.consume(n),y):b(n)}function b(n){return 61===n?(e.consume(n),x):bt(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):bt(n)?(e.consume(n),x):(u=null,w(n))}function k(n){return null===n||yt(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||vt(n)?b(n):(e.consume(n),w)}function E(e){return 47===e||62===e||bt(e)?v(e):t(e)}function _(n){return 62===n?(e.consume(n),O):t(n)}function O(n){return bt(n)?(e.consume(n),O):null===n||yt(n)?S(n):t(n)}function S(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),F):!yt(n)||6!==i&&7!==i?null===n||yt(n)?C(n):(e.consume(n),S):e.check(ir,D,C)(n)}function C(n){return e.exit("htmlFlowData"),A(n)}function A(n){return null===n?L(n):yt(n)?e.attempt({tokenize:j,partial:!0},A,L)(n):(e.enter("htmlFlowData"),S(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):S(n)}function P(n){return 47===n?(e.consume(n),a="",R):S(n)}function R(n){return 62===n&&tr.includes(a.toLowerCase())?(e.consume(n),D):st(n)&&a.length<8?(e.consume(n),a+=String.fromCharCode(n),R):S(n)}function F(n){return 93===n?(e.consume(n),I):S(n)}function I(n){return 62===n?(e.consume(n),D):45===n&&2===i?(e.consume(n),I):S(n)}function D(n){return null===n||yt(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},ir={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(Rt,n,t)}},partial:!0};const or={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):st(n)?(e.consume(n),O):t(n)}function c(n){return 45===n?(e.consume(n),s):91===n?(e.consume(n),o="CDATA[",a=0,g):st(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):yt(n)?(l=d,F(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):yt(n)?(l=m,F(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):yt(n)?(l=b,F(n)):(e.consume(n),b)}function x(n){return null===n?t(n):63===n?(e.consume(n),k):yt(n)?(l=x,F(n)):(e.consume(n),x)}function k(e){return 62===e?D(e):x(e)}function w(n){return st(n)?(e.consume(n),E):t(n)}function E(n){return 45===n||dt(n)?(e.consume(n),E):_(n)}function _(n){return yt(n)?(l=_,F(n)):bt(n)?(e.consume(n),_):D(n)}function O(n){return 45===n||dt(n)?(e.consume(n),O):47===n||62===n||vt(n)?S(n):t(n)}function S(n){return 47===n?(e.consume(n),D):58===n||95===n||st(n)?(e.consume(n),C):yt(n)?(l=S,F(n)):bt(n)?(e.consume(n),S):D(n)}function C(n){return 45===n||46===n||58===n||95===n||dt(n)?(e.consume(n),C):A(n)}function A(n){return 61===n?(e.consume(n),j):yt(n)?(l=A,F(n)):bt(n)?(e.consume(n),A):S(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):yt(n)?(l=j,F(n)):bt(n)?(e.consume(n),j):(e.consume(n),i=void 0,R)}function T(n){return n===i?(e.consume(n),P):null===n?t(n):yt(n)?(l=T,F(n)):(e.consume(n),T)}function P(e){return 62===e||47===e||vt(e)?S(e):t(e)}function R(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||vt(n)?S(n):(e.consume(n),R)}function F(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Et(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 ar={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(Xt(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(lr,n,o?n:u)(t):91===t?e.attempt(ur,n,o?e.attempt(cr,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=ot(o,e.slice(r+1,r+l+3)),o=ot(o,[["enter",s,n]]),o=ot(o,At(n.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),n)),o=ot(o,[["exit",s,n],e[i-2],e[i-1],["exit",c,n]]),o=ot(o,e.slice(i+1)),o=ot(o,[["exit",u,n]]),it(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}},lr={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):Wt(e,i,t,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(n)}function i(n){return vt(n)?Zt(e,o)(n):a(n)}function o(n){return 34===n||39===n||40===n?Kt(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)}}},ur={tokenize:function(e,n,t){const r=this;return function(n){return Gt.call(r,e,i,t,"reference","referenceMarker","referenceString")(n)};function i(e){return r.parser.defined.includes(Xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(e):t(e)}}},cr={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 sr={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:ar.resolveAll};const fr={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:ar.resolveAll};const pr={name:"lineEnding",tokenize:function(e,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Et(e,n,"linePrefix")}}};const dr={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)):bt(l)?Et(e,o,"whitespace")(l):i<3||null!==l&&!yt(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 hr={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:ft(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(dr,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 ft(n)&&++a<10?(e.consume(n),l):(!r.interrupt||a<2)&&(r.containerState.marker?n===r.containerState.marker:41===n||46===n)?(e.exit("listItemValue"),u(n)):t(n)}function u(n){return e.enter("listItemMarker"),e.consume(n),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||n,e.check(Rt,r.interrupt?t:c,e.attempt(gr,f,s))}function c(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function s(n){return bt(n)?(e.enter("listItemPrefixWhitespace"),e.consume(n),e.exit("listItemPrefixWhitespace"),f):t(n)}function f(t){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(t)}},continuation:{tokenize:function(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Rt,i,o);function i(t){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Et(e,n,"listItemIndent",r.containerState.size+1)(t)}function o(t){return r.containerState.furtherBlankLines||!bt(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(mr,n,a)(t))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Et(e,e.attempt(hr,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},gr={tokenize:function(e,n,t){const r=this;return Et(e,(function(e){const i=r.events[r.events.length-1];return!bt(e)&&i&&"listItemPrefixWhitespace"===i[1].type?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},mr={tokenize:function(e,n,t){const r=this;return Et(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 vr={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"),Et(e,u,"lineSuffix")(n))}function u(r){return null===r||yt(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 yr={tokenize:function(e){const n=this,t=e.attempt(Rt,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,Et(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ht,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 br={resolveAll:Er()},xr=wr("string"),kr=wr("text");function wr(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:Er("text"===e?_r:void 0)}}function Er(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 _r(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 Or(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){yt(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=ot(a,e),d(),null!==a[a.length-1])return[];return v(n,0),c.events=At(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&&it(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 Sr={42:hr,43:hr,45:hr,48:hr,49:hr,50:hr,51:hr,52:hr,53:hr,54:hr,55:hr,56:hr,57:hr,62:Ft},Cr={91:Yt},Ar={[-2]:Nt,[-1]:Nt,32:Nt},jr={35:er,42:dr,45:[vr,dr],60:rr,61:vr,95:dr,96:Mt,126:Mt},Tr={38:zt,92:It},Pr={[-5]:pr,[-4]:pr,[-3]:pr,33:sr,38:zt,42:jt,60:[Pt,or],91:fr,92:[Jt,It],93:ar,95:jt,96:qt},Rr={null:[jt,br]};var Fr=Object.freeze({__proto__:null,document:Sr,contentInitial:Cr,flowInitial:Ar,flow:jr,string:Tr,text:Pr,insideSpan:Rr,attentionMarkers:{null:[42,95]},disable:{null:[]}});const Ir=/[\0\t\n\r]/g;function Dr(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 Lr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zr(e){return e.replace(Lr,Mr)}function Mr(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return Dr(t.slice(n?2:1),n?16:10)}return Lt(t)||e}const Nr={}.hasOwnProperty,Br=function(e,n,t){return"string"!=typeof n&&(t=n,n=void 0),function(e={}){const n=qr({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(R),htmlFlowData:j,htmlText:f(F),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:S,setextHeadingText:O,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]];Nr.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]||Ur).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+"` ("+xn({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]||Ur).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 tt(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=Xt(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 O(){o("setextHeadingSlurpLineEnding",!0)}function S(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 R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function F(){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=zr(t),n.identifier=Xt(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=Xt(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=Dr(n,"characterReferenceMarkerNumeric"===t?10:16),o("characterReferenceType")):r=Lt(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(;!Vt(e););return e}(function(e={}){const n={defined:[],lazy:{},constructs:lt([Fr].concat(e.extensions||[])),content:t(_t),document:t(Ot),flow:t(yr),string:t(xr),text:t(kr)};return n;function t(e){return function(t){return Or(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(Ir.lastIndex=s,u=Ir.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 qr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?qr(e,r):Vr(e,r)}return e}function Vr(e,n){let t;for(t in n)if(Nr.call(n,t)){const r="canContainEols"===t||"transforms"===t,i=(Nr.call(e,t)?e[t]:void 0)||(e[t]=r?[]:{}),o=n[t];o&&(r?e[t]=[...i,...o]:Object.assign(i,o))}}function Ur(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+xn({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+xn({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+xn({start:n.start,end:n.end})+") is still open")}function Hr(e){Object.assign(this,{Parser:n=>{const t=this.data("settings");return Br(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var $r=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 Wr={}.hasOwnProperty;function Gr(e,n){const t=n.data||{};return"value"in n&&!(Wr.call(t,"hName")||Wr.call(t,"hProperties")||Wr.call(t,"hChildren"))?e.augment(n,$r("text",n.value)):e(n,"div",Xr(e,n))}function Kr(e,n,t){const r=n&&n.type;let i;if(!r)throw new Error("Expected node, got `"+n+"`");return i=Wr.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?Zr:e.unknownHandler,("function"==typeof i?i:Gr)(e,n,t)}function Zr(e,n){return"children"in n?{...n,children:Xr(e,n)}:n}function Xr(e,n){const t=[];if("children"in n){const r=n.children;let i=-1;for(;++i<r.length;){const o=Kr(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 Yr=function(e){if(null==e)return Jr;if("string"==typeof e)return function(e){return Qr(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]=Yr(e[t]);return Qr(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 Qr(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 Qr(e);throw new Error("Expected function, string, or object as test")};function Qr(e){return function(...n){return Boolean(e.call(this,...n))}}function Jr(){return!0}const ei=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);const i=Yr(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 ni=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),ei(e,n,(function(e,n){const r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},ti=ii("start"),ri=ii("end");function ii(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 oi=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);var i=Yr(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 ai=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),oi(e,n,(function(e,n){var r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},li={}.hasOwnProperty;function ui(e){return String(e||"").toUpperCase()}const ci={'"':"quot","&":"amp","<":"lt",">":"gt"};function si(e,n){const t=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+ci[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&&dt(e.charCodeAt(t+1))&&dt(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 fi(e,n){const t=[];let r=-1;for(n&&t.push($r("text","\n"));++r<e.length;)r&&t.push($r("text","\n")),t.push(e[r]);return n&&e.length>0&&t.push($r("text","\n")),t}function pi(e,n){const t=String(n.identifier),r=si(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"},[$r("text",String(o))])])}var di={};function hi(e,n,t){var r,i,o,a,l,u="";for("string"!=typeof n&&(t=n,n=hi.defaultChars),void 0===t&&(t=!0),l=function(e){var n,t,r=di[e];if(r)return r;for(r=di[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}hi.defaultChars=";/?:@&=+$,-_.!~*'()#",hi.componentChars="-_.!~*'()";var gi=hi;function mi(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return $r("text","!["+n.alt+r);const i=Xr(e,n),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift($r("text","["));const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push($r("text",r)),i}function vi(e){const n=e.spread;return null==n?e.children.length>1:n}const yi={blockquote:function(e,n){return e(n,"blockquote",fi(Xr(e,n),!0))},break:function(e,n){return[e(n,"br"),$r("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,[$r("text",t)]);return n.meta&&(o.data={meta:n.meta}),e(n.position,"pre",[o])},delete:function(e,n){return e(n,"del",Xr(e,n))},emphasis:function(e,n){return e(n,"em",Xr(e,n))},footnoteReference:pi,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},pi(e,{type:"footnoteReference",identifier:i,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Xr(e,n))},html:function(e,n){return e.dangerous?e.augment(n,$r("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return mi(e,n);const r={src:gi(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:gi(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",[$r("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return mi(e,n);const r={href:gi(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Xr(e,n))},link:function(e,n){const t={href:gi(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Xr(e,n))},listItem:function(e,n,t){const r=Xr(e,n),i=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=vi(t[r]);return Boolean(n)}(t):vi(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($r("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($r("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($r("text","\n")),e(n,"li",o,a)},list:function(e,n){const t={},r=n.ordered?"ol":"ul",i=Xr(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,fi(i,!0))},paragraph:function(e,n){return e(n,"p",Xr(e,n))},root:function(e,n){return e.augment(n,$r("root",fi(Xr(e,n))))},strong:function(e,n){return e(n,"strong",Xr(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?Xr(e,n):[]))}o[r]=e(t[r],"tr",fi(u,!0))}return e(n,"table",fi([e(o[0].position,"thead",fi([o[0]],!0))].concat(o[1]?e({start:ti(o[1]),end:ri(o[o.length-1])},"tbody",fi(o.slice(1),!0)):[]),!0))},text:function(e,n){return e.augment(n,$r("text",String(n.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))},thematicBreak:function(e,n){return e(n,"hr")},toml:bi,yaml:bi,definition:bi,footnoteDefinition:bi};function bi(){return null}const xi={}.hasOwnProperty;function ki(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 ai(e,"definition",(function(e){const t=ui(e.identifier);t&&!li.call(n,t)&&(n[t]=e)})),function(e){const t=ui(e);return t&&li.call(n,t)?n[t]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers={...yi,...t.handlers},a.unknownHandler=t.unknownHandler,a.passThrough=t.passThrough,ni(e,"footnoteDefinition",(e=>{const n=String(e.identifier).toUpperCase();xi.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:ti(r),end:ri(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 wi(e,n){const t=ki(e,n),r=Kr(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=Xr(e,r),o=String(r.identifier),a=si(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:fi(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:[$r("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:fi(t,!0)},{type:"text",value:"\n"}]}}(t);return i&&r.children.push($r("text","\n"),i),Array.isArray(r)?{type:"root",children:r}:r}var Ei=function(e,n){return e&&"run"in e?function(e,n){return(t,r,i)=>{e.run(wi(t,n),r,(e=>{i(e)}))}}(e,n):function(e){return n=>wi(n,e)}(e||n)};class _i{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function Oi(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 _i(t,r,n)}function Si(e){return e.toLowerCase()}_i.prototype.property={},_i.prototype.normal={},_i.prototype.space=null;class Ci{constructor(e,n){this.property=e,this.attribute=n}}Ci.prototype.space=null,Ci.prototype.boolean=!1,Ci.prototype.booleanish=!1,Ci.prototype.overloadedBoolean=!1,Ci.prototype.number=!1,Ci.prototype.commaSeparated=!1,Ci.prototype.spaceSeparated=!1,Ci.prototype.commaOrSpaceSeparated=!1,Ci.prototype.mustUseProperty=!1,Ci.prototype.defined=!1;let Ai=0;const ji=Li(),Ti=Li(),Pi=Li(),Ri=Li(),Fi=Li(),Ii=Li(),Di=Li();function Li(){return 2**++Ai}var zi=Object.freeze({__proto__:null,boolean:ji,booleanish:Ti,overloadedBoolean:Pi,number:Ri,spaceSeparated:Fi,commaSeparated:Ii,commaOrSpaceSeparated:Di});const Mi=Object.keys(zi);class Ni extends Ci{constructor(e,n,t,r){let i=-1;if(super(e,n),Bi(this,"space",r),"number"==typeof t)for(;++i<Mi.length;){const e=Mi[i];Bi(this,Mi[i],(t&zi[e])===zi[e])}}}function Bi(e,n,t){t&&(e[n]=t)}Ni.prototype.defined=!0;const qi={}.hasOwnProperty;function Vi(e){const n={},t={};let r;for(r in e.properties)if(qi.call(e.properties,r)){const i=e.properties[r],o=new Ni(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Si(r)]=r,t[Si(o.attribute)]=r}return new _i(n,t,e.space)}const Ui=Vi({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}}),Hi=Vi({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function $i(e,n){return n in e?e[n]:n}function Wi(e,n){return $i(e,n.toLowerCase())}const Gi=Vi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Wi,properties:{xmlns:null,xmlnsXLink:null}}),Ki=Vi({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ti,ariaAutoComplete:null,ariaBusy:Ti,ariaChecked:Ti,ariaColCount:Ri,ariaColIndex:Ri,ariaColSpan:Ri,ariaControls:Fi,ariaCurrent:null,ariaDescribedBy:Fi,ariaDetails:null,ariaDisabled:Ti,ariaDropEffect:Fi,ariaErrorMessage:null,ariaExpanded:Ti,ariaFlowTo:Fi,ariaGrabbed:Ti,ariaHasPopup:null,ariaHidden:Ti,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fi,ariaLevel:Ri,ariaLive:null,ariaModal:Ti,ariaMultiLine:Ti,ariaMultiSelectable:Ti,ariaOrientation:null,ariaOwns:Fi,ariaPlaceholder:null,ariaPosInSet:Ri,ariaPressed:Ti,ariaReadOnly:Ti,ariaRelevant:null,ariaRequired:Ti,ariaRoleDescription:Fi,ariaRowCount:Ri,ariaRowIndex:Ri,ariaRowSpan:Ri,ariaSelected:Ti,ariaSetSize:Ri,ariaSort:null,ariaValueMax:Ri,ariaValueMin:Ri,ariaValueNow:Ri,ariaValueText:null,role:null}}),Zi=Vi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Wi,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ii,acceptCharset:Fi,accessKey:Fi,action:null,allow:null,allowFullScreen:ji,allowPaymentRequest:ji,allowUserMedia:ji,alt:null,as:null,async:ji,autoCapitalize:null,autoComplete:Fi,autoFocus:ji,autoPlay:ji,capture:ji,charSet:null,checked:ji,cite:null,className:Fi,cols:Ri,colSpan:null,content:null,contentEditable:Ti,controls:ji,controlsList:Fi,coords:Ri|Ii,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ji,defer:ji,dir:null,dirName:null,disabled:ji,download:Pi,draggable:Ti,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ji,formTarget:null,headers:Fi,height:Ri,hidden:ji,high:Ri,href:null,hrefLang:null,htmlFor:Fi,httpEquiv:Fi,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:ji,itemId:null,itemProp:Fi,itemRef:Fi,itemScope:ji,itemType:Fi,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ji,low:Ri,manifest:null,max:null,maxLength:Ri,media:null,method:null,min:null,minLength:Ri,multiple:ji,muted:ji,name:null,nonce:null,noModule:ji,noValidate:ji,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:ji,optimum:Ri,pattern:null,ping:Fi,placeholder:null,playsInline:ji,poster:null,preload:null,readOnly:ji,referrerPolicy:null,rel:Fi,required:ji,reversed:ji,rows:Ri,rowSpan:Ri,sandbox:Fi,scope:null,scoped:ji,seamless:ji,selected:ji,shape:null,size:Ri,sizes:null,slot:null,span:Ri,spellCheck:Ti,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ri,step:null,style:null,tabIndex:Ri,target:null,title:null,translate:null,type:null,typeMustMatch:ji,useMap:null,value:Ti,width:Ri,wrap:null,align:null,aLink:null,archive:Fi,axis:null,background:null,bgColor:null,border:Ri,borderColor:null,bottomMargin:Ri,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ji,declare:ji,event:null,face:null,frame:null,frameBorder:null,hSpace:Ri,leftMargin:Ri,link:null,longDesc:null,lowSrc:null,marginHeight:Ri,marginWidth:Ri,noResize:ji,noHref:ji,noShade:ji,noWrap:ji,object:null,profile:null,prompt:null,rev:null,rightMargin:Ri,rules:null,scheme:null,scrolling:Ti,standby:null,summary:null,text:null,topMargin:Ri,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ri,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ji,disableRemotePlayback:ji,prefix:null,property:null,results:Ri,security:null,unselectable:null}}),Xi=Vi({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:$i,properties:{about:Di,accentHeight:Ri,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ri,amplitude:Ri,arabicForm:null,ascent:Ri,attributeName:null,attributeType:null,azimuth:Ri,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ri,by:null,calcMode:null,capHeight:Ri,className:Fi,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ri,diffuseConstant:Ri,direction:null,display:null,dur:null,divisor:Ri,dominantBaseline:null,download:ji,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ri,enableBackground:null,end:null,event:null,exponent:Ri,externalResourcesRequired:null,fill:null,fillOpacity:Ri,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ii,g2:Ii,glyphName:Ii,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ri,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ri,horizOriginX:Ri,horizOriginY:Ri,id:null,ideographic:Ri,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ri,k:Ri,k1:Ri,k2:Ri,k3:Ri,k4:Ri,kernelMatrix:Di,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ri,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ri,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ri,overlineThickness:Ri,paintOrder:null,panose1:null,path:null,pathLength:Ri,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fi,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ri,pointsAtY:Ri,pointsAtZ:Ri,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Di,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Di,rev:Di,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Di,requiredFeatures:Di,requiredFonts:Di,requiredFormats:Di,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ri,specularExponent:Ri,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ri,strikethroughThickness:Ri,string:null,stroke:null,strokeDashArray:Di,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ri,strokeOpacity:Ri,strokeWidth:null,style:null,surfaceScale:Ri,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Di,tabIndex:Ri,tableValues:null,target:null,targetX:Ri,targetY:Ri,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Di,to:null,transform:null,u1:null,u2:null,underlinePosition:Ri,underlineThickness:Ri,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ri,values:null,vAlphabetic:Ri,vMathematical:Ri,vectorEffect:null,vHanging:Ri,vIdeographic:Ri,version:null,vertAdvY:Ri,vertOriginX:Ri,vertOriginY:Ri,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ri,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Yi=/^data[-\w.:]+$/i,Qi=/-[a-z]/g,Ji=/[A-Z]/g;function eo(e){return"-"+e.toLowerCase()}function no(e){return e.charAt(1).toUpperCase()}const to={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"},ro=Oi([Hi,Ui,Gi,Ki,Zi],"html"),io=Oi([Hi,Ui,Gi,Ki,Xi],"svg");function oo(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=>{ni(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 bn=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)};function xn(e){return e&&"object"==typeof e?"position"in e||"type"in e?wn(e.position):"start"in e||"end"in e?wn(e):"line"in e||"column"in e?kn(e):"":""}function kn(e){return En(e&&e.line)+":"+En(e&&e.column)}function wn(e){return kn(e&&e.start)+"-"+kn(e&&e.end)}function En(e){return e&&"number"==typeof e?e:1}class _n 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=xn(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}}_n.prototype.file="",_n.prototype.name="",_n.prototype.reason="",_n.prototype.message="",_n.prototype.stack="",_n.prototype.fatal=null,_n.prototype.column=null,_n.prototype.line=null,_n.prototype.source=null,_n.prototype.ruleId=null,_n.prototype.position=null;const On={basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');Sn(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(Sn(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){Sn(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;)Sn(e[t]),e[t]&&(n=void 0===n?e[t]:n+"/"+e[t]);return void 0===n?".":function(e){Sn(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 Sn(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Cn={cwd:function(){return"/"}};function An(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function jn(e){if("string"==typeof e)e=new URL(e);else if(!An(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 Tn=["history","path","basename","stem","extname","dirname"];class Fn{constructor(e){let n;n=e?"string"==typeof e||bn(e)?{value:e}:An(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=Cn.cwd(),this.value,this.stored,this.result,this.map;let t,r=-1;for(;++r<Tn.length;){const e=Tn[r];e in n&&void 0!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(t in n)Tn.includes(t)||(this[t]=n[t])}get path(){return this.history[this.history.length-1]}set path(e){An(e)&&(e=jn(e)),Rn(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?On.dirname(this.path):void 0}set dirname(e){In(this.basename,"dirname"),this.path=On.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?On.basename(this.path):void 0}set basename(e){Rn(e,"basename"),Pn(e,"basename"),this.path=On.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?On.extname(this.path):void 0}set extname(e){if(Pn(e,"extname"),In(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=On.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?On.basename(this.path,this.extname):void 0}set stem(e){Rn(e,"stem"),Pn(e,"stem"),this.path=On.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,n,t){const r=new _n(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 Pn(e,n){if(e&&e.includes(On.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+On.sep+"`")}function Rn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function In(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Dn(e){if(e)throw e}var Ln=Object.prototype.hasOwnProperty,zn=Object.prototype.toString,Mn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,Bn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===zn.call(e)},Vn=function(e){if(!e||"[object Object]"!==zn.call(e))return!1;var n,t=Ln.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ln.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;for(n in e);return void 0===n||Ln.call(e,n)},qn=function(e,n){Mn&&"__proto__"===n.name?Mn(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},Un=function(e,n){if("__proto__"===n){if(!Ln.call(e,n))return;if(Nn)return Nn(e,n).value}return e[n]},Hn=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=Un(l,t),l!==(i=Un(n,t))&&(s&&i&&(Vn(i)||(o=Bn(i)))?(o?(o=!1,a=r&&Bn(r)?r:[]):a=r&&Vn(r)?r:{},qn(l,{name:t,newValue:e(s,a,i)})):void 0!==i&&qn(l,{name:t,newValue:i}));return l};function $n(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const n=Object.getPrototypeOf(e);return null===n||n===Object.prototype}function Wn(){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 Gn=function e(){const n=Wn(),t=[];let r,i={},o=-1;return a.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(Qn("data",r),i[e]=n,a):Kn.call(i,e)&&i[e]||null;if(e)return Qn("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(Qn("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?($n(r[1])&&$n(n)&&(n=Hn(!0,r[1],n)),r[1]=n):t.push([...arguments])}},a.parse=function(e){a.freeze();const n=nt(e),t=a.Parser;if(Xn("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=nt(n),r=a.Compiler;if(Yn("stringify",r),Jn(e),Zn(r,"compile"))return new r(e,t).compile();return r(e,t)},a.run=function(e,t,r){Jn(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,nt(t),a)}i(null,r)},a.runSync=function(e,n){let t,r;return a.run(e,n,i),et("runSync","run",r),t;function i(e,n){Dn(e),t=n,r=!0}},a.process=function(e,n){if(a.freeze(),Xn("process",a.Parser),Yn("process",a.Compiler),!n)return new Promise(t);function t(t,r){const i=nt(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)||bn(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(),Xn("processSync",a.Parser),Yn("processSync",a.Compiler);const t=nt(e);return a.process(t,r),et("processSync","process",n),t;function r(e){n=!0,Dn(e)}},a;function a(){const n=e();let r=-1;for(;++r<t.length;)n.use(...t[r]);return n.data(Hn(!0,{},i)),n}}().freeze(),Kn={}.hasOwnProperty;function Zn(e,n){return"function"==typeof e&&e.prototype&&(function(e){let n;for(n in e)if(Kn.call(e,n))return!0;return!1}(e.prototype)||n in e.prototype)}function Xn(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Parser`")}function Yn(e,n){if("function"!=typeof n)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Qn(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 Jn(e){if(!$n(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function et(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function nt(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Fn(e)}function tt(e,n){return e&&"object"==typeof e&&(e.value||(n?e.alt:"")||"children"in e&&rt(e.children,n)||Array.isArray(e)&&rt(e,n))||""}function rt(e,n){for(var t=[],r=-1;++r<e.length;)t[r]=tt(e[r],n);return t.join("")}function it(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 ot(e,n){return e.length>0?(it(e,e.length,0,n),e):n}const at={}.hasOwnProperty;function lt(e){const n={};let t=-1;for(;++t<e.length;)ut(n,e[t]);return n}function ut(e,n){let t;for(t in n){const r=(at.call(e,t)?e[t]:void 0)||(e[t]={}),i=n[t];let o;for(o in i){at.call(r,o)||(r[o]=[]);const e=i[o];ct(r[o],Array.isArray(e)?e:e?[e]:[])}}}function ct(e,n){let t=-1;const r=[];for(;++t<n.length;)("after"===n[t].add?e:r).push(n[t]);it(e,0,0,r)}const st=wt(/[A-Za-z]/),ft=wt(/\d/),pt=wt(/[\dA-Fa-f]/),dt=wt(/[\dA-Za-z]/),ht=wt(/[!-/:-@[-`{-~]/),gt=wt(/[#-'*+\--9=?A-Z^-~]/);function mt(e){return null!==e&&(e<32||127===e)}function vt(e){return null!==e&&(e<0||32===e)}function yt(e){return null!==e&&e<-2}function bt(e){return-2===e||-1===e||32===e}const xt=wt(/\s/),kt=wt(/[!-/:-@[-`{-~\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 wt(e){return function(n){return null!==n&&e.test(String.fromCharCode(n))}}function Et(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(bt(r))return e.enter(t),a(r);return n(r)};function a(r){return bt(r)&&o++<i?(e.consume(r),a):(e.exit(t),n(r))}}const _t={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"),Et(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)):yt(n)?(e.consume(n),e.exit("chunkText"),r):(e.consume(n),i)}}};const Ot={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 it(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(St,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(St,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)):yt(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++;it(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}}},St={tokenize:function(e,n,t){return Et(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Ct(e){return null===e||vt(e)||xt(e)?1:kt(e)?2:void 0}function At(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 jt={name:"attention",tokenize:function(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ct(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=Ct(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);Tt(f,-l),Tt(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=ot(u,[["enter",e[t][1],n],["exit",e[t][1],n]])),u=ot(u,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",i,n]]),u=ot(u,At(n.parser.constructs.insideSpan.null,e.slice(t+1,s),n)),u=ot(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=ot(u,[["enter",e[s][1],n],["exit",e[s][1],n]])):c=0,it(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 Tt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ft={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 st(n)?(e.consume(n),o):gt(n)?u(n):t(n)}function o(e){return 43===e||45===e||46===e||dt(e)?a(e):u(e)}function a(n){return 58===n?(e.consume(n),l):(43===n||45===n||46===n||dt(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||mt(n)?t(n):(e.consume(n),l)}function u(n){return 64===n?(e.consume(n),r=0,c):gt(n)?(e.consume(n),u):t(n)}function c(e){return dt(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||dt(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 Pt={tokenize:function(e,n,t){return Et(e,(function(e){return null===e||yt(e)?n(e):t(e)}),"linePrefix")},partial:!0};const Rt={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 bt(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 Et(e,e.attempt(Rt,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};const It={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 ht(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(r)}}};const Dt=document.createElement("i");function Lt(e){const n="&"+e+";";Dt.innerHTML=n;const t=Dt.textContent;return(59!==t.charCodeAt(t.length-1)||"semi"===e)&&(t!==n&&t)}const zt={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=dt,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=pt,c):(e.enter("characterReferenceValue"),i=7,o=ft,c(n))}function c(l){let u;return 59===l&&a?(u=e.exit("characterReferenceValue"),o!==dt||Lt(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 Mt={name:"codeFenced",tokenize:function(e,n,t){const r=this,i={tokenize:function(e,n,t){let r=0;return Et(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"),Et(e,a,"whitespace")(n))}function a(r){return null===r||yt(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):Et(e,f,"whitespace")(n))}function f(n){return null===n||yt(n)?g(n):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(n))}function p(n){return null===n||vt(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,d,"whitespace")(n)):96===n&&n===u?t(n):(e.consume(n),p)}function d(n){return null===n||yt(n)?g(n):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(n))}function h(n){return null===n||yt(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):yt(n)?e.attempt(o,e.attempt(i,y,l?Et(e,m,"linePrefix",l+1):m),y)(n):(e.enter("codeFlowValue"),v(n))}function v(n){return null===n||yt(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),v)}function y(t){return e.exit("codeFenced"),n(t)}},concrete:!0};const Nt={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),Et(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):yt(n)?e.attempt(Bt,o,l)(n):(e.enter("codeFlowValue"),a(n))}function a(n){return null===n||yt(n)?(e.exit("codeFlowValue"),o(n)):(e.consume(n),a)}function l(t){return e.exit("codeIndented"),n(t)}}},Bt={tokenize:function(e,n,t){const r=this;return i;function i(n){return r.parser.lazy[r.now().line]?t(n):yt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i):Et(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):yt(e)?i(e):t(e)}},partial:!0};const Vt={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):yt(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||yt(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 qt(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,Ut(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),it(e,r,c-r+1,a))}}return!u}function Ut(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]),it(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 Ht={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):yt(n)?e.check($t,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 qt(e),e}},$t={tokenize:function(e,n,t){const r=this;return function(n){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Et(e,i,"linePrefix")};function i(i){if(null===i||yt(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 Wt(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||mt(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||yt(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||vt(i)?s?t(i):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),n(i)):mt(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 Gt(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):yt(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||yt(n)||u++>999?(e.exit("chunkString"),c(n)):(e.consume(n),l=l||!bt(n),92===n?f:s)}function f(n){return 91===n||92===n||93===n?(e.consume(n),u++,s):s(n)}}function Kt(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):yt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Et(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(n))}function c(n){return n===a||null===n||yt(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(yt(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r;if(bt(i))return Et(e,r,t?"linePrefix":"lineSuffix")(i);return n(i)}}function Xt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Yt={name:"definition",tokenize:function(e,n,t){const r=this;let i;return function(n){return e.enter("definition"),Gt.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function o(n){return i=Xt(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,Wt(e,e.attempt(Qt,Et(e,a,"whitespace"),Et(e,a,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function a(o){return null===o||yt(o)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),n(o)):t(o)}}},Qt={tokenize:function(e,n,t){return function(n){return vt(n)?Zt(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Kt(e,Et(e,i,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function i(e){return null===e||yt(e)?n(e):t(e)}},partial:!0};const Jt={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 yt(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}};const er={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||vt(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||yt(t)?(e.exit("atxHeading"),n(t)):bt(t)?Et(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||vt(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"},it(e,o,i-o+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const nr=["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"],tr=["pre","script","style","textarea"],rr={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):st(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):st(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:S:p):t(i)}function d(n){return st(n)?(e.consume(n),a=String.fromCharCode(n),h):t(n)}function h(l){return null===l||47===l||62===l||vt(l)?47!==l&&o&&tr.includes(a.toLowerCase())?(i=1,r.interrupt?n(l):S(l)):nr.includes(a.toLowerCase())?(i=6,47===l?(e.consume(l),g):r.interrupt?n(l):S(l)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(l):o?v(l):m(l)):45===l||dt(l)?(e.consume(l),a+=String.fromCharCode(l),h):t(l)}function g(i){return 62===i?(e.consume(i),r.interrupt?n:S):t(i)}function m(n){return bt(n)?(e.consume(n),m):_(n)}function v(n){return 47===n?(e.consume(n),_):58===n||95===n||st(n)?(e.consume(n),y):bt(n)?(e.consume(n),v):_(n)}function y(n){return 45===n||46===n||58===n||95===n||dt(n)?(e.consume(n),y):b(n)}function b(n){return 61===n?(e.consume(n),x):bt(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):bt(n)?(e.consume(n),x):(u=null,w(n))}function k(n){return null===n||yt(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||vt(n)?b(n):(e.consume(n),w)}function E(e){return 47===e||62===e||bt(e)?v(e):t(e)}function _(n){return 62===n?(e.consume(n),O):t(n)}function O(n){return bt(n)?(e.consume(n),O):null===n||yt(n)?S(n):t(n)}function S(n){return 45===n&&2===i?(e.consume(n),T):60===n&&1===i?(e.consume(n),F):62===n&&4===i?(e.consume(n),D):63===n&&3===i?(e.consume(n),I):93===n&&5===i?(e.consume(n),R):!yt(n)||6!==i&&7!==i?null===n||yt(n)?C(n):(e.consume(n),S):e.check(ir,D,C)(n)}function C(n){return e.exit("htmlFlowData"),A(n)}function A(n){return null===n?L(n):yt(n)?e.attempt({tokenize:j,partial:!0},A,L)(n):(e.enter("htmlFlowData"),S(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):S(n)}function F(n){return 47===n?(e.consume(n),a="",P):S(n)}function P(n){return 62===n&&tr.includes(a.toLowerCase())?(e.consume(n),D):st(n)&&a.length<8?(e.consume(n),a+=String.fromCharCode(n),P):S(n)}function R(n){return 93===n?(e.consume(n),I):S(n)}function I(n){return 62===n?(e.consume(n),D):45===n&&2===i?(e.consume(n),I):S(n)}function D(n){return null===n||yt(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},ir={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(Pt,n,t)}},partial:!0};const or={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):st(n)?(e.consume(n),O):t(n)}function c(n){return 45===n?(e.consume(n),s):91===n?(e.consume(n),o="CDATA[",a=0,g):st(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):yt(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):yt(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):yt(n)?(l=b,R(n)):(e.consume(n),b)}function x(n){return null===n?t(n):63===n?(e.consume(n),k):yt(n)?(l=x,R(n)):(e.consume(n),x)}function k(e){return 62===e?D(e):x(e)}function w(n){return st(n)?(e.consume(n),E):t(n)}function E(n){return 45===n||dt(n)?(e.consume(n),E):_(n)}function _(n){return yt(n)?(l=_,R(n)):bt(n)?(e.consume(n),_):D(n)}function O(n){return 45===n||dt(n)?(e.consume(n),O):47===n||62===n||vt(n)?S(n):t(n)}function S(n){return 47===n?(e.consume(n),D):58===n||95===n||st(n)?(e.consume(n),C):yt(n)?(l=S,R(n)):bt(n)?(e.consume(n),S):D(n)}function C(n){return 45===n||46===n||58===n||95===n||dt(n)?(e.consume(n),C):A(n)}function A(n){return 61===n?(e.consume(n),j):yt(n)?(l=A,R(n)):bt(n)?(e.consume(n),A):S(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):yt(n)?(l=j,R(n)):bt(n)?(e.consume(n),j):(e.consume(n),i=void 0,P)}function T(n){return n===i?(e.consume(n),F):null===n?t(n):yt(n)?(l=T,R(n)):(e.consume(n),T)}function F(e){return 62===e||47===e||vt(e)?S(e):t(e)}function P(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||vt(n)?S(n):(e.consume(n),P)}function R(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Et(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 ar={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(Xt(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(lr,n,o?n:u)(t):91===t?e.attempt(ur,n,o?e.attempt(cr,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=ot(o,e.slice(r+1,r+l+3)),o=ot(o,[["enter",s,n]]),o=ot(o,At(n.parser.constructs.insideSpan.null,e.slice(r+l+4,i-3),n)),o=ot(o,[["exit",s,n],e[i-2],e[i-1],["exit",c,n]]),o=ot(o,e.slice(i+1)),o=ot(o,[["exit",u,n]]),it(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}},lr={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):Wt(e,i,t,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(n)}function i(n){return vt(n)?Zt(e,o)(n):a(n)}function o(n){return 34===n||39===n||40===n?Kt(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)}}},ur={tokenize:function(e,n,t){const r=this;return function(n){return Gt.call(r,e,i,t,"reference","referenceMarker","referenceString")(n)};function i(e){return r.parser.defined.includes(Xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(e):t(e)}}},cr={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 sr={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:ar.resolveAll};const fr={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:ar.resolveAll};const pr={name:"lineEnding",tokenize:function(e,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Et(e,n,"linePrefix")}}};const dr={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)):bt(l)?Et(e,o,"whitespace")(l):i<3||null!==l&&!yt(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 hr={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:ft(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(dr,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 ft(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(Pt,r.interrupt?t:c,e.attempt(gr,f,s))}function c(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function s(n){return bt(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(Pt,i,o);function i(t){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Et(e,n,"listItemIndent",r.containerState.size+1)(t)}function o(t){return r.containerState.furtherBlankLines||!bt(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(mr,n,a)(t))}function a(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Et(e,e.attempt(hr,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},gr={tokenize:function(e,n,t){const r=this;return Et(e,(function(e){const i=r.events[r.events.length-1];return!bt(e)&&i&&"listItemPrefixWhitespace"===i[1].type?n(e):t(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},mr={tokenize:function(e,n,t){const r=this;return Et(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 vr={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"),Et(e,u,"lineSuffix")(n))}function u(r){return null===r||yt(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 yr={tokenize:function(e){const n=this,t=e.attempt(Pt,(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,Et(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ht,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 br={resolveAll:Er()},xr=wr("string"),kr=wr("text");function wr(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:Er("text"===e?_r:void 0)}}function Er(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 _r(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 Or(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){yt(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=ot(a,e),d(),null!==a[a.length-1])return[];return v(n,0),c.events=At(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&&it(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 Sr={42:hr,43:hr,45:hr,48:hr,49:hr,50:hr,51:hr,52:hr,53:hr,54:hr,55:hr,56:hr,57:hr,62:Rt},Cr={91:Yt},Ar={[-2]:Nt,[-1]:Nt,32:Nt},jr={35:er,42:dr,45:[vr,dr],60:rr,61:vr,95:dr,96:Mt,126:Mt},Tr={38:zt,92:It},Fr={[-5]:pr,[-4]:pr,[-3]:pr,33:sr,38:zt,42:jt,60:[Ft,or],91:fr,92:[Jt,It],93:ar,95:jt,96:Vt},Pr={null:[jt,br]};var Rr=Object.freeze({__proto__:null,document:Sr,contentInitial:Cr,flowInitial:Ar,flow:jr,string:Tr,text:Fr,insideSpan:Pr,attentionMarkers:{null:[42,95]},disable:{null:[]}});const Ir=/[\0\t\n\r]/g;function Dr(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 Lr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zr(e){return e.replace(Lr,Mr)}function Mr(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return Dr(t.slice(n?2:1),n?16:10)}return Lt(t)||e}const Nr={}.hasOwnProperty,Br=function(e,n,t){return"string"!=typeof n&&(t=n,n=void 0),function(e={}){const n=Vr({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(re),autolinkProtocol:A,autolinkEmail:A,atxHeading:u(J),blockQuote:u(K),characterEscape:A,characterReference:A,codeFenced:u(Z),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Z,c),codeText:u(X,c),codeTextData:A,data:A,codeFlowValue:A,definition:u(Y),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(Q),hardBreakEscape:u(ee),hardBreakTrailing:u(ee),htmlFlow:u(ne,c),htmlFlowData:A,htmlText:u(ne,c),htmlTextData:A,image:u(te),label:c,link:u(re),listItem:u(oe),listItemValue:g,listOrdered:u(ie,h),listUnordered:u(ie),paragraph:u(ae),reference:q,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(J),strong:u(le),thematicBreak:u(ce)},exit:{atxHeading:f(),atxHeadingSequence:_,autolink:f(),autolinkEmail:G,autolinkProtocol:W,blockQuote:f(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:$,codeFenced:f(b),codeFencedFence:y,codeFencedFenceInfo:m,codeFencedFenceMeta:v,codeFlowValue:j,codeIndented:f(x),codeText:f(I),codeTextData:j,data:j,definition:f(),definitionDestinationString:E,definitionLabelString:k,definitionTitleString:w,emphasis:f(),hardBreakEscape:f(F),hardBreakTrailing:f(F),htmlFlow:f(P),htmlFlowData:j,htmlText:f(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:V,setextHeading:f(C),setextHeadingLineSequence:S,setextHeadingText:O,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]];Nr.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]||Ur).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+"` ("+xn({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]||Ur).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 tt(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=Xt(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 O(){o("setextHeadingSlurpLineEnding",!0)}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){o("setextHeadingSlurpLineEnding")}function A(e){const n=this.stack[this.stack.length-1];let t=n.children[n.children.length-1];t&&"text"===t.type||(t=ue(),t.position={start:l(e.start)},n.children.push(t)),this.stack.push(t)}function j(e){const n=this.stack.pop();n.value+=this.sliceSerialize(e),n.position.end=l(e.end)}function T(e){const t=this.stack[this.stack.length-1];if(a("atHardBreak")){return t.children[t.children.length-1].position.end=l(e.end),void o("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(t.type)&&(A.call(this,e),j.call(this,e))}function F(){o("atHardBreak",!0)}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function 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=zr(t),n.identifier=Xt(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 V(){o("inReference")}function q(){o("referenceType","collapsed")}function U(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=Xt(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=Dr(n,"characterReferenceMarkerNumeric"===t?10:16),o("characterReferenceType")):r=Lt(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(;!qt(e););return e}(function(e={}){const n={defined:[],lazy:{},constructs:lt([Rr].concat(e.extensions||[])),content:t(_t),document:t(Ot),flow:t(yr),string:t(xr),text:t(kr)};return n;function t(e){return function(t){return Or(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(Ir.lastIndex=s,u=Ir.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 Vr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Vr(e,r):qr(e,r)}return e}function qr(e,n){let t;for(t in n)if(Nr.call(n,t)){const r="canContainEols"===t||"transforms"===t,i=(Nr.call(e,t)?e[t]:void 0)||(e[t]=r?[]:{}),o=n[t];o&&(r?e[t]=[...i,...o]:Object.assign(i,o))}}function Ur(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+xn({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+xn({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+xn({start:n.start,end:n.end})+") is still open")}function Hr(e){Object.assign(this,{Parser:n=>{const t=this.data("settings");return Br(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var $r=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 Wr={}.hasOwnProperty;function Gr(e,n){const t=n.data||{};return"value"in n&&!(Wr.call(t,"hName")||Wr.call(t,"hProperties")||Wr.call(t,"hChildren"))?e.augment(n,$r("text",n.value)):e(n,"div",Xr(e,n))}function Kr(e,n,t){const r=n&&n.type;let i;if(!r)throw new Error("Expected node, got `"+n+"`");return i=Wr.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?Zr:e.unknownHandler,("function"==typeof i?i:Gr)(e,n,t)}function Zr(e,n){return"children"in n?{...n,children:Xr(e,n)}:n}function Xr(e,n){const t=[];if("children"in n){const r=n.children;let i=-1;for(;++i<r.length;){const o=Kr(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 Yr=function(e){if(null==e)return Jr;if("string"==typeof e)return function(e){return Qr(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]=Yr(e[t]);return Qr(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 Qr(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 Qr(e);throw new Error("Expected function, string, or object as test")};function Qr(e){return function(...n){return Boolean(e.call(this,...n))}}function Jr(){return!0}const ei=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);const i=Yr(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 ni=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),ei(e,n,(function(e,n){const r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},ti=ii("start"),ri=ii("end");function ii(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 oi=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null);var i=Yr(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 ai=function(e,n,t,r){"function"==typeof n&&"function"!=typeof t&&(r=t,t=n,n=null),oi(e,n,(function(e,n){var r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)},li={}.hasOwnProperty;function ui(e){return String(e||"").toUpperCase()}const ci={'"':"quot","&":"amp","<":"lt",">":"gt"};function si(e,n){const t=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+ci[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&&dt(e.charCodeAt(t+1))&&dt(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 fi(e,n){const t=[];let r=-1;for(n&&t.push($r("text","\n"));++r<e.length;)r&&t.push($r("text","\n")),t.push(e[r]);return n&&e.length>0&&t.push($r("text","\n")),t}function pi(e,n){const t=String(n.identifier),r=si(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"},[$r("text",String(o))])])}var di={};function hi(e,n,t){var r,i,o,a,l,u="";for("string"!=typeof n&&(t=n,n=hi.defaultChars),void 0===t&&(t=!0),l=function(e){var n,t,r=di[e];if(r)return r;for(r=di[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}hi.defaultChars=";/?:@&=+$,-_.!~*'()#",hi.componentChars="-_.!~*'()";var gi=hi;function mi(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return $r("text","!["+n.alt+r);const i=Xr(e,n),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift($r("text","["));const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push($r("text",r)),i}function vi(e){const n=e.spread;return null==n?e.children.length>1:n}const yi={blockquote:function(e,n){return e(n,"blockquote",fi(Xr(e,n),!0))},break:function(e,n){return[e(n,"br"),$r("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,[$r("text",t)]);return n.meta&&(o.data={meta:n.meta}),e(n.position,"pre",[o])},delete:function(e,n){return e(n,"del",Xr(e,n))},emphasis:function(e,n){return e(n,"em",Xr(e,n))},footnoteReference:pi,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},pi(e,{type:"footnoteReference",identifier:i,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Xr(e,n))},html:function(e,n){return e.dangerous?e.augment(n,$r("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return mi(e,n);const r={src:gi(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:gi(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",[$r("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return mi(e,n);const r={href:gi(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Xr(e,n))},link:function(e,n){const t={href:gi(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Xr(e,n))},listItem:function(e,n,t){const r=Xr(e,n),i=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=vi(t[r]);return Boolean(n)}(t):vi(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($r("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($r("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($r("text","\n")),e(n,"li",o,a)},list:function(e,n){const t={},r=n.ordered?"ol":"ul",i=Xr(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,fi(i,!0))},paragraph:function(e,n){return e(n,"p",Xr(e,n))},root:function(e,n){return e.augment(n,$r("root",fi(Xr(e,n))))},strong:function(e,n){return e(n,"strong",Xr(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?Xr(e,n):[]))}o[r]=e(t[r],"tr",fi(u,!0))}return e(n,"table",fi([e(o[0].position,"thead",fi([o[0]],!0))].concat(o[1]?e({start:ti(o[1]),end:ri(o[o.length-1])},"tbody",fi(o.slice(1),!0)):[]),!0))},text:function(e,n){return e.augment(n,$r("text",String(n.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))},thematicBreak:function(e,n){return e(n,"hr")},toml:bi,yaml:bi,definition:bi,footnoteDefinition:bi};function bi(){return null}const xi={}.hasOwnProperty;function ki(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 ai(e,"definition",(function(e){const t=ui(e.identifier);t&&!li.call(n,t)&&(n[t]=e)})),function(e){const t=ui(e);return t&&li.call(n,t)?n[t]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers={...yi,...t.handlers},a.unknownHandler=t.unknownHandler,a.passThrough=t.passThrough,ni(e,"footnoteDefinition",(e=>{const n=String(e.identifier).toUpperCase();xi.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:ti(r),end:ri(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 wi(e,n){const t=ki(e,n),r=Kr(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=Xr(e,r),o=String(r.identifier),a=si(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:fi(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:[$r("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:fi(t,!0)},{type:"text",value:"\n"}]}}(t);return i&&r.children.push($r("text","\n"),i),Array.isArray(r)?{type:"root",children:r}:r}var Ei=function(e,n){return e&&"run"in e?function(e,n){return(t,r,i)=>{e.run(wi(t,n),r,(e=>{i(e)}))}}(e,n):function(e){return n=>wi(n,e)}(e||n)};class _i{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function Oi(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 _i(t,r,n)}function Si(e){return e.toLowerCase()}_i.prototype.property={},_i.prototype.normal={},_i.prototype.space=null;class Ci{constructor(e,n){this.property=e,this.attribute=n}}Ci.prototype.space=null,Ci.prototype.boolean=!1,Ci.prototype.booleanish=!1,Ci.prototype.overloadedBoolean=!1,Ci.prototype.number=!1,Ci.prototype.commaSeparated=!1,Ci.prototype.spaceSeparated=!1,Ci.prototype.commaOrSpaceSeparated=!1,Ci.prototype.mustUseProperty=!1,Ci.prototype.defined=!1;let Ai=0;const ji=Li(),Ti=Li(),Fi=Li(),Pi=Li(),Ri=Li(),Ii=Li(),Di=Li();function Li(){return 2**++Ai}var zi=Object.freeze({__proto__:null,boolean:ji,booleanish:Ti,overloadedBoolean:Fi,number:Pi,spaceSeparated:Ri,commaSeparated:Ii,commaOrSpaceSeparated:Di});const Mi=Object.keys(zi);class Ni extends Ci{constructor(e,n,t,r){let i=-1;if(super(e,n),Bi(this,"space",r),"number"==typeof t)for(;++i<Mi.length;){const e=Mi[i];Bi(this,Mi[i],(t&zi[e])===zi[e])}}}function Bi(e,n,t){t&&(e[n]=t)}Ni.prototype.defined=!0;const Vi={}.hasOwnProperty;function qi(e){const n={},t={};let r;for(r in e.properties)if(Vi.call(e.properties,r)){const i=e.properties[r],o=new Ni(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Si(r)]=r,t[Si(o.attribute)]=r}return new _i(n,t,e.space)}const Ui=qi({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}}),Hi=qi({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function $i(e,n){return n in e?e[n]:n}function Wi(e,n){return $i(e,n.toLowerCase())}const Gi=qi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Wi,properties:{xmlns:null,xmlnsXLink:null}}),Ki=qi({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ti,ariaAutoComplete:null,ariaBusy:Ti,ariaChecked:Ti,ariaColCount:Pi,ariaColIndex:Pi,ariaColSpan:Pi,ariaControls:Ri,ariaCurrent:null,ariaDescribedBy:Ri,ariaDetails:null,ariaDisabled:Ti,ariaDropEffect:Ri,ariaErrorMessage:null,ariaExpanded:Ti,ariaFlowTo:Ri,ariaGrabbed:Ti,ariaHasPopup:null,ariaHidden:Ti,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ri,ariaLevel:Pi,ariaLive:null,ariaModal:Ti,ariaMultiLine:Ti,ariaMultiSelectable:Ti,ariaOrientation:null,ariaOwns:Ri,ariaPlaceholder:null,ariaPosInSet:Pi,ariaPressed:Ti,ariaReadOnly:Ti,ariaRelevant:null,ariaRequired:Ti,ariaRoleDescription:Ri,ariaRowCount:Pi,ariaRowIndex:Pi,ariaRowSpan:Pi,ariaSelected:Ti,ariaSetSize:Pi,ariaSort:null,ariaValueMax:Pi,ariaValueMin:Pi,ariaValueNow:Pi,ariaValueText:null,role:null}}),Zi=qi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Wi,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ii,acceptCharset:Ri,accessKey:Ri,action:null,allow:null,allowFullScreen:ji,allowPaymentRequest:ji,allowUserMedia:ji,alt:null,as:null,async:ji,autoCapitalize:null,autoComplete:Ri,autoFocus:ji,autoPlay:ji,capture:ji,charSet:null,checked:ji,cite:null,className:Ri,cols:Pi,colSpan:null,content:null,contentEditable:Ti,controls:ji,controlsList:Ri,coords:Pi|Ii,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ji,defer:ji,dir:null,dirName:null,disabled:ji,download:Fi,draggable:Ti,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ji,formTarget:null,headers:Ri,height:Pi,hidden:ji,high:Pi,href:null,hrefLang:null,htmlFor:Ri,httpEquiv:Ri,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:ji,itemId:null,itemProp:Ri,itemRef:Ri,itemScope:ji,itemType:Ri,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ji,low:Pi,manifest:null,max:null,maxLength:Pi,media:null,method:null,min:null,minLength:Pi,multiple:ji,muted:ji,name:null,nonce:null,noModule:ji,noValidate:ji,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:ji,optimum:Pi,pattern:null,ping:Ri,placeholder:null,playsInline:ji,poster:null,preload:null,readOnly:ji,referrerPolicy:null,rel:Ri,required:ji,reversed:ji,rows:Pi,rowSpan:Pi,sandbox:Ri,scope:null,scoped:ji,seamless:ji,selected:ji,shape:null,size:Pi,sizes:null,slot:null,span:Pi,spellCheck:Ti,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Pi,step:null,style:null,tabIndex:Pi,target:null,title:null,translate:null,type:null,typeMustMatch:ji,useMap:null,value:Ti,width:Pi,wrap:null,align:null,aLink:null,archive:Ri,axis:null,background:null,bgColor:null,border:Pi,borderColor:null,bottomMargin:Pi,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ji,declare:ji,event:null,face:null,frame:null,frameBorder:null,hSpace:Pi,leftMargin:Pi,link:null,longDesc:null,lowSrc:null,marginHeight:Pi,marginWidth:Pi,noResize:ji,noHref:ji,noShade:ji,noWrap:ji,object:null,profile:null,prompt:null,rev:null,rightMargin:Pi,rules:null,scheme:null,scrolling:Ti,standby:null,summary:null,text:null,topMargin:Pi,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Pi,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ji,disableRemotePlayback:ji,prefix:null,property:null,results:Pi,security:null,unselectable:null}}),Xi=qi({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:$i,properties:{about:Di,accentHeight:Pi,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Pi,amplitude:Pi,arabicForm:null,ascent:Pi,attributeName:null,attributeType:null,azimuth:Pi,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Pi,by:null,calcMode:null,capHeight:Pi,className:Ri,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:Pi,diffuseConstant:Pi,direction:null,display:null,dur:null,divisor:Pi,dominantBaseline:null,download:ji,dx:null,dy:null,edgeMode:null,editable:null,elevation:Pi,enableBackground:null,end:null,event:null,exponent:Pi,externalResourcesRequired:null,fill:null,fillOpacity:Pi,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:Ii,g2:Ii,glyphName:Ii,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Pi,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Pi,horizOriginX:Pi,horizOriginY:Pi,id:null,ideographic:Pi,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Pi,k:Pi,k1:Pi,k2:Pi,k3:Pi,k4:Pi,kernelMatrix:Di,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Pi,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:Pi,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:Pi,overlineThickness:Pi,paintOrder:null,panose1:null,path:null,pathLength:Pi,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ri,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Pi,pointsAtY:Pi,pointsAtZ:Pi,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Di,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Di,rev:Di,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Di,requiredFeatures:Di,requiredFonts:Di,requiredFormats:Di,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:Pi,specularExponent:Pi,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Pi,strikethroughThickness:Pi,string:null,stroke:null,strokeDashArray:Di,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Pi,strokeOpacity:Pi,strokeWidth:null,style:null,surfaceScale:Pi,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Di,tabIndex:Pi,tableValues:null,target:null,targetX:Pi,targetY:Pi,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Di,to:null,transform:null,u1:null,u2:null,underlinePosition:Pi,underlineThickness:Pi,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Pi,values:null,vAlphabetic:Pi,vMathematical:Pi,vectorEffect:null,vHanging:Pi,vIdeographic:Pi,version:null,vertAdvY:Pi,vertOriginX:Pi,vertOriginY:Pi,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Pi,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Yi=/^data[-\w.:]+$/i,Qi=/-[a-z]/g,Ji=/[A-Z]/g;function eo(e){return"-"+e.toLowerCase()}function no(e){return e.charAt(1).toUpperCase()}const to={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"},ro=Oi([Hi,Ui,Gi,Ki,Zi],"html"),io=Oi([Hi,Ui,Gi,Ki,Xi],"svg");function oo(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=>{ni(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 bn=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 ao=Symbol.for("react.element"),lo=Symbol.for("react.portal"),uo=Symbol.for("react.fragment"),co=Symbol.for("react.strict_mode"),so=Symbol.for("react.profiler"),fo=Symbol.for("react.provider"),po=Symbol.for("react.context"),ho=Symbol.for("react.server_context"),go=Symbol.for("react.forward_ref"),mo=Symbol.for("react.suspense"),vo=Symbol.for("react.suspense_list"),yo=Symbol.for("react.memo"),bo=Symbol.for("react.lazy"),xo=Symbol.for("react.offscreen"),ko=Symbol.for("react.module.reference");function wo(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case ao:switch(e=e.type){case uo:case so:case co:case mo:case vo:return e;default:switch(e=e&&e.$$typeof){case ho:case po:case go:case bo:case yo:case fo:return e;default:return n}}case lo:return n}}}var Eo={ContextConsumer:po,ContextProvider:fo,Element:ao,ForwardRef:go,Fragment:uo,Lazy:bo,Memo:yo,Portal:lo,Profiler:so,StrictMode:co,Suspense:mo,SuspenseList:vo,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return wo(e)===po},isContextProvider:function(e){return wo(e)===fo},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ao},isForwardRef:function(e){return wo(e)===go},isFragment:function(e){return wo(e)===uo},isLazy:function(e){return wo(e)===bo},isMemo:function(e){return wo(e)===yo},isPortal:function(e){return wo(e)===lo},isProfiler:function(e){return wo(e)===so},isStrictMode:function(e){return wo(e)===co},isSuspense:function(e){return wo(e)===mo},isSuspenseList:function(e){return wo(e)===vo},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===uo||e===so||e===co||e===mo||e===vo||e===xo||"object"==typeof e&&null!==e&&(e.$$typeof===bo||e.$$typeof===yo||e.$$typeof===fo||e.$$typeof===po||e.$$typeof===go||e.$$typeof===ko||void 0!==e.getModuleId)},typeOf:wo},_o=Ie((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,O=o,S=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=O,n.StrictMode=S,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}()})),Oo=Ie((function(e){"production"===process.env.NODE_ENV?e.exports=Eo:e.exports=_o}));var So=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Co=/\n/g,Ao=/^\s*/,jo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,To=/^:\s*/,Po=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ro=/^[;\s]*/,Fo=/^\s+|\s+$/g,Io="";function Do(e){return e?e.replace(Fo,Io):Io}var Lo=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(Co);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(Ao)}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;Io!=e.charAt(t)&&("*"!=e.charAt(t)||"/"!=e.charAt(t+1));)++t;if(t+=2,Io===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(jo);if(n){if(f(),!u(To))return l("property missing ':'");var t=u(Po),r=e({type:"declaration",property:Do(n[0].replace(So,Io)),value:t?Do(t[0].replace(So,Io)):Io});return u(Ro),r}}return a.prototype.content=e,c(),function(){var e,n=[];for(s(n);e=p();)!1!==e&&(n.push(e),s(n));return n}()}(e),l="function"==typeof n,u=0,c=a.length;u<c;u++)i=(t=a[u]).property,o=t.value,l?n(i,o,t):o&&(r||(r={}),r[i]=o);return r};const zo={}.hasOwnProperty,Mo=new Set(["table","thead","tbody","tfoot","tr"]);function No(e,n){const t=[];let r,i=-1;for(;++i<n.children.length;)r=n.children[i],"element"===r.type?t.push(Bo(e,r,i,n)):"text"===r.type?"element"===n.type&&Mo.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 Bo(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=io,e.schema=s),n.properties)for(c in n.properties)zo.call(n.properties,c)&&Vo(u,c,n.properties[c],e);"ol"!==l&&"ul"!==l||e.listDepth++;const f=No(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&&zo.call(i.components,l)?i.components[l]:l,h="string"==typeof d||d===o.Fragment;if(!Oo.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=qo(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=qo(r,n),u.siblingCount=qo(r)),h||(u.node=n),f.length>0?o.createElement(d,u,f):o.createElement(d,u)}function qo(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 Vo(e,n,t,r){const i=function(e,n){const t=Si(n);let r=n,i=Ci;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&Yi.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Qi,no);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Qi.test(e)){let t=e.replace(Ji,eo);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}i=Ni}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{Lo(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,Uo)]=t}}(o)),i.space&&i.property?e[zo.call(to,i.property)?to[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function Uo(e,n){return n.toUpperCase()}const Ho={}.hasOwnProperty,$o={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 Wo(e){for(const n in $o)if(Ho.call($o,n)&&Ho.call(e,n)){const e=$o[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 $o[n]}const n=Gn().use(Hr).use(e.remarkPlugins||[]).use(Ei,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(oo,e),t=new Pn;"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,{},No({options:e,schema:ro,listDepth:0},r));return e.className&&(i=o.createElement("div",{className:e.className},i)),i}Wo.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<yn.length;){const e=yn[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)")}},Wo.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 Go={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||yt(e)?t(e):n(e)}},partial:!0},Ko={tokenize:function(e,n,t){let r,i;return o;function o(n){return 38===n?e.check(Yo,l,a)(n):46===n||95===n?e.check(Xo,l,a)(n):null===n||mt(n)||xt(n)||45!==n&&kt(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(Yo,n,i)(a):(40===a&&t++,41===a?e.check(Xo,o,i)(a):oa(a)?n(a):ia(a)?e.check(Xo,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},Xo={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(i){return ia(i)?(e.consume(i),r):oa(i)?n(i):t(i)}},partial:!0},Yo={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(n){return st(n)?(e.consume(n),r):59===n?(e.consume(n),i):t(n)}function i(e){return oa(e)?n(e):t(e)}},partial:!0},Qo={tokenize:function(e,n,t){const r=this;return function(n){if(87!==n&&119!==n||!la(r.previous)||sa(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Go,e.attempt(Ko,e.attempt(Zo,i),t),t)(n)};function i(t){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(t)}},previous:la},Jo={tokenize:function(e,n,t){const r=this;return function(n){if(72!==n&&104!==n||!ua(r.previous)||sa(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||mt(n)||xt(n)||kt(n)?t(n):e.attempt(Ko,e.attempt(Zo,p),t)(n)}function p(t){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(t)}},previous:ua},ea={tokenize:function(e,n,t){const r=this;let i,o;return function(n){if(!aa(n)||!ca(r.previous)||sa(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(n)};function a(n){return aa(n)?(e.consume(n),a):64===n?(e.consume(n),l):t(n)}function l(n){return 46===n?e.check(Xo,f,u)(n):45===n||95===n?e.check(Xo,t,c)(n):dt(n)?(!o&&ft(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(Xo,t,u)(n):l(n)}function f(r){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(r)):t(r)}},previous:ca},na={},ta={text:na};let ra=48;for(;ra<123;)na[ra]=ea,ra++,58===ra?ra=65:91===ra&&(ra=97);function ia(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 oa(e){return null===e||60===e||vt(e)}function aa(e){return 43===e||45===e||46===e||95===e||dt(e)}function la(e){return null===e||40===e||42===e||95===e||126===e||vt(e)}function ua(e){return null===e||!st(e)}function ca(e){return 47!==e&&ua(e)}function sa(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}na[43]=ea,na[45]=ea,na[46]=ea,na[95]=ea,na[72]=[ea,Jo],na[104]=[ea,Jo],na[87]=[ea,Qo],na[119]=[ea,Qo];const fa={tokenize:function(e,n,t){const r=this;return Et(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 pa(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=Xt(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 da(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 ha(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(Xt(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),vt(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 ga(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=Xt(r.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):t(n):yt(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||yt(n)||91===n||93===n||l>999?(e.exit("chunkString"),c(n)):(vt(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"),Et(e,d,"gfmFootnoteDefinitionWhitespace")):t(n)}function d(e){return i.includes(o)||i.push(o),n(e)}}function ma(e,n,t){return e.check(Rt,n,e.attempt(fa,n,t))}function va(e){e.exit("gfmFootnoteDefinition")}function ya(e){return null===e||vt(e)||xt(e)?1:kt(e)?2:void 0}function ba(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=ya(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=ya(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]];it(a,a.length,0,At(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),it(a,a.length,0,[["exit",o,n],["enter",e[t][1],n],["exit",e[t][1],n],["exit",i,n]]),it(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 xa={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||yt(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):bt(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 bt(n)?(e.consume(n),s):(e.exit("whitespace"),c(n))}function f(n){return null===n||124===n||vt(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||yt(n)?y(n):bt(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 bt(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||yt(n)?y(n):bt(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(ka,b,e.attempt({tokenize:A,partial:!0},Et(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"),O(n))}function w(n){return e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),E}function E(n){return null===n||yt(n)?function(n){if(e.exit("tableRow"),null===n)return C(n);return e.check(ka,C,e.attempt({tokenize:A,partial:!0},Et(e,k,"linePrefix",4),C))(n)}(n):bt(n)?(e.enter("whitespace"),e.consume(n),_):124===n?w(n):(e.enter("temporaryTableCellContent"),O(n))}function _(n){return bt(n)?(e.consume(n),_):(e.exit("whitespace"),E(n))}function O(n){return null===n||124===n||vt(n)?(e.exit("temporaryTableCellContent"),E(n)):(e.consume(n),92===n?S:O)}function S(n){return 92===n||124===n?(e.consume(n),O):O(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"),Et(e,i,"linePrefix")};function i(i){if(r.parser.lazy[r.now().line]||null===i||yt(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}}}},ka={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||vt(o)?n(o):t(o)}},partial:!0};const wa={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 vt(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:_a},n,t)):t(r)}}},Ea={text:{91:wa}};function _a(e,n,t){const r=this;return Et(e,(function(e){const i=r.events[r.events.length-1];return(i&&"whitespace"===i[1].type||yt(e))&&null!==e?n(e):t(e)}),"whitespace")}function Oa(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 Sa={}.hasOwnProperty,Ca=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=Yr(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([Aa(e[t][0]),ja(e[t][1])])}else{let t;for(t in e)Sa.call(e,t)&&n.push([Aa(t),ja(e[t])])}return n}(o);let u=-1;for(;++u<l.length;)oi(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 Aa(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 ja(e){return"function"==typeof e?e:()=>e}const Ta="phrasing",Pa=["autolink","link","image","label"],Ra={transforms:[function(e){Ca(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Da],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,La]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:Ia,literalAutolinkHttp:Ia,literalAutolinkWww:Ia},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)}}},Fa={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ta,notInConstruct:Pa},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ta,notInConstruct:Pa},{character:":",before:"[ps]",after:"\\/",inConstruct:Ta,notInConstruct:Pa}]};function Ia(e){this.config.enter.autolinkProtocol.call(this,e)}function Da(e,n,t,r,i){let o="";if(!za(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=Oa(e,"("),i=Oa(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 La(e,n,t,r){return!(!za(r,!0)||/[_-\d]$/.test(t))&&{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function za(e,n){const t=e.input.charCodeAt(e.index-1);return(0===e.index||xt(t)||kt(t))&&(!n||47!==t)}function Ma(e){return e.label||!e.identifier?e.label||"":zr(e.identifier)}function Na(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 Ba(e,n,t){const r=n.indexStack,i=e.children||[],o=Na(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 qa=/\r?\n|\r/g;function Va(e,n){const t=[];let r,i=0,o=0;for(;r=qa.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 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){return $a(e,n.inConstruct,!0)&&!$a(e,n.notInConstruct,!1)}function $a(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 Wa(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(!Ha(e.stack,n))continue;const t=Ua(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(Ga);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(Ka(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(Ka(r.slice(u,c),t.after)),o.join("")}function Ga(e,n){return e-n}function Ka(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=Na(r);let o=i.move("[^");const a=t.enter("footnoteDefinition"),l=t.enter("label");return o+=i.move(Wa(t,Ma(e),{...i.current(),before:o,after:"]"})),l(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(Va(Ba(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=Na(r);let o=i.move("[^");const a=t.enter("footnoteReference"),l=t.enter("reference");return o+=i.move(Wa(t,Ma(e),{...i.current(),before:o,after:"]"})),l(),a(),o+=i.move("]"),o}}function Xa(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 Ya={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Qa={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Ja}};function Ja(e,n,t,r){const i=Xa(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=Xa(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=Xa(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 el(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 nl(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 tl(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=nl(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 rl(e){return e.length}function il(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}Ja.peek=function(){return"~"},tl.peek=function(){return"`"};const ol={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:ll,tableHeader:ll,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let n=this.resume();this.getData("inTable")&&(n=n.replace(/\\([\\|])/g,ul));this.stack[this.stack.length-1].value=n,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:al,tableHeader:al,tableRow:al}};function al(e){this.exit(e)}function ll(e){this.enter({type:"tableCell",children:[]},e)}function ul(e,n){return"|"===n?n:e}function cl(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=tl(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=el(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=el(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||rl,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]=il(t[f]);else{const e=il(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 sl(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 fl=/\r?\n|\r/g;function pl(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=sl(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=fl.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=sl(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 dl={exit:{taskListCheckValueChecked:gl,taskListCheckValueUnchecked:gl,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)}}},hl={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=sl(r);o&&l.move(a);let u=pl(e,n,t,{...r,...l.current()});o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return u}}};function gl(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function ml(e={}){const n=this.data();function t(e,t){(n[e]?n[e]:n[e]=[]).push(t)}t("micromarkExtensions",function(e){return lt([ta,{document:{91:{tokenize:ga,continuation:{tokenize:ma},exit:va}},text:{91:{tokenize:ha},93:{add:"after",tokenize:pa,resolveTo:da}}},ba(e),xa,Ea])}(e)),t("fromMarkdownExtensions",[Ra,{enter:{gfmFootnoteDefinition:function(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)},gfmFootnoteDefinitionLabelString:function(){this.buffer()},gfmFootnoteCall:function(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)},gfmFootnoteCallString:function(){this.buffer()}},exit:{gfmFootnoteDefinition:function(e){this.exit(e)},gfmFootnoteDefinitionLabelString:function(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=Xt(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=Xt(this.sliceSerialize(e)).toLowerCase()}}},Ya,ol,dl]),t("toMarkdownExtensions",function(e){return{extensions:[Fa,Za(),Qa,cl(e),hl]}}(e))}var vl={exports:{}};function yl(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)||yl(t)})),e}vl.exports=yl,vl.exports.default=yl;var bl=vl.exports;class xl{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function kl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function wl(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 El=e=>!!e.kind;class _l{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=kl(e)}openNode(e){if(!El(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){El(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class Ol{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=>{Ol._collapse(e)})))}}class Sl extends Ol{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 _l(this,this.options).value()}finalize(){return!0}}function Cl(e){return e?"string"==typeof e?e:e.source:null}function Al(e){return Pl("(?=",e,")")}function jl(e){return Pl("(?:",e,")*")}function Tl(e){return Pl("(?:",e,")?")}function Pl(...e){return e.map((e=>Cl(e))).join("")}function Rl(...e){const n=function(e){const n=e[e.length-1];return"object"==typeof n&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}(e);return"("+(n.capture?"":"?:")+e.map((e=>Cl(e))).join("|")+")"}function Fl(e){return new RegExp(e.toString()+"|").exec("").length-1}const Il=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Dl(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t;let r=Cl(e),i="";for(;r.length>0;){const e=Il.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 Ll="[a-zA-Z]\\w*",zl="[a-zA-Z_]\\w*",Ml="\\b\\d+(\\.\\d+)?",Nl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Bl="\\b(0b[01]+)",ql={begin:"\\\\[\\s\\S]",relevance:0},Vl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ql]},Ul={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ql]},Hl=function(e,n,t={}){const r=wl({scope:"comment",begin:e,end:n,contains:[]},t);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Rl("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Pl(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},$l=Hl("//","$"),Wl=Hl("/\\*","\\*/"),Gl=Hl("#","$"),Kl={scope:"number",begin:Ml,relevance:0},Zl={scope:"number",begin:Nl,relevance:0},Xl={scope:"number",begin:Bl,relevance:0},Yl={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[ql,{begin:/\[/,end:/\]/,relevance:0,contains:[ql]}]}]},Ql={scope:"title",begin:Ll,relevance:0},Jl={scope:"title",begin:zl,relevance:0},eu={begin:"\\.\\s*"+zl,relevance:0};var nu=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:Ll,UNDERSCORE_IDENT_RE:zl,NUMBER_RE:Ml,C_NUMBER_RE:Nl,BINARY_NUMBER_RE:Bl,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=Pl(n,/.*\b/,e.binary,/\b.*/)),wl({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:ql,APOS_STRING_MODE:Vl,QUOTE_STRING_MODE:Ul,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:Hl,C_LINE_COMMENT_MODE:$l,C_BLOCK_COMMENT_MODE:Wl,HASH_COMMENT_MODE:Gl,NUMBER_MODE:Kl,C_NUMBER_MODE:Zl,BINARY_NUMBER_MODE:Xl,REGEXP_MODE:Yl,TITLE_MODE:Ql,UNDERSCORE_TITLE_MODE:Jl,METHOD_GUARD:eu,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 tu(e,n){"."===e.input[e.index-1]&&n.ignoreMatch()}function ru(e,n){void 0!==e.className&&(e.scope=e.className,delete e.className)}function iu(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=tu,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function ou(e,n){Array.isArray(e.illegal)&&(e.illegal=Rl(...e.illegal))}function au(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 lu(e,n){void 0===e.relevance&&(e.relevance=1)}const uu=(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=Pl(t.beforeMatch,Al(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},cu=["of","and","for","in","not","or","if","then","parent","list","value"],su="keyword";function fu(e,n,t=su){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,fu(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,pu(t[0],t[1])]}))}}function pu(e,n){return n?Number(n):function(e){return cu.includes(e.toLowerCase())}(e)?0:1}const du={},hu=e=>{console.error(e)},gu=(e,...n)=>{console.log(`WARN: ${e}`,...n)},mu=(e,n)=>{du[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),du[`${e}/${n}`]=!0)},vu=new Error;function yu(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+=Fl(n[e-1]);e[t]=a,e[t]._emit=o,e[t]._multi=!0}function bu(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 hu("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),vu;if("object"!=typeof e.beginScope||null===e.beginScope)throw hu("beginScope must be object"),vu;yu(e,e.begin,{key:"beginScope"}),e.begin=Dl(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw hu("skip, excludeEnd, returnEnd not compatible with endScope: {}"),vu;if("object"!=typeof e.endScope||null===e.endScope)throw hu("endScope must be object"),vu;yu(e,e.end,{key:"endScope"}),e.end=Dl(e.end,{joinWith:""})}}(e)}function xu(e){function n(n,t){return new RegExp(Cl(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+=Fl(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=n(Dl(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=wl(e.classNameAliases||{}),function t(i,o){const a=i;if(i.isCompiled)return a;[ru,au,bu,uu].forEach((e=>e(i,o))),e.compilerExtensions.forEach((e=>e(i,o))),i.__beforeBegin=null,[iu,ou,lu].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=fu(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=Cl(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 wl(e,{variants:null},n)})));if(e.cachedVariants)return e.cachedVariants;if(ku(e))return wl(e,{starts:e.starts?wl(e.starts):null});if(Object.isFrozen(e))return wl(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 ku(e){return!!e&&(e.endsWithParent||ku(e.starts))}class wu extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Eu=kl,_u=wl,Ou=Symbol("nomatch");var Su=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:Sl};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):(mu("10.7.0","highlight(lang, code, ...args) has been deprecated."),mu("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 S.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(S.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;S.addKeyword(n[0],t)}}else t+=n[0];e=_.keywordPatternRe.lastIndex,n=_.keywordPatternRe.exec(C)}var r;t+=C.substr(e),S.addText(t)}function p(){null!=_.subLanguage?function(){if(""===C)return;let e=null;if("string"==typeof _.subLanguage){if(!n[_.subLanguage])return void S.addText(C);e=s(_.subLanguage,C,!0,O[_.subLanguage]),O[_.subLanguage]=e._top}else e=f(C,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(A+=e.relevance),S.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?S.addKeyword(i,r):(C=i,c(),C=""),t++}}function h(e,n){return e.scope&&"string"==typeof e.scope&&S.openNode(k.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(S.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 xl(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 Ou;const o=_;_.endScope&&_.endScope._wrap?(p(),S.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&&S.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 xl(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!==Ou)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 hu(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=xu(k);let E="",_=a||w;const O={},S=new l.__emitter(l);!function(){const e=[];for(let n=_;n!==k;n=n.parent)n.scope&&e.unshift(n.scope);e.forEach((e=>S.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)),S.closeAllNodes(),S.finalize(),E=S.toHTML(),{language:e,value:E,relevance:A,illegal:!1,_emitter:S,_top:_}}catch(n){if(n.message&&n.message.includes("Illegal"))return{language:e,value:Eu(t),illegal:!0,relevance:0,_illegalBy:{message:n.message,index:j,context:t.slice(j-100,j+100),mode:n.mode,resultSoFar:E},_emitter:S};if(i)return{language:e,value:Eu(t),illegal:!1,relevance:0,errorRaised:n,_emitter:S,_top:_};throw n}}function f(e,t){t=t||l.languages||Object.keys(n);const r=function(e){const n={value:Eu(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||(gu(o.replace("{}",t[1])),gu("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 wu("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 mu("10.7.0","highlightBlock will be removed entirely in v12.0"),mu("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){l=_u(l,e)},initHighlighting:()=>{h(),mu("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){h(),mu("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,r){let o=null;try{o=r(e)}catch(e){if(hu("Language definition for '{}' could not be registered.".replace("{}",t)),!i)throw e;hu(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:_u,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:Pl,lookahead:Al,either:Rl,optional:Tl,anyNumberOfTimes:jl};for(const e in nu)"object"==typeof nu[e]&&bl(nu[e]);return Object.assign(e,nu),e}({}),Cu=Su;Su.HighlightJS=Su,Su.default=Su;var Au=Cu,ju=Ie((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 Tu=Object.assign(Pu(Error),{eval:Pu(EvalError),range:Pu(RangeError),reference:Pu(ReferenceError),syntax:Pu(SyntaxError),type:Pu(TypeError),uri:Pu(URIError)});function Pu(e){return n.displayName=e.displayName||e.name,n;function n(n,...t){const r=n?ju(n,...t):n;return new e(r)}}const Ru={}.hasOwnProperty,Fu="hljs-";function Iu(e,n,t={}){let r=t.prefix;if("string"!=typeof e)throw Tu("Expected `string` for name, got `%s`",e);if(!Au.getLanguage(e))throw Tu("Unknown language: `%s` is not registered",e);if("string"!=typeof n)throw Tu("Expected `string` for value, got `%s`",n);null==r&&(r=Fu),Au.configure({__emitter:Du,classPrefix:r});const i=Au.highlight(n,{language:e,ignoreIllegals:!0});if(Au.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 Du{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 Lu={highlight:Iu,highlightAuto:function(e,n={}){const t=n.subset||Au.listLanguages();n.prefix;let r=-1,i={type:"root",data:{language:null,relevance:0},children:[]};if("string"!=typeof e)throw Tu("Expected `string` for value, got `%s`",e);for(;++r<t.length;){const o=t[r];if(!Au.getLanguage(o))continue;const a=Iu(o,e,n);a.data.relevance>i.data.relevance&&(i=a)}return i},registerLanguage:function(e,n){Au.registerLanguage(e,n)},registered:function(e){return Boolean(Au.getLanguage(e))},listLanguages:function(){return Au.listLanguages()},registerAlias:function(e,n){if("string"==typeof e)Au.registerAliases(n,{languageName:e});else{let n;for(n in e)Ru.call(e,n)&&Au.registerAliases(e[n],{languageName:n})}}},zu=function(e){if(null==e)return Nu;if("string"==typeof e)return function(e){return n;function n(n){return Nu(n)&&n.tagName===e}}(e);if("object"==typeof e)return function(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=zu(e[t]);return Mu(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 Mu(e);throw new Error("Expected function, string, or array as test")};function Mu(e){return function(n,...t){return Nu(n)&&Boolean(e.call(this,n,...t))}}function Nu(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}var Bu=function(e,n,t){var r=Yr(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 qu=/\n/g,Vu=/[\t ]+/g,Uu=zu("br"),Hu=zu("p"),$u=zu(["th","td"]),Wu=zu("tr"),Gu=zu(["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}]),Ku=zu(["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=Ku(e),i=ec(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1});let o,a,l,u=-1;if("text"===e.type||"comment"===e.type)return Yu(e,{whitespace:i,breakBefore:!0,breakAfter:!0});for(o=[];++u<t.length;)o=o.concat(Xu(t[u],e,{whitespace:i,breakBefore:u?null:r,breakAfter:u<t.length-1?Uu(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 Xu(e,n,t){return"element"===e.type?function(e,n,t){const r=ec(e,t),i=e.children||[];let o,a,l=-1,u=[];if(Gu(e))return u;Uu(e)||Wu(e)&&Bu(n,e,Wu)?a="\n":Hu(e)?(o=2,a=2):Ku(e)&&(o=1,a=1);for(;++l<i.length;)u=u.concat(Xu(i[l],e,{whitespace:r,breakBefore:l?void 0:o,breakAfter:l<i.length-1?Uu(i[l+1]):a}));$u(e)&&Bu(n,e,$u)&&u.push("\t");o&&u.unshift(o);a&&u.push(a);return u}(e,n,t):"text"===e.type?["normal"===t.whitespace?Yu(e,t):Qu(e)]:[]}function Yu(e,n){const t=String(e.value),r=[],i=[];let o,a,l,u=0,c=-1;for(;u<t.length;)qu.lastIndex=u,o=qu.exec(t),a=o?o.index:t.length,r.push(Ju(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 Qu(e){return String(e.value)}function Ju(e,n,t){const r=[];let i,o,a=0;for(;a<e.length;)Vu.lastIndex=a,i=Vu.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 ec(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 nc={}.hasOwnProperty;function tc(e={}){const{aliases:n,languages:t,prefix:r,plainText:i,ignoreMissing:o,subset:a}=e;let l="hljs";if(n&&Lu.registerAlias(n),t){let e;for(e in t)nc.call(t,e)&&Lu.registerLanguage(e,t[e])}if(r){const e=r.indexOf("-");l=e>-1?r.slice(0,e):r}return e=>{ni(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?Lu.highlight(c,Zu(u),{prefix:r}):Lu.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 rc=function(e){var n=e.content;return o.createElement(Wo,{remarkPlugins:[ml],rehypePlugins:[tc]},n)};rc.propTypes={content:m.string};var ic=function(e){var n=e.value,t=e.step;return o.createElement(vn,{value:$e(n,t)})};ic.propTypes={value:m.oneOfType([m.number,m.string]),step:m.oneOfType([m.number,m.string])};var oc=function(e){var n,t=e.value,r=e.options;return o.createElement(vn,{value:null===(n=r.find((function(e){return e.value===t})))||void 0===n?void 0:n.label})};oc.propTypes={value:m.string,options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})).isRequired};var ac=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},lc=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(O,{label:l,labelPlacement:u||"end",disabled:!0,control:o.createElement(F,{size:t,name:r,checked:ac(i,a)})}):o.createElement(O,{label:l,labelPlacement:u||"end",disabled:!0,control:o.createElement(I,{size:t,name:r,checked:ac(i,a)})})};lc.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 uc=X((function(){return{formRepeater:{padding:0,margin:0}}})),cc=function(e,n){return n&&void 0!==n[e]?n[e]:e},sc=function(e){var n=e.value,t=e.options,r=uc();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:cc(e,t),style:{margin:0}}))})))};sc.propTypes={value:m.arrayOf(m.oneOfType([m.string,m.number])),options:m.shape({})};var fc=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.")))};fc.propTypes={subject:m.string,label:m.string.isRequired};var pc=function(){var n=Oe(),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)}})},dc={default:He,string:He,text:He,number:Ge,select:en,boolean:tn,array:ln,readOnlyDefault:vn,readOnlyString:vn,readOnlyText:vn,readOnlyMarkdown:rc,readOnlyNumber:ic,readOnlySelect:oc,readOnlyBoolean:lc,readOnlyArray:sc,apDefault:U,apString:U,apNumber:Ge,apSelect:en,apBoolean:tn,field:Ve,readOnlyField:gn,sectionCard:Te,sectionBlock:Re,hiddenData:fc,reservationExpiredNotification:pc},hc=(0).constructor,gc=hc.isFinite;hc.isInteger;var mc=[].constructor.isArray;function vc(e){return null!==e&&"object"==typeof e}function yc(e,n){return void 0===n&&(n=0),"string"==typeof e&&e.length>=n}function bc(e){return gc(e)}function xc(e){return mc(e)}function kc(e,n){return vc(e)&&n in e}var wc="'\"`",Ec=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 _c(e){var n=e.charAt(0),t=e.substr(-1);if(wc.includes(n)||wc.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 Oc(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 Sc(e){if(!yc(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++,Oc(o,e.substring(a,n),i),o.push(_c(t)),i=!0}return Oc(o,e.substring(r),i)}function Cc(e,n,t){if(void 0===t&&(t={}),!vc(t))throw new TypeError("get expects an object option. Got "+typeof t);var r=t.depth,i=void 0===r?10:r;if(!bc(i)||i<=0)throw new RangeError("Expected a positive number for depth. Got "+i);var o=Array.isArray(n)?n:Sc.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(!kc(l,s)){if(t.propsExist)throw new ReferenceError(s+' is not defined in the scope at path: "'+a()+'"');return}l=l[s]}return l}Sc.cached=function(e){var n=Ec.get(e);return void 0===n&&(n=Sc(e),Ec.set(e,n)),n};var Ac=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]=Cc(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)}))},!vc(e)||!xc(e.strings)||!xc(e.varNames)||e.strings.length!==e.varNames.length+1)throw new TypeError("Invalid tokens object");if(!vc(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]=Sc.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 jc(e,n){void 0===n&&(n={});var t=function(e,n){if(void 0===n&&(n={}),!yc(e))throw new TypeError("The template parameter must be a string. Got a "+typeof e);if(!vc(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(!xc(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(!yc(a,1)||!yc(l,1)||a===l)throw new TypeError('The open and close symbols should be two distinct non-empty strings. Got "'+a+'" and "'+l+'"');if(!bc(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 Ac(t,n)}function Tc(e,n,t){return jc(e,t).render(n)}var Pc=f(!1),Rc=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 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 Ic(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}function Dc(e){var n=function(e,n){if("object"!==he(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===he(n)?n:String(n)}var Lc=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=Oe(),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)}),[]),O=function(){var e={};return E.current.fieldNames.forEach((function(n){e[n]=void 0})),e},S=p(r(i.mark((function e(){var n,t,r,a,l,u,c,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=Y(l,[o].map(Dc)),m.setState({reservations:u}),E.current.setFieldValues(O()),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,Rc(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=Y(i,[o].map(Dc));if(m.setState({reservations:Ic(Ic({},a),{},t({},o,Ic(Ic({},n),{},{remaining:0,status:"expired"}))),expiredNotification:{reservationId:o,label:E.current.label||o}}),E.current.setFieldValues(O()),n.releaseUrl){var l=E.current,u=l.fetchAdapter,c=l.token;u?u("DELETE",n.releaseUrl).catch((function(){})):Rc(n.releaseUrl,{method:"DELETE",token:c}).catch((function(){}))}setTimeout((function(){var e=m.getState().reservations,n=e[o],t=Y(e,[o].map(Dc));n&&"expired"===n.status&&m.setState({reservations:t})}),100)}else m.setState({reservations:Ic(Ic({},e.reservations),{},t({},o,Ic(Ic({},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,S();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,Rc(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:Ic(Ic({},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,S,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(){})):Rc(n.releaseUrl,{method:"DELETE",token:i}).catch((function(){}));var a=e.reservations;a[o];var l=Y(a,[o].map(Dc));m.setState({reservations:l})}}}),[m,o,_]),{loading:b,generate:A,release:S}},zc=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"),_=we().setFieldValues,O=Oe(),S=Lc({reservationId:n,url:s,token:f,label:r||n,fieldNames:[n],setFieldValues:_}),C=S.generate,A=S.release,j=S.loading,T=be(O,(function(e){return e.reservations[n]})),R=T&&"active"===T.status,F=l();u((function(){R&&w&&(F.current=T.fields[n])}),[R,w,T,n]);var I={};return R&&!w&&(I.disabled=!0),R&&w&&(I.onChange=function(e){R&&w&&e.target.value!==F.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}}},R&&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)),!R&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!R&&!j&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(re,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),R&&!j&&o.createElement(D,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(ie,null),disabled:i,onClick:A},E)))};zc.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 Mc=["message","options","validator"];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}var Bc=function(e,n){return e&&e.errors?e.errors.map((function(e){var r=e.message,i=e.options,o=e.validator,a=Y(e,Mc),l=r;return i&&i.human?l=i.human:n[o]&&(l=Tc(n[o],i)),function(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}({message:l,options:i,validator:o},a)})):[]},qc=o.memo((function(e){var n,t=e.adornmentEntry,r=e.mainFieldName,i=e.position,o=e.inputVariant,a=ke(),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=be(l,(function(e){return e.preSubmitValidation})),v=be(l,(function(e){return e.data[g]})),y=be(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:Bc(y,s),label:(null==c||null===(n=c.labels)||void 0===n?void 0:n[g])||g})})),Vc=["message","options","validator"],Uc=["hidden","hideLabel","autoGenerate"];function Hc(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 $c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Hc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Wc=function(e){var n,r,i,a=e.fieldEntry,l=e.allFields,u=ke(),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,O=u.handleBlur,S=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)),R=c(Pc),F=be(s,(function(e){return e.data[A]})),I=be(s,(function(e){var n;return null===(n=e.results)||void 0===n?void 0:n[A]})),D=be(s,(function(e){var n;return null===(n=e.fieldStates)||void 0===n?void 0:n[A]})),L=be(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=Y(M,Uc);if(!0===N)return!1;var U=L||C||R;if(!I)return!1;var H=I.prohibited,$=I.required,W=I.optional,G=I.hasErrors,K=I.data;if(!0===H||!$&&!W&&void 0===K)return!1;if(h&&(""===F||void 0===F))return!1;if(h&&Array.isArray(S)&&S.includes(A)){var Z,X=y.hiddenData,Q=!0!==B&&((null==p||null===(Z=p.labels)||void 0===Z?void 0:Z[A])||A);return o.createElement(X,{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),le=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 $c($c({},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}),ue=te||"default";Array.isArray(te)&&(ue="select"),T&&(ue="@@render");var ce=(null==b?void 0:b[ue])||{},se=(null==k?void 0:k[A])||{},fe=$c($c($c($c($c({size:m},ne),ce),se),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=Y(e,Vc),a=t;return r&&r.human?a=r.human:n[i]&&(a=Tc(n[i],r)),$c({message:a,options:r,validator:i},o)})):[]}(I,d);if(h){var he=y.readOnlyField,ge=Array.isArray(te)?"select":te||"string",me=ge.charAt(0).toUpperCase()+ge.slice(1),ve="readOnly".concat(me),ye=x[A]||y[ve]||y.readOnlyDefault;return o.createElement(he,pe({type:ge,name:A,label:ae,value:F,options:le,required:$,hasErrors:G,errors:de,size:m,component:ye,componentProps:fe},D))}var xe=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(qc,{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:ue,name:A,label:ae,defaultValue:re,value:F,options:le,required:$,hasErrors:G,errors:de,validating:null==D?void 0:D.validating,dirty:null==D?void 0:D.dirty,component:ee,componentProps:fe,prepend:xe.prepend,append:xe.append,disabled:U,onChange:E,onFocus:_,onBlur:O});return q?o.createElement(zc,{fieldName:A,config:q,label:ae,disabled:U,onChange:E},Ee):Ee},Gc=o.memo(Wc),Kc=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"),_=we().setFieldValues,O=ke().fetchAdapter,S=Oe(),C=Lc({reservationId:n,url:s,token:f,label:r||n,fieldNames:i,setFieldValues:_,fetchAdapter:O}),A=C.generate,j=C.release,T=C.loading,R=be(S,(function(e){return e.reservations[n]})),F=R&&"active"===R.status,I=l();u((function(){I.current=F?R.fields:void 0}),[F,R]);var L=o.useCallback((function(e){var n={};return i.forEach((function(t){n[t]=e.data[t]})),n}),[i]),z=Ee(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(F&&w&&I.current){var e=I.current;i.some((function(n){return z[n]!==e[n]}))&&j()}}),[F,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}}},F&&o.createElement(k,{variant:"caption",sx:function(e){return{color:R.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")}(R.remaining)),!F&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!F&&!T&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(re,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),F&&!T&&o.createElement(D,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(ie,null),disabled:a,onClick:j},E)),o.createElement(Pc.Provider,{value:F&&!w},c))};Kc.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)},Xc=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},Yc=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=ke(),g=h.variant,m=h.resolvedSlots,v=h.store,y=s((function(){return Xc(a)}),[a]);if(be(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:Re,x=a.map((function(n,t){return!1!==n&&(n&&"object"===he(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(Gc,{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(Kc,{groupId:t,config:l,label:r,fieldNames:Xc(a)},x),!l&&x)};Yc.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 Qc=o.memo(Yc),Jc=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&&ye(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=Tc(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 es(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 ns(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?es(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}Jc.propTypes={store:m.shape({getState:m.func.isRequired,subscribe:m.func.isRequired}).isRequired,errorMessages:m.shape({}).isRequired,translations:m.shape({}).isRequired};var ts=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)}}(),rs=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]&&ye(e[o],n[o])&&(t[o]=e[o])}return t},is=function(e){for(var n=Object.values(e),t=0;t<n.length;t++)if(n[t].dirty)return!0;return!1},os=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]:ye},as=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]):[]},ls=function(e,n,r,i){var o=function(e,n){return v(e,n)}(e,ns(ns({},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 ns(ns({},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 ns(ns({},e),n)}),{});return{preSubmitValidation:!1,hasErrors:a,isDirty:is(f),errors:l,results:u,data:p,asyncErrors:[],fieldStates:f}},us=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,O=a.renderSchema,S=a.data,C=a.transientData,A=a.fieldStates,j=a.disabled,T=a.translations,P=a.slots,R=a.slotProps,F=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 Ae(ls(_,S,C,A)));var Q=Y.current,J=l(null);null===J.current&&(J.current=new Ae({reservations:{},expiredNotification:void 0}));var ee=J.current,ne=l(S),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=rs(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)&&as(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(ns(ns({},l),{},{data:t,fieldStates:r,asyncErrors:[],preSubmitValidation:!1,isDirty:is(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(ns(ns({},l),{},{data:t,fieldStates:r,asyncErrors:o||[],preSubmitValidation:!1,isDirty:is(r)})),ie(ns(ns({},l),{},{asyncErrors:o||[]}),h),ae.current=void 0,e.abrupt("return");case 25:return g=ns({},r),d.forEach((function(e){var n=e.path;g[n]=ns(ns({},g[n]),{},{validating:!0})})),f.forEach((function(e){g[e]=ns(ns({},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]?ts(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=ns({},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=ns(ns({},l),{},{hasErrors:x.length>0,errors:x,asyncErrors:y,results:b}),w=Q.getState().preSubmitValidation,Q.setState(ns(ns({},k),{},{data:t,fieldStates:r,preSubmitValidation:!1,isDirty:is(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:is(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=!os(r,_.properties,M,z)(ne.current[r],i),f=ns(ns({},l),{},t({},r,i)),p=ns(ns({},c),{},t({},r,ns(ns({},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=ns({},i),c=ns({},a),s=[];l.forEach((function(n){var t=e(n,2),r=t[0],i=t[1],o=!os(r,_.properties,M,z)(ne.current[r],i);u[r]=i,c[r]=ns(ns({},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]),de=p((function(e){var n=e.target.name;Q.setState((function(e){return{fieldStates:ns(ns({},e.fieldStates),{},t({},n,ns(ns({},e.fieldStates[n]),{},{active:!0,inactive:!1})))}}))}),[Q]),he=p((function(e){var n=e.target.name;Q.setState((function(e){return{fieldStates:ns(ns({},e.fieldStates),{},t({},n,ns(ns({},e.fieldStates[n]),{},{active:!1,inactive:!0,touched:!0,pristine:!1})))}}))}),[Q]),ge=p((function(){var e=Q.getState(),n=e.hasErrors,t=e.fieldStates,r=te.current.onStatusUpdate;r&&r({preSubmitValidation:!1,hasErrors:n,isDirty:is(t)})}),[Q]),me=p((function(){ne.current=S,Q.setState(ls(_,S,C)),ge()}),[S,_,C,Q,ge]),ve=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=ns({},r),l=[],u=ns({},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=!os(n,_.properties,M,z)(ne.current[n],t);l=i.filter((function(e){return e.path!==n})).concat(l),u[n]=ns(ns({},o[n]),{},{dirty:s,clean:!s}),a[n]=c})),se(a,u,l)}}),[Q,_,z,M,se]),be=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=is(o);a&&a({preSubmitValidation:!0,hasErrors:t,errors:n,isDirty:l}),se(r,o,i)}),[Q,se]);u((function(){return ge(),function(){le.current&&cancelAnimationFrame(le.current);var e=ee.getState().reservations;Object.values(e).forEach((function(e){"active"===e.status&&e.releaseUrl&&Rc(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 ke=l(S);u((function(){ye(ke.current,S)||(ke.current=S,ne.current=S,Q.setState(ls(_,S,C)),ge())}),[S]);var we=l(C);u((function(){if(C&&!ye(C,we.current)){we.current=C;var n=Object.entries(C).filter((function(n){var t=e(n,2),r=t[0];return t[1]!==ke.current[r]})).map((function(n){var t=e(n,2);return{name:t[0],value:t[1]}}));n.length>0&&ve(n)}}),[C]);var Ee=s((function(){return{submitForm:be,resetForm:function(){me(),te.current.onReset&&te.current.onReset()},setFieldValue:function(e,n){return fe({target:{name:e,value:n}})},setFieldValues:pe}}),[be,me,fe,pe]),Oe=s((function(){return ns(ns({},dc),P)}),[P]),Se=s((function(){return{store:Q,api:Ee,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:R||{},fieldSlots:F||{},fieldSlotProps:I||{},renderComponentMap:D||{},fetchAdapter:L,handleFocus:de,handleBlur:he,handleFieldChange:fe,obscuredFields:q||[],obscuredGroups:V||[]}}),[Q,Ee,c,_,T,H,k,g,m,d,j,Oe,R,F,I,D,L,de,he,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(),be()))};return e.addEventListener("keydown",n),function(){return e.removeEventListener("keydown",n)}}}),[w,be]);var Ce=Q.getState().preSubmitValidation||j,je=Oe.reservationExpiredNotification;return o.createElement(xe.Provider,{value:Se},o.createElement(_e.Provider,{value:ee},o.createElement("form",{ref:oe,id:c,className:"formulator-form",disabled:Ce,onSubmit:function(e){e.preventDefault(),be()},onReset:function(e){e.preventDefault(),me(),te.current.onReset&&te.current.onReset()}},O.title&&o.createElement("h5",null,O.title),O.description&&o.createElement("h5",null,O.description),O.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(fc,{key:"hidden-group-".concat(n),subject:"Der Bereich",label:t}):o.createElement(Qc,{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(Jc,{store:Q,errorMessages:H||{},translations:T||{}})),o.createElement(je,null)))};us.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 cs=function(e){var n=e.fileRef,t=e.onClick,r=e.loading,i=e.size,a=e.thumbnailUrl,l=(null==n?void 0:n.originalName)||(null==n?void 0:n.name);if(!l)return!1;var u,c,s=void 0!==(null==n?void 0:n.size)?(u=n.size)<1024?"".concat(u," B"):u<1048576?"".concat((u/1024).toFixed(1)," KB"):"".concat((u/1048576).toFixed(1)," MB"):void 0,f=(c=(null==n?void 0:n.mimeType)||(null==n?void 0:n.type))?c.startsWith("image/")?ae:"application/pdf"===c?le:c.startsWith("video/")?ue:c.startsWith("audio/")?ce:c.startsWith("text/")?se:oe:oe,p="medium"!==i,d=p?20:32,h=p?"body2":"body1",g=p?{px:1.5,py:1}:{px:2,py:1.5},m=o.createElement(f,{fontSize:p?"small":"medium",sx:{flexShrink:0}});a&&(m=o.createElement("img",{src:a,alt:"",style:{width:d,height:d,objectFit:"cover",borderRadius:4,flexShrink:0,display:"block"}})),r&&(m=o.createElement(P,{size:p?16:20,sx:{flexShrink:0}}));var v=o.createElement(A,{direction:"row",sx:{alignItems:"center",gap:1}},m,o.createElement(x,{sx:{flex:1,minWidth:0}},o.createElement(k,{variant:h,noWrap:!0},l)),s&&o.createElement(k,{variant:h,sx:{flexShrink:0,color:function(e){return e.palette.text.secondary}}},"(".concat(s,")")));return o.createElement(H,{elevation:0,variant:"outlined"},t&&o.createElement($,{sx:g,onClick:t},v),!t&&o.createElement(x,{sx:g},v))};cs.propTypes={fileRef:m.shape({originalName:m.string,name:m.string,mimeType:m.string,type:m.string,size:m.number}),onClick:m.func,loading:m.bool,size:m.oneOf(["small","medium"]),thumbnailUrl:m.string};var ss=function(n){var t=n.fileRef,l=n.onClose,c=n.onFetch,s=a(!0),f=e(s,2),p=f[0],d=f[1],h=a(void 0),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=a(void 0),_=e(E,2),O=_[0],S=_[1];u((function(){var e,n=function(){var n=r(i.mark((function n(){var r,o,a;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c(t);case 2:if(o=n.sent,a=t.mimeType?new Blob([o],{type:t.mimeType}):o,e=URL.createObjectURL(a),v(e),null===(r=t.mimeType)||void 0===r||!r.startsWith("text/")){n.next=12;break}return n.t0=w,n.next=10,a.text();case 10:n.t1=n.sent,(0,n.t0)(n.t1);case 12:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return n().catch((function(e){return S(e.message)})).finally((function(){return d(!1)})),function(){e&&URL.revokeObjectURL(e)}}),[]);var C=null==t?void 0:t.mimeType,A=(null==t?void 0:t.originalName)||(null==t?void 0:t.name);return o.createElement(W,{open:!0,fullWidth:!0,maxWidth:"md",onClose:l},o.createElement(G,null,A),o.createElement(K,{sx:{p:0,minHeight:400,display:"flex",alignItems:"center",justifyContent:"center"}},p&&o.createElement(P,null),!p&&O&&o.createElement(k,{variant:"body2",sx:{p:3,color:function(e){return e.palette.error.main}}},O),!p&&!O&&m&&(null!=C&&C.startsWith("image/")?o.createElement("img",{src:m,alt:A,style:{maxWidth:"100%",maxHeight:"70vh"}}):"application/pdf"===C?o.createElement("iframe",{src:m,title:A,style:{width:"100%",height:"70vh",border:"none"}}):null!=C&&C.startsWith("video/")?o.createElement("video",{src:m,controls:!0,style:{width:"100%",maxHeight:"70vh"}}):null!=C&&C.startsWith("audio/")?o.createElement("audio",{src:m,controls:!0,style:{width:"100%"}}):!(null==C||!C.startsWith("text/"))&&o.createElement(j,{multiline:!0,fullWidth:!0,rows:20,value:null!=x?x:"",InputProps:{readOnly:!0},sx:{fontFamily:"monospace"}}))),o.createElement(Z,null,o.createElement(D,{onClick:l},"Schließen")))};ss.propTypes={fileRef:m.shape({originalName:m.string,name:m.string,mimeType:m.string,url:m.string}).isRequired,onClose:m.func.isRequired,onFetch:m.func.isRequired};var fs=function(n){var t,c=n.name,s=n.value,f=n.readOnly,p=n.onChange,d=n.mode,h=n.onUpload,g=n.onFetch,m=n.size,v=l(),y=a(!1),b=e(y,2),x=b[0],w=b[1],E=a(void 0),_=e(E,2),O=_[0],S=_[1],C=a(!1),j=e(C,2),T=j[0],R=j[1],F=a(!1),I=e(F,2),L=I[0],z=I[1],M=a(void 0),N=e(M,2),B=N[0],q=N[1],V=function(e){if(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){return}return e}}(s),U=null==V||null===(t=V.variants)||void 0===t?void 0:t["avatar-x128"];u((function(){var e;if(g&&U&&null!=V&&null!==(e=V.mimeType)&&void 0!==e&&e.startsWith("image/")){var n,t=function(){var e=r(i.mark((function e(){var t,r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g({url:U});case 2:t=e.sent,r=new Blob([t],{type:"image/webp"}),n=URL.createObjectURL(r),q(n);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return t().catch((function(){})),function(){n&&URL.revokeObjectURL(n),q(void 0)}}}),[U]);var H=function(){var e=r(i.mark((function e(){var n,t,r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z(!0),e.prev=1,e.next=4,g(V);case 4:n=e.sent,t=URL.createObjectURL(n),(r=document.createElement("a")).href=t,r.download=V.originalName||V.name,r.click(),URL.revokeObjectURL(t),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(1);case 15:z(!1);case 16:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(){return e.apply(this,arguments)}}();if(f)return o.createElement(o.Fragment,null,o.createElement(cs,{fileRef:V,size:m,thumbnailUrl:B,loading:L,onClick:g?function(){var e;(e=null==V?void 0:V.mimeType)&&(e.startsWith("image/")||"application/pdf"===e||e.startsWith("video/")||e.startsWith("audio/")||e.startsWith("text/"))?R(!0):H()}:void 0}),T&&o.createElement(ss,{fileRef:V,onClose:function(){return R(!1)},onFetch:g}));var $=function(){var e=r(i.mark((function e(n){var t,r,o;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null===(t=n.target.files)||void 0===t?void 0:t[0]){e.next=3;break}return e.abrupt("return");case 3:if(n.target.value="",S(void 0),"blob"!==d){e.next=8;break}return p({target:{name:c,value:r}}),e.abrupt("return");case 8:return w(!0),e.prev=9,e.next=12,h(r);case 12:o=e.sent,p({target:{name:c,value:o}}),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),S(e.t0.message);case 19:w(!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(cs,{fileRef:V,size:m,thumbnailUrl:B}),o.createElement("input",{ref:v,type:"file",style:{display:"none"},onChange:$}),o.createElement(D,{size:"small",variant:"outlined",disabled:x,onClick:function(){return v.current.click()},sx:{alignSelf:"flex-start"}},x&&o.createElement(P,{size:14,sx:{mr:1}}),"Choose file"),O&&o.createElement(k,{variant:"body2",sx:{color:function(e){return e.palette.error.main}}},O))};fs.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,onFetch:m.func,size:m.oneOf(["small","medium"])};var ps=["dirty","hasErrors","required","label","value","variant","options","baererToken","formElement"];function ds(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 hs=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=Y(n,ps),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 Rc(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,O=k.fetch,S=k.abort,C=k.options;return u((function(){O()}),[]),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?ds(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(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:O,abort:S},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}))}}))};hs.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 gs=me(),ms=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(ge,{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=gs(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,pe({},n,{required:t,label:r,variant:a,onChange:i,InputProps:u}))}({required:l,disabled:u,label:r,onInputChange:y,variant:i,loading:a},e)}})};ms.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 vs=Q((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:ve(e.palette.primary.main,.12)},unchecked:{backgroundColor:e.palette.grey[200]}}})),ys=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=vs(),h=J(),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:De(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(fe,{fontSize:i?"large":"medium",htmlColor:h.palette.text.secondary})),s&&!g&&o.createElement(x,{mr:2,mb:-.5},o.createElement(ie,{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}})}})))};ys.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{zc as FormAutoGenerate,Xe as FormAutocomplete,tn as FormBoolean,Ve as FormField,fs as FormFileInput,Kc as FormGroupAutoGenerate,Ge as FormNumber,hs as FormOptionsLoader,ys as FormPrimaryToggle,lc as FormReadOnlyBoolean,gn as FormReadOnlyField,rc as FormReadOnlyMarkdown,ic as FormReadOnlyNumber,sc as FormReadOnlyRepeater,oc as FormReadOnlySelect,vn as FormReadOnlyText,ln as FormRepeater,Qe as FormSelect,He as FormText,us as FormulatorForm,fc as HiddenData,pc as ReservationExpiredSnackbar,ms as SelectOrCreate,we as useFormContext,Ee as useFormSelector};
|
|
31
|
+
*/var ao=Symbol.for("react.element"),lo=Symbol.for("react.portal"),uo=Symbol.for("react.fragment"),co=Symbol.for("react.strict_mode"),so=Symbol.for("react.profiler"),fo=Symbol.for("react.provider"),po=Symbol.for("react.context"),ho=Symbol.for("react.server_context"),go=Symbol.for("react.forward_ref"),mo=Symbol.for("react.suspense"),vo=Symbol.for("react.suspense_list"),yo=Symbol.for("react.memo"),bo=Symbol.for("react.lazy"),xo=Symbol.for("react.offscreen"),ko=Symbol.for("react.module.reference");function wo(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case ao:switch(e=e.type){case uo:case so:case co:case mo:case vo:return e;default:switch(e=e&&e.$$typeof){case ho:case po:case go:case bo:case yo:case fo:return e;default:return n}}case lo:return n}}}var Eo={ContextConsumer:po,ContextProvider:fo,Element:ao,ForwardRef:go,Fragment:uo,Lazy:bo,Memo:yo,Portal:lo,Profiler:so,StrictMode:co,Suspense:mo,SuspenseList:vo,isAsyncMode:function(){return!1},isConcurrentMode:function(){return!1},isContextConsumer:function(e){return wo(e)===po},isContextProvider:function(e){return wo(e)===fo},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ao},isForwardRef:function(e){return wo(e)===go},isFragment:function(e){return wo(e)===uo},isLazy:function(e){return wo(e)===bo},isMemo:function(e){return wo(e)===yo},isPortal:function(e){return wo(e)===lo},isProfiler:function(e){return wo(e)===so},isStrictMode:function(e){return wo(e)===co},isSuspense:function(e){return wo(e)===mo},isSuspenseList:function(e){return wo(e)===vo},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===uo||e===so||e===co||e===mo||e===vo||e===xo||"object"==typeof e&&null!==e&&(e.$$typeof===bo||e.$$typeof===yo||e.$$typeof===fo||e.$$typeof===po||e.$$typeof===go||e.$$typeof===ko||void 0!==e.getModuleId)},typeOf:wo},_o=Ie((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,O=o,S=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=O,n.StrictMode=S,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}()})),Oo=Ie((function(e){"production"===process.env.NODE_ENV?e.exports=Eo:e.exports=_o}));var So=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Co=/\n/g,Ao=/^\s*/,jo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,To=/^:\s*/,Fo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Po=/^[;\s]*/,Ro=/^\s+|\s+$/g,Io="";function Do(e){return e?e.replace(Ro,Io):Io}var Lo=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(Co);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(Ao)}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;Io!=e.charAt(t)&&("*"!=e.charAt(t)||"/"!=e.charAt(t+1));)++t;if(t+=2,Io===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(jo);if(n){if(f(),!u(To))return l("property missing ':'");var t=u(Fo),r=e({type:"declaration",property:Do(n[0].replace(So,Io)),value:t?Do(t[0].replace(So,Io)):Io});return u(Po),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 zo={}.hasOwnProperty,Mo=new Set(["table","thead","tbody","tfoot","tr"]);function No(e,n){const t=[];let r,i=-1;for(;++i<n.children.length;)r=n.children[i],"element"===r.type?t.push(Bo(e,r,i,n)):"text"===r.type?"element"===n.type&&Mo.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 Bo(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=io,e.schema=s),n.properties)for(c in n.properties)zo.call(n.properties,c)&&qo(u,c,n.properties[c],e);"ol"!==l&&"ul"!==l||e.listDepth++;const f=No(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&&zo.call(i.components,l)?i.components[l]:l,h="string"==typeof d||d===o.Fragment;if(!Oo.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=Vo(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=Vo(r,n),u.siblingCount=Vo(r)),h||(u.node=n),f.length>0?o.createElement(d,u,f):o.createElement(d,u)}function Vo(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 qo(e,n,t,r){const i=function(e,n){const t=Si(n);let r=n,i=Ci;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&Yi.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Qi,no);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Qi.test(e)){let t=e.replace(Ji,eo);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}i=Ni}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{Lo(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,Uo)]=t}}(o)),i.space&&i.property?e[zo.call(to,i.property)?to[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function Uo(e,n){return n.toUpperCase()}const Ho={}.hasOwnProperty,$o={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 Wo(e){for(const n in $o)if(Ho.call($o,n)&&Ho.call(e,n)){const e=$o[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 $o[n]}const n=Gn().use(Hr).use(e.remarkPlugins||[]).use(Ei,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(oo,e),t=new Fn;"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,{},No({options:e,schema:ro,listDepth:0},r));return e.className&&(i=o.createElement("div",{className:e.className},i)),i}Wo.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<yn.length;){const e=yn[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)")}},Wo.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 Go={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||yt(e)?t(e):n(e)}},partial:!0},Ko={tokenize:function(e,n,t){let r,i;return o;function o(n){return 38===n?e.check(Yo,l,a)(n):46===n||95===n?e.check(Xo,l,a)(n):null===n||mt(n)||xt(n)||45!==n&&kt(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(Yo,n,i)(a):(40===a&&t++,41===a?e.check(Xo,o,i)(a):oa(a)?n(a):ia(a)?e.check(Xo,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},Xo={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(i){return ia(i)?(e.consume(i),r):oa(i)?n(i):t(i)}},partial:!0},Yo={tokenize:function(e,n,t){return function(n){return e.consume(n),r};function r(n){return st(n)?(e.consume(n),r):59===n?(e.consume(n),i):t(n)}function i(e){return oa(e)?n(e):t(e)}},partial:!0},Qo={tokenize:function(e,n,t){const r=this;return function(n){if(87!==n&&119!==n||!la(r.previous)||sa(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Go,e.attempt(Ko,e.attempt(Zo,i),t),t)(n)};function i(t){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(t)}},previous:la},Jo={tokenize:function(e,n,t){const r=this;return function(n){if(72!==n&&104!==n||!ua(r.previous)||sa(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||mt(n)||xt(n)||kt(n)?t(n):e.attempt(Ko,e.attempt(Zo,p),t)(n)}function p(t){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(t)}},previous:ua},ea={tokenize:function(e,n,t){const r=this;let i,o;return function(n){if(!aa(n)||!ca(r.previous)||sa(r.events))return t(n);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(n)};function a(n){return aa(n)?(e.consume(n),a):64===n?(e.consume(n),l):t(n)}function l(n){return 46===n?e.check(Xo,f,u)(n):45===n||95===n?e.check(Xo,t,c)(n):dt(n)?(!o&&ft(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(Xo,t,u)(n):l(n)}function f(r){return i&&!o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(r)):t(r)}},previous:ca},na={},ta={text:na};let ra=48;for(;ra<123;)na[ra]=ea,ra++,58===ra?ra=65:91===ra&&(ra=97);function ia(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 oa(e){return null===e||60===e||vt(e)}function aa(e){return 43===e||45===e||46===e||95===e||dt(e)}function la(e){return null===e||40===e||42===e||95===e||126===e||vt(e)}function ua(e){return null===e||!st(e)}function ca(e){return 47!==e&&ua(e)}function sa(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}na[43]=ea,na[45]=ea,na[46]=ea,na[95]=ea,na[72]=[ea,Jo],na[104]=[ea,Jo],na[87]=[ea,Qo],na[119]=[ea,Qo];const fa={tokenize:function(e,n,t){const r=this;return Et(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 pa(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=Xt(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 da(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 ha(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(Xt(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),vt(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 ga(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=Xt(r.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(n),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p):t(n):yt(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||yt(n)||91===n||93===n||l>999?(e.exit("chunkString"),c(n)):(vt(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"),Et(e,d,"gfmFootnoteDefinitionWhitespace")):t(n)}function d(e){return i.includes(o)||i.push(o),n(e)}}function ma(e,n,t){return e.check(Pt,n,e.attempt(fa,n,t))}function va(e){e.exit("gfmFootnoteDefinition")}function ya(e){return null===e||vt(e)||xt(e)?1:kt(e)?2:void 0}function ba(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=ya(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=ya(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]];it(a,a.length,0,At(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),it(a,a.length,0,[["exit",o,n],["enter",e[t][1],n],["exit",e[t][1],n],["exit",i,n]]),it(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 xa={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||yt(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):bt(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 bt(n)?(e.consume(n),s):(e.exit("whitespace"),c(n))}function f(n){return null===n||124===n||vt(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||yt(n)?y(n):bt(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 bt(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||yt(n)?y(n):bt(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(ka,b,e.attempt({tokenize:A,partial:!0},Et(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"),O(n))}function w(n){return e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),E}function E(n){return null===n||yt(n)?function(n){if(e.exit("tableRow"),null===n)return C(n);return e.check(ka,C,e.attempt({tokenize:A,partial:!0},Et(e,k,"linePrefix",4),C))(n)}(n):bt(n)?(e.enter("whitespace"),e.consume(n),_):124===n?w(n):(e.enter("temporaryTableCellContent"),O(n))}function _(n){return bt(n)?(e.consume(n),_):(e.exit("whitespace"),E(n))}function O(n){return null===n||124===n||vt(n)?(e.exit("temporaryTableCellContent"),E(n)):(e.consume(n),92===n?S:O)}function S(n){return 92===n||124===n?(e.consume(n),O):O(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"),Et(e,i,"linePrefix")};function i(i){if(r.parser.lazy[r.now().line]||null===i||yt(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}}}},ka={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||vt(o)?n(o):t(o)}},partial:!0};const wa={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 vt(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:_a},n,t)):t(r)}}},Ea={text:{91:wa}};function _a(e,n,t){const r=this;return Et(e,(function(e){const i=r.events[r.events.length-1];return(i&&"whitespace"===i[1].type||yt(e))&&null!==e?n(e):t(e)}),"whitespace")}function Oa(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 Sa={}.hasOwnProperty,Ca=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=Yr(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([Aa(e[t][0]),ja(e[t][1])])}else{let t;for(t in e)Sa.call(e,t)&&n.push([Aa(t),ja(e[t])])}return n}(o);let u=-1;for(;++u<l.length;)oi(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 Aa(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 ja(e){return"function"==typeof e?e:()=>e}const Ta="phrasing",Fa=["autolink","link","image","label"],Pa={transforms:[function(e){Ca(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Da],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,La]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:Ia,literalAutolinkHttp:Ia,literalAutolinkWww:Ia},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)}}},Ra={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ta,notInConstruct:Fa},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ta,notInConstruct:Fa},{character:":",before:"[ps]",after:"\\/",inConstruct:Ta,notInConstruct:Fa}]};function Ia(e){this.config.enter.autolinkProtocol.call(this,e)}function Da(e,n,t,r,i){let o="";if(!za(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=Oa(e,"("),i=Oa(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 La(e,n,t,r){return!(!za(r,!0)||/[_-\d]$/.test(t))&&{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function za(e,n){const t=e.input.charCodeAt(e.index-1);return(0===e.index||xt(t)||kt(t))&&(!n||47!==t)}function Ma(e){return e.label||!e.identifier?e.label||"":zr(e.identifier)}function Na(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 Ba(e,n,t){const r=n.indexStack,i=e.children||[],o=Na(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 Va=/\r?\n|\r/g;function qa(e,n){const t=[];let r,i=0,o=0;for(;r=Va.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 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){return $a(e,n.inConstruct,!0)&&!$a(e,n.notInConstruct,!1)}function $a(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 Wa(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(!Ha(e.stack,n))continue;const t=Ua(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(Ga);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(Ka(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(Ka(r.slice(u,c),t.after)),o.join("")}function Ga(e,n){return e-n}function Ka(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=Na(r);let o=i.move("[^");const a=t.enter("footnoteDefinition"),l=t.enter("label");return o+=i.move(Wa(t,Ma(e),{...i.current(),before:o,after:"]"})),l(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(qa(Ba(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=Na(r);let o=i.move("[^");const a=t.enter("footnoteReference"),l=t.enter("reference");return o+=i.move(Wa(t,Ma(e),{...i.current(),before:o,after:"]"})),l(),a(),o+=i.move("]"),o}}function Xa(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 Ya={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Qa={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Ja}};function Ja(e,n,t,r){const i=Xa(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=Xa(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=Xa(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 el(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 nl(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 tl(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=nl(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 rl(e){return e.length}function il(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}Ja.peek=function(){return"~"},tl.peek=function(){return"`"};const ol={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:ll,tableHeader:ll,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let n=this.resume();this.getData("inTable")&&(n=n.replace(/\\([\\|])/g,ul));this.stack[this.stack.length-1].value=n,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:al,tableHeader:al,tableRow:al}};function al(e){this.exit(e)}function ll(e){this.enter({type:"tableCell",children:[]},e)}function ul(e,n){return"|"===n?n:e}function cl(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=tl(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=el(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=el(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||rl,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]=il(t[f]);else{const e=il(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 sl(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 fl=/\r?\n|\r/g;function pl(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=sl(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=fl.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=sl(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 dl={exit:{taskListCheckValueChecked:gl,taskListCheckValueUnchecked:gl,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)}}},hl={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=sl(r);o&&l.move(a);let u=pl(e,n,t,{...r,...l.current()});o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a})));return u}}};function gl(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function ml(e={}){const n=this.data();function t(e,t){(n[e]?n[e]:n[e]=[]).push(t)}t("micromarkExtensions",function(e){return lt([ta,{document:{91:{tokenize:ga,continuation:{tokenize:ma},exit:va}},text:{91:{tokenize:ha},93:{add:"after",tokenize:pa,resolveTo:da}}},ba(e),xa,Ea])}(e)),t("fromMarkdownExtensions",[Pa,{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=Xt(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=Xt(this.sliceSerialize(e)).toLowerCase()}}},Ya,ol,dl]),t("toMarkdownExtensions",function(e){return{extensions:[Ra,Za(),Qa,cl(e),hl]}}(e))}var vl={exports:{}};function yl(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)||yl(t)})),e}vl.exports=yl,vl.exports.default=yl;var bl=vl.exports;class xl{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function kl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function wl(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 El=e=>!!e.kind;class _l{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=kl(e)}openNode(e){if(!El(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){El(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class Ol{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=>{Ol._collapse(e)})))}}class Sl extends Ol{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 _l(this,this.options).value()}finalize(){return!0}}function Cl(e){return e?"string"==typeof e?e:e.source:null}function Al(e){return Fl("(?=",e,")")}function jl(e){return Fl("(?:",e,")*")}function Tl(e){return Fl("(?:",e,")?")}function Fl(...e){return e.map((e=>Cl(e))).join("")}function Pl(...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=>Cl(e))).join("|")+")"}function Rl(e){return new RegExp(e.toString()+"|").exec("").length-1}const Il=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Dl(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t;let r=Cl(e),i="";for(;r.length>0;){const e=Il.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 Ll="[a-zA-Z]\\w*",zl="[a-zA-Z_]\\w*",Ml="\\b\\d+(\\.\\d+)?",Nl="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Bl="\\b(0b[01]+)",Vl={begin:"\\\\[\\s\\S]",relevance:0},ql={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Vl]},Ul={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Vl]},Hl=function(e,n,t={}){const r=wl({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=Pl("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:Fl(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},$l=Hl("//","$"),Wl=Hl("/\\*","\\*/"),Gl=Hl("#","$"),Kl={scope:"number",begin:Ml,relevance:0},Zl={scope:"number",begin:Nl,relevance:0},Xl={scope:"number",begin:Bl,relevance:0},Yl={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Vl,{begin:/\[/,end:/\]/,relevance:0,contains:[Vl]}]}]},Ql={scope:"title",begin:Ll,relevance:0},Jl={scope:"title",begin:zl,relevance:0},eu={begin:"\\.\\s*"+zl,relevance:0};var nu=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:Ll,UNDERSCORE_IDENT_RE:zl,NUMBER_RE:Ml,C_NUMBER_RE:Nl,BINARY_NUMBER_RE:Bl,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=Fl(n,/.*\b/,e.binary,/\b.*/)),wl({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Vl,APOS_STRING_MODE:ql,QUOTE_STRING_MODE:Ul,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:Hl,C_LINE_COMMENT_MODE:$l,C_BLOCK_COMMENT_MODE:Wl,HASH_COMMENT_MODE:Gl,NUMBER_MODE:Kl,C_NUMBER_MODE:Zl,BINARY_NUMBER_MODE:Xl,REGEXP_MODE:Yl,TITLE_MODE:Ql,UNDERSCORE_TITLE_MODE:Jl,METHOD_GUARD:eu,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 tu(e,n){"."===e.input[e.index-1]&&n.ignoreMatch()}function ru(e,n){void 0!==e.className&&(e.scope=e.className,delete e.className)}function iu(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=tu,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function ou(e,n){Array.isArray(e.illegal)&&(e.illegal=Pl(...e.illegal))}function au(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 lu(e,n){void 0===e.relevance&&(e.relevance=1)}const uu=(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=Fl(t.beforeMatch,Al(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},cu=["of","and","for","in","not","or","if","then","parent","list","value"],su="keyword";function fu(e,n,t=su){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,fu(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,pu(t[0],t[1])]}))}}function pu(e,n){return n?Number(n):function(e){return cu.includes(e.toLowerCase())}(e)?0:1}const du={},hu=e=>{console.error(e)},gu=(e,...n)=>{console.log(`WARN: ${e}`,...n)},mu=(e,n)=>{du[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),du[`${e}/${n}`]=!0)},vu=new Error;function yu(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+=Rl(n[e-1]);e[t]=a,e[t]._emit=o,e[t]._multi=!0}function bu(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 hu("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),vu;if("object"!=typeof e.beginScope||null===e.beginScope)throw hu("beginScope must be object"),vu;yu(e,e.begin,{key:"beginScope"}),e.begin=Dl(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw hu("skip, excludeEnd, returnEnd not compatible with endScope: {}"),vu;if("object"!=typeof e.endScope||null===e.endScope)throw hu("endScope must be object"),vu;yu(e,e.end,{key:"endScope"}),e.end=Dl(e.end,{joinWith:""})}}(e)}function xu(e){function n(n,t){return new RegExp(Cl(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+=Rl(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=n(Dl(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=wl(e.classNameAliases||{}),function t(i,o){const a=i;if(i.isCompiled)return a;[ru,au,bu,uu].forEach((e=>e(i,o))),e.compilerExtensions.forEach((e=>e(i,o))),i.__beforeBegin=null,[iu,ou,lu].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=fu(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=Cl(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 wl(e,{variants:null},n)})));if(e.cachedVariants)return e.cachedVariants;if(ku(e))return wl(e,{starts:e.starts?wl(e.starts):null});if(Object.isFrozen(e))return wl(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 ku(e){return!!e&&(e.endsWithParent||ku(e.starts))}class wu extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Eu=kl,_u=wl,Ou=Symbol("nomatch");var Su=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:Sl};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):(mu("10.7.0","highlight(lang, code, ...args) has been deprecated."),mu("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 S.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(S.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;S.addKeyword(n[0],t)}}else t+=n[0];e=_.keywordPatternRe.lastIndex,n=_.keywordPatternRe.exec(C)}var r;t+=C.substr(e),S.addText(t)}function p(){null!=_.subLanguage?function(){if(""===C)return;let e=null;if("string"==typeof _.subLanguage){if(!n[_.subLanguage])return void S.addText(C);e=s(_.subLanguage,C,!0,O[_.subLanguage]),O[_.subLanguage]=e._top}else e=f(C,_.subLanguage.length?_.subLanguage:null);_.relevance>0&&(A+=e.relevance),S.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?S.addKeyword(i,r):(C=i,c(),C=""),t++}}function h(e,n){return e.scope&&"string"==typeof e.scope&&S.openNode(k.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(S.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 xl(e);e["on:end"](n,t),t.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return m(e.parent,n,t)}function v(e){return 0===_.matcher.regexIndex?(C+=e[0],1):(F=!0,0)}function y(e){const n=e[0],r=t.substr(e.index),i=m(_,e,r);if(!i)return Ou;const o=_;_.endScope&&_.endScope._wrap?(p(),S.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&&S.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 xl(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!==Ou)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 hu(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=xu(k);let E="",_=a||w;const O={},S=new l.__emitter(l);!function(){const e=[];for(let n=_;n!==k;n=n.parent)n.scope&&e.unshift(n.scope);e.forEach((e=>S.openNode(e)))}();let C="",A=0,j=0,T=0,F=!1;try{for(_.matcher.considerAll();;){T++,F?F=!1:_.matcher.considerAll(),_.matcher.lastIndex=j;const e=_.matcher.exec(t);if(!e)break;const n=x(t.substring(j,e.index),e);j=e.index+n}return x(t.substr(j)),S.closeAllNodes(),S.finalize(),E=S.toHTML(),{language:e,value:E,relevance:A,illegal:!1,_emitter:S,_top:_}}catch(n){if(n.message&&n.message.includes("Illegal"))return{language:e,value:Eu(t),illegal:!0,relevance:0,_illegalBy:{message:n.message,index:j,context:t.slice(j-100,j+100),mode:n.mode,resultSoFar:E},_emitter:S};if(i)return{language:e,value:Eu(t),illegal:!1,relevance:0,errorRaised:n,_emitter:S,_top:_};throw n}}function f(e,t){t=t||l.languages||Object.keys(n);const r=function(e){const n={value:Eu(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||(gu(o.replace("{}",t[1])),gu("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 wu("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 mu("10.7.0","highlightBlock will be removed entirely in v12.0"),mu("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){l=_u(l,e)},initHighlighting:()=>{h(),mu("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){h(),mu("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,r){let o=null;try{o=r(e)}catch(e){if(hu("Language definition for '{}' could not be registered.".replace("{}",t)),!i)throw e;hu(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:_u,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:Fl,lookahead:Al,either:Pl,optional:Tl,anyNumberOfTimes:jl};for(const e in nu)"object"==typeof nu[e]&&bl(nu[e]);return Object.assign(e,nu),e}({}),Cu=Su;Su.HighlightJS=Su,Su.default=Su;var Au=Cu,ju=Ie((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 Tu=Object.assign(Fu(Error),{eval:Fu(EvalError),range:Fu(RangeError),reference:Fu(ReferenceError),syntax:Fu(SyntaxError),type:Fu(TypeError),uri:Fu(URIError)});function Fu(e){return n.displayName=e.displayName||e.name,n;function n(n,...t){const r=n?ju(n,...t):n;return new e(r)}}const Pu={}.hasOwnProperty,Ru="hljs-";function Iu(e,n,t={}){let r=t.prefix;if("string"!=typeof e)throw Tu("Expected `string` for name, got `%s`",e);if(!Au.getLanguage(e))throw Tu("Unknown language: `%s` is not registered",e);if("string"!=typeof n)throw Tu("Expected `string` for value, got `%s`",n);null==r&&(r=Ru),Au.configure({__emitter:Du,classPrefix:r});const i=Au.highlight(n,{language:e,ignoreIllegals:!0});if(Au.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 Du{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 Lu={highlight:Iu,highlightAuto:function(e,n={}){const t=n.subset||Au.listLanguages();n.prefix;let r=-1,i={type:"root",data:{language:null,relevance:0},children:[]};if("string"!=typeof e)throw Tu("Expected `string` for value, got `%s`",e);for(;++r<t.length;){const o=t[r];if(!Au.getLanguage(o))continue;const a=Iu(o,e,n);a.data.relevance>i.data.relevance&&(i=a)}return i},registerLanguage:function(e,n){Au.registerLanguage(e,n)},registered:function(e){return Boolean(Au.getLanguage(e))},listLanguages:function(){return Au.listLanguages()},registerAlias:function(e,n){if("string"==typeof e)Au.registerAliases(n,{languageName:e});else{let n;for(n in e)Pu.call(e,n)&&Au.registerAliases(e[n],{languageName:n})}}},zu=function(e){if(null==e)return Nu;if("string"==typeof e)return function(e){return n;function n(n){return Nu(n)&&n.tagName===e}}(e);if("object"==typeof e)return function(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=zu(e[t]);return Mu(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 Mu(e);throw new Error("Expected function, string, or array as test")};function Mu(e){return function(n,...t){return Nu(n)&&Boolean(e.call(this,n,...t))}}function Nu(e){return Boolean(e&&"object"==typeof e&&"element"===e.type&&"string"==typeof e.tagName)}var Bu=function(e,n,t){var r=Yr(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 Vu=/\n/g,qu=/[\t ]+/g,Uu=zu("br"),Hu=zu("p"),$u=zu(["th","td"]),Wu=zu("tr"),Gu=zu(["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}]),Ku=zu(["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=Ku(e),i=ec(e,{whitespace:n.whitespace||"normal",breakBefore:!1,breakAfter:!1});let o,a,l,u=-1;if("text"===e.type||"comment"===e.type)return Yu(e,{whitespace:i,breakBefore:!0,breakAfter:!0});for(o=[];++u<t.length;)o=o.concat(Xu(t[u],e,{whitespace:i,breakBefore:u?null:r,breakAfter:u<t.length-1?Uu(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 Xu(e,n,t){return"element"===e.type?function(e,n,t){const r=ec(e,t),i=e.children||[];let o,a,l=-1,u=[];if(Gu(e))return u;Uu(e)||Wu(e)&&Bu(n,e,Wu)?a="\n":Hu(e)?(o=2,a=2):Ku(e)&&(o=1,a=1);for(;++l<i.length;)u=u.concat(Xu(i[l],e,{whitespace:r,breakBefore:l?void 0:o,breakAfter:l<i.length-1?Uu(i[l+1]):a}));$u(e)&&Bu(n,e,$u)&&u.push("\t");o&&u.unshift(o);a&&u.push(a);return u}(e,n,t):"text"===e.type?["normal"===t.whitespace?Yu(e,t):Qu(e)]:[]}function Yu(e,n){const t=String(e.value),r=[],i=[];let o,a,l,u=0,c=-1;for(;u<t.length;)Vu.lastIndex=u,o=Vu.exec(t),a=o?o.index:t.length,r.push(Ju(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 Qu(e){return String(e.value)}function Ju(e,n,t){const r=[];let i,o,a=0;for(;a<e.length;)qu.lastIndex=a,i=qu.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 ec(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 nc={}.hasOwnProperty;function tc(e={}){const{aliases:n,languages:t,prefix:r,plainText:i,ignoreMissing:o,subset:a}=e;let l="hljs";if(n&&Lu.registerAlias(n),t){let e;for(e in t)nc.call(t,e)&&Lu.registerLanguage(e,t[e])}if(r){const e=r.indexOf("-");l=e>-1?r.slice(0,e):r}return e=>{ni(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?Lu.highlight(c,Zu(u),{prefix:r}):Lu.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 rc=function(e){var n=e.content;return o.createElement(Wo,{remarkPlugins:[ml],rehypePlugins:[tc]},n)};rc.propTypes={content:m.string};var ic=function(e){var n=e.value,t=e.step;return o.createElement(vn,{value:$e(n,t)})};ic.propTypes={value:m.oneOfType([m.number,m.string]),step:m.oneOfType([m.number,m.string])};var oc=function(e){var n,t=e.value,r=e.options;return o.createElement(vn,{value:null===(n=r.find((function(e){return e.value===t})))||void 0===n?void 0:n.label})};oc.propTypes={value:m.string,options:m.arrayOf(m.shape({label:m.string.isRequired,value:m.oneOfType([m.string,m.number,m.bool])})).isRequired};var ac=function(e,n){return!1===(t=e)||!0===t?e:n||!1;var t},lc=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(O,{label:l,labelPlacement:u||"end",disabled:!0,control:o.createElement(R,{size:t,name:r,checked:ac(i,a)})}):o.createElement(O,{label:l,labelPlacement:u||"end",disabled:!0,control:o.createElement(I,{size:t,name:r,checked:ac(i,a)})})};lc.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 uc=X((function(){return{formRepeater:{padding:0,margin:0}}})),cc=function(e,n){return n&&void 0!==n[e]?n[e]:e},sc=function(e){var n=e.value,t=e.options,r=uc();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:cc(e,t),style:{margin:0}}))})))};sc.propTypes={value:m.arrayOf(m.oneOfType([m.string,m.number])),options:m.shape({})};var fc=function(e){var n=e.subject,t=e.label;return o.createElement(x,{mb:2},o.createElement(V,{severity:"warning"},o.createElement(k,{variant:"body1"},n?"".concat(n," "):"",o.createElement("span",{style:{fontWeight:"bold"}},t)," ist ausgeblendet.")))};fc.propTypes={subject:m.string,label:m.string.isRequired};var pc=function(){var n=Oe(),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(q,{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)}})},dc={default:He,string:He,text:He,number:Ge,select:en,boolean:tn,array:ln,readOnlyDefault:vn,readOnlyString:vn,readOnlyText:vn,readOnlyMarkdown:rc,readOnlyNumber:ic,readOnlySelect:oc,readOnlyBoolean:lc,readOnlyArray:sc,apDefault:U,apString:U,apNumber:Ge,apSelect:en,apBoolean:tn,field:qe,readOnlyField:gn,sectionCard:Te,sectionBlock:Pe,hiddenData:fc,reservationExpiredNotification:pc},hc=(0).constructor,gc=hc.isFinite;hc.isInteger;var mc=[].constructor.isArray;function vc(e){return null!==e&&"object"==typeof e}function yc(e,n){return void 0===n&&(n=0),"string"==typeof e&&e.length>=n}function bc(e){return gc(e)}function xc(e){return mc(e)}function kc(e,n){return vc(e)&&n in e}var wc="'\"`",Ec=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 _c(e){var n=e.charAt(0),t=e.substr(-1);if(wc.includes(n)||wc.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 Oc(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 Sc(e){if(!yc(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++,Oc(o,e.substring(a,n),i),o.push(_c(t)),i=!0}return Oc(o,e.substring(r),i)}function Cc(e,n,t){if(void 0===t&&(t={}),!vc(t))throw new TypeError("get expects an object option. Got "+typeof t);var r=t.depth,i=void 0===r?10:r;if(!bc(i)||i<=0)throw new RangeError("Expected a positive number for depth. Got "+i);var o=Array.isArray(n)?n:Sc.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(!kc(l,s)){if(t.propsExist)throw new ReferenceError(s+' is not defined in the scope at path: "'+a()+'"');return}l=l[s]}return l}Sc.cached=function(e){var n=Ec.get(e);return void 0===n&&(n=Sc(e),Ec.set(e,n)),n};var Ac=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]=Cc(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)}))},!vc(e)||!xc(e.strings)||!xc(e.varNames)||e.strings.length!==e.varNames.length+1)throw new TypeError("Invalid tokens object");if(!vc(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]=Sc.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 jc(e,n){void 0===n&&(n={});var t=function(e,n){if(void 0===n&&(n={}),!yc(e))throw new TypeError("The template parameter must be a string. Got a "+typeof e);if(!vc(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(!xc(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(!yc(a,1)||!yc(l,1)||a===l)throw new TypeError('The open and close symbols should be two distinct non-empty strings. Got "'+a+'" and "'+l+'"');if(!bc(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 Ac(t,n)}function Tc(e,n,t){return jc(e,t).render(n)}var Fc=f(!1),Pc=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 Rc(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 Ic(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Rc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Dc(e){var n=function(e,n){if("object"!==he(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===he(n)?n:String(n)}var Lc=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=Oe(),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)}),[]),O=function(){var e={};return E.current.fieldNames.forEach((function(n){e[n]=void 0})),e},S=p(r(i.mark((function e(){var n,t,r,a,l,u,c,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=Y(l,[o].map(Dc)),m.setState({reservations:u}),E.current.setFieldValues(O()),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,Pc(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=Y(i,[o].map(Dc));if(m.setState({reservations:Ic(Ic({},a),{},t({},o,Ic(Ic({},n),{},{remaining:0,status:"expired"}))),expiredNotification:{reservationId:o,label:E.current.label||o}}),E.current.setFieldValues(O()),n.releaseUrl){var l=E.current,u=l.fetchAdapter,c=l.token;u?u("DELETE",n.releaseUrl).catch((function(){})):Pc(n.releaseUrl,{method:"DELETE",token:c}).catch((function(){}))}setTimeout((function(){var e=m.getState().reservations,n=e[o],t=Y(e,[o].map(Dc));n&&"expired"===n.status&&m.setState({reservations:t})}),100)}else m.setState({reservations:Ic(Ic({},e.reservations),{},t({},o,Ic(Ic({},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,S();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,Pc(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:Ic(Ic({},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,S,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(){})):Pc(n.releaseUrl,{method:"DELETE",token:i}).catch((function(){}));var a=e.reservations;a[o];var l=Y(a,[o].map(Dc));m.setState({reservations:l})}}}),[m,o,_]),{loading:b,generate:A,release:S}},zc=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"),_=we().setFieldValues,O=Oe(),S=Lc({reservationId:n,url:s,token:f,label:r||n,fieldNames:[n],setFieldValues:_}),C=S.generate,A=S.release,j=S.loading,T=be(O,(function(e){return e.reservations[n]})),P=T&&"active"===T.status,R=l();u((function(){P&&w&&(R.current=T.fields[n])}),[P,w,T,n]);var I={};return P&&!w&&(I.disabled=!0),P&&w&&(I.onChange=function(e){P&&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}}},P&&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)),!P&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!P&&!j&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(re,null),disabled:i,onClick:C},d),j&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(F,{size:16,thickness:4}),disabled:!0},d),P&&!j&&o.createElement(D,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(ie,null),disabled:i,onClick:A},E)))};zc.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 Mc=["message","options","validator"];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}var Bc=function(e,n){return e&&e.errors?e.errors.map((function(e){var r=e.message,i=e.options,o=e.validator,a=Y(e,Mc),l=r;return i&&i.human?l=i.human:n[o]&&(l=Tc(n[o],i)),function(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}({message:l,options:i,validator:o},a)})):[]},Vc=o.memo((function(e){var n,t=e.adornmentEntry,r=e.mainFieldName,i=e.position,o=e.inputVariant,a=ke(),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=be(l,(function(e){return e.preSubmitValidation})),v=be(l,(function(e){return e.data[g]})),y=be(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:Bc(y,s),label:(null==c||null===(n=c.labels)||void 0===n?void 0:n[g])||g})})),qc=["message","options","validator"],Uc=["hidden","hideLabel","autoGenerate"];function Hc(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 $c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Hc(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Wc=function(e){var n,r,i,a=e.fieldEntry,l=e.allFields,u=ke(),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,O=u.handleBlur,S=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],F=!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)),P=c(Fc),R=be(s,(function(e){return e.data[A]})),I=be(s,(function(e){var n;return null===(n=e.results)||void 0===n?void 0:n[A]})),D=be(s,(function(e){var n;return null===(n=e.fieldStates)||void 0===n?void 0:n[A]})),L=be(s,(function(e){return e.preSubmitValidation}));if(j){var z=y.readOnlyMarkdown;return o.createElement(z,{content:a[2]})}if(F)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,V=M.autoGenerate,q=Y(M,Uc);if(!0===N)return!1;var U=L||C||P;if(!I)return!1;var H=I.prohibited,$=I.required,W=I.optional,G=I.hasErrors,K=I.data;if(!0===H||!$&&!W&&void 0===K)return!1;if(h&&(""===R||void 0===R))return!1;if(h&&Array.isArray(S)&&S.includes(A)){var Z,X=y.hiddenData,Q=!0!==B&&((null==p||null===(Z=p.labels)||void 0===Z?void 0:Z[A])||A);return o.createElement(X,{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),le=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 $c($c({},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}),ue=te||"default";Array.isArray(te)&&(ue="select"),T&&(ue="@@render");var ce=(null==b?void 0:b[ue])||{},se=(null==k?void 0:k[A])||{},fe=$c($c($c($c($c({size:m},ne),ce),se),q),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=Y(e,qc),a=t;return r&&r.human?a=r.human:n[i]&&(a=Tc(n[i],r)),$c({message:a,options:r,validator:i},o)})):[]}(I,d);if(h){var he=y.readOnlyField,ge=Array.isArray(te)?"select":te||"string",me=ge.charAt(0).toUpperCase()+ge.slice(1),ve="readOnly".concat(me),ye=x[A]||y[ve]||y.readOnlyDefault;return o.createElement(he,pe({type:ge,name:A,label:ae,value:R,options:le,required:$,hasErrors:G,errors:de,size:m,component:ye,componentProps:fe},D))}var xe=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(Vc,{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:ue,name:A,label:ae,defaultValue:re,value:R,options:le,required:$,hasErrors:G,errors:de,validating:null==D?void 0:D.validating,dirty:null==D?void 0:D.dirty,component:ee,componentProps:fe,prepend:xe.prepend,append:xe.append,disabled:U,onChange:E,onFocus:_,onBlur:O});return V?o.createElement(zc,{fieldName:A,config:V,label:ae,disabled:U,onChange:E},Ee):Ee},Gc=o.memo(Wc),Kc=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"),_=we().setFieldValues,O=ke().fetchAdapter,S=Oe(),C=Lc({reservationId:n,url:s,token:f,label:r||n,fieldNames:i,setFieldValues:_,fetchAdapter:O}),A=C.generate,j=C.release,T=C.loading,P=be(S,(function(e){return e.reservations[n]})),R=P&&"active"===P.status,I=l();u((function(){I.current=R?P.fields:void 0}),[R,P]);var L=o.useCallback((function(e){var n={};return i.forEach((function(t){n[t]=e.data[t]})),n}),[i]),z=Ee(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:P.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")}(P.remaining)),!R&&o.createElement(k,{variant:"caption",sx:{color:"text.secondary"}},y),!R&&!T&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(re,null),disabled:a,onClick:A},d),T&&o.createElement(D,{size:"small",variant:"outlined",startIcon:o.createElement(F,{size:16,thickness:4}),disabled:!0},d),R&&!T&&o.createElement(D,{size:"small",variant:"outlined",color:"warning",startIcon:o.createElement(ie,null),disabled:a,onClick:j},E)),o.createElement(Fc.Provider,{value:R&&!w},c))};Kc.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)},Xc=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},Yc=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=ke(),g=h.variant,m=h.resolvedSlots,v=h.store,y=h.readOnly,b=s((function(){return Xc(a)}),[a]),x=be(v,(function(e){return b.length>0&&b.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)}))})),k=be(v,(function(e){return b.length>0&&b.every((function(n){var t,r=null===(t=e.results)||void 0===t?void 0:t[n];return!r||(!0===r.prohibited||!r.required&&!r.optional&&void 0===r.data)}))}));if(x)return!1;if(k&&y)return!1;var w=0===d&&"card"===g?m.sectionCard:Pe,E=a.map((function(n,t){return!1!==n&&(n&&"object"===he(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(Gc,{key:Zc(n,t),fieldEntry:n,allFields:a}))}));return o.createElement(w,{groupId:t,label:r,labelVariant:u,desc:i,descVariant:c,textAlign:f,noVisibleFields:k},l&&o.createElement(Kc,{groupId:t,config:l,label:r,fieldNames:Xc(a)},E),!l&&E)};Yc.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 Qc=o.memo(Yc),Jc=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&&ye(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=Tc(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 es(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 ns(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?es(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}Jc.propTypes={store:m.shape({getState:m.func.isRequired,subscribe:m.func.isRequired}).isRequired,errorMessages:m.shape({}).isRequired,translations:m.shape({}).isRequired};var ts=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)}}(),rs=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]&&ye(e[o],n[o])&&(t[o]=e[o])}return t},is=function(e){for(var n=Object.values(e),t=0;t<n.length;t++)if(n[t].dirty)return!0;return!1},os=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]:ye},as=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]):[]},ls=function(e,n,r,i){var o=function(e,n){return v(e,n)}(e,ns(ns({},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 ns(ns({},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 ns(ns({},e),n)}),{});return{preSubmitValidation:!1,hasErrors:a,isDirty:is(f),errors:l,results:u,data:p,asyncErrors:[],fieldStates:f}},us=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,O=a.renderSchema,S=a.data,C=a.transientData,A=a.fieldStates,j=a.disabled,T=a.translations,F=a.slots,P=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,V=a.obscuredFields,q=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 Ae(ls(_,S,C,A)));var Q=Y.current,J=l(null);null===J.current&&(J.current=new Ae({reservations:{},expiredNotification:void 0}));var ee=J.current,ne=l(S),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=rs(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)&&as(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(ns(ns({},l),{},{data:t,fieldStates:r,asyncErrors:[],preSubmitValidation:!1,isDirty:is(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(ns(ns({},l),{},{data:t,fieldStates:r,asyncErrors:o||[],preSubmitValidation:!1,isDirty:is(r)})),ie(ns(ns({},l),{},{asyncErrors:o||[]}),h),ae.current=void 0,e.abrupt("return");case 25:return g=ns({},r),d.forEach((function(e){var n=e.path;g[n]=ns(ns({},g[n]),{},{validating:!0})})),f.forEach((function(e){g[e]=ns(ns({},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]?ts(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=ns({},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=ns(ns({},l),{},{hasErrors:x.length>0,errors:x,asyncErrors:y,results:b}),w=Q.getState().preSubmitValidation,Q.setState(ns(ns({},k),{},{data:t,fieldStates:r,preSubmitValidation:!1,isDirty:is(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:is(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=!os(r,_.properties,M,z)(ne.current[r],i),f=ns(ns({},l),{},t({},r,i)),p=ns(ns({},c),{},t({},r,ns(ns({},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=ns({},i),c=ns({},a),s=[];l.forEach((function(n){var t=e(n,2),r=t[0],i=t[1],o=!os(r,_.properties,M,z)(ne.current[r],i);u[r]=i,c[r]=ns(ns({},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]),de=p((function(e){var n=e.target.name;Q.setState((function(e){return{fieldStates:ns(ns({},e.fieldStates),{},t({},n,ns(ns({},e.fieldStates[n]),{},{active:!0,inactive:!1})))}}))}),[Q]),he=p((function(e){var n=e.target.name;Q.setState((function(e){return{fieldStates:ns(ns({},e.fieldStates),{},t({},n,ns(ns({},e.fieldStates[n]),{},{active:!1,inactive:!0,touched:!0,pristine:!1})))}}))}),[Q]),ge=p((function(){var e=Q.getState(),n=e.hasErrors,t=e.fieldStates,r=te.current.onStatusUpdate;r&&r({preSubmitValidation:!1,hasErrors:n,isDirty:is(t)})}),[Q]),me=p((function(){ne.current=S,Q.setState(ls(_,S,C)),ge()}),[S,_,C,Q,ge]),ve=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=ns({},r),l=[],u=ns({},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=!os(n,_.properties,M,z)(ne.current[n],t);l=i.filter((function(e){return e.path!==n})).concat(l),u[n]=ns(ns({},o[n]),{},{dirty:s,clean:!s}),a[n]=c})),se(a,u,l)}}),[Q,_,z,M,se]),be=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=is(o);a&&a({preSubmitValidation:!0,hasErrors:t,errors:n,isDirty:l}),se(r,o,i)}),[Q,se]);u((function(){return ge(),function(){le.current&&cancelAnimationFrame(le.current);var e=ee.getState().reservations;Object.values(e).forEach((function(e){"active"===e.status&&e.releaseUrl&&Pc(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 ke=l(S);u((function(){ye(ke.current,S)||(ke.current=S,ne.current=S,Q.setState(ls(_,S,C)),ge())}),[S]);var we=l(C);u((function(){if(C&&!ye(C,we.current)){we.current=C;var n=Object.entries(C).filter((function(n){var t=e(n,2),r=t[0];return t[1]!==ke.current[r]})).map((function(n){var t=e(n,2);return{name:t[0],value:t[1]}}));n.length>0&&ve(n)}}),[C]);var Ee=s((function(){return{submitForm:be,resetForm:function(){me(),te.current.onReset&&te.current.onReset()},setFieldValue:function(e,n){return fe({target:{name:e,value:n}})},setFieldValues:pe}}),[be,me,fe,pe]),Oe=s((function(){return ns(ns({},dc),F)}),[F]),Se=s((function(){return{store:Q,api:Ee,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:P||{},fieldSlots:R||{},fieldSlotProps:I||{},renderComponentMap:D||{},fetchAdapter:L,handleFocus:de,handleBlur:he,handleFieldChange:fe,obscuredFields:V||[],obscuredGroups:q||[]}}),[Q,Ee,c,_,T,H,k,g,m,d,j,Oe,P,R,I,D,L,de,he,fe,V,q]);u((function(){var e=oe.current;if(w&&e){var n=function(e){"Enter"===e.key&&"TEXTAREA"!==e.target.tagName&&(re.current||(e.preventDefault(),be()))};return e.addEventListener("keydown",n),function(){return e.removeEventListener("keydown",n)}}}),[w,be]);var Ce=Q.getState().preSubmitValidation||j,je=Oe.reservationExpiredNotification;return o.createElement(xe.Provider,{value:Se},o.createElement(_e.Provider,{value:ee},o.createElement("form",{ref:oe,id:c,className:"formulator-form",disabled:Ce,onSubmit:function(e){e.preventDefault(),be()},onReset:function(e){e.preventDefault(),me(),te.current.onReset&&te.current.onReset()}},O.title&&o.createElement("h5",null,O.title),O.description&&o.createElement("h5",null,O.description),O.groups.map((function(e){var n=e.id,t=e.label,r=e.description,i=e.fields,a=e.autoGenerate;return k&&Array.isArray(q)&&q.includes(n)?o.createElement(fc,{key:"hidden-group-".concat(n),subject:"Der Bereich",label:t}):o.createElement(Qc,{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(Jc,{store:Q,errorMessages:H||{},translations:T||{}})),o.createElement(je,null)))};us.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 cs=function(e){var n=e.fileRef,t=e.onClick,r=e.loading,i=e.size,a=e.thumbnailUrl,l=(null==n?void 0:n.originalName)||(null==n?void 0:n.name);if(!l)return!1;var u,c,s=void 0!==(null==n?void 0:n.size)?(u=n.size)<1024?"".concat(u," B"):u<1048576?"".concat((u/1024).toFixed(1)," KB"):"".concat((u/1048576).toFixed(1)," MB"):void 0,f=(c=(null==n?void 0:n.mimeType)||(null==n?void 0:n.type))?c.startsWith("image/")?ae:"application/pdf"===c?le:c.startsWith("video/")?ue:c.startsWith("audio/")?ce:c.startsWith("text/")?se:oe:oe,p="medium"!==i,d=p?20:32,h=p?"body2":"body1",g=p?{px:1.5,py:1}:{px:2,py:1.5},m=o.createElement(f,{fontSize:p?"small":"medium",sx:{flexShrink:0}});a&&(m=o.createElement("img",{src:a,alt:"",style:{width:d,height:d,objectFit:"cover",borderRadius:4,flexShrink:0,display:"block"}})),r&&(m=o.createElement(F,{size:p?16:20,sx:{flexShrink:0}}));var v=o.createElement(A,{direction:"row",sx:{alignItems:"center",gap:1}},m,o.createElement(x,{sx:{flex:1,minWidth:0}},o.createElement(k,{variant:h,noWrap:!0},l)),s&&o.createElement(k,{variant:h,sx:{flexShrink:0,color:function(e){return e.palette.text.secondary}}},"(".concat(s,")")));return o.createElement(H,{elevation:0,variant:"outlined"},t&&o.createElement($,{sx:g,onClick:t},v),!t&&o.createElement(x,{sx:g},v))};cs.propTypes={fileRef:m.shape({originalName:m.string,name:m.string,mimeType:m.string,type:m.string,size:m.number}),onClick:m.func,loading:m.bool,size:m.oneOf(["small","medium"]),thumbnailUrl:m.string};var ss=function(n){var t=n.fileRef,l=n.onClose,c=n.onFetch,s=a(!0),f=e(s,2),p=f[0],d=f[1],h=a(void 0),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=a(void 0),_=e(E,2),O=_[0],S=_[1];u((function(){var e,n=function(){var n=r(i.mark((function n(){var r,o,a;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,c(t);case 2:if(o=n.sent,a=t.mimeType?new Blob([o],{type:t.mimeType}):o,e=URL.createObjectURL(a),v(e),null===(r=t.mimeType)||void 0===r||!r.startsWith("text/")){n.next=12;break}return n.t0=w,n.next=10,a.text();case 10:n.t1=n.sent,(0,n.t0)(n.t1);case 12:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return n().catch((function(e){return S(e.message)})).finally((function(){return d(!1)})),function(){e&&URL.revokeObjectURL(e)}}),[]);var C=null==t?void 0:t.mimeType,A=(null==t?void 0:t.originalName)||(null==t?void 0:t.name);return o.createElement(W,{open:!0,fullWidth:!0,maxWidth:"md",onClose:l},o.createElement(G,null,A),o.createElement(K,{sx:{p:0,minHeight:400,display:"flex",alignItems:"center",justifyContent:"center"}},p&&o.createElement(F,null),!p&&O&&o.createElement(k,{variant:"body2",sx:{p:3,color:function(e){return e.palette.error.main}}},O),!p&&!O&&m&&(null!=C&&C.startsWith("image/")?o.createElement("img",{src:m,alt:A,style:{maxWidth:"100%",maxHeight:"70vh"}}):"application/pdf"===C?o.createElement("iframe",{src:m,title:A,style:{width:"100%",height:"70vh",border:"none"}}):null!=C&&C.startsWith("video/")?o.createElement("video",{src:m,controls:!0,style:{width:"100%",maxHeight:"70vh"}}):null!=C&&C.startsWith("audio/")?o.createElement("audio",{src:m,controls:!0,style:{width:"100%"}}):!(null==C||!C.startsWith("text/"))&&o.createElement(j,{multiline:!0,fullWidth:!0,rows:20,value:null!=x?x:"",InputProps:{readOnly:!0},sx:{fontFamily:"monospace"}}))),o.createElement(Z,null,o.createElement(D,{onClick:l},"Schließen")))};ss.propTypes={fileRef:m.shape({originalName:m.string,name:m.string,mimeType:m.string,url:m.string}).isRequired,onClose:m.func.isRequired,onFetch:m.func.isRequired};var fs=function(n){var t,c=n.name,s=n.value,f=n.readOnly,p=n.onChange,d=n.mode,h=n.onUpload,g=n.onFetch,m=n.size,v=l(),y=a(!1),b=e(y,2),x=b[0],w=b[1],E=a(void 0),_=e(E,2),O=_[0],S=_[1],C=a(!1),j=e(C,2),T=j[0],P=j[1],R=a(!1),I=e(R,2),L=I[0],z=I[1],M=a(void 0),N=e(M,2),B=N[0],V=N[1],q=function(e){if(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){return}return e}}(s),U=null==q||null===(t=q.variants)||void 0===t?void 0:t["avatar-x128"];u((function(){var e;if(g&&U&&null!=q&&null!==(e=q.mimeType)&&void 0!==e&&e.startsWith("image/")){var n,t=function(){var e=r(i.mark((function e(){var t,r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g({url:U});case 2:t=e.sent,r=new Blob([t],{type:"image/webp"}),n=URL.createObjectURL(r),V(n);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return t().catch((function(){})),function(){n&&URL.revokeObjectURL(n),V(void 0)}}}),[U]);var H=function(){var e=r(i.mark((function e(){var n,t,r;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z(!0),e.prev=1,e.next=4,g(q);case 4:n=e.sent,t=URL.createObjectURL(n),(r=document.createElement("a")).href=t,r.download=q.originalName||q.name,r.click(),URL.revokeObjectURL(t),e.next=15;break;case 13:e.prev=13,e.t0=e.catch(1);case 15:z(!1);case 16:case"end":return e.stop()}}),e,null,[[1,13]])})));return function(){return e.apply(this,arguments)}}();if(f)return o.createElement(o.Fragment,null,o.createElement(cs,{fileRef:q,size:m,thumbnailUrl:B,loading:L,onClick:g?function(){var e;(e=null==q?void 0:q.mimeType)&&(e.startsWith("image/")||"application/pdf"===e||e.startsWith("video/")||e.startsWith("audio/")||e.startsWith("text/"))?P(!0):H()}:void 0}),T&&o.createElement(ss,{fileRef:q,onClose:function(){return P(!1)},onFetch:g}));var $=function(){var e=r(i.mark((function e(n){var t,r,o;return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null===(t=n.target.files)||void 0===t?void 0:t[0]){e.next=3;break}return e.abrupt("return");case 3:if(n.target.value="",S(void 0),"blob"!==d){e.next=8;break}return p({target:{name:c,value:r}}),e.abrupt("return");case 8:return w(!0),e.prev=9,e.next=12,h(r);case 12:o=e.sent,p({target:{name:c,value:o}}),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),S(e.t0.message);case 19:w(!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(cs,{fileRef:q,size:m,thumbnailUrl:B}),o.createElement("input",{ref:v,type:"file",style:{display:"none"},onChange:$}),o.createElement(D,{size:"small",variant:"outlined",disabled:x,onClick:function(){return v.current.click()},sx:{alignSelf:"flex-start"}},x&&o.createElement(F,{size:14,sx:{mr:1}}),"Choose file"),O&&o.createElement(k,{variant:"body2",sx:{color:function(e){return e.palette.error.main}}},O))};fs.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,onFetch:m.func,size:m.oneOf(["small","medium"])};var ps=["dirty","hasErrors","required","label","value","variant","options","baererToken","formElement"];function ds(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 hs=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=Y(n,ps),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 Pc(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,O=k.fetch,S=k.abort,C=k.options;return u((function(){O()}),[]),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?ds(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(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:O,abort:S},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(F,{size:20,thickness:4}))}}))};hs.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 gs=me(),ms=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(ge,{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=gs(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(F,{size:20,thickness:4}))}),o.createElement(j,pe({},n,{required:t,label:r,variant:a,onChange:i,InputProps:u}))}({required:l,disabled:u,label:r,onInputChange:y,variant:i,loading:a},e)}})};ms.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 vs=Q((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:ve(e.palette.primary.main,.12)},unchecked:{backgroundColor:e.palette.grey[200]}}})),ys=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=vs(),h=J(),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:De(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(fe,{fontSize:i?"large":"medium",htmlColor:h.palette.text.secondary})),s&&!g&&o.createElement(x,{mr:2,mb:-.5},o.createElement(ie,{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}})}})))};ys.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{zc as FormAutoGenerate,Xe as FormAutocomplete,tn as FormBoolean,qe as FormField,fs as FormFileInput,Kc as FormGroupAutoGenerate,Ge as FormNumber,hs as FormOptionsLoader,ys as FormPrimaryToggle,lc as FormReadOnlyBoolean,gn as FormReadOnlyField,rc as FormReadOnlyMarkdown,ic as FormReadOnlyNumber,sc as FormReadOnlyRepeater,oc as FormReadOnlySelect,vn as FormReadOnlyText,ln as FormRepeater,Qe as FormSelect,He as FormText,us as FormulatorForm,fc as HiddenData,pc as ReservationExpiredSnackbar,ms as SelectOrCreate,we as useFormContext,Ee as useFormSelector};
|
|
32
32
|
//# sourceMappingURL=index.js.map
|