/**
 * Minified by jsDelivr using Terser v5.48.0.
 * Original file: /npm/decap-cms-core@3.20.2/dist/decap-cms-core.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
/*! For license information please see decap-cms-core.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("prop-types"),require("decap-cms-ui-default"),require("immutable"),require("decap-cms-lib-util"),require("decap-cms-lib-widgets"),require("@emotion/react"),require("react-immutable-proptypes")):"function"==typeof define&&define.amd?define("DecapCmsCore",["react","react-dom","prop-types","decap-cms-ui-default","immutable","decap-cms-lib-util","decap-cms-lib-widgets","@emotion/react","react-immutable-proptypes"],t):"object"==typeof exports?exports.DecapCmsCore=t(require("react"),require("react-dom"),require("prop-types"),require("decap-cms-ui-default"),require("immutable"),require("decap-cms-lib-util"),require("decap-cms-lib-widgets"),require("@emotion/react"),require("react-immutable-proptypes")):e.DecapCmsCore=t(e.React,e.ReactDOM,e.DecapCmsDefaultExports.PropTypes,e.DecapCmsUiDefault,e.DecapCmsDefaultExports.Immutable,e.DecapCmsLibUtil,e.DecapCmsLibWidgets,e.DecapCmsDefaultExports.EmotionCore,e.DecapCmsDefaultExports.ImmutablePropTypes)}(window,(__WEBPACK_EXTERNAL_MODULE__44119__,__WEBPACK_EXTERNAL_MODULE__89545__,__WEBPACK_EXTERNAL_MODULE__17434__,__WEBPACK_EXTERNAL_MODULE__86171__,__WEBPACK_EXTERNAL_MODULE__2522__,__WEBPACK_EXTERNAL_MODULE__83135__,__WEBPACK_EXTERNAL_MODULE__87032__,__WEBPACK_EXTERNAL_MODULE__48110__,__WEBPACK_EXTERNAL_MODULE__18630__)=>(()=>{var __webpack_modules__={14940(e,t,n){"use strict";const r=n(75301),o=n.g.Date;class i extends o{constructor(e){super(e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}`}}e.exports=e=>{const t=new i(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},72170(e,t,n){"use strict";const r=n(75301);class o extends Date{constructor(e){super(e+"Z"),this.isFloating=!0}toISOString(){return`${this.getUTCFullYear()}-${r(2,this.getUTCMonth()+1)}-${r(2,this.getUTCDate())}T${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new o(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},54113(e){"use strict";e.exports=e=>{const t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},20133(e,t,n){"use strict";const r=n(75301);class o extends Date{constructor(e){super(`0000-01-01T${e}Z`),this.isTime=!0}toISOString(){return`${r(2,this.getUTCHours())}:${r(2,this.getUTCMinutes())}:${r(2,this.getUTCSeconds())}.${r(3,this.getUTCMilliseconds())}`}}e.exports=e=>{const t=new o(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}},75301(e){"use strict";e.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}},94780(e){"use strict";const t=1114112;class n extends Error{constructor(e,t,r){super("[ParserError] "+e,t,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,n)}}class r{constructor(e){this.parser=e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class o{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new r(this.parseStart)}parse(e){if(0===e.length||null==e.length)return;let t;for(this._buf=String(e),this.ii=-1,this.char=-1;!1===t||this.nextChar();)t=this.runOne();this._buf=null}nextChar(){return 10===this.char&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){let e;this.char=t;do{e=this.state.parser,this.runOne()}while(this.state.parser!==e);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(e){if("function"!=typeof e)throw new n("Tried to set state to non-existent state: "+JSON.stringify(e));this.state.parser=e}goto(e){return this.next(e),this.runOne()}call(e,t){t&&this.next(t),this.stack.push(this.state),this.state=new r(e)}callNow(e,t){return this.call(e,t),this.runOne()}return(e){if(0===this.stack.length)throw this.error(new n("Stack underflow"));void 0===e&&(e=this.state.buf),this.state=this.stack.pop(),this.state.returned=e}returnNow(e){return this.return(e),this.runOne()}consume(){if(this.char===t)throw this.error(new n("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(e){return e.line=this.line,e.col=this.col,e.pos=this.pos,e}parseStart(){throw new n("Must declare a parseStart method")}}o.END=t,o.Error=n,e.exports=o},40303(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=makeParserClass(__webpack_require__(94780)),module.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(e){super(e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=e=>{const t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t},module.exports.TomlError=TomlError;const createDateTime=__webpack_require__(54113),createDateTimeFloat=__webpack_require__(72170),createDate=__webpack_require__(14940),createTime=__webpack_require__(20133),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:"\t",[CHAR_n]:"\n",[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}const _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return!!hasOwnProperty.call(e,t)||("__proto__"===t&&defineProperty(e,"__proto__",descriptor),!1)}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return null!==e&&"object"==typeof e&&e[_type]===TABLE}const _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return null!==e&&"object"==typeof e&&e[_type]===INLINE_LIST}const LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return null!==e&&"object"==typeof e&&e[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(e){try{this.value=__webpack_require__.g.BigInt.asIntN(64,e)}catch(e){this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return null===this.value}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),__webpack_require__.g.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return null!==e&&"object"==typeof e&&e[_type]===INTEGER}const FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return null!==e&&"object"==typeof e&&e[_type]===FLOAT}function tomlType(e){const t=typeof e;if("object"===t){if(null===e)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){return class extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(e){let t=this.ctx,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(e){return this.state.resultTable?this.state.resultTable.push(e):this.state.resultTable=[e],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){return this.char===CHAR_PERIOD?this.next(this.parseAssignKeywordPostDot):this.char!==CHAR_SP&&this.char!==CTRL_I?this.goto(this.parseAssignEqual):void 0}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(e){return this.returnNow({key:this.state.resultTable,value:e})}parseComment(){do{if(this.char===e.END||this.char===CTRL_J)return this.return()}while(this.nextChar())}parseTableOrList(){if(this.char!==CHAR_LSQB)return this.goto(this.parseTable);this.next(this.parseList)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)&&(!isTable(this.ctx[e])||this.ctx[e][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[e]=this.ctx[e]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e))if(isTable(this.ctx[e]))this.ctx=this.ctx[e];else{if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine existing key"));this.ctx=this.ctx[e][this.ctx[e].length-1]}else this.ctx=this.ctx[e]=Table();return this.next(this.parseTableNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(e){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,e)||(this.ctx[e]=List()),isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(!isList(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));{const t=Table();this.ctx[e].push(t),this.ctx=t}return this.next(this.parseListEnd)}if(this.char===CHAR_PERIOD){if(hasKey(this.ctx,e)){if(isInlineList(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[e]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[e]))this.ctx=this.ctx[e][this.ctx[e].length-1];else{if(!isTable(this.ctx[e]))throw this.error(new TomlError("Can't redefine an existing key"));this.ctx=this.ctx[e]}}else this.ctx=this.ctx[e]=Table();return this.next(this.parseListNext)}throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(e){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(e){return this.returnNow(e)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return"-"===this.state.buf?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(!isAlphaNumHyphen(this.char)){if(0===this.state.buf.length)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}this.consume()}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let e="\\u00";return this.char<16&&(e+="0"),e+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${e} instead`))}recordMultiEscapeReplacement(e){return this.state.buf+=e,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(e){try{const t=parseInt(e,16);if(t>=SURROGATE_FIRST&&t<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(t))}catch(e){throw this.error(TomlError.wrap(e))}}parseSmallUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=4)return this.return()}parseLargeUnicode(){if(!isHexit(this.char))throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"));if(this.consume(),this.state.buf.length>=8)return this.return()}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(!isDigit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberFloat):isDigit(this.char)?void this.consume():this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS)throw this.error(new TomlError("Unexpected character, expected -, + or digit"));this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent)}parseNumberExponent(){if(!isDigit(this.char))return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf));this.consume()}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder,this.parseNumberInteger):isDigit(this.char)?(this.consume(),void(this.state.buf.length>4&&this.next(this.parseNumberInteger))):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(!isHexit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerOct(){if(!isOctit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseIntegerBin(){if(!isBit(this.char)){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const e=Integer(this.state.buf);if(e.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(e)}}this.consume()}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));this.consume()}parseTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}this.consume()}parseTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete datetime"));if(this.consume(),2===this.state.buf.length)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(!(this.state.buf.length<2&&isDigit(this.char))){if(2===this.state.buf.length&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}this.consume()}parseOnlyTimeSec(){if(!isDigit(this.char))throw this.error(new TomlError("Incomplete time"));if(this.consume(),2===this.state.buf.length)return this.next(this.parseOnlyTimeFractionMaybe)}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char!==CHAR_PERIOD)return this.return(createTime(this.state.result));this.state.buf="",this.next(this.parseOnlyTimeFraction)}parseOnlyTimeFraction(){if(!isDigit(this.char)){if(this.atEndOfWord()){if(0===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume()}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else{if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(1===this.state.buf.length)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char!==CHAR_HYPHEN&&this.char!==CHAR_PLUS){if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}this.consume(),this.next(this.parseTimeZoneHour)}}parseTimeZoneHour(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}parseTimeZoneSep(){if(this.char!==CHAR_COLON)throw this.error(new TomlError("Unexpected character in datetime, expected colon"));this.consume(),this.next(this.parseTimeZoneMin)}parseTimeZoneMin(){if(!isDigit(this.char))throw this.error(new TomlError("Unexpected character in datetime, expected digit"));if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}parseBoolean(){return this.char===CHAR_t?(this.consume(),this.next(this.parseTrue_r)):this.char===CHAR_f?(this.consume(),this.next(this.parseFalse_a)):void 0}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(e){if(this.state.resultArr){const t=this.state.resultArr[_contentType],n=tomlType(e);if(t!==n)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${t} and ${n}`))}else this.state.resultArr=InlineList(tomlType(e));return isFloat(e)||isInteger(e)?this.state.resultArr.push(e.valueOf()):this.state.resultArr.push(e),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(e){let t=this.state.resultTable,n=e.key.pop();for(let n of e.key){if(hasKey(t,n)&&(!isTable(t[n])||t[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));t=t[n]=t[n]||Table()}if(hasKey(t,n))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(e.value)||isFloat(e.value)?t[n]=e.value.valueOf():t[n]=e.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}}},34226(e){"use strict";e.exports=function(e,t){if(null==e.pos||null==e.line)return e;let n=e.message;if(n+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:\n`,t&&t.split){const r=t.split(/\n/),o=String(Math.min(r.length,e.line+3)).length;let i=" ";for(;i.length<o;)i+=" ";for(let t=Math.max(0,e.line-1);t<Math.min(r.length,e.line+2);++t){let a=String(t+1);if(a.length<o&&(a=" "+a),e.line===t){n+=a+"> "+r[t]+"\n",n+=i+"  ";for(let t=0;t<e.col;++t)n+=" ";n+="^\n"}else n+=a+": "+r[t]+"\n"}}return e.message=n+"\n",e}},42128(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return()=>({keyword:e,type:"number",schemaType:"array",macro:function([t,n]){return function(t,n){if(t>n||"exclusiveRange"===e&&t===n)throw new Error("There are no numbers in range")}(t,n),"range"===e?{minimum:t,maximum:n}:{exclusiveMinimum:t,exclusiveMaximum:n}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}})}},10212(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return()=>({keyword:e,type:"object",schemaType:"array",macro(t){if(0===t.length)return!0;if(1===t.length)return{required:t};const n="anyRequired"===e?"anyOf":"oneOf";return{[n]:t.map(e=>({required:[e]}))}},metaSchema:{type:"array",items:{type:"string"}}})}},53046(e,t){"use strict";function n(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(e,t){if(!e)return!0;const n=Object.keys(t.properties);return 0===n.length||{required:n}},dependencies:["properties"]}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=n},70695(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=(0,r(n(10212)).default)("anyRequired");t.default=o,e.exports=o},94671(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={},r={timestamp:()=>()=>Date.now(),datetime:()=>()=>(new Date).toISOString(),date:()=>()=>(new Date).toISOString().slice(0,10),time:()=>()=>(new Date).toISOString().slice(11),random:()=>()=>Math.random(),randomint:e=>{var t;const n=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:2;return()=>Math.floor(Math.random()*n)},seq:e=>{var t;const r=null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"";return n[r]||(n[r]=0),()=>n[r]++}},o=Object.assign(function(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(e,t,n){if(!n.opts.useDefaults||n.compositeRule)return()=>!0;const r={};for(const t in e)r[t]=i(e[t]);const o="empty"===n.opts.useDefaults;return t=>{for(const n in e)(void 0===t[n]||o&&(null===t[n]||""===t[n]))&&(t[n]=r[n]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}},{DEFAULTS:r});function i(e){return"object"==typeof e?function({func:e,args:t}){const n=r[e];return a(e,n),n(t)}(e):function(e=""){const t=r[e];return a(e,t),t()}(e)}function a(e,t){if(!t)throw new Error(`invalid "dynamicDefaults" keyword property value: ${e}`)}t.default=o,e.exports=o},17279(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=(0,r(n(42128)).default)("exclusiveRange");t.default=o,e.exports=o},54888(e,t,n){"use strict";var r=n(36533).hp;Object.defineProperty(t,"__esModule",{value:!0});const o={Object:Object,Array:Array,Function:Function,Number:Number,String:String,Date:Date,RegExp:RegExp};void 0!==r&&(o.Buffer=r),"undefined"!=typeof Promise&&(o.Promise=Promise);const i=Object.assign(function(){return{keyword:"instanceof",schemaType:["string","array"],compile(e){if("string"==typeof e){const t=a(e);return e=>e instanceof t}if(Array.isArray(e)){const t=e.map(a);return e=>{for(const n of t)if(e instanceof n)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}},{CONSTRUCTORS:o});function a(e){const t=o[e];if(t)return t;throw new Error(`invalid "instanceof" keyword value ${e}`)}t.default=i,e.exports=i},39341(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=(0,r(n(10212)).default)("oneRequired");t.default=o,e.exports=o},12164(e,t){"use strict";function n(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(e){return 0===e.length||(1===e.length?{not:{required:e}}:{not:{anyOf:e.map(e=>({required:[e]}))}})},metaSchema:{type:"array",items:{type:"string"}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=n},93317(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=(0,r(n(42128)).default)("range");t.default=o,e.exports=o},80860(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(53046)),i=e=>e.addKeyword((0,o.default)());t.default=i,e.exports=i},96993(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(70695)),i=e=>e.addKeyword((0,o.default)());t.default=i,e.exports=i},7981(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(94671)),i=e=>e.addKeyword((0,o.default)());t.default=i,e.exports=i},69729(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(17279)),i=e=>e.addKeyword((0,o.default)());t.default=i,e.exports=i},12370(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(54888)),i=e=>e.addKeyword((0,o.default)());t.default=i,e.exports=i},98939(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(39341)),i=e=>e.addKeyword((0,o.default)());t.default=i,e.exports=i},33082(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(12164)),i=e=>e.addKeyword((0,o.default)());t.default=i,e.exports=i},97679(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(93317)),i=e=>e.addKeyword((0,o.default)());t.default=i,e.exports=i},83876(e){e.exports=function(){return null}},97579(e){function t(){throw new Error("js-yaml is not bundled with Decap CMS; pass a yaml engine to gray-matter instead.")}e.exports={safeLoad:t,safeDump:t}},92178(e){"use strict";e.exports=function(e){if(e)throw e}},84933(e,t){"use strict";t.toByteArray=function(e){var t,n,i=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}(e),a=i[0],s=i[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,u=s>0?a-4:a;for(n=0;n<u;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(l(e,s,s+a>c?c:s+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(s(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},36533(e,t,n){"use strict";const r=n(84933),o=n(63328),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=s(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const o=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?s(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(o)return r?-1:V(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){let i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function w(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(J(r))return a;e[n+a]=r}return a}function _(e,t,n,r){return G(V(t,e.length-n),e,n,r)}function x(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return G(K(t),e,n,r)}function S(e,t,n,r){return G(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))o+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,o){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n);for(let e=0;e<s;++e)if(c[e]!==u[e]){i=c[e],a=u[e];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function P(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function O(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function R(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=Q[e[r]];return o}function A(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,o){z(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function N(e,t,n,r,o){z(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function $(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return t=+t,n>>>=0,i||$(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,i){return t=+t,n>>>=0,i||$(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=X(function(e){B(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))}),l.prototype.readBigUInt64BE=X(function(e){B(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)}),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=X(function(e){B(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),l.prototype.readBigInt64BE=X(function(e){B(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=X(function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=X(function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=X(function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=X(function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=l.isBuffer(e)?e:l.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const F={};function U(e,t,n){F[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function z(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new F.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){B(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(r,o,i)}function B(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw B(e,n),new F.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),U("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=q(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=q(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function K(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const Q=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function X(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},97785(e,t,n){"use strict";var r=n(79524),o=n(64811),i=n(46255),a=n(12728);e.exports=a||r.call(i,o)},96440(e,t,n){"use strict";var r=n(79524),o=n(64811),i=n(97785);e.exports=function(){return i(r,o,arguments)}},64811(e){"use strict";e.exports=Function.prototype.apply},46255(e){"use strict";e.exports=Function.prototype.call},92427(e,t,n){"use strict";var r=n(79524),o=n(71102),i=n(46255),a=n(97785);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(r,i,e)}},12728(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},17695(e,t,n){"use strict";var r=n(7755),o=n(39886),i=n(92427),a=n(96440);e.exports=function(e){var t=i(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},o?o(e.exports,"apply",{value:a}):e.exports.apply=a},98801(e,t,n){"use strict";var r=n(49336),o=n(92427),i=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o([n]):n}},95866(e){"use strict";e.exports=function(e,t){var n,r=String(e),o=0;if("string"!=typeof t)throw new Error("Expected character");for(n=r.indexOf(t);-1!==n;)o++,n=r.indexOf(t,n+t.length);return o}},4171(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",l="month",c="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),i=n-o<0,a=t.clone().add(r+(i?-1:1),l);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:s,d:a,D:d,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=g;var w="$isDayjsObject",_=function(e){return e instanceof E||!(!e||!e[w])},x=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(v=o),o||!r&&v},k=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},S=y;S.l=x,S.i=_,S.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return S},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return k(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<k(e)},m.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!S.u(t)||t,f=S.p(e),p=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return c?p(1,0):p(31,11);case l:return c?p(1,m):p(0,m+1);case s:var b=this.$locale().weekStart||0,w=(g<b?g+7:g)-b;return p(c?y-w:y+(6-w),m);case a:case d:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var s,c=S.p(e),f="set"+(this.$u?"UTC":""),p=(s={},s[a]=f+"Date",s[d]=f+"Date",s[l]=f+"Month",s[u]=f+"FullYear",s[i]=f+"Hours",s[o]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[c],h=c===a?this.$D+(t-this.$W):t;if(c===l||c===u){var g=this.clone().set(d,1);g.$d[p](h),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[S.p(e)]()},m.add=function(n,c){var d,f=this;n=Number(n);var p=S.p(c),h=function(e){var t=k(f);return S.w(t.date(t.date()+Math.round(e*n)),f)};if(p===l)return this.set(l,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===a)return h(1);if(p===s)return h(7);var g=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,m=this.$d.getTime()+n*g;return S.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return S.s(i%12||12,e,"0")},g=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return S.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(i,a,!0);case"A":return g(i,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,f){var p,h=this,g=S.p(d),m=k(n),y=(m.utcOffset()-this.utcOffset())*e,v=this-m,b=function(){return S.m(h,m)};switch(g){case u:p=b()/12;break;case l:p=b();break;case c:p=b()/3;break;case s:p=(v-y)/6048e5;break;case a:p=(v-y)/864e5;break;case i:p=v/t;break;case o:p=v/e;break;case r:p=v/1e3;break;default:p=v}return f?p:S.a(p)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return b[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return S.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),C=E.prototype;return k.prototype=C,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",l],["$y",u],["$D",d]].forEach(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,E,k),e.$i=!0),k},k.locale=x,k.isDayjs=_,k.unix=function(e){return k(1e3*e)},k.en=b[v],k.Ls=b,k.p={},k}()},20022(e,t,n){"use strict";var r=n(39886),o=n(63429),i=n(71102),a=n(25667);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4938(e,t,n){"use strict";var r=n(5187),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=n(20022),l=n(491)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?s(e,t,n,!0):s(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)c(e,i[s],t[i[s]],n[i[s]])};u.supportsDescriptors=!!l,e.exports=u},91540(e,t){t.TF=function(e){return e.replace(/[^\u0000-\u007e]/g,function(e){return r[e]||e})};for(var n=[{base:" ",chars:" "},{base:"0",chars:"߀"},{base:"A",chars:"ⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"ÆǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷＢḂḄḆɃƁ"},{base:"C",chars:"ⒸＣꜾḈĆCĈĊČÇƇȻ"},{base:"D",chars:"ⒹＤḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"Ð"},{base:"DZ",chars:"ǱǄ"},{base:"Dz",chars:"ǲǅ"},{base:"E",chars:"ɛⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻＦḞƑꝻ"},{base:"G",chars:"ⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿＪĴɈȷ"},{base:"K",chars:"ⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"Ǉ"},{base:"Lj",chars:"ǈ"},{base:"M",chars:"ⓂＭḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃＮǸŃÑṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"Ǌ"},{base:"Nj",chars:"ǋ"},{base:"O",chars:"ⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆＱꝖꝘɊ"},{base:"R",chars:"ⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"Þ"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋＶṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌＷẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍＸẊẌ"},{base:"Y",chars:"ⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"æǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑｂḃḅḇƀƃɓƂ"},{base:"c",chars:"ｃⓒćĉċčçḉƈȼꜿↄ"},{base:"d",chars:"ⓓｄḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"ð"},{base:"dz",chars:"ǳǆ"},{base:"e",chars:"ⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕｆḟƒ"},{base:"ff",chars:"ﬀ"},{base:"fi",chars:"ﬁ"},{base:"fl",chars:"ﬂ"},{base:"ffi",chars:"ﬃ"},{base:"ffl",chars:"ﬄ"},{base:"g",chars:"ⓖｇǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙｊĵǰɉ"},{base:"k",chars:"ⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"ǉ"},{base:"m",chars:"ⓜｍḿṁṃɱɯ"},{base:"n",chars:"ⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥлԉ"},{base:"nj",chars:"ǌ"},{base:"o",chars:"ⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟｐṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠｑɋꝗꝙ"},{base:"r",chars:"ⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢｓśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"ß"},{base:"t",chars:"ⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"þ"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥｖṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧｘẋẍ"},{base:"y",chars:"ⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",chars:"ⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],r={},o=0;o<n.length;o+=1)for(var i=n[o].chars,a=0;a<i.length;a+=1)r[i[a]]=n[o].base},57678(e,t,n){"use strict";var r,o=n(92427),i=n(25667);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},39886(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},38004(e){"use strict";e.exports=EvalError},41488(e){"use strict";e.exports=Error},96469(e){"use strict";e.exports=RangeError},12557(e){"use strict";e.exports=ReferenceError},63429(e){"use strict";e.exports=SyntaxError},71102(e){"use strict";e.exports=TypeError},85966(e){"use strict";e.exports=URIError},4927(e,t,n){"use strict";var r=n(71102);e.exports=function(e){if(null==e)throw new r(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},25153(e){"use strict";e.exports=Object},65962(e){"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},52083(e,t,n){var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},53739(e,t,n){"use strict";var r=n(44524);function o(e,t){for(var n in t)i(t,n)&&(e[n]=t[n])}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e){r(e)||(e={});for(var t=arguments.length,n=1;n<t;n++){var i=arguments[n];r(i)&&o(e,i)}return e}},49461(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},69992(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=n(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))}),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},79524(e,t,n){"use strict";var r=n(69992);e.exports=Function.prototype.bind||r},82256(e){var t;t={},e.exports=t,t.simpleFilter=function(e,n){return n.filter(function(n){return t.test(e,n)})},t.test=function(e,n){return null!==t.match(e,n)},t.match=function(e,t,n){n=n||{};var r,o=0,i=[],a=t.length,s=0,l=0,c=n.pre||"",u=n.post||"",d=n.caseSensitive&&t||t.toLowerCase();e=n.caseSensitive&&e||e.toLowerCase();for(var f=0;f<a;f++)r=t[f],d[f]===e[o]?(r=c+r+u,o+=1,l+=1+l):l=0,s+=l,i[i.length]=r;return o===e.length?(s=d===e?1/0:s,{rendered:i.join(""),score:s}):null},t.filter=function(e,n,r){return n&&0!==n.length?"string"!=typeof e?n:(r=r||{},n.reduce(function(n,o,i,a){var s=o;r.extract&&(s=r.extract(o));var l=t.match(e,s,r);return null!=l&&(n[n.length]={string:l.rendered,score:l.score,index:i,original:o}),n},[]).sort(function(e,t){return t.score-e.score||e.index-t.index})):[]}},49336(e,t,n){"use strict";var r,o=n(25153),i=n(41488),a=n(38004),s=n(96469),l=n(12557),c=n(63429),u=n(71102),d=n(85966),f=n(77412),p=n(52418),h=n(57958),g=n(47384),m=n(250),y=n(51844),v=n(47279),b=Function,w=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=n(25667),x=n(39886),k=function(){throw new u},S=_?function(){try{return k}catch(e){try{return _(arguments,"callee").get}catch(e){return k}}}():k,E=n(21514)(),C=n(14252),T=n(23752),P=n(60248),O=n(64811),R=n(46255),A={},I="undefined"!=typeof Uint8Array&&C?C(Uint8Array):r,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":E&&C?C([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":A,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&C?C(C([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&C?C((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&C?C((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&C?C(""[Symbol.iterator]()):r,"%Symbol%":E?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":I,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":T,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":P};if(C)try{null.error}catch(e){var L=C(C(e));D["%Error.prototype%"]=L}var N=function e(t){var n;if("%AsyncFunction%"===t)n=w("async function () {}");else if("%GeneratorFunction%"===t)n=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=w("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&C&&(n=C(o.prototype))}return D[t]=n,n},$={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=n(79524),j=n(72740),F=M.call(R,Array.prototype.concat),U=M.call(O,Array.prototype.splice),q=M.call(R,String.prototype.replace),z=M.call(R,String.prototype.slice),B=M.call(R,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(e,t){var n,r=e;if(j($,r)&&(r="%"+(n=$[r])[0]+"%"),j(D,r)){var o=D[r];if(o===A&&(o=N(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=z(e,0,1),n=z(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return q(e,H,function(e,t,n,o){r[r.length]=n?q(o,W,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=V("%"+r+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(r=l[0],U(n,F([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=z(p,0,1),g=z(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===g||"'"===g||"`"===g)&&h!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),j(D,i="%"+(r+="."+p)+"%"))a=D[i];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&d+1>=n.length){var m=_(a,p);a=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[p]}else f=j(a,p),a=a[p];f&&!s&&(D[i]=a)}}return a}},23752(e,t,n){"use strict";var r=n(25153);e.exports=r.getPrototypeOf||null},60248(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},14252(e,t,n){"use strict";var r=n(60248),o=n(23752),i=n(57678);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},51333(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},25667(e,t,n){"use strict";var r=n(51333);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},49517(e){"use strict";e.exports=function(e,t){let n=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===n)throw new Error('gray-matter engine "'+e+'" is not registered');return"function"==typeof n&&(n={parse:n}),n}},13576(module,exports,__webpack_require__){"use strict";const yaml=__webpack_require__(97579),engines=exports=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(e,t){const n=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,n.replacer,n.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return!1!==wrap&&(str="(function() {\nreturn "+str.trim()+";\n}());"),eval(str)||{}}catch(e){if(!1!==wrap&&/(unexpected|identifier)/i.test(e.message))return parse(str,options,!1);throw new SyntaxError(e)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}},491(e,t,n){"use strict";var r=n(39886),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},21514(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(9712);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},9712(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},75630(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(79524);e.exports=i.call(r,o)},72740(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(79524);e.exports=i.call(r,o)},63328(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*g}},36488(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=l.source}g.prototype.content=e;var m=[];function y(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n;m.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){v(r)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function x(){var e=h(),n=v(o);if(n){if(_(),!v(i))return y("property missing ':'");var r=v(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return b(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},21815(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},44524(e){"use strict";e.exports=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)}},14479(e){"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},53389(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},67543(e){var t=Object.prototype.toString;function n(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var r=typeof e;if("boolean"===r)return"boolean";if("string"===r)return"string";if("number"===r)return"number";if("symbol"===r)return"symbol";if("function"===r)return"GeneratorFunction"===n(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){return!(!e.constructor||"function"!=typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(n(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(r=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}},18054(e,t,n){var r=n(85592)(n(30907),"DataView");e.exports=r},83219(e,t,n){var r=n(42130),o=n(41924),i=n(14743),a=n(11755),s=n(45203);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},81690(e,t,n){var r=n(18514),o=n(57603);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},67321(e,t,n){var r=n(93044),o=n(44066),i=n(18461),a=n(74417),s=n(2777);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},1587(e,t,n){var r=n(18514),o=n(57603);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},32565(e,t,n){var r=n(85592)(n(30907),"Map");e.exports=r},60111(e,t,n){var r=n(54614),o=n(69504),i=n(9251),a=n(75791),s=n(81511);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},8246(e,t,n){var r=n(85592)(n(30907),"Promise");e.exports=r},84099(e,t,n){var r=n(85592)(n(30907),"Set");e.exports=r},88817(e,t,n){var r=n(60111),o=n(82206),i=n(34697);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},95963(e,t,n){var r=n(67321),o=n(21306),i=n(33180),a=n(55247),s=n(22835),l=n(79179);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},27759(e,t,n){var r=n(30907).Symbol;e.exports=r},59386(e,t,n){var r=n(30907).Uint8Array;e.exports=r},96221(e,t,n){var r=n(85592)(n(30907),"WeakMap");e.exports=r},46047(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},73791(e){e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},76259(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},31840(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},40239(e,t,n){var r=n(63117);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},35687(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},13737(e,t,n){var r=n(65562),o=n(81750),i=n(52619),a=n(23446),s=n(62159),l=n(3133),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],g=h.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);return h}},95862(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},49130(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},48918(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},63169(e,t,n){var r=n(1547)("length");e.exports=r},67600(e){e.exports=function(e){return e.split("")}},8971(e,t,n){var r=n(23706),o=n(69506);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},13853(e,t,n){var r=n(23706),o=n(69506),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},87831(e,t,n){var r=n(69506);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},92855(e,t,n){var r=n(12507);e.exports=function(e,t,n,o){return r(e,function(e,r,i){t(o,e,n(e),i)}),o}},23706(e,t,n){var r=n(84665);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},66151(e){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},18514(e,t,n){var r=n(69323),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},12507(e,t,n){var r=n(1843),o=n(65431)(r);e.exports=o},45741(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},9318(e,t,n){var r=n(49130),o=n(65593);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},95795(e,t,n){var r=n(3375)();e.exports=r},1843(e,t,n){var r=n(95795),o=n(92096);e.exports=function(e,t){return e&&r(e,t,o)}},73208(e,t,n){var r=n(72155),o=n(5155);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},1405(e,t,n){var r=n(49130),o=n(52619);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},41490(e,t,n){var r=n(27759),o=n(4817),i=n(17748),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},56147(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},63117(e,t,n){var r=n(45741),o=n(49441),i=n(22541);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},12960(e,t,n){var r=n(41490),o=n(2292);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},22848(e,t,n){var r=n(12862),o=n(2292);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},12862(e,t,n){var r=n(95963),o=n(49689),i=n(68524),a=n(30399),s=n(71663),l=n(52619),c=n(23446),u=n(3133),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var v=l(e),b=l(t),w=v?f:s(e),_=b?f:s(t),x=(w=w==d?p:w)==p,k=(_=_==d?p:_)==p,S=w==_;if(S&&c(e)){if(!c(t))return!1;v=!0,x=!1}if(S&&!x)return y||(y=new r),v||u(e)?o(e,t,n,g,m,y):i(e,t,w,n,g,m,y);if(!(1&n)){var E=x&&h.call(e,"__wrapped__"),C=k&&h.call(t,"__wrapped__");if(E||C){var T=E?e.value():e,P=C?t.value():t;return y||(y=new r),m(T,P,n,g,y)}}return!!S&&(y||(y=new r),a(e,t,n,g,m,y))}},23653(e,t,n){var r=n(95963),o=n(22848);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new r;if(i)var h=i(d,f,u,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},49441(e){e.exports=function(e){return e!=e}},54401(e,t,n){var r=n(20860),o=n(12958),i=n(69323),a=n(48815),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},57163(e,t,n){var r=n(41490),o=n(2292);e.exports=function(e){return o(e)&&"[object RegExp]"==r(e)}},85283(e,t,n){var r=n(41490),o=n(5300),i=n(2292),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},93411(e,t,n){var r=n(13469),o=n(83572),i=n(34846),a=n(52619),s=n(24525);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},92322(e,t,n){var r=n(78861),o=n(59692),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},15045(e,t,n){var r=n(69323),o=n(78861),i=n(81779),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},57603(e){e.exports=function(){}},36862(e,t,n){var r=n(12507),o=n(90644);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},13469(e,t,n){var r=n(23653),o=n(67482),i=n(94351);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},83572(e,t,n){var r=n(22848),o=n(12438),i=n(50997),a=n(95304),s=n(35678),l=n(94351),c=n(5155);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},53912(e,t,n){var r=n(95963),o=n(8971),i=n(95795),a=n(28342),s=n(69323),l=n(17999),c=n(55760);e.exports=function e(t,n,u,d,f){t!==n&&i(n,function(i,l){if(f||(f=new r),s(i))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),i,l+"",t,n,f):void 0;void 0===p&&(p=i),o(t,l,p)}},l)}},28342(e,t,n){var r=n(8971),o=n(15196),i=n(85979),a=n(63549),s=n(28879),l=n(81750),c=n(52619),u=n(41891),d=n(23446),f=n(20860),p=n(69323),h=n(41281),g=n(3133),m=n(55760),y=n(94514);e.exports=function(e,t,n,v,b,w,_){var x=m(e,n),k=m(t,n),S=_.get(k);if(S)r(e,n,S);else{var E=w?w(x,k,n+"",e,t,_):void 0,C=void 0===E;if(C){var T=c(k),P=!T&&d(k),O=!T&&!P&&g(k);E=k,T||P||O?c(x)?E=x:u(x)?E=a(x):P?(C=!1,E=o(k,!0)):O?(C=!1,E=i(k,!0)):E=[]:h(k)||l(k)?(E=x,l(x)?E=y(x):p(x)&&!f(x)||(E=s(k))):C=!1}C&&(_.set(k,E),b(E,k,v,w,_),_.delete(k)),r(e,n,E)}}},49449(e,t,n){var r=n(95862),o=n(73208),i=n(93411),a=n(36862),s=n(10899),l=n(41155),c=n(19812),u=n(34846),d=n(52619);e.exports=function(e,t,n){t=t.length?r(t,function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e}):[u];var f=-1;t=r(t,l(i));var p=a(e,function(e,n,o){return{criteria:r(t,function(t){return t(e)}),index:++f,value:e}});return s(p,function(e,t){return c(e,t,n)})}},3547(e,t,n){var r=n(21946),o=n(50997);e.exports=function(e,t){return r(e,t,function(t,n){return o(e,n)})}},21946(e,t,n){var r=n(73208),o=n(604),i=n(72155);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=r(e,c);n(u,c)&&o(l,i(c,e),u)}return l}},1547(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},38645(e,t,n){var r=n(73208);e.exports=function(e){return function(t){return r(t,e)}}},36936(e,t,n){var r=n(34846),o=n(58619),i=n(19599);e.exports=function(e,t){return i(o(e,t,r),e+"")}},604(e,t,n){var r=n(13853),o=n(72155),i=n(62159),a=n(69323),s=n(5155);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var g=f[p];void 0===(h=l?l(g,p,f):void 0)&&(h=a(g)?g:i(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},28708(e,t,n){var r=n(34846),o=n(68302),i=o?function(e,t){return o.set(e,t),e}:r;e.exports=i},77680(e,t,n){var r=n(86148),o=n(84665),i=n(34846),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},72238(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},10899(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},65562(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},91978(e,t,n){var r=n(27759),o=n(95862),i=n(52619),a=n(97964),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},70006(e,t,n){var r=n(15082),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},41155(e){e.exports=function(e){return function(t){return e(t)}}},3371(e,t,n){var r=n(88817),o=n(40239),i=n(35687),a=n(80329),s=n(76215),l=n(55929);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=i;else if(d>=200){var g=t?null:s(e);if(g)return l(g);f=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<d;){var m=e[c],y=t?t(m):m;if(m=n||0!==m?m:0,f&&y==y){for(var v=h.length;v--;)if(h[v]===y)continue e;t&&h.push(y),p.push(m)}else u(h,y,n)||(h!==p&&h.push(y),p.push(m))}return p}},80329(e){e.exports=function(e,t){return e.has(t)}},72155(e,t,n){var r=n(52619),o=n(95304),i=n(64352),a=n(17164);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},3440(e,t,n){var r=n(72238);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},67157(e,t,n){var r=n(63117);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},37074(e,t,n){var r=n(63117);e.exports=function(e,t){for(var n=-1,o=e.length;++n<o&&r(t,e[n],0)>-1;);return n}},22859(e,t,n){var r=n(59386);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},15196(e,t,n){e=n.nmd(e);var r=n(30907),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},85979(e,t,n){var r=n(22859);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},67500(e,t,n){var r=n(97964);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}},19812(e,t,n){var r=n(67500);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,l=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=l?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},28686(e){var t=Math.max;e.exports=function(e,n,r,o){for(var i=-1,a=e.length,s=r.length,l=-1,c=n.length,u=t(a-s,0),d=Array(c+u),f=!o;++l<c;)d[l]=n[l];for(;++i<s;)(f||i<a)&&(d[r[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}},84278(e){var t=Math.max;e.exports=function(e,n,r,o){for(var i=-1,a=e.length,s=-1,l=r.length,c=-1,u=n.length,d=t(a-l,0),f=Array(d+u),p=!o;++i<d;)f[i]=e[i];for(var h=i;++c<u;)f[h+c]=n[c];for(;++s<l;)(p||i<a)&&(f[h+r[s]]=e[i++]);return f}},63549(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},27145(e,t,n){var r=n(13853),o=n(23706);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},73703(e,t,n){var r=n(30907)["__core-js_shared__"];e.exports=r},12517(e){e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},35650(e,t,n){var r=n(73791),o=n(92855),i=n(93411),a=n(52619);e.exports=function(e,t){return function(n,s){var l=a(n)?r:o,c=t?t():{};return l(n,e,i(s,2),c)}}},32917(e,t,n){var r=n(36936),o=n(39542);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}},65431(e,t,n){var r=n(90644);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},3375(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},37540(e,t,n){var r=n(88521),o=n(30907);e.exports=function(e,t,n){var i=1&t,a=r(e);return function t(){return(this&&this!==o&&this instanceof t?a:e).apply(i?n:this,arguments)}}},88521(e,t,n){var r=n(18514),o=n(69323);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),i=e.apply(n,t);return o(i)?i:n}}},79376(e,t,n){var r=n(46047),o=n(88521),i=n(23969),a=n(53839),s=n(8145),l=n(55360),c=n(30907);e.exports=function(e,t,n){var u=o(e);return function o(){for(var d=arguments.length,f=Array(d),p=d,h=s(o);p--;)f[p]=arguments[p];var g=d<3&&f[0]!==h&&f[d-1]!==h?[]:l(f,h);return(d-=g.length)<n?a(e,t,i,o.placeholder,void 0,f,g,void 0,void 0,n-d):r(this&&this!==c&&this instanceof o?u:e,this,f)}}},64439(e,t,n){var r=n(1587),o=n(22878),i=n(58991),a=n(94222),s=n(52619),l=n(5101);e.exports=function(e){return o(function(t){var n=t.length,o=n,c=r.prototype.thru;for(e&&t.reverse();o--;){var u=t[o];if("function"!=typeof u)throw new TypeError("Expected a function");if(c&&!d&&"wrapper"==a(u))var d=new r([],!0)}for(o=d?o:n;++o<n;){u=t[o];var f=a(u),p="wrapper"==f?i(u):void 0;d=p&&l(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[a(p[0])].apply(d,p[3]):1==u.length&&l(u)?d[f]():d.thru(u)}return function(){var e=arguments,r=e[0];if(d&&1==e.length&&s(r))return d.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}},23969(e,t,n){var r=n(28686),o=n(84278),i=n(12517),a=n(88521),s=n(53839),l=n(8145),c=n(74788),u=n(55360),d=n(30907);e.exports=function e(t,n,f,p,h,g,m,y,v,b){var w=128&n,_=1&n,x=2&n,k=24&n,S=512&n,E=x?void 0:a(t);return function C(){for(var T=arguments.length,P=Array(T),O=T;O--;)P[O]=arguments[O];if(k)var R=l(C),A=i(P,R);if(p&&(P=r(P,p,h,k)),g&&(P=o(P,g,m,k)),T-=A,k&&T<b){var I=u(P,R);return s(t,n,e,C.placeholder,f,P,I,y,v,b-T)}var D=_?f:this,L=x?D[t]:t;return T=P.length,y?P=c(P,y):S&&T>1&&P.reverse(),w&&v<T&&(P.length=v),this&&this!==d&&this instanceof C&&(L=E||a(L)),L.apply(D,P)}}},14394(e,t,n){var r=n(46047),o=n(88521),i=n(30907);e.exports=function(e,t,n,a){var s=1&t,l=o(e);return function t(){for(var o=-1,c=arguments.length,u=-1,d=a.length,f=Array(d+c),p=this&&this!==i&&this instanceof t?l:e;++u<d;)f[u]=a[u];for(;c--;)f[u++]=arguments[++o];return r(p,s?n:this,f)}}},53839(e,t,n){var r=n(5101),o=n(54955),i=n(68291);e.exports=function(e,t,n,a,s,l,c,u,d,f){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var h=[e,t,s,p?l:void 0,p?c:void 0,p?void 0:l,p?void 0:c,u,d,f],g=n.apply(void 0,h);return r(e)&&o(g,h),g.placeholder=a,i(g,e,t)}},76215(e,t,n){var r=n(84099),o=n(21228),i=n(55929),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},67987(e,t,n){var r=n(28708),o=n(37540),i=n(79376),a=n(23969),s=n(14394),l=n(58991),c=n(93375),u=n(54955),d=n(68291),f=n(26911),p=Math.max;e.exports=function(e,t,n,h,g,m,y,v){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=h?h.length:0;if(w||(t&=-97,h=g=void 0),y=void 0===y?y:p(f(y),0),v=void 0===v?v:f(v),w-=g?g.length:0,64&t){var _=h,x=g;h=g=void 0}var k=b?void 0:l(e),S=[e,t,n,h,g,_,x,m,y,v];if(k&&c(S,k),e=S[0],t=S[1],n=S[2],h=S[3],g=S[4],!(v=S[9]=void 0===S[9]?b?0:e.length:p(S[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||16==t?i(e,t,v):32!=t&&33!=t||g.length?a.apply(void 0,S):s(e,t,n,h);else var E=o(e,t,n);return d((k?r:u)(E,S),e,t)}},84665(e,t,n){var r=n(85592),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},49689(e,t,n){var r=n(88817),o=n(48918),i=n(80329);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var y=e[h],v=t[h];if(a)var b=c?a(v,y,h,t,e,l):a(y,v,h,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!o(t,function(e,t){if(!i(m,t)&&(y===e||s(y,e,n,a,l)))return m.push(t)})){g=!1;break}}else if(y!==v&&!s(y,v,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},68524(e,t,n){var r=n(27759),o=n(59386),i=n(69506),a=n(49689),s=n(60755),l=n(55929),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var g=f.get(e);if(g)return g==t;r|=2,f.set(e,t);var m=a(p(e),p(t),r,c,d,f);return f.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},30399(e,t,n){var r=n(66280),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var y=e[f=c[d]],v=t[f];if(i)var b=l?i(v,y,f,t,e,s):i(y,v,f,e,t,s);if(!(void 0===b?y===v||a(y,v,n,i,s):b)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(t),g}},22878(e,t,n){var r=n(13640),o=n(58619),i=n(19599);e.exports=function(e){return i(o(e,void 0,r),e+"")}},86710(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},66280(e,t,n){var r=n(1405),o=n(11454),i=n(92096);e.exports=function(e){return r(e,i,o)}},86839(e,t,n){var r=n(1405),o=n(56649),i=n(17999);e.exports=function(e){return r(e,i,o)}},58991(e,t,n){var r=n(68302),o=n(21228),i=r?function(e){return r.get(e)}:o;e.exports=i},94222(e,t,n){var r=n(25959),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],i=o.call(r,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}},8145(e){e.exports=function(e){return e.placeholder}},39257(e,t,n){var r=n(47500);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},67482(e,t,n){var r=n(35678),o=n(92096);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},85592(e,t,n){var r=n(54401),o=n(42490);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},50553(e,t,n){var r=n(17937)(Object.getPrototypeOf,Object);e.exports=r},4817(e,t,n){var r=n(27759),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},11454(e,t,n){var r=n(31840),o=n(35615),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},56649(e,t,n){var r=n(49130),o=n(50553),i=n(11454),a=n(35615),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},71663(e,t,n){var r=n(18054),o=n(32565),i=n(8246),a=n(84099),s=n(96221),l=n(41490),c=n(48815),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",g=c(r),m=c(o),y=c(i),v=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return h;case m:return u;case y:return d;case v:return f;case b:return p}return t}),e.exports=w},42490(e){e.exports=function(e,t){return null==e?void 0:e[t]}},99469(e){var t=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;e.exports=function(e){var r=e.match(t);return r?r[1].split(n):[]}},75728(e,t,n){var r=n(72155),o=n(81750),i=n(52619),a=n(62159),s=n(5300),l=n(5155);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(i(e)||o(e))}},6452(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},42130(e,t,n){var r=n(39444);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},41924(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},14743(e,t,n){var r=n(39444),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},11755(e,t,n){var r=n(39444),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},45203(e,t,n){var r=n(39444);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},28879(e,t,n){var r=n(18514),o=n(50553),i=n(78861);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},25962(e){var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,n){var r=n.length;if(!r)return e;var o=r-1;return n[o]=(r>1?"& ":"")+n[o],n=n.join(r>2?", ":" "),e.replace(t,"{\n/* [wrapped with "+n+"] */\n")}},65593(e,t,n){var r=n(27759),o=n(81750),i=n(52619),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},62159(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=n??9007199254740991)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},39542(e,t,n){var r=n(69506),o=n(90644),i=n(62159),a=n(69323);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},95304(e,t,n){var r=n(52619),o=n(97964),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},47500(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5101(e,t,n){var r=n(81690),o=n(58991),i=n(94222),a=n(12208);e.exports=function(e){var t=i(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=o(n);return!!s&&e===s[0]}},12958(e,t,n){var r,o=n(73703),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},78861(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},35678(e,t,n){var r=n(69323);e.exports=function(e){return e==e&&!r(e)}},93044(e){e.exports=function(){this.__data__=[],this.size=0}},44066(e,t,n){var r=n(87831),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},18461(e,t,n){var r=n(87831);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},74417(e,t,n){var r=n(87831);e.exports=function(e){return r(this.__data__,e)>-1}},2777(e,t,n){var r=n(87831);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},54614(e,t,n){var r=n(83219),o=n(67321),i=n(32565);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},69504(e,t,n){var r=n(39257);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9251(e,t,n){var r=n(39257);e.exports=function(e){return r(this,e).get(e)}},75791(e,t,n){var r=n(39257);e.exports=function(e){return r(this,e).has(e)}},81511(e,t,n){var r=n(39257);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},60755(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},94351(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},83426(e,t,n){var r=n(68590);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},93375(e,t,n){var r=n(28686),o=n(84278),i=n(55360),a="__lodash_placeholder__",s=Math.min;e.exports=function(e,t){var n=e[1],l=t[1],c=n|l,u=c<131,d=128==l&&8==n||128==l&&256==n&&e[7].length<=t[8]||384==l&&t[7].length<=t[8]&&8==n;if(!u&&!d)return e;1&l&&(e[2]=t[2],c|=1&n?0:4);var f=t[3];if(f){var p=e[3];e[3]=p?r(p,f,t[4]):f,e[4]=p?i(e[3],a):t[4]}return(f=t[5])&&(p=e[5],e[5]=p?o(p,f,t[6]):f,e[6]=p?i(e[5],a):t[6]),(f=t[7])&&(e[7]=f),128&l&&(e[8]=null==e[8]?t[8]:s(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}},68302(e,t,n){var r=n(96221),o=r&&new r;e.exports=o},39444(e,t,n){var r=n(85592)(Object,"create");e.exports=r},59692(e,t,n){var r=n(17937)(Object.keys,Object);e.exports=r},81779(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},21587(e,t,n){e=n.nmd(e);var r=n(86710),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},17748(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},17937(e){e.exports=function(e,t){return function(n){return e(t(n))}}},58619(e,t,n){var r=n(46047),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},25959(e){e.exports={}},74788(e,t,n){var r=n(63549),o=n(62159),i=Math.min;e.exports=function(e,t){for(var n=e.length,a=i(t.length,n),s=r(e);a--;){var l=t[a];e[a]=o(l,n)?s[l]:void 0}return e}},55360(e){var t="__lodash_placeholder__";e.exports=function(e,n){for(var r=-1,o=e.length,i=0,a=[];++r<o;){var s=e[r];s!==n&&s!==t||(e[r]=t,a[i++]=r)}return a}},30907(e,t,n){var r=n(86710),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},55760(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},82206(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},34697(e){e.exports=function(e){return this.__data__.has(e)}},54955(e,t,n){var r=n(28708),o=n(6101)(r);e.exports=o},55929(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},19599(e,t,n){var r=n(77680),o=n(6101)(r);e.exports=o},68291(e,t,n){var r=n(99469),o=n(25962),i=n(19599),a=n(97422);e.exports=function(e,t,n){var s=t+"";return i(e,o(s,a(r(s),n)))}},6101(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},21306(e,t,n){var r=n(67321);e.exports=function(){this.__data__=new r,this.size=0}},33180(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},55247(e){e.exports=function(e){return this.__data__.get(e)}},22835(e){e.exports=function(e){return this.__data__.has(e)}},79179(e,t,n){var r=n(67321),o=n(32565),i=n(60111);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},22541(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},74619(e,t,n){var r=n(63169),o=n(6452),i=n(46729);e.exports=function(e){return o(e)?i(e):r(e)}},39578(e,t,n){var r=n(67600),o=n(6452),i=n(18120);e.exports=function(e){return o(e)?i(e):r(e)}},64352(e,t,n){var r=n(83426),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},5155(e,t,n){var r=n(97964);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},48815(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},15082(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},46729(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*",d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},18120(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",u=c+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*",d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},97422(e,t,n){var r=n(76259),o=n(40239),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(i,function(n){var r="_."+n[0];t&n[1]&&!o(e,r)&&e.push(r)}),e.sort()}},51299(e,t,n){var r=n(81690),o=n(1587),i=n(63549);e.exports=function(e){if(e instanceof r)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},36775(e,t,n){var r=n(46047),o=n(36936),i=n(96868),a=o(function(e,t){try{return r(e,void 0,t)}catch(e){return i(e)?e:new Error(e)}});e.exports=a},69051(e,t,n){var r=n(26911);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},86148(e){e.exports=function(e){return function(){return e}}},20671(e,t,n){var r=n(69323),o=n(85062),i=n(9480),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,f,p,h=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=u}function w(){var e=o();if(b(e))return _(e);f=setTimeout(w,function(e){var n=t-(e-p);return m?s(n,u-(e-h)):n}(e))}function _(e){return f=void 0,y&&l?v(e):(l=c=void 0,d)}function x(){var e=o(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(w,t),g?v(e):d}(p);if(m)return clearTimeout(f),f=setTimeout(w,t),v(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?a(i(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},x.flush=function(){return void 0===f?d:_(o())},x}},69506(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},42562(e,t,n){var r=n(17164),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);e.exports=function(e){return(e=r(e))&&i.test(e)?e.replace(o,"\\$&"):e}},13640(e,t,n){var r=n(9318);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},85060(e,t,n){var r=n(64439)();e.exports=r},12438(e,t,n){var r=n(73208);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},97200(e,t,n){var r=n(23706),o=n(35650),i=Object.prototype.hasOwnProperty,a=o(function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},50997(e,t,n){var r=n(56147),o=n(75728);e.exports=function(e,t){return null!=e&&o(e,t,r)}},34846(e){e.exports=function(e){return e}},81750(e,t,n){var r=n(12960),o=n(2292),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},52619(e){var t=Array.isArray;e.exports=t},90644(e,t,n){var r=n(20860),o=n(5300);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},41891(e,t,n){var r=n(90644),o=n(2292);e.exports=function(e){return o(e)&&r(e)}},79950(e,t,n){var r=n(41490),o=n(2292);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},23446(e,t,n){e=n.nmd(e);var r=n(30907),o=n(9349),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},30483(e,t,n){var r=n(92322),o=n(71663),i=n(81750),a=n(52619),s=n(90644),l=n(23446),c=n(78861),u=n(3133),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},98918(e,t,n){var r=n(22848);e.exports=function(e,t){return r(e,t)}},96868(e,t,n){var r=n(41490),o=n(2292),i=n(41281);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!i(e)}},20860(e,t,n){var r=n(41490),o=n(69323);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5300(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},40905(e){e.exports=function(e){return null==e}},69323(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2292(e){e.exports=function(e){return null!=e&&"object"==typeof e}},41281(e,t,n){var r=n(41490),o=n(50553),i=n(2292),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},30437(e,t,n){var r=n(57163),o=n(41155),i=n(21587),a=i&&i.isRegExp,s=a?o(a):r;e.exports=s},89589(e,t,n){var r=n(41490),o=n(52619),i=n(2292);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},97964(e,t,n){var r=n(41490),o=n(2292);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},3133(e,t,n){var r=n(85283),o=n(41155),i=n(21587),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},92096(e,t,n){var r=n(13737),o=n(92322),i=n(90644);e.exports=function(e){return i(e)?r(e):o(e)}},17999(e,t,n){var r=n(13737),o=n(15045),i=n(90644);e.exports=function(e){return i(e)?r(e,!0):o(e)}},41936(e,t,n){var r=n(95862),o=n(93411),i=n(36862),a=n(52619);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},68590(e,t,n){var r=n(60111);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},28970(e,t,n){var r=n(53912),o=n(32917)(function(e,t,n){r(e,t,n)});e.exports=o},21228(e){e.exports=function(){}},85062(e,t,n){var r=n(30907);e.exports=function(){return r.Date.now()}},2033(e,t,n){var r=n(69051);e.exports=function(e){return r(2,e)}},66947(e,t,n){var r=n(49449),o=n(52619);e.exports=function(e,t,n,i){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},43663(e,t,n){var r=n(36936),o=n(67987),i=n(8145),a=n(55360),s=r(function(e,t){var n=a(t,i(s));return o(e,32,void 0,t,n)});s.placeholder={},e.exports=s},68989(e,t,n){var r=n(36936),o=n(67987),i=n(8145),a=n(55360),s=r(function(e,t){var n=a(t,i(s));return o(e,64,void 0,t,n)});s.placeholder={},e.exports=s},51561(e,t,n){var r=n(3547),o=n(22878)(function(e,t){return null==e?{}:r(e,t)});e.exports=o},96548(e,t,n){var r=n(95862),o=n(93411),i=n(21946),a=n(86839);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),function(e){return[e]});return t=o(t),i(e,n,function(e,n){return t(e,n[0])})}},24525(e,t,n){var r=n(1547),o=n(38645),i=n(95304),a=n(5155);e.exports=function(e){return i(e)?r(a(e)):o(e)}},62154(e,t,n){var r=n(604);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},54489(e,t,n){var r=n(9318),o=n(49449),i=n(36936),a=n(39542),s=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=s},40989(e,t,n){var r=n(66151),o=n(91978),i=n(26911),a=n(17164);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(i(n),0,e.length),t=o(t),e.slice(n,n+t.length)==t}},35615(e){e.exports=function(){return[]}},9349(e){e.exports=function(){return!1}},64694(e,t,n){var r=n(9480),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},26911(e,t,n){var r=n(64694);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},9480(e,t,n){var r=n(70006),o=n(69323),i=n(97964),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},94514(e,t,n){var r=n(27145),o=n(17999);e.exports=function(e){return r(e,o(e))}},17164(e,t,n){var r=n(91978);e.exports=function(e){return null==e?"":r(e)}},5304(e,t,n){var r=n(91978),o=n(70006),i=n(3440),a=n(67157),s=n(37074),l=n(39578),c=n(17164);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return o(e);if(!e||!(t=r(t)))return e;var u=l(e),d=l(t),f=s(u,d),p=a(u,d)+1;return i(u,f,p).join("")}},13999(e,t,n){var r=n(91978),o=n(3440),i=n(67157),a=n(39578),s=n(17164),l=n(15082);e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.slice(0,l(e)+1);if(!e||!(t=r(t)))return e;var c=a(e),u=i(c,a(t))+1;return o(c,0,u).join("")}},57170(e,t,n){var r=n(91978),o=n(3440),i=n(37074),a=n(39578),s=n(17164),l=/^\s+/;e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var c=a(e),u=i(c,a(t));return o(c,u).join("")}},5594(e,t,n){var r=n(91978),o=n(3440),i=n(6452),a=n(69323),s=n(30437),l=n(74619),c=n(39578),u=n(26911),d=n(17164),f=/\w*$/;e.exports=function(e,t){var n=30,p="...";if(a(t)){var h="separator"in t?t.separator:h;n="length"in t?u(t.length):n,p="omission"in t?r(t.omission):p}var g=(e=d(e)).length;if(i(e)){var m=c(e);g=m.length}if(n>=g)return e;var y=n-l(p);if(y<1)return p;var v=m?o(m,0,y).join(""):e.slice(0,y);if(void 0===h)return v+p;if(m&&(y+=v.length-y),s(h)){if(e.slice(y).search(h)){var b,w=v;for(h.global||(h=RegExp(h.source,d(f.exec(h))+"g")),h.lastIndex=0;b=h.exec(w);)var _=b.index;v=v.slice(0,void 0===_?y:_)}}else if(e.indexOf(r(h),y)!=y){var x=v.lastIndexOf(h);x>-1&&(v=v.slice(0,x))}return v+p}},51869(e,t,n){var r=n(3371);e.exports=function(e){return e&&e.length?r(e):[]}},59406(e,t,n){var r=n(17164),o=0;e.exports=function(e){var t=++o;return r(e)+t}},12208(e,t,n){var r=n(81690),o=n(1587),i=n(57603),a=n(52619),s=n(2292),l=n(51299),c=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return l(e)}return new o(e)}u.prototype=i.prototype,u.prototype.constructor=u,e.exports=u},49808(e,t,n){"use strict";var r=n(96210);e.exports=function(e,t){for(var n,d,f,p,h,g,m,y,v,b,w,_=t||{},x=!1!==_.padding,k=!1!==_.delimiterStart,S=!1!==_.delimiterEnd,E=(_.align||[]).concat(),C=!1!==_.alignDelimiters,T=[],P=_.stringLength||c,O=-1,R=e.length,A=[],I=[],D=[],L=[],N=[],$=0;++O<R;){for(d=-1,D=[],L=[],(f=(n=e[O]).length)>$&&($=f);++d<f;)g=l(n[d]),!0===C&&(h=P(g),L[d]=h,(void 0===(p=N[d])||h>p)&&(N[d]=h)),D.push(g);A[O]=D,I[O]=L}if(d=-1,f=$,"object"==typeof E&&"length"in E)for(;++d<f;)T[d]=u(E[d]);else for(w=u(E);++d<f;)T[d]=w;for(d=-1,f=$,D=[],L=[];++d<f;)v="",b="",108===(w=T[d])?v=a:w===s?b=a:99===w&&(v=a,b=a),h=C?Math.max(1,N[d]-v.length-b.length):1,g=v+r("-",h)+b,!0===C&&((h=v.length+h+b.length)>N[d]&&(N[d]=h),L[d]=h),D[d]=g;for(A.splice(1,0,D),I.splice(1,0,L),O=-1,R=A.length,m=[];++O<R;){for(D=A[O],L=I[O],d=-1,f=$,y=[];++d<f;)g=D[d]||"",v="",b="",!0===C&&(h=N[d]-(L[d]||0),(w=T[d])===s?v=r(i,h):99===w?h%2==0?b=v=r(i,h/2):(v=r(i,h/2+.5),b=r(i,h/2-.5)):b=r(i,h)),!0===k&&0===d&&y.push("|"),!0!==x||!1===C&&""===g||!0!==k&&0===d||y.push(i),!0===C&&y.push(v),y.push(g),!0===C&&y.push(b),!0===x&&y.push(i),!0!==S&&d===f-1||y.push("|");y=y.join(""),!1===S&&(y=y.replace(o,"")),m.push(y)}return m.join("\n")};var o=/ +$/,i=" ",a=":",s=114;function l(e){return null==e?"":String(e)}function c(e){return e.length}function u(e){var t="string"==typeof e?e.charCodeAt(0):0;return 76===t||108===t?108:82===t||t===s?s:67===t||99===t?99:0}},77412(e){"use strict";e.exports=Math.abs},52418(e){"use strict";e.exports=Math.floor},19313(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},57958(e){"use strict";e.exports=Math.max},47384(e){"use strict";e.exports=Math.min},250(e){"use strict";e.exports=Math.pow},51844(e){"use strict";e.exports=Math.round},47279(e,t,n){"use strict";var r=n(19313);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},97914(e,t,n){"use strict";var r=n(58849);e.exports=function(e,t){return n=function(e){var t={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return r(e,"definition",function(e){var n=i(e.identifier);o.call(t,n)||(t[n]=e)}),t}(e),function(e){var t=e&&i(e);return t&&o.call(n,t)?n[t]:null};var n};var o={}.hasOwnProperty;function i(e){return e.toUpperCase()}},15769(e,t,n){"use strict";e.exports=function(e,t,n,r){var o,i;return"string"==typeof t||t&&"function"==typeof t.exec?i=[[t,n]]:(i=t,r=n),s(e,o=r||{},function e(t){var n=t[0];return function(r,i){var l,c,u,d,f=n[0],p=n[1],h=[],g=0,m=i.children.indexOf(r);for(f.lastIndex=0,c=f.exec(r.value);c&&(l=c.index,!1!==(d=p.apply(null,[].concat(c,{index:c.index,input:c.input})))&&(g!==l&&h.push({type:"text",value:r.value.slice(g,l)}),"string"==typeof d&&d.length>0&&(d={type:"text",value:d}),d&&(h=[].concat(h,d)),g=l+c[0].length),f.global);)c=f.exec(r.value);if(void 0===l?(h=[r],m--):(g<r.value.length&&h.push({type:"text",value:r.value.slice(g)}),h.unshift(m,1),a.apply(i.children,h)),t.length>1)for(u=e(t.slice(1)),l=-1;++l<h.length;)"text"===(r=h[l]).type?u(r,i):s(r,o,u);return m+h.length+1}}(function(e){var t,n,r=[];if("object"!=typeof e)throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)r.push([l(e[n][0]),c(e[n][1])]);else for(t in e)r.push([l(t),c(e[t])]);return r}(i))),e};var r=n(67343),o=n(85358),i=n(65962),a=[].splice;function s(e,t,n){var i=o(t.ignore||[]);return r(e,"text",function(e,t){for(var r,o,a=-1;++a<t.length;){if(r=t[a],i(r,o?o.children.indexOf(r):void 0,o))return;o=r}return n(e,o)}),[]}function l(e){return"string"==typeof e?new RegExp(i(e),"g"):e}function c(e){return"function"==typeof e?e:function(){return e}}},10862(e,t,n){"use strict";e.exports=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){var t=e||{},n=function(e,t){for(var n=-1;++n<t.length;)p(e,t[n]);return e}({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:m(R),autolinkProtocol:x,autolinkEmail:x,atxHeading:m(T),blockQuote:m(function(){return{type:"blockquote",children:[]}}),characterEscape:x,characterReference:x,codeFenced:m(C),codeFencedFenceInfo:y,codeFencedFenceMeta:y,codeIndented:m(C,y),codeText:m(function(){return{type:"inlineCode",value:""}},y),codeTextData:x,data:x,codeFlowValue:x,definition:m(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:y,definitionLabelString:y,definitionTitleString:y,emphasis:m(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:m(P),hardBreakTrailing:m(P),htmlFlow:m(O,y),htmlFlowData:x,htmlText:m(O,y),htmlTextData:x,image:m(function(){return{type:"image",title:null,url:"",alt:null}}),label:y,link:m(R),listItem:m(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){h("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(e),10),u("expectingFirstListItemValue"))},listOrdered:m(A,function(){u("expectingFirstListItemValue",!0)}),listUnordered:m(A),paragraph:m(function(){return{type:"paragraph",children:[]}}),reference:function(){u("referenceType","collapsed")},referenceString:y,resourceDestinationString:y,resourceTitleString:y,setextHeading:m(T),strong:m(function(){return{type:"strong",children:[]}}),thematicBreak:m(function(){return{type:"thematicBreak"}})},exit:{atxHeading:b(),atxHeadingSequence:function(e){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(e).length)},autolink:b(),autolinkEmail:function(e){k.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){k.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:b(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:E,characterReferenceMarkerNumeric:E,characterReferenceValue:function(e){var t,n,r=this.sliceSerialize(e),o=h("characterReferenceType");o?(t=s(r,"characterReferenceMarkerNumeric"===o?10:16),u("characterReferenceType")):t=d(r),(n=this.stack.pop()).value+=t,n.position.end=g(e.end)},codeFenced:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),u("flowCodeInside")}),codeFencedFence:function(){h("flowCodeInside")||(this.buffer(),u("flowCodeInside",!0))},codeFencedFenceInfo:function(){var e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){var e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:k,codeIndented:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e}),codeText:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:k,data:k,definition:b(),definitionDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:b(),hardBreakEscape:b(S),hardBreakTrailing:b(S),htmlFlow:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:k,htmlText:b(function(){var e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:k,image:b(function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),u("referenceType")}),label:function(){var e=this.stack[this.stack.length-1],t=this.resume();this.stack[this.stack.length-1].label=t,u("inReference",!0),"link"===this.stack[this.stack.length-1].type?this.stack[this.stack.length-1].children=e.children:this.stack[this.stack.length-1].alt=t},labelText:function(e){this.stack[this.stack.length-2].identifier=a(this.sliceSerialize(e)).toLowerCase()},lineEnding:function(e){var t=this.stack[this.stack.length-1];if(h("atHardBreak"))return t.children[t.children.length-1].position.end=g(e.end),void u("atHardBreak");!h("setextHeadingSlurpLineEnding")&&n.canContainEols.indexOf(t.type)>-1&&(x.call(this,e),k.call(this,e))},link:b(function(){var e=this.stack[this.stack.length-1];h("inReference")?(e.type+="Reference",e.referenceType=h("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label,delete e.referenceType),u("referenceType")}),listItem:b(),listOrdered:b(),listUnordered:b(),paragraph:b(),referenceString:function(e){var t=this.resume();this.stack[this.stack.length-1].label=t,this.stack[this.stack.length-1].identifier=a(this.sliceSerialize(e)).toLowerCase(),u("referenceType","full")},resourceDestinationString:function(){var e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){var e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){u("inReference")},setextHeading:b(function(){u("setextHeadingSlurpLineEnding")}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){u("setextHeadingSlurpLineEnding",!0)},strong:b(),thematicBreak:b()}},t.mdastExtensions||[]),l={};return function(e){for(var t,r={type:"root",children:[]},a=[],s=[],l=-1,d={stack:[r],tokenStack:a,config:n,enter:v,exit:w,buffer:y,resume:_,setData:u,getData:h};++l<e.length;)"listOrdered"!==e[l][1].type&&"listUnordered"!==e[l][1].type||("enter"===e[l][0]?s.push(l):l=c(e,s.pop(l),l));for(l=-1;++l<e.length;)t=n[e[l][0]],i.call(t,e[l][1].type)&&t[e[l][1].type].call(o({sliceSerialize:e[l][2].sliceSerialize},d),e[l][1]);if(a.length)throw new Error("Cannot close document, a token (`"+a[a.length-1].type+"`, "+f({start:a[a.length-1].start,end:a[a.length-1].end})+") is still open");for(r.position={start:g(e.length?e[0][1].start:{line:1,column:1,offset:0}),end:g(e.length?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++l<n.transforms.length;)r=n.transforms[l](r)||r;return r};function c(e,t,n){for(var r,o,i,a,s,l,c,u=t-1,d=-1,f=!1;++u<=n;)if("listUnordered"===(s=e[u])[1].type||"listOrdered"===s[1].type||"blockQuote"===s[1].type?("enter"===s[0]?d++:d--,c=void 0):"lineEndingBlank"===s[1].type?"enter"===s[0]&&(!r||c||d||l||(l=u),c=void 0):"linePrefix"===s[1].type||"listItemValue"===s[1].type||"listItemMarker"===s[1].type||"listItemPrefix"===s[1].type||"listItemPrefixWhitespace"===s[1].type||(c=void 0),!d&&"enter"===s[0]&&"listItemPrefix"===s[1].type||-1===d&&"exit"===s[0]&&("listUnordered"===s[1].type||"listOrdered"===s[1].type)){if(r){for(o=u,i=void 0;o--;)if("lineEnding"===(a=e[o])[1].type||"lineEndingBlank"===a[1].type){if("exit"===a[0])continue;i&&(e[i][1].type="lineEndingBlank",f=!0),a[1].type="lineEnding",i=o}else if("linePrefix"!==a[1].type&&"blockQuotePrefix"!==a[1].type&&"blockQuotePrefixWhitespace"!==a[1].type&&"blockQuoteMarker"!==a[1].type&&"listItemIndent"!==a[1].type)break;l&&(!i||l<i)&&(r._spread=!0),r.end=g(i?e[i][1].start:s[1].end),e.splice(i||u,0,["exit",r,s[2]]),u++,n++}"listItemPrefix"===s[1].type&&(r={type:"listItem",_spread:!1,start:g(s[1].start)},e.splice(u,0,["enter",r,s[2]]),u++,n++,l=void 0,c=!0)}return e[t][1]._spread=f,n}function u(e,t){l[e]=t}function h(e){return l[e]}function g(e){return{line:e.line,column:e.column,offset:e.offset}}function m(e,t){return function(n){v.call(this,e(n),n),t&&t.call(this,n)}}function y(){this.stack.push({type:"fragment",children:[]})}function v(e,t){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push(t),e.position={start:g(t.start)},e}function b(e){return function(t){e&&e.call(this,t),w.call(this,t)}}function w(e){var t=this.stack.pop(),n=this.tokenStack.pop();if(!n)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): it’s not open");if(n.type!==e.type)throw new Error("Cannot close `"+e.type+"` ("+f({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+f({start:n.start,end:n.end})+") is open");return t.position.end=g(e.end),t}function _(){return r(this.stack.pop())}function x(e){var t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:g(e.start)},this.stack[this.stack.length-1].children.push(n)),this.stack.push(n)}function k(e){var t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=g(e.end)}function S(){u("atHardBreak",!0)}function E(e){u("characterReferenceType",e.type)}function C(){return{type:"code",lang:null,meta:null,value:""}}function T(){return{type:"heading",depth:void 0,children:[]}}function P(){return{type:"break"}}function O(){return{type:"html",value:""}}function R(){return{type:"link",title:null,url:"",children:[]}}function A(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(u(l(n).document().write(c()(e,t,!0))))};var r=n(83964),o=n(66095),i=n(73387),a=n(4843),s=n(32092),l=n(26892),c=n(49801),u=n(81484),d=n(37940),f=n(7899);function p(e,t){var n,r;for(n in t)r=i.call(e,n)?e[n]:e[n]={},"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,t[n]):Object.assign(r,t[n])}},55685(e,t,n){"use strict";e.exports=n(10862)},94952(e,t,n){var r=n(95866),o=n(15769),i=n(37993),a=n(93504);function s(e){this.config.enter.autolinkProtocol.call(this,e)}function l(e,t,n,o,i){var a,s,l="";return!!u(i)&&(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!!function(e){var t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)&&!!(a=function(e){var t,n,o,i=/[!"&'),.:;<>?\]}]+$/.exec(e);if(i)for(e=e.slice(0,i.index),t=(i=i[0]).indexOf(")"),n=r(e,"("),o=r(e,")");-1!==t&&n>o;)e+=i.slice(0,t+1),t=(i=i.slice(t+1)).indexOf(")"),o++;return[e,i]}(n+o))[0]&&(s={type:"link",title:null,url:l+t+a[0],children:[{type:"text",value:t+a[0]}]},a[1]&&(s=[s,{type:"text",value:a[1]}]),s))}function c(e,t,n,r){return!(!u(r,!0)||/[_-]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function u(e,t){var n=e.input.charCodeAt(e.index-1);return(n!=n||a(n)||i(n))&&(!t||47!==n)}t.transforms=[function(e){o(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,l],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,c]],{ignore:["link","linkReference"]})}],t.enter={literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:s,literalAutolinkHttp:s,literalAutolinkWww:s},t.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)}}},1535(e,t){var n="phrasing",r=["autolink","link","image","label"];t.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n,notInConstruct:r},{character:":",before:"[ps]",after:"\\/",inConstruct:n,notInConstruct:r}]},80167(e,t){t.canContainEols=["delete"],t.enter={strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},t.exit={strikethrough:function(e){this.exit(e)}}},16592(e,t,n){var r=n(86878);function o(e,t,n){var o=n.enter("emphasis"),i=r(e,n,{before:"~",after:"~"});return o(),"~~"+i+"~~"}t.unsafe=[{character:"~",inConstruct:"phrasing"}],t.handlers={delete:o},o.peek=function(){return"~"}},83501(e,t){function n(e){this.exit(e)}function r(e){this.enter({type:"tableCell",children:[]},e)}function o(e,t){return"|"===t?t:e}t.enter={table:function(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)},tableData:r,tableHeader:r,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},t.exit={codeText:function(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,o)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:n,tableHeader:n,tableRow:n}},72398(e,t,n){var r=n(86878),o=n(22127),i=n(49808);e.exports=function(e){var t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";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,t,n){return u(function(e,t){for(var n=e.children,r=-1,o=n.length,i=[],a=t.enter("table");++r<o;)i[r]=d(n[r],t);return a(),i}(e,n),e.align)},tableRow:function(e,t,n){var r=u([d(e,n)]);return r.slice(0,r.indexOf("\n"))},tableCell:c,inlineCode:function(e,t,n){var r=o(e,t,n);return-1!==n.stack.indexOf("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r}}};function c(e,t,n){var o=n.enter("tableCell"),i=r(e,n,{before:l,after:l});return o(),i}function u(e,t){return i(e,{align:t,alignDelimiters:a,padding:n,stringLength:s})}function d(e,t){for(var n=e.children,r=-1,o=n.length,i=[],a=t.enter("tableRow");++r<o;)i[r]=c(n[r],0,t);return a(),i}}},98235(e,t){function n(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}t.exit={taskListCheckValueChecked:n,taskListCheckValueUnchecked:n,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],o=n.children,i=r.children[0],a=-1;if(n&&"listItem"===n.type&&"boolean"==typeof n.checked&&i&&"text"===i.type){for(;++a<o.length;)if("paragraph"===o[a].type){t=o[a];break}t===r&&(i.value=i.value.slice(1),0===i.value.length?r.children.shift():(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}this.exit(e)}}},71388(e,t,n){var r=n(71414);t.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}],t.handlers={listItem:function(e,t,n){var o=r(e,t,n),i=e.children[0];return"boolean"==typeof e.checked&&i&&"paragraph"===i.type&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(t){return t+"["+(e.checked?"x":" ")+"] "})),o}}},45121(e,t,n){var r=n(94952),o=n(80167),i=n(83501),a=n(98235),s={}.hasOwnProperty;function l(e,t){var n,r,o;for(n in t)r=s.call(e,n)?e[n]:e[n]={},o=t[n],"canContainEols"===n||"transforms"===n?e[n]=[].concat(r,o):Object.assign(r,o)}e.exports=function(e){for(var t={transforms:[],canContainEols:[]},n=e.length,r=-1;++r<n;)l(t,e[r]);return t}([r,o,i,a])},62330(e,t,n){var r=n(1535),o=n(16592),i=n(72398),a=n(71388),s=n(65239);e.exports=function(e){var t=s({handlers:{},join:[],unsafe:[],options:{}},{extensions:[r,o,i(e),a]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}},96679(e,t,n){"use strict";e.exports=n(48951)},20748(e,t,n){"use strict";e.exports=function(e,t){for(var n,o,i=t.children||[],a=i.length,s=[],l=-1;++l<a;)(n=r(e,i[l],t))&&(l&&"break"===i[l-1].type&&(n.value&&(n.value=n.value.replace(/^\s+/,"")),(o=n.children&&n.children[0])&&o.value&&(o.value=o.value.replace(/^\s+/,""))),s=s.concat(n));return s};var r=n(65839)},88636(e,t,n){"use strict";e.exports=function(e){for(var t,n,a,s,l=e.footnoteById,c=e.footnoteOrder,u=c.length,d=-1,f=[];++d<u;)(t=l[c[d].toUpperCase()])&&(s=(a=t.children.concat())[a.length-1],n={type:"link",url:"#fnref-"+t.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},s&&"paragraph"===s.type||(s={type:"paragraph",children:[]},a.push(s)),s.children.push(n),f.push({type:"listItem",data:{hProperties:{id:"fn-"+t.identifier}},children:a,position:t.position}));return 0===f.length?null:e(null,"div",{className:["footnotes"]},i([r(e),o(e,{type:"list",ordered:!0,children:f})],!0))};var r=n(45976),o=n(68457),i=n(85615)},28442(e,t,n){"use strict";e.exports=function(e,t){return e(t,"blockquote",r(o(e,t),!0))};var r=n(85615),o=n(20748)},38834(e,t,n){"use strict";e.exports=function(e,t){return[e(t,"br"),r("text","\n")]};var r=n(58197)},62996(e,t,n){"use strict";e.exports=function(e,t){var n,o=t.value?t.value+"\n":"",i=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),a={};return i&&(a.className=["language-"+i]),n=e(t,"code",a,[r("text",o)]),t.meta&&(n.data={meta:t.meta}),e(t.position,"pre",[n])};var r=n(58197)},51870(e,t,n){"use strict";e.exports=function(e,t){return e(t,"del",r(e,t))};var r=n(20748)},2935(e,t,n){"use strict";e.exports=function(e,t){return e(t,"em",r(e,t))};var r=n(20748)},82921(e,t,n){"use strict";e.exports=function(e,t){var n=e.footnoteOrder,o=String(t.identifier);return-1===n.indexOf(o)&&n.push(o),e(t.position,"sup",{id:"fnref-"+o},[e(t,"a",{href:"#fn-"+o,className:["footnote-ref"]},[r("text",t.label||o)])])};var r=n(58197)},12569(e,t,n){"use strict";e.exports=function(e,t){for(var n=e.footnoteById,o=e.footnoteOrder,i=1;i in n;)i++;return i=String(i),o.push(i),n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},r(e,{type:"footnoteReference",identifier:i,position:t.position})};var r=n(82921)},64635(e,t,n){"use strict";e.exports=function(e,t){return e(t,"h"+t.depth,r(e,t))};var r=n(20748)},6388(e,t,n){"use strict";e.exports=function(e,t){return e.dangerous?e.augment(t,r("raw",t.value)):null};var r=n(58197)},23720(e,t,n){"use strict";e.exports=function(e,t){var n,i=e.definition(t.identifier);return i?(n={src:r(i.url||""),alt:t.alt},null!==i.title&&void 0!==i.title&&(n.title=i.title),e(t,"img",n)):o(e,t)};var r=n(50782),o=n(28605)},62756(e,t,n){"use strict";var r=n(50782);e.exports=function(e,t){var n={src:r(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)}},41921(e,t,n){"use strict";function r(){return null}e.exports={blockquote:n(28442),break:n(38834),code:n(62996),delete:n(51870),emphasis:n(2935),footnoteReference:n(82921),footnote:n(12569),heading:n(64635),html:n(6388),imageReference:n(23720),image:n(62756),inlineCode:n(41384),linkReference:n(55397),link:n(88989),listItem:n(25005),list:n(68457),paragraph:n(23055),root:n(80201),strong:n(44822),table:n(17489),text:n(2938),thematicBreak:n(45976),toml:r,yaml:r,definition:r,footnoteDefinition:r}},41384(e,t,n){"use strict";e.exports=function(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[r("text",n)])};var r=n(58197)},55397(e,t,n){"use strict";e.exports=function(e,t){var n,a=e.definition(t.identifier);return a?(n={href:r(a.url||"")},null!==a.title&&void 0!==a.title&&(n.title=a.title),e(t,"a",n,i(e,t))):o(e,t)};var r=n(50782),o=n(28605),i=n(20748)},88989(e,t,n){"use strict";var r=n(50782),o=n(20748);e.exports=function(e,t){var n={href:r(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,o(e,t))}},25005(e,t,n){"use strict";e.exports=function(e,t,n){var a,s,l,c=o(e,t),u=c[0],d=n?function(e){for(var t=e.spread,n=e.children,r=n.length,o=-1;!t&&++o<r;)t=i(n[o]);return t}(n):i(t),f={},p=[];for("boolean"==typeof t.checked&&(u&&"p"===u.tagName||(u=e(null,"p",[]),c.unshift(u)),u.children.length>0&&u.children.unshift(r("text"," ")),u.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),f.className=["task-list-item"]),a=c.length,s=-1;++s<a;)l=c[s],(d||0!==s||"p"!==l.tagName)&&p.push(r("text","\n")),"p"!==l.tagName||d?p.push(l):p=p.concat(l.children);return a&&(d||"p"!==l.tagName)&&p.push(r("text","\n")),e(t,"li",f,p)};var r=n(58197),o=n(20748);function i(e){return e.spread??e.children.length>1}},68457(e,t,n){"use strict";e.exports=function(e,t){var n,i,a={},s=t.ordered?"ol":"ul",l=-1;for("number"==typeof t.start&&1!==t.start&&(a.start=t.start),i=(n=o(e,t)).length;++l<i;)if(n[l].properties.className&&-1!==n[l].properties.className.indexOf("task-list-item")){a.className=["contains-task-list"];break}return e(t,s,a,r(n,!0))};var r=n(85615),o=n(20748)},23055(e,t,n){"use strict";e.exports=function(e,t){return e(t,"p",r(e,t))};var r=n(20748)},80201(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("root",o(i(e,t))))};var r=n(58197),o=n(85615),i=n(20748)},44822(e,t,n){"use strict";e.exports=function(e,t){return e(t,"strong",r(e,t))};var r=n(20748)},17489(e,t,n){"use strict";e.exports=function(e,t){for(var n,a,s,l,c,u=t.children,d=u.length,f=t.align||[],p=f.length,h=[];d--;){for(a=u[d].children,l=0===d?"th":"td",n=p||a.length,s=[];n--;)c=a[n],s[n]=e(c,l,{align:f[n]},c?i(e,c):[]);h[d]=e(u[d],"tr",o(s,!0))}return e(t,"table",o([e(h[0].position,"thead",o([h[0]],!0))].concat(h[1]?e({start:r.start(h[1]),end:r.end(h[h.length-1])},"tbody",o(h.slice(1),!0)):[]),!0))};var r=n(90920),o=n(85615),i=n(20748)},2938(e,t,n){"use strict";e.exports=function(e,t){return e.augment(t,r("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))};var r=n(58197)},45976(e){"use strict";e.exports=function(e,t){return e(t,"hr")}},48951(e,t,n){"use strict";e.exports=function(e,t){var n=function(e,t){var n=t||{};void 0===n.allowDangerousHTML||f||(f=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,l={};return p.dangerous=r,p.definition=s(e),p.footnoteById=l,p.footnoteOrder=[],p.augment=c,p.handlers=Object.assign({},u,n.handlers),p.unknownHandler=n.unknownHandler,p.passThrough=n.passThrough,o(e,"footnoteDefinition",function(e){var t=String(e.identifier).toUpperCase();d.call(l,t)||(l[t]=e)}),p;function c(e,t){var n,r;return e&&e.data&&((n=e.data).hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=Object.assign({},t.properties,n.hProperties)),t.children&&n.hChildren&&(t.children=n.hChildren)),r=e&&e.position?e:{position:e},a(r)||(t.position={start:i.start(r),end:i.end(r)}),t}function p(e,t,n,r){return null==r&&"object"==typeof n&&"length"in n&&(r=n,n={}),c(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),p=l(n,e),h=c(n);return h&&(p.children=p.children.concat(r("text","\n"),h)),p};var r=n(58197),o=n(58849),i=n(90920),a=n(39780),s=n(97914),l=n(65839),c=n(88636),u=n(41921),d={}.hasOwnProperty,f=!1},65839(e,t,n){"use strict";e.exports=function(e,t,n){var r,o=t&&t.type;if(!o)throw new Error("Expected node, got `"+t+"`");return("function"==typeof(r=i.call(e.handlers,o)?e.handlers[o]:e.passThrough&&e.passThrough.indexOf(o)>-1?s:e.unknownHandler)?r:a)(e,t,n)};var r=n(58197),o=n(20748),i={}.hasOwnProperty;function a(e,t){return function(e){var t=e.data||{};return!(i.call(t,"hName")||i.call(t,"hProperties")||i.call(t,"hChildren"))&&"value"in e}(t)?e.augment(t,r("text",t.value)):e(t,"div",o(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=o(e,t),n):t}},28605(e,t,n){"use strict";e.exports=function(e,t){var n,i,a,s=t.referenceType,l="]";return"collapsed"===s?l+="[]":"full"===s&&(l+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type?r("text","!["+t.alt+l):((i=(n=o(e,t))[0])&&"text"===i.type?i.value="["+i.value:n.unshift(r("text","[")),(a=n[n.length-1])&&"text"===a.type?a.value+=l:n.push(r("text",l)),n)};var r=n(58197),o=n(20748)},85615(e,t,n){"use strict";e.exports=function(e,t){var n=[],o=-1,i=e.length;for(t&&n.push(r("text","\n"));++o<i;)o&&n.push(r("text","\n")),n.push(e[o]);return t&&e.length>0&&n.push(r("text","\n")),n};var r=n(58197)},65239(e){e.exports=function e(t,n){var r,o=-1;if(n.extensions)for(;++o<n.extensions.length;)e(t,n.extensions[o]);for(r in n)"extensions"===r||("unsafe"===r||"join"===r?t[r]=t[r].concat(n[r]||[]):"handlers"===r?t[r]=Object.assign(t[r],n[r]||{}):t.options[r]=n[r]);return t}},22127(e,t,n){e.exports=o,o.peek=function(){return"`"};var r=n(47402);function o(e,t,n){for(var o,i,a,s,l=e.value||"",c="`",u=-1;new RegExp("(^|[^`])"+c+"([^`]|$)").test(l);)c+="`";for(/[^ \r\n]/.test(l)&&(/[ \r\n`]/.test(l.charAt(0))||/[ \r\n`]/.test(l.charAt(l.length-1)))&&(l=" "+l+" ");++u<n.unsafe.length;)if((o=n.unsafe[u]).atBreak)for(i=r(o);a=i.exec(l);)s=a.index,10===l.charCodeAt(s)&&13===l.charCodeAt(s-1)&&s--,l=l.slice(0,s)+" "+l.slice(a.index+1);return c+l+c}},71414(e,t,n){e.exports=function(e,t,n){var l,c,u,d=o(n),f=i(n);return t&&t.ordered&&(d=(t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+"."),l=d.length+1,("tab"===f||"mixed"===f&&(t&&t.spread||e.spread))&&(l=4*Math.ceil(l/4)),u=n.enter("listItem"),c=s(a(e,n),function(e,t,n){return t?(n?"":r(" ",l))+e:(n?d:d+r(" ",l-d.length))+e}),u(),c};var r=n(96210),o=n(16085),i=n(19844),a=n(90952),s=n(26066)},16085(e){e.exports=function(e){var t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}},19844(e){e.exports=function(e){var t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}},90952(e,t,n){e.exports=function(e,t){for(var n,o=e.children||[],i=[],a=-1;++a<o.length;)n=o[a],i.push(t.handle(n,e,t,{before:"\n",after:"\n"})),a+1<o.length&&i.push(s(n,o[a+1]));return i.join("");function s(n,o){for(var i,a=-1;++a<t.join.length&&!0!==(i=t.join[a](n,o,e,t))&&1!==i;){if("number"==typeof i)return r("\n",1+Number(i));if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}};var r=n(96210)},86878(e){e.exports=function(e,t,n){for(var r,o,i,a=e.children||[],s=[],l=-1,c=n.before;++l<a.length;)i=a[l],l+1<a.length?((o=t.handle.handlers[a[l+1].type])&&o.peek&&(o=o.peek),r=o?o(a[l+1],e,t,{before:"",after:""}).charAt(0):""):r=n.after,s.length>0&&("\r"===c||"\n"===c)&&"html"===i.type&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),c=" "),s.push(t.handle(i,e,t,{before:c,after:r})),c=s[s.length-1].slice(-1);return s.join("")}},26066(e){e.exports=function(e,n){for(var r,o=[],i=0,a=0;r=t.exec(e);)s(e.slice(i,r.index)),o.push(r[0]),i=r.index+r[0].length,a++;return s(e.slice(i)),o.join("");function s(e){o.push(n(e,a,!e))}};var t=/\r?\n|\r/g},47402(e){e.exports=function(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}},83964(e){"use strict";function t(e){return e&&(e.value||e.alt||e.title||"children"in e&&n(e.children)||"length"in e&&n(e))||""}function n(e){for(var n=[],r=-1;++r<e.length;)n[r]=t(e[r]);return n.join("")}e.exports=t},50782(e){"use strict";var t={};function n(e,r,o){var i,a,s,l,c,u="";for("string"!=typeof r&&(o=r,r=n.defaultChars),void 0===o&&(o=!0),c=function(e){var n,r,o=t[e];if(o)return o;for(o=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?o.push(r):o.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)o[e.charCodeAt(n)]=e[n];return o}(r),i=0,a=e.length;i<a;i++)if(s=e.charCodeAt(i),o&&37===s&&i+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))u+=e.slice(i,i+3),i+=2;else if(s<128)u+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<a&&(l=e.charCodeAt(i+1))>=56320&&l<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},43560(e,t,n){e.exports=n(50765)},50765(e,t,n){var r=n(7565),o=n(15166),i=n(58404),a=n(37853),s=n(37993),l=n(93504),c={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||t-32==87?(e.consume(t),o):n(t)}function o(t){return 87===t||t-32==87?(e.consume(t),i):n(t)}function i(t){return 46===t?(e.consume(t),s):n(t)}function s(e){return null===e||a(e)?n(e):t(e)}},partial:!0},u={tokenize:function(e,t,n){var r,o;return a;function a(t){return 38===t?e.check(p,u,c)(t):46===t||95===t?e.check(f,u,c)(t):i(t)||l(t)||45!==t&&s(t)?u(t):(e.consume(t),a)}function c(t){return 46===t?(o=r,r=void 0,e.consume(t),a):(95===t&&(r=!0),e.consume(t),a)}function u(e){return o||r?n(e):t(e)}},partial:!0},d={tokenize:function(e,t){var n=0;return r;function r(a){return 38===a?e.check(p,t,o)(a):(40===a&&n++,41===a?e.check(f,i,o)(a):w(a)?t(a):b(a)?e.check(f,t,o)(a):(e.consume(a),r))}function o(t){return e.consume(t),r}function i(e){return--n<0?t(e):o(e)}},partial:!0},f={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(o){return b(o)?(e.consume(o),r):w(o)?t(o):n(o)}},partial:!0},p={tokenize:function(e,t,n){return function(t){return e.consume(t),o};function o(t){return r(t)?(e.consume(t),o):59===t?(e.consume(t),i):n(t)}function i(e){return w(e)?t(e):n(e)}},partial:!0},h={tokenize:function(e,t,n){var r=this;return function(t){return 87!==t&&t-32!=87||!x(r.previous)||E(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(c,e.attempt(u,e.attempt(d,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:x},g={tokenize:function(e,t,n){var r=this;return function(t){return 72!==t&&t-32!=72||!k(r.previous)||E(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),o)};function o(t){return 84===t||t-32==84?(e.consume(t),a):n(t)}function a(t){return 84===t||t-32==84?(e.consume(t),c):n(t)}function c(t){return 80===t||t-32==80?(e.consume(t),f):n(t)}function f(t){return 83===t||t-32==83?(e.consume(t),p):p(t)}function p(t){return 58===t?(e.consume(t),h):n(t)}function h(t){return 47===t?(e.consume(t),g):n(t)}function g(t){return 47===t?(e.consume(t),m):n(t)}function m(t){return i(t)||l(t)||s(t)?n(t):e.attempt(u,e.attempt(d,y),n)(t)}function y(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:k},m={tokenize:function(e,t,n){var r,i=this;return function(t){return _(t)&&S(i.previous)&&!E(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return _(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(f,d,l)(t):45===t||95===t?e.check(f,n,c)(t):o(t)?(e.consume(t),s):d(t)}function l(t){return e.consume(t),r=!0,s}function c(t){return e.consume(t),u}function u(t){return 46===t?e.check(f,n,l)(t):s(t)}function d(o){return r?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:S},y={};t.text=y;for(var v=48;v<123;)y[v]=m,58===++v?v=65:91===v&&(v=97);function b(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 w(e){return null===e||e<0||32===e||60===e}function _(e){return 43===e||45===e||46===e||95===e||o(e)}function x(e){return null===e||e<0||32===e||40===e||42===e||95===e||126===e}function k(e){return null===e||!r(e)}function S(e){return 47!==e&&k(e)}function E(e){for(var t=e.length;t--;)if(("labelLink"===e[t][1].type||"labelImage"===e[t][1].type)&&!e[t][1]._balanced)return!0}y[43]=m,y[45]=m,y[46]=m,y[95]=m,y[72]=[m,g],y[104]=[m,g],y[87]=[m,h],y[119]=[m,h]},58813(e,t,n){e.exports=function(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,o){var i=this.previous,a=this.events,s=0;return function(t){return 126!==t||126===i&&"characterEscape"!==a[a.length-1][1].type?o(t):(e.enter("strikethroughSequenceTemporary"),l(t))};function l(a){var c,u,d=r(i);return 126===a?s>1?o(a):(e.consume(a),s++,l):s<2&&!t?o(a):(c=e.exit("strikethroughSequenceTemporary"),u=r(a),c._open=!u||2===u&&d,c._close=!d||2===d&&u,n(a))}},resolveAll:function(e,t){for(var n,r,s,l,c=-1;++c<e.length;)if("enter"===e[c][0]&&"strikethroughSequenceTemporary"===e[c][1].type&&e[c][1]._close)for(s=c;s--;)if("exit"===e[s][0]&&"strikethroughSequenceTemporary"===e[s][1].type&&e[s][1]._open&&e[c][1].end.offset-e[c][1].start.offset===e[s][1].end.offset-e[s][1].start.offset){e[c][1].type="strikethroughSequence",e[s][1].type="strikethroughSequence",n={type:"strikethrough",start:a(e[s][1].start),end:a(e[c][1].end)},r={type:"strikethroughText",start:a(e[s][1].end),end:a(e[c][1].start)},l=[["enter",n,t],["enter",e[s][1],t],["exit",e[s][1],t],["enter",r,t]],o(l,l.length,0,i(t.parser.constructs.insideSpan.null,e.slice(s+1,c),t)),o(l,l.length,0,[["exit",r,t],["enter",e[c][1],t],["exit",e[c][1],t],["exit",n,t]]),o(e,s-1,c-s+3,l),c=s+l.length-2;break}return function(e){for(var t=-1,n=e.length;++t<n;)"strikethroughSequenceTemporary"===e[t][1].type&&(e[t][1].type="data");return e}(e)}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:n}}};var r=n(70526),o=n(9057),i=n(10606),a=n(55852)},7903(e,t,n){e.exports=n(82812)},82812(e,t,n){t.flow={null:{tokenize:function(e,t,n){var a,s,l=[],c=0;return function(t){return null===t||-5===t||-4===t||-3===t?n(t):(e.enter("table")._align=l,e.enter("tableHead"),e.enter("tableRow"),124===t?u(t):(c++,e.enter("temporaryTableCellContent"),p(t)))};function u(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,d}function d(t){return null===t||-5===t||-4===t||-3===t?function(t){return null===t?n(t):(e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.check(o,n,r(e,g,"linePrefix",4)))}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),f):(a&&(a=void 0,c++),124===t?u(t):(e.enter("temporaryTableCellContent"),p(t)))}function f(t){return-2===t||-1===t||32===t?(e.consume(t),f):(e.exit("whitespace"),d(t))}function p(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),d(t)):(e.consume(t),92===t?h:p)}function h(t){return 92===t||124===t?(e.consume(t),p):p(t)}function g(t){return null===t||t<0||32===t?n(t):(e.enter("tableDelimiterRow"),m(t))}function m(t){return null===t||-5===t||-4===t||-3===t?_(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),y):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,l.push(null),v):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),l.push("left"),b):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function y(t){return-2===t||-1===t||32===t?(e.consume(t),y):(e.exit("whitespace"),m(t))}function v(t){return 45===t?(e.consume(t),v):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),l[l.length-1]="left"===l[l.length-1]?"center":"right",w):m(t))}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),s=!0,v):n(t)}function w(t){return null===t||-5===t||-4===t||-3===t?_(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),y):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function _(t){return e.exit("tableDelimiterRow"),s&&c===l.length?null===t?x(t):e.check(i,x,k)(t):n(t)}function x(n){return e.exit("table"),t(n)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,S,"linePrefix",4)}function S(t){return e.enter("tableBody"),E(t)}function E(t){return e.enter("tableRow"),124===t?C(t):(e.enter("temporaryTableCellContent"),O(t))}function C(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),T}function T(t){return null===t||-5===t||-4===t||-3===t?function(t){return e.exit("tableRow"),null===t?A(t):e.check(i,A,I)(t)}(t):-2===t||-1===t||32===t?(e.enter("whitespace"),e.consume(t),P):124===t?C(t):(e.enter("temporaryTableCellContent"),O(t))}function P(t){return-2===t||-1===t||32===t?(e.consume(t),P):(e.exit("whitespace"),T(t))}function O(t){return null===t||t<0||32===t||124===t?(e.exit("temporaryTableCellContent"),T(t)):(e.consume(t),92===t?R:O)}function R(t){return 92===t||124===t?(e.consume(t),O):O(t)}function A(t){return e.exit("tableBody"),x(t)}function I(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,E,"linePrefix",4)}},resolve:function(e,t){for(var n,r,o,i,a,s,l,c,u,d,f=e.length,p=-1;++p<f;)n=e[p][1],i&&("temporaryTableCellContent"===n.type&&(c=c||p,u=p),"tableCellDivider"!==n.type&&"tableRow"!==n.type||!u||(l={type:"chunkText",start:(s={type:"tableContent",start:e[c][1].start,end:e[u][1].end}).start,end:s.end,contentType:"text"},e.splice(c,u-c+1,["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]),p-=u-c-3,f=e.length,c=void 0,u=void 0)),"exit"===e[p][0]&&d&&d+1<p&&("tableCellDivider"===n.type||"tableRow"===n.type&&(d+3<p||"whitespace"!==e[d][1].type))&&(a={type:o?"tableDelimiter":r?"tableHeader":"tableData",start:e[d][1].start,end:e[p][1].end},e.splice(p+("tableCellDivider"===n.type?1:0),0,["exit",a,t]),e.splice(d,0,["enter",a,t]),p+=2,f=e.length,d=p+1),"tableRow"===n.type&&(i="enter"===e[p][0])&&(d=p+1),"tableDelimiterRow"===n.type&&(o="enter"===e[p][0])&&(d=p+1),"tableHead"===n.type&&(r="enter"===e[p][0]);return e},interruptible:!0}};var r=n(34408),o={tokenize:function(e,t,n){return function(t){return 45!==t?n(t):(e.enter("setextUnderline"),r(t))};function r(t){return 45===t?(e.consume(t),r):o(t)}function o(r){return-2===r||-1===r||32===r?(e.consume(r),o):null===r||-5===r||-4===r||-3===r?t(r):n(r)}},partial:!0},i={tokenize:function(e,t,n){var r=0;return function(t){return e.enter("check"),e.consume(t),o};function o(i){return-1===i||32===i?(e.consume(i),4===++r?t:o):null===i||i<0?t(i):n(i)}},partial:!0}},60926(e,t,n){e.exports=n(7379)},7379(e,t,n){var r=n(95964),o=n(34408),i=n(68170),a={tokenize:function(e,t,n){var r=this;return function(t){return 91===t&&null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return-2===t||32===t?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(r){return 93===r?(e.enter("taskListCheckMarker"),e.consume(r),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:s},t,n)):n(r)}}};function s(e,t,n){var a=this;return o(e,function(e){return i(a.events,"whitespace")&&null!==e&&!r(e)?t(e):n(e)},"whitespace")}t.text={91:a}},15122(e,t,n){e.exports=n(29991)},29991(e,t,n){var r=n(43780),o=n(43560),i=n(58813),a=n(7903),s=n(60926);e.exports=function(e){return r([o,i(e),a,s])}},7565(e,t,n){"use strict";var r=n(28078)(/[A-Za-z]/);e.exports=r},15166(e,t,n){"use strict";var r=n(28078)(/[\dA-Za-z]/);e.exports=r},26397(e,t,n){"use strict";var r=n(28078)(/[#-'*+\--9=?A-Z^-~]/);e.exports=r},58404(e){"use strict";e.exports=function(e){return e<32||127===e}},80220(e,t,n){"use strict";var r=n(28078)(/\d/);e.exports=r},76732(e,t,n){"use strict";var r=n(28078)(/[\dA-Fa-f]/);e.exports=r},60105(e,t,n){"use strict";var r=n(28078)(/[!-/:-@[-`{-~]/);e.exports=r},95964(e){"use strict";e.exports=function(e){return e<0||32===e}},37853(e){"use strict";e.exports=function(e){return e<-2}},52365(e){"use strict";e.exports=function(e){return-2===e||-1===e||32===e}},37993(e,t,n){"use strict";var r=n(50576),o=n(28078)(r);e.exports=o},93504(e,t,n){"use strict";var r=n(28078)(/\s/);e.exports=r},66095(e){"use strict";var t=Object.assign;e.exports=t},44961(e){"use strict";var t=String.fromCharCode;e.exports=t},73387(e){"use strict";var t={}.hasOwnProperty;e.exports=t},48266(e){"use strict";e.exports=["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"]},70313(e){"use strict";e.exports=["pre","script","style","textarea"]},68082(e){"use strict";var t=[].splice;e.exports=t},50576(e){"use strict";e.exports=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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]/},66621(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51355),o=n(3139),i=n(25774),a=n(78745),s=n(14324),l=n(38682),c=n(87630),u=n(69754),d=n(58698),f=n(81884),p=n(16624),h=n(20337),g=n(7561),m=n(26650),y=n(34119),v=n(68810),b=n(87467),w=n(25311),_=n(65405),x=n(74235),k=n(22284),S={42:_,43:_,45:_,48:_,49:_,50:_,51:_,52:_,53:_,54:_,55:_,56:_,57:_,62:a},E={91:f},C={"-2":u,"-1":u,32:u},T={35:h,42:k,45:[x,k],60:g,61:x,95:k,96:c,126:c},P={38:l,92:s},O={"-5":w,"-4":w,"-3":w,33:v,38:l,42:o,60:[i,m],91:b,92:[p,s],93:y,95:o,96:d},R={null:[o,r.resolver]};t.contentInitial=E,t.disable={null:[]},t.document=S,t.flow=T,t.flowInitial=C,t.insideSpan=R,t.string=P,t.text=O},70123(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37853),o=n(34408);t.tokenize=function(e){var t,n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null!==t)return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o(e,n,"linePrefix");e.consume(t)},function(t){return e.enter("paragraph"),i(t)});return n;function i(n){var r=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=r),t=r,a(n)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):r(t)?(e.consume(t),e.exit("chunkText"),i):(e.consume(t),a)}}},29361(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37853),o=n(34408),i=n(3306),a={tokenize:function(e,t,n){return o(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},s={tokenize:function(e,t,n){return o(e,e.lazy(this.parser.constructs.flow,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}};t.tokenize=function(e){var t,n,o,l=this,c=[],u=0,d={tokenize:function(e,r){var o=0;return t={},u;function u(r){return o<c.length?(l.containerState=c[o][1],e.attempt(c[o][0].continuation,d,f)(r)):n.currentConstruct&&n.currentConstruct.concrete?(t.flowContinue=!0,g(r)):(l.interrupt=n.currentConstruct&&n.currentConstruct.interruptible,l.containerState={},e.attempt(a,h,g)(r))}function d(e){return o++,l.containerState._closeFlow?h(e):u(e)}function f(t){return n.currentConstruct&&n.currentConstruct.lazy?(l.containerState={},e.attempt(a,h,e.attempt(s,h,e.check(i,h,p)))(t)):h(t)}function p(e){return o=c.length,t.lazy=!0,t.flowContinue=!0,g(e)}function h(e){return t.flowEnd=!0,g(e)}function g(e){return t.continued=o,l.interrupt=l.containerState=void 0,r(e)}},partial:!0};return f;function f(t){return u<c.length?(l.containerState=c[u][1],e.attempt(c[u][0].continuation,p,h)(t)):h(t)}function p(e){return u++,f(e)}function h(r){return t&&t.flowContinue?m(r):(l.interrupt=n&&n.currentConstruct&&n.currentConstruct.interruptible,l.containerState={},e.attempt(a,g,m)(r))}function g(e){return c.push([l.currentConstruct,l.containerState]),l.containerState=void 0,h(e)}function m(t){return null===t?(w(0,!0),void e.consume(t)):(n=n||l.parser.flow(l.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:n}),y(t))}function y(t){return null===t?(b(e.exit("chunkFlow")),m(t)):r(t)?(e.consume(t),b(e.exit("chunkFlow")),e.check(d,v)):(e.consume(t),y)}function v(e){return w(t.continued,t&&t.flowEnd),u=0,f(e)}function b(e){o&&(o.next=e),o=e,n.lazy=t&&t.lazy,n.defineSkip(e.start),n.write(l.sliceStream(e))}function w(t,r){var i=c.length;for(n&&r&&(n.write([null]),o=n=void 0);i-- >t;)l.containerState=c[i][1],c[i][0].exit.call(l,e);c.length=t}}},53348(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58148),o=n(34408),i=n(3306);t.tokenize=function(e){var t=this,n=e.attempt(i,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,a,o(e,e.attempt(this.parser.constructs.flow,a,e.attempt(r,a)),"linePrefix")));return n;function a(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},51355(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(66095),o=n(55852),i=l("text"),a=l("string"),s={resolveAll:c()};function l(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){var t=r[e],o=-1;if(null===e)return!0;if(t)for(;++o<t.length;)if(!t[o].previous||t[o].previous.call(n,n.previous))return!0}},resolveAll:c("text"===e?u:void 0)}}function c(e){return function(t,n){for(var r,o=-1;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function u(e,t){for(var n,i,a,s,l,c,u,d,f=-1;++f<=e.length;)if((f===e.length||"lineEnding"===e[f][1].type)&&"data"===e[f-1][1].type){for(i=e[f-1][1],s=(n=t.sliceStream(i)).length,l=-1,c=0,u=void 0;s--;)if("string"==typeof(a=n[s])){for(l=a.length;32===a.charCodeAt(l-1);)c++,l--;if(l)break;l=-1}else if(-2===a)u=!0,c++;else if(-1!==a){s++;break}c&&(d={type:f===e.length||u||c<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-c,offset:i.end.offset-c,_index:i.start._index+s,_bufferIndex:s?l:i.start._bufferIndex+l},end:o(i.end)},i.end=o(d.start),i.start.offset===i.end.offset?r(i,d):(e.splice(f,0,["enter",d,t],["exit",d,t]),f+=2)),f++}return e}t.resolver=s,t.string=a,t.text=i},26892(e,t,n){"use strict";var r=n(70123),o=n(29361),i=n(53348),a=n(51355),s=n(43780),l=n(19954),c=n(49634),u=n(66621);e.exports=function(e){var t={defined:[],constructs:s([u].concat(c((e||{}).extensions))),content:n(r),document:n(o),flow:n(i),string:n(a.string),text:n(a.text)};return t;function n(e){return function(n){return l(t,e,n)}}}},81484(e,t,n){"use strict";var r=n(46215);e.exports=function(e){for(;!r(e););return e}},49801(e){"use strict";var t=/[\0\t\n\r]/g;e.exports=function(){var e,n=!0,r=1,o="";return function(i,a,s){var l,c,u,d,f,p=[];for(i=o+i.toString(a),u=0,o="",n&&(65279===i.charCodeAt(0)&&u++,n=void 0);u<i.length;){if(t.lastIndex=u,d=(l=t.exec(i))?l.index:i.length,f=i.charCodeAt(d),!l){o=i.slice(u);break}if(10===f&&u===d&&e)p.push(-3),e=void 0;else if(e&&(p.push(-5),e=void 0),u<d&&(p.push(i.slice(u,d)),r+=d-u),0===f)p.push(65533),r++;else if(9===f)for(c=4*Math.ceil(r/4),p.push(-2);r++<c;)p.push(-1);else 10===f?(p.push(-4),r=1):(e=!0,r=1);u=d+1}return s&&(e&&p.push(-5),o&&p.push(o),p.push(null)),p}}},3139(e,t,n){"use strict";var r=n(41025),o=n(9057),i=n(70526),a=n(25980),s=n(10606),l=n(55852),c={name:"attention",tokenize:function(e,t){var n,r=i(this.previous);return function(t){return e.enter("attentionSequence"),n=t,o(t)};function o(a){var s,l,c,u;return a===n?(e.consume(a),o):(s=e.exit("attentionSequence"),c=!(l=i(a))||2===l&&r,u=!r||2===r&&l,s._open=42===n?c:c&&(r||!u),s._close=42===n?u:u&&(l||!c),t(a))}},resolveAll:function(e,t){for(var n,i,c,u,d,f,p,h,g=-1;++g<e.length;)if("enter"===e[g][0]&&"attentionSequence"===e[g][1].type&&e[g][1]._close)for(n=g;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[g][1]).charCodeAt(0)){if((e[n][1]._close||e[g][1]._open)&&(e[g][1].end.offset-e[g][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[g][1].end.offset-e[g][1].start.offset)%3))continue;u={type:(f=e[n][1].end.offset-e[n][1].start.offset>1&&e[g][1].end.offset-e[g][1].start.offset>1?2:1)>1?"strongSequence":"emphasisSequence",start:a(l(e[n][1].end),-f),end:l(e[n][1].end)},d={type:f>1?"strongSequence":"emphasisSequence",start:l(e[g][1].start),end:a(l(e[g][1].start),f)},c={type:f>1?"strongText":"emphasisText",start:l(e[n][1].end),end:l(e[g][1].start)},i={type:f>1?"strong":"emphasis",start:l(u.start),end:l(d.end)},e[n][1].end=l(u.start),e[g][1].start=l(d.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=r(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=r(p,[["enter",i,t],["enter",u,t],["exit",u,t],["enter",c,t]]),p=r(p,s(t.parser.constructs.insideSpan.null,e.slice(n+1,g),t)),p=r(p,[["exit",c,t],["enter",d,t],["exit",d,t],["exit",i,t]]),e[g][1].end.offset-e[g][1].start.offset?(h=2,p=r(p,[["enter",e[g][1],t],["exit",e[g][1],t]])):h=0,o(e,n-1,g-n+3,p),g=n+p.length-h-2;break}for(g=-1;++g<e.length;)"attentionSequence"===e[g][1].type&&(e[g][1].type="data");return e}};e.exports=c},25774(e,t,n){"use strict";var r=n(7565),o=n(15166),i=n(26397),a=n(58404),s={name:"autolink",tokenize:function(e,t,n){var s=1;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return r(t)?(e.consume(t),c):i(t)?f(t):n(t)}function c(e){return 43===e||45===e||46===e||o(e)?u(e):f(e)}function u(t){return 58===t?(e.consume(t),d):(43===t||45===t||46===t||o(t))&&s++<32?(e.consume(t),u):f(t)}function d(t){return 62===t?(e.exit("autolinkProtocol"),m(t)):32===t||60===t||a(t)?n(t):(e.consume(t),d)}function f(t){return 64===t?(e.consume(t),s=0,p):i(t)?(e.consume(t),f):n(t)}function p(e){return o(e)?h(e):n(e)}function h(t){return 46===t?(e.consume(t),s=0,p):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",m(t)):g(t)}function g(t){return(45===t||o(t))&&s++<63?(e.consume(t),45===t?g:h):n(t)}function m(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}};e.exports=s},78745(e,t,n){"use strict";var r=n(52365),o=n(34408),i={name:"blockQuote",tokenize:function(e,t,n){var o=this;return function(t){return 62===t?(o.containerState.open||(e.enter("blockQuote",{_container:!0}),o.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i):n(t)};function i(n){return r(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return o(e,e.attempt(i,t,n),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}},exit:function(e){e.exit("blockQuote")}};e.exports=i},14324(e,t,n){"use strict";var r=n(60105),o={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),o};function o(o){return r(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}};e.exports=o},38682(e,t,n){"use strict";var r=n(37940),o=n(15166),i=n(80220),a=n(76732);var s=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(r),l={name:"characterReference",tokenize:function(e,t,n){var r,l,c=this,u=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),d};function d(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),r=31,l=o,p(t))}function f(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=a,p):(e.enter("characterReferenceValue"),r=7,l=i,p(t))}function p(i){var a;return 59===i&&u?(a=e.exit("characterReferenceValue"),l!==o||s.default(c.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(i),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(i)):l(i)&&u++<r?(e.consume(i),p):n(i)}}};e.exports=l},87630(e,t,n){"use strict";var r=n(37853),o=n(95964),i=n(68170),a=n(34408),s={name:"codeFenced",tokenize:function(e,t,n){var s,l=this,c={tokenize:function(e,t,n){var o=0;return a(e,function(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),i(t)},"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function i(t){return t===s?(e.consume(t),o++,i):o<d?n(t):(e.exit("codeFencedFenceSequence"),a(e,l,"whitespace")(t))}function l(o){return null===o||r(o)?(e.exit("codeFencedFence"),t(o)):n(o)}},partial:!0},u=i(this.events,"linePrefix"),d=0;return function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s=t,f(t)};function f(t){return t===s?(e.consume(t),d++,f):(e.exit("codeFencedFenceSequence"),d<3?n(t):a(e,p,"whitespace")(t))}function p(t){return null===t||r(t)?y(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||o(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(e,g,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),h)}function g(t){return null===t||r(t)?y(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(t))}function m(t){return null===t||r(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(t)):96===t&&t===s?n(t):(e.consume(t),m)}function y(n){return e.exit("codeFencedFence"),l.interrupt?t(n):v(n)}function v(t){return null===t?w(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e.attempt(c,w,u?a(e,v,"linePrefix",u+1):v)):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||r(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),b)}function w(n){return e.exit("codeFenced"),t(n)}},concrete:!0};e.exports=s},69754(e,t,n){"use strict";var r=n(37853),o=n(9057),i=n(68170),a=n(34408),s={name:"codeIndented",tokenize:function(e,t,n){return e.attempt(l,o,n);function o(n){return null===n?t(n):r(n)?e.attempt(l,o,t)(n):(e.enter("codeFlowValue"),i(n))}function i(t){return null===t||r(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}},resolve:function(e,t){var n={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return o(e,0,0,[["enter",n,t]]),o(e,e.length,0,[["exit",n,t]]),e}},l={tokenize:function(e,t,n){var o=this;return a(e,function s(l){return r(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a(e,s,"linePrefix",5)):i(o.events,"linePrefix")<4?n(l):t(l)},"linePrefix",5)},partial:!0};e.exports=s},58698(e,t,n){"use strict";var r=n(37853),o={name:"codeText",tokenize:function(e,t,n){var o,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),a++,s):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):96===t?(i=e.enter("codeTextSequence"),o=0,u(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||r(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),c)}function u(n){return 96===n?(e.consume(n),o++,u):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",c(n))}},resolve:function(e){var t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[r][1].type=e[o][1].type="codeTextPadding",o+=2,r-=2;break}for(t=o-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};e.exports=o},58148(e,t,n){"use strict";var r=n(37853),o=n(68170),i=n(46215),a=n(34408),s={tokenize:function(e,t){var n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(t)};function o(t){return null===t?i(t):r(t)?e.check(l,a,i)(t):(e.consume(t),o)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n=n.next=e.enter("chunkContent",{contentType:"content",previous:n}),o}},resolve:function(e){return i(e),e},interruptible:!0,lazy:!0},l={tokenize:function(e,t,n){var i=this;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a(e,s,"linePrefix")};function s(a){return null===a||r(a)?n(a):i.parser.constructs.disable.null.indexOf("codeIndented")>-1||o(i.events,"linePrefix")<4?e.interrupt(i.parser.constructs.flow,n,t)(a):t(a)}},partial:!0};e.exports=s},81884(e,t,n){"use strict";var r=n(37853),o=n(95964),i=n(4843),a=n(88942),s=n(7516),l=n(34408),c=n(36113),u=n(4932),d={name:"definition",tokenize:function(e,t,n){var o,u=this;return function(t){return e.enter("definition"),s.call(u,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function d(t){return o=i(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),c(e,a(e,e.attempt(f,l(e,p,"whitespace"),l(e,p,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function p(i){return null===i||r(i)?(e.exit("definition"),u.parser.defined.indexOf(o)<0&&u.parser.defined.push(o),t(i)):n(i)}}},f={tokenize:function(e,t,n){return function(t){return o(t)?c(e,i)(t):n(t)};function i(t){return 34===t||39===t||40===t?u(e,l(e,a,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function a(e){return null===e||r(e)?t(e):n(e)}},partial:!0};e.exports=d},88942(e,t,n){"use strict";var r=n(58404),o=n(95964),i=n(37853);e.exports=function(e,t,n,a,s,l,c,u,d){var f=d||1/0,p=0;return function(t){return 60===t?(e.enter(a),e.enter(s),e.enter(l),e.consume(t),e.exit(l),h):r(t)||41===t?n(t):(e.enter(a),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),y(t))};function h(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(s),e.exit(a),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),g(n))}function g(t){return 62===t?(e.exit("chunkString"),e.exit(u),h(t)):null===t||60===t||i(t)?n(t):(e.consume(t),92===t?m:g)}function m(t){return 60===t||62===t||92===t?(e.consume(t),g):g(t)}function y(i){return 40===i?++p>f?n(i):(e.consume(i),y):41===i?p--?(e.consume(i),y):(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(a),t(i)):null===i||o(i)?p?n(i):(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(a),t(i)):r(i)?n(i):(e.consume(i),92===i?v:y)}function v(t){return 40===t||41===t||92===t?(e.consume(t),y):y(t)}}},7516(e,t,n){"use strict";var r=n(37853),o=n(52365);e.exports=function(e,t,n,i,a,s){var l,c=this,u=0;return function(t){return e.enter(i),e.enter(a),e.consume(t),e.exit(a),e.enter(s),d};function d(o){return null===o||91===o||93===o&&!l||94===o&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs||u>999?n(o):93===o?(e.exit(s),e.enter(a),e.consume(o),e.exit(a),e.exit(i),t):r(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(o))}function f(t){return null===t||91===t||93===t||r(t)||u++>999?(e.exit("chunkString"),d(t)):(e.consume(t),l=l||!o(t),92===t?p:f)}function p(t){return 91===t||92===t||93===t?(e.consume(t),u++,f):f(t)}}},34408(e,t,n){"use strict";var r=n(52365);e.exports=function(e,t,n,o){var i=o?o-1:1/0,a=0;return function(o){return r(o)?(e.enter(n),s(o)):t(o)};function s(o){return r(o)&&a++<i?(e.consume(o),s):(e.exit(n),t(o))}}},4932(e,t,n){"use strict";var r=n(37853),o=n(34408);e.exports=function(e,t,n,i,a,s){var l;return function(t){return e.enter(i),e.enter(a),e.consume(t),e.exit(a),l=40===t?41:t,c};function c(n){return n===l?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),t):(e.enter(s),u(n))}function u(t){return t===l?(e.exit(s),c(l)):null===t?n(t):r(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return t===l||null===t||r(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?f:d)}function f(t){return t===l||92===t?(e.consume(t),d):d(t)}}},36113(e,t,n){"use strict";var r=n(37853),o=n(52365),i=n(34408);e.exports=function(e,t){var n;return function a(s){return r(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,a):o(s)?i(e,a,n?"linePrefix":"lineSuffix")(s):t(s)}}},16624(e,t,n){"use strict";var r=n(37853),o={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),o};function o(o){return r(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}};e.exports=o},20337(e,t,n){"use strict";var r=n(37853),o=n(95964),i=n(52365),a=n(9057),s=n(34408),l={name:"headingAtx",tokenize:function(e,t,n){var a=this,l=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),c(t)};function c(r){return 35===r&&l++<6?(e.consume(r),c):null===r||o(r)?(e.exit("atxHeadingSequence"),a.interrupt?t(r):u(r)):n(r)}function u(n){return 35===n?(e.enter("atxHeadingSequence"),d(n)):null===n||r(n)?(e.exit("atxHeading"),t(n)):i(n)?s(e,u,"whitespace")(n):(e.enter("atxHeadingText"),f(n))}function d(t){return 35===t?(e.consume(t),d):(e.exit("atxHeadingSequence"),u(t))}function f(t){return null===t||35===t||o(t)?(e.exit("atxHeadingText"),u(t)):(e.consume(t),f)}},resolve:function(e,t){var n,r,o=e.length-2,i=3;return"whitespace"===e[i][1].type&&(i+=2),o-2>i&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},a(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}};e.exports=l},7561(e,t,n){"use strict";var r=n(7565),o=n(15166),i=n(37853),a=n(95964),s=n(52365),l=n(44961),c=n(48266),u=n(70313),d=n(3306),f={name:"htmlFlow",tokenize:function(e,t,n){var d,f,h,g,m,y=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),v};function v(o){return 33===o?(e.consume(o),b):47===o?(e.consume(o),x):63===o?(e.consume(o),d=3,y.interrupt?t:z):r(o)?(e.consume(o),h=l(o),f=!0,k):n(o)}function b(o){return 45===o?(e.consume(o),d=2,w):91===o?(e.consume(o),d=5,h="CDATA[",g=0,_):r(o)?(e.consume(o),d=4,y.interrupt?t:z):n(o)}function w(r){return 45===r?(e.consume(r),y.interrupt?t:z):n(r)}function _(r){return r===h.charCodeAt(g++)?(e.consume(r),g===h.length?y.interrupt?t:N:_):n(r)}function x(t){return r(t)?(e.consume(t),h=l(t),k):n(t)}function k(r){return null===r||47===r||62===r||a(r)?47!==r&&f&&u.indexOf(h.toLowerCase())>-1?(d=1,y.interrupt?t(r):N(r)):c.indexOf(h.toLowerCase())>-1?(d=6,47===r?(e.consume(r),S):y.interrupt?t(r):N(r)):(d=7,y.interrupt?n(r):f?C(r):E(r)):45===r||o(r)?(e.consume(r),h+=l(r),k):n(r)}function S(r){return 62===r?(e.consume(r),y.interrupt?t:N):n(r)}function E(t){return s(t)?(e.consume(t),E):D(t)}function C(t){return 47===t?(e.consume(t),D):58===t||95===t||r(t)?(e.consume(t),T):s(t)?(e.consume(t),C):D(t)}function T(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),T):P(t)}function P(t){return 61===t?(e.consume(t),O):s(t)?(e.consume(t),P):C(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),m=t,R):s(t)?(e.consume(t),O):(m=void 0,A(t))}function R(t){return t===m?(e.consume(t),I):null===t||i(t)?n(t):(e.consume(t),R)}function A(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||a(t)?P(t):(e.consume(t),A)}function I(e){return 47===e||62===e||s(e)?C(e):n(e)}function D(t){return 62===t?(e.consume(t),L):n(t)}function L(t){return s(t)?(e.consume(t),L):null===t||i(t)?N(t):n(t)}function N(t){return 45===t&&2===d?(e.consume(t),j):60===t&&1===d?(e.consume(t),F):62===t&&4===d?(e.consume(t),B):63===t&&3===d?(e.consume(t),z):93===t&&5===d?(e.consume(t),q):!i(t)||6!==d&&7!==d?null===t||i(t)?$(t):(e.consume(t),N):e.check(p,B,$)(t)}function $(t){return e.exit("htmlFlowData"),M(t)}function M(t){return null===t?H(t):i(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M):(e.enter("htmlFlowData"),N(t))}function j(t){return 45===t?(e.consume(t),z):N(t)}function F(t){return 47===t?(e.consume(t),h="",U):N(t)}function U(t){return 62===t&&u.indexOf(h.toLowerCase())>-1?(e.consume(t),B):r(t)&&h.length<8?(e.consume(t),h+=l(t),U):N(t)}function q(t){return 93===t?(e.consume(t),z):N(t)}function z(t){return 62===t?(e.consume(t),B):N(t)}function B(t){return null===t||i(t)?(e.exit("htmlFlowData"),H(t)):(e.consume(t),B)}function H(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){for(var t=e.length;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},p={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(d,t,n)}},partial:!0};e.exports=f},26650(e,t,n){"use strict";var r=n(7565),o=n(15166),i=n(37853),a=n(95964),s=n(52365),l=n(34408),c={name:"htmlText",tokenize:function(e,t,n){var c,u,d,f,p=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),h};function h(t){return 33===t?(e.consume(t),g):47===t?(e.consume(t),P):63===t?(e.consume(t),C):r(t)?(e.consume(t),A):n(t)}function g(t){return 45===t?(e.consume(t),m):91===t?(e.consume(t),u="CDATA[",d=0,_):r(t)?(e.consume(t),E):n(t)}function m(t){return 45===t?(e.consume(t),y):n(t)}function y(t){return null===t||62===t?n(t):45===t?(e.consume(t),v):b(t)}function v(e){return null===e||62===e?n(e):b(e)}function b(t){return null===t?n(t):45===t?(e.consume(t),w):i(t)?(f=b,F(t)):(e.consume(t),b)}function w(t){return 45===t?(e.consume(t),q):b(t)}function _(t){return t===u.charCodeAt(d++)?(e.consume(t),d===u.length?x:_):n(t)}function x(t){return null===t?n(t):93===t?(e.consume(t),k):i(t)?(f=x,F(t)):(e.consume(t),x)}function k(t){return 93===t?(e.consume(t),S):x(t)}function S(t){return 62===t?q(t):93===t?(e.consume(t),S):x(t)}function E(t){return null===t||62===t?q(t):i(t)?(f=E,F(t)):(e.consume(t),E)}function C(t){return null===t?n(t):63===t?(e.consume(t),T):i(t)?(f=C,F(t)):(e.consume(t),C)}function T(e){return 62===e?q(e):C(e)}function P(t){return r(t)?(e.consume(t),O):n(t)}function O(t){return 45===t||o(t)?(e.consume(t),O):R(t)}function R(t){return i(t)?(f=R,F(t)):s(t)?(e.consume(t),R):q(t)}function A(t){return 45===t||o(t)?(e.consume(t),A):47===t||62===t||a(t)?I(t):n(t)}function I(t){return 47===t?(e.consume(t),q):58===t||95===t||r(t)?(e.consume(t),D):i(t)?(f=I,F(t)):s(t)?(e.consume(t),I):q(t)}function D(t){return 45===t||46===t||58===t||95===t||o(t)?(e.consume(t),D):L(t)}function L(t){return 61===t?(e.consume(t),N):i(t)?(f=L,F(t)):s(t)?(e.consume(t),L):I(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,$):i(t)?(f=N,F(t)):s(t)?(e.consume(t),N):(e.consume(t),c=void 0,j)}function $(t){return t===c?(e.consume(t),M):null===t?n(t):i(t)?(f=$,F(t)):(e.consume(t),$)}function M(e){return 62===e||47===e||a(e)?I(e):n(e)}function j(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||a(t)?I(t):(e.consume(t),j)}function F(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l(e,U,"linePrefix",p.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function U(t){return e.enter("htmlTextData"),f(t)}function q(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}};e.exports=c},34119(e,t,n){"use strict";var r=n(95964),o=n(41025),i=n(9057),a=n(4843),s=n(10606),l=n(55852),c=n(88942),u=n(7516),d=n(4932),f=n(36113),p={name:"labelEnd",tokenize:function(e,t,n){for(var r,o,i=this,s=i.events.length;s--;)if(("labelImage"===i.events[s][1].type||"labelLink"===i.events[s][1].type)&&!i.events[s][1]._balanced){r=i.events[s][1];break}return function(t){return r?r._inactive?c(t):(o=i.parser.defined.indexOf(a(i.sliceSerialize({start:r.end,end:i.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(n){return 40===n?e.attempt(h,t,o?t:c)(n):91===n?e.attempt(g,t,o?e.attempt(m,t,c):c)(n):o?t(n):c(n)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){for(var n,r,a,c,u,d,f,p=e.length,h=0;p--;)if(c=e[p][1],u){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[p][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(d){if("enter"===e[p][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(u=p,"labelLink"!==c.type)){h=2;break}}else"labelEnd"===c.type&&(d=p);return n={type:"labelLink"===e[u][1].type?"link":"image",start:l(e[u][1].start),end:l(e[e.length-1][1].end)},r={type:"label",start:l(e[u][1].start),end:l(e[d][1].end)},a={type:"labelText",start:l(e[u+h+2][1].end),end:l(e[d-2][1].start)},f=o(f=[["enter",n,t],["enter",r,t]],e.slice(u+1,u+h+3)),f=o(f,[["enter",a,t]]),f=o(f,s(t.parser.constructs.insideSpan.null,e.slice(u+h+4,d-3),t)),f=o(f,[["exit",a,t],e[d-2],e[d-1],["exit",r,t]]),f=o(f,e.slice(d+1)),f=o(f,[["exit",n,t]]),i(e,u,e.length,f),e},resolveAll:function(e){for(var t,n=-1;++n<e.length;)(t=e[n][1])._used||"labelImage"!==t.type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},h={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),f(e,o)};function o(t){return 41===t?s(t):c(e,i,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(t)}function i(t){return r(t)?f(e,a)(t):s(t)}function a(t){return 34===t||39===t||40===t?d(e,f(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):s(t)}function s(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},g={tokenize:function(e,t,n){var r=this;return function(t){return u.call(r,e,o,n,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.indexOf(a(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))<0?n(e):t(e)}}},m={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};e.exports=p},68810(e,t,n){"use strict";var r={name:"labelStartImage",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(34119).resolveAll};e.exports=r},87467(e,t,n){"use strict";var r={name:"labelStartLink",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:n(34119).resolveAll};e.exports=r},25311(e,t,n){"use strict";var r=n(34408),o={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r(e,t,"linePrefix")}}};e.exports=o},65405(e,t,n){"use strict";var r=n(80220),o=n(52365),i=n(68170),a=n(24070),s=n(34408),l=n(3306),c=n(22284),u={name:"list",tokenize:function(e,t,n){var s=this,u=i(s.events,"linePrefix"),f=0;return function(t){var o=s.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!s.containerState.marker||t===s.containerState.marker:r(t)){if(s.containerState.type||(s.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(c,n,h)(t):h(t);if(!s.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(t)}return n(t)};function p(t){return r(t)&&++f<10?(e.consume(t),p):(!s.interrupt||f<2)&&(s.containerState.marker?t===s.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),h(t)):n(t)}function h(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||t,e.check(l,s.interrupt?n:g,e.attempt(d,y,m))}function g(e){return s.containerState.initialBlankLine=!0,u++,y(e)}function m(t){return o(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),y):n(t)}function y(n){return s.containerState.size=u+a(s.sliceStream(e.exit("listItemPrefix"))),t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(l,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,s(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!o(n)?(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=r.containerState.initialBlankLine=void 0,e.attempt(f,t,i)(n))});function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,s(e,e.attempt(u,t,n),"linePrefix",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},d={tokenize:function(e,t,n){var r=this;return s(e,function(e){return o(e)||!i(r.events,"listItemPrefixWhitespace")?n(e):t(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5)},partial:!0},f={tokenize:function(e,t,n){var r=this;return s(e,function(e){return i(r.events,"listItemIndent")===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0};e.exports=u},3306(e,t,n){"use strict";var r=n(37853),o=n(34408),i={tokenize:function(e,t,n){return o(e,function(e){return null===e||r(e)?t(e):n(e)},"linePrefix")},partial:!0};e.exports=i},74235(e,t,n){"use strict";var r=n(37853),o=n(55852),i=n(34408),a={name:"setextUnderline",tokenize:function(e,t,n){for(var o,a,s=this,l=s.events.length;l--;)if("lineEnding"!==s.events[l][1].type&&"linePrefix"!==s.events[l][1].type&&"content"!==s.events[l][1].type){a="paragraph"===s.events[l][1].type;break}return function(t){return s.lazy||!s.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=t,c(t))};function c(t){return t===o?(e.consume(t),c):(e.exit("setextHeadingLineSequence"),i(e,u,"lineSuffix")(t))}function u(o){return null===o||r(o)?(e.exit("setextHeadingLine"),t(o)):n(o)}},resolveTo:function(e,t){for(var n,r,i,a,s=e.length;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),i||"definition"!==e[s][1].type||(i=s);return a={type:"setextHeading",start:o(e[r][1].start),end:o(e[e.length-1][1].end)},e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=o(e[i][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}};e.exports=a},22284(e,t,n){"use strict";var r=n(37853),o=n(52365),i=n(34408),a={name:"thematicBreak",tokenize:function(e,t,n){var a,s=0;return function(t){return e.enter("thematicBreak"),a=t,l(t)};function l(u){return u===a?(e.enter("thematicBreakSequence"),c(u)):o(u)?i(e,l,"whitespace")(u):s<3||null!==u&&!r(u)?n(u):(e.exit("thematicBreak"),t(u))}function c(t){return t===a?(e.consume(t),s++,c):(e.exit("thematicBreakSequence"),l(t))}}};e.exports=a},41025(e,t,n){"use strict";var r=n(9057);e.exports=function(e,t){return e.length?(r(e,e.length,0,t),e):t}},9057(e,t,n){"use strict";var r=n(68082);e.exports=function(e,t,n,o){var i,a=e.length,s=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,o.length<1e4)(i=Array.from(o)).unshift(t,n),r.apply(e,i);else for(n&&r.apply(e,[t,n]);s<o.length;)(i=o.slice(s,s+1e4)).unshift(t,0),r.apply(e,i),s+=1e4,t+=1e4}},70526(e,t,n){"use strict";var r=n(95964),o=n(37993),i=n(93504);e.exports=function(e){return null===e||r(e)||i(e)?1:o(e)?2:void 0}},43780(e,t,n){"use strict";var r=n(73387),o=n(9057),i=n(49634);function a(e,t){var n,o,a,l;for(n in t)for(l in o=r.call(e,n)?e[n]:e[n]={},a=t[n])o[l]=s(i(a[l]),r.call(o,l)?o[l]:[])}function s(e,t){for(var n=-1,r=[];++n<e.length;)("after"===e[n].add?t:r).push(e[n]);return o(t,0,0,r),t}e.exports=function(e){for(var t={},n=-1;++n<e.length;)a(t,e[n]);return t}},19954(e,t,n){"use strict";var r=n(66095),o=n(37853),i=n(41025),a=n(9057),s=n(49634),l=n(10606),c=n(56829),u=n(55852),d=n(13261);e.exports=function(e,t,n){var f=n?u(n):{line:1,column:1,offset:0},p={},h=[],g=[],m=[],y={consume:function(e){o(e)?(f.line++,f.column=1,f.offset+=-3===e?2:1,C()):-1!==e&&(f.column++,f.offset++),f._bufferIndex<0?f._index++:(f._bufferIndex++,f._bufferIndex===g[f._index].length&&(f._bufferIndex=-1,f._index++)),v.previous=e},enter:function(e,t){var n=t||{};return n.type=e,n.start=_(),v.events.push(["enter",n,v]),m.push(n),n},exit:function(e){var t=m.pop();return t.end=_(),v.events.push(["exit",t,v]),t},attempt:S(function(e,t){E(e,t.from)}),check:S(k),interrupt:S(k,{interrupt:!0}),lazy:S(k,{lazy:!0})},v={previous:null,events:[],parser:e,sliceStream:w,sliceSerialize:function(e){return c(w(e))},now:_,defineSkip:function(e){p[e.line]=e.column,C()},write:function(e){return g=i(g,e),function(){for(var e,t;f._index<g.length;)if("string"==typeof(t=g[f._index]))for(e=f._index,f._bufferIndex<0&&(f._bufferIndex=0);f._index===e&&f._bufferIndex<t.length;)x(t.charCodeAt(f._bufferIndex));else x(t)}(),null!==g[g.length-1]?[]:(E(t,0),v.events=l(h,v.events,v),v.events)}},b=t.tokenize.call(v,y);return t.resolveAll&&h.push(t),f._index=0,f._bufferIndex=-1,v;function w(e){return d(g,e)}function _(){return u(f)}function x(e){b=b(e)}function k(e,t){t.restore()}function S(e,t){return function(n,o,i){var a,l,c,u;return n.tokenize||"length"in n?d(s(n)):function(e){return e in n||null in n?d(n.null?s(n[e]).concat(s(n.null)):n[e])(e):i(e)};function d(e){return a=e,p(e[l=0])}function p(e){return function(n){var o,i,a,s,l;return o=_(),i=v.previous,a=v.currentConstruct,s=v.events.length,l=Array.from(m),u={restore:function(){f=o,v.previous=i,v.currentConstruct=a,v.events.length=s,m=l,C()},from:s},c=e,e.partial||(v.currentConstruct=e),e.name&&v.parser.constructs.disable.null.indexOf(e.name)>-1?g():e.tokenize.call(t?r({},v,t):v,y,h,g)(n)}}function h(t){return e(c,u),o}function g(e){return u.restore(),++l<a.length?p(a[l]):i}}}function E(e,t){e.resolveAll&&h.indexOf(e)<0&&h.push(e),e.resolve&&a(v.events,t,v.events.length-t,e.resolve(v.events.slice(t),v)),e.resolveTo&&(v.events=e.resolveTo(v.events,v))}function C(){f.line in p&&f.column<2&&(f.column=p[f.line],f.offset+=p[f.line]-1)}}},49634(e){"use strict";e.exports=function(e){return null==e?[]:"length"in e?e:[e]}},25980(e){"use strict";e.exports=function(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}},4843(e){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},68170(e,t,n){"use strict";var r=n(24070);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?r(n[2].sliceStream(n[1])):0}},28078(e,t,n){"use strict";var r=n(44961);e.exports=function(e){return function(t){return e.test(r(t))}}},10606(e){"use strict";e.exports=function(e,t,n){for(var r,o=[],i=-1;++i<e.length;)(r=e[i].resolveAll)&&o.indexOf(r)<0&&(t=r(t,n),o.push(r));return t}},32092(e,t,n){"use strict";var r=n(44961);e.exports=function(e,t){var n=parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":r(n)}},56829(e,t,n){"use strict";var r=n(44961);e.exports=function(e){for(var t,n,o,i=-1,a=[];++i<e.length;){if("string"==typeof(t=e[i]))n=t;else if(-5===t)n="\r";else if(-4===t)n="\n";else if(-3===t)n="\r\n";else if(-2===t)n="\t";else if(-1===t){if(o)continue;n=" "}else n=r(t);o=-2===t,a.push(n)}return a.join("")}},55852(e,t,n){"use strict";var r=n(66095);e.exports=function(e){return r({},e)}},24070(e){"use strict";e.exports=function(e){for(var t=-1,n=0;++t<e.length;)n+="string"==typeof e[t]?e[t].length:1;return n}},13261(e){"use strict";e.exports=function(e,t){var n,r=t.start._index,o=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;return r===i?n=[e[r].slice(o,a)]:(n=e.slice(r,i),o>-1&&(n[0]=n[0].slice(o)),a>0&&n.push(e[i].slice(0,a))),n}},46215(e,t,n){"use strict";var r=n(66095),o=n(9057),i=n(55852);function a(e,t){for(var n,r,i,a,s,l,c=e[t][1],u=e[t][2],d=t-1,f=[],p=c._tokenizer||u.parser[c.contentType](c.start),h=p.events,g=[],m={};c;){for(;e[++d][1]!==c;);f.push(d),c._tokenizer||(n=u.sliceStream(c),c.next||n.push(null),r&&p.defineSkip(c.start),c.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(n),c.isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),r=c,c=c.next}for(c=r,i=h.length;i--;)"enter"===h[i][0]?a=!0:a&&h[i][1].type===h[i-1][1].type&&h[i][1].start.line!==h[i][1].end.line&&(y(h.slice(i+1,s)),c._tokenizer=c.next=void 0,c=c.previous,s=i+1);for(p.events=c._tokenizer=c.next=void 0,y(h.slice(0,s)),i=-1,l=0;++i<g.length;)m[l+g[i][0]]=l+g[i][1],l+=g[i][1]-g[i][0]-1;return m;function y(t){var n=f.pop();g.unshift([n,n+t.length-1]),o(e,n,2,t)}}e.exports=function(e){for(var t,n,s,l,c,u,d,f={},p=-1;++p<e.length;){for(;p in f;)p=f[p];if(t=e[p],p&&"chunkFlow"===t[1].type&&"listItemPrefix"===e[p-1][1].type&&((s=0)<(u=t[1]._tokenizer.events).length&&"lineEndingBlank"===u[s][1].type&&(s+=2),s<u.length&&"content"===u[s][1].type))for(;++s<u.length&&"content"!==u[s][1].type;)"chunkText"===u[s][1].type&&(u[s][1].isInFirstContentOfListItem=!0,s++);if("enter"===t[0])t[1].contentType&&(r(f,a(e,p)),p=f[p],d=!0);else if(t[1]._container||t[1]._movePreviousLineEndings){for(s=p,n=void 0;s--&&("lineEnding"===(l=e[s])[1].type||"lineEndingBlank"===l[1].type);)"enter"===l[0]&&(n&&(e[n][1].type="lineEndingBlank"),l[1].type="lineEnding",n=s);n&&(t[1].end=i(e[n][1].start),(c=e.slice(n,p)).unshift(t),o(e,n,p-n+1,c))}}return!d}},25717(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(14635),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!o.call(e,0))for(var g=0;g<e.length;++g)f.push(String(g));if(r&&e.length>0)for(var m=0;m<e.length;++m)f.push(String(m));else for(var y in e)h&&"prototype"===y||!o.call(e,y)||f.push(String(y));if(l)for(var v=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)v&&"constructor"===u[b]||!o.call(e,u[b])||f.push(u[b]);return f}}e.exports=r},5187(e,t,n){"use strict";var r=Array.prototype.slice,o=n(14635),i=Object.keys,a=i?function(e){return i(e)}:n(25717),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},14635(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},22911(e,t,n){"use strict";var r=n(4927),o=n(98801),i=o("Object.prototype.propertyIsEnumerable"),a=o("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var o in t)i(t,o)&&a(n,[o,t[o]]);return n}},5289(e,t,n){"use strict";var r=n(4938),o=n(17695),i=n(22911),a=n(96686),s=n(61276),l=o(a(),Object);r(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},96686(e,t,n){"use strict";var r=n(22911);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},61276(e,t,n){"use strict";var r=n(96686),o=n(4938);e.exports=function(){var e=r();return o(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},37940(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&n!==r&&n}},30634(e,t,n){var r=n(53389);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(e,t)}(t,n):r(t)?function(t,n,r){for(var o=[],i=0;i<t.length;i++)o.push(e(t[i],n,r).source);return f(new RegExp("(?:"+o.join("|")+")",p(r)),n)}(t,n,o):function(e,t,n){return h(i(e,n),t,n)}(t,n,o)},e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=h;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=o.exec(e));){var u=n[0],f=n[1],p=n.index;if(l+=e.slice(s,p),s=p+u.length,f)l+=f[1];else{var h=e[s],g=n[2],m=n[3],y=n[4],v=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var _=null!=g&&null!=h&&h!==g,x="+"===b||"*"===b,k="?"===b||"*"===b,S=g||c,E=y||v,C=g||("string"==typeof r[r.length-1]?r[r.length-1]:"");r.push({name:m||i++,prefix:g||"",delimiter:S,optional:k,repeat:x,partial:_,asterisk:!!w,pattern:E?d(E):w?".*":a(S,C)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+u(e)+"]+?":u(t)+"|(?:(?!"+u(t)+")[^"+u(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function l(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function c(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",p(t)));return function(t,o){for(var i="",a=t||{},c=(o||{}).pretty?s:encodeURIComponent,u=0;u<e.length;u++){var d=e[u];if("string"!=typeof d){var f,p=a[d.name];if(null==p){if(d.optional){d.partial&&(i+=d.prefix);continue}throw new TypeError('Expected "'+d.name+'" to be defined')}if(r(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(f=c(p[h]),!n[u].test(f))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===h?d.prefix:d.delimiter)+f}}else{if(f=d.asterisk?l(p):c(p),!n[u].test(f))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+f+'"');i+=d.prefix+f}}else i+=d}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function d(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function f(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"==typeof l)a+=u(l);else{var c=u(l.prefix),d="(?:"+l.pattern+")";t.push(l),l.repeat&&(d+="(?:"+c+d+")*"),a+=d=l.optional?l.partial?c+"("+d+")?":"(?:"+c+"("+d+"))?":c+"("+d+")"}}var h=u(n.delimiter||"/"),g=a.slice(-h.length)===h;return o||(a=(g?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&g?"":"(?="+h+"|$)",f(new RegExp("^"+a,p(n)),t)}},85409(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},83622(e,t,n){"use strict";var r=n(11088),o=n(14775),i=n(74690),a=n(57005),s=n(36678),l=n(37558);e.exports=r([i,o,a,s,l])},36678(e,t,n){"use strict";var r=n(46249),o=n(34282),i=r.booleanish,a=r.number,s=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:a,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:i,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}})},37558(e,t,n){"use strict";var r=n(46249),o=n(34282),i=n(39363),a=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:u,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:u,height:c,hidden:a,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:u,itemRef:u,itemScope:a,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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:a,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:u,required:a,reversed:a,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:c,security:null,unselectable:null}})},24329(e,t,n){"use strict";var r=n(46249),o=n(34282),i=n(7426),a=r.boolean,s=r.number,l=r.spaceSeparated,c=r.commaSeparated,u=r.commaOrSpaceSeparated;e.exports=o({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:u,accentHeight:s,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s,amplitude:s,arabicForm:null,ascent:s,attributeName:null,attributeType:null,azimuth:s,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s,by:null,calcMode:null,capHeight:s,className:l,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:s,diffuseConstant:s,direction:null,display:null,dur:null,divisor:s,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:s,enableBackground:null,end:null,event:null,exponent:s,externalResourcesRequired:null,fill:null,fillOpacity:s,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:c,g2:c,glyphName:c,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s,horizOriginX:s,horizOriginY:s,id:null,ideographic:s,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s,k:s,k1:s,k2:s,k3:s,k4:s,kernelMatrix:u,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s,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:s,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:s,overlineThickness:s,paintOrder:null,panose1:null,path:null,pathLength:s,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:l,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s,pointsAtY:s,pointsAtZ:s,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:u,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:u,rev:u,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:u,requiredFeatures:u,requiredFonts:u,requiredFormats:u,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:s,specularExponent:s,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s,strikethroughThickness:s,string:null,stroke:null,strokeDashArray:u,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s,strokeOpacity:s,strokeWidth:null,style:null,surfaceScale:s,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:u,tabIndex:s,tableValues:null,target:null,targetX:s,targetY:s,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:u,to:null,transform:null,u1:null,u2:null,underlinePosition:s,underlineThickness:s,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s,values:null,vAlphabetic:s,vMathematical:s,vectorEffect:null,vHanging:s,vIdeographic:s,version:null,vertAdvY:s,vertOriginX:s,vertOriginY:s,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}})},39363(e,t,n){"use strict";var r=n(7426);e.exports=function(e,t){return r(e,t.toLowerCase())}},7426(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},34282(e,t,n){"use strict";var r=n(43912),o=n(9805),i=n(35898);e.exports=function(e){var t,n,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},f={};for(t in c)n=new i(t,u(l,t),c[t],a),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,f[r(t)]=t,f[r(n.attribute)]=t;return new o(d,f,a)}},35898(e,t,n){"use strict";var r=n(80178),o=n(46249);e.exports=s,s.prototype=new r,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=i.length;function s(e,t,n,s){var c,u=-1;for(l(this,"space",s),r.call(this,e,t);++u<a;)l(this,c=i[u],(n&o[c])===o[c])}function l(e,t,n){n&&(e[t]=n)}},80178(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t){this.property=e,this.attribute=t}t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1},11088(e,t,n){"use strict";var r=n(45918),o=n(9805);e.exports=function(e){for(var t,n,i=e.length,a=[],s=[],l=-1;++l<i;)t=e[l],a.push(t.property),s.push(t.normal),n=t.space;return new o(r.apply(null,a),r.apply(null,s),n)}},9805(e){"use strict";e.exports=n;var t=n.prototype;function n(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}t.space=null,t.normal={},t.property={}},46249(e,t){"use strict";var n=0;function r(){return Math.pow(2,++n)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},14775(e,t,n){"use strict";var r=n(34282);e.exports=r({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})},74690(e,t,n){"use strict";var r=n(34282);e.exports=r({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})},57005(e,t,n){"use strict";var r=n(34282),o=n(39363);e.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:o,properties:{xmlns:null,xmlnsXLink:null}})},43912(e){"use strict";e.exports=function(e){return e.toLowerCase()}},33268(e,t,n){const r=n(58849);e.exports=function(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 e=>{r(e,"element",t)};function t(t,n,r){const o=t,i=r;let a;if(e.allowedElements?a=!e.allowedElements.includes(o.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(o.tagName)),!a&&e.allowElement&&"number"==typeof n&&(a=!e.allowElement(o,n,i)),a&&"number"==typeof n)return e.unwrapDisallowed&&o.children?i.children.splice(n,1,...o.children):i.children.splice(n,1),n}}},66802(e){const t=["http","https","mailto","tel"];e.exports=function(e){const n=(e||"").trim(),r=n.charAt(0);if("#"===r||"/"===r)return n;const o=n.indexOf(":");if(-1===o)return n;let i=-1;for(;++i<t.length;){const e=t[i];if(o===e.length&&n.slice(0,e.length).toLowerCase()===e)return n}return i=n.indexOf("?"),-1!==i&&o>i?n:(i=n.indexOf("#"),-1!==i&&o>i?n:"javascript:void(0)")}},36377(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var i=document.body;for(var a in r)o(i,r[a]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)});var o,i},t.remove=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach(function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)});var o,i}},73950(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,o=(r=n(12602))&&r.__esModule?r:{default:r},i=[],a=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!a)return;setTimeout(function(){a.contains(document.activeElement)||((0,o.default)(a)[0]||a).focus()},0)}}},78126(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],c=i();if(e===c){if(!a)return;r=l}if(l!==c||a||(r=s),s===c&&a&&(r=l),r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=a?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=a?l:s).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(12602))&&r.__esModule?r:{default:r};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},12602(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])},[]).filter(o)};var n=/^(input|select|textarea|button|object|iframe)$/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e),r=n.getPropertyValue("display");return t?"contents"!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,n):"none"===r}catch(e){return console.warn("Failed to inspect element style"),!1}}function o(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var o=isNaN(t);return(o||t>=0)&&function(e,t){var o=e.nodeName.toLowerCase();return(n.test(o)&&!e.disabled||"a"===o&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}(e,!o)}e.exports=t.default},82158(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,l){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,s,l],d=0;(c=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(t,n(0))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=((r=n(4))&&r.__esModule?r:{default:r}).default.createContext({registerPane:function(){},unregisterPane:function(){}});t.default=o,e.exports=t.default},function(e,t,n){"use strict";(function(t){var r,o=n(1);"production"!==t.env.NODE_ENV&&(r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}},o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.apply(void 0,[t].concat(o))}}),e.exports=o}).call(t,n(0))},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(13)(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},!0)}else e.exports=n(12)()}).call(t,n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),i=l(o),a=l(n(7)),s=l(n(5));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.panes={},r.registerPane=function(e,t){t.forEach(function(t){r.panes[t]||(r.panes[t]=[]),r.findPane(e,t)||(r.panes[t].length>0&&r.syncScrollPosition(r.panes[t][0],e),r.panes[t].push(e))}),r.addEvents(e,t)},r.unregisterPane=function(e,t){t.forEach(function(t){r.findPane(e,t)&&(r.removeEvents(e),r.panes[t].splice(r.panes[t].indexOf(e),1))})},r.addEvents=function(e,t){e.onscroll=r.handlePaneScroll.bind(r,e,t)},r.removeEvents=function(e){e.onscroll=null},r.findPane=function(e,t){return!!r.panes[t]&&r.panes[t].find(function(t){return t===e})},r.handlePaneScroll=function(e,t){r.props.enabled&&window.requestAnimationFrame(function(){r.syncScrollPositions(e,t)})},r.syncScrollPositions=function(e,t){t.forEach(function(t){r.panes[t].forEach(function(n){e!==n&&(r.removeEvents(n,t),r.syncScrollPosition(e,n),window.requestAnimationFrame(function(){var e=Object.keys(r.panes).filter(function(e){return r.panes[e].includes(n)});r.addEvents(n,e)}))})}),r.props.onSync&&r.props.onSync(e)},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(e,t){var n=e.scrollTop,r=e.scrollHeight,o=e.clientHeight,i=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth,l=r-o,c=a-s,u=this.props,d=u.proportional,f=u.vertical,p=u.horizontal,h=t.scrollHeight-o,g=t.scrollWidth-s;f&&l>0&&(t.scrollTop=d?h*n/l:n),p&&c>0&&(t.scrollLeft=d?g*i/c:i)}},{key:"render",value:function(){return i.default.createElement(s.default.Provider,{value:this.getContextValue()},i.default.Children.only(this.props.children))}}]),t}(o.Component);u.propTypes={onSync:a.default.func,children:a.default.element.isRequired,proportional:a.default.bool,vertical:a.default.bool,horizontal:a.default.bool,enabled:a.default.bool},u.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},t.default=u,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),i=s(n(7)),a=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toArray=function(e){return[].concat(e)},n.updateNode=function(){n.props.attachTo?n.node=n.props.attachTo.current:n.node=n.childRef.current},n.childRef=e.innerRef?e.innerRef:(0,o.createRef)(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.enabled&&(this.updateNode(),this.node&&this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentDidUpdate",value:function(e){this.props.attachTo!==e.attachTo&&(this.node&&this.context.unregisterPane(this.node,this.toArray(e.group)),this.updateNode(),this.node&&this.context.registerPane(this.node,this.toArray(e.group))),this.node&&this.props.enabled!==e.enabled&&(this.props.enabled?this.context.registerPane(this.node,this.toArray(e.group)):this.context.unregisterPane(this.node,this.toArray(e.group))),this.node&&this.props.enabled&&this.props.group!==e.group&&(this.context.unregisterPane(this.node,this.toArray(e.group)),this.context.registerPane(this.node,this.toArray(this.props.group)))}},{key:"componentWillUnmount",value:function(){this.node&&this.props.enabled&&this.context.unregisterPane(this.node,this.toArray(this.props.group))}},{key:"render",value:function(){return this.props.attachTo?this.props.children:(0,o.cloneElement)(o.Children.only(this.props.children),{ref:this.childRef})}}]),t}(o.Component);l.contextType=a.default,l.propTypes={children:i.default.node.isRequired,attachTo:i.default.oneOfType([i.default.func,i.default.shape({current:i.default.any})]),group:i.default.oneOfType([i.default.string,i.default.arrayOf(i.default.string)]),enabled:i.default.bool,innerRef:i.default.oneOfType([i.default.func,i.default.shape({current:i.default.any})])},l.defaultProps={group:"default",enabled:!0},t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);Object.defineProperty(t,"ScrollSync",{enumerable:!0,get:function(){return i(r).default}});var o=n(9);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ScrollSyncPane",{enumerable:!0,get:function(){return i(o).default}})},function(e,t,n){"use strict";(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(6),i=n(3),a={};e.exports=function(e,n,s,l,c){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",l||"React class",s,u),d=e[u](n,u,l,s,null,i)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,u,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=c?c():"";o(!1,"Failed %s type: %s%s",s,d.message,null!=f?f:"")}}}}).call(t,n(0))},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";(function(t){var r=n(1),o=n(2),i=n(6),a=n(3),s=n(11);e.exports=function(e,n){var l="function"==typeof Symbol&&Symbol.iterator,c="<<anonymous>>",u={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:p(r.thatReturnsNull),arrayOf:function(e){return p(function(t,n,r,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new f("Invalid "+o+" `"+i+"` of type `"+m(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,o,i+"["+l+"]",a);if(c instanceof Error)return c}return null})},element:p(function(t,n,r,o,i){var a=t[n];return e(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}),instanceOf:function(e){return p(function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||c;return new f("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:c)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null})},node:p(function(e,t,n,r,o){return g(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return p(function(t,n,r,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=m(s);if("object"!==l)return new f("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var c in s)if(s.hasOwnProperty(c)){var u=e(s,c,r,o,i+"."+c,a);if(u instanceof Error)return u}return null})},oneOf:function(e){return Array.isArray(e)?p(function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(d(a,e[s]))return null;return new f("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",v(o),n),r.thatReturnsNull}return p(function(t,n,r,o,i){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,o,i,a))return null;return new f("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")})},shape:function(e){return p(function(t,n,r,o,i){var s=t[n],l=m(s);if("object"!==l)return new f("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if(u){var d=u(s,c,r,o,i+"."+c,a);if(d)return d}}return null})}};function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){this.message=e,this.stack=""}function p(e){if("production"!==t.env.NODE_ENV)var r={},s=0;function l(l,u,d,p,h,g,m){if(p=p||c,g=g||d,m!==a)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var y=p+":"+d;!r[y]&&s<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,p),r[y]=!0,s++)}return null==u[d]?l?null===u[d]?new f("The "+h+" `"+g+"` is marked as required in `"+p+"`, but its value is `null`."):new f("The "+h+" `"+g+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(u,d,p,h,g)}var u=l.bind(null,!1);return u.isRequired=l.bind(null,!0),u}function h(e){return p(function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new f("Invalid "+o+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null})}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!g(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!g(i[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,u.checkPropTypes=s,u.PropTypes=u,u}}).call(t,n(0))}])},e.exports=r(n(44119))},33555(e,t,n){var r=n(44119),o="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:n(63805),i=0,a=function(e){return e.topbar||o};function s(e){return r.useEffect(function(){return 0===i&&a(e).show(),i++,function(){0===--i&&a(e).hide()}},[]),null}s.config=o.config,e.exports=s},3189(e,t,n){"use strict";e.exports=function(e){var t=this;this.Parser=function(n){return r(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}};var r=n(55685)},16579(e,t,n){"use strict";var r=n(96679);e.exports=function(e,t){return e&&!e.process&&(t=e,e=null),e?function(e,t){return function(n,o,i){e.run(r(n,t),o,function(e){i(e)})}}(e,t):function(e){return function(t){return r(t,e)}}(t)}},96210(e){"use strict";var t,n="";e.exports=function(e,r){if("string"!=typeof e)throw new TypeError("expected a string");if(1===r)return e;if(2===r)return e+e;var o=e.length*r;if(t!==e||void 0===t)t=e,n="";else if(n.length>=o)return n.substr(0,o);for(;o>n.length&&r>1;)1&r&&(n+=e),r>>=1,e+=e;return n=(n+=e).substr(0,o)}},71389(e,t,n){"use strict";var r=n(67543),o=n(53739);function i(e,t){return e.slice(0,t.length)===t&&e.charAt(t.length+1)!==t.slice(-1)}function a(e){return e}e.exports=function(e,t){"function"==typeof t&&(t={parse:t});var n=function(e){if("object"!==r(e)&&(e={content:e}),"string"!=typeof e.content&&!((t=e.content)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)))throw new TypeError("expected a buffer or string");var t;return e.content=e.content.toString(),e.sections=[],e}(e),s=o({},{section_delimiter:"---",parse:a},t),l=s.section_delimiter,c=n.content.split(/\r?\n/),u=null,d={key:"",data:"",content:""},f=[],p=[];function h(e){n.content=e,u=[],f=[]}function g(e){p.length&&(d.key=function(e,t){return e?e.slice(t.length).trim():""}(p[0],l),d.content=e,s.parse(d,u),u.push(d),d={key:"",data:"",content:""},f=[],p=[])}for(var m=0;m<c.length;m++){var y=c[m],v=p.length,b=y.trim();if(i(b,l)){if(3===b.length&&0!==m){if(0===v||2===v){f.push(y);continue}p.push(b),d.data=f.join("\n"),f=[];continue}null===u&&h(f.join("\n")),2===v&&g(f.join("\n")),p.push(b)}else f.push(y)}return null===u?h(f.join("\n")):g(f.join("\n")),n.sections=u,n}},7755(e,t,n){"use strict";var r=n(49336),o=n(20022),i=n(491)(),a=n(25667),s=n(71102),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},2863(e,t,n){var r=n(36488);e.exports=function(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,s=r(e),l="function"==typeof t,c=0,u=s.length;c<u;c++)i=(n=s[c]).property,a=n.value,l?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}},99589(e,t,n){var r;e=n.nmd(e),function(){"use strict";var n=function(e,t){if(0===e.length)return"";for(var n="",r=0,o=e.length;r<o;r++)if(a(e[r])&&e[r])n+=(n?".":"")+h(e[r]);else{if(!s(e[r]))return!1;t||(n+=(n?".":"")+"["+e[r]+"]")}return n||!1},o=function(e,t){return(n(e)||"<root>")+": "+t},i=function(e){return Object.prototype.toString.call(e)};i.Boolean=i(!1),i.String=i(""),i.Number=i(0),i.Array=i([]),i.Date=i(new Date(0));var a=function(e){return"string"==typeof e},s=function(e){return"number"==typeof e},l=Array.isArray||function(e){return i(e)===i.Array},c=function(e){return null!==e&&"object"==typeof e&&!(l(e)||function(e){return i(e)===i.Date}(e))},u=function(e){if(e.length<1)return!1;for(var t=0,n=e.length;t<n;t++)if(c(e[t]))return!0;return!1},d=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f=function(e,t,n){return"object"==typeof JSON&&JSON?JSON.stringify(n):'"'+String(n).replace(/[\x00-\x1F"\\]/g,function(e){switch(e){case'"':case"\\":return"\\"+e;case"\t":return"\\t";case"\n":return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"\f":return"\\f";default:var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substr(t.length)+t}})+'"'},p=function(e,t,n){if(e.replace){var r=e.replace.call(m(e),t,n);if(a(r))return r;if(null==r)return null;if(!1!==r)throw new Error(o(e.path,"Replacer must return a string, false, null or undefined."))}switch(i(n)){case i.Boolean:return function(e,t,n){return n?"true":"false"}(0,0,n);case i.String:return f(0,0,n);case i.Number:return function(e,t,n){if(!isFinite(n))throw new Error(o(e.path,"Number must be finite."));var r;return r=(r=(Number.isInteger?Number.isInteger(n):Math.floor(n)===n)?n.toFixed(1):String(n)).replace(/([eE])(\d)/,"$1+$2"),/[.eE]/.test(r)?r:r+".0"}(e,0,n);case i.Array:return function(e,t,n){if(function(e){if(e.length<2)return!1;for(var t=i(e[0]),n=1,r=e.length;n<r;n++)if(null!=e[n]&&i(e[n])!==t)return!0;return!1}(n))throw new Error(o(e.path,"Array cannot contain values of different types."));var r=e.table;e.table=n;var s=[],l=e.inPair;u(n)&&(e.inPair=!0);for(var c=0,d=n.length;c<d;c++){e.path.push(c);var f=p(e,c,n[c]);a(f)&&s.push(f),e.path.pop()}return e.inPair=l,e.table=r,!e.inPair&&s.length>0&&e.space?"[\n"+w(s.join(",\n"),1,e.space)+"\n]":"["+s.join(", ")+"]"}(e,0,n);case i.Date:return function(e,t,n){if(!isFinite(n.getTime()))throw new Error(o(e.path,"Invalid Date"));return n.toISOString()}(e,0,n);default:return null==n?null:function(e,t,n){var r=e.table;e.table=n;var i=e.inPair;e.inPair=!0;var s=[],l=Object.keys(n);e.sort&&l.sort(e.sort);for(var c=0,u=l.length;c<u;c++){var f=l[c];if(d(n,f)&&null!=n[f]){if(!f)throw new Error(o(e.path,"Key cannot be an empty string."));e.path.push(f);var g=p(e,f,n[f]);a(g)&&s.push(h(f)+" = "+g),e.path.pop()}}return e.inPair=i,e.table=r,"{"+s.join(", ")+"}"}(e,0,n)}},h=function(e){return!!e&&(/^[a-zA-Z0-9\-_]+$/.test(e)?e:f(0,0,e))},g=function(e,t,n){var r=h(t);if(!r)throw new Error(o(e.path,"Key cannot be an empty string."));var i=p(e,t,n);return a(i)?r+" = "+i:null},m=function(e){return{path:e.path.slice(0),table:e.table}},y=function(e,t,n){if(e.replace){var r=e.replace.call(m(e),t,n);if(a(r))return h(t)+" = "+r;if(null==r)return null;if(!1!==r)throw new Error(o(e.path,"Replacer must return a string, false, null or undefined."))}return!1},v=function(e,t,n,r){var o;if(!(e.replace&&0===e.path.length&&(o=y(e,t,n),a(o)&&e.lines.push(o),!1!==o)||r(e,t,n))){var i=e.table;if(e.table=n,l(n)){var s=e.inTableArray;e.inTableArray=u(n);for(var f=0,p=n.length;f<p;f++)e.path.push(f),v(e,f,n[f],r),e.path.pop();e.inTableArray=s}else if(c(n)){s=e.inTableArray,e.inTableArray=!1;var h=[],m=Object.keys(n);for(e.sort&&m.sort(e.sort),f=0,p=m.length;f<p;f++){var b=m[f];if(d(n,b)){var _=n[b],x=e.path.length>0&&(l(_)?u(_):c(_));l(_)&&u(_)?h.push([!0,b,_,x]):c(_)?h.push([!1,b,_,x]):(e.path.push(b),v(e,b,_,r),e.path.pop())}}if(m=null,e.replace)for(f=0,p=h.length;f<p;f++)if((i=h[f])[0]){if(e.path.push(i[1]),!1!==(o=y(e,i[1],i[2]))){a(o)&&e.lines.push(w(o,e.level,e.space)),i[2]=null,e.path.pop();continue}var k=i[2],S=0;for(b=k.length;S<b;S++){var E=k[S];if(e.path.push(S),o=y(e,S,E),e.path.pop(),!1!==o){if(null==o){k[S]=null;continue}o=g(e,i[1],i[2]),a(o)&&e.lines.push(w(o,e.level,e.space)),i[2]=null;break}}e.path.pop()}else e.path.push(i[1]),!1!==(o=y(e,i[1],i[2]))&&(a(o)&&e.lines.push(w(o,e.level,e.space)),i[2]=null),e.path.pop();for(f=0,p=h.length;f<p;f++)null!=(i=h[f])[2]&&(e.path.push(i[1]),i[3]&&e.level++,v(e,i[1],i[2],r),i[3]&&e.level--,e.path.pop());e.inTableArray=s}e.table=i}},b=function(e,t){if(e.repeat)return e.repeat(t);for(var n="",r="";t>0;)r+=r||e,1&t&&(n+=r),t>>>=1;return n},w=function(e,t,n){var r=b(n,t);return e.replace(/^(?!$)/gm,r)},_=function(e){return a(e)?e:s(e)&&e>=0&&isFinite(e)&&Math.floor(e)===e?b(" ",e):""},x=function(e,t){if(null==e)throw new Error("Undefined or null cannot be stringified.");if(function(e){var t=function(e,n){if(!l(e)&&!c(e))return!1;if(-1!==n.indexOf(e))return!0;for(var r in n.push(e),e)if(d(e,r)){var o=n.length;if(t(e[r],n))return!0;n.splice(o)}return!1};return t(e,[])}(e))throw new Error("Converting circular structure to TOML.");if(null!=t&&"object"!=typeof t)throw new Error("Options must be an object.");if(null!=t.replace&&"function"!=typeof t.replace)throw new Error("Replacer must be a function.");if(null!=t.sort&&"function"!=typeof t.sort)throw new Error("Compare function for sorting must be a function.")},k={toToml:function(e,t){if(!c(e))throw new Error("An object other than Array or Date is expected.");return x(e,t=null!=t?t:{}),function(e,t){var r=[];return v({path:[],table:{"":e},inPair:!1,inTableArray:!1,replace:t.replace,sort:t.sort,level:0,space:_(t.space),lines:r},"",e,function(e,t,o){var i=null;if(c(o))""!==t&&(r.length>0&&r.push(""),i=e.inTableArray?"[["+n(e.path,!0)+"]]":"["+n(e.path,!0)+"]",r.push(w(i,e.level,e.space)));else{if(!l(o))return a(t)&&(i=g(e,t,o),a(i)&&r.push(w(i,e.level,e.space))),!0;if(!a(t))return!0;u(o)||(i=g(e,t,o),a(i)&&r.push(w(i,e.level,e.space)))}}),r.join("\n")}(e,t)},toKey:function(e,t){if(a(e)){if(!(r=h(e)))throw new Error("Key cannot be an empty string.");return r}if(l(e)){var r;if(!1===(r=n(e,t)))throw new Error("Key path must consist of non-empty string(s).");return r}throw new Error("Invalid Arguments for tomlify.toKey({String | Array})")},toValue:function(e,t){return x(e,t=null!=t?t:{}),function(e,t){return p({path:[],table:{"":e},inPair:!1,inTableArray:!1,sort:t.sort,replace:t.replace,level:0,space:_(t.space)},"",e)}(e,t)}};null!=(null!==e?e.exports:void 0)?e.exports=k:void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r)}.call(this)},63805(e,t,n){var r;(function(o,i){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!o.requestAnimationFrame;++n)o.requestAnimationFrame=o[t[n]+"RequestAnimationFrame"],o.cancelAnimationFrame=o[t[n]+"CancelAnimationFrame"]||o[t[n]+"CancelRequestAnimationFrame"];o.requestAnimationFrame||(o.requestAnimationFrame=function(t,n){var r=(new Date).getTime(),i=Math.max(0,16-(r-e)),a=o.setTimeout(function(){t(r+i)},i);return e=r+i,a}),o.cancelAnimationFrame||(o.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,l,c,u,d={autoRun:!0,barThickness:3,barColors:{0:"rgba(26,  188, 156, .9)",".25":"rgba(52,  152, 219, .9)",".50":"rgba(241, 196, 15,  .9)",".75":"rgba(230, 126, 34,  .9)","1.0":"rgba(211, 84,  0,   .9)"},shadowBlur:10,shadowColor:"rgba(0,   0,   0,   .6)",className:null},f=function(){a.width=o.innerWidth,a.height=5*d.barThickness;var e=a.getContext("2d");e.shadowBlur=d.shadowBlur,e.shadowColor=d.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var n in d.barColors)t.addColorStop(n,d.barColors[n]);e.lineWidth=d.barThickness,e.beginPath(),e.moveTo(0,d.barThickness/2),e.lineTo(Math.ceil(c*a.width),d.barThickness/2),e.strokeStyle=t,e.stroke()},p={config:function(e){for(var t in e)d.hasOwnProperty(t)&&(d[t]=e[t])},show:function(){var e,t,n,r;u||(u=!0,null!==l&&o.cancelAnimationFrame(l),a||((r=(a=i.createElement("canvas")).style).position="fixed",r.top=r.left=r.right=r.margin=r.padding=0,r.zIndex=100001,r.display="none",d.className&&a.classList.add(d.className),i.body.appendChild(a),t="resize",n=f,(e=o).addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n),a.style.opacity=1,a.style.display="block",p.progress(0),d.autoRun&&function e(){s=o.requestAnimationFrame(e),p.progress("+"+.05*Math.pow(1-Math.sqrt(c),2))}())},progress:function(e){return void 0===e||("string"==typeof e&&(e=(e.indexOf("+")>=0||e.indexOf("-")>=0?c:0)+parseFloat(e)),c=e>1?1:e,f()),c},hide:function(){u&&(u=!1,null!=s&&(o.cancelAnimationFrame(s),s=null),function e(){if(p.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05))return a.style.display="none",void(l=null);l=o.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}).call(this,window,document)},67678(e,t,n){"use strict";var r=n(57908);e.exports=i,i.wrap=r;var o=[].slice;function i(){var e=[],t={run:function(){var t=-1,n=o.call(arguments,0,-1),i=arguments[arguments.length-1];if("function"!=typeof i)throw new Error("Expected function as last argument, not "+i);(function a(s){var l=e[++t],c=o.call(arguments,0).slice(1),u=n.length,d=-1;if(s)i(s);else{for(;++d<u;)null!==c[d]&&void 0!==c[d]||(c[d]=n[d]);n=c,l?r(l,a).apply(null,n):i.apply(null,[null].concat(n))}}).apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}},57908(e){"use strict";var t=[].slice;e.exports=function(e,n){var r;return function(){var n,a=t.call(arguments,0),s=e.length>a.length;s&&a.push(o);try{n=e.apply(null,a)}catch(e){if(s&&r)throw e;return o(e)}s||(n&&"function"==typeof n.then?n.then(i,o):n instanceof Error?o(n):i(n))};function o(){r||(r=!0,n.apply(null,arguments))}function i(e){o(null,e)}}},10001(e,t,n){"use strict";var r=n(911),o=n(25282);e.exports=r.bind(null,o)},911(e){"use strict";function t(e){return e>=55296&&e<=56319}function n(e){return e>=56320&&e<=57343}e.exports=function(e,r,o){if("string"!=typeof r)throw new Error("Input must be string");for(var i,a,s=r.length,l=0,c=0;c<s;c+=1){if(i=r.charCodeAt(c),a=r[c],t(i)&&n(r.charCodeAt(c+1))&&(a+=r[c+=1]),(l+=e(a))===o)return r.slice(0,c+1);if(l>o)return r.slice(0,c-a.length+1)}return r}},23591(e,t,n){"use strict";var r=n(92178),o=n(21815),i=n(49461),a=n(14479),s=n(67678),l=n(76829);e.exports=function e(){var t,n=[],o=s(),v={},b=-1;return w.data=function(e,n){return"string"==typeof e?2===arguments.length?(g("data",t),v[e]=n,w):u.call(v,e)&&v[e]||null:e?(g("data",t),v=e,w):v},w.freeze=_,w.attachers=n,w.use=function(e){var r;if(g("use",t),null==e);else if("function"==typeof e)u.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?l(e):o(e)}return r&&(v.settings=i(v.settings||{},r)),w;function o(e){l(e.plugins),e.settings&&(r=i(r||{},e.settings))}function s(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?u.apply(null,e):o(e)}}function l(e){var t=-1;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)s(e[t])}}function u(e,t){var r=function(e){for(var t=-1;++t<n.length;)if(n[t][0]===e)return n[t]}(e);r?(a(r[1])&&a(t)&&(t=i(!0,r[1],t)),r[1]=t):n.push(c.call(arguments))}},w.parse=function(e){var t,n=l(e);return _(),p("parse",t=w.Parser),f(t,"parse")?new t(String(n),n).parse():t(String(n),n)},w.stringify=function(e,t){var n,r=l(t);return _(),h("stringify",n=w.Compiler),m(e),f(n,"compile")?new n(e,r).compile():n(e,r)},w.run=x,w.runSync=function(e,t){var n,o;return x(e,t,function(e,t){o=!0,n=t,r(e)}),y("runSync","run",o),n},w.process=k,w.processSync=function(e){var t,n;return _(),p("processSync",w.Parser),h("processSync",w.Compiler),k(t=l(e),function(e){n=!0,r(e)}),y("processSync","process",n),t},w;function w(){for(var t=e(),r=-1;++r<n.length;)t.use.apply(null,n[r]);return t.data(i(!0,{},v)),t}function _(){var e,r;if(t)return w;for(;++b<n.length;)!1!==(e=n[b])[1]&&(!0===e[1]&&(e[1]=void 0),"function"==typeof(r=e[0].apply(w,e.slice(1)))&&o.use(r));return t=!0,b=1/0,w}function x(e,t,n){if(m(e),_(),n||"function"!=typeof t||(n=t,t=null),!n)return new Promise(r);function r(r,i){o.run(e,l(t),function(t,o,a){o=o||e,t?i(t):r?r(o):n(null,o,a)})}r(null,n)}function k(e,t){if(_(),p("process",w.Parser),h("process",w.Compiler),!t)return new Promise(n);function n(n,r){var o=l(e);d.run(w,{file:o},function(e){e?r(e):n?n(o):t(null,o)})}n(null,t)}}().freeze();var c=[].slice,u={}.hasOwnProperty,d=s().use(function(e,t){t.tree=e.parse(t.file)}).use(function(e,t,n){e.run(t.tree,t.file,function(e,r,o){e?n(e):(t.tree=r,t.file=o,n())})}).use(function(e,t){var n=e.stringify(t.tree,t.file);null==n||("string"==typeof n||o(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)});function f(e,t){return"function"==typeof e&&e.prototype&&(function(e){var t;for(t in e)return!0;return!1}(e.prototype)||t in e.prototype)}function p(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function h(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function g(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}function m(e){if(!e||"string"!=typeof e.type)throw new Error("Expected node, got `"+e+"`")}function y(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},58197(e){"use strict";e.exports=function(e,t,n){var r;return null!=n||"object"==typeof t&&!Array.isArray(t)||(n=t,t={}),r=Object.assign({type:String(e)},t),Array.isArray(n)?r.children=n:null!=n&&(r.value=String(n)),r}},39780(e){"use strict";e.exports=function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)}},85358(e){"use strict";function t(){return!0}e.exports=function e(n){if(null==n)return t;if("string"==typeof n)return function(e){return function(t){return Boolean(t&&t.type===e)}}(n);if("object"==typeof n)return"length"in n?function(t){for(var n=[],r=-1;++r<t.length;)n[r]=e(t[r]);return function(){for(var e=-1;++e<n.length;)if(n[e].apply(this,arguments))return!0;return!1}}(n):function(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(n);if("function"==typeof n)return n;throw new Error("Expected function, string, or object as test")}},90920(e){"use strict";var t=o("start"),n=o("end");function r(e){return{start:t(e),end:n(e)}}function o(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=r,r.start=t,r.end=n},7899(e){"use strict";var t={}.hasOwnProperty;function n(e){return e&&"object"==typeof e||(e={}),o(e.line)+":"+o(e.column)}function r(e){return e&&"object"==typeof e||(e={}),n(e.start)+"-"+n(e.end)}function o(e){return e&&"number"==typeof e?e:1}e.exports=function(e){return e&&"object"==typeof e?t.call(e,"position")||t.call(e,"type")?r(e.position):t.call(e,"start")||t.call(e,"end")?r(e):t.call(e,"line")||t.call(e,"column")?n(e):"":""}},49990(e){e.exports=function(e){return e}},67343(e,t,n){"use strict";e.exports=l;var r=n(85358),o=n(49990),i=!0,a="skip",s=!1;function l(e,t,n,l){var c,u;"function"==typeof t&&"function"!=typeof n&&(l=n,n=t,t=null),u=r(t),c=l?-1:1,function e(r,d,f){var p,h="object"==typeof r&&null!==r?r:{};return"string"==typeof h.type&&(p="string"==typeof h.tagName?h.tagName:"string"==typeof h.name?h.name:void 0,g.displayName="node ("+o(h.type+(p?"<"+p+">":""))+")"),g;function g(){var o,p,h=f.concat(r),g=[];if((!t||u(r,d,f[f.length-1]||null))&&(g=function(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[i,e]:[e]}(n(r,f)),g[0]===s))return g;if(r.children&&g[0]!==a)for(p=(l?r.children.length:-1)+c;p>-1&&p<r.children.length;){if((o=e(r.children[p],p,h)())[0]===s)return o;p="number"==typeof o[1]?o[1]:p+c}return g}}(e,null,[])()}l.CONTINUE=i,l.SKIP=a,l.EXIT=s},58849(e,t,n){"use strict";e.exports=s;var r=n(67343),o=r.CONTINUE,i=r.SKIP,a=r.EXIT;function s(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),r(e,t,function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)},o)}s.CONTINUE=o,s.SKIP=i,s.EXIT=a},62797(e,t,n){var r,o,i;i=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=r<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var i=t.join("/"),a=(i=i.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=i():void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)},25282(e){"use strict";function t(e){return e>=55296&&e<=56319}function n(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!=typeof e)throw new Error("Input must be string");for(var r=e.length,o=0,i=null,a=null,s=0;s<r;s++)n(i=e.charCodeAt(s))?null!=a&&t(a)?o+=1:o+=3:i<=127?o+=1:i>=128&&i<=2047?o+=2:i>=2048&&i<=65535&&(o+=3),a=i;return o}},24984(e,t,n){"use strict";var r=n(7899);function o(){}e.exports=a,o.prototype=Error.prototype,a.prototype=new o;var i=a.prototype;function a(e,t,n){var o,i,a;"string"==typeof t&&(n=t,t=null),o=function(e){var t,n=[null,null];return"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1))),n}(n),i=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=o[0],this.ruleId=o[1]}i.file="",i.name="",i.reason="",i.message="",i.stack="",i.fatal=null,i.column=null,i.line=null},76829(e,t,n){"use strict";e.exports=n(14821)},58762(e,t,n){"use strict";var r=n(14380),o=n(1311),i=n(21815);e.exports=l;var a={}.hasOwnProperty,s=["history","path","basename","stem","extname","dirname"];function l(e){var t,n;if(e){if("string"==typeof e||i(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof l))return new l(e);for(this.data={},this.messages=[],this.history=[],this.cwd=o.cwd(),n=-1;++n<s.length;)t=s[n],a.call(e,t)&&(this[t]=e[t]);for(t in e)s.indexOf(t)<0&&(this[t]=e[t])}function c(e,t){if(e&&e.indexOf(r.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function u(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function d(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}l.prototype.toString=function(e){return(this.contents||"").toString(e)},Object.defineProperty(l.prototype,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){u(e,"path"),this.path!==e&&this.history.push(e)}}),Object.defineProperty(l.prototype,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){d(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(l.prototype,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){u(e,"basename"),c(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(l.prototype,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){if(c(e,"extname"),d(this.path,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=r.join(this.dirname,this.stem+(e||""))}}),Object.defineProperty(l.prototype,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){u(e,"stem"),c(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})},14821(e,t,n){"use strict";var r=n(24984),o=n(58762);e.exports=o,o.prototype.message=function(e,t,n){var o=new r(e,t,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o},o.prototype.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.prototype.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}},14380(e,t){"use strict";function n(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}t.basename=function(e,t){var r,o,i,a,s=0,l=-1;if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');if(n(e),r=e.length,void 0===t||!t.length||t.length>e.length){for(;r--;)if(47===e.charCodeAt(r)){if(i){s=r+1;break}}else l<0&&(i=!0,l=r+1);return l<0?"":e.slice(s,l)}if(t===e)return"";for(o=-1,a=t.length-1;r--;)if(47===e.charCodeAt(r)){if(i){s=r+1;break}}else o<0&&(i=!0,o=r+1),a>-1&&(e.charCodeAt(r)===t.charCodeAt(a--)?a<0&&(l=r):(a=-1,l=o));return s===l?l=o:l<0&&(l=e.length),e.slice(s,l)},t.dirname=function(e){var t,r,o;if(n(e),!e.length)return".";for(t=-1,o=e.length;--o;)if(47===e.charCodeAt(o)){if(r){t=o;break}}else r||(r=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},t.extname=function(e){var t,r,o,i=-1,a=0,s=-1,l=0;for(n(e),o=e.length;o--;)if(47!==(r=e.charCodeAt(o)))s<0&&(t=!0,s=o+1),46===r?i<0?i=o:1!==l&&(l=1):i>-1&&(l=-1);else if(t){a=o+1;break}return i<0||s<0||0===l||1===l&&i===s-1&&i===a+1?"":e.slice(i,s)},t.join=function(){for(var e,t,r,o,i=-1;++i<arguments.length;)n(arguments[i]),arguments[i]&&(e=void 0===e?arguments[i]:e+"/"+arguments[i]);return void 0===e?".":(n(t=e),r=47===t.charCodeAt(0),o=function(e,t){for(var n,r,o="",i=0,a=-1,s=0,l=-1;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",i=0):i=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),a=l,s=0;continue}}else if(o.length){o="",i=0,a=l,s=0;continue}t&&(o=o.length?o+"/..":"..",i=2)}else o.length?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(t,!r),o.length||r||(o="."),o.length&&47===t.charCodeAt(t.length-1)&&(o+="/"),r?"/"+o:o)},t.sep="/"},1311(e,t){"use strict";t.cwd=function(){return"/"}},72402(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",r=n,o=Date.now(),i=!1,a=["button","input","select","textarea"],s=[],l=[16,17,18,91,93],c=[],u={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},d=!1,f={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},h=!1;try{var g=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,g)}catch(e){}var m,y=function(e){var t=e.which,o=u[e.type];"pointer"===o&&(o=x(e));var i=!c.length&&-1===l.indexOf(t),s=c.length&&-1!==c.indexOf(t),d="keyboard"===o&&t&&(i||s)||"mouse"===o||"touch"===o;if(k(o)&&(d=!1),d&&n!==o&&(_("input",n=o),v("input")),d&&r!==o){var f=document.activeElement;f&&f.nodeName&&(-1===a.indexOf(f.nodeName.toLowerCase())||"button"===f.nodeName.toLowerCase()&&!T(f,"form"))&&(_("intent",r=o),v("intent"))}},v=function(t){e.setAttribute("data-what"+t,"input"===t?n:r),E(t)},b=function(e){var t=u[e.type];"pointer"===t&&(t=x(e)),C(e),(!d&&!k(t)||d&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&r!==t&&(_("intent",r=t),v("intent"))},w=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},_=function(e,t){if(i)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},x=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},k=function(e){var t=Date.now(),r="mouse"===e&&"touch"===n&&t-o<200;return o=t,r},S=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},E=function(e){for(var t=0,o=s.length;t<o;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:r)},C=function(e){f.x!==e.screenX||f.y!==e.screenY?(d=!1,f.x=e.screenX,f.y=e.screenY):d=!0},T=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(u[S()]="mouse",m=!h||{passive:!0,capture:!0},document.addEventListener("DOMContentLoaded",function(){if(i=!("false"===e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(e){}v("input"),v("intent")},!0),window.PointerEvent?(window.addEventListener("pointerdown",y,!0),window.addEventListener("pointermove",b,!0)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",y,!0),window.addEventListener("MSPointerMove",b,!0)):(window.addEventListener("mousedown",y,!0),window.addEventListener("mousemove",b,!0),"ontouchstart"in window&&(window.addEventListener("touchstart",y,m),window.addEventListener("touchend",y,!0))),window.addEventListener(S(),b,m),window.addEventListener("keydown",y,!0),window.addEventListener("keyup",y,!0),window.addEventListener("focusin",function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):w()},!0),window.addEventListener("focusout",w,!0)),{ask:function(e){return"intent"===e?r:n},element:function(){return t},ignoreKeys:function(e){l=e},specificKeys:function(e){c=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},e.exports=t()},45918(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty},44119(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__44119__},89545(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__89545__},48110(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__48110__},2522(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__2522__},18630(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__18630__},17434(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__17434__},83135(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__83135__},87032(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__87032__},86171(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__86171__},69448(){},28559(e,t,n){e.exports=n(67598).YAML},67598(e,t,n){"use strict";n.d(t,{YAML:()=>Ht});const r="#",o="!",i="ALIAS",a="BLANK_LINE",s="BLOCK_FOLDED",l="BLOCK_LITERAL",c="COMMENT",u="DOCUMENT",d="FLOW_MAP",f="FLOW_SEQ",p="MAP",h="MAP_KEY",g="MAP_VALUE",m="PLAIN",y="QUOTE_DOUBLE",v="QUOTE_SINGLE",b="SEQ",w="SEQ_ITEM",_="tag:yaml.org,2002:",x={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function k(e){const t=[0];let n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function S(e){let t,n;return"string"==typeof e?(t=k(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=k(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function E(e,t){if("number"!=typeof e||e<0)return null;const{lineStarts:n,src:r}=S(t);if(!n||!r||e>r.length)return null;for(let t=0;t<n.length;++t){const r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}const o=n.length;return{line:o,col:e-n[o-1]+1}}class C{static copy(e){return new C(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let o=t;for(;o<e.length&&!(e[o]>n);)++o;this.origStart=n+o;const i=o;for(;o<e.length&&!(e[o]>=r);)++o;return this.origEnd=r+o,i}}class T{static addStringTerminator(e,t,n){if("\n"===n[n.length-1])return n;const r=T.endOfWhiteSpace(e,t);return r>=e.length||"\n"===e[r]?n+"\n":n}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return!0;const o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if("-"!==r&&"."!==r)return!1;const i=e[t+1],a=e[t+2];if(i!==r||a!==r)return!1;const s=e[t+3];return!s||"\n"===s||"\t"===s||" "===s}static endOfIdentifier(e,t){let n=e[t];const r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(e,t,n){const r=T.endOfIndent(e,n);if(r>n+t)return r;{const t=T.endOfWhiteSpace(e,r),n=e[t];if(!n||"\n"===n)return t}return null}static atBlank(e,t,n){const r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(e,t){const n=e[t];return n?"\n"!==n&&"\n"===e[t-1]?t-1:T.endOfWhiteSpace(e,t):t}static foldNewline(e,t,n){let r=0,o=!1,i="",a=e[t+1];for(;" "===a||"\t"===a||"\n"===a;){switch(a){case"\n":r=0,t+=1,i+="\n";break;case"\t":r<=n&&(o=!0),t=T.endOfWhiteSpace(e,t+2)-1;break;case" ":r+=1,t+=1}a=e[t+1]}return i||(i=" "),a&&r<=n&&(o=!0),{fold:i,offset:t,error:o}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;const{src:r}=this.context,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}get anchor(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,"&",!0);if(null!=t)return t}return null}get comment(){const e=[];for(let t=0;t<this.props.length;++t){const n=this.getPropValue(t,r,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return!1;if(!this.valueRange)return!1;const{end:n}=this.valueRange;return e!==n||T.atBlank(t,n-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]===r)return!0}return!1}get hasProps(){if(this.context){const{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]!==r)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[d,f,y,v].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;const e=E(this.range.start,this.context.root);return e?{start:e,end:E(this.range.end,this.context.root)}:void 0}get rawValue(){if(!this.valueRange||!this.context)return null;const{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){const t=this.getPropValue(e,o,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};{const[e,n,r]=t.match(/^(.*!)([^!]*)$/);return{handle:n,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;const{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(e){const{src:t}=this.context;if(t[e]===r){const n=T.endOfLine(t,e+1),r=new C(e,n);return this.props.push(r),n}return e}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach(n=>n.setOrigRange(e,t)),t}toString(){const{context:{src:e},range:t,value:n}=this;if(null!=n)return n;const r=e.slice(t.start,t.end);return T.addStringTerminator(e,t.end,r)}}class P extends Error{constructor(e,t,n){if(!(n&&t instanceof T))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new C(this.offset,this.offset+1);const t=e&&E(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){const{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;const r=e&&function({start:e,end:t},n,r=80){let o=function(e,t){const{lineStarts:n,src:r}=S(t);if(!n||!(e>=1)||e>n.length)return null;const o=n[e-1];let i=n[e];for(;i&&i>o&&"\n"===r[i-1];)--i;return r.slice(o,i)}(e.line,n);if(!o)return null;let{col:i}=e;if(o.length>r)if(i<=r-10)o=o.substr(0,r-1)+"…";else{const e=Math.round(r/2);o.length>i+e&&(o=o.substr(0,i+e-1)+"…"),i-=o.length-r,o="…"+o.substr(1-r)}let a=1,s="";return t&&(t.line===e.line&&i+(t.col-e.col)<=r+1?a=t.col-e.col:(a=Math.min(o.length+1,r)-i,s="…")),`${o}\n${i>1?" ".repeat(i-1):""}${"^".repeat(a)}${s}`}(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}}class O extends P{constructor(e,t){super("YAMLReferenceError",e,t)}}class R extends P{constructor(e,t){super("YAMLSemanticError",e,t)}}class A extends P{constructor(e,t){super("YAMLSyntaxError",e,t)}}class I extends P{constructor(e,t){super("YAMLWarning",e,t)}}function D(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class L extends T{static endOfLine(e,t,n){let r=e[t],o=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){const t=e[o+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t))break;if((" "===r||"\t"===r)&&"#"===t)break;o+=1,r=t}return o}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:n}=this.context;let r=n[t-1];for(;e<t&&("\n"===r||"\t"===r||" "===r);)r=n[--t-1];let o="";for(let r=e;r<t;++r){const e=n[r];if("\n"===e){const{fold:e,offset:t}=T.foldNewline(n,r,-1);o+=e,r=t}else if(" "===e||"\t"===e){const i=r;let a=n[r+1];for(;r<t&&(" "===a||"\t"===a);)r+=1,a=n[r+1];"\n"!==a&&(o+=r>i?n.slice(i,r+1):e)}else o+=e}const i=n[e];switch(i){case"\t":return{errors:[new R(this,"Plain value cannot start with a tab character")],str:o};case"@":case"`":return{errors:[new R(this,`Plain value cannot start with reserved character ${i}`)],str:o};default:return o}}parseBlockValue(e){const{indent:t,inFlow:n,src:r}=this.context;let o=e,i=e;for(let e=r[o];"\n"===e&&!T.atDocumentBoundary(r,o+1);e=r[o]){const e=T.endOfBlockIndent(r,t,o+1);if(null===e||"#"===r[e])break;"\n"===r[e]?o=e:(i=L.endOfLine(r,e,n),o=i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=i,i}parse(e,t){this.context=e;const{inFlow:n,src:r}=e;let o=t;const i=r[o];return i&&"#"!==i&&"\n"!==i&&(o=L.endOfLine(r,t,n)),this.valueRange=new C(t,o),o=T.endOfWhiteSpace(r,o),o=this.parseComment(o),this.hasComment&&!this.valueRange.isEmpty()||(o=this.parseBlockValue(o)),o}}class N extends T{constructor(){super(a)}get includesTrailingLines(){return!0}parse(e,t){return this.context=e,this.range=new C(t,t+1),t+1}}class $ extends T{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let{atLineStart:o,lineStart:i}=e;o||this.type!==w||(this.error=new R(this,"Sequence items must not have preceding content on the same line"));const a=o?t-i:e.indent;let s=T.endOfWhiteSpace(r,t+1),l=r[s];const c="#"===l,u=[];let d=null;for(;"\n"===l||"#"===l;){if("#"===l){const e=T.endOfLine(r,s+1);u.push(new C(s,e)),s=e}else o=!0,i=s+1,"\n"===r[T.endOfWhiteSpace(r,i)]&&0===u.length&&(d=new N,i=d.parse({src:r},i)),s=T.endOfIndent(r,i);l=r[s]}if(T.nextNodeIsIndented(l,s-(i+a),this.type!==w)?this.node=n({atLineStart:o,inCollection:!1,indent:a,lineStart:i,parent:this},s):l&&i>t+1&&(s=i-1),this.node){if(d){const t=e.parent.items||e.parent.contents;t&&t.push(d)}u.length&&Array.prototype.push.apply(this.props,u),s=this.node.range.end}else if(c){const e=u[0];this.props.push(e),s=e.end}else s=T.endOfLine(r,t+1);const f=this.node?this.node.valueRange.end:s;return this.valueRange=new C(t,f),s}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:n,value:r}=this;if(null!=r)return r;const o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return T.addStringTerminator(e,n.end,o)}}class M extends T{constructor(){super(c)}parse(e,t){this.context=e;const n=this.parseComment(t);return this.range=new C(t,n),n}}function j(e){let t=e;for(;t instanceof $;)t=t.node;if(!(t instanceof F))return null;const n=t.items.length;let r=-1;for(let e=n-1;e>=0;--e){const n=t.items[e];if(n.type===c){const{indent:t,lineStart:o}=n.context;if(t>0&&n.range.start>=o+t)break;r=e}else{if(n.type!==a)break;r=e}}if(-1===r)return null;const o=t.items.splice(r,n-r),i=o[0].range.start;for(;t.range.end=i,t.valueRange&&t.valueRange.end>i&&(t.valueRange.end=i),t!==e;)t=t.context.parent;return o}class F extends T{static nextContentHasIndent(e,t,n){const r=T.endOfLine(e,t)+1,o=e[t=T.endOfWhiteSpace(e,r)];return!!o&&(t>=r+n||("#"===o||"\n"===o)&&F.nextContentHasIndent(e,t,n))}constructor(e){super(e.type===w?b:p);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start<e.context.lineStart){this.props=e.props.slice(0,t+1),e.props=e.props.slice(t+1);const n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];const t=j(e);t&&Array.prototype.push.apply(this.items,t)}get includesTrailingLines(){return this.items.length>0}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let o=T.startOfLine(r,t);const i=this.items[0];i.context.parent=this,this.valueRange=C.copy(i.valueRange);const a=i.range.start-i.context.lineStart;let s=t;s=T.normalizeOffset(r,s);let l=r[s],c=T.endOfWhiteSpace(r,o)===s,u=!1;for(;l;){for(;"\n"===l||"#"===l;){if(c&&"\n"===l&&!u){const e=new N;if(s=e.parse({src:r},s),this.valueRange.end=s,s>=r.length){l=null;break}this.items.push(e),s-=1}else if("#"===l){if(s<o+a&&!F.nextContentHasIndent(r,s,a))return s;const e=new M;if(s=e.parse({indent:a,lineStart:o,src:r},s),this.items.push(e),this.valueRange.end=s,s>=r.length){l=null;break}}if(o=s+1,s=T.endOfIndent(r,o),T.atBlank(r,s)){const e=T.endOfWhiteSpace(r,s),t=r[e];t&&"\n"!==t&&"#"!==t||(s=e)}l=r[s],c=!0}if(!l)break;if(s!==o+a&&(c||":"!==l)){if(s<o+a){o>t&&(s=o);break}if(!this.error){const e="All collection items must start at the same column";this.error=new A(this,e)}}if(i.type===w){if("-"!==l){o>t&&(s=o);break}}else if("-"===l&&!this.error){const e=r[s+1];if(!e||"\n"===e||"\t"===e||" "===e){const e="A collection cannot be both a mapping and a sequence";this.error=new A(this,e)}}const e=n({atLineStart:c,inCollection:!0,indent:a,lineStart:o,parent:this},s);if(!e)return s;if(this.items.push(e),this.valueRange.end=e.valueRange.end,s=T.normalizeOffset(r,e.range.end),l=r[s],c=!1,u=e.includesTrailingLines,l){let e=s-1,t=r[e];for(;" "===t||"\t"===t;)t=r[--e];"\n"===t&&(o=e+1,c=!0)}const d=j(e);d&&Array.prototype.push.apply(this.items,d)}return s}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach(n=>{t=n.setOrigRanges(e,t)}),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;let o=e.slice(n.start,t[0].range.start)+String(t[0]);for(let e=1;e<t.length;++e){const n=t[e],{atLineStart:r,indent:i}=n.context;if(r)for(let e=0;e<i;++e)o+=" ";o+=String(n)}return T.addStringTerminator(e,n.end,o)}}class U extends T{constructor(){super("DIRECTIVE"),this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(e){const{src:t}=this.context;let n=e,r=t[n];for(;r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new C(e,n),n}parse(e,t){this.context=e;let n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new C(t,n),n}}class q extends T{static startCommentOrEndBlankLine(e,t){const n=T.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}constructor(){super(u),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let n=!0,r=!1,o=e;for(;!T.atDocumentBoundary(t,o,"-");)switch(o=q.startCommentOrEndBlankLine(t,o),t[o]){case"\n":if(n){const e=new N;o=e.parse({src:t},o),o<t.length&&this.directives.push(e)}else o+=1,n=!0;break;case"#":{const e=new M;o=e.parse({src:t},o),this.directives.push(e),n=!1}break;case"%":{const e=new U;o=e.parse({parent:this,src:t},o),this.directives.push(e),r=!0,n=!1}break;default:return r?this.error=new R(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o}return t[o]?(this.directivesEndMarker=new C(o,o+3),o+3):(r?this.error=new R(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o)}parseContents(e){const{parseNode:t,src:n}=this.context;this.contents||(this.contents=[]);let r=e;for(;"-"===n[r-1];)r-=1;let o=T.endOfWhiteSpace(n,e),i=r===e;for(this.valueRange=new C(o);!T.atDocumentBoundary(n,o,".");){switch(n[o]){case"\n":if(i){const e=new N;o=e.parse({src:n},o),o<n.length&&this.contents.push(e)}else o+=1,i=!0;r=o;break;case"#":{const e=new M;o=e.parse({src:n},o),this.contents.push(e),i=!1}break;default:{const e=T.endOfIndent(n,o),a=t({atLineStart:i,indent:-1,inFlow:!1,inCollection:!1,lineStart:r,parent:this},e);if(!a)return this.valueRange.end=e;this.contents.push(a),o=a.range.end,i=!1;const s=j(a);s&&Array.prototype.push.apply(this.contents,s)}}o=q.startCommentOrEndBlankLine(n,o)}if(this.valueRange.end=o,n[o]&&(this.documentEndMarker=new C(o,o+3),o+=3,n[o])){if(o=T.endOfWhiteSpace(n,o),"#"===n[o]){const e=new M;o=e.parse({src:n},o),this.contents.push(e)}switch(n[o]){case"\n":o+=1;break;case void 0:break;default:this.error=new A(this,"Document end marker line cannot have a non-comment suffix")}}return o}parse(e,t){e.root=this,this.context=e;const{src:n}=e;let r=65279===n.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach(n=>{t=n.setOrigRanges(e,t)}),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach(n=>{t=n.setOrigRanges(e,t)}),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){const{contents:e,directives:t,value:n}=this;if(null!=n)return n;let r=t.join("");return e.length>0&&((t.length>0||e[0].type===c)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}class z extends T{parse(e,t){this.context=e;const{src:n}=e;let r=T.endOfIdentifier(n,t+1);return this.valueRange=new C(t+1,r),r=T.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}const B="KEEP",H="STRIP";class W extends T{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping="CLIP",this.header=null}get includesTrailingLines(){return this.chomping===B}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:n,src:r}=this.context;if(this.valueRange.isEmpty())return"";let o=null,i=r[t-1];for(;"\n"===i||"\t"===i||" "===i;){if(t-=1,t<=e){if(this.chomping===B)break;return""}"\n"===i&&(o=t),i=r[t-1]}let a=t+1;o&&(this.chomping===B?(a=o,t=this.valueRange.end):t=o);const l=n+this.blockIndent,c=this.type===s;let u=!0,d="",f="",p=!1;for(let n=e;n<t;++n){for(let e=0;e<l&&" "===r[n];++e)n+=1;const e=r[n];if("\n"===e)"\n"===f?d+="\n":f="\n";else{const o=T.endOfLine(r,n),i=r.slice(n,o);n=o,c&&(" "===e||"\t"===e)&&n<a?(" "===f?f="\n":p||u||"\n"!==f||(f="\n\n"),d+=f+i,f=o<t&&r[o]||"",p=!0):(d+=f+i,f=c&&n<a?" ":"\n",p=!1),u&&""!==i&&(u=!1)}}return this.chomping===H?d:d+"\n"}parseBlockHeader(e){const{src:t}=this.context;let n=e+1,r="";for(;;){const o=t[n];switch(o){case"-":this.chomping=H;break;case"+":this.chomping=B;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=o;break;default:return this.blockIndent=Number(r)||null,this.header=new C(e,n),n}n+=1}}parseBlockValue(e){const{indent:t,src:n}=this.context,r=!!this.blockIndent;let o=e,i=e,a=1;for(let e=n[o];"\n"===e&&(o+=1,!T.atDocumentBoundary(n,o));e=n[o]){const e=T.endOfBlockIndent(n,t,o);if(null===e)break;const s=n[e],l=e-(o+t);if(this.blockIndent){if(s&&"\n"!==s&&l<this.blockIndent){if("#"===n[e])break;if(!this.error){const e="Block scalars must not be less indented than their "+(r?"explicit indentation indicator":"first line");this.error=new R(this,e)}}}else if("\n"!==n[e]){if(l<a){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new R(this,e)}this.blockIndent=l}else l>a&&(a=l);o="\n"===n[e]?e:i=T.endOfLine(n,e)}return this.chomping!==B&&(o=n[i]?i+1:i),this.valueRange=new C(e+1,o),o}parse(e,t){this.context=e;const{src:n}=e;let r=this.parseBlockHeader(t);return r=T.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}}class V extends T{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===c&&this.prevNodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:n,src:r}=e;let{indent:o,lineStart:i}=e,a=r[t];this.items=[{char:a,offset:t}];let s=T.endOfWhiteSpace(r,t+1);for(a=r[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":if(i=s+1,"\n"===r[T.endOfWhiteSpace(r,i)]){const e=new N;i=e.parse({src:r},i),this.items.push(e)}if(s=T.endOfIndent(r,i),s<=i+o&&(a=r[s],s<i+o||"]"!==a&&"}"!==a)){const e="Insufficient indentation in flow collection";this.error=new R(this,e)}break;case",":this.items.push({char:a,offset:s}),s+=1;break;case"#":{const e=new M;s=e.parse({src:r},s),this.items.push(e)}break;case"?":case":":{const e=r[s+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===a&&this.prevNodeIsJsonLike()){this.items.push({char:a,offset:s}),s+=1;break}}default:{const e=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:i,parent:this},s);if(!e)return this.valueRange=new C(t,s),s;this.items.push(e),s=T.normalizeOffset(r,e.range.end)}}s=T.endOfWhiteSpace(r,s),a=r[s]}return this.valueRange=new C(t,s+1),a&&(this.items.push({char:a,offset:s}),s=T.endOfWhiteSpace(r,s+1),s=this.parseComment(s)),s}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach(n=>{if(n instanceof T)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{let r=t;for(;r<e.length&&!(e[r]>n.offset);)++r;n.origOffset=n.offset+r,t=r}}),t}toString(){const{context:{src:e},items:t,range:n,value:r}=this;if(null!=r)return r;const o=t.filter(e=>e instanceof T);let i="",a=n.start;return o.forEach(t=>{const n=e.slice(a,t.range.start);a=t.range.end,i+=n+String(t),"\n"===i[i.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)}),i+=e.slice(a,n.end),T.addStringTerminator(e,n.end,i)}}class K extends T{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:o}=this.context;'"'!==o[n-1]&&e.push(new A(this,'Missing closing "quote'));let i="";for(let a=t+1;a<n-1;++a){const t=o[a];if("\n"===t){T.atDocumentBoundary(o,a+1)&&e.push(new R(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:n,error:s}=T.foldNewline(o,a,r);i+=t,a=n,s&&e.push(new R(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===t)switch(a+=1,o[a]){case"0":i+="\0";break;case"a":i+="";break;case"b":i+="\b";break;case"e":i+="";break;case"f":i+="\f";break;case"n":i+="\n";break;case"r":i+="\r";break;case"t":case"\t":i+="\t";break;case"v":i+="\v";break;case"N":i+="";break;case"_":i+=" ";break;case"L":i+="\u2028";break;case"P":i+="\u2029";break;case" ":i+=" ";break;case'"':i+='"';break;case"/":i+="/";break;case"\\":i+="\\";break;case"x":i+=this.parseCharCode(a+1,2,e),a+=2;break;case"u":i+=this.parseCharCode(a+1,4,e),a+=4;break;case"U":i+=this.parseCharCode(a+1,8,e),a+=8;break;case"\n":for(;" "===o[a+1]||"\t"===o[a+1];)a+=1;break;default:e.push(new A(this,`Invalid escape sequence ${o.substr(a-1,2)}`)),i+="\\"+o[a]}else if(" "===t||"\t"===t){const e=a;let n=o[a+1];for(;" "===n||"\t"===n;)a+=1,n=o[a+1];"\n"!==n&&(i+=a>e?o.slice(e,a+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parseCharCode(e,t,n){const{src:r}=this.context,o=r.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(n.push(new A(this,`Invalid escape sequence ${r.substr(e-2,t+2)}`)),r.substr(e-2,t+2)):String.fromCodePoint(i)}parse(e,t){this.context=e;const{src:n}=e;let r=K.endOfQuote(n,t+1);return this.valueRange=new C(t,r),r=T.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class G extends T{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[],{start:t,end:n}=this.valueRange,{indent:r,src:o}=this.context;"'"!==o[n-1]&&e.push(new A(this,"Missing closing 'quote"));let i="";for(let a=t+1;a<n-1;++a){const t=o[a];if("\n"===t){T.atDocumentBoundary(o,a+1)&&e.push(new R(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:n,error:s}=T.foldNewline(o,a,r);i+=t,a=n,s&&e.push(new R(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===t)i+=t,a+=1,"'"!==o[a]&&e.push(new A(this,"Unescaped single quote? This should not happen."));else if(" "===t||"\t"===t){const e=a;let n=o[a+1];for(;" "===n||"\t"===n;)a+=1,n=o[a+1];"\n"!==n&&(i+=a>e?o.slice(e,a+1):t)}else i+=t}return e.length>0?{errors:e,str:i}:i}parse(e,t){this.context=e;const{src:n}=e;let r=G.endOfQuote(n,t+1);return this.valueRange=new C(t,r),r=T.endOfWhiteSpace(n,r),r=this.parseComment(r),r}}class Y{static parseType(e,t,n){switch(e[t]){case"*":return i;case">":return s;case"|":return l;case"{":return d;case"[":return f;case"?":return!n&&T.atBlank(e,t+1,!0)?h:m;case":":return!n&&T.atBlank(e,t+1,!0)?g:m;case"-":return!n&&T.atBlank(e,t+1,!0)?w:m;case'"':return y;case"'":return v;default:return m}}constructor(e={},{atLineStart:t,inCollection:n,inFlow:r,indent:o,lineStart:a,parent:p}={}){D(this,"parseNode",(e,t)=>{if(T.atDocumentBoundary(this.src,t))return null;const n=new Y(this,e),{props:r,type:o,valueStart:a}=n.parseProps(t),p=function(e,t){switch(e){case i:return new z(e,t);case s:case l:return new W(e,t);case d:case f:return new V(e,t);case h:case g:case w:return new $(e,t);case c:case m:return new L(e,t);case y:return new K(e,t);case v:return new G(e,t);default:return null}}(o,r);let b=t;try{b=p.parse(n,a)}catch(e){const t=e instanceof Error?e.message:String(e);p.error||(p.error=new A(p,t))}if(p.range=new C(t,b),b<=t&&(p.error||(p.error=new Error("Node#parse consumed no characters")),p.error.parseEnd=b,p.error.source=p,p.range.end=t+1),n.nodeStartsCollection(p)){p.error||n.atLineStart||n.parent.type!==u||(p.error=new A(p,"Block collection must not have preceding content here (e.g. directives-end indicator)"));const e=new F(p);return b=e.parse(new Y(n),b),e.range=new C(t,b),e}return p}),this.atLineStart=null!=t?t:e.atLineStart||!1,this.inCollection=null!=n?n:e.inCollection||!1,this.inFlow=null!=r?r:e.inFlow||!1,this.indent=null!=o?o:e.indent,this.lineStart=null!=a?a:e.lineStart,this.parent=null!=p?p:e.parent||{},this.root=e.root,this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:n,src:r}=this;if(t||n)return!1;if(e instanceof $)return!0;let o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&(o=T.endOfWhiteSpace(r,o),":"===r[o])}parseProps(e){const{inFlow:t,parent:n,src:i}=this,a=[];let s=!1,l=i[e=this.atLineStart?T.endOfIndent(i,e):T.endOfWhiteSpace(i,e)];for(;"&"===l||l===r||l===o||"\n"===l;){if("\n"===l){let t,r=e;do{t=r+1,r=T.endOfIndent(i,t)}while("\n"===i[r]);const o=r-(t+this.indent),a=n.type===w&&n.context.atLineStart;if("#"!==i[r]&&!T.nextNodeIsIndented(i[r],o,!a))break;this.atLineStart=!0,this.lineStart=t,s=!1,e=r}else if(l===r){const t=T.endOfLine(i,e+1);a.push(new C(e,t)),e=t}else{let t=T.endOfIdentifier(i,e+1);l===o&&","===i[t]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(e+1,t+13))&&(t=T.endOfIdentifier(i,t+5)),a.push(new C(e,t)),s=!0,e=T.endOfWhiteSpace(i,t)}l=i[e]}return s&&":"===l&&T.atBlank(i,e+1,!0)&&(e-=1),{props:a,type:Y.parseType(i,e,t),valueStart:e}}}function J(e){const t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,(e,n)=>(e.length>1&&t.push(n),"\n")));const n=[];let r=0;do{const t=new q,o=new Y({src:e});r=t.parse(o,r),n.push(t)}while(r<e.length);return n.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let r=0;r<n.length;++r)e=n[r].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join("...\n"),n}function Q(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}class X{}function Z(e,t,n){if(Array.isArray(e))return e.map((e,t)=>Z(e,String(t),n));if(e&&"function"==typeof e.toJSON){const r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});const o=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(o),o}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}class ee extends X{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:Z(this.value,e,t)}toString(){return String(this.value)}}function te(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if(Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else{const e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}const ne=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done;class re extends X{constructor(e){super(),D(this,"items",[]),this.schema=e}addIn(e,t){if(ne(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0);if(o instanceof re)o.addIn(r,t);else{if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,te(this.schema,r,t))}}}deleteIn([e,...t]){if(0===t.length)return this.delete(e);const n=this.get(e,!0);if(n instanceof re)return n.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],n){const r=this.get(e,!0);return 0===t.length?!n&&r instanceof ee?r.value:r:r instanceof re?r.getIn(t,n):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||"PAIR"!==e.type)return!1;const t=e.value;return null==t||t instanceof ee&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(0===t.length)return this.has(e);const n=this.get(e,!0);return n instanceof re&&n.hasIn(t)}setIn([e,...t],n){if(0===t.length)this.set(e,n);else{const r=this.get(e,!0);if(r instanceof re)r.setIn(t,n);else{if(void 0!==r||!this.schema)throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`);this.set(e,te(this.schema,t,n))}}}toJSON(){return null}toString(e,{blockItem:t,flowChars:n,isMap:r,itemIndent:o},i,a){const{indent:s,indentStep:l,stringify:c}=e,u=this.type===d||this.type===f||e.inFlow;u&&(o+=l);const p=r&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:p,indent:o,inFlow:u,type:null});let h=!1,g=!1;const m=this.items.reduce((t,n,r)=>{let i;n&&(!h&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:`#${e}`})}),n.comment&&(i=n.comment),u&&(!h&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(g=!0)),h=!1;let a=c(n,e,()=>i=null,()=>h=!0);return u&&!g&&a.includes("\n")&&(g=!0),u&&r<this.items.length-1&&(a+=","),a=Q(a,o,i),h&&(i||u)&&(h=!1),t.push({type:"item",str:a}),t},[]);let y;if(0===m.length)y=n.start+n.end;else if(u){const{start:e,end:t}=n,r=m.map(e=>e.str);if(g||r.reduce((e,t)=>e+t.length+2,2)>re.maxFlowStringSingleLineLength){y=e;for(const e of r)y+=e?`\n${l}${s}${e}`:"\n";y+=`\n${s}${t}`}else y=`${e} ${r.join(" ")} ${t}`}else{const e=m.map(t);y=e.shift();for(const t of e)y+=t?`\n${s}${t}`:"\n"}return this.comment?(y+="\n"+this.comment.replace(/^/gm,`${s}#`),i&&i()):h&&a&&a(),y}}function oe(e){let t=e instanceof ee?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}D(re,"maxFlowStringSingleLineLength",60);class ie extends re{add(e){this.items.push(e)}delete(e){const t=oe(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=oe(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&r instanceof ee?r.value:r}has(e){const t=oe(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=oe(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);this.items[n]=t}toJSON(e,t){const n=[];t&&t.onCreate&&t.onCreate(n);let r=0;for(const e of this.items)n.push(Z(e,String(r++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+"  "},t,n):JSON.stringify(this)}}class ae extends X{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=ae.Type.PAIR}get commentBefore(){return this.key instanceof X?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new ee(null)),!(this.key instanceof X))throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");this.key.commentBefore=e}addToJSMap(e,t){const n=Z(this.key,"",e);if(t instanceof Map){const r=Z(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{const r=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof X&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t))(this.key,n,e),o=Z(this.value,r,e);r in t?Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[r]=o}return t}toJSON(e,t){const n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,t,n){if(!e||!e.doc)return JSON.stringify(this);const{indent:r,indentSeq:o,simpleKeys:i}=e.doc.options;let{key:a,value:c}=this,u=a instanceof X&&a.comment;if(i){if(u)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof re)throw new Error("With simple keys, collection cannot be used as a key value")}let d=!i&&(!a||u||(a instanceof X?a instanceof re||a.type===s||a.type===l:"object"==typeof a));const{doc:p,indent:h,indentStep:g,stringify:m}=e;e=Object.assign({},e,{implicitKey:!d,indent:h+g});let y=!1,v=m(a,e,()=>u=null,()=>y=!0);if(v=Q(v,e.indent,u),!d&&v.length>1024){if(i)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(e.allNullValues&&!i)return this.comment?(v=Q(v,e.indent,this.comment),t&&t()):y&&!u&&n&&n(),e.inFlow&&!d?v:`? ${v}`;v=d?`? ${v}\n${h}:`:`${v}:`,this.comment&&(v=Q(v,e.indent,this.comment),t&&t());let b="",w=null;c instanceof X?(c.spaceBefore&&(b="\n"),c.commentBefore&&(b+=`\n${c.commentBefore.replace(/^/gm,`${e.indent}#`)}`),w=c.comment):c&&"object"==typeof c&&(c=p.schema.createNode(c,!0)),e.implicitKey=!1,!d&&!this.comment&&c instanceof ee&&(e.indentAtStart=v.length+1),y=!1,!o&&r>=2&&!e.inFlow&&!d&&c instanceof ie&&c.type!==f&&!c.tag&&!p.anchors.getName(c)&&(e.indent=e.indent.substr(2));const _=m(c,e,()=>w=null,()=>y=!0);let x=" ";return b||this.comment?x=`${b}\n${e.indent}`:!d&&c instanceof re?("["===_[0]||"{"===_[0])&&!_.includes("\n")||(x=`\n${e.indent}`):"\n"===_[0]&&(x=""),y&&!w&&n&&n(),Q(v+x+_,e.indent,w)}}D(ae,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const se=(e,t)=>{if(e instanceof le){const n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof re){let n=0;for(const r of e.items){const e=se(r,t);e>n&&(n=e)}return n}if(e instanceof ae){const n=se(e.key,t),r=se(e.value,t);return Math.max(n,r)}return 1};class le extends X{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:o,inStringifyKey:i}){let a=Object.keys(n).find(e=>n[e]===t);if(!a&&i&&(a=r.anchors.getName(t)||r.anchors.newName()),a)return`*${a}${o?" ":""}`;const s=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${s} [${e}]`)}constructor(e){super(),this.source=e,this.type=i}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return Z(this.source,e,t);const{anchors:n,maxAliasCount:r}=t,o=n.get(this.source);if(!o||void 0===o.res){const e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new O(this.cstNode,e):new ReferenceError(e)}if(r>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=se(this.source,n)),o.count*o.aliasCount>r)){const e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new O(this.cstNode,e):new ReferenceError(e)}return o.res}toString(e){return le.stringify(this,e)}}function ce(e,t){const n=t instanceof ee?t.value:t;for(const r of e)if(r instanceof ae){if(r.key===t||r.key===n)return r;if(r.key&&r.key.value===n)return r}}D(le,"default",!0);class ue extends re{add(e,t){e?e instanceof ae||(e=new ae(e.key||e,e.value)):e=new ae(e);const n=ce(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){const t=this.items.findIndex(t=>r(e,t)<0);-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){const t=ce(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=ce(this.items,e),r=n&&n.value;return!t&&r instanceof ee?r.value:r}has(e){return!!ce(this.items,e)}set(e,t){this.add(new ae(e,t),!0)}toJSON(e,t,n){const r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(const e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!(e instanceof ae))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}}class de extends ae{constructor(e){if(e instanceof ae){let t=e.value;t instanceof ie||(t=new ie,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new ee("<<"),new ie);this.type=ae.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:n}of this.value.items){if(!(n instanceof ue))throw new Error("Merge sources must be maps");const r=n.toJSON(null,e,Map);for(const[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){const n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];const r=super.toString(e,t);return this.value=n,r}}const fe={defaultType:l,lineWidth:76},pe={trueStr:"true",falseStr:"false"},he={asBigInt:!1},ge={nullStr:"null"},me={defaultType:m,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function ye(e,t,n){for(const{format:n,test:r,resolve:o}of t)if(r){const t=e.match(r);if(t){let e=o.apply(null,t);return e instanceof ee||(e=new ee(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new ee(e)}const ve="flow",be="block",we="quoted",_e=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function xe(e,t,n,{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:a,onOverflow:s}){if(!o||o<0)return e;const l=Math.max(1+i,1+o-t.length);if(e.length<=l)return e;const c=[],u={};let d,f,p=o-t.length;"number"==typeof r&&(r>o-Math.max(2,i)?c.push(0):p=o-r);let h=!1,g=-1,m=-1,y=-1;n===be&&(g=_e(e,g),-1!==g&&(p=g+l));for(let t;t=e[g+=1];){if(n===we&&"\\"===t){switch(m=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}y=g}if("\n"===t)n===be&&(g=_e(e,g)),p=g+l,d=void 0;else{if(" "===t&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[g+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=g)}if(g>=p)if(d)c.push(d),p=d+l,d=void 0;else if(n===we){for(;" "===f||"\t"===f;)f=t,t=e[g+=1],h=!0;const n=g>y+1?g-2:m-1;if(u[n])return e;c.push(n),u[n]=!0,p=n+l,d=void 0}else h=!0}f=t}if(h&&s&&s(),0===c.length)return e;a&&a();let v=e.slice(0,c[0]);for(let r=0;r<c.length;++r){const o=c[r],i=c[r+1]||e.length;0===o?v=`\n${t}${e.slice(0,i)}`:(n===we&&u[o]&&(v+=`${e[o]}\\`),v+=`\n${t}${e.slice(o+1,i)}`)}return v}const ke=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},me.fold):me.fold,Se=e=>/^(%|---|\.\.\.)/m.test(e);function Ee(e,t){const{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:o}=me.doubleQuoted,i=JSON.stringify(e);if(r)return i;const a=t.indent||(Se(e)?"  ":"");let s="",l=0;for(let e=0,t=i[e];t;t=i[++e])if(" "===t&&"\\"===i[e+1]&&"n"===i[e+2]&&(s+=i.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(i[e+1]){case"u":{s+=i.slice(l,e);const t=i.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:"00"===t.substr(0,2)?s+="\\x"+t.substr(2):s+=i.substr(e,6)}e+=5,l=e+1}break;case"n":if(n||'"'===i[e+2]||i.length<o)e+=1;else{for(s+=i.slice(l,e)+"\n\n";"\\"===i[e+2]&&"n"===i[e+3]&&'"'!==i[e+4];)s+="\n",e+=2;s+=a," "===i[e+2]&&(s+="\\"),e+=1,l=e+1}break;default:e+=1}return s=l?s+i.slice(l):i,n?s:xe(s,a,we,ke(t))}function Ce(e,t){if(t.implicitKey){if(/\n/.test(e))return Ee(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return Ee(e,t);const n=t.indent||(Se(e)?"  ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:xe(r,n,ve,ke(t))}function Te({comment:e,type:t,value:n},r,o,i){if(/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Ee(n,r);const a=r.indent||(r.forceBlockIndent||Se(n)?"  ":""),c=a?"2":"1",u=t!==s&&(t===l||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let t=0,n=0;t<o;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,o-n<=r)return!1}return!0}(n,me.fold.lineWidth,a.length));let d=u?"|":">";if(!n)return d+"\n";let f="",p="";if(n=n.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");return-1===t?d+="-":n!==e&&t===e.length-1||(d+="+",i&&i()),p=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,e=>{-1!==e.indexOf(" ")&&(d+=c);const t=e.match(/ +$/);return t?(f=e.slice(0,-t[0].length),t[0]):(f=e,"")}),p&&(p=p.replace(/\n+(?!\n|$)/g,`$&${a}`)),f&&(f=f.replace(/\n+/g,`$&${a}`)),e&&(d+=" #"+e.replace(/ ?[\r\n]+/g," "),o&&o()),!n)return`${d}${c}\n${a}${p}`;if(u)return n=n.replace(/\n+/g,`$&${a}`),`${d}\n${a}${f}${n}${p}`;n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${a}`);const h=xe(`${f}${n}${p}`,a,be,me.fold);return`${d}\n${a}${h}`}function Pe(e,t,n,r){const{defaultType:o}=me,{implicitKey:i,inFlow:a}=t;let{type:c,value:u}=e;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));const d=o=>{switch(o){case s:case l:return Te(e,t,n,r);case y:return Ee(u,t);case v:return Ce(u,t);case m:return function(e,t,n,r){const{comment:o,type:i,value:a}=e,{actualString:s,implicitKey:l,indent:c,inFlow:u}=t;if(l&&/[\n[\]{},]/.test(a)||u&&/[[\]{},]/.test(a))return Ee(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return l||u||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?Ce(a,t):Ee(a,t):Te(e,t,n,r);if(!l&&!u&&i!==m&&-1!==a.indexOf("\n"))return Te(e,t,n,r);if(""===c&&Se(a))return t.forceBlockIndent=!0,Te(e,t,n,r);const d=a.replace(/\n+/g,`$&\n${c}`);if(s){const{tags:e}=t.doc.schema;if("string"!=typeof ye(d,e,e.scalarFallback).value)return Ee(a,t)}const f=l?d:xe(d,c,ve,ke(t));return!o||u||-1===f.indexOf("\n")&&-1===o.indexOf("\n")?f:(n&&n(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(f,c,o))}(e,t,n,r);default:return null}};c!==y&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)?c=y:!i&&!a||c!==s&&c!==l||(c=y);let f=d(c);if(null===f&&(f=d(o),null===f))throw new Error(`Unsupported default string type ${o}`);return f}function Oe({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o}function Re(e,t){let n,r,o;switch(t.type){case d:n="}",r="flow map";break;case f:n="]",r="flow sequence";break;default:return void e.push(new R(t,"Not a flow collection!?"))}for(let e=t.items.length-1;e>=0;--e){const n=t.items[e];if(!n||n.type!==c){o=n;break}}if(o&&o.char!==n){const i=`Expected ${r} to end with ${n}`;let a;"number"==typeof o.offset?(a=new R(t,i),a.offset=o.offset+1):(a=new R(o,i),o.range&&o.range.end&&(a.offset=o.range.end-o.range.start)),e.push(a)}}function Ae(e,t){const n=t.context.src[t.range.start-1];if("\n"!==n&&"\t"!==n&&" "!==n){const n="Comments must be separated from other tokens by white space characters";e.push(new R(t,n))}}function Ie(e,t){const n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new R(e,`The "${r}" key is too long`)}function De(e,t){for(const{afterKey:n,before:r,comment:o}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===o?!n&&t.commentBefore||(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+o:t.commentBefore=o):void 0!==o&&(e.comment?e.comment+="\n"+o:e.comment=o)}}function Le(e,t){const n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(n=>{n.source||(n.source=t),e.errors.push(n)}),n.str):""}function Ne(e,t,n){const{tags:r}=e.schema,o=[];for(const i of r)if(i.tag===n){if(!i.test){const n=i.resolve(e,t);return n instanceof re?n:new ee(n)}o.push(i)}const i=Le(e,t);return"string"==typeof i&&o.length>0?ye(i,o,r.scalarFallback):null}function $e(e,t){if(!t)return null;t.error&&e.errors.push(t.error);const{comments:n,hasAnchor:a,hasTag:c}=function(e,t){const n={before:[],after:[]};let i=!1,a=!1;const s=(e=>{if(!e)return!1;const{type:t}=e;return t===h||t===g||t===w})(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:l,end:c}of s)switch(t.context.src[l]){case r:{if(!t.commentHasRequiredWhitespace(l)){const n="Comments must be separated from other tokens by white space characters";e.push(new R(t,n))}const{header:r,valueRange:o}=t;(o&&(l>o.start||r&&l>r.start)?n.after:n.before).push(t.context.src.slice(l+1,c));break}case"&":if(i){const n="A node can have at most one anchor";e.push(new R(t,n))}i=!0;break;case o:if(a){const n="A node can have at most one tag";e.push(new R(t,n))}a=!0}return{comments:n,hasAnchor:i,hasTag:a}}(e.errors,t);if(a){const{anchors:n}=e,r=t.anchor,o=n.getNode(r);o&&(n.map[n.newName(r)]=o),n.map[r]=t}if(t.type===i&&(a||c)){const n="An alias node must not specify any properties";e.errors.push(new R(t,n))}const u=function(e,t){const{anchors:n,errors:r,schema:o}=e;if(t.type===i){const e=t.rawValue,o=n.getNode(e);if(!o){const n=`Aliased anchor not found: ${e}`;return r.push(new O(t,n)),null}const i=new le(o);return n._cstAliases.push(i),i}const a=function(e,t){const{tag:n,type:r}=t;let o=!1;if(n){const{handle:r,suffix:i,verbatim:a}=n;if(a){if("!"!==a&&"!!"!==a)return a;const n=`Verbatim tags aren't resolved, so ${a} is invalid.`;e.errors.push(new R(t,n))}else if("!"!==r||i)try{return function(e,t){const{handle:n,suffix:r}=t.tag;let o=e.tagPrefixes.find(e=>e.handle===n);if(!o){const r=e.getDefaults().tagPrefixes;if(r&&(o=r.find(e=>e.handle===n)),!o)throw new R(t,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new R(t,`The ${n} tag has no suffix.`);if("!"===n&&"1.0"===(e.version||e.options.version)){if("^"===r[0])return e.warnings.push(new I(t,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){const e=r.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${r}`}}return o.prefix+decodeURIComponent(r)}(e,t)}catch(t){e.errors.push(t)}else o=!0}switch(r){case s:case l:case y:case v:return x.STR;case d:case p:return x.MAP;case f:case b:return x.SEQ;case m:return o?x.STR:null;default:return null}}(e,t);if(a)return function(e,t,n){try{const r=Ne(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(n){if(n instanceof P)n.source||(n.source=t),e.errors.push(n);else{const r=n instanceof Error?n.message:String(n);e.errors.push(new R(t,r))}return null}try{const r=function({type:e}){switch(e){case d:case p:return x.MAP;case f:case b:return x.SEQ;default:return x.STR}}(t);if(!r)throw new Error(`The tag ${n} is unavailable`);const o=`The tag ${n} is unavailable, falling back to ${r}`;e.warnings.push(new I(t,o));const i=Ne(e,t,r);return i.tag=n,i}catch(n){const r=new O(t,n.message);return r.stack=n.stack,e.errors.push(r),null}}(e,t,a);if(t.type!==m){const e=`Failed to resolve ${t.type} node here`;return r.push(new A(t,e)),null}try{return ye(Le(e,t),o.tags,o.tags.scalarFallback)}catch(e){return e.source||(e.source=t),r.push(e),null}}(e,t);if(u){u.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(u.cstNode=t),e.options.keepNodeTypes&&(u.type=t.type);const r=n.before.join("\n");r&&(u.commentBefore=u.commentBefore?`${u.commentBefore}\n${r}`:r);const o=n.after.join("\n");o&&(u.comment=u.comment?`${u.comment}\n${o}`:o)}return t.resolved=u}function Me(e,t){if(t.type!==p&&t.type!==d){const n=`A ${t.type} node cannot be resolved as a mapping`;return e.errors.push(new A(t,n)),null}const{comments:n,items:r}=t.type===d?function(e,t){const n=[],r=[];let o,i=!1,s="{";for(let l=0;l<t.items.length;++l){const u=t.items[l];if("string"==typeof u.char){const{char:n,offset:a}=u;if("?"===n&&void 0===o&&!i){i=!0,s=":";continue}if(":"===n){if(void 0===o&&(o=null),":"===s){s=",";continue}}else if(i&&(void 0===o&&","!==n&&(o=null),i=!1),void 0!==o&&(r.push(new ae(o)),o=void 0,","===n)){s=":";continue}if("}"===n){if(l===t.items.length-1)continue}else if(n===s){s=":";continue}const c=new A(t,`Flow map contains an unexpected ${n}`);c.offset=a,e.errors.push(c)}else u.type===a?n.push({afterKey:!!o,before:r.length}):u.type===c?(Ae(e.errors,u),n.push({afterKey:!!o,before:r.length,comment:u.comment})):void 0===o?(","===s&&e.errors.push(new R(u,"Separator , missing in flow map")),o=$e(e,u)):(","!==s&&e.errors.push(new R(u,"Indicator : missing in flow map entry")),r.push(new ae(o,$e(e,u))),o=void 0,i=!1)}return Re(e.errors,t),void 0!==o&&r.push(new ae(o)),{comments:n,items:r}}(e,t):function(e,t){const n=[],r=[];let o,i=null;for(let s=0;s<t.items.length;++s){const l=t.items[s];switch(l.type){case a:n.push({afterKey:!!o,before:r.length});break;case c:n.push({afterKey:!!o,before:r.length,comment:l.comment});break;case h:void 0!==o&&r.push(new ae(o)),l.error&&e.errors.push(l.error),o=$e(e,l.node),i=null;break;case g:{if(void 0===o&&(o=null),l.error&&e.errors.push(l.error),!l.context.atLineStart&&l.node&&l.node.type===p&&!l.node.context.atLineStart){const t="Nested mappings are not allowed in compact mappings";e.errors.push(new R(l.node,t))}let n=l.node;if(!n&&l.props.length>0){n=new L(m,[]),n.context={parent:l,src:l.context.src};const e=l.range.start+1;if(n.range={start:e,end:e},n.valueRange={start:e,end:e},"number"==typeof l.range.origStart){const e=l.range.origStart+1;n.range.origStart=n.range.origEnd=e,n.valueRange.origStart=n.valueRange.origEnd=e}}const a=new ae(o,$e(e,n));je(l,a),r.push(a),o&&"number"==typeof i&&l.range.start>i+1024&&e.errors.push(Ie(t,o)),o=void 0,i=null}break;default:void 0!==o&&r.push(new ae(o)),o=$e(e,l),i=l.range.start,l.error&&e.errors.push(l.error);e:for(let n=s+1;;++n){const r=t.items[n];switch(r&&r.type){case a:case c:continue e;case g:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new R(l,t));break e}}}if(l.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new R(l,t))}}}return void 0!==o&&r.push(new ae(o)),{comments:n,items:r}}(e,t),o=new ue;o.items=r,De(o,n);let i=!1;for(let n=0;n<r.length;++n){const{key:o}=r[n];if(o instanceof re&&(i=!0),e.schema.merge&&o&&"<<"===o.value){r[n]=new de(r[n]);const o=r[n].value.items;let i=null;o.some(e=>{if(e instanceof le){const{type:t}=e.source;return t!==p&&t!==d&&(i="Merge nodes aliases can only point to maps")}return i="Merge nodes can only have Alias nodes as values"}),i&&e.errors.push(new R(t,i))}else for(let i=n+1;i<r.length;++i){const{key:n}=r[i];if(o===n||o&&n&&Object.prototype.hasOwnProperty.call(o,"value")&&o.value===n.value){const n=`Map keys must be unique; "${o}" is repeated`;e.errors.push(new R(t,n));break}}}if(i&&!e.options.mapAsMap){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new I(t,n))}return t.resolved=o,o}function je(e,t){if(!(({context:{lineStart:e,node:t,src:n},props:o})=>{if(0===o.length)return!1;const{start:i}=o[0];if(t&&i>t.valueRange.start)return!1;if(n[i]!==r)return!1;for(let t=e;t<i;++t)if("\n"===n[t])return!1;return!0})(e))return;const n=e.getPropValue(0,r,!0);let o=!1;const i=t.value.commentBefore;if(i&&i.startsWith(n))t.value.commentBefore=i.substr(n.length+1),o=!0;else{const r=t.value.comment;!e.node&&r&&r.startsWith(n)&&(t.value.comment=r.substr(n.length+1),o=!0)}o&&(t.comment=n)}function Fe(e,t){if(t.type!==b&&t.type!==f){const n=`A ${t.type} node cannot be resolved as a sequence`;return e.errors.push(new A(t,n)),null}const{comments:n,items:r}=t.type===f?function(e,t){const n=[],r=[];let o,i=!1,s=null,l="[",u=null;for(let d=0;d<t.items.length;++d){const f=t.items[d];if("string"==typeof f.char){const{char:n,offset:a}=f;if(":"===n||!i&&void 0===o||(i&&void 0===o&&(o=l?r.pop():null),r.push(new ae(o)),i=!1,o=void 0,s=null),n===l)l=null;else if(l||"?"!==n){if("["!==l&&":"===n&&void 0===o){if(","===l){if(o=r.pop(),o instanceof ae){const n=new R(t,"Chaining flow sequence pairs is invalid");n.offset=a,e.errors.push(n)}if(!i&&"number"==typeof s){const n=f.range?f.range.start:f.offset;n>s+1024&&e.errors.push(Ie(t,o));const{src:r}=u.context;for(let t=s;t<n;++t)if("\n"===r[t]){const t="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new R(u,t));break}}}else o=null;s=null,i=!1,l=null}else if("["===l||"]"!==n||d<t.items.length-1){const r=new A(t,`Flow sequence contains an unexpected ${n}`);r.offset=a,e.errors.push(r)}}else i=!0}else if(f.type===a)n.push({before:r.length});else if(f.type===c)Ae(e.errors,f),n.push({comment:f.comment,before:r.length});else{if(l){const t=`Expected a ${l} in flow sequence`;e.errors.push(new R(f,t))}const t=$e(e,f);void 0===o?(r.push(t),u=f):(r.push(new ae(o,t)),o=void 0),s=f.range.start,l=","}}return Re(e.errors,t),void 0!==o&&r.push(new ae(o)),{comments:n,items:r}}(e,t):function(e,t){const n=[],r=[];for(let o=0;o<t.items.length;++o){const i=t.items[o];switch(i.type){case a:n.push({before:r.length});break;case c:n.push({comment:i.comment,before:r.length});break;case w:if(i.error&&e.errors.push(i.error),r.push($e(e,i.node)),i.hasProps){const t="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new R(i,t))}break;default:i.error&&e.errors.push(i.error),e.errors.push(new A(i,`Unexpected ${i.type} node in sequence`))}}return{comments:n,items:r}}(e,t),o=new ie;if(o.items=r,De(o,n),!e.options.mapAsMap&&r.some(e=>e instanceof ae&&e.key instanceof re)){const n="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new I(t,n))}return t.resolved=o,o}var Ue=n(36533).hp,qe=n(85409);const ze={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=Le(e,t);if("function"==typeof Ue)return Ue.from(n,"base64");if("function"==typeof atob){const e=atob(n.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{const n="This environment does not support reading binary tags; either Buffer or atob is required";return e.errors.push(new O(t,n)),null}},options:fe,stringify:({comment:e,type:t,value:n},r,o,i)=>{let a;if("function"==typeof Ue)a=n instanceof Ue?n.toString("base64"):Ue.from(n.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);a=btoa(e)}}if(t||(t=fe.defaultType),t===y)n=a;else{const{lineWidth:e}=fe,r=Math.ceil(a.length/e),o=new Array(r);for(let t=0,n=0;t<r;++t,n+=e)o[t]=a.substr(n,e);n=o.join(t===l?"\n":" ")}return Pe({comment:e,type:t,value:n},r,o,i)}};function Be(e,t){const n=Fe(e,t);for(let e=0;e<n.items.length;++e){let r=n.items[e];if(!(r instanceof ae)){if(r instanceof ue){if(r.items.length>1)throw new R(t,"Each pair must have its own sequence indicator");const e=r.items[0]||new ae;r.commentBefore&&(e.commentBefore=e.commentBefore?`${r.commentBefore}\n${e.commentBefore}`:r.commentBefore),r.comment&&(e.comment=e.comment?`${r.comment}\n${e.comment}`:r.comment),r=e}n.items[e]=r instanceof ae?r:new ae(r)}}return n}function He(e,t,n){const r=new ie(e);r.tag="tag:yaml.org,2002:pairs";for(const o of t){let t,i;if(Array.isArray(o)){if(2!==o.length)throw new TypeError(`Expected [key, value] tuple: ${o}`);t=o[0],i=o[1]}else if(o&&o instanceof Object){const e=Object.keys(o);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${o}`);t=e[0],i=o[t]}else t=o;const a=e.createPair(t,i,n);r.items.push(a)}return r}const We={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Be,createNode:He};class Ve extends ie{constructor(){super(),D(this,"add",ue.prototype.add.bind(this)),D(this,"delete",ue.prototype.delete.bind(this)),D(this,"get",ue.prototype.get.bind(this)),D(this,"has",ue.prototype.has.bind(this)),D(this,"set",ue.prototype.set.bind(this)),this.tag=Ve.tag}toJSON(e,t){const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let r,o;if(e instanceof ae?(r=Z(e.key,"",t),o=Z(e.value,r,t)):r=Z(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}D(Ve,"tag","tag:yaml.org,2002:omap");const Ke={identify:e=>e instanceof Map,nodeClass:Ve,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=Be(e,t),r=[];for(const{key:e}of n.items)if(e instanceof ee){if(r.includes(e.value))throw new R(t,"Ordered maps must not include duplicate keys");r.push(e.value)}return Object.assign(new Ve,n)},createNode:function(e,t,n){const r=He(e,t,n),o=new Ve;return o.items=r.items,o}};class Ge extends ue{constructor(){super(),this.tag=Ge.tag}add(e){const t=e instanceof ae?e:new ae(e);ce(this.items,t.key)||this.items.push(t)}get(e,t){const n=ce(this.items,e);return!t&&n instanceof ae?n.key instanceof ee?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=ce(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new ae(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}D(Ge,"tag","tag:yaml.org,2002:set");const Ye={identify:e=>e instanceof Set,nodeClass:Ge,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=Me(e,t);if(!n.hasAllNullValues())throw new R(t,"Set items must all have null values");return Object.assign(new Ge,n)},createNode:function(e,t,n){const r=new Ge;for(const o of t)r.items.push(e.createPair(o,null,n));return r}},Je=(e,t)=>{const n=t.split(":").reduce((e,t)=>60*e+Number(t),0);return"-"===e?-n:n},Qe=({value:e})=>{if(isNaN(e)||!isFinite(e))return Oe(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")},Xe={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>Je(t,n.replace(/_/g,"")),stringify:Qe},Ze={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>Je(t,n.replace(/_/g,"")),stringify:Qe},et={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,o,i,a,s,l)=>{s&&(s=(s+"00").substr(1,3));let c=Date.UTC(t,n-1,r,o||0,i||0,a||0,s||0);if(l&&"Z"!==l){let e=Je(l[0],l.slice(1));Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function tt(e){const t=void 0!==qe&&qe.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function nt(e,t){if(tt(!1)){const n=void 0!==qe&&qe.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const rt={},ot={createNode:function(e,t,n){const r=new ue(e);if(t instanceof Map)for(const[o,i]of t)r.items.push(e.createPair(o,i,n));else if(t&&"object"==typeof t)for(const o of Object.keys(t))r.items.push(e.createPair(o,t[o],n));return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r},default:!0,nodeClass:ue,tag:"tag:yaml.org,2002:map",resolve:Me},it={createNode:function(e,t,n){const r=new ie(e);if(t&&t[Symbol.iterator])for(const o of t){const t=e.createNode(o,n.wrapScalars,null,n);r.items.push(t)}return r},default:!0,nodeClass:ie,tag:"tag:yaml.org,2002:seq",resolve:Fe},at=[ot,it,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Le,stringify:(e,t,n,r)=>Pe(e,t=Object.assign({actualString:!0},t),n,r),options:me}],st=e=>"bigint"==typeof e||Number.isInteger(e),lt=(e,t,n)=>he.asBigInt?BigInt(e):parseInt(t,n);function ct(e,t,n){const{value:r}=e;return st(r)&&r>=0?n+r.toString(t):Oe(e)}const ut={identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new ee(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:ge,stringify:()=>ge.nullStr},dt={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:pe,stringify:({value:e})=>e?pe.trueStr:pe.falseStr},ft={identify:e=>st(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>lt(e,t,8),options:he,stringify:e=>ct(e,8,"0o")},pt={identify:st,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>lt(e,e,10),options:he,stringify:Oe},ht={identify:e=>st(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>lt(e,t,16),options:he,stringify:e=>ct(e,16,"0x")},gt={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Oe},mt={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},yt={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const r=t||n,o=new ee(parseFloat(e));return r&&"0"===r[r.length-1]&&(o.minFractionDigits=r.length),o},stringify:Oe},vt=at.concat([ut,dt,ft,pt,ht,gt,mt,yt]),bt=e=>"bigint"==typeof e||Number.isInteger(e),wt=({value:e})=>JSON.stringify(e),_t=[ot,it,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:Le,stringify:wt},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new ee(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:wt},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:wt},{identify:bt,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>he.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>bt(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:wt}];_t.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};const xt=({value:e})=>e?pe.trueStr:pe.falseStr,kt=e=>"bigint"==typeof e||Number.isInteger(e);function St(e,t,n){let r=t.replace(/_/g,"");if(he.asBigInt){switch(n){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`}const t=BigInt(r);return"-"===e?BigInt(-1)*t:t}const o=parseInt(r,n);return"-"===e?-1*o:o}function Et(e,t,n){const{value:r}=e;if(kt(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return Oe(e)}const Ct=at.concat([{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new ee(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:ge,stringify:()=>ge.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:pe,stringify:xt},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:pe,stringify:xt},{identify:kt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>St(t,n,2),stringify:e=>Et(e,2,"0b")},{identify:kt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>St(t,n,8),stringify:e=>Et(e,8,"0")},{identify:kt,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>St(t,n,10),stringify:Oe},{identify:kt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>St(t,n,16),stringify:e=>Et(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Oe},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new ee(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(n.minFractionDigits=e.length)}return n},stringify:Oe}],ze,Ke,We,Ye,Xe,Ze,et),Tt={core:vt,failsafe:at,json:_t,yaml11:Ct},Pt={binary:ze,bool:dt,float:yt,floatExp:mt,floatNaN:gt,floatTime:Ze,int:pt,intHex:ht,intOct:ft,intTime:Xe,map:ot,null:ut,omap:Ke,pairs:We,seq:it,set:Ye,timestamp:et},Ot=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Rt{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:o}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?Ot:r||null,!e&&o&&function(e,t){if(!rt[e]&&tt(!0)){rt[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",nt(n,"DeprecationWarning")}}("tags","customTags"),this.tags=function(e,t,n,r){let o=e[r.replace(/\W/g,"")];if(!o){const t=Object.keys(e).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)o=o.concat(e);else"function"==typeof n&&(o=n(o.slice()));for(let e=0;e<o.length;++e){const n=o[e];if("string"==typeof n){const r=t[n];if(!r){const e=Object.keys(t).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}o[e]=r}}return o}(Tt,Pt,e||o,n)}createNode(e,t,n,r){const o={defaultPrefix:Rt.defaultPrefix,schema:this,wrapScalars:t};return function(e,t,n){if(e instanceof X)return e;const{defaultPrefix:r,onTagObj:o,prevObjects:i,schema:a,wrapScalars:s}=n;t&&t.startsWith("!!")&&(t=r+t.slice(2));let l=function(e,t,n){if(t){const e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)}(e,t,a.tags);if(!l){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return s?new ee(e):e;l=e instanceof Map?ot:e[Symbol.iterator]?it:ot}o&&(o(l),delete n.onTagObj);const c={value:void 0,node:void 0};if(e&&"object"==typeof e&&i){const t=i.get(e);if(t){const e=new le(t);return n.aliasNodes.push(e),e}c.value=e,i.set(e,c)}return c.node=l.createNode?l.createNode(n.schema,e,n):s?new ee(e):e,t&&c.node instanceof X&&(c.node.tag=t),c.node}(e,n,r?Object.assign(r,o):o)}createPair(e,t,n){n||(n={wrapScalars:!0});const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new ae(r,o)}}D(Rt,"defaultPrefix",_),D(Rt,"defaultTags",x);const At={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},It={get binary(){return fe},set binary(e){Object.assign(fe,e)},get bool(){return pe},set bool(e){Object.assign(pe,e)},get int(){return he},set int(e){Object.assign(he,e)},get null(){return ge},set null(e){Object.assign(ge,e)},get str(){return me},set str(e){Object.assign(me,e)}},Dt={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:_},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:_}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:_}]}};function Lt(e,t){if("1.0"===(e.version||e.options.version)){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find(e=>0===t.indexOf(e.prefix));if(!n){const r=e.getDefaults().tagPrefixes;n=r&&r.find(e=>0===t.indexOf(e.prefix))}if(!n)return"!"===t[0]?t:`!<${t}>`;const r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]));return n.handle+r}function Nt(e,t,n,r){const{anchors:o,schema:i}=t.doc;let a;if(!(e instanceof X)){const t={aliasNodes:[],onTagObj:e=>a=e,prevObjects:new Map};e=i.createNode(e,!0,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=o.getName(e.source);t||(t=o.newName(),o.map[t]=e.source)}}if(e instanceof ae)return e.toString(t,n,r);a||(a=function(e,t){if(t instanceof le)return le;if(t.tag){const n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)||n[0]}let n,r;if(t instanceof ee){r=t.value;const o=e.filter(e=>e.identify&&e.identify(r)||e.class&&r instanceof e.class);n=o.find(e=>e.format===t.format)||o.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){const e=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${e} value`)}return n}(i.tags,e));const s=function(e,t,{anchors:n,doc:r}){const o=[],i=r.anchors.getName(e);return i&&(n[i]=e,o.push(`&${i}`)),e.tag?o.push(Lt(r,e.tag)):t.default||o.push(Lt(r,t.tag)),o.join(" ")}(e,a,t);s.length>0&&(t.indentAtStart=(t.indentAtStart||0)+s.length+1);const l="function"==typeof a.stringify?a.stringify(e,t,n,r):e instanceof ee?Pe(e,t,n,r):e.toString(t,n,r);return s?e instanceof ee||"{"===l[0]||"["===l[0]?`${s} ${l}`:`${s}\n${t.indent}${l}`:l}class $t{static validAnchorNode(e){return e instanceof ee||e instanceof ie||e instanceof ue}constructor(e){D(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new le(e)}createMergePair(...e){const t=new de;return t.value.items=e.map(e=>{if(e instanceof le){if(e.source instanceof ue)return e}else if(e instanceof ue)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}getName(e){const{map:t}=this;return Object.keys(t).find(n=>t[n]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);const t=Object.keys(this.map);for(let n=1;;++n){const r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved}),t.forEach(e=>{e.source=e.source.resolved}),delete this._cstAliases}setAnchor(e,t){if(null!=e&&!$t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");const{map:n}=this,r=e&&Object.keys(n).find(t=>n[t]===e);if(r){if(!t)return r;r!==t&&(delete n[r],n[t]=e)}else{if(!t){if(!e)return null;t=this.newName()}n[t]=e}return t}}const Mt=(e,t)=>{if(e&&"object"==typeof e){const{tag:n}=e;e instanceof re?(n&&(t[n]=!0),e.items.forEach(e=>Mt(e,t))):e instanceof ae?(Mt(e.key,t),Mt(e.value,t)):e instanceof ee&&n&&(t[n]=!0)}return t};function jt({tagPrefixes:e},t){const[n,r]=t.parameters;if(!n||!r)throw new R(t,"Insufficient parameters given for %TAG directive");if(e.some(e=>e.handle===n))throw new R(t,"The %TAG directive must only be given at most once per handle in the same document.");return{handle:n,prefix:r}}function Ft(e,t){let[n]=t.parameters;if("YAML:1.0"===t.name&&(n="1.0"),!n)throw new R(t,"Insufficient parameters given for %YAML directive");if(!Dt[n]){const r=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${n}`;e.warnings.push(new I(t,r))}return n}function Ut(e){if(e instanceof re)return!0;throw new Error("Expected a YAML collection as document contents")}class qt{constructor(e){this.anchors=new $t(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ut(this.contents),this.contents.add(e)}addIn(e,t){Ut(this.contents),this.contents.addIn(e,t)}delete(e){return Ut(this.contents),this.contents.delete(e)}deleteIn(e){return ne(e)?null!=this.contents&&(this.contents=null,!0):(Ut(this.contents),this.contents.deleteIn(e))}getDefaults(){return qt.defaults[this.version]||qt.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof re?this.contents.get(e,t):void 0}getIn(e,t){return ne(e)?!t&&this.contents instanceof ee?this.contents.value:this.contents:this.contents instanceof re?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof re&&this.contents.has(e)}hasIn(e){return ne(e)?void 0!==this.contents:this.contents instanceof re&&this.contents.hasIn(e)}set(e,t){Ut(this.contents),this.contents.set(e,t)}setIn(e,t){ne(e)?this.contents=t:(Ut(this.contents),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new Rt(n)}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:r=[],directivesEndMarker:o,error:i,valueRange:s}=e;if(i&&(i.source||(i.source=this),this.errors.push(i)),function(e,t,n){const r=[];let o=!1;for(const n of t){const{comment:i,name:a}=n;switch(a){case"TAG":try{e.tagPrefixes.push(jt(e,n))}catch(t){e.errors.push(t)}o=!0;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new R(n,t))}try{e.version=Ft(e,n)}catch(t){e.errors.push(t)}o=!0;break;default:if(a){const t=`YAML only supports %TAG and %YAML directives, and not %${a}`;e.warnings.push(new I(n,t))}}i&&r.push(i)}if(n&&!o&&"1.1"===(e.version||n.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=n.tagPrefixes.map(t),e.version=n.version}e.commentBefore=r.join("\n")||null}(this,n,t),o&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){const n={before:[],after:[]};let r,o=!1;for(const i of t)if(i.valueRange){if(void 0!==r){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new A(i,t));break}const t=$e(e,i);o&&(t.spaceBefore=!0,o=!1),r=t}else null!==i.comment?(void 0===r?n.before:n.after).push(i.comment):i.type===a&&(o=!0,void 0===r&&n.before.length>0&&!e.commentBefore&&(e.commentBefore=n.before.join("\n"),n.before=[]));if(e.contents=r||null,r){const t=n.before.join("\n");if(t){const e=r instanceof re&&r.items[0]?r.items[0]:r;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=n.after.join("\n")||null}else e.comment=n.before.concat(n.after).join("\n")||null}(this,r),this.anchors.resolveNodes(),this.options.prettyErrors){for(const e of this.errors)e instanceof P&&e.makePretty();for(const e of this.warnings)e instanceof P&&e.makePretty()}return this}listNonDefaultTags(){return(e=this.contents,Object.keys(Mt(e,{}))).filter(e=>0!==e.indexOf(Rt.defaultPrefix));var e}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){const n=this.tagPrefixes.find(t=>t.handle===e);n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}toJSON(e,t){const{keepBlobsInJSON:n,mapAsMap:r,maxAliasCount:o}=this.options,i=n&&("string"!=typeof e||!(this.contents instanceof ee)),a={doc:this,indentStep:"  ",keep:i,mapAsMap:i&&!!r,maxAliasCount:o,stringify:Nt},s=Object.keys(this.anchors.map);s.length>0&&(a.anchors=new Map(s.map(e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}])));const l=Z(this.contents,e,a);if("function"==typeof t&&a.anchors)for(const{count:e,res:n}of a.anchors.values())t(n,e);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let n=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),t.push(e),n=!0}const r=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:e,prefix:o})=>{r.some(e=>0===e.indexOf(o))&&(t.push(`%TAG ${e} ${o}`),n=!0)}),(n||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&(!n&&this.directivesEndMarker||t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));const o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:Nt};let i=!1,a=null;if(this.contents){this.contents instanceof X&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,a=this.contents.comment);const e=a?null:()=>i=!0,r=Nt(this.contents,o,()=>a=null,e);t.push(Q(r,"",a))}else void 0!==this.contents&&t.push(Nt(this.contents,o));return this.comment&&(i&&!a||""===t[t.length-1]||t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}}D(qt,"defaults",Dt);class zt extends qt{constructor(e){super(Object.assign({},At,e))}}function Bt(e,t){const n=J(e),r=new zt(t).parse(n[0]);if(n.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new R(n[1],e))}return r}const Ht={createNode:function(e,t=!0,n){void 0===n&&"string"==typeof t&&(n=t,t=!0);const r=Object.assign({},qt.defaults[At.version],At);return new Rt(r).createNode(e,t,n)},defaultOptions:At,Document:zt,parse:function(e,t){const n=Bt(e,t);if(n.warnings.forEach(e=>nt(e)),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){const n=[];let r;for(const o of J(e)){const e=new zt(t);e.parse(o,r),n.push(e),r=e}return n},parseCST:J,parseDocument:Bt,scalarOptions:It,stringify:function(e,t){const n=new zt(t);return n.contents=e,String(n)}}},29199(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}};const __webpack_module_cache__={};function __webpack_require__(e){const t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;const n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},__webpack_require__.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};__webpack_require__.o(e,r)||Object.defineProperty(e,r,i)}else for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.f={},__webpack_require__.e=e=>{const t=[];return __webpack_require__.f.j(e,t),Promise.all(t)},__webpack_require__.u=e=>e+".decap-cms-core.js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="DecapCmsCore:";__webpack_require__.l=(n,r,o,i)=>{if(e[n])return void e[n].push(r);let a,s;if(void 0!==o){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==n||r.getAttribute("data-webpack")==t+o){a=r;break}}}a||(s=!0,a=document.createElement("script"),a.charset="utf-8",__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-webpack",t+o),a.src=n),e[n]=[r];const c=(t,r)=>{a.onerror=a.onload=null,clearTimeout(u);const o=e[n];if(delete e[n],a.parentNode?.removeChild(a),o?.forEach(e=>e(r)),t)return t(r)},u=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}})(),__webpack_require__.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{let e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");const t=__webpack_require__.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const n=t.getElementsByTagName("script");if(n.length){let t=n.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=n[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),__webpack_require__.p=e})(),(()=>{__webpack_require__.b="undefined"!=typeof document&&document.baseURI||self.location.href;const e={792:0};__webpack_require__.f.j=(t,n)=>{let r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{const o=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=o);const i=new Error,a=n=>{if(__webpack_require__.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){const e=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+o+")",i.name="ChunkLoadError",i.type=e,i.request=o,i.event=n,r[1](i)}};__webpack_require__.l(__webpack_require__.p+__webpack_require__.u(t),a,"chunk-"+t,t)}};const t=(t,n)=>{let[r,o,i]=n;var a,s,l=0;if(r.some(t=>0!==e[t])){for(a in o)__webpack_require__.o(o,a)&&(__webpack_require__.m[a]=o[a]);i&&i(__webpack_require__)}for(t&&t(n);l<r.length;l++)s=r[l],__webpack_require__.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=window.webpackChunkDecapCmsCore=window.webpackChunkDecapCmsCore||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();let __webpack_exports__={};return(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{DecapCmsCore:()=>YP});var e=__webpack_require__.cw(function(e,t){e.exports=function(e){__webpack_require__.g.Buffer&&__webpack_require__.g.Buffer.isBuffer(e)&&(e=e.toString("utf8"));const t=new n;try{return t.parse(e),t.finish()}catch(t){throw r(t,e)}};const n=__webpack_require__(40303),r=__webpack_require__(34226)}),t=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=S(),r=C(),o=E(),i=F(),a=P(),s=R(),l="errorMessage",c=new n.Name("emUsed"),u={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,p=/^""\s*\+\s*|\s*\+\s*""$/g,h=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:l,schemaType:["string","object"],post:!0,code(t){const{gen:h,data:g,schema:m,schemaValue:y,it:v}=t;if(!1===v.createErrors)return;const b=m,w=r.strConcat(s.default.instancePath,v.errorPath);function _(e,t){return r.and(n._`${e}.keyword !== ${l}`,n._`!${e}.${c}`,n._`${e}.instancePath === ${w}`,n._`${e}.keyword in ${t}`,n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function x(e,t){const n=[];for(const r in e){const e=t[r];d.test(e)&&n.push([r,S(e)])}return h.object(...n)}function k(e){return d.test(e)?new o._Code(o.safeStringify(e).replace(f,(e,t)=>`" + JSON.stringify(${i.getData(t,v)}) + "`).replace(p,"")):n.stringify(e)}function S(e){return n._`function(){return ${k(e)}}`}h.if(n._`${s.default.errors} > 0`,()=>{if("object"==typeof b){const[o,i]=function(e){let t,n;for(const r in e){if("properties"===r||"items"===r)continue;const o=e[r];if("object"==typeof o){t||(t={});const e=t[r]={};for(const t in o)e[t]=[]}else n||(n={}),n[r]=[]}return[t,n]}(b);i&&function(r){const o=h.const("emErrors",n.stringify(r)),i=h.const("templates",x(r,m));h.forOf("err",s.default.vErrors,e=>h.if(_(e,o),()=>h.code(n._`${o}[${e}.keyword].push(${e})`).assign(n._`${e}.${c}`,!0)));const{singleError:l}=e;if(l){const e=h.let("message",n._`""`),r=h.let("paramsErrors",n._`[]`);u(t=>{h.if(e,()=>h.code(n._`${e} += ${"string"==typeof l?l:";"}`)),h.code(n._`${e} += ${d(t)}`),h.assign(r,n._`${r}.concat(${o}[${t}])`)}),a.reportError(t,{message:e,params:n._`{errors: ${r}}`})}else u(e=>a.reportError(t,{message:d(e),params:n._`{errors: ${o}[${e}]}`}));function u(e){h.forIn("key",o,t=>h.if(n._`${o}[${t}].length`,()=>e(t)))}function d(e){return n._`${e} in ${i} ? ${i}[${e}]() : ${y}[${e}]`}}(i),o&&function(e){const r=h.const("emErrors",n.stringify(e)),o=[];for(const t in e)o.push([t,x(e[t],m[t])]);const i=h.const("templates",h.object(...o)),l=h.scopeValue("obj",{ref:u,code:n.stringify(u)}),d=h.let("emPropParams"),f=h.let("emParamsErrors");h.forOf("err",s.default.vErrors,e=>h.if(_(e,r),()=>{h.assign(d,n._`${l}[${e}.keyword]`),h.assign(f,n._`${r}[${e}.keyword][${e}.params[${d}]]`),h.if(f,()=>h.code(n._`${f}.push(${e})`).assign(n._`${e}.${c}`,!0))})),h.forIn("key",r,e=>h.forIn("keyProp",n._`${r}[${e}]`,o=>{h.assign(f,n._`${r}[${e}][${o}]`),h.if(n._`${f}.length`,()=>{const r=h.const("tmpl",n._`${i}[${e}] && ${i}[${e}][${o}]`);a.reportError(t,{message:n._`${r} ? ${r}() : ${y}[${e}][${o}]`,params:n._`{errors: ${f}}`})})}))}(o),function(e){const{props:o,items:i}=e;if(!o&&!i)return;const u=n._`typeof ${g} == "object"`,d=n._`Array.isArray(${g})`,f=h.let("emErrors");let p,v;const b=h.let("templates");function _(e,t){h.assign(f,n.stringify(e)),h.assign(b,x(e,t))}o&&i?(p=h.let("emChildKwd"),h.if(u),h.if(d,()=>{_(i,m.items),h.assign(p,n.str`items`)},()=>{_(o,m.properties),h.assign(p,n.str`properties`)}),v=n._`[${p}]`):i?(h.if(d),_(i,m.items),v=n._`.items`):o&&(h.if(r.and(u,r.not(d))),_(o,m.properties),v=n._`.properties`),h.forOf("err",s.default.vErrors,e=>function(e,t,o){h.if(r.and(n._`${e}.keyword !== ${l}`,n._`!${e}.${c}`,n._`${e}.instancePath.indexOf(${w}) === 0`),()=>{const r=h.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:n._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),i=h.const("emMatches",n._`${r}.exec(${e}.instancePath.slice(${w}.length))`),a=h.const("emChild",n._`${i} && ${i}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);h.if(n._`${a} !== undefined && ${a} in ${t}`,()=>o(a))})}(e,f,t=>h.code(n._`${f}[${t}].push(${e})`).assign(n._`${e}.${c}`,!0))),h.forIn("key",f,e=>h.if(n._`${f}[${e}].length`,()=>{a.reportError(t,{message:n._`${e} in ${b} ? ${b}[${e}]() : ${y}${v}[${e}]`,params:n._`{errors: ${f}[${e}]}`}),h.assign(n._`${s.default.vErrors}[${s.default.errors}-1].instancePath`,n._`${w} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),h.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;e<t.length;e++)n.items[e]=[]}return n}(b))}const o="string"==typeof b?b:b._;o&&function(e){const o=h.const("emErrs",n._`[]`);h.forOf("err",s.default.vErrors,e=>h.if(function(e){return r.and(n._`${e}.keyword !== ${l}`,n._`!${e}.${c}`,r.or(n._`${e}.instancePath === ${w}`,r.and(n._`${e}.instancePath.indexOf(${w}) === 0`,n._`${e}.instancePath[${w}.length] === "/"`)),n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),()=>h.code(n._`${o}.push(${e})`).assign(n._`${e}.${c}`,!0))),h.if(n._`${o}.length`,()=>a.reportError(t,{message:k(e),params:n._`{errors: ${o}}`}))}(o),e.keepErrors||function(){const e=h.const("emErrs",n._`[]`);h.forOf("err",s.default.vErrors,t=>h.if(n._`!${t}.${c}`,()=>h.code(n._`${e}.push(${t})`))),h.assign(s.default.vErrors,e).assign(s.default.errors,n._`${e}.length`)}()})},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=h,e.exports=h,e.exports.default=h}),n=__webpack_require__.cw(function(e,t){t.usePattern=t.metaSchemaRef=void 0;const n=C();t.metaSchemaRef=function({defaultMeta:e}={}){return!1===e?{}:{$ref:e||"http://json-schema.org/schema"}},t.usePattern=function({gen:e,it:{opts:t}},r,o=(t.unicodeRegExp?"u":"")){const i=new RegExp(r,o);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:n._`new RegExp(${r}, ${o})`})}}),r=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=n();function o(e){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(e){const t=[];for(const n in e)t.push(i(n,e[n]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,r.metaSchemaRef)(e)}}}function i(e,t){const n=e.split("/"),r={};let o=r;for(let e=1;e<n.length;e++){let r=n[e];const i=e===n.length-1;r=a(r);const s=o.properties={};let l;if(/[0-9]+/.test(r)){let e=+r;for(l=o.items=[],o.type=["object","array"];e--;)l.push({})}else o.type="object";o=i?t:{},s[r]=o,l&&l.push(o)}return r}function a(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}t.default=o,e.exports=o}),o=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=C();function r(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(e){const{schema:t,data:r}=e,o=t.map(e=>n._`(${function(e){if(""===e)throw new Error("empty JSON pointer not allowed");const t=e.split("/");let o=r;const i=t.map((e,t)=>t?o=n._`${o}${(0,n.getProperty)(function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}(e))}`:o);return(0,n.and)(...i)}(e)}) === undefined`);e.fail((0,n.or)(...o))},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}t.default=r,e.exports=r}),i=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=C(),o=n(),i={message:({params:{missingPattern:e}})=>r.str`should have property matching pattern '${e}'`,params:({params:{missingPattern:e}})=>r._`{missingPattern: ${e}}`};function a(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:i,code(e){const{gen:t,schema:n,data:i}=e;if(0===n.length)return;const a=t.let("valid",!0);for(const e of n)s(e);function s(n){const s=t.let("matched",!1);t.forIn("key",i,i=>{t.assign(s,r._`${(0,o.usePattern)(e,n)}.test(${i})`),t.if(s,()=>t.break())}),e.setParams({missingPattern:n}),t.assign(a,(0,r.and)(a,s)),e.pass(a)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}t.default=a,e.exports=a}),a=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=C(),o=n(),i={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},a=/^\/(.*)\/([gimuy]*)$/;function s(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(e){const{data:t,schema:n}=e,i=function(t){if("object"==typeof t)return(0,o.usePattern)(e,t.pattern,t.flags);const n=a.exec(t);if(n)return(0,o.usePattern)(e,n[1],n[2]);throw new Error("cannot parse string into RegExp")}(n);e.pass(r._`${i}.test(${t})`)},metaSchema:{anyOf:[{type:"string"},i]}}}t.default=s,e.exports=s}),s=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=C(),o=n(),i={message:({params:{schemaProp:e}})=>e?r.str`should match case "${e}" schema`:r.str`should match default case schema`,params:({params:{schemaProp:e}})=>e?r._`{failingCase: ${e}}`:r._`{failingDefault: true}`};function a(e){const t=(0,o.metaSchemaRef)(e);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:i,dependencies:["selectCases"],code(e){const{gen:t,schemaCode:n,parentSchema:o}=e;e.block$data(r.nil,()=>{const i=t.let("valid",!0),a=t.name("_valid"),s=t.const("value",r._`${n} === null ? "null" : ${n}`);t.if(!1);for(const n in o.selectCases){e.setParams({schemaProp:n}),t.elseIf(r._`"" + ${s} == ${n}`);const o=e.subschema({keyword:"selectCases",schemaProp:n},a);e.mergeEvaluated(o,r.Name),t.assign(i,a)}if(t.else(),void 0!==o.selectDefault){e.setParams({schemaProp:void 0});const n=e.subschema({keyword:"selectDefault"},a);e.mergeEvaluated(n,r.Name),t.assign(i,a)}t.endIf(),e.pass(i)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:t}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:t}]}t.default=a,e.exports=a}),l=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=C(),r={trimStart:e=>e.trimStart(),trimEnd:e=>e.trimEnd(),trimLeft:e=>e.trimStart(),trimRight:e=>e.trimEnd(),trim:e=>e.trim(),toLowerCase:e=>e.toLowerCase(),toUpperCase:e=>e.toUpperCase(),toEnumCase:(e,t)=>(null==t?void 0:t.hash[i(e)])||e},o=Object.assign(function(){return{keyword:"transform",schemaType:"array",before:"enum",code(e){const{gen:t,data:o,schema:a,parentSchema:s,it:l}=e,{parentData:c,parentDataProperty:u}=l,d=a;if(!d.length)return;let f;if(d.includes("toEnumCase")){const e=function(e){const t={hash:{}};if(!e.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const n of e.enum){if("string"!=typeof n)continue;const e=i(n);if(t.hash[e])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');t.hash[e]=n}return t}(s);f=t.scopeValue("obj",{ref:e,code:(0,n.stringify)(e)})}function p(e){if(!e.length)return o;const i=e.pop();if(!(i in r))throw new Error(`transform: unknown transformation ${i}`);const a=t.scopeValue("func",{ref:r[i],code:n._`require("ajv-keywords/dist/definitions/transform").transform${(0,n.getProperty)(i)}`}),s=p(e);return f&&"toEnumCase"===i?n._`${a}(${s}, ${f})`:n._`${a}(${s})`}t.if(n._`typeof ${o} == "string" && ${c} !== undefined`,()=>{t.assign(o,p(d.slice())),t.assign(n._`${c}[${u}]`,o)})},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(r)}}}},{transform:r});function i(e){return e.toLowerCase()}t.default=o,e.exports=o}),c=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=C(),r=["undefined","string","number","object","function","boolean","symbol"];function o(){return{keyword:"typeof",schemaType:["string","array"],code(e){const{data:t,schema:r,schemaValue:o}=e;e.fail("string"==typeof r?n._`typeof ${t} != ${r}`:n._`${o}.indexOf(typeof ${t}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:r},{type:"array",items:{type:"string",enum:r}}]}}}t.default=o,e.exports=o}),u=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=De(),r=["number","integer","string","boolean","null"];function o(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(e,t){const o=function(e,t){return e.map(e=>{var n,o,i;const a=null===(i=null===(o=null===(n=t.items)||void 0===n?void 0:n.properties)||void 0===o?void 0:o[e])||void 0===i?void 0:i.type;return Array.isArray(a)?!a.includes("object")&&!a.includes("array"):r.includes(a)})}(e,t);return t=>{if(t.length<=1)return!0;for(let r=0;r<e.length;r++){const i=e[r];if(o[r]){const e={};for(const n of t){if(!n||"object"!=typeof n)continue;let t=n[i];if(!t||"object"!=typeof t){if("string"==typeof t&&(t='"'+t),e[t])return!1;e[t]=!0}}}else for(let e=t.length;e--;){const r=t[e];if(r&&"object"==typeof r)for(let o=e;o--;){const e=t[o];if(e&&"object"==typeof e&&n(r[i],e[i]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}t.default=o,e.exports=o}),d=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r()),i=(e,t)=>e.addKeyword((0,o.default)(t));t.default=i,e.exports=i}),f=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(o()),i=e=>e.addKeyword((0,r.default)());t.default=i,e.exports=i}),p=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(x()),o=n(h()),i=n(v()),a=n(__webpack_require__(69729)),s=n(b()),l=n(_()),c=n(k()),u=n(__webpack_require__(80860)),p=n(__webpack_require__(96993)),S=n(g()),E=n(m()),C=n(y()),T=n(d()),P=n(f()),O=n(__webpack_require__(7981)),R=n(w()),A={typeof:r.default,instanceof:o.default,range:i.default,exclusiveRange:a.default,regexp:s.default,transform:l.default,uniqueItemProperties:c.default,allRequired:u.default,anyRequired:p.default,oneRequired:S.default,patternRequired:E.default,prohibited:C.default,deepProperties:T.default,deepRequired:P.default,dynamicDefaults:O.default,select:R.default};t.default=A,e.exports=A}),h=()=>__webpack_require__(12370),g=()=>__webpack_require__(98939),m=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(i()),o=e=>e.addKeyword((0,r.default)());t.default=o,e.exports=o}),y=()=>__webpack_require__(33082),v=()=>__webpack_require__(97679),b=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(a()),o=e=>e.addKeyword((0,r.default)());t.default=o,e.exports=o}),w=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(s()),o=(e,t)=>((0,r.default)(t).forEach(t=>e.addKeyword(t)),e);t.default=o,e.exports=o}),_=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(l()),o=e=>e.addKeyword((0,r.default)());t.default=o,e.exports=o}),x=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(c()),o=e=>e.addKeyword((0,r.default)());t.default=o,e.exports=o}),k=__webpack_require__.cw(function(e,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(u()),o=e=>e.addKeyword((0,r.default)());t.default=o,e.exports=o}),S=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=z(),r=me(),o=he(),i=un(),a=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,a):i;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=F();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=C();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=V();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=A();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}),E=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class o extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function i(e,...t){const n=[e[0]];let r=0;for(;r<t.length;)l(n,t[r]),n.push(e[++r]);return new o(n)}t._Code=o,t.nil=new o(""),t._=i;const a=new o("+");function s(e,...t){const n=[u(e[0])];let r=0;for(;r<t.length;)n.push(a),l(n,t[r]),n.push(a,u(e[++r]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const n=c(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new o(n)}function l(e,t){var n;t instanceof o?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:u(Array.isArray(n)?n.join(","):n))}function c(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=s,t.addCodeArg=l,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},t.stringify=function(e){return new o(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new o(`.${e}`):i`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new o(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new o(e.toString())}}),C=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=E(),r=T();var o=E();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var i=T();Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class s extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class l extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,t),this}get names(){return A(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class c extends l{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class h extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const o=n[r];o.optimizeNames(e,t)||(D(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>R(e,t.names),{})}}class g extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends h{}class y extends g{}y.kind="else";class v extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(L(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return A(e,this.condition),this.else&&R(e,this.else.names),e}}v.kind="if";class b extends g{}b.kind="for";class w extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return R(super.names,this.iteration.names)}}class _ extends b{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${t} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(e)}get names(){const e=A(super.names,this.from);return A(e,this.to)}}class x extends b{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return R(super.names,this.iterable.names)}}class k extends g{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}k.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class C extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&R(e,this.catch.names),this.finally&&R(e,this.finally.names),e}}class P extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}P.kind="catch";class O extends g{render(e){return"finally"+super.render(e)}}function R(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function A(e,t){return t instanceof n._CodeOrName?R(e,t.names):e}function I(e,t,r){return e instanceof n.Name?i(e):(o=e)instanceof n._Code&&o._items.some(e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str])?new n._Code(e._items.reduce((e,t)=>(t instanceof n.Name&&(t=i(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e),[])):e;var o;function i(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function D(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function L(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${j(e)}`}O.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new s(e,o,n)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new l(e,t,n))}add(e,n){return this._leafNode(new c(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new p(e)),this}object(...e){const t=["{"];for(const[r,o]of e)t.length>1&&t.push(","),t.push(r),(r!==o||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,o));return t.push("}"),new n._Code(t)}if(e,t,n){if(this._blockNode(new v(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(v,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new w(e),t)}forRange(e,t,n,o,i=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const a=this._scope.toName(e);return this._for(new _(i,a,t,n),()=>o(a))}forOf(e,t,o,i=r.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,t=>{this.var(a,n._`${e}[${t}]`),o(a)})}return this._for(new x("of",i,a,t),()=>o(a))}forIn(e,t,o,i=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,o);const a=this._scope.toName(e);return this._for(new x("in",i,a,t),()=>o(a))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new C;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new P(e),t(e)}return n&&(this._currNode=r.finally=new O,this.code(n)),this._endBlockNode(P,O)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,o){return this._blockNode(new k(e,t,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=L;const N=M(t.operators.AND);t.and=function(...e){return e.reduce(N)};const $=M(t.operators.OR);function M(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${j(t)} ${e} ${j(r)}`}function j(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce($)}}),T=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=E();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class i{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=i;class a extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=a;const s=n._`\n`;t.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?s:n.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:o}=r,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[o];if(a){const e=a.get(i);if(e)return e}else a=this._values[o]=new Map;a.set(i,r);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:o,itemIndex:l}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(e,i,a={},s){let l=n.nil;for(const c in e){const u=e[c];if(!u)continue;const d=a[c]=a[c]||new Map;u.forEach(e=>{if(d.has(e))return;d.set(e,o.Started);let a=i(e);if(a){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;l=n._`${l}${r} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new r(e);l=n._`${l}${a}${this.opts._n}`}d.set(e,o.Completed)})}return l}}}),P=__webpack_require__.cw(function(e,t){t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.y=void 0;const n=C(),r=L(),o=R();function i(e,t){const r=e.const("err",t);e.if(n._`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,n._`[${r}]`),n._`${o.default.vErrors}.push(${r})`),e.code(n._`${o.default.errors}++`)}function a(e,t){const{gen:r,validateName:o,schemaEnv:i}=e;i.$async?r.throw(n._`new ${e.ValidationError}(${t})`):(r.assign(n._`${o}.errors`,t),r.return(!1))}t.y={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.y,o,s){const{it:c}=e,{gen:u,compositeRule:d,allErrors:f}=c,p=l(e,r,o);(null!=s?s:d||f)?i(u,p):a(c,n._`[${p}]`)},t.reportExtraError=function(e,n=t.y,r){const{it:s}=e,{gen:c,compositeRule:u,allErrors:d}=s;i(c,l(e,n,r)),u||d||a(s,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(n._`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(n._`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,a=>{e.const(l,n._`${o.default.vErrors}[${a}]`),e.if(n._`${l}.instancePath === undefined`,()=>e.assign(n._`${l}.instancePath`,(0,n.strConcat)(o.default.instancePath,s.errorPath))),e.assign(n._`${l}.schemaPath`,n.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(n._`${l}.schema`,r),e.assign(n._`${l}.data`,i))})};const s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function l(e,t,r){const{createErrors:i}=e.it;return!1===i?n._`{}`:function(e,t,r={}){const{gen:i,it:a}=e,l=[c(a,r),u(e,r)];return function(e,{params:t,message:r},i){const{keyword:a,data:l,schemaValue:c,it:u}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=u;i.push([s.keyword,a],[s.params,"function"==typeof t?t(e):t||n._`{}`]),d.messages&&i.push([s.message,"function"==typeof r?r(e):r]),d.verbose&&i.push([s.schema,c],[s.parentSchema,n._`${p}${h}`],[o.default.data,l]),f&&i.push([s.propertyName,f])}(e,t,l),i.object(...l)}(e,t,r)}function c({errorPath:e},{instancePath:t}){const i=t?n.str`${e}${(0,r.getErrorPath)(t,r.Type.Str)}`:e;return[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,i)]}function u({keyword:e,it:{errSchemaPath:t}},{schemaPath:o,parentSchema:i}){let a=i?t:n.str`${t}/${e}`;return o&&(a=n.str`${a}${(0,r.getErrorPath)(o,r.Type.Str)}`),[s.schemaPath,a]}}),O=__webpack_require__.cw(function(e,t){t.resolveSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=C(),r=V(),o=R(),i=I(),a=L(),s=F();class l{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,i.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function c(e){const t=d.call(this,e);if(t)return t;const a=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:l,lines:c}=this.opts.code,{ownProperties:u}=this.opts,f=new n.CodeGen(this.scope,{es5:l,lines:c,ownProperties:u});let p;e.$async&&(p=f.scopeValue("Error",{ref:r.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const h=f.scopeName("validate");e.validateName=h;const g={gen:f,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:a,baseId:e.baseId||a,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e),(0,s.validateFunctionCode)(g),f.optimize(this.opts.code.optimize);const t=f.toString();m=`${f.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(m=this.opts.code.process(m,e));const r=new Function(`${o.default.self}`,`${o.default.scope}`,m)(this,this.scope.get());if(this.scope.value(h,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:h,validateCode:t,scopeValues:f._values}),this.opts.unevaluated){const{props:e,items:t}=g;r.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},r.source&&(r.source.evaluated=(0,n.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,m&&this.logger.error("Error compiling schema, function code:",m),t}finally{this._compilations.delete(e)}}function u(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function d(e){for(const t of this._compilations)if(f(t,e))return t}function f(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function p(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),r=(0,i._getFullPath)(this.opts.uriResolver,n);let o=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return m.call(this,n,e);const a=(0,i.normalizeId)(r),s=this.refs[a]||this.schemas[a];if("string"==typeof s){const t=h.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return m.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||c.call(this,s),a===(0,i.normalizeId)(t)){const{schema:t}=s,{schemaId:n}=this.opts,r=t[n];return r&&(o=(0,i.resolveUrl)(this.opts.uriResolver,o,r)),new l({schema:t,schemaId:n,root:e,baseId:o})}return m.call(this,n,s)}}t.SchemaEnv=l,t.compileSchema=c,t.resolveRef=function(e,t,n){var r;n=(0,i.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let a=p.call(this,e,n);if(void 0===a){const o=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:i}=this.opts;o&&(a=new l({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[n]=u.call(this,a):void 0},t.resolveSchema=h;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function m(e,{baseId:t,schema:n,root:r}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(r)];if(void 0===e)return;const o="object"==typeof(n=e)&&n[this.opts.schemaId];!g.has(r)&&o&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,o))}let s;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,i.resolveUrl)(this.opts.uriResolver,t,n.$ref);s=h.call(this,r,e)}const{schemaId:c}=this.opts;return s=s||new l({schema:n,schemaId:c,root:r,baseId:t}),s.schema!==s.root.schema?s:void 0}}),R=__webpack_require__.cw(function(e,t){const n=C(),r={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=r}),A=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=I();class r extends Error{constructor(e,t,r,o){super(o||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=r}),I=__webpack_require__.cw(function(e,t){t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=L(),r=De(),o=He(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!s(e):!!t&&l(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(s))return!0;if("object"==typeof n&&s(n))return!0}return!1}function l(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!i.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],e=>t+=l(e)),t===1/0))return 1/0}return t}function c(e,t="",n){!1!==n&&(t=f(t));const r=e.parse(t);return u(e,r)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=c,t._getFullPath=u;const d=/#\/?$/;function f(e){return e?e.replace(d,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,n){return n=f(n),e.resolve(t,n)};const p=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:i}=this.opts,a=f(e[n]||t),s={"":a},l=c(i,a,!1),u={},d=new Set;return o(e,{allKeys:!0},(e,t,r,o)=>{if(void 0===o)return;const i=l+t;let a=s[o];function c(t){const n=this.opts.uriResolver.resolve;if(t=f(a?n(a,t):t),d.has(t))throw g(t);d.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?h(e,r.schema,t):t!==f(i)&&("#"===t[0]?(h(e,u[t],t),u[t]=e):this.refs[t]=i),t}function m(e){if("string"==typeof e){if(!p.test(e))throw new Error(`invalid anchor "${e}"`);c.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=c.call(this,e[n])),m.call(this,e.$anchor),m.call(this,e.$dynamicAnchor),s[t]=a}),u;function h(e,t,n){if(void 0!==t&&!r(e,t))throw g(n)}function g(e){return new Error(`reference "${e}" resolves to more than one schema`)}}}),D=__webpack_require__.cw(function(e,t){t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}}),L=__webpack_require__.cw(function(e,t){t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=C(),r=E();function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const o=r.RULES.keywords;for(const n in t)o[n]||f(e,`unknown keyword: "${n}"`)}function i(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function a(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:o}){return(i,a,s,l)=>{const c=void 0===s?a:s instanceof n.Name?(a instanceof n.Name?e(i,a,s):t(i,a,s),s):a instanceof n.Name?(t(i,s,a),a):r(a,s);return l!==n.Name||c instanceof n.Name?c:o(i,c)}}function l(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&c(e,r,t),r}function c(e,t,r){Object.keys(r).forEach(r=>e.assign(n._`${t}${(0,n.getProperty)(r)}`,!0))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,o,i){if(!i){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return n._`${r}`}return n._`${e}${t}${(0,n.getProperty)(o)}`},t.unescapeFragment=function(e){return a(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(i(e))},t.unescapeJsonPointer=a,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:s({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,()=>{e.if(n._`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,n._`${r} || {}`).code(n._`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,()=>{!0===t?e.assign(r,!0):(e.assign(r,n._`${r} || {}`),c(e,r,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,()=>e.assign(r,n._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,()=>e.assign(r,!0===t||n._`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l;const u={};var d;function f(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:u[t.code]||(u[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d||(t.Type=d={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const o=t===d.Num;return r?o?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:o?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+i(e)},t.checkStrictMode=f}),N=__webpack_require__.cw(function(e,t){function n(e,t){return t.rules.some(t=>r(e,t))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some(t=>void 0!==e[t]))}t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const o=t.RULES.types[r];return o&&!0!==o&&n(e,o)},t.shouldUseGroup=n,t.shouldUseRule=r}),$=__webpack_require__.cw(function(e,t){t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=P(),r=C(),o=R(),i={message:"boolean schema is false"};function a(e,t){const{gen:r,data:o}=e,a={gen:r,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(a,i,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:i}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(r._`${i}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),a(e)):n.var(t,!0)}}),M=__webpack_require__.cw(function(e,t){t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=D(),r=N(),o=P(),i=C(),a=L();var s;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(s||(t.DataType=s={})),t.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=l,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:o,opts:a}=e,l=function(e,t){return t?e.filter(e=>c.has(e)||"array"===t&&"array"===e):[]}(t,a.coerceTypes),u=t.length>0&&!(0===l.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(u){const r=d(t,o,a.strictNumbers,s.Wrong);n.if(r,()=>{l.length?function(e,t,n){const{gen:r,data:o,opts:a}=e,s=r.let("dataType",i._`typeof ${o}`),l=r.let("coerced",i._`undefined`);"array"===a.coerceTypes&&r.if(i._`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>r.assign(o,i._`${o}[0]`).assign(s,i._`typeof ${o}`).if(d(t,o,a.strictNumbers),()=>r.assign(l,o))),r.if(i._`${l} !== undefined`);for(const e of n)(c.has(e)||"array"===e&&"array"===a.coerceTypes)&&u(e);function u(e){switch(e){case"string":return void r.elseIf(i._`${s} == "number" || ${s} == "boolean"`).assign(l,i._`"" + ${o}`).elseIf(i._`${o} === null`).assign(l,i._`""`);case"number":return void r.elseIf(i._`${s} == "boolean" || ${o} === null
              || (${s} == "string" && ${o} && ${o} == +${o})`).assign(l,i._`+${o}`);case"integer":return void r.elseIf(i._`${s} === "boolean" || ${o} === null
              || (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(l,i._`+${o}`);case"boolean":return void r.elseIf(i._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(l,!1).elseIf(i._`${o} === "true" || ${o} === 1`).assign(l,!0);case"null":return r.elseIf(i._`${o} === "" || ${o} === 0 || ${o} === false`),void r.assign(l,null);case"array":r.elseIf(i._`${s} === "string" || ${s} === "number"
              || ${s} === "boolean" || ${o} === null`).assign(l,i._`[${o}]`)}}r.else(),p(e),r.endIf(),r.if(i._`${l} !== undefined`,()=>{r.assign(o,l),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(i._`${t} !== undefined`,()=>e.assign(i._`${t}[${n}]`,r))}(e,l)})}(e,t,l):p(e)})}return u};const c=new Set(["string","number","integer","boolean","null"]);function u(e,t,n,r=s.Correct){const o=r===s.Correct?i.operators.EQ:i.operators.NEQ;let a;switch(e){case"null":return i._`${t} ${o} null`;case"array":a=i._`Array.isArray(${t})`;break;case"object":a=i._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=l(i._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=l();break;default:return i._`typeof ${t} ${o} ${e}`}return r===s.Correct?a:(0,i.not)(a);function l(e=i.nil){return(0,i.and)(i._`typeof ${t} == "number"`,e,n?i._`isFinite(${t})`:i.nil)}}function d(e,t,n,r){if(1===e.length)return u(e[0],t,n,r);let o;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=i._`typeof ${t} != "object"`;o=s.null?e:i._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else o=i.nil;s.number&&delete s.integer;for(const e in s)o=(0,i.and)(o,u(e,t,n,r));return o}t.checkDataType=u,t.checkDataTypes=d;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?i._`{type: ${e}}`:i._`{type: ${t}}`};function p(e){const t=function(e){const{gen:t,data:n,schema:r}=e,o=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:o,schemaValue:o,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=p}),j=__webpack_require__.cw(function(e,t){t.assignDefaults=void 0;const n=C(),r=L();function o(e,t,o){const{gen:i,compositeRule:a,data:s,opts:l}=e;if(void 0===o)return;const c=n._`${s}${(0,n.getProperty)(t)}`;if(a)return void(0,r.checkStrictMode)(e,`default is ignored for: ${c}`);let u=n._`${c} === undefined`;"empty"===l.useDefaults&&(u=n._`${u} || ${c} === null || ${c} === ""`),i.if(u,n._`${c} = ${(0,n.stringify)(o)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach((t,n)=>o(e,n,t.default))}}),F=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=$(),r=M(),o=N(),i=M(),a=j(),s=U(),l=q(),c=C(),u=R(),d=I(),f=L(),p=P();function h({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},i){o.code.es5?e.func(t,c._`${u.default.data}, ${u.default.valCxt}`,r.$async,()=>{e.code(c._`"use strict"; ${g(n,o)}`),function(e,t){e.if(u.default.valCxt,()=>{e.var(u.default.instancePath,c._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,c._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,c._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,c._`${u.default.valCxt}.${u.default.rootData}`),t.dynamicRef&&e.var(u.default.dynamicAnchors,c._`${u.default.valCxt}.${u.default.dynamicAnchors}`)},()=>{e.var(u.default.instancePath,c._`""`),e.var(u.default.parentData,c._`undefined`),e.var(u.default.parentDataProperty,c._`undefined`),e.var(u.default.rootData,u.default.data),t.dynamicRef&&e.var(u.default.dynamicAnchors,c._`{}`)})}(e,o),e.code(i)}):e.func(t,c._`${u.default.data}, ${function(e){return c._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?c._`, ${u.default.dynamicAnchors}={}`:c.nil}}={}`}(o)}`,r.$async,()=>e.code(g(n,o)).code(i))}function g(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?c._`/*# sourceURL=${n} */`:c.nil}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function y(e){return"boolean"!=typeof e.schema}function v(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function b(e,t){if(e.opts.jtd)return _(e,[],!1,t);const n=(0,r.getSchemaTypes)(e.schema);_(e,n,!(0,r.coerceAndCheckDataType)(e,n),t)}function w({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const i=n.$comment;if(!0===o.$comment)e.code(c._`${u.default.self}.logger.log(${i})`);else if("function"==typeof o.$comment){const n=c.str`${r}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(c._`${u.default.self}.opts.$comment(${i}, ${n}, ${o}.schema)`)}}function _(e,t,n,r){const{gen:a,schema:s,data:l,allErrors:d,opts:p,self:h}=e,{RULES:g}=h;function m(f){(0,o.shouldUseGroup)(s,f)&&(f.type?(a.if((0,i.checkDataType)(f.type,l,p.strictNumbers)),x(e,f),1===t.length&&t[0]===f.type&&n&&(a.else(),(0,i.reportTypeError)(e)),a.endIf()):x(e,f),d||a.if(c._`${u.default.errors} === ${r||0}`))}!s.$ref||!p.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(s,g)?(p.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach(t=>{k(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){const n=[];for(const r of e.dataTypes)k(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some(e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r})&&S(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),a.block(()=>{for(const e of g.rules)m(e);m(g.post)})):a.block(()=>T(e,"$ref",g.all.$ref.definition))}function x(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),n.block(()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&T(e,n.keyword,n.definition,t.type)})}function k(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){y(e)&&(v(e),m(e))?function(e){const{schema:t,opts:n,gen:r}=e;h(e,()=>{n.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(u.default.vErrors,null),r.let(u.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",c._`${n}.evaluated`),t.if(c._`${e.evaluated}.dynamicProps`,()=>t.assign(c._`${e.evaluated}.props`,c._`undefined`)),t.if(c._`${e.evaluated}.dynamicItems`,()=>t.assign(c._`${e.evaluated}.items`,c._`undefined`))}(e),b(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:i}=e;n.$async?t.if(c._`${u.default.errors} === 0`,()=>t.return(u.default.data),()=>t.throw(c._`new ${o}(${u.default.vErrors})`)):(t.assign(c._`${r}.errors`,u.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign(c._`${t}.props`,n),r instanceof c.Name&&e.assign(c._`${t}.items`,r)}(e),t.return(c._`${u.default.errors} === 0`))}(e)})}(e):h(e,()=>(0,n.topBoolOrEmptySchema)(e))};class E{constructor(e,t,n){if((0,s.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",D(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",u.default.errors))}result(e,t,n){this.failResult((0,c.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(c._`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:o,def:i}=this;n.if((0,c.or)(c._`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(o.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:o}=this;return(0,c.or)(function(){if(n.length){if(!(t instanceof c.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return c._`${(0,i.checkDataTypes)(e,t,o.opts.strictNumbers,i.DataType.Wrong)}`}return c.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return c._`!${n}(${t})`}return c.nil}())}subschema(e,t){const r=(0,l.getSubschema)(this.it,e);(0,l.extendSubschemaData)(r,this.it,e),(0,l.extendSubschemaMode)(r,e);const o={...this.it,...r,items:void 0,props:void 0};return function(e,t){y(e)&&(v(e),m(e))?function(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&w(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const i=r.const("_errs",u.default.errors);b(e,i),r.var(t,c._`${i} === ${u.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}(o,t),o}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}}function T(e,t,n,r){const o=new E(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,s.funcKeywordCode)(o,n):"macro"in n?(0,s.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,s.funcKeywordCode)(o,n)}t.KeywordCxt=E;const O=/^\/(?:[^~]|~0|~1)*$/,A=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function D(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,i;if(""===e)return u.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=u.default.rootData}else{const a=A.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(o=a[2],"#"===o){if(s>=t)throw new Error(l("property/index",s));return r[t-s]}if(s>t)throw new Error(l("data",s));if(i=n[t-s],!o)return i}let a=i;const s=o.split("/");for(const e of s)e&&(i=c._`${i}${(0,c.getProperty)((0,f.unescapeJsonPointer)(e))}`,a=c._`${a} && ${i}`);return a;function l(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=D}),U=__webpack_require__.cw(function(e,t){t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=C(),r=R(),o=ue(),i=P();function a(e){const{gen:t,data:r,it:o}=e;t.if(o.parentData,()=>t.assign(r,n._`${o.parentData}[${o.parentDataProperty}]`))}function s(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:o,schema:i,parentSchema:a,it:l}=e,c=t.macro.call(l.self,i,a,l),u=s(r,o,c);!1!==l.opts.validateSchema&&l.self.validateSchema(c,!0);const d=r.name("valid");e.subschema({schema:c,schemaPath:n.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},d),e.pass(d,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var l;const{gen:c,keyword:u,schema:d,parentSchema:f,$data:p,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const g=!p&&t.compile?t.compile.call(h.self,d,f,h):t.validate,m=s(c,u,g),y=c.let("valid");function v(i=(t.async?n._`await `:n.nil)){const a=h.opts.passContext?r.default.this:r.default.self,s=!("compile"in t&&!p||!1===t.schema);c.assign(y,n._`${i}${(0,o.callValidateCode)(e,m,a,s)}`,t.modifying)}function b(e){var r;c.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:y),e)}e.block$data(y,function(){if(!1===t.errors)v(),t.modifying&&a(e),b(()=>e.error());else{const o=t.async?function(){const e=c.let("ruleErrs",null);return c.try(()=>v(n._`await `),t=>c.assign(y,!1).if(n._`${t} instanceof ${h.ValidationError}`,()=>c.assign(e,n._`${t}.errors`),()=>c.throw(t))),e}():function(){const e=n._`${m}.errors`;return c.assign(e,null),v(n.nil),e}();t.modifying&&a(e),b(()=>function(e,t){const{gen:o}=e;o.if(n._`Array.isArray(${t})`,()=>{o.assign(r.default.vErrors,n._`${r.default.vErrors} === null ? ${t} : ${r.default.vErrors}.concat(${t})`).assign(r.default.errors,n._`${r.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())}(e,o))}}),e.ok(null!==(l=t.valid)&&void 0!==l?l:y)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");const a=o.dependencies;if(null==a?void 0:a.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){const e=`keyword "${i}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}}),q=__webpack_require__.cw(function(e,t){t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=C(),r=L();t.getSubschema=function(e,{keyword:t,schemaProp:o,schema:i,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==t&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const i=e.schema[t];return void 0===o?{schema:i,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:i[o],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(o)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,r.escapeFragment)(o)}`}}if(void 0!==i){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:o,dataPropType:i,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=t;if(void 0!==o){const{errorPath:a,dataPathArr:s,opts:l}=t;u(c.let("data",n._`${t.data}${(0,n.getProperty)(o)}`,!0)),e.errorPath=n.str`${a}${(0,r.getErrorPath)(o,i,l.jsPropertySyntax)}`,e.parentDataProperty=n._`${o}`,e.dataPathArr=[...s,e.parentDataProperty]}function u(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==a&&(u(a instanceof n.Name?a:c.let("data",a,!0)),void 0!==l&&(e.propertyName=l)),s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:i}){void 0!==r&&(e.compositeRule=r),void 0!==o&&(e.createErrors=o),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=n}}),z=__webpack_require__.cw(function(e,t){F(),C();const n=V(),r=A(),o=D(),i=O(),a=C(),s=I(),l=M(),c=L(),u=cn(),d=W(),f=(e,t)=>new RegExp(e,t);f.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},m={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function y(e){var t,n,r,o,i,a,s,l,c,u,p,h,g,m,y,v,b,w,_,x,k,S,E,C,T;const P=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,R=!0===O||void 0===O?1:O||0,A=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:f,I=null!==(o=e.uriResolver)&&void 0!==o?o:d.default;return{strictSchema:null===(a=null!==(i=e.strictSchema)&&void 0!==i?i:P)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:P)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:P)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(p=e.strictTuples)&&void 0!==p?p:P)&&void 0!==h?h:"log",strictRequired:null!==(m=null!==(g=e.strictRequired)&&void 0!==g?g:P)&&void 0!==m&&m,code:e.code?{...e.code,optimize:R,regExp:A}:{optimize:R,regExp:A},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(_=e.inlineRefs)||void 0===_||_,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(k=e.addUsedSchema)||void 0===k||k,validateSchema:null===(S=e.validateSchema)||void 0===S||S,validateFormats:null===(E=e.validateFormats)||void 0===E||E,unicodeRegExp:null===(C=e.unicodeRegExp)||void 0===C||C,int32range:null===(T=e.int32range)||void 0===T||T,uriResolver:I}}class v{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...y(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:h,es5:t,lines:n}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,o.getRules)(),b.call(this,g,e,"NOT SUPPORTED"),b.call(this,m,e,"DEPRECATED","warn"),this._metaOpts=S.call(this),e.formats&&x.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),_.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=u;"id"===n&&(r={...u},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return o.call(this,e,t);async function o(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||a.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await o.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof r.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),a.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await c.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,s.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=w.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new i.SchemaEnv({schema:{},schemaId:n});if(t=i.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=w.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,s.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,n,t),!t)return(0,c.eachItem)(n,e=>R.call(this,e)),this;$.call(this,t);const r={...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(n,0===r.type.length?e=>R.call(this,e,r):e=>r.type.forEach(t=>R.call(this,e,r,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,i=o[e];r&&i&&(o[e]=U(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:l}=this.opts;if("object"==typeof e)a=e[l];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;n=(0,s.normalizeId)(a||n);const u=s.getSchemaRefs.call(this,e,n);return c=new i.SchemaEnv({schema:e,schemaId:l,meta:t,baseId:n,localRefs:u}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),r&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function b(e,t,n,r="error"){for(const o in e){const i=o;i in t&&this.logger[r](`${n}: option ${o}. ${e[i]}`)}}function w(e){return e=(0,s.normalizeId)(e),this.schemas[e]||this.refs[e]}function _(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function x(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function k(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function S(){const e={...this.opts};for(const t of p)delete e[t];return e}v.ValidationError=n.default,v.MissingRefError=r.default,t.default=v;const E={log(){},warn(){},error(){}},T=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:n}=this;if((0,c.eachItem)(e,e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!T.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function R(e,t,n){var r;const o=null==t?void 0:t.post;if(n&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let a=o?i.post:i.rules.find(({type:e})=>e===n);if(a||(a={type:n,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)}};t.before?N.call(this,a,s,t.before):a.rules.push(s),i.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach(e=>this.addKeyword(e))}function N(e,t,n){const r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function $(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=U(t)),e.validateSchema=this.compile(t,!0))}const j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function U(e){return{anyOf:[e,j]}}}),B=__webpack_require__.cw(function(e,t){const n=De();n.code='require("ajv/dist/runtime/equal").default',t.default=n}),H=__webpack_require__.cw(function(e,t){function n(e){const t=e.length;let n,r=0,o=0;for(;o<t;)r++,n=e.charCodeAt(o++),n>=55296&&n<=56319&&o<t&&(n=e.charCodeAt(o),56320==(64512&n)&&o++);return r}t.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'}),W=__webpack_require__.cw(function(e,t){const n=en();n.code='require("ajv/dist/runtime/uri").default',t.default=n}),V=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n}),K=__webpack_require__.cw(function(e,t){t.validateAdditionalItems=void 0;const n=C(),r=L(),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:o}=t;Array.isArray(o)?i(e,o):(0,r.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function i(e,t){const{gen:o,schema:i,data:a,keyword:s,it:l}=e;l.items=!0;const c=o.const("len",n._`${a}.length`);if(!1===i)e.setParams({len:t.length}),e.pass(n._`${c} <= ${t.length}`);else if("object"==typeof i&&!(0,r.alwaysValidSchema)(l,i)){const i=o.var("valid",n._`${c} <= ${t.length}`);o.if((0,n.not)(i),()=>function(i){o.forRange("i",t.length,c,t=>{e.subschema({keyword:s,dataProp:t,dataPropType:r.Type.Num},i),l.allErrors||o.if((0,n.not)(i),()=>o.break())})}(i)),e.ok(i)}}t.validateAdditionalItems=i,t.default=o}),G=__webpack_require__.cw(function(e,t){const n=ue(),r=C(),o=R(),i=L(),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>r._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:a,parentSchema:s,data:l,errsCount:c,it:u}=e;if(!c)throw new Error("ajv implementation error");const{allErrors:d,opts:f}=u;if(u.props=!0,"all"!==f.removeAdditional&&(0,i.alwaysValidSchema)(u,a))return;const p=(0,n.allSchemaProperties)(s.properties),h=(0,n.allSchemaProperties)(s.patternProperties);function g(e){t.code(r._`delete ${l}[${e}]`)}function m(n){if("all"===f.removeAdditional||f.removeAdditional&&!1===a)g(n);else{if(!1===a)return e.setParams({additionalProperty:n}),e.error(),void(d||t.break());if("object"==typeof a&&!(0,i.alwaysValidSchema)(u,a)){const o=t.name("valid");"failing"===f.removeAdditional?(y(n,o,!1),t.if((0,r.not)(o),()=>{e.reset(),g(n)})):(y(n,o),d||t.if((0,r.not)(o),()=>t.break()))}}}function y(t,n,r){const o={keyword:"additionalProperties",dataProp:t,dataPropType:i.Type.Str};!1===r&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,n)}t.forIn("key",l,o=>{p.length||h.length?t.if(function(o){let a;if(p.length>8){const e=(0,i.schemaRefOrVal)(u,s.properties,"properties");a=(0,n.isOwnProperty)(t,e,o)}else a=p.length?(0,r.or)(...p.map(e=>r._`${o} === ${e}`)):r.nil;return h.length&&(a=(0,r.or)(a,...h.map(t=>r._`${(0,n.usePattern)(e,t)}.test(${o})`))),(0,r.not)(a)}(o),()=>m(o)):m(o)}),e.ok(r._`${c} === ${o.default.errors}`)}};t.default=a}),Y=__webpack_require__.cw(function(e,t){const n=L(),r={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((t,r)=>{if((0,n.alwaysValidSchema)(o,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},i);e.ok(i),e.mergeEvaluated(a)})}};t.default=r}),J=__webpack_require__.cw(function(e,t){const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ue().validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n}),Q=__webpack_require__.cw(function(e,t){const n=C(),r=L(),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?n.str`must contain at least ${e} valid item(s)`:n.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?n._`{minContains: ${e}}`:n._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:o,parentSchema:i,data:a,it:s}=e;let l,c;const{minContains:u,maxContains:d}=i;s.opts.next?(l=void 0===u?1:u,c=d):l=1;const f=t.const("len",n._`${a}.length`);if(e.setParams({min:l,max:c}),void 0===c&&0===l)return void(0,r.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==c&&l>c)return(0,r.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,r.alwaysValidSchema)(s,o)){let t=n._`${f} >= ${l}`;return void 0!==c&&(t=n._`${t} && ${f} <= ${c}`),void e.pass(t)}s.items=!0;const p=t.name("valid");function h(){const e=t.name("_valid"),r=t.let("count",0);g(e,()=>t.if(e,()=>function(e){t.code(n._`${e}++`),void 0===c?t.if(n._`${e} >= ${l}`,()=>t.assign(p,!0).break()):(t.if(n._`${e} > ${c}`,()=>t.assign(p,!1).break()),1===l?t.assign(p,!0):t.if(n._`${e} >= ${l}`,()=>t.assign(p,!0)))}(r)))}function g(n,o){t.forRange("i",0,f,t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:r.Type.Num,compositeRule:!0},n),o()})}void 0===c&&1===l?g(p,()=>t.if(p,()=>t.break())):0===l?(t.let(p,!0),void 0!==c&&t.if(n._`${a}.length > 0`,h)):(t.let(p,!1),h()),e.result(p,()=>e.reset())}};t.default=o}),X=__webpack_require__.cw(function(e,t){t.z3=void 0;const n=C(),r=L(),o=ue();t.z3={message:({params:{property:e,depsCount:t,deps:r}})=>{const o=1===t?"property":"properties";return n.str`must have ${o} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:o}})=>n._`{property: ${e},
    missingProperty: ${o},
    depsCount: ${t},
    deps: ${r}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.z3,code(e){const[t,i]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);(function(e,t=e.schema){const{gen:r,data:i,it:a}=e;if(0===Object.keys(t).length)return;const s=r.let("missing");for(const l in t){const c=t[l];if(0===c.length)continue;const u=(0,o.propertyInData)(r,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),a.allErrors?r.if(u,()=>{for(const t of c)(0,o.checkReportMissingProp)(e,t)}):(r.if(n._`${u} && (${(0,o.checkMissingProp)(e,c,s)})`),(0,o.reportMissingProp)(e,s),r.else())}})(e,t),function(e,t=e.schema){const{gen:n,data:i,keyword:a,it:s}=e,l=n.name("valid");for(const c in t)(0,r.alwaysValidSchema)(s,t[c])||(n.if((0,o.propertyInData)(n,i,c,s.opts.ownProperties),()=>{const t=e.subschema({keyword:a,schemaProp:c},l);e.mergeValidEvaluated(t,l)},()=>n.var(l,!0)),e.ok(l))}(e,i)}};t.default=i}),Z=__webpack_require__.cw(function(e,t){const n=C(),r=L(),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>n.str`must match "${e.ifClause}" schema`,params:({params:e})=>n._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:o,it:a}=e;void 0===o.then&&void 0===o.else&&(0,r.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const s=i(a,"then"),l=i(a,"else");if(!s&&!l)return;const c=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),s&&l){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(u,d("then",n),d("else",n))}else s?t.if(u,d("then")):t.if((0,n.not)(u),d("else"));function d(r,o){return()=>{const i=e.subschema({keyword:r},u);t.assign(c,u),e.mergeValidEvaluated(i,c),o?t.assign(o,n._`${r}`):e.setParams({ifClause:r})}}e.pass(c,()=>e.error(!0))}};function i(e,t){const n=e.schema[t];return void 0!==n&&!(0,r.alwaysValidSchema)(e,n)}t.default=o}),ee=__webpack_require__.cw(function(e,t){const n=K(),r=ae(),o=te(),i=ne(),a=Q(),s=X(),l=le(),c=G(),u=se(),d=ie(),f=re(),p=J(),h=oe(),g=Y(),m=Z(),y=ce();t.default=function(e=!1){const t=[f.default,p.default,h.default,g.default,m.default,y.default,l.default,c.default,s.default,u.default,d.default];return e?t.push(r.default,i.default):t.push(n.default,o.default),t.push(a.default),t}}),te=__webpack_require__.cw(function(e,t){t.validateTuple=void 0;const n=C(),r=L(),o=ue(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,r.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,o=e.schema){const{gen:i,parentSchema:a,data:s,keyword:l,it:c}=e;!function(e){const{opts:n,errSchemaPath:i}=c,a=o.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!s){const e=`"${l}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${i}"`;(0,r.checkStrictMode)(c,e,n.strictTuples)}}(a),c.opts.unevaluated&&o.length&&!0!==c.items&&(c.items=r.mergeEvaluated.items(i,o.length,c.items));const u=i.name("valid"),d=i.const("len",n._`${s}.length`);o.forEach((t,o)=>{(0,r.alwaysValidSchema)(c,t)||(i.if(n._`${d} > ${o}`,()=>e.subschema({keyword:l,schemaProp:o,dataProp:o},u)),e.ok(u))})}t.validateTuple=a,t.default=i}),ne=__webpack_require__.cw(function(e,t){const n=C(),r=L(),o=ue(),i=K(),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:a}=e,{prefixItems:s}=n;a.items=!0,(0,r.alwaysValidSchema)(a,t)||(s?(0,i.validateAdditionalItems)(e,s):e.ok((0,o.validateArray)(e)))}};t.default=a}),re=__webpack_require__.cw(function(e,t){const n=L(),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:o}=e;if((0,n.alwaysValidSchema)(o,r))return void e.fail();const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};t.default=r}),oe=__webpack_require__.cw(function(e,t){const n=C(),r=L(),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>n._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:o,parentSchema:i,it:a}=e;if(!Array.isArray(o))throw new Error("ajv implementation error");if(a.opts.discriminator&&i.discriminator)return;const s=o,l=t.let("valid",!1),c=t.let("passing",null),u=t.name("_valid");e.setParams({passing:c}),t.block(function(){s.forEach((o,i)=>{let s;(0,r.alwaysValidSchema)(a,o)?t.var(u,!0):s=e.subschema({keyword:"oneOf",schemaProp:i,compositeRule:!0},u),i>0&&t.if(n._`${u} && ${l}`).assign(l,!1).assign(c,n._`[${c}, ${i}]`).else(),t.if(u,()=>{t.assign(l,!0),t.assign(c,i),s&&e.mergeEvaluated(s,n.Name)})})}),e.result(l,()=>e.reset(),()=>e.error(!0))}};t.default=o}),ie=__webpack_require__.cw(function(e,t){const n=ue(),r=C(),o=L(),i=L(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:a,data:s,parentSchema:l,it:c}=e,{opts:u}=c,d=(0,n.allSchemaProperties)(a),f=d.filter(e=>(0,o.alwaysValidSchema)(c,a[e]));if(0===d.length||f.length===d.length&&(!c.opts.unevaluated||!0===c.props))return;const p=u.strictSchema&&!u.allowMatchingProperties&&l.properties,h=t.name("valid");!0===c.props||c.props instanceof r.Name||(c.props=(0,i.evaluatedPropsToName)(t,c.props));const{props:g}=c;function m(e){for(const t in p)new RegExp(e).test(t)&&(0,o.checkStrictMode)(c,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(o){t.forIn("key",s,a=>{t.if(r._`${(0,n.usePattern)(e,o)}.test(${a})`,()=>{const n=f.includes(o);n||e.subschema({keyword:"patternProperties",schemaProp:o,dataProp:a,dataPropType:i.Type.Str},h),c.opts.unevaluated&&!0!==g?t.assign(r._`${g}[${a}]`,!0):n||c.allErrors||t.if((0,r.not)(h),()=>t.break())})})}!function(){for(const e of d)p&&m(e),c.allErrors?y(e):(t.var(h,!0),y(e),t.if(h))}()}};t.default=a}),ae=__webpack_require__.cw(function(e,t){const n=te(),r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=r}),se=__webpack_require__.cw(function(e,t){const n=F(),r=ue(),o=L(),i=G(),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:a,parentSchema:s,data:l,it:c}=e;"all"===c.opts.removeAdditional&&void 0===s.additionalProperties&&i.default.code(new n.KeywordCxt(c,i.default,"additionalProperties"));const u=(0,r.allSchemaProperties)(a);for(const e of u)c.definedProperties.add(e);c.opts.unevaluated&&u.length&&!0!==c.props&&(c.props=o.mergeEvaluated.props(t,(0,o.toHash)(u),c.props));const d=u.filter(e=>!(0,o.alwaysValidSchema)(c,a[e]));if(0===d.length)return;const f=t.name("valid");for(const n of d)p(n)?h(n):(t.if((0,r.propertyInData)(t,l,n,c.opts.ownProperties)),h(n),c.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function p(e){return c.opts.useDefaults&&!c.compositeRule&&void 0!==a[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=a}),le=__webpack_require__.cw(function(e,t){const n=C(),r=L(),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:o,data:i,it:a}=e;if((0,r.alwaysValidSchema)(a,o))return;const s=t.name("valid");t.forIn("key",i,r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},s),t.if((0,n.not)(s),()=>{e.error(!0),a.allErrors||t.break()})}),e.ok(s)}};t.default=o}),ce=__webpack_require__.cw(function(e,t){const n=L(),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=r}),ue=__webpack_require__.cw(function(e,t){t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=C(),r=L(),o=R(),i=L();function a(e,t,r){return n._`${function(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}(e)}.call(${t}, ${r})`}function s(e,t,r,o){const i=n._`${t}${(0,n.getProperty)(r)} === undefined`;return o?(0,n.or)(i,(0,n.not)(a(e,t,r))):i}t.checkReportMissingProp=function(e,t){const{gen:r,data:o,it:i}=e;r.if(s(r,o,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},o,i){return(0,n.or)(...o.map(o=>(0,n.and)(s(e,t,o,r.ownProperties),n._`${i} = ${o}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.isOwnProperty=a,t.propertyInData=function(e,t,r,o){const i=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return o?n._`${i} && ${a(e,t,r)}`:i},t.noPropertyInData=s,t.allSchemaProperties=function(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},c,u,d){const f=d?n._`${e}, ${t}, ${i}${a}`:t,p=[[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,s)],[o.default.parentData,l.parentData],[o.default.parentDataProperty,l.parentDataProperty],[o.default.rootData,o.default.rootData]];l.opts.dynamicRef&&p.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=n._`${f}, ${r.object(...p)}`;return u!==n.nil?n._`${c}.call(${u}, ${h})`:n._`${c}(${h})`};const l=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const o=t.unicodeRegExp?"u":"",{regExp:a}=t.code,s=a(r,o);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:n._`${"new RegExp"===a.code?l:(0,i.useFunc)(e,a)}(${r}, ${o})`})},t.validateArray=function(e){const{gen:t,data:o,keyword:i,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return l(()=>t.assign(e,!1)),e}return t.var(s,!0),l(()=>t.break()),s;function l(a){const l=t.const("len",n._`${o}.length`);t.forRange("i",0,l,o=>{e.subschema({keyword:i,dataProp:o,dataPropType:r.Type.Num},s),t.if((0,n.not)(s),a)})}},t.validateUnion=function(e){const{gen:t,schema:o,keyword:i,it:a}=e;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some(e=>(0,r.alwaysValidSchema)(a,e))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block(()=>o.forEach((r,o)=>{const a=e.subschema({keyword:i,schemaProp:o,compositeRule:!0},l);t.assign(s,n._`${s} || ${l}`),e.mergeValidEvaluated(a,l)||t.if((0,n.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}}),de=__webpack_require__.cw(function(e,t){const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n}),fe=__webpack_require__.cw(function(e,t){const n=de(),r=pe(),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,r.default];t.default=o}),pe=__webpack_require__.cw(function(e,t){const n=A(),r=ue(),o=C(),i=R(),a=O(),s=L(),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:i}=e,{baseId:s,schemaEnv:l,validateName:u,opts:d,self:f}=i,{root:p}=l;if(("#"===r||"#/"===r)&&s===p.baseId)return function(){if(l===p)return c(e,u,l,l.$async);const n=t.scopeValue("root",{ref:p});return c(e,o._`${n}.validate`,p,p.$async)}();const h=a.resolveRef.call(f,p,s,r);if(void 0===h)throw new n.default(i.opts.uriResolver,s,r);return h instanceof a.SchemaEnv?function(t){const n=function(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}(e,t);c(e,n,t,t.$async)}(h):function(n){const i=t.scopeValue("schema",!0===d.code.source?{ref:n,code:(0,o.stringify)(n)}:{ref:n}),a=t.name("valid"),s=e.subschema({schema:n,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:r},a);e.mergeEvaluated(s),e.ok(a)}(h)}};function c(e,t,n,a){const{gen:l,it:c}=e,{allErrors:u,schemaEnv:d,opts:f}=c,p=f.passContext?i.default.this:o.nil;function h(e){const t=o._`${e}.errors`;l.assign(i.default.vErrors,o._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),l.assign(i.default.errors,o._`${i.default.vErrors}.length`)}function g(e){var t;if(!c.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==c.props)if(r&&!r.dynamicProps)void 0!==r.props&&(c.props=s.mergeEvaluated.props(l,r.props,c.props));else{const t=l.var("props",o._`${e}.evaluated.props`);c.props=s.mergeEvaluated.props(l,t,c.props,o.Name)}if(!0!==c.items)if(r&&!r.dynamicItems)void 0!==r.items&&(c.items=s.mergeEvaluated.items(l,r.items,c.items));else{const t=l.var("items",o._`${e}.evaluated.items`);c.items=s.mergeEvaluated.items(l,t,c.items,o.Name)}}a?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=l.let("valid");l.try(()=>{l.code(o._`await ${(0,r.callValidateCode)(e,t,p)}`),g(t),u||l.assign(n,!0)},e=>{l.if(o._`!(${e} instanceof ${c.ValidationError})`,()=>l.throw(e)),h(e),u||l.assign(n,!1)}),e.ok(n)}():e.result((0,r.callValidateCode)(e,t,p),()=>g(t),()=>h(t))}t.default=l}),he=__webpack_require__.cw(function(e,t){const n=C(),r=ge(),o=O(),i=A(),a=L(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===r.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>n._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:s,schema:l,parentSchema:c,it:u}=e,{oneOf:d}=c;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=l.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(l.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const p=t.let("valid",!1),h=t.const("tag",n._`${s}${(0,n.getProperty)(f)}`);function g(r){const o=t.name("valid"),i=e.subschema({keyword:"oneOf",schemaProp:r},o);return e.mergeEvaluated(i,n.Name),o}t.if(n._`typeof ${h} == "string"`,()=>function(){const s=function(){var e;const t={},n=s(c);let r=!0;for(let t=0;t<d.length;t++){let c=d[t];if((null==c?void 0:c.$ref)&&!(0,a.schemaHasRulesButRef)(c,u.self.RULES)){const e=c.$ref;if(c=o.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,e),c instanceof o.SchemaEnv&&(c=c.schema),void 0===c)throw new i.default(u.opts.uriResolver,u.baseId,e)}const p=null===(e=null==c?void 0:c.properties)||void 0===e?void 0:e[f];if("object"!=typeof p)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);r=r&&(n||s(c)),l(p,t)}if(!r)throw new Error(`discriminator: "${f}" must be required`);return t;function s({required:e}){return Array.isArray(e)&&e.includes(f)}function l(e,t){if(e.const)p(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const n of e.enum)p(n,t)}}function p(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${f}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in s)t.elseIf(n._`${h} === ${e}`),t.assign(p,g(s[e]));t.else(),e.error(!1,{discrError:r.DiscrError.Mapping,tag:h,tagName:f}),t.endIf()}(),()=>e.error(!1,{discrError:r.DiscrError.Tag,tag:h,tagName:f})),e.ok(p)}};t.default=s}),ge=__webpack_require__.cw(function(e,t){var n;t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(n||(t.DiscrError=n={}))}),me=__webpack_require__.cw(function(e,t){const n=fe(),r=xe(),o=ee(),i=ve(),a=be(),s=[n.default,r.default,(0,o.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];t.default=s}),ye=__webpack_require__.cw(function(e,t){const n=C(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match format "${e}"`,params:({schemaCode:e})=>n._`{format: ${e}}`},code(e,t){const{gen:r,data:o,$data:i,schema:a,schemaCode:s,it:l}=e,{opts:c,errSchemaPath:u,schemaEnv:d,self:f}=l;c.validateFormats&&(i?function(){const i=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),a=r.const("fDef",n._`${i}[${s}]`),l=r.let("fType"),u=r.let("format");r.if(n._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,()=>r.assign(l,n._`${a}.type || "string"`).assign(u,n._`${a}.validate`),()=>r.assign(l,n._`"string"`).assign(u,a)),e.fail$data((0,n.or)(!1===c.strictSchema?n.nil:n._`${s} && !${u}`,function(){const e=d.$async?n._`(${a}.async ? await ${u}(${o}) : ${u}(${o}))`:n._`${u}(${o})`,r=n._`(typeof ${u} == "function" ? ${e} : ${u}.test(${o}))`;return n._`${u} && ${u} !== true && ${l} === ${t} && !${r}`}()))}():function(){const i=f.formats[a];if(!i)return void function(){if(!1!==c.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}f.logger.warn(e())}();if(!0===i)return;const[s,l,p]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):c.code.formats?n._`${c.code.formats}${(0,n.getProperty)(a)}`:void 0,o=r.scopeValue("formats",{key:a,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,o]:[e.type||"string",e.validate,n._`${o}.validate`]}(i);s===t&&e.pass(function(){if("object"==typeof i&&!(i instanceof RegExp)&&i.async){if(!d.$async)throw new Error("async format in sync schema");return n._`await ${p}(${o})`}return"function"==typeof l?n._`${p}(${o})`:n._`${p}.test(${o})`}())}())}};t.default=r}),ve=__webpack_require__.cw(function(e,t){const n=[ye().default];t.default=n}),be=__webpack_require__.cw(function(e,t){t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]}),we=__webpack_require__.cw(function(e,t){const n=C(),r=L(),o=B(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>n._`{allowedValue: ${e}}`},code(e){const{gen:t,data:i,$data:a,schemaCode:s,schema:l}=e;a||l&&"object"==typeof l?e.fail$data(n._`!${(0,r.useFunc)(t,o.default)}(${i}, ${s})`):e.fail(n._`${l} !== ${i}`)}};t.default=i}),_e=__webpack_require__.cw(function(e,t){const n=C(),r=L(),o=B(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){const{gen:t,data:i,$data:a,schema:s,schemaCode:l,it:c}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const u=s.length>=c.opts.loopEnum;let d;const f=()=>null!=d?d:d=(0,r.useFunc)(t,o.default);let p;if(u||a)p=t.let("valid"),e.block$data(p,function(){t.assign(p,!1),t.forOf("v",l,e=>t.if(n._`${f()}(${i}, ${e})`,()=>t.assign(p,!0).break()))});else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",l);p=(0,n.or)(...s.map((t,r)=>function(e,t){const r=s[t];return"object"==typeof r&&null!==r?n._`${f()}(${i}, ${e}[${t}])`:n._`${i} === ${r}`}(e,r)))}e.pass(p)}};t.default=i}),xe=__webpack_require__.cw(function(e,t){const n=Ee(),r=Te(),o=Se(),i=Pe(),a=Ce(),s=Oe(),l=ke(),c=Re(),u=we(),d=_e(),f=[n.default,r.default,o.default,i.default,a.default,s.default,l.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,d.default];t.default=f}),ke=__webpack_require__.cw(function(e,t){const n=C(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,i="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${i} ${o}`)}};t.default=r}),Se=__webpack_require__.cw(function(e,t){const n=C(),r=L(),o=H(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:i,schemaCode:a,it:s}=e,l="maxLength"===t?n.operators.GT:n.operators.LT,c=!1===s.opts.unicode?n._`${i}.length`:n._`${(0,r.useFunc)(e.gen,o.default)}(${i})`;e.fail$data(n._`${c} ${l} ${a}`)}};t.default=i}),Ee=__webpack_require__.cw(function(e,t){const n=C(),r=n.operators,o={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},i={message:({keyword:e,schemaCode:t})=>n.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:i,code(e){const{keyword:t,data:r,schemaCode:i}=e;e.fail$data(n._`${r} ${o[t].fail} ${i} || isNaN(${r})`)}};t.default=a}),Ce=__webpack_require__.cw(function(e,t){const n=C(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,i="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${i} ${o}`)}};t.default=r}),Te=__webpack_require__.cw(function(e,t){const n=C(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>n.str`must be multiple of ${e}`,params:({schemaCode:e})=>n._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:o,it:i}=e,a=i.opts.multipleOfPrecision,s=t.let("res"),l=a?n._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:n._`${s} !== parseInt(${s})`;e.fail$data(n._`(${o} === 0 || (${s} = ${r}/${o}, ${l}))`)}};t.default=r}),Pe=__webpack_require__.cw(function(e,t){const n=ue(),r=L(),o=C(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{gen:t,data:i,$data:a,schema:s,schemaCode:l,it:c}=e,u=c.opts.unicodeRegExp?"u":"";if(a){const{regExp:n}=c.opts.code,a="new RegExp"===n.code?o._`new RegExp`:(0,r.useFunc)(t,n),s=t.let("valid");t.try(()=>t.assign(s,o._`${a}(${l}, ${u}).test(${i})`),()=>t.assign(s,!1)),e.fail$data(o._`!${s}`)}else{const t=(0,n.usePattern)(e,s);e.fail$data(o._`!${t}.test(${i})`)}}};t.default=i}),Oe=__webpack_require__.cw(function(e,t){const n=ue(),r=C(),o=L(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>r.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>r._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:i,schemaCode:a,data:s,$data:l,it:c}=e,{opts:u}=c;if(!l&&0===i.length)return;const d=i.length>=u.loopRequired;if(c.allErrors?function(){if(d||l)e.block$data(r.nil,f);else for(const t of i)(0,n.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(d||l){const i=t.let("valid",!0);e.block$data(i,()=>function(o,i){e.setParams({missingProperty:o}),t.forOf(o,a,()=>{t.assign(i,(0,n.propertyInData)(t,s,o,u.ownProperties)),t.if((0,r.not)(i),()=>{e.error(),t.break()})},r.nil)}(o,i)),e.ok(i)}else t.if((0,n.checkMissingProp)(e,i,o)),(0,n.reportMissingProp)(e,o),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of i)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${c.schemaEnv.baseId+c.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(c,t,c.opts.strictRequired)}}function f(){t.forOf("prop",a,r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,s,r,u.ownProperties),()=>e.error())})}}};t.default=i}),Re=__webpack_require__.cw(function(e,t){const n=M(),r=C(),o=L(),i=B(),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>r.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>r._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:a,$data:s,schema:l,parentSchema:c,schemaCode:u,it:d}=e;if(!s&&!l)return;const f=t.let("valid"),p=c.items?(0,n.getSchemaTypes)(c.items):[];function h(o,i){const s=t.name("item"),l=(0,n.checkDataTypes)(p,s,d.opts.strictNumbers,n.DataType.Wrong),c=t.const("indices",r._`{}`);t.for(r._`;${o}--;`,()=>{t.let(s,r._`${a}[${o}]`),t.if(l,r._`continue`),p.length>1&&t.if(r._`typeof ${s} == "string"`,r._`${s} += "_"`),t.if(r._`typeof ${c}[${s}] == "number"`,()=>{t.assign(i,r._`${c}[${s}]`),e.error(),t.assign(f,!1).break()}).code(r._`${c}[${s}] = ${o}`)})}function g(n,s){const l=(0,o.useFunc)(t,i.default),c=t.name("outer");t.label(c).for(r._`;${n}--;`,()=>t.for(r._`${s} = ${n}; ${s}--;`,()=>t.if(r._`${l}(${a}[${n}], ${a}[${s}])`,()=>{e.error(),t.assign(f,!1).break(c)})))}e.block$data(f,function(){const n=t.let("i",r._`${a}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(f,!0),t.if(r._`${n} > 1`,()=>(p.length>0&&!p.some(e=>"object"===e||"array"===e)?h:g)(n,o))},r._`${u} === false`),e.ok(f)}};t.default=a}),Ae=__webpack_require__.cw(function(e,t){t.parse=function(e){for(var t,r=[],i=String(e||o),a=i.indexOf(n),s=0,l=!1;!l;)-1===a&&(a=i.length,l=!0),!(t=i.slice(s,a).trim())&&l||r.push(t),s=a+1,a=i.indexOf(n,s);return r},t.stringify=function(e,t){var i=t||{},a=!1===i.padLeft?o:r,s=i.padRight?r:o;return e[e.length-1]===o&&(e=e.concat(o)),e.join(s+n+a).trim()};var n=",",r=" ",o=""}),Ie=__webpack_require__.cw(function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function l(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var c=Array.isArray(t);return c===Array.isArray(e)?c?r.arrayMerge(e,t,r):function(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach(function(t){r[t]=o(e[t],n)}),a(t).forEach(function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))}),r}(e,t,r):o(t,r)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})};var c=l;e.exports=c}),De=__webpack_require__.cw(function(e,t){e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}}),Le=__webpack_require__.cw(function(e,t){const n=Zt(),r=zt(),o=Ne(),i=Ue(),a=je(),s=Me(),l=qe(),c=Fe(),u=ze();function d(e,t){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let n=l(e);const i=d.cache[n.content];if(!t){if(i)return n=Object.assign({},i),n.orig=i.orig,n;d.cache[n.content]=n}return function(e,t){const n=o(t),i=n.delimiters[0],s="\n"+n.delimiters[1];let l=e.content;n.language&&(e.language=n.language);const f=i.length;if(!u.startsWith(l,i,f))return a(e,n),e;if(l.charAt(f)===i.slice(-1))return e;l=l.slice(f);const p=l.length,h=d.language(l,n);h.name&&(e.language=h.name,l=l.slice(h.raw.length));let g=l.indexOf(s);return-1===g&&(g=p),e.matter=l.slice(0,g),""===e.matter.replace(/^\s*#[^\n]+/gm,"").trim()?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=c(e.language,e.matter,n),g===p?e.content="":(e.content=l.slice(g+s.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1))),a(e,n),(!0===n.sections||"function"==typeof n.section)&&r(e,n.section),e}(n,t)}d.engines=s,d.stringify=function(e,t,n){return"string"==typeof e&&(e=d(e,n)),i(e,t,n)},d.read=function(e,t){const r=d(n.readFileSync(e,"utf8"),t);return r.path=e,r},d.test=function(e,t){return u.startsWith(e,o(t).delimiters[0])},d.language=function(e,t){const n=o(t).delimiters[0];d.test(e)&&(e=e.slice(n.length));const r=e.slice(0,e.search(/\r?\n/));return{raw:r,name:r?r.trim():""}},d.cache={},d.clearCache=function(){d.cache={}},e.exports=d}),Ne=__webpack_require__.cw(function(e,t){const n=Me(),r=ze();e.exports=function(e){const t=Object.assign({},e);return t.delimiters=r.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},n,t.parsers,t.engines),t}}),$e=()=>__webpack_require__(49517),Me=()=>__webpack_require__(13576),je=__webpack_require__.cw(function(e,t){const n=Ne();e.exports=function(e,t){const r=n(t);if(null==e.data&&(e.data={}),"function"==typeof r.excerpt)return r.excerpt(e,r);const o=e.data.excerpt_separator||r.excerpt_separator;if(null==o&&(!1===r.excerpt||null==r.excerpt))return e;const i="string"==typeof r.excerpt?r.excerpt:o||r.delimiters[0],a=e.content.indexOf(i);return-1!==a&&(e.excerpt=e.content.slice(0,a)),e}}),Fe=__webpack_require__.cw(function(e,t){const n=$e(),r=Ne();e.exports=function(e,t,o){const i=r(o),a=n(e,i);if("function"!=typeof a.parse)throw new TypeError('expected "'+e+'.parse" to be a function');return a.parse(t,i)}}),Ue=__webpack_require__.cw(function(e,t){const n=We(),r=$e(),o=Ne();function i(e){return"\n"!==e.slice(-1)?e+"\n":e}e.exports=function(e,t,a){if(null==t&&null==a)switch(n(e)){case"object":t=e.data,a={};break;case"string":return e;default:throw new TypeError("expected file to be a string or object")}const s=e.content,l=o(a);if(null==t){if(!l.data)return e;t=l.data}const c=e.language||l.language,u=r(c,l);if("function"!=typeof u.stringify)throw new TypeError('expected "'+c+'.stringify" to be a function');t=Object.assign({},e.data,t);const d=l.delimiters[0],f=l.delimiters[1],p=u.stringify(t,a).trim();let h="";return"{}"!==p&&(h=i(d)+i(p)+i(f)),"string"==typeof e.excerpt&&""!==e.excerpt&&-1===s.indexOf(e.excerpt.trim())&&(h+=i(e.excerpt)+i(f)),h+i(s)}}),qe=__webpack_require__.cw(function(e,t){const n=We(),r=Ue(),o=ze();e.exports=function(e){return"object"!==n(e)&&(e={content:e}),"object"!==n(e.data)&&(e.data={}),e.contents&&null==e.content&&(e.content=e.contents),o.define(e,"orig",o.toBuffer(e.content)),o.define(e,"language",e.language||""),o.define(e,"matter",e.matter||""),o.define(e,"stringify",function(t,n){return n&&n.language&&(e.language=n.language),r(e,t,n)}),e.content=o.toString(e.content),e.isEmpty=!1,e.excerpt="",e}}),ze=__webpack_require__.cw(function(e,t){var n=__webpack_require__(36533).hp;const r=Ht(),o=We();t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=function(e){return"buffer"===o(e)},t.isObject=function(e){return"object"===o(e)},t.toBuffer=function(e){return"string"==typeof e?n.from(e):e},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}),Be=__webpack_require__.cw(function(e,t){var n=st(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return n.isMemo(e)?i:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=i;var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var a=c(n);u&&(a=a.concat(u(n)));for(var h=s(t),g=s(n),m=0;m<a.length;++m){var y=a[m];if(!(o[y]||r&&r[y]||g&&g[y]||h&&h[y])){var v=d(n,y);try{l(t,y,v)}catch(e){}}}}return t}}),He=__webpack_require__.cw(function(e,t){var n=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,t,i,a,s,l,c,u,d,f){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var p in t(a,s,l,c,u,d,f),a){var h=a[p];if(Array.isArray(h)){if(p in n.arrayKeywords)for(var g=0;g<h.length;g++)r(e,t,i,h[g],s+"/"+p+"/"+g,l,s,p,a,g)}else if(p in n.propsKeywords){if(h&&"object"==typeof h)for(var m in h)r(e,t,i,h[m],s+"/"+p+"/"+o(m),l,s,p,a,m)}else(p in n.keywords||e.allKeys&&!(p in n.skipKeywords))&&r(e,t,i,h,s+"/"+p,l,s,p,a)}i(a,s,l,c,u,d,f)}}function o(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}}),We=()=>__webpack_require__(67543),Ve=__webpack_require__.cw(function(e,t){var n=Ke(),r=Yt(),o=__webpack_require__(75630),i=function(e){r(!1,e)},a=String.prototype.replace,s=String.prototype.split,l="||||",c=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},u={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:c,chinese:function(){return 0},croatian:c,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:c,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3},romanian:function(e){if(1===e)return 0;var t=e%100;return 0===e||t>=2&&t<=19?1:2},ukrainian:c},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function d(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var f,p=(f={},function(e,t){var r=f[t];return r&&!e.pluralTypes[r]&&(r=null,f[t]=r),r||(r=function(e,t){var r=function(e){for(var t={},r=n(e),o=0;o<r.length;o+=1)for(var i=r[o][0],a=r[o][1],s=0;s<a.length;s+=1)t[a[s]]=i;return t}(e.pluralTypeToLanguages);return r[t]||r[s.call(t,/-/,1)[0]]||r.en}(e,t))&&(f[t]=r),r}),h=/%\{(.*?)\}/g;function g(e,t,n,r,i,c){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var d=e,f=r||h,g=c||a,m="number"==typeof t?{smart_count:t}:t;if(null!=m.smart_count&&e){var y=i||u,v=s.call(e,l),b=function(e,t,n){return e.pluralTypes[t](n)}(y,p(y,n||"en"),m.smart_count);d=a.call(v[b]||v[0],/^[^\S]*|[^\S]*$/g,"")}return g.call(d,f,function(e,t){return o(m,t)&&null!=m[t]?m[t]:e})}function m(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?g:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||i,this.replaceImplementation=t.replace||a,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if(t===l||n===l)throw new RangeError('"||||" token is reserved for pluralization');return new RegExp(d(t)+"(.*?)"+d(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||u}m.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},m.prototype.extend=function(e,t){for(var r=n(e||{}),o=0;o<r.length;o+=1){var i=r[o][0],a=r[o][1],s=t?t+"."+i:i;"object"==typeof a?this.extend(a,s):this.phrases[s]=a}},m.prototype.unset=function(e,t){if("string"==typeof e)delete this.phrases[e];else for(var r=n(e||{}),o=0;o<r.length;o+=1){var i=r[o][0],a=r[o][1],s=t?t+"."+i:i;"object"==typeof a?this.unset(a,s):delete this.phrases[s]}},m.prototype.clear=function(){this.phrases={}},m.prototype.replace=function(e){this.clear(),this.extend(e)},m.prototype.t=function(e,t){var n,r,o=t??{};return"string"==typeof this.phrases[e]?n=this.phrases[e]:"string"==typeof o._?n=o._:this.onMissingKey?r=(0,this.onMissingKey)(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation):(this.warn('Missing translation for key: "'+e+'"'),r=e),"string"==typeof n&&(r=g(n,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),r},m.prototype.has=function(e){return o(this.phrases,e)},m.transformPhrase=function(e,t,n){return g(e,t,n)},e.exports=m}),Ke=()=>__webpack_require__(5289),Ge=__webpack_require__.cw(function(e,t){var n=__webpack_require__(85409);function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function o(e,t){for(var n,r="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),i=s,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var i={resolve:function(){for(var e,t="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=n.cwd()),s=e),r(s),0!==s.length&&(t=s+"/"+t,i=47===s.charCodeAt(0))}return t=o(t,!i),i?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(r(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var o=e.length,a=o-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var l=t.length-s,c=a<l?a:l,u=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===t.charCodeAt(s+d))return t.slice(s+d+1);if(0===d)return t.slice(s+d)}else a>c&&(47===e.charCodeAt(n+d)?u=d:0===d&&(u=0));break}var f=e.charCodeAt(n+d);if(f!==t.charCodeAt(s+d))break;47===f&&(u=d)}var p="";for(d=n+u+1;d<=o;++d)d!==o&&47!==e.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+u):(s+=u,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,o=-1,i=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":e.slice(0,o)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,o=0,i=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!a){o=n+1;break}}else-1===l&&(a=!1,l=n+1),s>=0&&(c===t.charCodeAt(s)?-1===--s&&(i=n):(s=-1,i=l))}return o===i?i=l:-1===i&&(i=e.length),e.slice(o,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":e.slice(o,i)},extname:function(e){r(e);for(var t=-1,n=0,o=-1,i=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===o&&(i=!1,o=s+1),46===l?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=s+1;break}}return-1===t||-1===o||0===a||1===a&&t===o-1&&t===n+1?"":e.slice(t,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,o=e.charCodeAt(0),i=47===o;i?(t.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,c=!0,u=e.length-1,d=0;u>=n;--u)if(47!==(o=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===o?-1===a?a=u:1!==d&&(d=1):-1!==a&&(d=-1);else if(!c){s=u+1;break}return-1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(t.base=t.name=0===s&&i?e.slice(1,l):e.slice(s,l)):(0===s&&i?(t.name=e.slice(1,a),t.base=e.slice(1,l)):(t.name=e.slice(s,a),t.base=e.slice(s,l)),t.ext=e.slice(a,l)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}),Ye=__webpack_require__.cw(function(e,t){var n=Xe(),r=Je(),o=Qe(),i="data";e.exports=function(e,t){var d=n(t),f=t,p=o;return d in e.normal?e.property[e.normal[d]]:(d.length>4&&d.slice(0,4)===i&&a.test(t)&&("-"===t.charAt(4)?f=function(e){var t=e.slice(5).replace(s,u);return i+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return s.test(t)?e:("-"!==(t=t.replace(l,c)).charAt(0)&&(t="-"+t),i+t)}(t),p=r),new p(f,t))};var a=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function u(e){return e.charAt(1).toUpperCase()}}),Je=()=>__webpack_require__(35898),Qe=()=>__webpack_require__(80178),Xe=()=>__webpack_require__(43912),Ze=__webpack_require__.cw(function(e,t){var n=__webpack_require__(11088),r=__webpack_require__(14775),o=__webpack_require__(74690),i=__webpack_require__(57005),a=__webpack_require__(36678),s=__webpack_require__(24329);e.exports=n([o,r,i,a,s])}),et=__webpack_require__.cw(function(e,t){var n=__webpack_require__(85409),r=qt(),o=Jt(),i=Qt();function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function l(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function c(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=d(e)))return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),E=Symbol.for("react.lazy");Symbol.for("react.scope");var C=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var T=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var P=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var R=Symbol.for("react.client.reference");function A(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===R?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"Fragment";case v:return"Profiler";case y:return"StrictMode";case x:return"Suspense";case k:return"SuspenseList";case C:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case g:return"Portal";case w:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case S:return null!==(t=e.displayName||null)?t:A(e.type)||"Memo";case E:t=e._payload,e=e._init;try{return A(e(t))}catch(e){}}return null}var I=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N={pending:!1,data:null,method:null,action:null},$=[],M=-1;function j(e){return{current:e}}function F(e){0>M||(e.current=$[M],$[M]=null,M--)}function U(e,t){M++,$[M]=e.current,e.current=t}var q,z,B=j(null),H=j(null),W=j(null),V=j(null);function K(e,t){switch(U(W,t),U(H,e),U(B,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=wd(t=bd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(B),U(B,e)}function G(){F(B),F(H),F(W)}function Y(e){null!==e.memoizedState&&U(V,e);var t=B.current,n=wd(t,e.type);t!==n&&(U(H,e),U(B,n))}function J(e){H.current===e&&(F(B),F(H)),V.current===e&&(F(V),pf._currentValue=N)}function Q(e){if(void 0===q)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||"",z=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+q+e+z}var X=!1;function Z(e,t){if(!e||X)return"";X=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{X=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Q(n):""}function ee(e,t){switch(e.tag){case 26:case 27:case 5:return Q(e.type);case 16:return Q("Lazy");case 13:return e.child!==t&&null!==t?Q("Suspense Fallback"):Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return Z(e.type,!1);case 11:return Z(e.type.render,!1);case 1:return Z(e.type,!0);case 31:return Q("Activity");default:return""}}function te(e){try{var t="",n=null;do{t+=ee(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ne=Object.prototype.hasOwnProperty,re=r.unstable_scheduleCallback,oe=r.unstable_cancelCallback,ie=r.unstable_shouldYield,ae=r.unstable_requestPaint,se=r.unstable_now,le=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,ue=r.unstable_UserBlockingPriority,de=r.unstable_NormalPriority,fe=r.unstable_LowPriority,pe=r.unstable_IdlePriority,he=r.log,ge=r.unstable_setDisableYieldValue,me=null,ye=null;function ve(e){if("function"==typeof he&&ge(e),ye&&"function"==typeof ye.setStrictMode)try{ye.setStrictMode(me,e)}catch(e){}}var be=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(we(e)/_e|0)|0},we=Math.log,_e=Math.LN2,xe=256,ke=262144,Se=4194304;function Ee(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ce(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=Ee(r):0!==(a&=s)?o=Ee(a):n||0!==(n=s&~e)&&(o=Ee(n)):0!==(s=r&~i)?o=Ee(s):0!==a?o=Ee(a):n||0!==(n=r&~e)&&(o=Ee(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Te(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Pe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Oe(){var e=Se;return!(62914560&(Se<<=1))&&(Se=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ae(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-be(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function De(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-be(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Le(e,t){var n=t&-t;return 0!==((n=42&n?1:Ne(n))&(e.suspendedLanes|t))?0:n}function Ne(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $e(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function Me(){var e=L.p;return 0!==e?e:void 0===(e=window.event)?32:Tf(e.type)}function je(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Fe=Math.random().toString(36).slice(2),Ue="__reactFiber$"+Fe,qe="__reactProps$"+Fe,ze="__reactContainer$"+Fe,Be="__reactEvents$"+Fe,He="__reactListeners$"+Fe,We="__reactHandles$"+Fe,Ve="__reactResources$"+Fe,Ke="__reactMarker$"+Fe;function Ge(e){delete e[Ue],delete e[qe],delete e[Be],delete e[He],delete e[We]}function Ye(e){var t=e[Ue];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ze]||n[Ue]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=jd(e);null!==e;){if(n=e[Ue])return n;e=jd(e)}return t}n=(e=n).parentNode}return null}function Je(e){if(e=e[Ue]||e[ze]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(a(33))}function Xe(e){var t=e[Ve];return t||(t=e[Ve]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[Ke]=!0}var et=new Set,tt={};function nt(e,t){rt(e,t),rt(e+"Capture",t)}function rt(e,t){for(tt[e]=t,e=0;e<t.length;e++)et.add(t[e])}var ot=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),it={},at={};function st(e,t,n){if(o=t,ne.call(at,o)||!ne.call(it,o)&&(ot.test(o)?at[o]=!0:(it[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function lt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ct(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function dt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ft(e){if(!e._valueTracker){var t=dt(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ht(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function mt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ut(t)):e.value!==""+ut(t)&&(e.value=""+ut(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?bt(e,a,ut(t)):null!=n?bt(e,a,ut(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+ut(s):e.removeAttribute("name")}function vt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void ft(e);n=null!=n?""+ut(n):"",t=null!=t?""+ut(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),ft(e)}function bt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ut(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function _t(e,t,n){null==t||((t=""+ut(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ut(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function xt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(a(92));if(I(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ut(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),ft(e)}function kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var St=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Et(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||St.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ct(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(a(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&Et(e,o,r)}else for(var i in t)t.hasOwnProperty(i)&&Et(e,i,t[i])}function Tt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ot=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rt(e){return Ot.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function At(){}var It=null;function Dt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Lt=null,Nt=null;function $t(e){var t=Je(e);if(t&&(e=t.stateNode)){var n=e[qe]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+mt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[qe]||null;if(!o)throw Error(a(90));yt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&pt(r)}break e;case"textarea":_t(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&wt(e,!!n.multiple,t,!1)}}}var Mt=!1;function jt(e,t,n){if(Mt)return e(t,n);Mt=!0;try{return e(t)}finally{if(Mt=!1,(null!==Lt||null!==Nt)&&(tu(),Lt&&(t=Lt,e=Nt,Nt=Lt=null,$t(t),e)))for(t=0;t<e.length;t++)$t(e[t])}}function Ft(e,t){var n=e.stateNode;if(null===n)return null;var r=n[qe]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ut=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),zt=!1;if(Ut)try{var Bt={};Object.defineProperty(Bt,"passive",{get:function(){zt=!0}}),window.addEventListener("test",Bt,Bt),window.removeEventListener("test",Bt,Bt)}catch(e){zt=!1}var Ht=null,Wt=null,Vt=null;function Kt(){if(Vt)return Vt;var e,t,n=Wt,r=n.length,o="value"in Ht?Ht.value:Ht.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Vt=o.slice(e,1<t?1-t:void 0)}function Gt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Xt(){return!1}function Zt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Yt:Xt,this.isPropagationStopped=Xt,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Zt(rn),an=f({},rn,{view:0,detail:0}),sn=Zt(an),ln=f({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),cn=Zt(ln),un=Zt(f({},ln,{dataTransfer:0})),dn=Zt(f({},an,{relatedTarget:0})),fn=Zt(f({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Zt(f({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Zt(f({},rn,{data:0})),gn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function bn(){return vn}var wn=Zt(f({},an,{key:function(e){if(e.key){var t=gn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bn,charCode:function(e){return"keypress"===e.type?Gt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),_n=Zt(f({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=Zt(f({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bn})),kn=Zt(f({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Zt(f({},ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),En=Zt(f({},rn,{newState:0,oldState:0})),Cn=[9,13,27,32],Tn=Ut&&"CompositionEvent"in window,Pn=null;Ut&&"documentMode"in document&&(Pn=document.documentMode);var On=Ut&&"TextEvent"in window&&!Pn,Rn=Ut&&(!Tn||Pn&&8<Pn&&11>=Pn),An=String.fromCharCode(32),In=!1;function Dn(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Nn=!1,$n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function jn(e,t,n,r){Lt?Nt?Nt.push(r):Nt=[r]:Lt=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fn=null,Un=null;function qn(e){Qu(e,0)}function zn(e){if(pt(Qe(e)))return e}function Bn(e,t){if("change"===e)return t}var Hn=!1;if(Ut){var Wn;if(Ut){var Vn="oninput"in document;if(!Vn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),Vn="function"==typeof Kn.oninput}Wn=Vn}else Wn=!1;Hn=Wn&&(!document.documentMode||9<document.documentMode)}function Gn(){Fn&&(Fn.detachEvent("onpropertychange",Yn),Un=Fn=null)}function Yn(e){if("value"===e.propertyName&&zn(Un)){var t=[];jn(t,Un,e,Dt(e)),jt(qn,t)}}function Jn(e,t,n){"focusin"===e?(Gn(),Un=n,(Fn=t).attachEvent("onpropertychange",Yn)):"focusout"===e&&Gn()}function Qn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zn(Un)}function Xn(e,t){if("click"===e)return zn(t)}function Zn(e,t){if("input"===e||"change"===e)return zn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ne.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ir(e){for(var t=ht((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sr=Ut&&"documentMode"in document&&11>=document.documentMode,lr=null,cr=null,ur=null,dr=!1;function fr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==lr||lr!==ht(r)||(r="selectionStart"in(r=lr)&&ar(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ur&&tr(ur,r)||(ur=r,0<(r=id(cr,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},gr={},mr={};function yr(e){if(gr[e])return gr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return gr[e]=n[t];return e}Ut&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var vr=yr("animationend"),br=yr("animationiteration"),wr=yr("animationstart"),_r=yr("transitionrun"),xr=yr("transitionstart"),kr=yr("transitioncancel"),Sr=yr("transitionend"),Er=new Map,Cr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Er.set(e,t),nt(t,[e])}Cr.push("scrollEnd");var Pr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof n&&"function"==typeof n.emit)return void n.emit("uncaughtException",e);console.error(e)},Or=[],Rr=0,Ar=0;function Ir(){for(var e=Rr,t=Ar=Rr=0;t<e;){var n=Or[t];Or[t++]=null;var r=Or[t];Or[t++]=null;var o=Or[t];Or[t++]=null;var i=Or[t];if(Or[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&$r(n,o,i)}}function Dr(e,t,n,r){Or[Rr++]=e,Or[Rr++]=t,Or[Rr++]=n,Or[Rr++]=r,Ar|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Lr(e,t,n,r){return Dr(e,t,n,r),Mr(e)}function Nr(e,t){return Dr(e,null,null,t),Mr(e)}function $r(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-be(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function Mr(e){if(50<Vc)throw Vc=0,Kc=null,Error(a(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var jr={};function Fr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ur(e,t,n,r){return new Fr(e,t,n,r)}function qr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zr(e,t){var n=e.alternate;return null===n?((n=Ur(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,n,r,o,i){var s=0;if(r=e,"function"==typeof e)qr(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,B.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case C:return(e=Ur(31,n,t,o)).elementType=C,e.lanes=i,e;case m:return Wr(n.children,o,i,t);case y:s=8,o|=24;break;case v:return(e=Ur(12,n,t,2|o)).elementType=v,e.lanes=i,e;case x:return(e=Ur(13,n,t,o)).elementType=x,e.lanes=i,e;case k:return(e=Ur(19,n,t,o)).elementType=k,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case b:s=9;break e;case _:s=11;break e;case S:s=14;break e;case E:s=16,r=null;break e}s=29,n=Error(a(130,null===e?"null":typeof e,"")),r=null}return(t=Ur(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Wr(e,t,n,r){return(e=Ur(7,e,r,t)).lanes=n,e}function Vr(e,t,n){return(e=Ur(6,e,null,t)).lanes=n,e}function Kr(e){var t=Ur(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=Ur(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yr=new WeakMap;function Jr(e,t){if("object"==typeof e&&null!==e){var n=Yr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:te(t)},Yr.set(e,t),t)}return{value:e,source:t,stack:te(t)}}var Qr=[],Xr=0,Zr=null,eo=0,to=[],no=0,ro=null,oo=1,io="";function ao(e,t){Qr[Xr++]=eo,Qr[Xr++]=Zr,Zr=e,eo=t}function so(e,t,n){to[no++]=oo,to[no++]=io,to[no++]=ro,ro=e;var r=oo;e=io;var o=32-be(r)-1;r&=~(1<<o),n+=1;var i=32-be(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-be(t)+o|n<<o|r,io=i+e}else oo=1<<i|n<<o|r,io=e}function lo(e){null!==e.return&&(ao(e,1),so(e,1,0))}function co(e){for(;e===Zr;)Zr=Qr[--Xr],Qr[Xr]=null,eo=Qr[--Xr],Qr[Xr]=null;for(;e===ro;)ro=to[--no],to[no]=null,io=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=io,to[no++]=ro,oo=t.id,io=t.overflow,ro=e}var fo=null,po=null,ho=!1,go=null,mo=!1,yo=Error(a(519));function vo(e){throw So(Jr(Error(a(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function bo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ue]=e,t[qe]=r,n){case"dialog":Xu("cancel",t),Xu("close",t);break;case"iframe":case"object":case"embed":Xu("load",t);break;case"video":case"audio":for(n=0;n<Yu.length;n++)Xu(Yu[n],t);break;case"source":Xu("error",t);break;case"img":case"image":case"link":Xu("error",t),Xu("load",t);break;case"details":Xu("toggle",t);break;case"input":Xu("invalid",t),vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Xu("invalid",t);break;case"textarea":Xu("invalid",t),xt(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Xu("beforetoggle",t),Xu("toggle",t)),null!=r.onScroll&&Xu("scroll",t),null!=r.onScrollEnd&&Xu("scrollend",t),null!=r.onClick&&(t.onclick=At),t=!0):t=!1,t||vo(e,!0)}function wo(e){for(fo=e.return;fo;)switch(fo.tag){case 5:case 31:case 13:return void(mo=!1);case 27:case 3:return void(mo=!0);default:fo=fo.return}}function _o(e){if(e!==fo)return!1;if(!ho)return wo(e),ho=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||_d(e.type,e.memoizedProps)),t=!t),t&&po&&vo(e),wo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));po=Md(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));po=Md(e)}else 27===n?(n=po,Pd(e.type)?(e=$d,$d=null,po=e):po=n):po=fo?Nd(e.stateNode.nextSibling):null;return!0}function xo(){po=fo=null,ho=!1}function ko(){var e=go;return null!==e&&(null===Ic?Ic=e:Ic.push.apply(Ic,e),go=null),e}function So(e){null===go?go=[e]:go.push(e)}var Eo=j(null),Co=null,To=null;function Po(e,t,n){U(Eo,t._currentValue),t._currentValue=n}function Oo(e){e._currentValue=Eo.current,F(Eo)}function Ro(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var s=o.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=o;for(var c=0;c<t.length;c++)if(l.context===t[c]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Ro(i.return,n,e),r||(s=null);break e}i=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(i=s.alternate)&&(i.lanes|=n),Ro(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function Io(e,t,n,r){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(524288&o.flags)i=!0;else if(262144&o.flags)break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(a(387));if(null!==(s=s.memoizedProps)){var l=o.type;er(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===V.current){if(null===(s=o.alternate))throw Error(a(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(pf):e=[pf])}o=o.return}null!==e&&Ao(t,e,n,r),t.flags|=262144}function Do(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Lo(e){Co=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function No(e){return Mo(Co,e)}function $o(e,t){return null===Co&&Lo(e),Mo(e,t)}function Mo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===To){if(null===e)throw Error(a(308));To=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else To=To.next=t;return n}var jo="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Fo=r.unstable_scheduleCallback,Uo=r.unstable_NormalPriority,qo={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zo(){return{controller:new jo,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&Fo(Uo,function(){e.controller.abort()})}var Ho=null,Wo=0,Vo=0,Ko=null;function Go(){if(0===--Wo&&null!==Ho){null!==Ko&&(Ko.status="fulfilled");var e=Ho;Ho=null,Vo=0,Ko=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Yo=D.S;D.S=function(e,t){Nc=se(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Ho){var n=Ho=[];Wo=0,Vo=Hu(),Ko={status:"pending",value:void 0,then:function(e){n.push(e)}}}Wo++,t.then(Go,Go)}(0,t),null!==Yo&&Yo(e,t)};var Jo=j(null);function Qo(){var e=Jo.current;return null!==e?e:mc.pooledCache}function Xo(e,t){U(Jo,null===t?Jo.current:t.pool)}function Zo(){var e=Qo();return null===e?null:{parent:qo._currentValue,pool:e}}var ei=Error(a(460)),ti=Error(a(474)),ni=Error(a(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(At,At),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e;default:if("string"==typeof t.status)t.then(At,At);else{if(null!==(e=mc)&&100<e.shellSuspendCounter)throw Error(a(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e}throw si=t,ei}}function ai(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw si=e,ei;throw e}}var si=null;function li(){if(null===si)throw Error(a(459));var e=si;return si=null,e}function ci(e){if(e===ei||e===ni)throw Error(a(483))}var ui=null,di=0;function fi(e){var t=di;return di+=1,null===ui&&(ui=[]),ii(ui,e,t)}function pi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function hi(e,t){if(t.$$typeof===p)throw Error(a(525));throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=zr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Vr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===m?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===E&&ai(i)===t.type)?(pi(t=o(t,n.props),n),t.return=e,t):(pi(t=Hr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Wr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Vr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case h:return pi(n=Hr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Gr(t,e.mode,n)).return=e,t;case E:return f(e,t=ai(t),n)}if(I(t)||O(t))return(t=Wr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,fi(t),n);if(t.$$typeof===w)return f(e,$o(e,t),n);hi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case h:return n.key===o?c(e,t,n,r):null;case g:return n.key===o?u(e,t,n,r):null;case E:return p(e,t,n=ai(n),r)}if(I(n)||O(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return p(e,t,fi(n),r);if(n.$$typeof===w)return p(e,t,$o(e,n),r);hi(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case h:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case g:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case E:return y(e,t,n,r=ai(r),o)}if(I(r)||O(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,fi(r),o);if(r.$$typeof===w)return y(e,t,n,$o(t,r),o);hi(t,r)}return null}function v(l,c,u,d){if("object"==typeof u&&null!==u&&u.type===m&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case h:e:{for(var b=u.key;null!==c;){if(c.key===b){if((b=u.type)===m){if(7===c.tag){n(l,c.sibling),(d=o(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===E&&ai(b)===c.type){n(l,c.sibling),pi(d=o(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===m?((d=Wr(u.props.children,l.mode,d,u.key)).return=l,l=d):(pi(d=Hr(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case g:e:{for(b=u.key;null!==c;){if(c.key===b){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=o(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Gr(u,l.mode,d)).return=l,l=d}return s(l);case E:return v(l,c,u=ai(u),d)}if(I(u))return function(o,a,s,l){for(var c=null,u=null,d=a,h=a=0,g=null;null!==d&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var m=p(o,d,s[h],l);if(null===m){null===d&&(d=g);break}e&&d&&null===m.alternate&&t(o,d),a=i(m,a,h),null===u?c=m:u.sibling=m,u=m,d=g}if(h===s.length)return n(o,d),ho&&ao(o,h),c;if(null===d){for(;h<s.length;h++)null!==(d=f(o,s[h],l))&&(a=i(d,a,h),null===u?c=d:u.sibling=d,u=d);return ho&&ao(o,h),c}for(d=r(d);h<s.length;h++)null!==(g=y(d,o,h,s[h],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),a=i(g,a,h),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(o,e)}),ho&&ao(o,h),c}(l,c,u,d);if(O(u)){if("function"!=typeof(b=O(u)))throw Error(a(150));return function(o,s,l,c){if(null==l)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,m=null,v=l.next();null!==h&&!v.done;g++,v=l.next()){h.index>g?(m=h,h=null):m=h.sibling;var b=p(o,h,v.value,c);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&t(o,h),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b,h=m}if(v.done)return n(o,h),ho&&ao(o,g),u;if(null===h){for(;!v.done;g++,v=l.next())null!==(v=f(o,v.value,c))&&(s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return ho&&ao(o,g),u}for(h=r(h);!v.done;g++,v=l.next())null!==(v=y(h,o,g,v.value,c))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(o,e)}),ho&&ao(o,g),u}(l,c,u=b.call(u),d)}if("function"==typeof u.then)return v(l,c,fi(u),d);if(u.$$typeof===w)return v(l,c,$o(l,u),d);hi(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=o(c,u)).return=l,l=d):(n(l,c),(d=Vr(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,r){try{di=0;var o=v(e,t,n,r);return ui=null,o}catch(t){if(t===ei||t===ni)throw t;var i=Ur(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var mi=gi(!0),yi=gi(!1),vi=!1;function bi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _i(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&gc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Mr(e),$r(e,null,n),t}return Dr(e,r,t,n),Mr(e)}function ki(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,De(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ei=!1;function Ci(){if(Ei&&null!==Ko)throw Ko}function Ti(e,t,n,r){Ei=!1;var o=e.updateQueue;vi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&(s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l)}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(vc&p)===p:(r&p)===p){0!==p&&p===Vo&&(Ei=!0),null!==u&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,m=s;p=t;var y=n;switch(m.tag){case 1:if("function"==typeof(g=m.payload)){d=g.call(y,d,p);break e}d=g;break e;case 3:g.flags=-65537&g.flags|128;case 0:if(null==(p="function"==typeof(g=m.payload)?g.call(y,d,p):g))break e;d=f({},d,p);break e;case 2:vi=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null===i&&(o.shared.lanes=0),Cc|=a,e.lanes=a,e.memoizedState=d}}function Pi(e,t){if("function"!=typeof e)throw Error(a(191,e));e.call(t)}function Oi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Pi(n[e],t)}var Ri=j(null),Ai=j(0);function Ii(e,t){U(Ai,e=Sc),U(Ri,t),Sc=e|t.baseLanes}function Di(){U(Ai,Sc),U(Ri,Ri.current)}function Li(){Sc=Ai.current,F(Ri),F(Ai)}var Ni=j(null),$i=null;function Mi(e){var t=e.alternate;U(zi,1&zi.current),U(Ni,e),null===$i&&(null===t||null!==Ri.current||null!==t.memoizedState)&&($i=e)}function ji(e){U(zi,zi.current),U(Ni,e),null===$i&&($i=e)}function Fi(e){22===e.tag?(U(zi,zi.current),U(Ni,e),null===$i&&($i=e)):Ui()}function Ui(){U(zi,zi.current),U(Ni,Ni.current)}function qi(e){F(Ni),$i===e&&($i=null),F(zi)}var zi=j(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Dd(n)||Ld(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Hi=0,Wi=null,Vi=null,Ki=null,Gi=!1,Yi=!1,Ji=!1,Qi=0,Xi=0,Zi=null,ea=0;function ta(){throw Error(a(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){return Hi=i,Wi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=null===e||null===e.memoizedState?vs:bs,Ji=!1,i=n(r,o),Ji=!1,Yi&&(i=ia(t,n,r,o)),oa(e),i}function oa(e){D.H=ys;var t=null!==Vi&&null!==Vi.next;if(Hi=0,Ki=Vi=Wi=null,Gi=!1,Xi=0,Zi=null,t)throw Error(a(300));null===e||Ns||null!==(e=e.dependencies)&&Do(e)&&(Ns=!0)}function ia(e,t,n,r){Wi=e;var o=0;do{if(Yi&&(Zi=null),Xi=0,Yi=!1,25<=o)throw Error(a(301));if(o+=1,Ki=Vi=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}D.H=ws,i=t(n,r)}while(Yi);return i}function aa(){var e=D.H,t=e.useState()[0];return t="function"==typeof t.then?fa(t):t,e=e.useState()[0],(null!==Vi?Vi.memoizedState:null)!==e&&(Wi.flags|=1024),t}function sa(){var e=0!==Qi;return Qi=0,e}function la(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ca(e){if(Gi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gi=!1}Hi=0,Ki=Vi=Wi=null,Yi=!1,Xi=Qi=0,Zi=null}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Wi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function da(){if(null===Vi){var e=Wi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Ki?Wi.memoizedState:Ki.next;if(null!==t)Ki=t,Vi=e;else{if(null===e){if(null===Wi.alternate)throw Error(a(467));throw Error(a(310))}e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Ki?Wi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function fa(e){var t=Xi;return Xi+=1,null===Zi&&(Zi=[]),e=ii(Zi,e,t),t=Wi,null===(null===Ki?t.memoizedState:Ki.next)&&(t=t.alternate,D.H=null===t||null===t.memoizedState?vs:bs),e}function pa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return fa(e);if(e.$$typeof===w)return No(e)}throw Error(a(438,String(e)))}function ha(e){var t=null,n=Wi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Wi.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Wi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=T;return t.index++,n}function ga(e,t){return"function"==typeof t?t(e):t}function ma(e){return ya(da(),Vi,e)}function ya(e,t,n){var r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=n;var o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}t.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var l=s=null,c=null,u=t=o.next,d=!1;do{var f=-536870913&u.lane;if(f!==u.lane?(vc&f)===f:(Hi&f)===f){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Vo&&(d=!0);else{if((Hi&p)===p){u=u.next,p===Vo&&(d=!0);continue}f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,s=i):c=c.next=f,Wi.lanes|=p,Cc|=p}f=u.action,Ji&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=i):c=c.next=p,Wi.lanes|=f,Cc|=f;u=u.next}while(null!==u&&u!==t);if(null===c?s=i:c.next=l,!er(i,e.memoizedState)&&(Ns=!0,d&&null!==(n=Ko)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=c,r.lastRenderedState=i}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function va(e){var t=da(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);er(i,t.memoizedState)||(Ns=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ba(e,t,n){var r=Wi,o=da(),i=ho;if(i){if(void 0===n)throw Error(a(407));n=n()}else n=t();var s=!er((Vi||o).memoizedState,n);if(s&&(o.memoizedState=n,Ns=!0),o=o.queue,Ha(xa.bind(null,r,o,e),[e]),o.getSnapshot!==t||s||null!==Ki&&1&Ki.memoizedState.tag){if(r.flags|=2048,Fa(9,{destroy:void 0},_a.bind(null,r,o,n,t),null),null===mc)throw Error(a(349));i||127&Hi||wa(r,t,n)}return n}function wa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Wi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Wi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _a(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Sa(e)}function xa(e,t,n){return n(function(){ka(t)&&Sa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(e){return!0}}function Sa(e){var t=Nr(e,2);null!==t&&Jc(t,0,2)}function Ea(e){var t=ua();if("function"==typeof e){var n=e;if(e=n(),Ji){ve(!0);try{n()}finally{ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function Ca(e,t,n,r){return e.baseState=n,ya(e,Vi,"function"==typeof r?r:ga)}function Ta(e,t,n,r,o){if(hs(e))throw Error(a(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==D.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,Pa(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Pa(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=D.T,a={};D.T=a;try{var s=n(o,r),l=D.S;null!==l&&l(a,s),Oa(e,t,s)}catch(n){Aa(e,t,n)}finally{null!==i&&null!==a.types&&(i.types=a.types),D.T=i}}else try{Oa(e,t,i=n(o,r))}catch(n){Aa(e,t,n)}}function Oa(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Ra(e,t,n)},function(n){return Aa(e,t,n)}):Ra(e,t,n)}function Ra(e,t,n){t.status="fulfilled",t.value=n,Ia(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Pa(e,n)))}function Aa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Ia(t),t=t.next}while(t!==r)}e.action=null}function Ia(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Da(e,t){return t}function La(e,t){if(ho){var n=mc.formState;if(null!==n){e:{var r=Wi;if(ho){if(po){t:{for(var o=po,i=mo;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Nd(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Nd(o.nextSibling),r="F!"===o.data;break e}}vo(r)}r=!1}r&&(t=n[0])}}return(n=ua()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:t},n.queue=r,n=ds.bind(null,Wi,r),r.dispatch=n,r=Ea(!1),i=ps.bind(null,Wi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ua()).queue=o,n=Ta.bind(null,Wi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Na(e){return $a(da(),Vi,e)}function $a(e,t,n){if(t=ya(e,t,Da)[0],e=ma(ga)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=fa(t)}catch(e){if(e===ei)throw ni;throw e}else r=t;var o=(t=da()).queue,i=o.dispatch;return n!==t.memoizedState&&(Wi.flags|=2048,Fa(9,{destroy:void 0},Ma.bind(null,o,n),null)),[r,i,e]}function Ma(e,t){e.action=t}function ja(e){var t=da(),n=Vi;if(null!==n)return $a(t,n,e);da(),t=t.memoizedState;var r=(n=da()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Fa(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Wi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Wi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ua(){return da().memoizedState}function qa(e,t,n,r){var o=ua();Wi.flags|=e,o.memoizedState=Fa(1|t,{destroy:void 0},n,void 0===r?null:r)}function za(e,t,n,r){var o=da();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Vi&&null!==r&&na(r,Vi.memoizedState.deps)?o.memoizedState=Fa(t,i,n,r):(Wi.flags|=e,o.memoizedState=Fa(1|t,i,n,r))}function Ba(e,t){qa(8390656,8,e,t)}function Ha(e,t){za(2048,8,e,t)}function Wa(e){var t=da().memoizedState;return function(e){Wi.flags|=4;var t=Wi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Wi.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&gc)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function Va(e,t){return za(4,2,e,t)}function Ka(e,t){return za(4,4,e,t)}function Ga(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ya(e,t,n){n=null!=n?n.concat([e]):null,za(4,4,Ga.bind(null,t,e),n)}function Ja(){}function Qa(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&na(t,r[1]))return r[0];if(r=e(),Ji){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r}function Za(e,t,n){return void 0===n||1073741824&Hi&&!(261930&vc)?e.memoizedState=t:(e.memoizedState=n,e=Yc(),Wi.lanes|=e,Cc|=e,n)}function es(e,t,n,r){return er(n,t)?n:null!==Ri.current?(e=Za(e,n,r),er(e,t)||(Ns=!0),e):42&Hi&&(!(1073741824&Hi)||261930&vc)?(e=Yc(),Wi.lanes|=e,Cc|=e,t):(Ns=!0,e.memoizedState=n)}function ts(e,t,n,r,o){var i=L.p;L.p=0!==i&&8>i?i:8;var a,s,l,c=D.T,u={};D.T=u,ps(e,!1,t,n);try{var d=o(),f=D.S;null!==f&&f(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?fs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),Gc()):fs(e,t,r,Gc())}catch(n){fs(e,t,{then:function(){},status:"rejected",reason:n},Gc())}finally{L.p=i,null!==c&&null!==u.types&&(c.types=u.types),D.T=c}}function ns(){}function rs(e,t,n,r){if(5!==e.tag)throw Error(a(476));var o=os(e).queue;ts(e,o,t,N,null===n?ns:function(){return is(e),n(r)})}function os(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:N,baseState:N,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:N},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function is(e){var t=os(e);null===t.next&&(t=e.alternate.memoizedState),fs(e,t.next.queue,{},Gc())}function as(){return No(pf)}function ss(){return da().memoizedState}function ls(){return da().memoizedState}function cs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),r=xi(t,e=_i(n),n);return null!==r&&(Jc(r,0,n),ki(r,t,n)),t={cache:zo()},void(e.payload=t)}t=t.return}}function us(e,t,n){var r=Gc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hs(e)?gs(t,n):null!==(n=Lr(e,t,n,r))&&(Jc(n,0,r),ms(n,t,r))}function ds(e,t,n){fs(e,t,n,Gc())}function fs(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hs(e))gs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,er(s,a))return Dr(e,t,o,0),null===mc&&Ir(),!1}catch(e){}if(null!==(n=Lr(e,t,o,r)))return Jc(n,0,r),ms(n,t,r),!0}return!1}function ps(e,t,n,r){if(r={lane:2,revertLane:Hu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},hs(e)){if(t)throw Error(a(479))}else null!==(t=Lr(e,n,r,2))&&Jc(t,0,2)}function hs(e){var t=e.alternate;return e===Wi||null!==t&&t===Wi}function gs(e,t){Yi=Gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ms(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,De(e,n)}}var ys={readContext:No,use:pa,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};ys.useEffectEvent=ta;var vs={readContext:No,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:No,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,qa(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qa(4194308,4,e,t)},useInsertionEffect:function(e,t){qa(4,2,e,t)},useMemo:function(e,t){var n=ua();t=void 0===t?null:t;var r=e();if(Ji){ve(!0);try{e()}finally{ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ua();if(void 0!==n){var o=n(t);if(Ji){ve(!0);try{n(t)}finally{ve(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=us.bind(null,Wi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ua().memoizedState=e},useState:function(e){var t=(e=Ea(e)).queue,n=ds.bind(null,Wi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ja,useDeferredValue:function(e,t){return Za(ua(),e,t)},useTransition:function(){var e=Ea(!1);return e=ts.bind(null,Wi,e.queue,!0,!1),ua().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Wi,o=ua();if(ho){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===mc)throw Error(a(349));127&vc||wa(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ba(xa.bind(null,r,i,e),[e]),r.flags|=2048,Fa(9,{destroy:void 0},_a.bind(null,r,i,n,t),null),n},useId:function(){var e=ua(),t=mc.identifierPrefix;if(ho){var n=io;t="_"+t+"R_"+(n=(oo&~(1<<32-be(oo)-1)).toString(32)+n),0<(n=Qi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ea++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:as,useFormState:La,useActionState:La,useOptimistic:function(e){var t=ua();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ps.bind(null,Wi,!0,n),n.dispatch=t,[e,t]},useMemoCache:ha,useCacheRefresh:function(){return ua().memoizedState=cs.bind(null,Wi)},useEffectEvent:function(e){var t=ua(),n={impl:e};return t.memoizedState=n,function(){if(2&gc)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},bs={readContext:No,use:pa,useCallback:Qa,useContext:No,useEffect:Ha,useImperativeHandle:Ya,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:ma,useRef:Ua,useState:function(){return ma(ga)},useDebugValue:Ja,useDeferredValue:function(e,t){return es(da(),Vi.memoizedState,e,t)},useTransition:function(){var e=ma(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:ba,useId:ss,useHostTransitionStatus:as,useFormState:Na,useActionState:Na,useOptimistic:function(e,t){return Ca(da(),0,e,t)},useMemoCache:ha,useCacheRefresh:ls};bs.useEffectEvent=Wa;var ws={readContext:No,use:pa,useCallback:Qa,useContext:No,useEffect:Ha,useImperativeHandle:Ya,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Xa,useReducer:va,useRef:Ua,useState:function(){return va(ga)},useDebugValue:Ja,useDeferredValue:function(e,t){var n=da();return null===Vi?Za(n,e,t):es(n,Vi.memoizedState,e,t)},useTransition:function(){var e=va(ga)[0],t=da().memoizedState;return["boolean"==typeof e?e:fa(e),t]},useSyncExternalStore:ba,useId:ss,useHostTransitionStatus:as,useFormState:ja,useActionState:ja,useOptimistic:function(e,t){var n=da();return null!==Vi?Ca(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ha,useCacheRefresh:ls};function _s(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ws.useEffectEvent=Wa;var xs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=_i(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=xi(e,o,r))&&(Jc(t,0,r),ki(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=_i(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=xi(e,o,r))&&(Jc(t,0,r),ki(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),r=_i(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=xi(e,r,n))&&(Jc(t,0,n),ki(t,e,n))}};function ks(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&tr(n,r)&&tr(o,i))}function Ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xs.enqueueReplaceState(t,t.state,null)}function Es(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=f({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function Cs(e){Pr(e)}function Ts(e){console.error(e)}function Ps(e){Pr(e)}function Os(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Rs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function As(e,t,n){return(n=_i(n)).tag=3,n.payload={element:null},n.callback=function(){Os(e,t)},n}function Is(e){return(e=_i(e)).tag=3,e}function Ds(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Rs(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Rs(t,n,r),"function"!=typeof o&&(null===jc?jc=new Set([this]):jc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ls=Error(a(461)),Ns=!1;function $s(e,t,n,r){t.child=null===e?yi(t,null,n,r):mi(t,e.child,n,r)}function Ms(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Lo(t),r=ra(e,t,n,a,i,o),s=sa(),null===e||Ns?(ho&&s&&lo(t),t.flags|=1,$s(e,t,r,o),t.child):(la(e,t,o),al(e,t,o))}function js(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||qr(i)||void 0!==i.defaultProps||null!==n.compare?((e=Hr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Fs(e,t,i,r,o))}if(i=e.child,!sl(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(a,r)&&e.ref===t.ref)return al(e,t,o)}return t.flags|=1,(e=zr(i,r)).ref=t.ref,e.return=t,t.child=e}function Fs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Ns=!1,t.pendingProps=r=i,!sl(e,o))return t.lanes=e.lanes,al(e,t,o);131072&e.flags&&(Ns=!0)}}return Vs(e,t,n,r,o)}function Us(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return zs(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,zs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Xo(0,null!==i?i.cachePool:null),null!==i?Ii(t,i):Di(),Fi(t)}else null!==i?(Xo(0,i.cachePool),Ii(t,i),Ui(),t.memoizedState=null):(null!==e&&Xo(0,null),Di(),Ui());return $s(e,t,o,n),t.child}function qs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zs(e,t,n,r,o){var i=Qo();return i=null===i?null:{parent:qo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xo(0,null),Di(),Fi(t),null!==e&&Io(e,t,r,!0),t.childLanes=o,null}function Bs(e,t){return(t=tl({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Hs(e,t,n){return mi(t,e.child,null,n),(e=Bs(t,t.pendingProps)).flags|=2,qi(t),t.memoizedState=null,e}function Ws(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(a(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Vs(e,t,n,r,o){return Lo(t),n=ra(e,t,n,r,void 0,o),r=sa(),null===e||Ns?(ho&&r&&lo(t),t.flags|=1,$s(e,t,n,o),t.child):(la(e,t,o),al(e,t,o))}function Ks(e,t,n,r,o,i){return Lo(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=sa(),null===e||Ns?(ho&&r&&lo(t),t.flags|=1,$s(e,t,n,i),t.child):(la(e,t,i),al(e,t,i))}function Gs(e,t,n,r,o){if(Lo(t),null===t.stateNode){var i=jr,a=n.contextType;"object"==typeof a&&null!==a&&(i=No(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=xs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},bi(t),a=n.contextType,i.context="object"==typeof a&&null!==a?No(a):jr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(_s(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&xs.enqueueReplaceState(i,i.state,null),Ti(t,r,i,o),Ci(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Es(n,s);i.props=l;var c=i.context,u=n.contextType;a=jr,"object"==typeof u&&null!==u&&(a=No(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||c!==a)&&Ss(t,i,r,a),vi=!1;var f=t.memoizedState;i.state=f,Ti(t,r,i,o),Ci(),c=t.memoizedState,s||f!==c||vi?("function"==typeof d&&(_s(t,n,d,r),c=t.memoizedState),(l=vi||ks(t,n,l,r,f,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,wi(e,t),u=Es(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,f=i.context,c=n.contextType,l=jr,"object"==typeof c&&null!==c&&(l=No(c)),(c="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||f!==l)&&Ss(t,i,r,l),vi=!1,f=t.memoizedState,i.state=f,Ti(t,r,i,o),Ci();var p=t.memoizedState;a!==d||f!==p||vi||null!==e&&null!==e.dependencies&&Do(e.dependencies)?("function"==typeof s&&(_s(t,n,s,r),p=t.memoizedState),(u=vi||ks(t,n,u,r,f,p,l)||null!==e&&null!==e.dependencies&&Do(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Ws(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=mi(t,e.child,null,o),t.child=mi(t,null,n,o)):$s(e,t,n,o),t.memoizedState=i.state,e=t.child):e=al(e,t,o),e}function Ys(e,t,n,r){return xo(),t.flags|=256,$s(e,t,n,r),t.child}var Js={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qs(e){return{baseLanes:e,cachePool:Zo()}}function Xs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Oc),e}function Zs(e,t,n){var r,o=t.pendingProps,i=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&zi.current)),r&&(i=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(ho){if(i?Mi(t):Ui(),(e=po)?null!==(e=null!==(e=Id(e,mo))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw vo(t);return Ld(e)?t.lanes=32:t.lanes=536870912,null}var l=o.children;return o=o.fallback,i?(Ui(),l=tl({mode:"hidden",children:l},i=t.mode),o=Wr(o,i,n,null),l.return=t,o.return=t,l.sibling=o,t.child=l,(o=t.child).memoizedState=Qs(n),o.childLanes=Xs(e,r,n),t.memoizedState=Js,qs(null,o)):(Mi(t),el(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(s)256&t.flags?(Mi(t),t.flags&=-257,t=nl(e,t,n)):null!==t.memoizedState?(Ui(),t.child=e.child,t.flags|=128,t=null):(Ui(),l=o.fallback,i=t.mode,o=tl({mode:"visible",children:o.children},i),(l=Wr(l,i,n,null)).flags|=2,o.return=t,l.return=t,o.sibling=l,t.child=o,mi(t,e.child,null,n),(o=t.child).memoizedState=Qs(n),o.childLanes=Xs(e,r,n),t.memoizedState=Js,t=qs(null,o));else if(Mi(t),Ld(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var u=r.dgst;r=u,(o=Error(a(419))).stack="",o.digest=r,So({value:o,source:null,stack:null}),t=nl(e,t,n)}else if(Ns||Io(e,t,n,!1),r=0!==(n&e.childLanes),Ns||r){if(null!==(r=mc)&&0!==(o=Le(r,n))&&o!==c.retryLane)throw c.retryLane=o,Nr(e,o),Jc(r,0,o),Ls;Dd(l)||lu(),t=nl(e,t,n)}else Dd(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Nd(l.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=el(t,o.children)).flags|=4096);return t}return i?(Ui(),l=o.fallback,i=t.mode,u=(c=e.child).sibling,(o=zr(c,{mode:"hidden",children:o.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=zr(u,l):(l=Wr(l,i,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,qs(null,o),o=t.child,null===(l=e.child.memoizedState)?l=Qs(n):(null!==(i=l.cachePool)?(c=qo._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=Zo(),l={baseLanes:l.baseLanes|n,cachePool:i}),o.memoizedState=l,o.childLanes=Xs(e,r,n),t.memoizedState=Js,qs(e.child,o)):(Mi(t),e=(n=e.child).sibling,(n=zr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return(t=tl({mode:"visible",children:t},e.mode)).return=e,e.child=t}function tl(e,t){return(e=Ur(22,e,null,t)).lanes=0,e}function nl(e,t,n){return mi(t,e.child,null,n),(e=el(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ro(e.return,t,n)}function ol(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function il(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=zi.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,U(zi,a),$s(e,t,r,n),r=ho?eo:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rl(e,n,t);else if(19===e.tag)rl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ol(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ol(t,!0,n,null,i,r);break;case"together":ol(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Cc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Io(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=zr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Do(e))}function ll(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ns=!0;else{if(!(sl(e,n)||128&t.flags))return Ns=!1,function(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),Po(0,qo,e.memoizedState.cache),xo();break;case 27:case 5:Y(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:Po(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,ji(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Mi(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Zs(e,t,n):(Mi(t),null!==(e=al(e,t,n))?e.sibling:null);Mi(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Io(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return il(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),U(zi,zi.current),r)break;return null;case 22:return t.lanes=0,Us(e,t,n,t.pendingProps);case 24:Po(0,qo,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Ns=!!(131072&e.flags)}else Ns=!1,ho&&1048576&t.flags&&so(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var o=e.$$typeof;if(o===_){t.tag=11,t=Ms(null,t,e,r,n);break e}if(o===S){t.tag=14,t=js(null,t,e,r,n);break e}}throw t=A(e)||e,Error(a(306,t,""))}qr(e)?(r=Es(e,r),t.tag=1,t=Gs(null,t,e,r,n)):(t.tag=0,t=Vs(null,t,e,r,n))}return t;case 0:return Vs(e,t,t.type,t.pendingProps,n);case 1:return Gs(e,t,r=t.type,o=Es(r,t.pendingProps),n);case 3:e:{if(K(t,t.stateNode.containerInfo),null===e)throw Error(a(387));r=t.pendingProps;var i=t.memoizedState;o=i.element,wi(e,t),Ti(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Po(0,qo,r),r!==i.cache&&Ao(t,[qo],n,!0),Ci(),r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ys(e,t,r,n);break e}if(r!==o){So(o=Jr(Error(a(424)),t)),t=Ys(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,po=Nd(e.firstChild),fo=t,ho=!0,go=null,mo=!0,n=yi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(xo(),r===o){t=al(e,t,n);break e}$s(e,t,r,n)}t=t.child}return t;case 26:return Ws(e,t),null===e?(n=Kd(t.type,null,t.pendingProps,null))?t.memoizedState=n:ho||(n=t.type,e=t.pendingProps,(r=vd(W.current).createElement(n))[Ue]=t,r[qe]=e,hd(r,n,e),Ze(r),t.stateNode=r):t.memoizedState=Kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Y(t),null===e&&ho&&(r=t.stateNode=Fd(t.type,t.pendingProps,W.current),fo=t,mo=!0,o=po,Pd(t.type)?($d=o,po=Nd(r.firstChild)):po=o),$s(e,t,t.pendingProps.children,n),Ws(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&ho&&((o=r=po)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ke])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Nd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,mo))?(t.stateNode=r,fo=t,po=Nd(r.firstChild),mo=!1,o=!0):o=!1),o||vo(t)),Y(t),o=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,r=i.children,_d(o,i)?r=null:null!==s&&_d(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=ra(e,t,aa,null,null,n),pf._currentValue=o),Ws(e,t),$s(e,t,r,n),t.child;case 6:return null===e&&ho&&((e=n=po)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Nd(e.nextSibling)))return null}return e}(n,t.pendingProps,mo))?(t.stateNode=n,fo=t,po=null,e=!0):e=!1),e||vo(t)),null;case 13:return Zs(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=mi(t,null,r,n):$s(e,t,r,n),t.child;case 11:return Ms(e,t,t.type,t.pendingProps,n);case 7:return $s(e,t,t.pendingProps,n),t.child;case 8:case 12:return $s(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Po(0,t.type,r.value),$s(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Lo(t),r=r(o=No(o)),t.flags|=1,$s(e,t,r,n),t.child;case 14:return js(e,t,t.type,t.pendingProps,n);case 15:return Fs(e,t,t.type,t.pendingProps,n);case 19:return il(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,o=!!(128&t.flags);if(t.flags&=-129,null===e){if(ho){if("hidden"===r.mode)return e=Bs(t,r),t.lanes=536870912,qs(null,e);if(ji(t),(e=po)?null!==(e=null!==(e=Id(e,mo))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=Kr(e)).return=t,t.child=n,fo=t,po=null):e=null,null===e)throw vo(t);return t.lanes=536870912,null}return Bs(t,r)}var i=e.memoizedState;if(null!==i){var s=i.dehydrated;if(ji(t),o)if(256&t.flags)t.flags&=-257,t=Hs(e,t,n);else{if(null===t.memoizedState)throw Error(a(558));t.child=e.child,t.flags|=128,t=null}else if(Ns||Io(e,t,n,!1),o=0!==(n&e.childLanes),Ns||o){if(null!==(r=mc)&&0!==(s=Le(r,n))&&s!==i.retryLane)throw i.retryLane=s,Nr(e,s),Jc(r,0,s),Ls;lu(),t=Hs(e,t,n)}else e=i.treeContext,po=Nd(s.nextSibling),fo=t,ho=!0,go=null,mo=!1,null!==e&&uo(t,e),(t=Bs(t,r)).flags|=4096;return t}return(e=zr(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Us(e,t,n,t.pendingProps);case 24:return Lo(t),r=No(qo),null===e?(null===(o=Qo())&&(o=mc,i=zo(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},bi(t),Po(0,qo,o)):(0!==(e.lanes&n)&&(wi(e,t),Ti(t,null,null,n),Ci()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),Po(0,qo,r)):(r=i.cache,Po(0,qo,r),r!==o.cache&&Ao(t,[qo],n,!0))),$s(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function cl(e){e.flags|=4}function ul(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!iu())throw si=ri,ti;e.flags|=8192}}else e.flags&=-16777217}function dl(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!sf(t)){if(!iu())throw si=ri,ti;e.flags|=8192}}function fl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Oe():536870912,e.lanes|=t,Rc|=t)}function pl(e,t){if(!ho)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gl(e,t,n){var r=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Oo(qo),G(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(_o(t)?cl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ko())),hl(t),null;case 26:var o=t.type,i=t.memoizedState;return null===e?(cl(t),null!==i?(hl(t),dl(t,i)):(hl(t),ul(t,o,0,0,n))):i?i!==e.memoizedState?(cl(t),hl(t),dl(t,i)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&cl(t),hl(t),ul(t,o,0,0,n)),null;case 27:if(J(t),n=W.current,o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&cl(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return hl(t),null}e=B.current,_o(t)?bo(t):(e=Fd(o,r,n),t.stateNode=e,cl(t))}return hl(t),null;case 5:if(J(t),o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&cl(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return hl(t),null}if(i=B.current,_o(t))bo(t);else{var s=vd(W.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(i=s.createElement("div")).innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i="string"==typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i="string"==typeof r.is?s.createElement(o,{is:r.is}):s.createElement(o)}}i[Ue]=t,i[qe]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)i.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=i;e:switch(hd(i,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&cl(t)}}return hl(t),ul(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&cl(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(e=W.current,_o(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=fo))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Ue]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||dd(e.nodeValue,n)))||vo(t,!0)}else(e=vd(e).createTextNode(r))[Ue]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=_o(t),null!==n){if(null===e){if(!r)throw Error(a(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(a(557));e[Ue]=t}else xo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(qi(t),t):(qi(t),null);if(128&t.flags)throw Error(a(558))}return hl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=_o(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[Ue]=t}else xo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),o=!1}else o=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(qi(t),t):(qi(t),null)}return qi(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),i=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),fl(t,t.updateQueue),hl(t),null);case 4:return G(),null===e&&td(t.stateNode.containerInfo),hl(t),null;case 10:return Oo(t.type),hl(t),null;case 19:if(F(zi),null===(r=t.memoizedState))return hl(t),null;if(o=!!(128&t.flags),null===(i=r.rendering))if(o)pl(r,!1);else{if(0!==Ec||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=Bi(e))){for(t.flags|=128,pl(r,!1),e=i.updateQueue,t.updateQueue=e,fl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return U(zi,1&zi.current|2),ho&&ao(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&se()>$c&&(t.flags|=128,o=!0,pl(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Bi(i))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,fl(t,e),pl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!ho)return hl(t),null}else 2*se()-r.renderingStartTime>$c&&536870912!==n&&(t.flags|=128,o=!0,pl(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=r.last)?e.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=se(),e.sibling=null,n=zi.current,U(zi,o?1&n|2:1&n),ho&&ao(t,r.treeForkCount),e):(hl(t),null);case 22:case 23:return qi(t),Li(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&fl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&F(Jo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Oo(qo),hl(t),null;case 25:case 30:return null}throw Error(a(156,t.tag))}function ml(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Oo(qo),G(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return J(t),null;case 31:if(null!==t.memoizedState){if(qi(t),null===t.alternate)throw Error(a(340));xo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(qi(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));xo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return F(zi),null;case 4:return G(),null;case 10:return Oo(t.type),null;case 22:case 23:return qi(t),Li(),null!==e&&F(Jo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Oo(qo),null;default:return null}}function yl(e,t){switch(co(t),t.tag){case 3:Oo(qo),G();break;case 26:case 27:case 5:J(t);break;case 4:G();break;case 31:null!==t.memoizedState&&qi(t);break;case 13:qi(t);break;case 19:F(zi);break;case 10:Oo(t.type);break;case 22:case 23:qi(t),Li(),null!==e&&F(Jo);break;case 24:Oo(qo)}}function vl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(e){Eu(t,t.return,e)}}function bl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,c=s;try{c()}catch(e){Eu(o,l,e)}}}r=r.next}while(r!==i)}}catch(e){Eu(t,t.return,e)}}function wl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Oi(t,n)}catch(t){Eu(e,e.return,t)}}}function _l(e,t,n){n.props=Es(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Eu(e,t,n)}}function xl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){Eu(e,t,n)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){Eu(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function Sl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Eu(e,e.return,t)}}function El(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,s=null,l=null,c=null,u=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":c=f;default:r.hasOwnProperty(h)||fd(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":o=h;break;case"checked":u=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(a(137,t));break;default:h!==f&&fd(e,t,p,h,r,f)}}return void yt(e,s,l,c,u,d,i,o);case"select":for(i in h=s=l=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":h=c;default:r.hasOwnProperty(i)||fd(e,t,i,null,r,c)}for(o in r)if(i=r[o],c=n[o],r.hasOwnProperty(o)&&(null!=i||null!=c))switch(o){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":s=i;default:i!==c&&fd(e,t,o,i,r,c)}return t=l,n=s,r=h,void(null!=p?wt(e,!!n,p,!1):!!r!=!!n&&(null!=t?wt(e,!!n,t,!0):wt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:fd(e,t,l,null,r,o)}for(s in r)if(o=r[s],i=n[s],r.hasOwnProperty(s)&&(null!=o||null!=i))switch(s){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(a(91));break;default:o!==i&&fd(e,t,s,o,r,i)}return void _t(e,p,h);case"option":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&("selected"===g?e.selected=!1:fd(e,t,g,null,r,p));for(c in r)p=r[c],h=n[c],!r.hasOwnProperty(c)||p===h||null==p&&null==h||("selected"===c?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:fd(e,t,c,p,r,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m)&&fd(e,t,m,null,r,p);for(u in r)if(p=r[u],h=n[u],r.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(a(137,t));break;default:fd(e,t,u,p,r,h)}return;default:if(Tt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&pd(e,t,y,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||pd(e,t,d,p,r,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&fd(e,t,v,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||fd(e,t,f,p,r,h)}(r,e.type,n,t),r[qe]=t}catch(t){Eu(e,e.return,t)}}function Cl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Pd(e.type)||4===e.tag}function Tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Cl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Pd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Pl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=At));else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Pl(e,t,n),e=e.sibling;null!==e;)Pl(e,t,n),e=e.sibling}function Ol(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Ol(e,t,n),e=e.sibling;null!==e;)Ol(e,t,n),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);hd(t,r,n),t[Ue]=e,t[qe]=n}catch(t){Eu(e,e.return,t)}}var Al=!1,Il=!1,Dl=!1,Ll="function"==typeof WeakSet?WeakSet:Set,Nl=null;function $l(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Jl(e,n),4&r&&vl(5,n);break;case 1:if(Jl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){Eu(n,n.return,e)}else{var o=Es(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Eu(n,n.return,e)}}64&r&&wl(n),512&r&&xl(n,n.return);break;case 3:if(Jl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Oi(e,t)}catch(e){Eu(n,n.return,e)}}break;case 27:null===t&&4&r&&Rl(n);case 26:case 5:Jl(e,n),null===t&&4&r&&Sl(n),512&r&&xl(n,n.return);break;case 12:Jl(e,n);break;case 31:Jl(e,n),4&r&&zl(e,n);break;case 13:Jl(e,n),4&r&&Bl(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Ou.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Al)){t=null!==t&&null!==t.memoizedState||Il,o=Al;var i=Il;Al=r,(Il=t)&&!i?Xl(e,n,!!(8772&n.subtreeFlags)):Jl(e,n),Al=o,Il=i}break;case 30:break;default:Jl(e,n)}}function Ml(e){var t=e.alternate;null!==t&&(e.alternate=null,Ml(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ge(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var jl=null,Fl=!1;function Ul(e,t,n){for(n=n.child;null!==n;)ql(e,t,n),n=n.sibling}function ql(e,t,n){if(ye&&"function"==typeof ye.onCommitFiberUnmount)try{ye.onCommitFiberUnmount(me,n)}catch(e){}switch(n.tag){case 26:Il||kl(n,t),Ul(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Il||kl(n,t);var r=jl,o=Fl;Pd(n.type)&&(jl=n.stateNode,Fl=!1),Ul(e,t,n),Ud(n.stateNode),jl=r,Fl=o;break;case 5:Il||kl(n,t);case 6:if(r=jl,o=Fl,jl=null,Ul(e,t,n),Fl=o,null!==(jl=r))if(Fl)try{(9===jl.nodeType?jl.body:"HTML"===jl.nodeName?jl.ownerDocument.body:jl).removeChild(n.stateNode)}catch(e){Eu(n,t,e)}else try{jl.removeChild(n.stateNode)}catch(e){Eu(n,t,e)}break;case 18:null!==jl&&(Fl?(Od(9===(e=jl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Wf(e)):Od(jl,n.stateNode));break;case 4:r=jl,o=Fl,jl=n.stateNode.containerInfo,Fl=!0,Ul(e,t,n),jl=r,Fl=o;break;case 0:case 11:case 14:case 15:bl(2,n,t),Il||bl(4,n,t),Ul(e,t,n);break;case 1:Il||(kl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&_l(n,t,r)),Ul(e,t,n);break;case 21:Ul(e,t,n);break;case 22:Il=(r=Il)||null!==n.memoizedState,Ul(e,t,n),Il=r;break;default:Ul(e,t,n)}}function zl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Wf(e)}catch(e){Eu(t,t.return,e)}}}function Bl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Wf(e)}catch(e){Eu(t,t.return,e)}}function Hl(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ll),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ll),t;default:throw Error(a(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ru.bind(null,e,t);t.then(r,r)}})}function Wl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Pd(l.type)){jl=l.stateNode,Fl=!1;break e}break;case 5:jl=l.stateNode,Fl=!1;break e;case 3:case 4:jl=l.stateNode.containerInfo,Fl=!0;break e}l=l.return}if(null===jl)throw Error(a(160));ql(i,s,o),jl=null,Fl=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Kl(t,e),t=t.sibling}var Vl=null;function Kl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Wl(t,e),Gl(e),4&r&&(bl(3,e,e.return),vl(3,e),bl(5,e,e.return));break;case 1:Wl(t,e),Gl(e),512&r&&(Il||null===n||kl(n,n.return)),64&r&&Al&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var o=Vl;if(Wl(t,e),Gl(e),512&r&&(Il||null===n||kl(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(i=o.getElementsByTagName("title")[0])||i[Ke]||i[Ue]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),hd(i,r,n),i[Ue]=e,Ze(i),r=i;break e;case"link":var s=of("link","href",o).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((i=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}hd(i=o.createElement(r),r,n),o.head.appendChild(i);break;case"meta":if(s=of("meta","content",o).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((i=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}hd(i=o.createElement(r),r,n),o.head.appendChild(i);break;default:throw Error(a(468,r))}i[Ue]=e,Ze(i),r=i}e.stateNode=r}else af(o,e.type,e.stateNode);else e.stateNode=Zd(o,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?af(o,e.type,e.stateNode):Zd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&El(e,e.memoizedProps,n.memoizedProps)}break;case 27:Wl(t,e),Gl(e),512&r&&(Il||null===n||kl(n,n.return)),null!==n&&4&r&&El(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Wl(t,e),Gl(e),512&r&&(Il||null===n||kl(n,n.return)),32&e.flags){o=e.stateNode;try{kt(o,"")}catch(t){Eu(e,e.return,t)}}4&r&&null!=e.stateNode&&El(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(Dl=!0);break;case 6:if(Wl(t,e),Gl(e),4&r){if(null===e.stateNode)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Eu(e,e.return,t)}}break;case 3:if(rf=null,o=Vl,Vl=Bd(t.containerInfo),Wl(t,e),Vl=o,Gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wf(t.containerInfo)}catch(t){Eu(e,e.return,t)}Dl&&(Dl=!1,Yl(e));break;case 4:r=Vl,Vl=Bd(e.stateNode.containerInfo),Wl(t,e),Gl(e),Vl=r;break;case 12:default:Wl(t,e),Gl(e);break;case 31:case 19:Wl(t,e),Gl(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Hl(e,r));break;case 13:Wl(t,e),Gl(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Lc=se()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,Hl(e,r));break;case 22:o=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Al,d=Il;if(Al=u||o,Il=d||c,Wl(t,e),Il=d,Al=u,Gl(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||c||Al||Il||Ql(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,o)"function"==typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var f=c.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){Eu(c,c.return,e)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=o?"":c.memoizedProps}catch(e){Eu(c,c.return,e)}}}else if(18===t.tag){if(null===n){c=t;try{var h=c.stateNode;o?Rd(h,!0):Rd(c.stateNode,!1)}catch(e){Eu(c,c.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,Hl(e,n));case 30:case 21:}}function Gl(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Cl(r)){n=r;break}r=r.return}if(null==n)throw Error(a(160));switch(n.tag){case 27:var o=n.stateNode;Ol(e,Tl(e),o);break;case 5:var i=n.stateNode;32&n.flags&&(kt(i,""),n.flags&=-33),Ol(e,Tl(e),i);break;case 3:case 4:var s=n.stateNode.containerInfo;Pl(e,Tl(e),s);break;default:throw Error(a(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Yl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Yl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Jl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)$l(e,t.alternate,t),t=t.sibling}function Ql(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Ql(t);break;case 1:kl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&_l(t,t.return,n),Ql(t);break;case 27:Ud(t.stateNode);case 26:case 5:kl(t,t.return),Ql(t);break;case 22:null===t.memoizedState&&Ql(t);break;default:Ql(t)}e=e.sibling}}function Xl(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(o,i,n),vl(4,i);break;case 1:if(Xl(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){Eu(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Pi(l[o],s)}catch(e){Eu(r,r.return,e)}}n&&64&a&&wl(i),xl(i,i.return);break;case 27:Rl(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&Sl(i),xl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&zl(o,i);break;case 13:Xl(o,i,n),n&&4&a&&Bl(o,i);break;case 22:null===i.memoizedState&&Xl(o,i,n),xl(i,i.return);break;case 30:break;default:Xl(o,i,n)}t=t.sibling}}function Zl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bo(n))}function ec(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function tc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nc(e,t,n,r),t=t.sibling}function nc(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tc(e,t,n,r),2048&o&&vl(9,t);break;case 1:case 31:case 13:default:tc(e,t,n,r);break;case 3:tc(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){tc(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){Eu(t,t.return,e)}}else tc(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?tc(e,t,n,r):oc(e,t):2&i._visibility?tc(e,t,n,r):(i._visibility|=2,rc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Zl(a,t);break;case 24:tc(e,t,n,r),2048&o&&ec(t.alternate,t)}}function rc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:rc(i,a,s,l,o),vl(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?rc(i,a,s,l,o):oc(i,a):(u._visibility|=2,rc(i,a,s,l,o)),o&&2048&c&&Zl(a.alternate,a);break;case 24:rc(i,a,s,l,o),o&&2048&c&&ec(a.alternate,a);break;default:rc(i,a,s,l,o)}t=t.sibling}}function oc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:oc(n,r),2048&o&&Zl(r.alternate,r);break;case 24:oc(n,r),2048&o&&ec(r.alternate,r);break;default:oc(n,r)}t=t.sibling}}var ic=8192;function ac(e,t,n){if(e.subtreeFlags&ic)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&ic&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Gd(r.href),i=t.querySelector(Yd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=cf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void Ze(i);i=t.ownerDocument||t,r=Jd(r),(o=qd.get(o))&&tf(r,o),Ze(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),hd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=cf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Vl,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=Vl;Vl=Bd(e.stateNode.containerInfo),ac(e,t,n),Vl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ic,ic=16777216,ac(e,t,n),ic=r):ac(e,t,n))}}function lc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Nl=r,fc(r,e)}lc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&bl(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Nl=r,fc(r,e)}lc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:bl(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function fc(e,t){for(;null!==Nl;){var n=Nl;switch(n.tag){case 0:case 11:case 15:bl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Nl=r;else e:for(n=e;null!==Nl;){var o=(r=Nl).sibling,i=r.return;if(Ml(r),r===n){Nl=null;break e}if(null!==o){o.return=i,Nl=o;break e}Nl=i}}}var pc={getCacheForType:function(e){var t=No(qo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return No(qo).controller.signal}},hc="function"==typeof WeakMap?WeakMap:Map,gc=0,mc=null,yc=null,vc=0,bc=0,wc=null,_c=!1,xc=!1,kc=!1,Sc=0,Ec=0,Cc=0,Tc=0,Pc=0,Oc=0,Rc=0,Ac=null,Ic=null,Dc=!1,Lc=0,Nc=0,$c=1/0,Mc=null,jc=null,Fc=0,Uc=null,qc=null,zc=0,Bc=0,Hc=null,Wc=null,Vc=0,Kc=null;function Gc(){return 2&gc&&0!==vc?vc&-vc:null!==D.T?Hu():Me()}function Yc(){if(0===Oc)if(536870912&vc&&!ho)Oc=536870912;else{var e=ke;!(3932160&(ke<<=1))&&(ke=262144),Oc=e}return null!==(e=Ni.current)&&(e.flags|=32),Oc}function Jc(e,t,n){(e!==mc||2!==bc&&9!==bc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,vc,Oc,!1)),Ae(e,n),2&gc&&e===mc||(e===mc&&(!(2&gc)&&(Tc|=n),4===Ec&&eu(e,vc,Oc,!1)),Mu(e))}function Qc(e,t,n){if(6&gc)throw Error(a(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Te(e,t),o=r?function(e,t){var n=gc;gc|=2;var r=au(),o=su();mc!==e||vc!==t?(Mc=null,$c=se()+500,ru(e,t)):xc=Te(e,t);e:for(;;)try{if(0!==bc&&null!==yc){t=yc;var i=wc;t:switch(bc){case 1:bc=0,wc=null,hu(e,t,i,1);break;case 2:case 9:if(oi(i)){bc=0,wc=null,pu(t);break}t=function(){2!==bc&&9!==bc||mc!==e||(bc=7),Mu(e)},i.then(t,t);break e;case 3:bc=7;break e;case 4:bc=5;break e;case 7:oi(i)?(bc=0,wc=null,pu(t)):(bc=0,wc=null,hu(e,t,i,7));break;case 5:var s=null;switch(yc.tag){case 26:s=yc.memoizedState;case 5:case 27:var l=yc;if(s?sf(s):l.stateNode.complete){bc=0,wc=null;var c=l.sibling;if(null!==c)yc=c;else{var u=l.return;null!==u?(yc=u,gu(u)):yc=null}break t}}bc=0,wc=null,hu(e,t,i,5);break;case 6:bc=0,wc=null,hu(e,t,i,6);break;case 8:nu(),Ec=6;break e;default:throw Error(a(462))}}du();break}catch(t){ou(e,t)}return To=Co=null,D.H=r,D.A=o,gc=n,null!==yc?0:(mc=null,vc=0,Ir(),Ec)}(e,t):cu(e,t,!0),i=r;;){if(0===o){xc&&!r&&eu(e,t,0,!1);break}if(n=e.current.alternate,!i||Zc(n)){if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=Ac;var c=l.current.memoizedState.isDehydrated;if(c&&(ru(l,s).flags|=256),2!==(s=cu(l,s,!1))){if(kc&&!c){l.errorRecoveryDisabledLanes|=i,Tc|=i,o=4;break e}i=Ic,Ic=o,null!==i&&(null===Ic?Ic=i:Ic.push.apply(Ic,i))}o=s}if(i=!1,2!==o)continue}}if(1===o){ru(e,0),eu(e,t,0,!0);break}e:{switch(r=e,i=o){case 0:case 1:throw Error(a(345));case 4:if((4194048&t)!==t)break;case 6:eu(r,t,Oc,!_c);break e;case 2:Ic=null;break;case 3:case 5:break;default:throw Error(a(329))}if((62914560&t)===t&&10<(o=Lc+300-se())){if(eu(r,t,Oc,!_c),0!==Ce(r,0,!0))break e;zc=t,r.timeoutHandle=kd(Xc.bind(null,r,n,Ic,Mc,Dc,t,Oc,Tc,Rc,_c,i,"Throttled",-0,0),o)}else Xc(r,n,Ic,Mc,Dc,t,Oc,Tc,Rc,_c,i,null,-0,0)}break}o=cu(e,t,!1),i=!1}Mu(e)}function Xc(e,t,n,r,o,i,a,s,l,c,u,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){sc(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:At});var h=(62914560&i)===i?Lc-se():(4194048&i)===i?Nc-se():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&df(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&df(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lf&&(lf=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&gd(a)){for(a=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&gd(d)&&(a+=u*((l=l.responseEnd)<s?1:(s-c)/(l-c)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&df(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return zc=i,e.cancelPendingCommit=h(yu.bind(null,e,t,i,n,r,o,a,s,l,u,d,null,f,p)),void eu(e,i,a,!c)}yu(e,t,i,n,r,o,a,s,l)}function Zc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!er(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eu(e,t,n,r){t&=~Pc,t&=~Tc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-be(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Ie(e,n,t)}function tu(){return!!(6&gc)||(ju(0,!1),!1)}function nu(){if(null!==yc){if(0===bc)var e=yc.return;else To=Co=null,ca(e=yc),ui=null,di=0,e=yc;for(;null!==e;)yl(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),zc=0,nu(),mc=e,yc=n=zr(e.current,null),vc=t,bc=0,wc=null,_c=!1,xc=Te(e,t),kc=!1,Rc=Oc=Pc=Tc=Cc=Ec=0,Ic=Ac=null,Dc=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-be(r),i=1<<o;t|=e[o],r&=~i}return Sc=t,Ir(),n}function ou(e,t){Wi=null,D.H=ys,t===ei||t===ni?(t=li(),bc=3):t===ti?(t=li(),bc=4):bc=t===Ls?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,wc=t,null===yc&&(Ec=1,Os(e,Jr(t,e.current)))}function iu(){var e=Ni.current;return null===e||((4194048&vc)===vc?null===$i:!!((62914560&vc)===vc||536870912&vc)&&e===$i)}function au(){var e=D.H;return D.H=ys,null===e?ys:e}function su(){var e=D.A;return D.A=pc,e}function lu(){Ec=4,_c||(4194048&vc)!==vc&&null!==Ni.current||(xc=!0),!(134217727&Cc)&&!(134217727&Tc)||null===mc||eu(mc,vc,Oc,!1)}function cu(e,t,n){var r=gc;gc|=2;var o=au(),i=su();mc===e&&vc===t||(Mc=null,ru(e,t)),t=!1;var a=Ec;e:for(;;)try{if(0!==bc&&null!==yc){var s=yc,l=wc;switch(bc){case 8:nu(),a=6;break e;case 3:case 2:case 9:case 6:null===Ni.current&&(t=!0);var c=bc;if(bc=0,wc=null,hu(e,s,l,c),n&&xc){a=0;break e}break;default:c=bc,bc=0,wc=null,hu(e,s,l,c)}}uu(),a=Ec;break}catch(t){ou(e,t)}return t&&e.shellSuspendCounter++,To=Co=null,gc=r,D.H=o,D.A=i,null===yc&&(mc=null,vc=0,Ir()),a}function uu(){for(;null!==yc;)fu(yc)}function du(){for(;null!==yc&&!ie();)fu(yc)}function fu(e){var t=ll(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ks(n,t,t.pendingProps,t.type,void 0,vc);break;case 11:t=Ks(n,t,t.pendingProps,t.type.render,t.ref,vc);break;case 5:ca(t);default:yl(n,t),t=ll(n,t=yc=Br(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?gu(e):yc=t}function hu(e,t,n,r){To=Co=null,ca(t),ui=null,di=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Io(t,n,o,!0),null!==(n=Ni.current)){switch(n.tag){case 31:case 13:return null===$i?lu():null===n.alternate&&0===Ec&&(Ec=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Cu(e,r,o)),!1;case 22:return n.flags|=65536,r===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Cu(e,r,o)),!1}throw Error(a(435,n.tag))}return Cu(e,r,o),lu(),!1}if(ho)return null!==(t=Ni.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==yo&&So(Jr(e=Error(a(422),{cause:r}),n))):(r!==yo&&So(Jr(t=Error(a(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=Jr(r,n),Si(e,o=As(e.stateNode,r,o)),4!==Ec&&(Ec=2)),!1;var i=Error(a(520),{cause:r});if(i=Jr(i,n),null===Ac?Ac=[i]:Ac.push(i),4!==Ec&&(Ec=2),null===t)return!0;r=Jr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,Si(n,e=As(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===i||"function"!=typeof i.componentDidCatch||null!==jc&&jc.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Ds(o=Is(o),e,n,r),Si(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,vc))return Ec=1,Os(e,Jr(n,e.current)),void(yc=null)}catch(t){if(null!==o)throw yc=o,t;return Ec=1,Os(e,Jr(n,e.current)),void(yc=null)}32768&t.flags?(ho||1===r?e=!0:xc||536870912&vc?e=!1:(_c=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=Ni.current)&&13===r.tag&&(r.flags|=16384)),mu(t,e)):gu(t)}function gu(e){var t=e;do{if(32768&t.flags)return void mu(t,_c);e=t.return;var n=gl(t.alternate,t,Sc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Ec&&(Ec=5)}function mu(e,t){do{var n=ml(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Ec=6,yc=null}function yu(e,t,n,r,o,i,s,l,c){e.cancelPendingCommit=null;do{xu()}while(0!==Fc);if(6&gc)throw Error(a(327));if(null!==t){if(t===e.current)throw Error(a(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-be(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(null!==f)for(c[u]=null,u=0;u<f.length;u++){var p=f[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ie(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,i|=Ar,s,l,c),e===mc&&(yc=mc=null,vc=0),qc=t,Uc=e,zc=n,Bc=i,Hc=o,Wc=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,re(de,function(){return ku(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=D.T,D.T=null,o=L.p,L.p=2,s=gc,gc|=4;try{!function(e,t){if(e=e.containerInfo,md=wf,ar(e=ir(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==i||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=s),p===i&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},wf=!1,Nl=t;null!==Nl;)if(e=(t=Nl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Nl=e;else for(;null!==Nl;){switch(i=(t=Nl).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(o=e[n]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var g=Es(n.type,o);e=r.getSnapshotBeforeUpdate(g,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Eu(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Ad(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ad(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(a(163))}if(null!==(e=t.sibling)){e.return=t.return,Nl=e;break}Nl=t.return}}(e,t)}finally{gc=s,L.p=o,D.T=r}}Fc=1,vu(),bu(),wu()}}function vu(){if(1===Fc){Fc=0;var e=Uc,t=qc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=D.T,D.T=null;var r=L.p;L.p=2;var o=gc;gc|=4;try{Kl(t,e);var i=yd,a=ir(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&or(s.ownerDocument.documentElement,s)){if(null!==l&&ar(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,g=Math.min(l.start,h),m=void 0===l.end?g:Math.min(l.end,h);!p.extend&&g>m&&(a=m,m=g,g=a);var y=rr(s,g),v=rr(s,m);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),g>m?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}wf=!!md,yd=md=null}finally{gc=o,L.p=r,D.T=n}}e.current=t,Fc=2}}function bu(){if(2===Fc){Fc=0;var e=Uc,t=qc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=D.T,D.T=null;var r=L.p;L.p=2;var o=gc;gc|=4;try{$l(e,t.alternate,t)}finally{gc=o,L.p=r,D.T=n}}Fc=3}}function wu(){if(4===Fc||3===Fc){Fc=0,ae();var e=Uc,t=qc,n=zc,r=Wc;10256&t.subtreeFlags||10256&t.flags?Fc=5:(Fc=0,qc=Uc=null,_u(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(jc=null),$e(n),t=t.stateNode,ye&&"function"==typeof ye.onCommitFiberRoot)try{ye.onCommitFiberRoot(me,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=D.T,o=L.p,L.p=2,D.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{D.T=t,L.p=o}}3&zc&&xu(),Mu(e),o=e.pendingLanes,261930&n&&42&o?e===Kc?Vc++:(Vc=0,Kc=e):Vc=0,ju(0,!1)}}function _u(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t))}function xu(){return vu(),bu(),wu(),ku()}function ku(){if(5!==Fc)return!1;var e=Uc,t=Bc;Bc=0;var n=$e(zc),r=D.T,o=L.p;try{L.p=32>n?32:n,D.T=null,n=Hc,Hc=null;var i=Uc,s=zc;if(Fc=0,qc=Uc=null,zc=0,6&gc)throw Error(a(331));var l=gc;if(gc|=4,uc(i.current),nc(i,i.current,s,n),gc=l,ju(0,!1),ye&&"function"==typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(me,i)}catch(e){}return!0}finally{L.p=o,D.T=r,_u(e,t)}}function Su(e,t,n){t=Jr(n,t),null!==(e=xi(e,t=As(e.stateNode,t,2),2))&&(Ae(e,2),Mu(e))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===jc||!jc.has(r))){e=Jr(n,e),null!==(r=xi(t,n=Is(2),2))&&(Ds(n,r,t,e),Ae(r,2),Mu(r));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(kc=!0,o.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,mc===e&&(vc&n)===n&&(4===Ec||3===Ec&&(62914560&vc)===vc&&300>se()-Lc?!(2&gc)&&ru(e,0):Pc|=n,Rc===vc&&(Rc=0)),Mu(e)}function Pu(e,t){0===t&&(t=Oe()),null!==(e=Nr(e,t))&&(Ae(e,t),Mu(e))}function Ou(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Ru(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}null!==r&&r.delete(t),Pu(e,n)}var Au=null,Iu=null,Du=!1,Lu=!1,Nu=!1,$u=0;function Mu(e){e!==Iu&&null===e.next&&(null===Iu?Au=Iu=e:Iu=Iu.next=e),Lu=!0,Du||(Du=!0,Cd(function(){6&gc?re(ce,Fu):Uu()}))}function ju(e,t){if(!Nu&&Lu){Nu=!0;do{for(var n=!1,r=Au;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-be(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bu(r,i))}else i=vc,!(3&(i=Ce(r,r===mc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Te(r,i)||(n=!0,Bu(r,i));r=r.next}}while(n);Nu=!1}}function Fu(){Uu()}function Uu(){Lu=Du=!1;var e,t=0;0!==$u&&((e=window.event)&&"popstate"===e.type?e!==xd&&(xd=e,1):(xd=null,0))&&(t=$u);for(var n=se(),r=null,o=Au;null!==o;){var i=o.next,a=qu(o,n);0===a?(o.next=null,null===r?Au=i:r.next=i,null===i&&(Iu=r)):(r=o,(0!==t||3&a)&&(Lu=!0)),o=i}0!==Fc&&5!==Fc||ju(t,!1),0!==$u&&($u=0)}function qu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-be(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=Pe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=vc,n=Ce(e,e===(t=mc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===bc||9===bc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Te(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),$e(n)){case 2:case 8:n=ue;break;case 32:default:n=de;break;case 268435456:n=pe}return r=zu.bind(null,e),n=re(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function zu(e,t){if(0!==Fc&&5!==Fc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=vc;return 0===(r=Ce(e,e===mc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Qc(e,r,t),qu(e,se()),null!=e.callbackNode&&e.callbackNode===n?zu.bind(null,e):null)}function Bu(e,t){if(xu())return null;Qc(e,t,!0)}function Hu(){if(0===$u){var e=Vo;0===e&&(e=xe,!(261888&(xe<<=1))&&(xe=256)),$u=e}return $u}function Wu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Rt(""+e)}function Vu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Ku=0;Ku<Cr.length;Ku++){var Gu=Cr[Ku];Tr(Gu.toLowerCase(),"on"+(Gu[0].toUpperCase()+Gu.slice(1)))}Tr(vr,"onAnimationEnd"),Tr(br,"onAnimationIteration"),Tr(wr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(_r,"onTransitionRun"),Tr(xr,"onTransitionStart"),Tr(kr,"onTransitionCancel"),Tr(Sr,"onTransitionEnd"),rt("onMouseEnter",["mouseout","mouseover"]),rt("onMouseLeave",["mouseout","mouseover"]),rt("onPointerEnter",["pointerout","pointerover"]),rt("onPointerLeave",["pointerout","pointerover"]),nt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nt("onBeforeInput",["compositionend","keypress","textInput","paste"]),nt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ju=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yu));function Qu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(e){Pr(e)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(e){Pr(e)}o.currentTarget=null,i=l}}}}function Xu(e,t){var n=t[Be];void 0===n&&(n=t[Be]=new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Zu(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,et.forEach(function(t){"selectionchange"!==t&&(Ju.has(t)||Zu(t,!1,e),Zu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Zu("selectionchange",!1,t))}}function nd(e,t,n,r){switch(Tf(t)){case 2:var o=_f;break;case 8:o=xf;break;default:o=kf}n=o.bind(null,t,n,e),o=void 0,!zt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==l;){if(null===(a=Ye(l)))return;if(5===(c=a.tag)||6===c||26===c||27===c){r=i=a;continue e}l=l.parentNode}}r=r.return}jt(function(){var r=i,o=Dt(n),a=[];e:{var l=Er.get(e);if(void 0!==l){var c=on,u=e;switch(e){case"keypress":if(0===Gt(n))break e;case"keydown":case"keyup":c=wn;break;case"focusin":u="focus",c=dn;break;case"focusout":u="blur",c=dn;break;case"beforeblur":case"afterblur":c=dn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=un;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=xn;break;case vr:case br:case wr:c=fn;break;case Sr:c=kn;break;case"scroll":case"scrollend":c=sn;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=_n;break;case"toggle":case"beforetoggle":c=En}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,g=r;null!==g;){var m=g;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=Ft(g,p))&&d.push(od(g,m,h)),f)break;g=g.return}0<d.length&&(l=new c(l,u,null,n,o),a.push({event:l,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===It||!(u=n.relatedTarget||n.fromElement)||!Ye(u)&&!u[ze])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Ye(u):null)&&(f=s(u),d=u.tag,u!==f||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,m="onMouseLeave",p="onMouseEnter",g="mouse","pointerout"!==e&&"pointerover"!==e||(d=_n,m="onPointerLeave",p="onPointerEnter",g="pointer"),f=null==c?l:Qe(c),h=null==u?l:Qe(u),(l=new d(m,g+"leave",c,n,o)).target=f,l.relatedTarget=h,m=null,Ye(o)===r&&((d=new d(p,g+"enter",u,n,o)).target=h,d.relatedTarget=f,m=d),f=m,c&&u)e:{for(d=ad,g=u,h=0,m=p=c;m;m=d(m))h++;m=0;for(var y=g;y;y=d(y))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)g=d(g),m--;for(;h--;){if(p===g||null!==g&&p===g.alternate){d=p;break e}p=d(p),g=d(g)}d=null}else d=null;null!==c&&sd(a,l,c,d,!1),null!==u&&null!==f&&sd(a,f,u,d,!0)}if("select"===(c=(l=r?Qe(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var v=Bn;else if(Mn(l))if(Hn)v=Zn;else{v=Qn;var b=Jn}else!(c=l.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Tt(r.elementType)&&(v=Bn):v=Xn;switch(v&&(v=v(e,r))?jn(a,v,n,o):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&bt(l,"number",l.value)),b=r?Qe(r):window,e){case"focusin":(Mn(b)||"true"===b.contentEditable)&&(lr=b,cr=r,ur=null);break;case"focusout":ur=cr=lr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,fr(a,n,o);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":fr(a,n,o)}var w;if(Tn)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Nn?Dn(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(Rn&&"ko"!==n.locale&&(Nn||"onCompositionStart"!==_?"onCompositionEnd"===_&&Nn&&(w=Kt()):(Wt="value"in(Ht=o)?Ht.value:Ht.textContent,Nn=!0)),0<(b=id(r,_)).length&&(_=new hn(_,e,null,n,o),a.push({event:_,listeners:b}),(w||null!==(w=Ln(n)))&&(_.data=w))),(w=On?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(In=!0,An);case"textInput":return(e=t.data)===An&&In?null:e;default:return null}}(e,n):function(e,t){if(Nn)return"compositionend"===e||!Tn&&Dn(e,t)?(e=Kt(),Vt=Wt=Ht=null,Nn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(_=id(r,"onBeforeInput")).length&&(b=new hn("onBeforeInput","beforeinput",null,n,o),a.push({event:b,listeners:_}),b.data=w),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Wu((o[qe]||null).action),a=r.submitter;a&&null!==(t=(t=a[qe]||null)?Wu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new on("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==$u){var e=a?Vu(o,a):new FormData(o);rs(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(s.preventDefault(),e=a?Vu(o,a):new FormData(o),rs(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(a,e,r,n,o)}Qu(a,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function id(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Ft(e,n))&&r.unshift(od(e,o,i)),null!=(o=Ft(e,t))&&r.push(od(e,o,i))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,o?null!=(c=Ft(n,i))&&a.unshift(od(n,c,l)):o||null!=(c=Ft(n,i))&&a.push(od(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ld=/\r\n?/g,cd=/\u0000|\uFFFD/g;function ud(e){return("string"==typeof e?e:""+e).replace(ld,"\n").replace(cd,"")}function dd(e,t){return t=ud(t),ud(e)===t}function fd(e,t,n,r,o,i){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||kt(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&kt(e,""+r);break;case"className":lt(e,"class",r);break;case"tabIndex":lt(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":lt(e,n,r);break;case"style":Ct(e,r,i);break;case"data":if("object"!==t){lt(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Rt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&fd(e,t,"name",o.name,o,null),fd(e,t,"formEncType",o.formEncType,o,null),fd(e,t,"formMethod",o.formMethod,o,null),fd(e,t,"formTarget",o.formTarget,o,null)):(fd(e,t,"encType",o.encType,o,null),fd(e,t,"method",o.method,o,null),fd(e,t,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Rt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=At);break;case"onScroll":null!=r&&Xu("scroll",e);break;case"onScrollEnd":null!=r&&Xu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Rt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Xu("beforetoggle",e),Xu("toggle",e),st(e,"popover",r);break;case"xlinkActuate":ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ct(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ct(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ct(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ct(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":st(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&st(e,n=Pt.get(n)||n,r)}}function pd(e,t,n,r,o,i){switch(n){case"style":Ct(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"children":"string"==typeof r?kt(e,r):("number"==typeof r||"bigint"==typeof r)&&kt(e,""+r);break;case"onScroll":null!=r&&Xu("scroll",e);break;case"onScrollEnd":null!=r&&Xu("scrollend",e);break;case"onClick":null!=r&&(e.onclick=At);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:tt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(i=null!=(i=e[qe]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):st(e,n,r):("function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xu("error",e),Xu("load",e);var r,o=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:fd(e,t,r,s,n,null)}}return i&&fd(e,t,"srcSet",n.srcSet,n,null),void(o&&fd(e,t,"src",n.src,n,null));case"input":Xu("invalid",e);var l=r=s=i=null,c=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(a(137,t));break;default:fd(e,t,o,d,n,null)}}return void vt(e,r,l,c,u,s,i,!1);case"select":for(i in Xu("invalid",e),o=s=r=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:fd(e,t,i,l,n,null)}return t=r,n=s,e.multiple=!!o,void(null!=t?wt(e,!!o,t,!1):null!=n&&wt(e,!!o,n,!0));case"textarea":for(s in Xu("invalid",e),r=i=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":i=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(a(91));break;default:fd(e,t,s,l,n,null)}return void xt(e,o,i,r);case"option":for(c in n)n.hasOwnProperty(c)&&null!=(o=n[c])&&("selected"===c?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:fd(e,t,c,o,n,null));return;case"dialog":Xu("beforetoggle",e),Xu("toggle",e),Xu("cancel",e),Xu("close",e);break;case"iframe":case"object":Xu("load",e);break;case"video":case"audio":for(o=0;o<Yu.length;o++)Xu(Yu[o],e);break;case"image":Xu("error",e),Xu("load",e);break;case"details":Xu("toggle",e);break;case"embed":case"source":case"link":Xu("error",e),Xu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:fd(e,t,u,o,n,null)}return;default:if(Tt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d])&&pd(e,t,d,o,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(o=n[l])&&fd(e,t,l,o,n,null)}function gd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var md=null,yd=null;function vd(e){return 9===e.nodeType?e:e.ownerDocument}function bd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function _d(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var xd=null,kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,Ed="function"==typeof Promise?Promise:void 0,Cd="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ed?function(e){return Ed.resolve(null).then(e).catch(Td)}:kd;function Td(e){setTimeout(function(){throw e})}function Pd(e){return"head"===e}function Od(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Wf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Ud(e.ownerDocument.documentElement);else if("head"===n){Ud(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Ke]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&Ud(e.ownerDocument.body);n=o}while(n);Wf(t)}function Rd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Ad(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ad(n),Ge(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Id(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Nd(e.nextSibling)))return null}return e}function Dd(e){return"$?"===e.data||"$~"===e.data}function Ld(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Nd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var $d=null;function Md(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Nd(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function jd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Fd(e,t,n){switch(t=vd(n),e){case"html":if(!(e=t.documentElement))throw Error(a(452));return e;case"head":if(!(e=t.head))throw Error(a(453));return e;case"body":if(!(e=t.body))throw Error(a(454));return e;default:throw Error(a(451))}}function Ud(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ge(e)}var qd=new Map,zd=new Set;function Bd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Hd=L.d;L.d={f:function(){var e=Hd.f(),t=tu();return e||t},r:function(e){var t=Je(e);null!==t&&5===t.tag&&"form"===t.type?is(t):Hd.r(e)},D:function(e){Hd.D(e),Vd("dns-prefetch",e,null)},C:function(e,t){Hd.C(e,t),Vd("preconnect",e,t)},L:function(e,t,n){Hd.L(e,t,n);var r=Wd;if(r&&e&&t){var o='link[rel="preload"][as="'+mt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+mt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+mt(n.imageSizes)+'"]')):o+='[href="'+mt(e)+'"]';var i=o;switch(t){case"style":i=Gd(e);break;case"script":i=Qd(e)}qd.has(i)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),qd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Yd(i))||"script"===t&&r.querySelector(Xd(i))||(hd(t=r.createElement("link"),"link",e),Ze(t),r.head.appendChild(t)))}},m:function(e,t){Hd.m(e,t);var n=Wd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+mt(r)+'"][href="'+mt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Qd(e)}if(!qd.has(i)&&(e=f({rel:"modulepreload",href:e},t),qd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xd(i)))return}hd(r=n.createElement("link"),"link",e),Ze(r),n.head.appendChild(r)}}},X:function(e,t){Hd.X(e,t);var n=Wd;if(n&&e){var r=Xe(n).hoistableScripts,o=Qd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=f({src:e,async:!0},t),(t=qd.get(o))&&nf(e,t),Ze(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){Hd.S(e,t,n);var r=Wd;if(r&&e){var o=Xe(r).hoistableStyles,i=Gd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Yd(i)))s.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=qd.get(i))&&tf(e,n);var l=a=r.createElement("link");Ze(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ef(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){Hd.M(e,t);var n=Wd;if(n&&e){var r=Xe(n).hoistableScripts,o=Qd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=f({src:e,async:!0,type:"module"},t),(t=qd.get(o))&&nf(e,t),Ze(i=n.createElement("script")),hd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Wd="undefined"==typeof document?null:document;function Vd(e,t,n){var r=Wd;if(r&&"string"==typeof t&&t){var o=mt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),zd.has(o)||(zd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(hd(t=r.createElement("link"),"link",e),Ze(t),r.head.appendChild(t)))}}function Kd(e,t,n,r){var o,i,s,l,c=(c=W.current)?Bd(c):null;if(!c)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(r=(n=Xe(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var u=Xe(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Yd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),qd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qd.set(e,n),u||(o=c,i=e,s=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=o.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),hd(i,"link",s),Ze(i),o.head.appendChild(i))))),t&&null===r)throw Error(a(528,""));return d}if(t&&null!==r)throw Error(a(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Qd(n),(r=(n=Xe(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Gd(e){return'href="'+mt(e)+'"'}function Yd(e){return'link[rel="stylesheet"]['+e+"]"}function Jd(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Qd(e){return'[src="'+mt(e)+'"]'}function Xd(e){return"script[async]"+e}function Zd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+mt(n.href)+'"]');if(r)return t.instance=r,Ze(r),r;var o=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ze(r=(e.ownerDocument||e).createElement("style")),hd(r,"style",o),ef(r,n.precedence,e),t.instance=r;case"stylesheet":o=Gd(n.href);var i=e.querySelector(Yd(o));if(i)return t.state.loading|=4,t.instance=i,Ze(i),i;r=Jd(n),(o=qd.get(o))&&tf(r,o),Ze(i=(e.ownerDocument||e).createElement("link"));var s=i;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),hd(i,"link",r),t.state.loading|=4,ef(i,n.precedence,e),t.instance=i;case"script":return i=Qd(n.src),(o=e.querySelector(Xd(i)))?(t.instance=o,Ze(o),o):(r=n,(o=qd.get(i))&&nf(r=f({},n),o),Ze(o=(e=e.ownerDocument||e).createElement("script")),hd(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(a(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,ef(r,n.precedence,e));return t.instance}function ef(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function tf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function nf(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rf=null;function of(e,t,n){if(null===rf){var r=new Map,o=rf=new Map;o.set(n,r)}else(r=(o=rf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ke]||i[Ue]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function af(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function sf(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var lf=0;function cf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)df(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var uf=null;function df(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,uf=new Map,t.forEach(ff,e),uf=null,cf.call(e))}function ff(e,t){if(!(4&t.state.loading)){var n=uf.get(e);if(n)var r=n.get(null);else{n=new Map,uf.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=cf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var pf={$$typeof:w,Provider:null,Consumer:null,_currentValue:N,_currentValue2:N,_threadCount:0};function hf(e,t,n,r,o,i,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function gf(e,t,n,r,o,i){o=function(e){return e?e=jr:jr}(o),null===r.context?r.context=o:r.pendingContext=o,(r=_i(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=xi(e,r,t))&&(Jc(n,0,t),ki(n,e,t))}function mf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function yf(e,t){mf(e,t),(e=e.alternate)&&mf(e,t)}function vf(e){if(13===e.tag||31===e.tag){var t=Nr(e,67108864);null!==t&&Jc(t,0,67108864),yf(e,67108864)}}function bf(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Nr(e,t=Ne(t));null!==n&&Jc(n,0,t),yf(e,t)}}var wf=!0;function _f(e,t,n,r){var o=D.T;D.T=null;var i=L.p;try{L.p=2,kf(e,t,n,r)}finally{L.p=i,D.T=o}}function xf(e,t,n,r){var o=D.T;D.T=null;var i=L.p;try{L.p=8,kf(e,t,n,r)}finally{L.p=i,D.T=o}}function kf(e,t,n,r){if(wf){var o=Sf(r);if(null===o)rd(e,t,r,Ef,n),$f(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Of=Mf(Of,e,t,n,r,o),!0;case"dragenter":return Rf=Mf(Rf,e,t,n,r,o),!0;case"mouseover":return Af=Mf(Af,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return If.set(i,Mf(If.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Df.set(i,Mf(Df.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if($f(e,r),4&t&&-1<Nf.indexOf(e)){for(;null!==o;){var i=Je(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Ee(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-be(a);s.entanglements[1]|=l,a&=~l}Mu(i),!(6&gc)&&($c=se()+500,ju(0,!1))}}break;case 31:case 13:null!==(s=Nr(i,2))&&Jc(s,0,2),tu(),yf(i,2)}if(null===(i=Sf(r))&&rd(e,t,r,Ef,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function Sf(e){return Cf(e=Dt(e))}var Ef=null;function Cf(e){if(Ef=null,null!==(e=Ye(e))){var t=s(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=l(t)))return e;e=null}else if(31===n){if(null!==(e=c(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ef=e,null}function Tf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(le()){case ce:return 2;case ue:return 8;case de:case fe:return 32;case pe:return 268435456;default:return 32}default:return 32}}var Pf=!1,Of=null,Rf=null,Af=null,If=new Map,Df=new Map,Lf=[],Nf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function $f(e,t){switch(e){case"focusin":case"focusout":Of=null;break;case"dragenter":case"dragleave":Rf=null;break;case"mouseover":case"mouseout":Af=null;break;case"pointerover":case"pointerout":If.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Df.delete(t.pointerId)}}function Mf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=Je(t))&&vf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jf(e){var t=Ye(e.target);if(null!==t){var n=s(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=l(n)))return e.blockedOn=t,void je(e.priority,function(){bf(n)})}else if(31===t){if(null!==(t=c(n)))return e.blockedOn=t,void je(e.priority,function(){bf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ff(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sf(e.nativeEvent);if(null!==n)return null!==(t=Je(n))&&vf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Uf(e,t,n){Ff(e)&&n.delete(t)}function qf(){Pf=!1,null!==Of&&Ff(Of)&&(Of=null),null!==Rf&&Ff(Rf)&&(Rf=null),null!==Af&&Ff(Af)&&(Af=null),If.forEach(Uf),Df.forEach(Uf)}function zf(e,t){e.blockedOn===t&&(e.blockedOn=null,Pf||(Pf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,qf)))}var Bf=null;function Hf(e){Bf!==e&&(Bf=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Bf===e&&(Bf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!=typeof r){if(null===Cf(r||n))continue;break}var i=Je(n);null!==i&&(e.splice(t,3),t-=3,rs(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Wf(e){function t(t){return zf(t,e)}null!==Of&&zf(Of,e),null!==Rf&&zf(Rf,e),null!==Af&&zf(Af,e),If.forEach(t),Df.forEach(t);for(var n=0;n<Lf.length;n++){var r=Lf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Lf.length&&null===(n=Lf[0]).blockedOn;)jf(n),null===n.blockedOn&&Lf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[qe]||null;if("function"==typeof i)a||Hf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[qe]||null)s=a.formAction;else if(null!==Cf(o))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Hf(n)}}}function Vf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Kf(e){this._internalRoot=e}function Gf(e){this._internalRoot=e}Gf.prototype.render=Kf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));gf(t.current,Gc(),e,t,null,null)},Gf.prototype.unmount=Kf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;gf(e.current,2,null,e,null,null),tu(),t[ze]=null}},Gf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Me();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lf.length&&0!==t&&t<Lf[n].priority;n++);Lf.splice(n,0,e),0===n&&jf(e)}};var Yf=o.version;if("19.2.0"!==Yf)throw Error(a(527,Yf,"19.2.0"));L.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=s(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return u(o),e;if(i===r)return u(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=i;break}if(c===r){l=!0,r=o,n=i;break}c=c.sibling}if(!l){for(c=i.child;c;){if(c===n){l=!0,n=i,r=o;break}if(c===r){l=!0,r=i,n=o;break}c=c.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?d(e):null)?null:e.stateNode};var Jf={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Qf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qf.isDisabled&&Qf.supportsFiber)try{me=Qf.inject(Jf),ye=Qf}catch(e){}}t.createRoot=function(e,t){if(!(n=e)||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(a(299));var n,r=!1,o="",i=Cs,s=Ts,l=Ps;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=function(e,t,n,r,o,i,a,s,l,c,u,d){return e=new hf(e,t,n,a,l,c,u,d,null),t=1,!0===i&&(t|=24),i=Ur(3,null,null,t),e.current=i,i.stateNode=e,(t=zo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:null,isDehydrated:n,cache:t},bi(i),e}(e,1,!1,0,0,r,o,0,i,s,l,Vf),e[ze]=t.current,td(e),new Kf(t)}}),tt=__webpack_require__.cw(function(e,t){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=et()}),nt=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=Jt(),o=(i(r),i(Xt()));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return r.Children.only(this.props.children)}}]),t}(r.Component);a.propTypes={children:o.default.element.isRequired,contentDidMount:o.default.func.isRequired,contentDidUpdate:o.default.func.isRequired},t.default=a}),rt=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContextProvider=t.useFrame=t.FrameContext=void 0;var n,r=(n=Jt())&&n.__esModule?n:{default:n},o=void 0,i=void 0;"undefined"!=typeof document&&(o=document),"undefined"!=typeof window&&(i=window);var a=t.FrameContext=r.default.createContext({document:o,window:i}),s=(t.useFrame=function(){return r.default.useContext(a)},a.Provider),l=a.Consumer;t.FrameContextProvider=s,t.FrameContextConsumer=l}),ot=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Frame=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=Jt(),i=u(o),a=u(Qt()),s=u(Xt()),l=rt(),c=u(nt());function u(e){return e&&e.__esModule?e:{default:e}}var d=t.Frame=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.setRef=function(e){r.nodeRef.current=e;var t=r.props.forwardedRef;"function"==typeof t?t(e):t&&(t.current=e)},r.handleLoad=function(){clearInterval(r.loadCheck),r.state.iframeLoaded||r.setState({iframeLoaded:!0})},r.loadCheck=function(){return setInterval(function(){r.handleLoad()},500)},r._isMounted=!1,r.nodeRef=i.default.createRef(),r.state={iframeLoaded:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.getDoc()&&this.nodeRef.current.contentWindow.addEventListener("DOMContentLoaded",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.nodeRef.current.removeEventListener("DOMContentLoaded",this.handleLoad)}},{key:"getDoc",value:function(){return this.nodeRef.current?this.nodeRef.current.contentDocument:null}},{key:"getMountTarget",value:function(){var e=this.getDoc();return this.props.mountTarget?e.querySelector(this.props.mountTarget):e.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var e=this.getDoc();if(!e)return null;var t=this.props.contentDidMount,n=this.props.contentDidUpdate,r=e.defaultView||e.parentView,o=i.default.createElement(c.default,{contentDidMount:t,contentDidUpdate:n},i.default.createElement(l.FrameContextProvider,{value:{document:e,window:r}},i.default.createElement("div",{className:"frame-content"},this.props.children))),s=this.getMountTarget();return s?[a.default.createPortal(this.props.head,this.getDoc().head),a.default.createPortal(o,s)]:null}},{key:"render",value:function(){var e=n({},this.props,{srcDoc:this.props.initialContent,children:void 0});return delete e.head,delete e.initialContent,delete e.mountTarget,delete e.contentDidMount,delete e.contentDidUpdate,delete e.forwardedRef,i.default.createElement("iframe",n({},e,{ref:this.setRef,onLoad:this.handleLoad}),this.state.iframeLoaded&&this.renderFrameContents())}}]),t}(o.Component);d.propTypes={style:s.default.object,head:s.default.node,initialContent:s.default.string,mountTarget:s.default.string,contentDidMount:s.default.func,contentDidUpdate:s.default.func,children:s.default.oneOfType([s.default.element,s.default.arrayOf(s.default.element)])},d.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'},t.default=i.default.forwardRef(function(e,t){return i.default.createElement(d,n({},e,{forwardedRef:t}))})}),it=__webpack_require__.cw(function(e,t){var n=ot();Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}});var r=rt();Object.defineProperty(t,"rH",{enumerable:!0,get:function(){return r.FrameContextConsumer}})}),at=__webpack_require__.cw(function(e,t){var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function x(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||_(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_}),st=__webpack_require__.cw(function(e,t){e.exports=at()}),lt=__webpack_require__.cw(function(e,t){var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,g=60122,m=60117,y=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),g=b("react.server.block"),m=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}(e)===l},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===y||e===i||e===u||e===d||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===m||e.$$typeof===h||e[0]===g)}}),ct=__webpack_require__.cw(function(e,t){e.exports=lt()}),ut=__webpack_require__.cw(function(e,t){var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),t.isForwardRef=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case h:case p:case s:return e;default:return t}}case r:return t}}}(e)===u}}),dt=__webpack_require__.cw(function(e,t){e.exports=ut()}),ft=__webpack_require__.cw(function(e,t){function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var i=null,a=null,s=null;if("function"==typeof t.componentWillMount?i="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(i="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==i||null!==a||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==i?"\n  "+i:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}__webpack_require__.r(t),__webpack_require__.d(t,{polyfill:()=>i}),n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0}),pt=__webpack_require__.cw(function(e,t){const n=Jt(),r=ct(),o=Ze(),i=Ye(),a=dn(),s=Bt(),l=Ae(),c=Wt();t.i=f;const u={}.hasOwnProperty,d=new Set(["table","thead","tbody","tfoot","tr"]);function f(e,t){const n=[];let r,o=-1;for(;++o<t.children.length;)r=t.children[o],"element"===r.type?n.push(p(e,r,o,t)):"text"===r.type?"element"===t.type&&d.has(t.tagName)&&"\n"===r.value||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function p(e,t,i,a){const s=e.options,l=e.schema,c=t.tagName,d={};let p,m=l;if("html"===l.space&&"svg"===c&&(m=o,e.schema=m),t.properties)for(p in t.properties)u.call(t.properties,p)&&g(d,p,t.properties[p],e);"ol"!==c&&"ul"!==c||e.listDepth++;const y=f(e,t);"ol"!==c&&"ul"!==c||e.listDepth--,e.schema=l;const v=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},b=s.components&&u.call(s.components,c)?s.components[c]:c,w="string"==typeof b||b===n.Fragment;if(!r.isValidElementType(b))throw new TypeError(`Component for name \`${c}\` not defined or is not renderable`);if(d.key=[c,v.start.line,v.start.column,i].join("-"),"a"===c&&s.linkTarget&&(d.target="function"==typeof s.linkTarget?s.linkTarget(d.href,t.children,d.title):s.linkTarget),"a"===c&&s.transformLinkUri&&(d.href=s.transformLinkUri(d.href,t.children,d.title)),w||"code"!==c||"element"!==a.type||"pre"===a.tagName||(d.inline=!0),w||"h1"!==c&&"h2"!==c&&"h3"!==c&&"h4"!==c&&"h5"!==c&&"h6"!==c||(d.level=parseInt(c.charAt(1),10)),"img"===c&&s.transformImageUri&&(d.src=s.transformImageUri(d.src,d.alt,d.title)),!w&&"li"===c&&"element"===a.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);d.checked=e&&e.properties?Boolean(e.properties.checked):null,d.index=h(a,t),d.ordered="ol"===a.tagName}var _;return w||"ol"!==c&&"ul"!==c||(d.ordered="ol"===c,d.depth=e.listDepth),"td"!==c&&"th"!==c||(d.align&&(d.style||(d.style={}),d.style.textAlign=d.align,delete d.align),w||(d.isHeader="th"===c)),w||"tr"!==c||"element"!==a.type||(d.isHeader=Boolean("thead"===a.tagName)),s.sourcePos&&(d["data-sourcepos"]=[(_=v).start.line,":",_.start.column,"-",_.end.line,":",_.end.column].map(e=>String(e)).join("")),!w&&s.rawSourcePos&&(d.sourcePosition=t.position),!w&&s.includeElementIndex&&(d.index=h(a,t),d.siblingCount=h(a)),w||(d.node=t),y.length>0?n.createElement(b,d,y):n.createElement(b,d)}function h(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function g(e,t,n,r){const o=i(r.schema,t);let d=n;null!=d&&d==d&&(d&&"object"==typeof d&&"length"in d&&(d=(o.commaSeparated?l:s).stringify(d)),"style"===o.property&&"string"==typeof d&&(d=function(e){const t={};try{c(e,function(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,m)]=n})}catch(e){}return t}(d)),o.space&&o.property?e[u.call(a,o.property)?a[o.property]:o.property]=d:o.attribute&&(e[o.attribute]=d))}function m(e,t){return t.toUpperCase()}}),ht=__webpack_require__.cw(function(e,t){const n=Jt(),r=Gt(),o=Kt(),i=Mt(),a=jt(),s=Xt(),l=__webpack_require__(83622),c=gt(),u=mt(),d=pt().i;e.exports=g;const f={}.hasOwnProperty,p="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",h={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 g(e){for(const t in h)if(f.call(h,t)&&f.call(e,t)){const e=h[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <${p}#${e.id}> for more info)`),delete h[t]}const t=o().use(i).use(e.remarkPlugins||e.plugins||[]).use(a,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(c,e);let s;"string"==typeof e.children?s=r(e.children):(void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),s=r());const u=t.runSync(t.parse(s),s);if("root"!==u.type)throw new TypeError("Expected a `root` node");let g=n.createElement(n.Fragment,{},d({options:e,schema:l,listDepth:0},u));return e.className&&(g=n.createElement("div",{className:e.className},g)),g}g.defaultProps={transformLinkUri:u},g.propTypes={children:s.string,className:s.string,allowElement:s.func,allowedElements:s.arrayOf(s.string),disallowedElements:s.arrayOf(s.string),unwrapDisallowed:s.bool,remarkPlugins:s.arrayOf(s.oneOfType([s.object,s.func,s.arrayOf(s.oneOfType([s.object,s.func]))])),rehypePlugins:s.arrayOf(s.oneOfType([s.object,s.func,s.arrayOf(s.oneOfType([s.object,s.func]))])),sourcePos:s.bool,rawSourcePos:s.bool,skipHtml:s.bool,includeElementIndex:s.bool,transformLinkUri:s.oneOfType([s.func,s.bool]),linkTarget:s.oneOfType([s.func,s.string]),transformImageUri:s.func,components:s.object},g.uriTransformer=u}),gt=()=>__webpack_require__(33268),mt=()=>__webpack_require__(66802),yt=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=Jt(),i=p(o),a=p(Qt()),s=p(Xt()),l=p(vt()),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(bt()),u=St(),d=p(u),f=ft();function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",m=t.bodyOpenClassName="ReactModal__Body--open",y=u.canUseDOM&&void 0!==a.default.createPortal,v=function(e){return document.createElement(e)},b=function(){return y?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var _=function(e){function t(){var e,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return r=o=h(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),o.removePortal=function(){!y&&a.default.unmountComponentAtNode(o.node);var e=w(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var r=b()(o,i.default.createElement(l.default,n({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(r)},h(o,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){u.canUseDOM&&(y||(this.node=v("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!y&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(u.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(u.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return u.canUseDOM&&y?(!this.node&&y&&(this.node=v("div")),b()(i.default.createElement(l.default,n({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(o.Component);_.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(u.SafeHTMLCollection),s.default.instanceOf(u.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func},_.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:m,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},_.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,f.polyfill)(_),t.default=_}),vt=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=Jt(),a=g(Xt()),s=h(xt()),l=g(Et()),c=h(bt()),u=h(_t()),d=St(),f=g(d),p=g(kt());function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}wt();var m={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector,l=a&&a().ownerDocument||document;i&&u.remove(l.body,i),o&&u.remove(l.getElementsByTagName("html")[0],o),r&&y>0&&0==(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:m[e],afterOpen:m[e]+"--after-open",beforeClose:m[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;o&&u.add(a.body,o),r&&u.add(a.getElementsByTagName("html")[0],r),n&&(y+=1,c.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children,s=r?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:t,ref:this.setContentRef,style:n({},s,this.props.style.content),className:this.buildClassName("content",r),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(i.Component);v.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},v.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(f.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(f.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=v,e.exports=t.default}),bt=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(i).forEach(function(e){return e.removeAttribute("aria-hidden")})),i=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&o.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return i=t||i},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=s(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){i=null};var n,r=(n=Yt())&&n.__esModule?n:{default:n},o=St(),i=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}}),wt=__webpack_require__.cw(function(e,t){var n,r=(n=kt())&&n.__esModule?n:{default:n},o=void 0,i=void 0,a=[];function s(){0!==a.length&&a[a.length-1].focusContent()}r.default.subscribe(function(e,t){o||i||((o=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),o.style.position="absolute",o.style.opacity="0",o.setAttribute("tabindex","0"),o.addEventListener("focus",s),(i=o.cloneNode()).addEventListener("focus",s)),(a=t).length>0?(document.body.firstChild!==o&&document.body.insertBefore(o,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(o.parentElement&&o.parentElement.removeChild(o),i.parentElement&&i.parentElement.removeChild(i))})}),_t=()=>__webpack_require__(36377),xt=()=>__webpack_require__(73950),kt=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r}),St=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var n,r=((n=__webpack_require__(52083))&&n.__esModule?n:{default:n}).default,o=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=o}),Et=()=>__webpack_require__(78126),Ct=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=yt())&&n.__esModule?n:{default:n};t.default=r.default,e.exports=t.default}),Tt=__webpack_require__.cw(function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=((n=Jt())&&n.__esModule?n:{default:n}).default.createContext();t.default=r}),Pt=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=a(Jt()),r=a(Xt()),o=a(Ve()),i=a(Tt());function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.locale,r=e.messages,a=e.allowMissing,s=e.onMissingKey,l=e.interpolation,c=e.pluralRules,u=e.children,d=n.default.useMemo(function(){var e=new o.default({locale:t,phrases:r,allowMissing:a,onMissingKey:s,interpolation:l,pluralRules:c}),n=e.t.bind(e);return n._polyglot=e,n},[t,r,a,s,l,c]);return n.default.createElement(i.default.Provider,{value:d},n.default.Children.only(u))}s.propTypes={locale:r.default.string.isRequired,messages:r.default.object.isRequired,allowMissing:r.default.bool,onMissingKey:r.default.func,interpolation:r.default.shape({suffix:r.default.string,prefix:r.default.string}),pluralRules:r.default.shape({pluralTypes:r.default.object,pluralTypeToLanguages:r.default.object}),children:r.default.element.isRequired},s.defaultProps={allowMissing:!1,onMissingKey:void 0,interpolation:void 0,pluralRules:void 0}}),Ot=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"F2",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"Tl",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"WD",{enumerable:!0,get:function(){return o.default}});var n=i(Pt()),r=i(Rt()),o=i(At());function i(e){return e&&e.__esModule?e:{default:e}}}),Rt=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return function(e){return(0,r.default)(function(t){return n.default.createElement(o.default.Consumer,null,function(r){return n.default.createElement(e,a({},t,{t:r}))})},e)}};var n=i(Jt()),r=i(Be()),o=i(Tt());function i(e){return e&&e.__esModule?e:{default:e}}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}}),At=__webpack_require__.cw(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.useContext)(o.default)};var n,r=Jt(),o=(n=Tt())&&n.__esModule?n:{default:n}}),It=__webpack_require__.cw(function(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o}),Dt=__webpack_require__.cw(function(e,t){e.exports=It()}),Lt=__webpack_require__.cw(function(e,t){var n=Nt().Zz;t.tY="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?n:n.apply(null,arguments)},"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__}),Nt=__webpack_require__.cw(function(e,t){function n(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}__webpack_require__.d(t,{HY:()=>s,Tw:()=>d,Zz:()=>u,y$:()=>a,zH:()=>c});var r="function"==typeof Symbol&&Symbol.observable||"@@observable",o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e,t,o){var s;if("function"==typeof t&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(n(0));if("function"==typeof t&&void 0===o&&(o=t,t=void 0),void 0!==o){if("function"!=typeof o)throw new Error(n(1));return o(a)(e,t)}if("function"!=typeof e)throw new Error(n(2));var l=e,c=t,u=[],d=u,f=!1;function p(){d===u&&(d=u.slice())}function h(){if(f)throw new Error(n(3));return c}function g(e){if("function"!=typeof e)throw new Error(n(4));if(f)throw new Error(n(5));var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error(n(6));t=!1,p();var r=d.indexOf(e);d.splice(r,1),u=null}}}function m(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(n(7));if(void 0===e.type)throw new Error(n(8));if(f)throw new Error(n(9));try{f=!0,c=l(c,e)}finally{f=!1}for(var t=u=d,r=0;r<t.length;r++)(0,t[r])();return e}return m({type:i.INIT}),(s={dispatch:m,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(n(10));l=e,m({type:i.REPLACE})}})[r]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(n(11));function r(){e.next&&e.next(h())}return r(),{unsubscribe:t(r)}}})[r]=function(){return this},e},s}function s(e){for(var t=Object.keys(e),r={},o=0;o<t.length;o++){var a=t[o];"function"==typeof e[a]&&(r[a]=e[a])}var s,l=Object.keys(r);try{!function(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:i.INIT}))throw new Error(n(12));if(void 0===r(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(n(13))})}(r)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var o=!1,i={},a=0;a<l.length;a++){var c=l[a],u=r[c],d=e[c],f=u(d,t);if(void 0===f)throw t&&t.type,new Error(n(14));i[c]=f,o=o||f!==d}return(o=o||l.length!==Object.keys(e).length)?i:e}}function l(e,t){return function(){return t(e.apply(this,arguments))}}function c(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error(n(16));var r={};for(var o in e){var i=e[o];"function"==typeof i&&(r[o]=l(i,t))}return r}function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),o=function(){throw new Error(n(15))},i={getState:r.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(e){return e(i)});return o=u.apply(void 0,a)(r.dispatch),(0,on().A)((0,on().A)({},r),{},{dispatch:o})}}}}),$t=__webpack_require__.cw(function(e,t){var n,r=__webpack_require__(15122),o=__webpack_require__(45121),i=__webpack_require__(62330);e.exports=function(e){var t=this.data();function a(e,n){t[e]?t[e].push(n):t[e]=[n]}!n&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(n=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),a("micromarkExtensions",r(e)),a("fromMarkdownExtensions",o),a("toMarkdownExtensions",i(e))}}),Mt=()=>__webpack_require__(3189),jt=()=>__webpack_require__(16579),Ft=__webpack_require__.cw(function(e,t){var n=Vt(),r=/[\/\?<>\\:\*\|"]/g,o=/[\x00-\x1f\x80-\x9f]/g,i=/^\.+$/,a=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,s=/[\. ]+$/;function l(e,t){if("string"!=typeof e)throw new Error("Input must be string");var l=e.replace(r,t).replace(o,t).replace(i,t).replace(a,t).replace(s,t);return n(l,255)}e.exports=function(e,t){var n=t&&t.replacement||"",r=l(e,n);return""===n?r:l(r,"")}}),Ut=__webpack_require__.cw(function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,g=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(m=!1,_(e),!g)if(null!==r(c))g=!0,S||(S=!0,k());else{var t=r(u);null!==t&&I(x,t.startTime-e)}}var k,S=!1,E=-1,C=5,T=-1;function P(){return!(!y&&t.unstable_now()-T<C)}function O(){if(y=!1,S){var e=t.unstable_now();T=e;var n=!0;try{e:{g=!1,m&&(m=!1,b(E),E=-1),h=!0;var i=p;try{t:{for(_(e),f=r(c);null!==f&&!(f.expirationTime>e&&P());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){f.callback=s,_(e),n=!0;break t}f===r(c)&&o(c),_(e)}else o(c);f=r(c)}if(null!==f)n=!0;else{var l=r(u);null!==l&&I(x,l.startTime-e),n=!1}}break e}finally{f=null,p=i,h=!1}n=void 0}}finally{n?k():S=!1}}}if("function"==typeof w)k=function(){w(O)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,A=R.port2;R.port1.onmessage=O,k=function(){A.postMessage(null)}}else k=function(){v(O,0)};function I(e,n){E=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(b(E),E=-1):m=!0,I(x,i-a))):(e.sortIndex=s,n(c,e),g||h||(g=!0,S||(S=!0,k()))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}),qt=__webpack_require__.cw(function(e,t){e.exports=Ut()}),zt=()=>__webpack_require__(71389),Bt=__webpack_require__.cw(function(e,t){t.parse=function(e){var t=String(e||n).trim();return t===n?[]:t.split(o)},t.stringify=function(e){return e.join(r).trim()};var n="",r=" ",o=/[ \t\n\r\f]+/g}),Ht=__webpack_require__.cw(function(e,t){e.exports=function(e){return"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e}}),Wt=()=>__webpack_require__(2863),Vt=()=>__webpack_require__(10001),Kt=()=>__webpack_require__(23591),Gt=()=>__webpack_require__(76829),Yt=__webpack_require__.cw(function(e,t){e.exports=function(){}}),Jt=()=>__webpack_require__(44119),Qt=()=>__webpack_require__(89545),Xt=()=>__webpack_require__(17434),Zt=()=>__webpack_require__(69448),en=__webpack_require__.cw(function(e,t){const{normalizeIPv6:n,removeDotSegments:r,recomposeAuthority:o,normalizePercentEncoding:i,normalizePathEncoding:a,serializePathEncoding:s,normalizeQueryFragmentEncoding:l,encodeQuery:c,encodeFragment:u,reescapeHostDelimiters:d,isIPv4:f,nonSimpleDomain:p}=nn(),{SCHEMES:h,getSchemeHandler:g}=tn(),m=/^[A-Za-z][A-Za-z0-9+.-]*$/u,y="URI scheme is malformed.";function v(e){const t=unescape(String(e));if(!m.test(t))throw new TypeError(y);return t}function b(e,t,n,o){const i={};return o||(e=P(w(e,n),n),t=P(w(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=r(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=r(t.path||""),i.query=t.query):(t.path?("/"===t.path[0]?i.path=r(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=r(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function w(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},a=Object.assign({},t),l=[];n.scheme&&(n.scheme=v(n.scheme));const d=g(a.scheme||n.scheme);d&&d.serialize&&d.serialize(n,a);const f=void 0!==n.userinfo||void 0!==n.host||void 0!==n.port,p=!a.skipEscape&&void 0===n.scheme&&!f;void 0!==n.path&&(a.skipEscape?n.path=i(n.path):n.path=s(n.path,p)),"suffix"!==a.reference&&n.scheme&&(n.scheme=v(n.scheme),l.push(n.scheme,":"));const h=o(n);if(void 0!==h&&("suffix"!==a.reference&&l.push("//"),l.push(h),n.path&&"/"!==n.path[0]&&l.push("/")),void 0!==n.path){let e=n.path;a.absolutePath||d&&d.absolutePath||(e=r(e)),p&&(e=s(e,!0)),void 0===h&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),l.push(e)}return void 0!==n.query&&l.push("?",c(n.query)),void 0!==n.fragment&&l.push("#",u(n.fragment)),l.join("")}const _=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,x=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,k=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function S(e){if(void 0===e)return!1;let t=e.indexOf("%");for(;-1!==t;){if(t+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(t+1,t+3)))return!0;t=e.indexOf("%",t+3)}return!1}function E(e){return"["===e[0]&&"]"===e[e.length-1]}function C(e,t,n,r){if(!t.unicodeSupport&&(!n||!n.unicodeSupport)&&e.host&&!E(e.host)&&(t.domainHost||n&&n.domainHost)&&!1===r&&p(e.host))try{e.host=new URL("http://"+e.host).hostname}catch(t){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+t,!0}return!1}function T(e,t){const r=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let s=!1,c=!1,u=!1,p=!1,v=!1,b=!1,w=!1;"suffix"===r.reference&&(e=r.scheme?r.scheme+":"+e:"//"+e);const T=e.match(x);null!==T&&-1!==T[1].indexOf("\\")&&(o.error="URI authority must not contain a literal backslash.",s=!0);const P=e.match(k);if(null!==P){const e=P[1],t=e.replace(/[\t\n\r]/g,"");t.length>=2&&("//"!==t.slice(0,2)?(o.error=o.error||"URI authority must not contain a literal backslash.",s=!0):e.length!==t.length&&(o.error=o.error||"URI authority introducer must not contain whitespace.",s=!0))}const O=e.match(_);if(O){if(o.scheme=O[1],o.userinfo=O[3],o.host=O[4],o.port=parseInt(O[5],10),o.path=O[6]||"",o.query=O[7],o.fragment=O[8],void 0!==o.scheme){const e=unescape(o.scheme);m.test(e)?o.scheme=e.toLowerCase():(o.error=o.error||y,b=!0)}c=function(e){const t=e[4];return S(e[3])||void 0!==t&&!E(t)&&S(t)||S(e[6])||S(e[7])||S(e[8])}(O),c&&(o.error=o.error||"URI contains malformed percent-encoding."),isNaN(o.port)&&(o.port=O[5]);const t=function(e,t){return void 0!==t[2]&&e.path&&"/"!==e.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof e.port&&(e.port<0||e.port>65535)?"URI port is malformed.":void 0}(o,O);if(void 0!==t&&(o.error=o.error||t,s=!0),o.host)if(!1===f(o.host)){const e=E(o.host),t=-1!==o.host.indexOf("[")||-1!==o.host.indexOf("]"),r=n(o.host);w=r.isIPV6||!0===r.isIPVFuture,v=t&&(!e||!0===r.error),o.host=w?r.host:r.host.toLowerCase(),v&&(o.error=o.error||"URI host is malformed.",s=!0)}else w=!0;void 0!==o.scheme||void 0!==o.userinfo||void 0!==o.host||void 0!==o.port||void 0!==o.query||o.path?void 0===o.scheme?o.reference="relative":void 0===o.fragment?o.reference="absolute":o.reference="uri":o.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==o.reference&&(o.error=o.error||"URI is not a "+r.reference+" reference.");const _=g(r.scheme||o.scheme);if(v||(p=C(o,r,_,w)),-1!==e.indexOf("%")&&void 0!==o.host&&!v){let e=w?o.host:i(o.host,!0);w||(e=i(e.toLowerCase())),o.host=d(e,w)}(!_||_&&!_.skipNormalize)&&(o.path&&(o.path=a(o.path)),o.query&&(o.query=l(o.query)),o.fragment&&(o.fragment=l(o.fragment))),_&&_.parse&&(_.parse(o,r),_===h.urn&&void 0===o.nid&&(u=!0))}else o.error=o.error||"URI can not be parsed.";return{parsed:o,malformedAuthorityOrPort:s,malformedPercentEncoding:c,malformedSchemeSpecific:u,malformedHost:p,malformedScheme:b}}function P(e,t){return T(e,t).parsed}function O(e,t){const{parsed:n,malformedAuthorityOrPort:r,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:a,malformedScheme:s}=T(e,t);return{normalized:r||o||i||a||s?e:w(n,t),malformedAuthorityOrPort:r,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:a,malformedScheme:s}}function R(e,t){if("string"!=typeof e&&"object"!=typeof e)return;let n;try{n="string"==typeof e?e:w(e,t)}catch{return}const{normalized:r,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:a,malformedHost:s,malformedScheme:l}=O(n,t);return o||i||a||s||l?void 0:r}const A={SCHEMES:h,normalize:function(e,t){return"string"==typeof e?e=function(e,t){return O(e,t).normalized}(e,t):"object"==typeof e&&(e=P(w(e,t),t)),e},resolve:function(e,t,r){const o=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:i,malformedAuthorityOrPort:a,malformedPercentEncoding:s,malformedSchemeSpecific:l,malformedHost:c,malformedScheme:u}=T(e,o),{parsed:d,malformedAuthorityOrPort:p,malformedPercentEncoding:h,malformedSchemeSpecific:m,malformedHost:y,malformedScheme:v}=T(t,o);if(a||p||s||h||l||m||c||y||u||v)throw new Error(i.error||d.error||"URI is malformed.");const _=b(i,d,o,!0),x=g(r&&r.scheme||_.scheme),k=_.host;C(_,r||{},x,void 0!==k&&""!==k&&(f(k)||n(k).isIPV6));const S=k&&-1!==k.indexOf("%")&&!/\P{ASCII}/u.test(k);if(_.error&&!S)throw new Error(_.error);return o.skipEscape=!0,w(_,o)},resolveComponent:b,equal:function(e,t,n){const r=R(e,n),o=R(t,n);return void 0!==r&&void 0!==o&&r===o},serialize:w,parse:P};e.exports=A,e.exports.default=A,e.exports.fastUri=A}),tn=__webpack_require__.cw(function(e,t){const{isUUID:n}=nn(),r=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;function o(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function i(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function a(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const s={scheme:"http",domainHost:!0,parse:i,serialize:a},l={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=o(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(o(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const t=e.resourceName.indexOf("?"),n=-1===t?e.resourceName:e.resourceName.slice(0,t);e.path=n&&"/"!==n?n:void 0,e.query=-1===t?void 0:e.resourceName.slice(t+1),e.resourceName=void 0}return e.fragment=void 0,e}},c={http:s,https:{scheme:"https",domainHost:s.domainHost,parse:i,serialize:a},ws:l,wss:{scheme:"wss",domainHost:l.domainHost,parse:l.parse,serialize:l.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(r);if(n&&n[0]===e.path){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const o=u(`${r}:${t.nid||e.nid}`);e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),o=u(`${n}:${t.nid||r}`);o&&(e=o.serialize(e,t));const i=e,a=e.nss;return i.path=`${r||t.nid}:${a}`,t.skipEscape=!0,i},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&n(r.uuid)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function u(e){return e&&(c[e]||c[e.toLowerCase()])||void 0}Object.setPrototypeOf(c,null),e.exports={SCHEMES:c,getSchemeHandler:u}}),nn=__webpack_require__.cw(function(e,t){const n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),o=RegExp.prototype.test.bind(/^\d*$/u),i=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),s=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),l=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),c=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),u=new Array(256);{const e="0123456789ABCDEF";for(let t=0;t<256;t++)u[t]="%"+e[t>>4]+e[15&t]}function d(e){return e<2048?u[192|e>>6]+u[128|63&e]:e<65536?u[224|e>>12]+u[128|e>>6&63]+u[128|63&e]:u[240|e>>18]+u[128|e>>12&63]+u[128|e>>6&63]+u[128|63&e]}const f=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),p=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),h=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),g=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function m(e){let t=-1,n=0,r=-1,o=0;for(let i=0;i<e.length;i++)"0"===e[i]?(-1===r&&(r=i),o++,o>n&&(n=o,t=r)):(r=-1,o=0);return n<2?e.join(":"):e.slice(0,t).join(":")+"::"+e.slice(t+n).join(":")}function y(e){const t="["===e[0]&&"]"===e[e.length-1];if(("["===e[0]||"]"===e[e.length-1])&&!t)return{host:e,isIPV6:!1,error:!0};let n=t?e.slice(1,-1):e;if(t&&p(n))return n=n.toLowerCase(),{host:`[${n}]`,escapedHost:n,isIPV6:!1,isIPVFuture:!0};if(function(e){let t=0;for(let n=0;n<e.length;n++)":"===e[n]&&t++;return t}(n)<2)return{host:e,isIPV6:!1,error:t};let o="";const a=n.indexOf("%");if(-1!==a){const t="%25"===n.slice(a,a+3).toLowerCase()?3:1;if(o=n.slice(a+t),!function(e){if(0===e.length)return!1;for(let t=0;t<e.length;t++)if(!h(e[t])){if(!("%"===e[t]&&t+2<e.length&&i(e.slice(t+1,t+3))))return!1;t+=2}return!0}(o))return{host:e,isIPV6:!1,error:!0};n=n.slice(0,a)}const s=function(e){const t=e.indexOf("::");if(-1!==t&&-1!==e.indexOf("::",t+1))return;const n=-1===t?e.split(":"):e.slice(0,t).split(":"),o=-1===t?[]:e.slice(t+2).split(":");-1!==t&&(1===n.length&&""===n[0]&&(n.length=0),1===o.length&&""===o[0]&&(o.length=0));const i=n.concat(o);let a=0;for(let e=0;e<i.length;e++){const n=i[e];if(""===n)return;if(-1===n.indexOf(".")){if(!f(n))return;i[e]=parseInt(n,16).toString(16),a++}else{if(e!==i.length-1||-1!==t&&0===o.length||!r(n))return;a+=2}}if(-1===t){if(8!==a)return;return m(i)}if(a>=8)return;const s=i.slice(0,n.length);for(let e=a;e<8;e++)s.push("0");for(let e=n.length;e<i.length;e++)s.push(i[e]);return m(s)}(n);return void 0===s?{host:e,isIPV6:!1,error:!0}:{host:s+(o?"%"+o:""),escapedHost:s+(o?"%25"+o:""),isIPV6:!0}}const v={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},b=/[@/?#:]/g,w=/[@/?#]/g;function _(e,t){const n=t?w:b;return n.lastIndex=0,e.replace(n,e=>v[e])}function x(e,t=!1){if(-1===e.indexOf("%"))return e;let n="";for(let r=0;r<e.length;r++){if("%"===e[r]&&r+2<e.length){const o=e.slice(r+1,r+3);if(i(o)){const e=o.toUpperCase(),i=String.fromCharCode(parseInt(e,16));t&&a(i)?n+=i:n+="%"+e,r+=2;continue}}n+=e[r]}return n}function k(e,t){let n="";for(let r=0;r<e.length;r++){const o=e[r];if("%"===o&&r+2<e.length){const t=e.slice(r+1,r+3);if(i(t)){n+="%"+t.toUpperCase(),r+=2;continue}}if(t(o))n+=o;else{const t=e.charCodeAt(r);if(t<128)n+=u[t];else if(t<55296||t>57343)n+=d(t);else if(t<=56319&&r+1<e.length){const o=e.charCodeAt(r+1);o>=56320&&o<=57343?(n+=d(65536+(t-55296<<10)+(o-56320)),r++):n+=d(65533)}else n+=d(65533)}}return n}function S(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||42===e||43===e||45===e||46===e||47===e||64===e||95===e}e.exports={nonSimpleDomain:g,recomposeAuthority:function(e){const t=[];if(void 0!==e.userinfo&&(t.push(k(e.userinfo,c)),t.push("@")),void 0!==e.host){let n=e.host;if(!r(n)){let e=y(n);!0!==e.isIPV6&&!0!==e.isIPVFuture&&(n=x(n,!0),e=y(n)),n=!0===e.isIPV6||!0===e.isIPVFuture?`[${e.escapedHost}]`:_(n,!1)}t.push(n)}if("number"==typeof e.port||"string"==typeof e.port){const n=String(e.port);if(!o(n))throw new TypeError("URI port is malformed.");t.push(":"),t.push(n)}return t.length?t.join(""):void 0},reescapeHostDelimiters:_,normalizePercentEncoding:x,normalizePathEncoding:function(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];if("%"===r&&n+2<e.length){const r=e.slice(n+1,n+3);if(i(r)){const e=r.toUpperCase(),o=String.fromCharCode(parseInt(e,16));"."!==o&&a(o)?t+=o:t+="%"+e,n+=2;continue}}if(s(r))t+=r;else{const o=e.charCodeAt(n);if(o<128)t+=S(o)?r:u[o];else if(o<55296||o>57343)t+=d(o);else if(o<=56319&&n+1<e.length){const r=e.charCodeAt(n+1);r>=56320&&r<=57343?(t+=d(65536+(o-55296<<10)+(r-56320)),n++):t+=d(65533)}else t+=d(65533)}}return t},serializePathEncoding:function(e,t=!1){let n="",r=t&&"/"!==e[0];for(let t=0;t<e.length;t++){const o=e[t];if("%"===o&&t+2<e.length){const r=e.slice(t+1,t+3);if(i(r)){n+="%"+r.toUpperCase(),t+=2;continue}}if("/"===o&&(r=!1),!s(o)||":"===o&&r){const r=e.charCodeAt(t);if(r<128)n+=u[r];else if(r<55296||r>57343)n+=d(r);else if(r<=56319&&t+1<e.length){const o=e.charCodeAt(t+1);o>=56320&&o<=57343?(n+=d(65536+(r-55296<<10)+(o-56320)),t++):n+=d(65533)}else n+=d(65533)}else n+=o}return n},normalizeQueryFragmentEncoding:function(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];if("%"===r&&n+2<e.length){const r=e.slice(n+1,n+3);if(i(r)){const e=r.toUpperCase(),o=String.fromCharCode(parseInt(e,16));a(o)?t+=o:t+="%"+e,n+=2;continue}}if(l(r))t+=r;else{const o=e.charCodeAt(n);if(o<128)t+=S(o)?r:u[o];else if(o<55296||o>57343)t+=d(o);else if(o<=56319&&n+1<e.length){const r=e.charCodeAt(n+1);r>=56320&&r<=57343?(t+=d(65536+(o-55296<<10)+(r-56320)),n++):t+=d(65533)}else t+=d(65533)}}return t},encodeQuery:function(e){return k(e,l)},encodeFragment:function(e){return k(e,l)},removeDotSegments:function(e){let t=e;const n=[];let r=-1,o=0;for(;o=t.length;){if(1===o){if("."===t)break;if("/"===t){n.push("/");break}n.push(t);break}if(2===o){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){n.push("/");break}}else if(3===o&&"/.."===t){0!==n.length&&n.pop(),n.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==n.length&&n.pop();continue}}if(-1===(r=t.indexOf("/",1))){n.push(t);break}n.push(t.slice(0,r)),t=t.slice(r)}return n.join("")},isIPv4:r,isUUID:n,normalizeIPv6:y}}),rn=__webpack_require__.cw(function(e,t){function n(e,t,n){return(t=(0,sn().A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}__webpack_require__.d(t,{A:()=>n})}),on=__webpack_require__.cw(function(e,t){function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){(0,rn().A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}__webpack_require__.d(t,{A:()=>r})}),an=__webpack_require__.cw(function(e,t){function n(e,t){if("object"!=(0,ln().A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,ln().A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}__webpack_require__.d(t,{A:()=>n})}),sn=__webpack_require__.cw(function(e,t){function n(e){var t=(0,an().A)(e,"string");return"symbol"==(0,ln().A)(t)?t:t+""}__webpack_require__.d(t,{A:()=>n})}),ln=__webpack_require__.cw(function(e,t){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}__webpack_require__.d(t,{A:()=>n})}),cn=__webpack_require__.cw(function(e,t){const n=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}');e.exports=n}),un=()=>__webpack_require__(29199),dn=__webpack_require__.cw(function(e,t){const n=JSON.parse('{"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"}');e.exports=n}),fn={};__webpack_require__.r(fn),__webpack_require__.d(fn,{FILE:()=>km,HTML:()=>Cm,TEXT:()=>Em,URL:()=>Sm});var pn=__webpack_require__(36533);function hn(){return hn.c||(hn.c=__webpack_require__.n(Jt()))}function gn(){return gn.c||(gn.c=__webpack_require__.n(Xt()))}"undefined"!=typeof window&&(window.global=window,window.Buffer=pn.hp),Jt(),Qt(),tt(),Xt();var mn=hn()().createContext(null),yn=function(e){e()},vn={notify:function(){},get:function(){return[]}};function bn(e,t){var n,r=vn;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=yn,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=vn)},getListeners:function(){return r}};return a}var wn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Jt().useLayoutEffect:Jt().useEffect;const _n=function(e){var t=e.store,n=e.context,r=e.children,o=(0,Jt().useMemo)(function(){var e=bn(t);return{store:t,subscription:e}},[t]),i=(0,Jt().useMemo)(function(){return t.getState()},[t]);wn(function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[o,i]);var a=n||mn;return hn()().createElement(a.Provider,{value:o},r)};function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(null,arguments)}function kn(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function Sn(){return Sn.c||(Sn.c=__webpack_require__.n(Be()))}st(),Be(),ct();var En=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Cn=["reactReduxForwardedRef"],Tn=[],Pn=[null,null];function On(e,t){var n=e[1];return[t.payload,n+1]}function Rn(e,t,n){wn(function(){return e.apply(void 0,t)},n)}function An(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function In(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,o.current)}catch(e){n=e,d=e}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=f,n.trySubscribe(),f(),function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var Dn=function(){return[null,0]};function Ln(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,o=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,i=n.methodName,a=void 0===i?"connectAdvanced":i,s=n.renderCountProp,l=void 0===s?void 0:s,c=n.shouldHandleStateChanges,u=void 0===c||c,d=n.storeKey,f=void 0===d?"store":d,p=(n.withRef,n.forwardRef),h=void 0!==p&&p,g=n.context,m=void 0===g?mn:g,y=kn(n,En),v=m;return function(t){var n=t.displayName||t.name||"Component",r=o(n),i=xn({},y,{getDisplayName:o,methodName:a,renderCountProp:l,shouldHandleStateChanges:u,storeKey:f,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=y.pure,c=s?Jt().useMemo:function(e){return e()};function d(n){var r=(0,Jt().useMemo)(function(){var e=n.reactReduxForwardedRef,t=kn(n,Cn);return[n.context,e,t]},[n]),o=r[0],a=r[1],s=r[2],l=(0,Jt().useMemo)(function(){return o&&o.Consumer&&(0,lt().isContextConsumer)(hn()().createElement(o.Consumer,null))?o:v},[o,v]),d=(0,Jt().useContext)(l),f=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var p=f?n.store:d.store,h=(0,Jt().useMemo)(function(){return function(t){return e(t.dispatch,i)}(p)},[p]),g=(0,Jt().useMemo)(function(){if(!u)return Pn;var e=bn(p,f?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[p,f,d]),m=g[0],y=g[1],b=(0,Jt().useMemo)(function(){return f?d:xn({},d,{subscription:m})},[f,d,m]),w=(0,Jt().useReducer)(On,Tn,Dn),_=w[0][0],x=w[1];if(_&&_.error)throw _.error;var k=(0,Jt().useRef)(),S=(0,Jt().useRef)(s),E=(0,Jt().useRef)(),C=(0,Jt().useRef)(!1),T=c(function(){return E.current&&s===S.current?E.current:h(p.getState(),s)},[p,_,s]);Rn(An,[S,k,C,s,T,E,y]),Rn(In,[u,p,m,h,S,k,C,E,y,x],[p,m,h]);var P=(0,Jt().useMemo)(function(){return hn()().createElement(t,xn({},T,{ref:a}))},[a,t,T]);return(0,Jt().useMemo)(function(){return u?hn()().createElement(l.Provider,{value:b},P):P},[l,P,b])}var p=s?hn()().memo(d):d;if(p.WrappedComponent=t,p.displayName=d.displayName=r,h){var g=hn()().forwardRef(function(e,t){return hn()().createElement(p,xn({},e,{reactReduxForwardedRef:t}))});return g.displayName=r,g.WrappedComponent=t,Sn()()(g,t)}return Sn()()(p,t)}}function Nn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function $n(e,t){if(Nn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Nn(e[n[o]],t[n[o]]))return!1;return!0}function Mn(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function jn(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Fn(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=jn(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=jn(o),o=r(t,n)),o},r}}const Un=[function(e){return"function"==typeof e?Fn(e):void 0},function(e){return e?void 0:Mn(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?Mn(function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)}):void 0}],qn=[function(e){return"function"==typeof e?Fn(e):void 0},function(e){return e?void 0:Mn(function(){return{}})}];function zn(e,t,n){return xn({},n,e,t)}const Bn=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return zn}}];var Hn=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Wn(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function Vn(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;return function(o,h){return p?function(o,p){var h,g,m=!d(p,a),y=!u(o,i,p,a);return i=o,a=p,m&&y?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):y?(h=e(i,a),g=!f(h,s),s=h,g&&(c=n(s,l,a)),c):c}(o,h):(s=e(i=o,a=h),l=t(r,a),c=n(s,l,a),p=!0,c)}}function Kn(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=kn(t,Hn),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?Vn:Wn)(a,s,l,e,i)}var Gn=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Yn(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Jn(e,t){return e===t}const Qn=function(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Ln:n,o=t.mapStateToPropsFactories,i=void 0===o?qn:o,a=t.mapDispatchToPropsFactories,s=void 0===a?Un:a,l=t.mergePropsFactories,c=void 0===l?Bn:l,u=t.selectorFactory,d=void 0===u?Kn:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,u=void 0===l||l,f=a.areStatesEqual,p=void 0===f?Jn:f,h=a.areOwnPropsEqual,g=void 0===h?$n:h,m=a.areStatePropsEqual,y=void 0===m?$n:m,v=a.areMergedPropsEqual,b=void 0===v?$n:v,w=kn(a,Gn),_=Yn(e,i,"mapStateToProps"),x=Yn(t,s,"mapDispatchToProps"),k=Yn(n,c,"mergeProps");return r(d,xn({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:x,initMergeProps:k,pure:u,areStatesEqual:p,areOwnPropsEqual:g,areStatePropsEqual:y,areMergedPropsEqual:b},w))}}();function Xn(){return(0,Jt().useContext)(mn)}function Zn(e){void 0===e&&(e=mn);var t=e===mn?Xn:function(){return(0,Jt().useContext)(e)};return function(){return t().store}}var er=Zn();var tr,nr=function(e){void 0===e&&(e=mn);var t=e===mn?er:Zn(e);return function(){return t().dispatch}}();function rr(e,t){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rr(e,t)}function or(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rr(e,t)}function ir(e){return"/"===e.charAt(0)}function ar(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}function sr(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}tr=Qt().unstable_batchedUpdates,yn=tr;const lr=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});if("object"==typeof t||"object"==typeof n){var r=sr(t),o=sr(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every(function(r){return e(t[r],n[r])})}return!1};function cr(e,t){if(!e)throw new Error("Invariant failed")}function ur(e){return"/"===e.charAt(0)?e:"/"+e}function dr(e){return"/"===e.charAt(0)?e.substr(1):e}function fr(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function pr(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=xn({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&ir(e),a=t&&ir(t),s=i||a;if(e&&ir(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var l=o[o.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=o.length;u>=0;u--){var d=o[u];"."===d?ar(o,u):".."===d?(ar(o,u),c++):c&&(ar(o,u),c--)}if(!s)for(;c--;c)o.unshift("..");!s||""===o[0]||o[0]&&ir(o[0])||o.unshift("");var f=o.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}var hr=!("undefined"==typeof window||!window.document||!window.document.createElement);function gr(e,t){t(window.confirm(e))}var mr="hashchange",yr={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+dr(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:dr,decodePath:ur},slash:{encodePath:ur,decodePath:ur}};function vr(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function br(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function wr(e){window.location.replace(vr(window.location.href)+"#"+e)}var _r=__webpack_require__(30634),xr=__webpack_require__.n(_r),kr=1073741823,Sr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:{},Er=hn()().createContext||function(e,t){var n,r,o="__create-react-context-"+(Sr.__global_unique_id__=(Sr.__global_unique_id__||0)+1)+"__",i=function(e){function n(){for(var t,n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter(function(t){return t!==e})},get:function(){return n},set:function(e,t){n=e,r.forEach(function(e){return e(n,t)})}}),t}or(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof t?t(r,o):kr,0!=(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(hn()().Component);i.childContextTypes=((n={})[o]=gn()().object.isRequired,n);var a=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){(0|e.observedBits)&n&&e.setState({value:e.getValue()})},e}or(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=t??kr},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=e??kr},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(hn()().Component);return a.contextTypes=((r={})[o]=gn()().object,r),{Provider:i,Consumer:a}},Cr=function(e){var t=Er();return t.displayName=e,t},Tr=Cr("Router-History"),Pr=Cr("Router"),Or=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._pendingLocation=e})),n}or(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(t){e._isMounted&&e.setState({location:t})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return hn()().createElement(Pr.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},hn()().createElement(Tr.Provider,{children:this.props.children||null,value:this.props.history}))},t}(hn()().Component);hn()().Component;var Rr=function(e){function t(){return e.apply(this,arguments)||this}or(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(hn()().Component),Ar={},Ir=0;function Dr(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(Ar[e])return Ar[e];var t=xr().compile(e);return Ir<1e4&&(Ar[e]=t,Ir++),t}(e)(t,{pretty:!0})}function Lr(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return hn()().createElement(Pr.Consumer,null,function(e){e||cr(!1);var r=e.history,i=e.staticContext,a=o?r.push:r.replace,s=pr(t?"string"==typeof n?Dr(n,t.params):xn({},n,{pathname:Dr(n.pathname,t.params)}):n);return i?(a(s),null):hn()().createElement(Rr,{onMount:function(){a(s)},onUpdate:function(e,t){var n,r,o=pr(t.to);n=o,r=xn({},s,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&lr(n.state,r.state)||a(s)},to:n})})}var Nr={},$r=0;function Mr(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce(function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Nr[n]||(Nr[n]={});if(r[e])return r[e];var o=[],i={regexp:xr()(e,o,t),keys:o};return $r<1e4&&(r[e]=i,$r++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),f=e===u;return i&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:a.reduce(function(e,t,n){return e[t.name]=d[n],e},{})}},null)}var jr=function(e){function t(){return e.apply(this,arguments)||this}return or(t,e),t.prototype.render=function(){var e=this;return hn()().createElement(Pr.Consumer,null,function(t){t||cr(!1);var n=e.props.location||t.location,r=xn({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?Mr(n.pathname,e.props):t.match}),o=e.props,i=o.children,a=o.component,s=o.render;return Array.isArray(i)&&function(e){return 0===hn()().Children.count(e)}(i)&&(i=null),hn()().createElement(Pr.Provider,{value:r},r.match?i?"function"==typeof i?i(r):i:a?hn()().createElement(a,r):s?s(r):null:"function"==typeof i?i(r):null)})},t}(hn()().Component);hn()().Component;var Fr=function(e){function t(){return e.apply(this,arguments)||this}return or(t,e),t.prototype.render=function(){var e=this;return hn()().createElement(Pr.Consumer,null,function(t){t||cr(!1);var n,r,o=e.props.location||t.location;return hn()().Children.forEach(e.props.children,function(e){if(null==r&&hn()().isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?Mr(o.pathname,xn({},e.props,{path:i})):t.match}}),r?hn()().cloneElement(n,{location:o,computedMatch:r}):null})},t}(hn()().Component);hn()().useContext;var Ur=__webpack_require__(86171);function qr(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}Ot(),Lt();var zr=qr();zr.withExtraArgument=qr;const Br=zr,Hr="WAIT_UNTIL_ACTION";var Wr=__webpack_require__(2522);function Vr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kr(e){return!!e&&!!e[Io]}function Gr(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Do}(e)||Array.isArray(e)||!!e[Ao]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Ao])||Zr(e)||eo(e))}function Yr(e,t,n){void 0===n&&(n=!1),0===Jr(e)?(n?Object.keys:Lo)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function Jr(e){var t=e[Io];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Zr(e)?2:eo(e)?3:0}function Qr(e,t){return 2===Jr(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xr(e,t,n){var r=Jr(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Zr(e){return To&&e instanceof Map}function eo(e){return Po&&e instanceof Set}function to(e){return e.o||e.t}function no(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=No(e);delete t[Io];for(var n=Lo(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function ro(e,t){return void 0===t&&(t=!1),io(e)||Kr(e)||!Gr(e)||(Jr(e)>1&&(e.set=e.add=e.clear=e.delete=oo),Object.freeze(e),t&&Yr(e,function(e,t){return ro(t,!0)},!0)),e}function oo(){Vr(2)}function io(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function ao(e){var t=$o[e];return t||Vr(18,e),t}function so(){return Eo}function lo(e,t){t&&(ao("Patches"),e.u=[],e.s=[],e.v=t)}function co(e){uo(e),e.p.forEach(po),e.p=null}function uo(e){e===Eo&&(Eo=e.l)}function fo(e){return Eo={p:[],l:Eo,h:e,m:!0,_:0}}function po(e){var t=e[Io];0===t.i||1===t.i?t.j():t.g=!0}function ho(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||ao("ES5").S(t,e,r),r?(n[Io].P&&(co(t),Vr(4)),Gr(e)&&(e=go(t,e),t.l||yo(t,e)),t.u&&ao("Patches").M(n[Io].t,e,t.u,t.s)):e=go(t,n,[]),co(t),t.u&&t.v(t.u,t.s),e!==Ro?e:void 0}function go(e,t,n){if(io(t))return t;var r=t[Io];if(!r)return Yr(t,function(o,i){return mo(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return yo(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=no(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),Yr(i,function(t,i){return mo(e,r,o,t,i,n,a)}),yo(e,o,!1),n&&e.u&&ao("Patches").N(r,n,e.u,e.s)}return r.o}function mo(e,t,n,r,o,i,a){if(Kr(o)){var s=go(e,o,i&&t&&3!==t.i&&!Qr(t.R,r)?i.concat(r):void 0);if(Xr(n,r,s),!Kr(s))return;e.m=!1}else a&&n.add(o);if(Gr(o)&&!io(o)){if(!e.h.D&&e._<1)return;go(e,o),t&&t.A.l||yo(e,o)}}function yo(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&ro(t,n)}function vo(e,t){var n=e[Io];return(n?to(n):e)[t]}function bo(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function wo(e){e.P||(e.P=!0,e.l&&wo(e.l))}function _o(e){e.o||(e.o=no(e.t))}function xo(e,t,n){var r=Zr(t)?ao("MapSet").F(t,n):eo(t)?ao("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:so(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Mo;n&&(o=[r],i=jo);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):ao("ES5").J(t,n);return(n?n.A:so()).p.push(r),r}function ko(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return no(e)}var So,Eo,Co="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),To="undefined"!=typeof Map,Po="undefined"!=typeof Set,Oo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ro=Co?Symbol.for("immer-nothing"):((So={})["immer-nothing"]=!0,So),Ao=Co?Symbol.for("immer-draftable"):"__$immer_draftable",Io=Co?Symbol.for("immer-state"):"__$immer_state",Do=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Lo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,No=Object.getOwnPropertyDescriptors||function(e){var t={};return Lo(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},$o={},Mo={get:function(e,t){if(t===Io)return e;var n=to(e);if(!Qr(n,t))return function(e,t,n){var r,o=bo(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Gr(r)?r:r===vo(e.t,t)?(_o(e),e.o[t]=xo(e.A.h,r,e)):r},has:function(e,t){return t in to(e)},ownKeys:function(e){return Reflect.ownKeys(to(e))},set:function(e,t,n){var r=bo(to(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=vo(to(e),t),i=null==o?void 0:o[Io];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||Qr(e.t,t)))return!0;_o(e),wo(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==vo(e.t,t)||t in e.t?(e.R[t]=!1,_o(e),wo(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=to(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Vr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Vr(12)}},jo={};Yr(Mo,function(e,t){jo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),jo.deleteProperty=function(e,t){return jo.set.call(this,e,t,void 0)},jo.set=function(e,t,n){return Mo.set.call(this,e[0],t,n,e[0])};var Fo=new(function(){function e(e){var t=this;this.O=Oo,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var a;if("function"!=typeof n&&Vr(6),void 0!==r&&"function"!=typeof r&&Vr(7),Gr(e)){var s=fo(t),l=xo(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?co(s):uo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return lo(s,r),ho(e,s)},function(e){throw co(s),e}):(lo(s,r),ho(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===Ro&&(a=void 0),t.D&&ro(a,!0),r){var u=[],d=[];ao("Patches").M(e,a,u,d),r(u,d)}return a}Vr(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})};var r,o,i=t.produce(e,n,function(e,t){r=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,o]}):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Gr(e)||Vr(8),Kr(e)&&(e=function(e){return Kr(e)||Vr(22,e),function e(t){if(!Gr(t))return t;var n,r=t[Io],o=Jr(t);if(r){if(!r.P&&(r.i<4||!ao("ES5").K(r)))return r.t;r.I=!0,n=ko(t,o),r.I=!1}else n=ko(t,o);return Yr(n,function(t,o){r&&function(e,t){return 2===Jr(e)?e.get(t):e[t]}(r.t,t)===o||Xr(n,t,e(o))}),3===o?new Set(n):n}(e)}(e));var t=fo(this),n=xo(this,e,void 0);return n[Io].C=!0,uo(t),n},t.finishDraft=function(e,t){var n=(e&&e[Io]).A;return lo(n,t),ho(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Oo&&Vr(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=ao("Patches").$;return Kr(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}()),Uo=Fo.produce;Fo.produceWithPatches.bind(Fo),Fo.setAutoFreeze.bind(Fo),Fo.setUseProxies.bind(Fo),Fo.applyPatches.bind(Fo),Fo.createDraft.bind(Fo),Fo.finishDraft.bind(Fo);var qo=__webpack_require__(36775),zo=__webpack_require__.n(qo),Bo=__webpack_require__(13640),Ho=__webpack_require__.n(Bo),Wo=__webpack_require__(96868),Vo=__webpack_require__.n(Wo),Ko=__webpack_require__(51869),Go=__webpack_require__.n(Ko),Yo=__webpack_require__(5304),Jo=__webpack_require__.n(Yo),Qo=__webpack_require__(54489),Xo=__webpack_require__.n(Qo),Zo=__webpack_require__(12438),ei=__webpack_require__.n(Zo),ti=__webpack_require__(62154),ni=__webpack_require__.n(ti),ri=__webpack_require__(42562),oi=__webpack_require__.n(ri),ii=__webpack_require__(82256),ai=__webpack_require__.n(ii),si=__webpack_require__(83135);Ge();var li=__webpack_require__(87032),ci=__webpack_require__(28559),ui=__webpack_require__.n(ci);function di(e,t=e=>e){return(n,r)=>{const o=e.indexOf(t(n)),i=e.indexOf(t(r));return-1===o||-1===i?0:o>i?1:o<i?-1:0}}function fi(e,t,n=""){e.forEach(e=>{if(void 0!==e.key){const r=e.key.toString(),o=n?`${n}.${r}`:r;if(t[o]){const n=t[o].split("\\n").join("\n ");e.commentBefore=` ${n}`}Array.isArray(e.value?.items)&&fi(e.value.items,t,o)}})}const pi={identify:e=>e instanceof Date,default:!0,tag:"!timestamp",test:RegExp("^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}(\\.[0-9]+)?)Z$"),resolve:e=>new Date(e),stringify:e=>e.toISOString()},hi={fromFile(e){e&&e.trim().endsWith("---")&&(e=e.trim().slice(0,-3));const t=ui().parseDocument(e,{customTags:[pi],prettyErrors:!0});for(const e of t.warnings)console.warn(`YAML warning: ${e.message}`);if(t.errors.length>0){const e=t.errors.map(e=>e.message).join("\n");throw new Error(`YAML parsing error:\n${e}`)}return t.toJSON()},toFile(e,t=[],n={}){const r=ui().createNode(e);fi(r.items,n),r.items.sort(di(t,e=>e.key?.toString()));const o=new(ui().Document);return o.contents=r,o.toString()}};function gi(){return gi.c||(gi.c=__webpack_require__.n(e()))}e();var mi=__webpack_require__(99589),yi=__webpack_require__.n(mi),vi=__webpack_require__(4171),bi=__webpack_require__.n(vi);class wi{constructor({url:e,file:t,path:n,field:r}){this.url=e||(t?window.URL.createObjectURL(t):""),this.fileObj=t,this.path=n,this.field=r}toString(){return this.url}async toBase64(){const e=await fetch(this.url).then(e=>e.blob());return e.size<=0?"":await new Promise(t=>{const n=new FileReader;n.onload=e=>{const n=e.target?.result||"";t(n.toString().split("base64,")[1])},n.readAsDataURL(e)})}}function _i({url:e,file:t,path:n,field:r}){return new wi({url:e,file:t,path:n,field:r})}function xi(e,t){return bi().isDayjs(t)?t.format(t._f):t instanceof wi?`${t.path}`:!("number"!=typeof t||!Number.isInteger(t))&&t.toString()}const ki={fromFile:e=>gi()()(e),toFile:(e,t=[])=>yi().toToml(e,{replace:xi,sort:di(t)})},Si={fromFile:e=>JSON.parse(e),toFile:e=>JSON.stringify(e,null,2)};function Ei(){return Ei.c||(Ei.c=__webpack_require__.n(Le()))}Le();const Ci="yaml",Ti="toml",Pi="json",Oi={parse:()=>{throw new Error("JavaScript front matter is not supported")},stringify:()=>{throw new Error("JavaScript front matter is not supported")}},Ri={javascript:Oi,js:Oi,toml:{parse:e=>ki.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n}=t||{};return ki.toFile(e,n)}},json:{parse:e=>{let t=e.trim();return"{"!==t.slice(0,1)&&(t="{"+t+"}"),Si.fromFile(t)},stringify:e=>{let t=Si.toFile(e).trim();return"{"===t.slice(0,1)&&"}"===t.slice(-1)&&(t=t.slice(1,-1)),t}},yaml:{parse:e=>hi.fromFile(e),stringify:(e,t)=>{const{sortedKeys:n,comments:r}=t||{};return hi.toFile(e,n,r)}}};function Ai(e,t){if(!e)return;const n={yaml:{language:Ci,delimiters:"---"},toml:{language:Ti,delimiters:"+++"},json:{language:Pi,delimiters:["{","}"]}},{language:r,delimiters:o}=n[e];return{language:r,delimiters:t||o}}class Ii{constructor(e,t){this.format=Ai(e,t)}fromFile(e){const t=this.format||function(e){const t=e.indexOf("\n"),n=e.slice(0,-1!==t?t:0).trim();if(!(n.length>3&&"---"===n.slice(0,3)))switch(n){case"---":return Ai(Ci);case"+++":return Ai(Ti);case"{":return Ai(Pi);default:console.warn("Unrecognized front-matter format.")}}(e),n=Ei()()(e,{engines:Ri,...t});return{...n.data,...n.content.trim()&&{body:n.content}}}toFile(e,t,n){const{body:r="",...o}=e,i=this.format||Ai(Ci),a="\n"!==r.slice(-1),s=Ei()().stringify(r,o,{engines:Ri,sortedKeys:t,comments:n,...i});return a&&"\n"===s.slice(-1)?s.slice(0,-1):s}}const Di=new Ii;function Li(e){return new Ii(Ci,e)}function Ni(e){return new Ii(Ti,e)}function $i(e){return new Ii(Pi,e)}var Mi,ji,Fi=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ui=(Mi=["",""],ji=["",""],Object.freeze(Object.defineProperties(Mi,{raw:{value:Object.freeze(ji)}}))),qi=function(){function e(){for(var t=this,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tag=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return"function"==typeof e?t.interimTag.bind(t,e):"string"==typeof e?t.transformEndResult(e):(e=e.map(t.transformString.bind(t)),t.transformEndResult(e.reduce(t.processSubstitutions.bind(t,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map(function(e){return"function"==typeof e?e():e}),this.tag}return Fi(e,[{key:"interimTag",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return this.tag(Ui,e.apply(void 0,[t].concat(r)))}},{key:"processSubstitutions",value:function(e,t,n){var r=this.transformSubstitution(e.shift(),t);return"".concat(t,r,n)}},{key:"transformString",value:function(e){return this.transformers.reduce(function(e,t){return t.onString?t.onString(e):e},e)}},{key:"transformSubstitution",value:function(e,t){return this.transformers.reduce(function(e,n){return n.onSubstitution?n.onSubstitution(e,t):e},e)}},{key:"transformEndResult",value:function(e){return this.transformers.reduce(function(e,t){return t.onEndResult?t.onEndResult(e):e},e)}}]),e}();const zi=qi,Bi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(t){if("initial"===e){var n=t.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(n.map(function(e){return e.length})));if(r){var o=new RegExp("^.{"+r+"}","gm");return t.replace(o,"")}return t}if("all"===e)return t.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+e)}}};var Hi={separator:"",conjunction:"",serial:!1};const Wi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hi;return{onSubstitution:function(t,n){if(Array.isArray(t)){var r=t.length,o=e.separator,i=e.conjunction,a=e.serial,s=n.match(/(\n?[^\S\n]+)$/);if(t=s?t.join(o+s[1]):t.join(o+" "),i&&r>1){var l=t.lastIndexOf(o);t=t.slice(0,l)+(a?o:"")+" "+i+t.slice(l+1)}}return t}}},Vi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(t){if(""===e)return t.trim();if("start"===(e=e.toLowerCase())||"left"===e)return t.replace(/^\s*/,"");if("end"===e||"right"===e)return t.replace(/\s*$/,"");throw new Error("Side not supported: "+e)}}};new zi(Wi({separator:","}),Bi,Vi),new zi(Wi({separator:",",conjunction:"and"}),Bi,Vi),new zi(Wi({separator:",",conjunction:"or"}),Bi,Vi);const Ki=function(e){return{onSubstitution:function(t,n){if(null==e||"string"!=typeof e)throw new Error("You need to specify a string character to split by.");return"string"==typeof t&&t.includes(e)&&(t=t.split(e)),t}}};var Gi=function(e){return null!=e&&!Number.isNaN(e)&&"boolean"!=typeof e};new zi(Ki("\n"),function(){return{onSubstitution:function(e){return Array.isArray(e)?e.filter(Gi):Gi(e)?e:""}}},Wi,Bi,Vi);const Yi=function(e,t){return{onSubstitution:function(n,r){if(null==e||null==t)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(e,t)}}};new zi(Ki("\n"),Wi,Bi,Vi,Yi(/&/g,"&amp;"),Yi(/</g,"&lt;"),Yi(/>/g,"&gt;"),Yi(/"/g,"&quot;"),Yi(/'/g,"&#x27;"),Yi(/`/g,"&#x60;"));const Ji=function(e,t){return{onEndResult:function(n){if(null==e||null==t)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(e,t)}}},Qi=new zi(Ji(/(?:\n(?:\s*))+/g," "),Vi);new zi(Ji(/(?:\n\s*)/g,""),Vi),new zi(Wi({separator:","}),Ji(/(?:\s+)/g," "),Vi),new zi(Wi({separator:",",conjunction:"or"}),Ji(/(?:\s+)/g," "),Vi),new zi(Wi({separator:",",conjunction:"and"}),Ji(/(?:\s+)/g," "),Vi),new zi(Wi,Bi,Vi),new zi(Wi,Ji(/(?:\s+)/g," "),Vi);const Xi=new zi(Bi,Vi);new zi(Bi("all"),Vi);var Zi=__webpack_require__(20860),ea=__webpack_require__.n(Zi);const ta=/.^/;function na(e){return ea()(e)&&e.bind(null)}const ra=["prePublish","postPublish","preUnpublish","postUnpublish","preSave","postSave"],oa={};ra.forEach(e=>{oa[e]=[]});const ia={backends:{},templates:{},previewStyles:[],widgets:{},editorComponents:(0,Wr.Map)(),remarkPlugins:[],widgetValueSerializers:{},mediaLibraries:[],locales:{},eventHandlers:oa,formats:{},fieldActions:[],editorApi:null},aa={registerPreviewStyle:function(e,t){ia.previewStyles.push({...t,value:e})},getPreviewStyles:sa,registerPreviewTemplate:function(e,t){ia.templates[e]=t},getPreviewTemplate:la,registerWidget:ca,getWidget:ua,getWidgets:da,resolveWidget:fa,registerEditorComponent:function(e){const t=function(e){const{id:t=null,label:n="unnamed component",icon:r="exclamation-triangle",type:o="shortcode",widget:i="object",pattern:a=ta,fields:s=[],fromBlock:l,toBlock:c,toPreview:u,...d}=e;return{id:t||n.replace(/[^A-Z0-9]+/gi,"_"),label:n,type:o,icon:r,widget:i,pattern:a,fromBlock:na(l)||(()=>({})),toBlock:na(c)||(()=>"Plugin"),toPreview:na(u)||!i&&(na(c)||(()=>"Plugin")),fields:(0,Wr.fromJS)(s),...d}}(e);if("code-block"===t.type){const e=ia.editorComponents.find(e=>"code-block"===e.type);e&&(console.warn(Qi`
        Only one editor component of type "code-block" may be registered. Previously registered code
        block component(s) will be overwritten.
      `),ia.editorComponents=ia.editorComponents.delete(e.id))}ia.editorComponents=ia.editorComponents.set(t.id,t)},getEditorComponents:pa,registerRemarkPlugin:function(e){ia.remarkPlugins.push(e)},getRemarkPlugins:ha,registerWidgetValueSerializer:function(e,t){ia.widgetValueSerializers[e]=t},getWidgetValueSerializer:ga,registerBackend:function(e,t){e&&t?ia.backends[e]?console.error(`Backend [${e}] already registered. Please choose a different name.`):ia.backends[e]={init:(...e)=>new t(...e),BackendClass:t}:console.error("Backend parameters invalid. example: CMS.registerBackend('myBackend', BackendClass)")},getBackend:ma,registerMediaLibrary:function(e,t){if(ia.mediaLibraries.find(t=>e.name===t.name))throw new Error(`A media library named ${e.name} has already been registered.`);ia.mediaLibraries.push({...e,options:t})},getMediaLibrary:ya,registerLocale:function(e,t){e&&t?ia.locales[e]=t:console.error("Locale parameters invalid. example: CMS.registerLocale('locale', phrases)")},getLocale:xa,registerEventListener:function({name:e,handler:t},n={}){va(e),ia.eventHandlers[e].push({handler:t,options:n})},registerFieldAction:ba,getFieldActions:wa,removeEventListener:function({name:e,handler:t}){va(e),ia.eventHandlers[e]=t?ia.eventHandlers[e].filter(e=>e.handler!==t):[]},getEventListeners:function(e){return va(e),[...ia.eventHandlers[e]]},invokeEvent:_a,registerCustomFormat:function(e,t,n){ia.formats[e]={extension:t,formatter:n}},getCustomFormats:function(){return ia.formats},getCustomFormatsExtensions:ka,getCustomFormatsFormatters:Sa};function sa(){return ia.previewStyles}function la(e){return ia.templates[e]}function ca(e,t,n,r={}){if(Array.isArray(e))e.forEach(e=>{"object"!=typeof e?console.error(`Cannot register widget: ${e}`):ca(e)});else if("string"==typeof e){const o="string"==typeof t?ia.widgets[t].control:t;ia.widgets[e]={control:o,preview:n,schema:r}}else if("object"==typeof e){const{name:t,controlComponent:n,previewComponent:r,schema:o={},allowMapValue:i,globalStyles:a,...s}=e;if(ia.widgets[t]&&console.warn(Qi`
        Multiple widgets registered with name "${t}". Only the last widget registered with
        this name will be used.
      `),!n)throw Error(`Widget "${t}" registered without \`controlComponent\`.`);ia.widgets[t]={control:n,preview:r,schema:o,globalStyles:a,allowMapValue:i,...s}}else console.error("`registerWidget` failed, called with incorrect arguments.")}function ua(e){return ia.widgets[e]}function da(){return Uo(Object.entries(ia.widgets),e=>e.map(([e,t])=>({name:e,...t})))}function fa(e){return ua(e||"string")||ua("unknown")}function pa(){return ia.editorComponents}function ha(){return ia.remarkPlugins}function ga(e){return ia.widgetValueSerializers[e]}function ma(e){return ia.backends[e]}function ya(e){return ia.mediaLibraries.find(t=>t.name===e)}function va(e){if(!ra.includes(e))throw new Error(`Invalid event name '${e}'`)}function ba(e){if(!e||"string"!=typeof e.id||"string"!=typeof e.label)throw new Error("registerFieldAction needs an id and a label.");if("function"!=typeof e.onClick)throw new Error(`Field action "${e.id}" needs an onClick function.`);ia.fieldActions=[...ia.fieldActions.filter(t=>t.id!==e.id),e]}function wa(){return ia.fieldActions}async function _a({name:e,data:t}){va(e);const n=ia.eventHandlers[e];let r={...t};for(const{handler:e,options:o}of n){const n=await e(r,o);if(void 0!==n){const e=Wr.Map.isMap(n)&&["data","collection","slug","path"].every(e=>n.has(e))?n:r.entry.set("data",n);r={...t,entry:e}}}return r.entry}function xa(e){return ia.locales[e]}function ka(){return Object.entries(ia.formats).reduce(function(e,[t,{extension:n}]){return{...e,[t]:n}},{})}function Sa(){return Object.entries(ia.formats).reduce(function(e,[t,{formatter:n}]){return{...e,[t]:n}},{})}const Ea=["yaml-frontmatter","toml-frontmatter","json-frontmatter"],Ca={yml:"yml",yaml:"yml",toml:"toml",json:"json",frontmatter:"md","json-frontmatter":"md","toml-frontmatter":"md","yaml-frontmatter":"md"},Ta={yml:hi,yaml:hi,toml:ki,json:Si,md:Di,markdown:Di,html:Di};function Pa(e,t){const n={yml:hi,yaml:hi,toml:ki,json:Si,frontmatter:Di,"json-frontmatter":$i(t),"toml-frontmatter":Ni(t),"yaml-frontmatter":Li(t),...Sa()};if(e in n)return n[e];throw new Error(`No formatter available with name: ${e}`)}function Oa(e,t){const n=e.get("frontmatter_delimiter"),r=(o=n,Wr.List.isList(o)?n.toArray():n);var o;const i=e.get("format");if(i)return Pa(i,r);const a=t&&t.path;if(a){const e=a.split(".").pop();if(e)return ei()(Ta,e)}const s=e.get("extension");return s?ei()(Ta,s):Pa("frontmatter",r)}function Ra(){return Ra.c||(Ra.c=__webpack_require__.n(Ie()))}Ie();var Aa=__webpack_require__(57170),Ia=__webpack_require__.n(Aa),Da=__webpack_require__(30483),La=__webpack_require__.n(Da);const Na="editorial_workflow",$a={DRAFT:"draft",PENDING_REVIEW:"pending_review",PENDING_PUBLISH:"pending_publish"},Ma=(0,Wr.OrderedMap)($a);function ja(){return ja.c||(ja.c=__webpack_require__.n(S()))}function Fa(){return Fa.c||(Fa.c=__webpack_require__.n(t()))}(0,Wr.Map)({[$a.DRAFT]:"Draft",[$a.PENDING_REVIEW]:"Waiting for Review",[$a.PENDING_PUBLISH]:"Waiting to go live"}),p(),t();var Ua=__webpack_require__(97200),qa=__webpack_require__.n(Ua);const za="file_based_collection",Ba="folder_based_collection",Ha="commit_author",Wa="commit_date";Dt();var Va=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ka=Math.abs,Ga=String.fromCharCode,Ya=Object.assign;function Ja(e){return e.trim()}function Qa(e,t,n){return e.replace(t,n)}function Xa(e,t){return e.indexOf(t)}function Za(e,t){return 0|e.charCodeAt(t)}function es(e,t,n){return e.slice(t,n)}function ts(e){return e.length}function ns(e){return e.length}function rs(e,t){return t.push(e),e}var os=1,is=1,as=0,ss=0,ls=0,cs="";function us(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:os,column:is,length:a,return:""}}function ds(e,t){return Ya(us("",null,null,"",null,null,0),e,{length:-e.length},t)}function fs(){return ls=ss>0?Za(cs,--ss):0,is--,10===ls&&(is=1,os--),ls}function ps(){return ls=ss<as?Za(cs,ss++):0,is++,10===ls&&(is=1,os++),ls}function hs(){return Za(cs,ss)}function gs(){return ss}function ms(e,t){return es(cs,e,t)}function ys(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vs(e){return os=is=1,as=ts(cs=e),ss=0,[]}function bs(e){return cs="",e}function ws(e){return Ja(ms(ss-1,ks(91===e?e+2:40===e?e+1:e)))}function _s(e){for(;(ls=hs())&&ls<33;)ps();return ys(e)>2||ys(ls)>3?"":" "}function xs(e,t){for(;--t&&ps()&&!(ls<48||ls>102||ls>57&&ls<65||ls>70&&ls<97););return ms(e,gs()+(t<6&&32==hs()&&32==ps()))}function ks(e){for(;ps();)switch(ls){case e:return ss;case 34:case 39:34!==e&&39!==e&&ks(ls);break;case 40:41===e&&ks(e);break;case 92:ps()}return ss}function Ss(e,t){for(;ps()&&e+ls!==57&&(e+ls!==84||47!==hs()););return"/*"+ms(t,ss-1)+"*"+Ga(47===e?e:ps())}function Es(e){for(;!ys(hs());)ps();return ms(e,ss)}var Cs="-ms-",Ts="-moz-",Ps="-webkit-",Os="comm",Rs="rule",As="decl",Is="@keyframes";function Ds(e,t){for(var n="",r=ns(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ls(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case As:return e.return=e.return||e.value;case Os:return"";case Is:return e.return=e.value+"{"+Ds(e.children,r)+"}";case Rs:e.value=e.props.join(",")}return ts(n=Ds(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ns(e){return bs($s("",null,null,null,[""],e=vs(e),0,[0],e))}function $s(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,y=1,v=0,b="",w=o,_=i,x=r,k=b;m;)switch(h=v,v=ps()){case 40:if(108!=h&&58==Za(k,d-1)){-1!=Xa(k+=Qa(ws(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=ws(v);break;case 9:case 10:case 13:case 32:k+=_s(h);break;case 92:k+=xs(gs()-1,7);continue;case 47:switch(hs()){case 42:case 47:rs(js(Ss(ps(),gs()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=ts(k)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==y&&(k=Qa(k,/\f/g,"")),p>0&&ts(k)-d&&rs(p>32?Fs(k+";",r,n,d-1):Fs(Qa(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(rs(x=Ms(k,t,n,c,u,o,s,b,w=[],_=[],d),i),123===v)if(0===u)$s(k,t,x,x,w,i,d,s,_);else switch(99===f&&110===Za(k,3)?100:f){case 100:case 108:case 109:case 115:$s(e,x,x,r&&rs(Ms(e,x,x,0,0,o,s,b,o,w=[],d),_),o,_,d,s,r?w:_);break;default:$s(k,x,x,x,[""],_,0,s,_)}}c=u=p=0,g=y=1,b=k="",d=a;break;case 58:d=1+ts(k),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==fs())continue;switch(k+=Ga(v),v*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ts(k)-1)*y,y=1;break;case 64:45===hs()&&(k+=ws(ps())),f=hs(),u=d=ts(b=k+=Es(gs())),v++;break;case 45:45===h&&2==ts(k)&&(g=0)}}return i}function Ms(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=ns(f),h=0,g=0,m=0;h<r;++h)for(var y=0,v=es(e,d+1,d=Ka(g=a[h])),b=e;y<p;++y)(b=Ja(g>0?f[y]+" "+v:Qa(v,/&\f/g,f[y])))&&(l[m++]=b);return us(e,t,n,0===o?Rs:s,l,c,u)}function js(e,t,n){return us(e,t,n,Os,Ga(ls),es(e,2,-2),0)}function Fs(e,t,n,r){return us(e,t,n,As,es(e,0,r),es(e,r+1,-1),r)}var Us=function(e,t,n){for(var r=0,o=0;r=o,o=hs(),38===r&&12===o&&(t[n]=1),!ys(o);)ps();return ms(e,ss)},qs=new WeakMap,zs=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||qs.get(n))&&!r){qs.set(e,!0);for(var o=[],i=function(e,t){return bs(function(e,t){var n=-1,r=44;do{switch(ys(r)){case 0:38===r&&12===hs()&&(t[n]=1),e[n]+=Us(ss-1,t,n);break;case 2:e[n]+=ws(r);break;case 4:if(44===r){e[++n]=58===hs()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ga(r)}}while(r=ps());return e}(vs(e),t))}(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Bs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Hs(e,t){switch(function(e,t){return 45^Za(e,0)?(((t<<2^Za(e,0))<<2^Za(e,1))<<2^Za(e,2))<<2^Za(e,3):0}(e,t)){case 5103:return Ps+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ps+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ps+e+Ts+e+Cs+e+e;case 6828:case 4268:return Ps+e+Cs+e+e;case 6165:return Ps+e+Cs+"flex-"+e+e;case 5187:return Ps+e+Qa(e,/(\w+).+(:[^]+)/,Ps+"box-$1$2"+Cs+"flex-$1$2")+e;case 5443:return Ps+e+Cs+"flex-item-"+Qa(e,/flex-|-self/,"")+e;case 4675:return Ps+e+Cs+"flex-line-pack"+Qa(e,/align-content|flex-|-self/,"")+e;case 5548:return Ps+e+Cs+Qa(e,"shrink","negative")+e;case 5292:return Ps+e+Cs+Qa(e,"basis","preferred-size")+e;case 6060:return Ps+"box-"+Qa(e,"-grow","")+Ps+e+Cs+Qa(e,"grow","positive")+e;case 4554:return Ps+Qa(e,/([^-])(transform)/g,"$1"+Ps+"$2")+e;case 6187:return Qa(Qa(Qa(e,/(zoom-|grab)/,Ps+"$1"),/(image-set)/,Ps+"$1"),e,"")+e;case 5495:case 3959:return Qa(e,/(image-set\([^]*)/,Ps+"$1$`$1");case 4968:return Qa(Qa(e,/(.+:)(flex-)?(.*)/,Ps+"box-pack:$3"+Cs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ps+e+e;case 4095:case 3583:case 4068:case 2532:return Qa(e,/(.+)-inline(.+)/,Ps+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ts(e)-1-t>6)switch(Za(e,t+1)){case 109:if(45!==Za(e,t+4))break;case 102:return Qa(e,/(.+:)(.+)-([^]+)/,"$1"+Ps+"$2-$3$1"+Ts+(108==Za(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Xa(e,"stretch")?Hs(Qa(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Za(e,t+1))break;case 6444:switch(Za(e,ts(e)-3-(~Xa(e,"!important")&&10))){case 107:return Qa(e,":",":"+Ps)+e;case 101:return Qa(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ps+(45===Za(e,14)?"inline-":"")+"box$3$1"+Ps+"$2$3$1"+Cs+"$2box$3")+e}break;case 5936:switch(Za(e,t+11)){case 114:return Ps+e+Cs+Qa(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ps+e+Cs+Qa(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ps+e+Cs+Qa(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ps+e+Cs+e+e}return e}var Ws=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case As:e.return=Hs(e.value,e.length);break;case Is:return Ds([ds(e,{value:Qa(e.value,"@","@"+Ps)})],r);case Rs:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ds([ds(e,{props:[Qa(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ds([ds(e,{props:[Qa(t,/:(plac\w+)/,":"+Ps+"input-$1")]}),ds(e,{props:[Qa(t,/:(plac\w+)/,":-moz-$1")]}),ds(e,{props:[Qa(t,/:(plac\w+)/,Cs+"input-$1")]})],r)}return""})}}];function Vs(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Ks=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Gs=function(e,t,n){Ks(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},Ys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Js(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Qs=/[A-Z]|^ms/g,Xs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zs=function(e){return 45===e.charCodeAt(1)},el=function(e){return null!=e&&"boolean"!=typeof e},tl=Js(function(e){return Zs(e)?e:e.replace(Qs,"-$&").toLowerCase()}),nl=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Xs,function(e,t,n){return ol={name:t,styles:n,next:ol},t})}return 1===Ys[e]||Zs(e)||"number"!=typeof t||0===t?t:t+"px"};function rl(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return ol={name:o.name,styles:o.styles,next:ol},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)ol={name:a.name,styles:a.styles,next:ol},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=rl(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":el(s)&&(r+=tl(i)+":"+nl(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=rl(e,t,a);switch(i){case"animation":case"animationName":r+=tl(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)el(a[c])&&(r+=tl(i)+":"+nl(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=ol,l=n(e);return ol=s,rl(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var ol,il=/label:\s*([^\s;{]+)\s*(;|$)/g;function al(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ol=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=rl(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=rl(n,t,e[a]),r&&(o+=i[a]);il.lastIndex=0;for(var s,l="";null!==(s=il.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:ol}}var sl=!!Jt().useInsertionEffect&&Jt().useInsertionEffect,ll=sl||function(e){return e()},cl=(sl||Jt().useLayoutEffect,Jt().createContext("undefined"!=typeof HTMLElement?function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||Ws,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,f=[Ls,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[zs,Bs].concat(i,f),u=ns(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ds(Ns(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Va({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h}({key:"css"}):null)),ul=(cl.Provider,function(e){return(0,Jt().forwardRef)(function(t,n){var r=(0,Jt().useContext)(cl);return e(t,r,n)})}),dl=Jt().createContext({}),fl={}.hasOwnProperty,pl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hl=function(e,t){var n={};for(var r in t)fl.call(t,r)&&(n[r]=t[r]);return n[pl]=e,n},gl=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ks(t,n,r),ll(function(){return Gs(t,n,r)}),null},ml=ul(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[pl],i=[r],a="";"string"==typeof e.className?a=Vs(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=al(i,void 0,Jt().useContext(dl));a+=t.key+"-"+s.name;var l={};for(var c in e)fl.call(e,c)&&"css"!==c&&c!==pl&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),Jt().createElement(Jt().Fragment,null,Jt().createElement(gl,{cache:t,serialized:s,isStringTag:"string"==typeof o}),Jt().createElement(o,l))}),yl=ml,vl=It().Fragment,bl=function(e,t,n){return fl.call(t,"css")?It().jsx(yl,hl(e,t),n):It().jsx(e,t,n)},wl=function(e,t,n){return fl.call(t,"css")?It().jsxs(yl,hl(e,t),n):It().jsxs(e,t,n)};const _l=["title","path"],xl=["title","date","author","description"],kl={title:{type:"string",secondaryTypes:[],synonyms:["title","name","label","headline","header"],defaultPreview:e=>bl("h1",{children:e}),fallbackToFirstField:!0,showError:!0},shortTitle:{type:"string",secondaryTypes:[],synonyms:["short_title","shortTitle","short"],defaultPreview:e=>bl("h2",{children:e}),fallbackToFirstField:!1,showError:!1},author:{type:"string",secondaryTypes:[],synonyms:["author","name","by","byline","owner"],defaultPreview:e=>bl("strong",{children:e}),fallbackToFirstField:!1,showError:!1},date:{type:"datetime",secondaryTypes:["date"],synonyms:["date","publishDate","publish_date"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},description:{type:"string",secondaryTypes:["text","markdown"],synonyms:["shortDescription","short_description","shortdescription","description","intro","introduction","brief","content","biography","bio","summary"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1},image:{type:"image",secondaryTypes:[],synonyms:["image","thumbnail","thumb","picture","avatar","photo","cover","hero","logo"],defaultPreview:e=>e,fallbackToFirstField:!1,showError:!1}};var Sl=__webpack_require__(2033),El=__webpack_require__.n(Sl),Cl=__webpack_require__(66947),Tl=__webpack_require__.n(Cl);let Pl=function(e){return e.Ascending="Ascending",e.Descending="Descending",e.None="None",e}({});var Ol=__webpack_require__(85060),Rl=__webpack_require__.n(Ol),Al=__webpack_require__(68989),Il=__webpack_require__.n(Al),Dl=__webpack_require__(13999),Ll=__webpack_require__.n(Dl),Nl=__webpack_require__(62797),$l=__webpack_require__.n(Nl),Ml=__webpack_require__(91540);function jl(){return jl.c||(jl.c=__webpack_require__.n(Ft()))}Ft();var Fl=__webpack_require__(89589),Ul=__webpack_require__.n(Fl);function ql(e,t){return function(e,t){return`${t?"/#":""}${e}`}(`/collections/${e}/new`,t)}function zl(e){const t=e.indexOf("//");return t>-1?e.slice(t+2):e}const Bl=/[\w\-.~]/i,Hl=/[\xA0-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFEF}\u{10000}-\u{1FFFD}\u{20000}-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}\u{50000}-\u{5FFFD}\u{60000}-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}\u{90000}-\u{9FFFD}\u{A0000}-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}\u{D0000}-\u{DFFFD}\u{E1000}-\u{EFFFD}]/u;function Wl(e){return Bl.test(e)}function Vl(e){return Bl.test(e)||Hl.test(e)}function Kl(e,t){const{replacement:n,preserveSlashes:r}=t;let o;if("unicode"===e)o=Vl;else{if("ascii"!==e)throw new Error('`options.encoding` must be "unicode" or "ascii".');o=Wl}if(!Array.from(n).every(o))throw new Error("The replacement character(s) (options.replacement) is itself unsafe.");return(e,t=0,i=[e])=>r&&"/"===e&&0!==t&&t!==i.length-1||o(e)?e:n}function Gl(e,t){const{replacement:n="",encoding:r="unicode",preserveSlashes:o}=t||{};if(!Ul()(e))throw new Error("The input slug must be a string.");if(!Ul()(n))throw new Error("`options.replacement` must be a string.");return Array.from(e).map(Kl(r,{replacement:n,preserveSlashes:o})).join("")}function Yl(e,t){const{encoding:n="unicode",sanitize_replacement:r=""}=t||{};return Kl(n,{replacement:r})(e)}function Jl(e,t,n){if(!Ul()(e))throw new Error("The input slug must be a string.");const{encoding:r,clean_accents:o,sanitize_replacement:i}=t||{},a=Rl()([...o?[Ml.TF]:[],Il()(Gl,{replacement:i,encoding:r,preserveSlashes:n}),n?e=>e.split("/").filter(Boolean).map(e=>jl()()(e,{replacement:i})).join("/"):Il()(jl()(),{replacement:i})])(e),s=new RegExp(`(?:${oi()(i)})+`,"g"),l=new RegExp(`${oi()(i)}$`),c=new RegExp(`^${oi()(i)}`);return a.replace(s,i).replace(c,"").replace(l,"")}const{compileStringTemplate:Ql,parseDateFromEntry:Xl,parseDateFromEntryData:Zl,SLUG_MISSING_REQUIRED_DATE:ec,keyToPathArray:tc,addFileTemplateFields:nc}=li.stringTemplate,rc={create:"Create {{collection}} “{{slug}}”",update:"Update {{collection}} “{{slug}}”",delete:"Delete {{collection}} “{{slug}}”",uploadMedia:"Upload “{{path}}”",deleteMedia:"Delete “{{path}}”",openAuthoring:"{{message}}"},oc=/\{\{([^}]+)\}\}/g;function ic(e,t,{slug:n,path:r,collection:o,authorLogin:i,authorName:a,authorEmail:s},l){const c={...rc,...t.backend.commit_messages||{}};let u="";t.backend.signoff_commits&&(a?s?u=`\n\nSigned-off-by: ${a} <${s}>\n`:console.warn("Option signoff_commits is enabled, but author email is unknown"):console.warn("Option signoff_commits is enabled, but author name is unknown"));const d=c[e].replace(oc,(e,t)=>{switch(t){case"slug":return n||"";case"path":return r||"";case"collection":return o?o.get("label_singular")||o.get("label"):"";case"author-login":return i||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in commit message template.`),""}});return l?c.openAuthoring.replace(oc,(e,t)=>{switch(t){case"message":return d;case"author-login":return i||"";case"author-name":return a||"";default:return console.warn(`Ignoring unknown variable “${t}” in open authoring message template.`),""}})+u:d+u}function ac(e){return e.trim().toLocaleLowerCase().replace(/[']/g,"").replace(/[.]/g,"-")}function sc(e,t,n){return r=>t&&t.includes(r)?r:Rl()([e=>String(e),ac,Il()(Jl,e,n)])(r)}function lc(e){const t=e.codePointAt(0);return t<128?1:t<2048?2:t<65536?3:4}function cc(e){return Array.from(e).reduce((e,t)=>e+lc(t),0)}function uc(e,t,n,r,o){if(!e)return;const i=Ll()(e,"/"),a=t.get("type")===za?qp(t,r.get("slug")):void 0,s=a?.get("preview_path")??t.get("preview_path");if(!s)return e;let l=r.get("data");l=nc(r.get("path"),l,t.get("folder"));const c=(a?.get("preview_path_date_field")??t.get("preview_path_date_field"))||Zp(t,"date"),u=Xl(r,c),d=!!(t.get("preview_path_preserve_slashes")??t.has("nested")),f=sc(o,[l.get("dirname")],d);let p;try{p=Ql(s,u,n,l,f)}catch(e){if(e instanceof Error&&e.name===ec)return console.error(Xi`
        Collection "${t.get("name")}" configuration error:
          \`preview_path_date_field\` must be a field with a valid date. Ignoring \`preview_path\`.
      `),i;throw e}return`${i}/${Ia()(p," /")}`}function dc(e,t,n,r,o,i){if(!t||!t.get("data"))return e;let a=t.get("data").set(o,r);a=nc(t.get("path"),a,n.get("folder"));const s=Xl(t,Zp(n,"date"))||null,l=a.getIn(tc(Xp(n))),c=sc(i,[r,a.get("dirname")]);return Ql(e,s,l,a,c)}var fc=__webpack_require__(98918),pc=__webpack_require__.n(fc),hc=__webpack_require__(79950),gc=__webpack_require__.n(hc);function mc(e,t="",n="",r={}){return{collection:e,slug:t,path:n,partial:r.partial||!1,raw:r.raw||"",data:r.data||{},label:r.label||null,isModification:gc()(r.isModification)?r.isModification:null,mediaFiles:r.mediaFiles||[],author:r.author||"",updatedOn:r.updatedOn||"",status:r.status||"",meta:r.meta||{},i18n:r.i18n||{}}}const{fetchWithTimeout:yc}=si.unsentRequest;class vc{constructor(e){if(this.config=e,null==e.get("applicationID")||null==e.get("apiKey"))throw"The Algolia search integration needs the credentials (applicationID and apiKey) in the integration configuration.";this.applicationID=e.get("applicationID"),this.apiKey=e.get("apiKey");const t=e.get("indexPrefix");this.indexPrefix=t?`${t}-`:"",this.searchURL=`https://${this.applicationID}-dsn.algolia.net/1`,this.entriesCache={collection:null,page:null,entries:[]}}requestHeaders(e={}){return{"X-Algolia-API-Key":this.apiKey,"X-Algolia-Application-Id":this.applicationID,"Content-Type":"application/json",...e}}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t);return yc(r,{...t,headers:n}).then(e=>{const t=e.headers.get("Content-Type");return t&&t.match(/json/)?this.parseJsonResponse(e):e.text()})}search(e,t,n){const r=e.map(e=>({indexName:`${this.indexPrefix}${e}`,params:`query=${t}&page=${n}`}));return this.request(`${this.searchURL}/indexes/*/queries`,{method:"POST",body:JSON.stringify({requests:r})}).then(t=>{const r=t.results.map((t,n)=>t.hits.map(t=>{const r=t.path.split("/").pop().replace(/\.[^.]+$/,"");return mc(e[n],r,t.path,{data:t.data,partial:!0})}));return{entries:Ho()(r),pagination:n}})}searchBy(e,t,n){return this.request(`${this.searchURL}/indexes/${this.indexPrefix}${t}`,{params:{restrictSearchableAttributes:e,query:n}})}listEntries(e,t){return this.entriesCache.collection===e&&this.entriesCache.page===t?Promise.resolve({page:this.entriesCache.page,entries:this.entriesCache.entries}):this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:{page:t}}).then(t=>{const n=t.hits.map(t=>{const n=Vp(e,t.path);return mc(e.get("name"),n,t.path,{data:t.data,partial:!0})});return this.entriesCache={collection:e,pagination:t.page,entries:n},{entries:n,pagination:t.page}})}async listAllEntries(e){const t={hitsPerPage:1e3};let n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:t}),{nbPages:r=0,hits:o,page:i}=n;for(i+=1;i<r;)n=await this.request(`${this.searchURL}/indexes/${this.indexPrefix}${e.get("name")}`,{params:{...t,page:i}}),o=[...o,...n.hits],i+=1;const a=o.map(t=>{const n=Vp(e,t.path);return mc(e.get("name"),n,t.path,{data:t.data,partial:!0})});return a}getEntry(e,t){return this.searchBy("slug",e.get("name"),t).then(n=>{const r=n.hits.filter(e=>e.slug===t)[0];return mc(e.get("name"),t,r.path,{data:r.data,partial:!0})})}}var bc=__webpack_require__(96548),wc=__webpack_require__.n(bc);const{fetchWithTimeout:_c}=si.unsentRequest;class xc{constructor(e,t){if(this.config=e,null==e.get("getSignedFormURL"))throw"The AssetStore integration needs the getSignedFormURL in the integration configuration.";this.getToken=t,this.shouldConfirmUpload=e.get("shouldConfirmUpload",!1),this.getSignedFormURL=Ll()(e.get("getSignedFormURL"),"/")}parseJsonResponse(e){return e.json().then(t=>e.ok?t:Promise.reject(t))}urlFor(e,t){const n=[];if(t.params)for(const e in t.params)n.push(`${e}=${encodeURIComponent(t.params[e])}`);return n.length&&(e+=`?${n.join("&")}`),e}requestHeaders(e={}){return{...e}}confirmRequest(e){this.getToken().then(t=>this.request(`${this.getSignedFormURL}/${e}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({state:"uploaded"})}))}async request(e,t={}){const n=this.requestHeaders(t.headers||{}),r=this.urlFor(e,t),o=await _c(r,{...t,headers:n}),i=o.headers.get("Content-Type");return i&&i.match(/json/)?await this.parseJsonResponse(o):o.text()}async retrieve(e,t,n){const r=wc()({search:e,page:t,filter:n?"private":"public"},e=>!!e),o=function(e,t){const n=new URL(e);return Object.keys(t).forEach(e=>n.searchParams.set(e,t[e])),n.toString()}(this.getSignedFormURL,r),i={"Content-Type":"application/json",Authorization:`Bearer ${await this.getToken()}`};return(await this.request(o,{headers:i})).map(({id:e,name:t,size:n,url:r})=>({id:e,name:t,size:n,displayURL:r,url:r,path:r}))}delete(e){const t=`${this.getSignedFormURL}/${e}`;return this.getToken().then(e=>this.request(t,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}))}async upload(e,t=!1){const n={name:e.name,size:e.size};e.type&&(n.content_type=e.type),t&&(n.visibility="private");try{const t=await this.getToken(),r=await this.request(this.getSignedFormURL,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(n)}),o=r.form.url,i=r.form.fields,{id:a,name:s,size:l,url:c}=r.asset,u=new FormData;return Object.keys(i).forEach(e=>u.append(e,i[e])),u.append("file",e,e.name),await this.request(o,{method:"POST",body:u}),this.shouldConfirmUpload&&await this.confirmRequest(a),{success:!0,asset:{id:a,name:s,size:l,displayURL:c,url:c,path:c}}}catch(e){throw console.error(e),e}}}const kc=function(){let e=null;return(t,n,r)=>(e||(e=function(e,t){let n=(0,Wr.Map)({});return e.get("providers").forEach((e,r)=>{switch(r){case"algolia":n=n.set("algolia",new vc(e));break;case"assetStore":n=n.set("assetStore",new xc(e,t))}}),n}(t,n)),e.get(r))}(),Sc="SEARCH_ENTRIES_REQUEST",Ec="SEARCH_ENTRIES_SUCCESS",Cc="SEARCH_ENTRIES_FAILURE",Tc="QUERY_REQUEST",Pc="QUERY_SUCCESS",Oc="QUERY_FAILURE",Rc="SEARCH_CLEAR",Ac="CLEAR_REQUESTS";function Ic(){return{type:Rc}}function Dc(e,t,n,r,o,i){return async(a,s)=>{const l=s(),c=yg(l.config),u=lm(l,t,"search"),d=l.collections.find(e=>e.get("name")===t);a({type:Ac});const f=`${t}-${n.join()}-${r}-${o}-${i}`,p=l.search.requests.find(({id:e})=>e==f),h=p?p.queryResponse:u?kc(l.integrations,c.getToken,u).searchBy(n.map(e=>`data.${e}`),t,r):c.query(d,n,r,o,i);a(function(e,t){return{type:Tc,payload:{searchTerm:e,request:t}}}(r,p?void 0:{id:f,expires:new Date((new Date).getTime()+1e4),queryResponse:h}));try{const t=await h;return a(function(e,t){return{type:Pc,payload:{namespace:e,hits:t}}}(e,t.hits))}catch(e){return a(function(e){return{type:Oc,payload:{error:e}}}(e))}}}function Lc(e,t){return new si.Cursor(e.getIn(["cursorsByType","collectionEntries",t]))}var Nc=__webpack_require__(40905),$c=__webpack_require__.n(Nc);function Mc(e,t,n){let r=t.reduce((t,r)=>{const o=r.get("name"),i=e.get(o),a=ga(r.get("widget")),s=r.get("fields");return s&&Wr.List.isList(i)?t.set(o,i.map(e=>Mc(e,s,n))):s&&Wr.Map.isMap(i)?t.set(o,Mc(i,s,n)):a&&!$c()(i)?t.set(o,a[n](i)):$c()(i)?t:t.set(o,i)},(0,Wr.Map)());return r=e.merge(r),r}const jc="PRESENCE",Fc="CUSTOM";var Uc=__webpack_require__(68590),qc=__webpack_require__.n(Uc);function zc({predicate:e,run:t}){return{type:Hr,predicate:e,run:t}}async function Bc(e,t,n=3e4){let r=!1;const o=new Promise(n=>{e(zc(t(n)))}),i=new Promise(e=>{setTimeout(()=>{r?e():(console.warn("Wait Action timed out"),e(null))},n)});return await Promise.race([o.then(e=>(r=!0,e)).catch(null),i])}const Hc="NOTIFICATION_SEND",Wc="NOTIFICATION_UPDATE",Vc="NOTIFICATION_DISMISS",Kc="NOTIFICATION_CLEAR";function Gc(e){return{type:Hc,payload:e}}function Yc(e){return{type:Vc,id:e}}const Jc=new Set(["image/jpeg","image/png","image/webp"]);function Qc(e){const t=(e||"").toLowerCase();return"jpg"===t?"jpeg":t}function Xc(e){if("number"==typeof e)return e>0?e:null;if("string"!=typeof e)return null;const t=e.match(/^(\d+(?:\.\d+)?)[_:x](\d+(?:\.\d+)?)$/);if(!t)return null;const n=Number(t[1]),r=Number(t[2]);return n>0&&r>0?n/r:null}function Zc(e,t){const n=function(e){const t=function(e){return"function"==typeof e?.get}(e)?e.get("media_processing"):e?.media_processing;return t?.toJS?t.toJS():t}(t)??e.media_processing;if(n?.enabled)return{format:n.format?.enabled?Qc(n.format.default):void 0,quality:n.quality?n.quality/100:void 0,stripMetadata:n.strip_metadata??!1,width:n.width??null,height:n.height??null,aspectRatio:Xc(n.aspect_ratio)}}function eu(e,t){return!(!t||!Jc.has(e.type.toLowerCase())||!(t.format||t.quality||t.stripMetadata||t.width||t.height||t.aspectRatio))}function tu(e){switch(e){case"jpeg":default:return"image/jpeg";case"webp":return"image/webp";case"png":return"image/png"}}function nu(e,t){if(!t)return e;if(!t.format)return e;const n=(0,si.fileExtensionWithSeparator)(e);return`${n?(0,si.basename)(e,n):(0,si.basename)(e)}.${r=t.format,"jpeg"===r?"jpg":r}`;var r}function ru(e,t){const n=(0,si.basename)(e);return`${e.slice(0,Math.max(0,e.length-n.length))}${t}`}const ou="MEDIA_LIBRARY_OPEN",iu="MEDIA_LIBRARY_CLOSE",au="MEDIA_LIBRARY_CREATE",su="MEDIA_INSERT",lu="MEDIA_REMOVE_INSERTED",cu="MEDIA_LOAD_REQUEST",uu="MEDIA_LOAD_SUCCESS",du="MEDIA_LOAD_FAILURE",fu="MEDIA_PERSIST_REQUEST",pu="MEDIA_PERSIST_SUCCESS",hu="MEDIA_PERSIST_FAILURE",gu="MEDIA_DELETE_REQUEST",mu="MEDIA_DELETE_SUCCESS",yu="MEDIA_DELETE_FAILURE",vu="MEDIA_DISPLAY_URL_REQUEST",bu="MEDIA_DISPLAY_URL_SUCCESS",wu="MEDIA_DISPLAY_URL_FAILURE";function _u(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onClearControl({id:e})}}function xu(e){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");r&&r.onRemoveControl({id:e})}}function ku(e={}){return(t,n)=>{const r=n().mediaLibrary.get("externalLibrary");if(r){const{controlID:t,value:n,config:o=(0,Wr.Map)(),allowMultiple:i,forImage:a}=e;r.show({id:t,value:n,config:o.toJS(),allowMultiple:i,imagesOnly:a})}t(function(e){return{type:ou,payload:e}}(e))}}function Su(e,t){return(n,r)=>{const o=r(),i=o.config,a=o.entryDraft.get("entry"),s=o.entryDraft.getIn(["entry","collection"]),l=o.collections.get(s);n(function(e){return{type:su,payload:{mediaPath:e}}}(e=Array.isArray(e)?e.map(e=>Np(i,l,e,a,t)):Np(i,l,e,a,t)))}}function Eu(e){return{type:lu,payload:{controlID:e}}}function Cu(e={}){const{delay:t=0,query:n="",page:r=1,privateUpload:o}=e;return async(e,i)=>{const a=i(),s=yg(a.config),l=lm(a,null,"assetStore");if(l){const t=kc(a.integrations,s.getToken,l);e(Iu(r));try{const i=await t.retrieve(n,r,o);return e(Du(i,{page:r,canPaginate:!0,dynamicSearch:!0,dynamicSearchQuery:n,privateUpload:o}))}catch(t){return e(Lu({privateUpload:o}))}}function c(){return s.getMedia().then(t=>e(Du(t))).catch(t=>{console.error(t),404===t.status?(console.log("This 404 was expected and handled appropriately."),e(Du([]))):e(Lu())})}return e(Iu(r)),t>0?new Promise(e=>{setTimeout(()=>e(c()),t)}):c()}}function Tu({id:e,file:t,assetProxy:n,draft:r}){return{id:e,name:(0,si.basename)(n.path),displayURL:n.url,draft:r,file:t,size:t.size,url:n.url,path:n.path,field:n.field}}async function Pu({file:e,path:t,config:n,field:r}){const o=Zc(n,r);return eu(e,o)?async function(e,t,n){const r=(0,si.basename)(t),o=function(e,t){if(t.format)return t.format;const n=function(e){return Qc((0,si.fileExtension)(e).toLowerCase())}(e);return"jpeg"===n||"png"===n||"webp"===n?n:"jpeg"}(r,n),i=tu(o),a=await function(e){return"function"==typeof createImageBitmap?createImageBitmap(e):new Promise((t,n)=>{const r=URL.createObjectURL(e),o=new Image;o.onload=()=>{URL.revokeObjectURL(r),t(o)},o.onerror=()=>{URL.revokeObjectURL(r),n(new Error(`Failed to load image '${e.name}'`))},o.src=r})}(e),s=function(e,t,n){if(!n)return{x:0,y:0,width:e,height:t};if(e/t>n){const r=Math.round(t*n);return{x:Math.round((e-r)/2),y:0,width:r,height:t}}const r=Math.round(e/n);return{x:0,y:Math.round((t-r)/2),width:e,height:r}}(a.width,a.height,n.aspectRatio),{width:l,height:c}=function(e,t,n){const r=n.width??void 0,o=n.height??void 0,i=n.aspectRatio??e/t;return r&&o?{width:r,height:o}:r?{width:r,height:Math.round(r/i)}:o?{width:Math.round(o*i),height:o}:n.aspectRatio?{width:e,height:Math.round(e/i)}:{width:e,height:t}}(s.width,s.height,n),u=document.createElement("canvas"),d=u.getContext("2d");if(!d)throw new Error("Canvas 2D context is not available");u.width=l,u.height=c,d.drawImage(a,s.x,s.y,s.width,s.height,0,0,l,c),"close"in a&&"function"==typeof a.close&&a.close();const f="webp"===o?await async function(e,t,n=.75){if("webp"===t){const{encode:t}=await __webpack_require__.e(405).then(()=>__webpack_require__(67405));return t(e,{quality:Math.round(100*n)})}throw new Error(`ImageData encoding is not supported for '${t}'`)}(d.getImageData(0,0,l,c),o,n.quality):await function(e,t,n=.75){return new Promise((r,o)=>{e.toBlob(e=>{e?r(e):o(new Error(`Failed to encode image as '${t}'`))},tu(t),n)})}(u,o,n.quality),p=nu(r,n);return[{file:new File([f],p,{type:i}),path:ru(t,p)}]}(e,t,o):[{file:e,path:t}]}function Ou(e,t={}){const{privateUpload:n,field:r}=t;return async(t,o)=>{const i=o(),a=yg(i.config),s=lm(i,null,"assetStore"),l=Bu(i,r),c=Jl(e.name.toLowerCase(),i.config.slug),u=function(e,t,n,r){const o=Zc(n,r);return eu(t,o)?nu(e,o):e}(c,e,i.config,r),d=l.find(e=>e.name.toLowerCase()===u),f=$p(i.entryDraft);if(!s&&d){if(!window.confirm(`${d.name} already exists. Do you want to replace it?`))return;await t(Ru(d,{privateUpload:n}))}!s&&f||t({type:fu});try{let o,l;if(s){const t=await async function({file:e,path:t,config:n,field:r}){const[o]=await Pu({file:e,path:t,config:n,field:r});return o}({file:e,path:c,config:i.config,field:r});try{const e=kc(i.integrations,a.getToken,s),r=await e.upload(t.file,n);o=[{file:t.file,assetProxy:_i({url:r.asset.url,path:r.asset.url})}]}catch(e){o=[{file:t.file,assetProxy:_i({file:t.file,path:t.path})}]}}else{if(n)throw new Error("The Private Upload option is only available for Asset Store Integration");{const t=i.entryDraft.get("entry"),n=i.collections.get(t?.get("collection")),a=Lp(i.config,n,t,c,r);o=(await Pu({file:e,path:a,config:i.config,field:r})).map(e=>({file:e.file,assetProxy:_i({file:e.file,path:e.path,field:r})}))}}for(const{file:e,assetProxy:r}of o){let o;if(t(Xu(r)),s)o=Tu({id:await(0,si.getBlobSHA)(e),file:e,assetProxy:r,draft:!1});else{if(f){o=Tu({id:await(0,si.getBlobSHA)(e),file:e,assetProxy:r,draft:f}),l=t(zf(o));continue}o=await a.persistMedia(i.config,r)}l=t(Nu(o,{privateUpload:n}))}return l}catch(e){return console.error(e),t(Gc({message:`Failed to persist media: ${e}`,type:"error",dismissAfter:8e3})),t(function(e={}){const{privateUpload:t}=e;return{type:hu,payload:{privateUpload:t}}}({privateUpload:n}))}}}function Ru(e,t={}){const{privateUpload:n}=t;return async(t,r)=>{const o=r(),i=yg(o.config),a=lm(o,null,"assetStore");if(a){const r=kc(o.integrations,i.getToken,a);t($u());try{return await r.delete(e.id),t(Mu(e,{privateUpload:n}))}catch(e){return console.error(e),t(Gc({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(ju({privateUpload:n}))}}try{if(e.draft)t(Zu(e.path)),t(Bf({id:e.id}));else{const n=$p(o.entryDraft);t($u()),t(Zu(e.path)),await i.deleteMedia(o.config,e.path),t(Mu(e)),n&&t(Bf({id:e.id}))}}catch(e){return console.error(e),t(Gc({message:`Failed to delete media: ${e.message}`,type:"error",dismissAfter:8e3})),t(ju())}}}function Au(e){return async(t,n)=>{const{displayURL:r,id:o}=e,i=n(),a=Hu(i,o);if(!o||!r||a.get("url")||a.get("isFetching")||a.get("err"))return Promise.resolve();if("string"==typeof r)return t(Fu(o)),void t(Uu(o,r));try{const e=yg(i.config);t(Fu(o));const n=await e.getMediaDisplayURL(r);if(!n)throw new Error("No display URL was returned!");t(Uu(o,n))}catch(e){console.error(e),t(function(e,t){return{type:wu,payload:{key:e,err:t}}}(o,e))}}}function Iu(e){return{type:cu,payload:{page:e}}}function Du(e,t={}){return{type:uu,payload:{files:e,...t}}}function Lu(e={}){const{privateUpload:t}=e;return{type:du,payload:{privateUpload:t}}}function Nu(e,t={}){const{privateUpload:n}=t;return{type:pu,payload:{file:e,privateUpload:n}}}function $u(){return{type:gu}}function Mu(e,t={}){const{privateUpload:n}=t;return{type:mu,payload:{file:e,privateUpload:n}}}function ju(e={}){const{privateUpload:t}=e;return{type:yu,payload:{privateUpload:t}}}function Fu(e){return{type:vu,payload:{key:e}}}function Uu(e,t){return{type:bu,payload:{key:e,url:t}}}async function qu(e,t){!1===t.mediaLibrary.get("isLoading")||t.mediaLibrary.get("externalLibrary")||await Bc(e,e=>({predicate:({type:e})=>e===uu||e===du,run:()=>e()}))}const zu={isVisible:!1,showMediaButton:!0,controlMedia:(0,Wr.Map)(),displayURLs:(0,Wr.Map)(),config:(0,Wr.Map)()};function Bu(e,t){const{mediaLibrary:n,entryDraft:r}=e,o=$p(e.entryDraft),i=lm(e,null,"assetStore");let a;if(o&&!i){const n=r.getIn(["entry","mediaFiles"],(0,Wr.List)()).toJS(),o=r.get("entry"),i=e.collections.get(o?.get("collection")),s=Dp(e.config,i,o,t);a=n.filter(e=>function(e,t){const n=(0,Ge().dirname)(e);return n===t||n.startsWith(`${t}/_transformations/`)}(e.path,s)).map(e=>({key:e.id,...e}))}else a=n.get("files")||[];return a}function Hu(e,t){return e.mediaLibrary.getIn(["displayURLs",t],(0,Wr.Map)())}const Wu="ADD_ASSETS",Vu="ADD_ASSET",Ku="REMOVE_ASSET",Gu="LOAD_ASSET_REQUEST",Yu="LOAD_ASSET_SUCCESS",Ju="LOAD_ASSET_FAILURE";function Qu(e){return{type:Wu,payload:e}}function Xu(e){return{type:Vu,payload:e}}function Zu(e){return{type:Ku,payload:e}}const ed=_i({path:"empty.svg",file:new File(['<svg xmlns="http://www.w3.org/2000/svg"></svg>'],"empty.svg",{type:"image/svg+xml"})}),td=qc()((e,t,n)=>function(r,o){return e(nd({collection:t,entry:n,path:r,field:o}))},(e,t,n)=>n);function nd({collection:e,entry:t,path:n,field:r}){return(o,i)=>{if(!n)return ed;const a=i(),s=Lp(a.config,e,t,n,r);let{asset:l,isLoading:c,error:u}=a.medias[s]||{};return c?ed:l||((0,si.isAbsolutePath)(s)||u?(l=_i({path:s,url:n}),o(Xu(l))):(o(function(e){return async(t,n)=>{try{t({type:Gu,payload:{path:e}}),await qu(t,n());const i=(r=n(),o=e,Bu(r).find(e=>e.path===o));if(i){const r=await async function(e,t,n){const r=Hu(t,n.id);let o;if(r.get("url"))o=r.get("url");else if(r.get("err"))o=null;else{const t=n.id,i=Bc(e,e=>({predicate:({type:e,payload:n})=>(e===bu||e===wu)&&n.key===t,run:(t,n,r)=>e(r.payload.url)}));r.get("isFetching")||e(Au(n)),o=await i??null}return o}(t,n(),i);t(Xu(_i({path:e,url:r||e})))}else{const{url:r}=await async function(e,t){const n=yg(e.config),{url:r}=await n.getMediaFile(t);return{url:r}}(n(),e);t(Xu(_i({path:e,url:r})))}t(function(e){return{type:Yu,payload:{path:e}}}(e))}catch(n){t(function(e,t){return{type:Ju,payload:{path:e,error:t}}}(e,n))}var r,o}}(s)),l=ed),l)}}td.cache=new WeakMap;const rd=function(e){void 0===e&&(e={}),hr||cr(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?gr:r,i=n.hashType,a=void 0===i?"slash":i,s=e.basename?function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}(ur(e.basename)):"",l=yr[a],c=l.encodePath,u=l.decodePath;function d(){var e=u(br());return s&&(e=function(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}(e,s)),pr(e)}var f=function(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}();function p(e){xn(E,e),E.length=t.length,f.notifyListeners(E.location,E.action)}var h=!1,g=null;function m(){var e,t,n=br(),r=c(n);if(n!==r)wr(r);else{var i=d(),a=E.location;if(!h&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(g===fr(i))return;g=null,function(e){h?(h=!1,p()):f.confirmTransitionTo(e,"POP",o,function(t){t?p({action:"POP",location:e}):function(e){var t=E.location,n=w.lastIndexOf(fr(t));-1===n&&(n=0);var r=w.lastIndexOf(fr(e));-1===r&&(r=0);var o=n-r;o&&(h=!0,_(o))}(e)})}(i)}}var y=br(),v=c(y);y!==v&&wr(v);var b=d(),w=[fr(b)];function _(e){t.go(e)}var x=0;function k(e){1===(x+=e)&&1===e?window.addEventListener(mr,m):0===x&&window.removeEventListener(mr,m)}var S=!1,E={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=vr(window.location.href)),n+"#"+c(s+fr(e))},push:function(e,t){var n="PUSH",r=pr(e,void 0,void 0,E.location);f.confirmTransitionTo(r,n,o,function(e){if(e){var t=fr(r),o=c(s+t);if(br()!==o){g=t,function(e){window.location.hash=e}(o);var i=w.lastIndexOf(fr(E.location)),a=w.slice(0,i+1);a.push(t),w=a,p({action:n,location:r})}else p()}})},replace:function(e,t){var n="REPLACE",r=pr(e,void 0,void 0,E.location);f.confirmTransitionTo(r,n,o,function(e){if(e){var t=fr(r),o=c(s+t);br()!==o&&(g=t,wr(o));var i=w.indexOf(fr(E.location));-1!==i&&(w[i]=t),p({action:n,location:r})}})},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=f.setPrompt(e);return S||(k(1),S=!0),function(){return S&&(S=!1,k(-1)),t()}},listen:function(e){var t=f.appendListener(e);return k(1),function(){k(-1),t()}}};return E}();function od(e){return rd.push(`/collections/${e}`)}function id(e){return rd.replace(`/collections/${e}/new`)}function ad(e,t){return rd.replace(`/collections/${e}/entries/${t}`)}const sd="UNPUBLISHED_ENTRY_REQUEST",ld="UNPUBLISHED_ENTRY_SUCCESS",cd="UNPUBLISHED_ENTRY_REDIRECT",ud="UNPUBLISHED_ENTRIES_REQUEST",dd="UNPUBLISHED_ENTRIES_SUCCESS",fd="UNPUBLISHED_ENTRIES_FAILURE",pd="UNPUBLISHED_KEYS_SUCCESS",hd="UNPUBLISHED_ENTRY_PERSIST_REQUEST",gd="UNPUBLISHED_ENTRY_PERSIST_SUCCESS",md="UNPUBLISHED_ENTRY_PERSIST_FAILURE",yd="UNPUBLISHED_ENTRY_STATUS_CHANGE_REQUEST",vd="UNPUBLISHED_ENTRY_STATUS_CHANGE_SUCCESS",bd="UNPUBLISHED_ENTRY_STATUS_CHANGE_FAILURE",wd="UNPUBLISHED_ENTRY_PUBLISH_REQUEST",_d="UNPUBLISHED_ENTRY_PUBLISH_SUCCESS",xd="UNPUBLISHED_ENTRY_PUBLISH_FAILURE",kd="UNPUBLISHED_ENTRY_DELETE_SUCCESS";function Sd(e,t){return{type:cd,payload:{collection:e.get("name"),slug:t}}}function Ed(e,t){return{type:hd,payload:{collection:e.get("name"),slug:t}}}function Cd(e,t,n){return{type:gd,payload:{collection:e.get("name"),entry:t,slug:n}}}function Td(e,t,n){return{type:md,payload:{error:e,collection:t.get("name"),slug:n},error:e}}function Pd(e,t){return async(n,r)=>{const o=r(),i=yg(o.config),a=(0,si.generateContentKey)(e.get("name"),t);function s(e){const t=e.editorialWorkflow.getIn(["pages","keys"]);return Boolean(t?.includes(a))}if(!s(o)){let o;try{o=await i.unpublishedContentKeys(),n({type:pd,payload:{keys:o}})}catch(e){}if(o&&!o.includes(a)&&!s(r()))return n(Sd(e,t)),void n(Wf(e,t))}n(function(e,t){return{type:sd,payload:{collection:e.get("name"),slug:t}}}(e,t));try{const r=await i.unpublishedEntry(o,e,t);n(Qu(await Promise.all(r.mediaFiles.filter(e=>e.draft).map(({url:e,file:t,path:n})=>_i({path:n,url:e,file:t}))))),n(function(e,t){return{type:ld,payload:{collection:e.get("name"),entry:t}}}(e,r)),n(Ff(r))}catch(r){r.name===si.EDITORIAL_WORKFLOW_ERROR&&r.notUnderEditorialWorkflow?(n(Sd(e,t)),n(Wf(e,t))):n(Gc({message:{key:"ui.toast.onFailToLoadEntries",details:r},type:"error",dismissAfter:8e3}))}}}function Od(e){return(t,n)=>{const r=n(),o=yg(r.config),i=ei()(r.editorialWorkflow.toJS(),"pages.ids",!1),a=ei()(r.editorialWorkflow.toJS(),"pages.isFetching",!1);r.config.publish_mode!==Na||i||a||(t({type:ud}),o.unpublishedEntries(e).then(e=>{return t((n=e.entries,r=e.pagination,{type:dd,payload:{entries:n,pages:r}}));var n,r}).catch(e=>{t(Gc({message:{key:"ui.toast.onFailToLoadEntries",details:e},type:"error",dismissAfter:8e3})),t(function(e){return{type:fd,error:"Failed to load entries",payload:e}}(e))}))}}function Rd(e,t,n,r){return(o,i)=>{if(n===r)return;const a=i(),s=yg(a.config);o(function(e,t){return{type:yd,payload:{collection:e,slug:t}}}(e,t)),s.updateUnpublishedEntryStatus(e,t,r).then(()=>{o(Gc({message:{key:"ui.toast.entryUpdated"},type:"success",dismissAfter:4e3})),o(function(e,t,n){return{type:vd,payload:{collection:e,slug:t,newStatus:n}}}(e,t,r))}).catch(n=>{o(Gc({message:{key:"ui.toast.onFailToUpdateStatus",details:n},type:"error",dismissAfter:8e3})),o(function(e,t){return{type:bd,payload:{collection:e,slug:t}}}(e,t))})}}function Ad(e,t){return(n,r)=>{const o=r(),i=yg(o.config);return n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_REQUEST",payload:{collection:e,slug:t}}}(e,t)),i.deleteUnpublishedEntry(e,t).then(()=>{n(Gc({message:{key:"ui.toast.onDeleteUnpublishedChanges"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:kd,payload:{collection:e,slug:t}}}(e,t))}).catch(r=>{n(Gc({message:{key:"ui.toast.onDeleteUnpublishedChanges",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:"UNPUBLISHED_ENTRY_DELETE_FAILURE",payload:{collection:e,slug:t}}}(e,t))})}}function Id(e,t){return async(n,r)=>{const o=r(),i=o.collections,a=yg(o.config),s=im(o,e,t);n(function(e,t){return{type:wd,payload:{collection:e,slug:t}}}(e,t));try{await a.publishUnpublishedEntry(s),n(Cu()),n(Gc({message:{key:"ui.toast.entryPublished"},type:"success",dismissAfter:4e3})),n(function(e,t){return{type:_d,payload:{collection:e,slug:t}}}(e,t));const r=i.get(e);if(!r.has("nested"))return n(Wf(r,t));{n(Yf(r));const e=lg(r,s.get("path"));Wf(r,e),t!==e&&$p(o.entryDraft)&&ad(r.get("name"),e)}}catch(r){n(Gc({message:{key:"ui.toast.onFailToPublishEntry",details:r},type:"error",dismissAfter:8e3})),n(function(e,t){return{type:xd,payload:{collection:e,slug:t}}}(e,t))}}}const Dd=(0,Wr.Map)({entry:(0,Wr.Map)(),fieldsMetaData:(0,Wr.Map)(),fieldsErrors:(0,Wr.Map)(),notes:(0,Wr.List)(),hasChanged:!1,key:""});function Ld(e,t){return e.mergeWith((e,t)=>Wr.Map.isMap(e)&&Wr.Map.isMap(t)?Ld(e,t):t,t)}function Nd(e,t){if(!rh(e))return;const n=t.getIn(["entry","meta"]),r=n&&n.get("path");if(!r)return;const o=Bp(e),i=ei()(e.toJS(),["meta","path","index_file"]);if(i)return(0,Ge().join)(e.get("folder"),r,`${i}.${o}`);const a=t.getIn(["entry","newRecord"]),s=t.getIn(["entry","path"]);let l;if(a||!s){const e=t.getIn(["entry","data"]);l=(c=e&&e.get("title"))&&Jl(c.toString().toLowerCase().trim(),{sanitize_replacement:"-",encoding:"unicode"})||"untitled"}else l=(0,Ge().basename)(s,`.${o}`);var c;return(0,Ge().join)(e.get("folder"),r,`${l}.${o}`)}const $d="DEPLOY_STATUS_UPDATE",Md="DEPLOY_HISTORY_REQUEST",jd="DEPLOY_HISTORY_SUCCESS",Fd="DEPLOY_HISTORY_FAILURE";let Ud=null,qd=null,zd=null;function Bd(e){try{return yg(e().config).implementation}catch{return null}}function Hd(){return(e,t)=>{if(Ud)return;const n=Bd(t);"function"==typeof n?.subscribeDeployResolutions&&(Ud=n.subscribeDeployResolutions(t=>e(function(e){return(t,n)=>{const r=n(),o=e.entries??[],i=1===o.length?o[0]:null,a=e.targetUrl||r.config.site_url,s=i?.entryUrlPath?(c=a,u=i.entryUrlPath,c?`${c.replace(/\/$/,"")}/${u.replace(/^\//,"")}`:null):null,l="live"===e.status?{message:i?{key:"ui.toast.entryLive",entry:i.entryLabel||i.entryPath}:{key:"ui.toast.entriesLive",count:o.length},type:"success",dismissAfter:8e3,link:s?Kd(s,"ui.toast.viewEntry"):Kd(a,"ui.toast.viewSite")}:{message:{key:"ui.toast.entryDeployFailed"},type:"error",dismissAfter:!1,link:Kd(e.targetUrl,"ui.toast.viewBuildLog")};var c,u;if(null!==qd&&r.notifications.notifications.some(e=>e.id===qd))return t({type:Wc,id:qd,payload:l}),void(qd=null);t(Gc(l))}}(t)))??null)}}function Wd({silent:e=!1}={}){return async(t,n)=>{const r=Bd(n);if("function"==typeof r?.listDeployments){e||t({type:Md});try{const[e,n]=await Promise.all([r.listDeployments(),r.listCommits?.()??Promise.resolve([])]);t({type:jd,payload:{deployments:e,commits:n}})}catch(e){t({type:Fd,payload:{error:e instanceof Error?e.message:String(e)}})}}}}function Vd(e,t){const n=Bd(()=>e);if("function"!=typeof n?.commitUrl)return null;try{return n.commitUrl(t)}catch{return null}}function Kd(e,t){return e?{url:e,label:{key:t}}:void 0}const Gd="ENTRY_REQUEST",Yd="ENTRY_SUCCESS",Jd="ENTRY_FAILURE",Qd="ENTRIES_REQUEST",Xd="ENTRIES_SUCCESS",Zd="ENTRIES_FAILURE",ef="SORT_ENTRIES_REQUEST",tf="SORT_ENTRIES_SUCCESS",nf="SORT_ENTRIES_FAILURE",rf="FILTER_ENTRIES_REQUEST",of="FILTER_ENTRIES_SUCCESS",af="FILTER_ENTRIES_FAILURE",sf="GROUP_ENTRIES_REQUEST",lf="GROUP_ENTRIES_SUCCESS",cf="GROUP_ENTRIES_FAILURE",uf="DRAFT_CREATE_FROM_ENTRY",df="DRAFT_CREATE_EMPTY",ff="DRAFT_DISCARD",pf="DRAFT_CHANGE_FIELD",hf="DRAFT_FIELDS_EXTERNALLY_CHANGED",gf="DRAFT_CLEAR_FIELD_HIGHLIGHTS",mf="DRAFT_VALIDATION_ERRORS",yf="DRAFT_CLEAR_ERRORS",vf="DRAFT_LOCAL_BACKUP_RETRIEVED",bf="DRAFT_CREATE_FROM_LOCAL_BACKUP",wf="DRAFT_CREATE_DUPLICATE_FROM_ENTRY",_f="ENTRY_PERSIST_REQUEST",xf="ENTRY_PERSIST_SUCCESS",kf="ENTRY_PERSIST_FAILURE",Sf="ENTRY_DELETE_SUCCESS",Ef="ADD_DRAFT_ENTRY_MEDIA_FILE",Cf="REMOVE_DRAFT_ENTRY_MEDIA_FILE",Tf="CHANGE_VIEW_STYLE",Pf="DRAFT_NOTES_LOAD",Of="DRAFT_NOTE_ADD",Rf="DRAFT_NOTE_UPDATE",Af="DRAFT_NOTE_DELETE",If="NOTES_POLLING_UPDATE";function Df(e){return{type:Qd,payload:{collection:e.get("name")}}}function Lf(e,t,n,r,o=!0){return{type:Xd,payload:{collection:e.get("name"),entries:t,page:n,cursor:si.Cursor.create(r),append:o}}}function Nf(e,t){return{type:Zd,error:"Failed to load entries",payload:t.toString(),meta:{collection:e.get("name")}}}async function $f(e,t){const n=yg(e.config),r=lm(e,t.get("name"),"listEntries"),o=r?kc(e.integrations,n.getToken,r):n;return await o.listAllEntries(t)}function Mf(e,t,n=Pl.Ascending){return async(r,o)=>{const i=o(),a=Tp(i.entries,e.get("name"));if(r({type:ef,payload:{collection:e.get("name"),key:t,direction:n}}),!a)try{const o=await $f(i,e);r({type:tf,payload:{collection:e.get("name"),key:t,direction:n,entries:o}})}catch(o){r({type:nf,payload:{collection:e.get("name"),key:t,direction:n,error:o}})}}}function jf(e,t){return{type:Sf,payload:{collectionName:e.get("name"),entrySlug:t}}}function Ff(e){return{type:uf,payload:{entry:e}}}function Uf({field:e,value:t,metadata:n,entries:r,i18n:o}){return{type:pf,payload:{field:e,value:t,metadata:n,entries:r,i18n:o}}}function qf(e){return{type:yf,payload:{uniqueFieldId:e}}}function zf(e){return{type:Ef,payload:e}}function Bf({id:e}){return{type:Cf,payload:{id:e}}}function Hf(e){return{type:Pf,payload:{notes:e}}}function Wf(e,t){return async(n,r)=>{await qu(n,r()),n(function(e,t){return{type:Gd,payload:{collection:e.get("name"),slug:t}}}(e,t));try{const o=await Vf(r(),e,t);n(function(e,t){return{type:Yd,payload:{collection:e.get("name"),entry:t}}}(e,o)),n(Ff(o))}catch(r){n(Gc({message:{details:r.message,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),n(function(e,t,n){return{type:Jd,payload:{error:e,collection:t.get("name"),slug:n}}}(r,e,t))}}}async function Vf(e,t,n){const r=yg(e.config);return await r.getEntry(e,t,n)}const Kf=(0,Wr.fromJS)({append_next:{action:"next",append:!0}});function Gf(e){return si.Cursor.create(e).updateStore("actions",e=>e.union(Kf.filter(t=>e.has(t.get("action"))).keySeq()))}function Yf(e,t=0){return async(n,r)=>{if(e.get("isFetching"))return;const o=r(),i=xp(o.entries,e.get("name"));if(i&&i.length>0){const t=i[0];return n(Mf(e,t.get("key"),t.get("direction")))}const a=function(e){const t=e.get("sortable_fields").toArray().find(e=>void 0!==e.get("default_sort"));if(!t)return null;const n=t.get("field"),r=t.get("default_sort");let o;return o=!0===r||"asc"===r?"asc":"desc"===r?"desc":"asc",{field:n,direction:o}}(e);if(a){const t="desc"===a.direction?Pl.Descending:Pl.Ascending;return n(Mf(e,a.field,t))}const s=yg(o.config),l=lm(o,e.get("name"),"listEntries"),c=l?kc(o.integrations,s.getToken,l):s,u=!!(t&&!isNaN(t)&&t>0);n(Df(e));try{const r=e.has("nested")||sh(e);let o=await(r?c.listAllEntries(e).then(e=>({entries:e})):c.listEntries(e,t));o={...o,cursor:l?si.Cursor.create({actions:["next"],meta:{usingOldPaginationAPI:!0},data:{nextPage:t+1}}):si.Cursor.create(o.cursor)},n(Lf(e,o.cursor.meta.get("usingOldPaginationAPI")?o.entries.reverse():o.entries,o.pagination,Gf(o.cursor),u))}catch(t){return n(Gc({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(Nf(e,t)))}}}function Jf(e){return!!["true","True","TRUE"].includes(e)||!["false","False","FALSE"].includes(e)&&function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}(e)}function Qf(e,t=()=>!1){return e.reduce((e,n)=>{const r=e,o=n;if(t(o))return r;const i=o.get("field")||o.get("fields"),a="list"==o.get("widget"),s=o.get("name"),l=o.get("default",null);if(Wr.List.isList(i)||Wr.Map.isMap(i)){if(a&&Wr.List.isList(l))r[s]=l;else{const e=Wr.List.isList(i)?i:(0,Wr.List)([i]),n=a?[Qf(e,t)]:Qf(e,t);c=n,[[{}],{}].some(e=>pc()(c,e))||(r[s]=n)}return r}var c;return null!==l&&(r[s]=l),r},{})}function Xf({entry:e}){return e.get("mediaFiles").toArray().filter(e=>e.get("draft")).map(e=>_i({path:e.get("path"),file:e.get("file"),url:e.get("url"),field:e.get("field")}))}function Zf(e,t){const n=zp(e,t.get("slug"));function r(e){return function(e,t){return Mc(e,t,"serialize")}(e,n)}const o=r(t.get("data"));let i=t.set("data",o);return sh(e)&&(i=function(e,t,n){const{locales:r,defaultLocale:o}=lh(e);return r.filter(e=>e!==o).forEach(e=>{const r=fh(e);t=t.setIn(r,n(t.getIn(r)))}),t}(e,i,r)),i}function ep(e,t,n){return{type:"NOTE_PERSIST_REQUEST",payload:{collection:e.get("name"),slug:t,noteId:n.id}}}function tp(e,t,n){return{type:"NOTE_PERSIST_SUCCESS",payload:{collection:e.get("name"),slug:t,note:n}}}function np(e,t,n,r){return{type:"NOTE_PERSIST_FAILURE",error:"Failed to persist note",payload:{collection:e.get("name"),slug:t,noteId:n.id,error:r.toString()}}}function rp(e,t){return async(n,r)=>{try{const o=r(),i=yg(o.config);if(!i.startNotesPolling)return void console.warn("[DecapNotes Polling] Backend does not support notes polling");const a={onUpdate:(o,i)=>{r().entryDraft?.getIn(["entry","slug"])===t&&(n(function(e,t,n,r){return{type:If,payload:{collection:e.get("name"),slug:t,notes:n,changes:r}}}(e,t,o,i)),n(Hf(o)))},onChange:r=>{n(function(e,t,n){return{type:"NOTES_CHANGE_DETECTED",payload:{collection:e.get("name"),slug:t,change:n}}}(e,t,r))}};await i.startNotesPolling(e.get("name"),t,a),n(function(e,t){return{type:"NOTES_POLLING_START",payload:{collection:e.get("name"),slug:t}}}(e,t))}catch(e){console.error("[DecapNotes Polling] Failed to start notes polling:",e)}}}function op(e,t,n){return{error:{type:Fc,message:n(`editor.editorControlPane.widget.${t}`,{path:e})}}}const ip="VIEW_STYLE_LIST",ap="VIEW_STYLE_GRID",{keyToPathArray:sp}=li.stringTemplate;let lp,cp,up,dp,fp;const pp="decap-cms.entries.sort",hp="decap-cms.entries.viewStyle";function gp(e){return e?e.replace(/([^:]\/)\/+/g,"$1"):e}const mp=El()(()=>{const e=localStorage.getItem(pp);if(e)try{const t=JSON.parse(e);let n=(0,Wr.Map)();return Object.entries(t).forEach(([e,t])=>{let r=(0,Wr.OrderedMap)();Xo()(Object.values(t),["index"]).forEach(e=>{const{key:t,direction:n}=e;r=r.set(t,(0,Wr.fromJS)({key:t,direction:n}))}),n=n.set(e,r)}),n}catch(e){return(0,Wr.Map)()}return(0,Wr.Map)()});function yp(e){if(e){const t={};e.keySeq().forEach(n=>{const r=n;e.get(r).valueSeq().toJS().map((e,t)=>({...e,index:t})).forEach(e=>{ni()(t,[r,e.key],e)})}),localStorage.setItem(pp,JSON.stringify(t))}else localStorage.removeItem(pp)}const vp=El()(()=>localStorage.getItem(hp)||(localStorage.setItem(hp,ip),ip));function bp(e,t){const n=e.get("sort");return n?.get(t)}function wp(e,t){const n=e.get("filter");return n?.get(t)||(0,Wr.Map)()}function _p(e,t){const n=e.get("group");return n?.get(t)||(0,Wr.Map)()}function xp(e,t){const n=bp(e,t);return n?.valueSeq().filter(e=>e?.get("direction")!==Pl.None).toArray()||[]}function kp(e,t,n){return e.getIn(["entities",`${t}.${n}`])}function Sp(e,t){return e.getIn(["pages",t,"ids"],(0,Wr.List)())}function Ep(e,t){const n=Sp(e,t);return n&&n.map(n=>kp(e,t,n))}function Cp(e,t){const n=t.get("name");let r=Ep(e,n);const o=xp(e,n);if(o&&o.length>0){const e=o.map(e=>nh(t,e.get("key"))),n=o.map(e=>e.get("direction")===Pl.Ascending?"asc":"desc");r=(0,Wr.fromJS)(Tl()(r.toJS(),e,n))}const i=function(e,t){const n=wp(e,t);return n?.valueSeq().filter(e=>!0===e?.get("active")).toArray()||[]}(e,n);return i&&i.length>0&&(r=r.filter(e=>i.every(t=>{const n=t.get("pattern"),r=t.get("field"),o=(e.get("data")||(0,Wr.Map)()).getIn(sp(r));return void 0!==o&&new RegExp(String(n)).test(String(o))})).toList()),r}function Tp(e,t){return e.getIn(["pages",t,"isFetching"],!1)}function Pp(e,t){return e.find(e=>e?.get("name")===t)}function Op(e){const t=Jo()(e,"/"),n=t.indexOf("_transformations/");return n>=0?t.slice(n):(0,si.basename)(e)}function Rp(e,t,n,r){if(!t)return!1;if(r&&r.has(e))return!0;if(t.has("files")){const r=Pp(t.get("files"),n);if(r&&r.has(e))return!0}return!!t.has(e)}function Ap(e,t,n,r,o,i,a){const s=i.filter(e=>e===o)[0];if(s)return dc(s.has(e)?s.get(e):`{{${e}}}`,r,n,a,e,t.slug);for(let s of i){s.has(e)||(s=s.set(e,`{{${e}}}`));const i=dc(s.get(e),r,n,a,e,t.slug);let l=null;if(s.has("fields")?l=Ap(e,t,n,r,o,s.get("fields").toArray(),i):s.has("field")?l=Ap(e,t,n,r,o,[s.get("field")],i):s.has("types")&&(l=Ap(e,t,n,r,o,s.get("types").toArray(),i)),null!=l)return l}return null}function Ip(e,t,n,r,o){let i=t[e];if(n.has(e)||(n=n.set(e,`{{${e}}}`)),n.has("files")){i=dc(n.get(e),r,n,i,e,t.slug);let a=Pp(n.get("files"),r?.get("slug"));if(a&&(a.has(e)||(a=a.set(e,`{{${e}}}`)),i=dc(a.get(e),r,n,i,e,t.slug),o)){const s=Ap(e,t,n,r,o,a.get("fields").toArray(),i);null!==s&&(i=s)}}else if(i=dc(n.get(e),r,n,i,e,t.slug),o){const a=Ap(e,t,n,r,o,n.get("fields").toArray(),i);null!==a&&(i=a)}return i}function Dp(e,t,n,r){const o="media_folder";let i=e[o];if(Rp(o,t,n?.get("slug"),r)){const a=Ip(o,e,t,n,r);if(a.startsWith("/"))i=(0,Ge().join)(a);else{const e=n?.get("path");i=e?(0,Ge().join)((0,Ge().dirname)(e),a):t.get("folder")}}return Jo()(i,"/")}function Lp(e,t,n,r,o){if((0,si.isAbsolutePath)(r))return r;const i=Dp(e,t,n,o);return(0,Ge().join)(i,(0,si.basename)(r))}function Np(e,t,n,r,o){if((0,si.isAbsolutePath)(n))return n;const i="public_folder";let a=gp(e[i]);return Rp(i,t,r?.get("slug"),o)&&(a=gp(Ip(i,e,t,r,o))),(0,si.isAbsolutePath)(a)?function(e,...t){return $l()(e,...t)}(a,Op(n)):(0,Ge().join)(a,Op(n))}function $p(e){const t=e.get("entry");return t&&!t.isEmpty()}const{keyToPathArray:Mp}=li.stringTemplate,jp=(0,Wr.fromJS)({}),Fp={[Ba]:{entryExtension(e){const t=e.get("extension")||ei()({...Ca,...ka()},e.get("format")||"frontmatter");if(!t)throw new Error(`No extension found for format ${e.get("format")}`);return t.replace(/^\./,"")},fields:e=>e.get("fields"),entryPath(e,t){return`${e.get("folder").replace(/\/$/,"")}/${t}.${this.entryExtension(e)}`},entrySlug(e,t){const n=e.get("folder").replace(/\/$/,""),r=t.split(n+"/").pop()?.replace(new RegExp(`\\.${oi()(this.entryExtension(e))}$`),"");return r},allowNewEntries:e=>e.get("create"),allowDeletion:e=>e.get("delete",!0),templateName:e=>e.get("name")},[za]:{fileForEntry(e,t){const n=e.get("files");return n&&n.filter(e=>e?.get("name")===t).get(0)},fields(e,t){const n=this.fileForEntry(e,t);return n&&n.get("fields")},entryPath(e,t){const n=this.fileForEntry(e,t);return n&&n.get("file")},entrySlug(e,t){const n=e.get("files").filter(e=>e?.get("file")===t).get(0);return n&&n.get("name")},entryLabel(e,t){const n=this.fileForEntry(e,t);return n&&n.get("label")},allowNewEntries:()=>!1,allowDeletion:e=>e.get("delete",!1),templateName:(e,t)=>t}};function Up(e){return e.reduce((e,t)=>{if(t.has("media_folder")&&(e=[...e,t]),t.has("fields")){const n=t.get("fields")?.toArray();e=[...e,...Up(n)]}else if(t.has("field")){const n=t.get("field");e=[...e,...Up([n])]}else if(t.has("types")){const n=t.get("types")?.toArray();e=[...e,...Up(n)]}return e},[])}function qp(e,t){return e.get("files")?.toArray().find(e=>e.get("name")===t)}function zp(e,t){return Fp[e.get("type")].fields(e,t)}function Bp(e){return Fp[Ba].entryExtension(e)}function Hp(e,t){return Fp[za].entryLabel(e,t)}function Wp(e,t){return Fp[e.get("type")].entryPath(e,t)}function Vp(e,t){return Fp[e.get("type")].entrySlug(e,t)}function Kp(e){return Fp[e.get("type")].allowNewEntries(e)}function Gp(e){return Fp[e.get("type")].allowDeletion(e)}function Yp(e,t=""){let n=e.map(e=>`${t}${e.get("name")}`);return e.forEach((e,t)=>{if(e.has("fields")){const r=e.get("fields")?.toArray();n=[...n,...Yp(r,`${n[t]}.`)]}else if(e.has("field")){const r=e.get("field");n=[...n,...Yp([r],`${n[t]}.`)]}else if(e.has("types")){const r=e.get("types")?.toArray();n=[...n,...Yp(r,`${n[t]}.`)]}}),n}function Jp(e,t){const n=Mp(t);let r,o,i=e.get("fields",(0,Wr.List)()).toArray();for(;(r=n.shift())&&i;)o=i.find(e=>e.get("name")===r),o?.has("fields")?i=o?.get("fields")?.toArray():o?.has("field")?i=[o?.get("field")]:o?.has("types")&&(i=o?.get("types")?.toArray());return o}function Qp(e,t,n=()=>!1){return n()?e:e=e.map(e=>{const r=t(e);return n()?r:r.has("fields")?r.set("fields",Qp(r.get("fields"),t,n)):r.has("field")?r.set("field",Qp((0,Wr.List)([r.get("field")]),t,n).get(0)):r.has("types")?r.set("types",Qp(r.get("types"),t,n)):r}).toList()}function Xp(e){const t=e.get("identifier_field"),n=t?[t,..._l]:[..._l],r=Yp(e.get("fields",(0,Wr.List)()).toArray());return n.find(e=>r.find(t=>t.toLowerCase().trim()===e.toLowerCase().trim()))}function Zp(e,t){if("title"===t&&e.get("identifier_field"))return Xp(e);const n=kl[t],r=e.get("fields");let o;if(!r||!n)return null;const i=r.filter(e=>e?.get("widget","string")===n.type).map(e=>e?.get("name"));return o=i.filter(e=>-1!==n.synonyms.indexOf(e)),o&&o.size>0?o.first():(o=r.filter(e=>-1!==n.secondaryTypes.indexOf(e?.get("widget","string"))).map(e=>e?.get("name")).filter(e=>-1!==n.synonyms.indexOf(e)),o&&o.size>0?o.first():n.fallbackToFirstField&&i.size>0?i.first():(n.showError&&(a=`The Field ${t} is missing for the collection “${e.get("name")}”`,s=`Decap CMS tries to infer the entry ${t} automatically, but one couldn't be found for entries of the collection “${e.get("name")}”. Please check your site configuration.`,console.error(`%c ⛔ ${a}\n%c${s}\n\n`,"color: black; font-weight: bold; font-size: 16px; line-height: 50px;","color: black;")),null));var a,s}function eh(e,t){const n=e.get("summary");if(n)return function(e,t,n){let r=t.get("data");const o=Xl(t,Zp(n,"date"))||null,i=r.getIn(tc(Xp(n)));return r=nc(t.get("path"),r,n.get("folder")),t.get("author")&&!Jp(n,Ha)&&(r=r.set(Ha,t.get("author"))),t.get("updatedOn")&&!Jp(n,Wa)&&(r=r.set(Wa,t.get("updatedOn"))),Ql(e,o,i,r)}(n,t,e);if(e.get("type")==za){const n=Hp(e,t.get("slug"));if(n)return n}const r=t.get("data"),o=Zp(e,"title"),i=o&&r.getIn(Mp(o));return i||"title"===o?i:r.getIn(Mp("title"))}function th(e,t,n){let r=xl.map(r=>{const o=Zp(e,r);return!t.isGitBackend()||"author"!==r||o||n?o:Ha}).filter(Boolean);return t.isGitBackend()&&!n&&(r=[Wa,...r]),r.map(e=>({field:e}))}function nh(e,t){return t===Wa?"updatedOn":t!==Ha||Jp(e,t)?`data.${t}`:"author"}function rh(e){return e.has("folder")&&e.get("type")===Ba&&e.has("meta")&&e.get("meta")?.has("path")}const oh="i18n";let ih=function(e){return e.MULTIPLE_FOLDERS="multiple_folders",e.MULTIPLE_FILES="multiple_files",e.SINGLE_FILE="single_file",e}({}),ah=function(e){return e.TRANSLATE="translate",e.DUPLICATE="duplicate",e.NONE="none",e}({});function sh(e){return e.has(oh)}function lh(e){if(!sh(e))return{};const{structure:t,locales:n,default_locale:r}=e.get(oh).toJS();return{structure:t,locales:n,defaultLocale:r}}function ch(e,t,n){return t!==n&&e.get(oh)===ah.TRANSLATE}function uh(e,t,n){return t!==n&&e.get(oh)===ah.DUPLICATE}function dh(e,t,n){return t!==n&&e.get(oh)===ah.NONE}function fh(e){return[oh,e,"data"]}function ph(e,t){return e!==t?fh(e):["data"]}function hh(e,t,n,r,o){switch(e){case ih.MULTIPLE_FOLDERS:return n.replace(`/${r}`,`/${o}/${r}`);case ih.MULTIPLE_FILES:return n.replace(new RegExp(`${oi()(t)}$`),`${o}.${t}`);case ih.SINGLE_FILE:default:return n}}function gh(e,t,n){switch(e){case ih.MULTIPLE_FOLDERS:{const e=n.split("/");return e.pop(),e.pop()}case ih.MULTIPLE_FILES:return n.slice(0,-`.${t}`.length).split(".").pop();case ih.SINGLE_FILE:default:return""}}function mh(e,t,n){switch(e){case ih.MULTIPLE_FOLDERS:return t.replace(`${n}/`,"");case ih.MULTIPLE_FILES:return t.replace(`.${n}`,"");case ih.SINGLE_FILE:default:return t}}function yh(e,t,n,r){let o=r.find(e=>e.locale===n);o||(o=r[0],console.warn(`Could not locale entry for default locale '${n}'`));const i=r.filter(e=>e.locale!==o.locale).reduce((t,{locale:n,value:r})=>{const i=fh(n);return o&&function(e,t,n){void 0!==e.get("fields")&&e.get("fields").forEach(e=>{e&&e.get(oh)===ah.DUPLICATE&&(t.data[e.get("name")]||(t.data[e.get("name")]=n.data[e.get("name")]))})}(e,r,o.value),ni()(t,i,r.data)},{}),a=mh(t,o.value.path,n),s=Vp(e,a),l=r.filter(({locale:e,value:t})=>e===o.locale||""!==t.raw).map(({locale:e})=>e);return{...o.value,raw:"",...i,path:a,slug:s,i18nLocales:l}}function vh(e,t,n){const r=e.data[t]||{},o=n.filter(e=>e!==t).map(t=>({locale:t,value:e.data[t]})).filter(e=>e.value).reduce((e,t)=>({...e,[t.locale]:{data:t.value}}),{});return{...e,data:r,i18n:o,raw:""}}function bh(e,t,n){const{structure:r,defaultLocale:o,locales:i}=lh(e);if(r===ih.SINGLE_FILE)return n.map(e=>vh(e,o,i));const a=qa()(n.map(e=>({locale:gh(r,t,e.path),value:e})),({locale:e,value:t})=>mh(r,t.path,e));return Object.values(a).reduce((t,n)=>[...t,yh(e,r,o,n)],[])}function wh(e,t,n,r,o=[t.get("name")]){const i=e.getIn(["entry","data",...o]);return t.get(oh)===ah.DUPLICATE&&n.filter(e=>e!==r).forEach(t=>{e=e.setIn(["entry",...ph(t,r),...o],i)}),t.has("field")&&!Wr.List.isList(i)?[t.get("field")].forEach(t=>{e=wh(e,t,n,r,[...o,t.get("name")])}):t.has("fields")&&!Wr.List.isList(i)&&t.get("fields").toArray().forEach(t=>{e=wh(e,t,n,r,[...o,t.get("name")])}),e}const _h={type:"string",minLength:2,maxLength:10,pattern:"^[a-zA-Z-_]+$"},xh={type:"object",properties:{structure:{type:"string",enum:Object.values(ih)},locales:{type:"array",minItems:1,items:_h,uniqueItems:!0},default_locale:_h}},kh={...xh,required:["structure","locales"]},Sh={oneOf:[{type:"boolean"},xh]},Eh={oneOf:[{type:"boolean"},{type:"string",enum:Object.values(ah)}]},Ch={type:"object",properties:{enabled:{type:"boolean"},format:{type:"object",properties:{enabled:{type:"boolean"},default:{type:"string",enum:["jpeg","webp"]}},required:["enabled","default"],additionalProperties:!1},quality:{type:"number",minimum:1,maximum:100},strip_metadata:{type:"boolean"},width:{oneOf:[{type:"number",minimum:1},{type:"null"}]},height:{oneOf:[{type:"number",minimum:1},{type:"null"}]},aspect_ratio:{oneOf:[{type:"number",exclusiveMinimum:0},{type:"string",pattern:"^\\d+(?:\\.\\d+)?[_:x]\\d+(?:\\.\\d+)?$"},{type:"null"}]}},required:["enabled"],additionalProperties:!1};function Th(){const e=crypto.randomUUID();return{$id:`fields_${e}`,type:"array",minItems:1,items:{$id:`field_${e}`,type:"object",properties:{name:{type:"string"},label:{type:"string"},widget:{type:"string"},required:{type:"boolean"},i18n:Eh,hint:{type:"string"},media_processing:Ch,pattern:{type:"array",minItems:2,items:[{oneOf:[{type:"string"},{instanceof:"RegExp"}]},{type:"string"}]},field:{$ref:`field_${e}`},fields:{$ref:`fields_${e}`},types:{$ref:`fields_${e}`}},select:{$data:"0/widget"},selectCases:{...Rh()},required:["name"]},uniqueItemProperties:["name"]}}const Ph={type:"array",minItems:1,items:{type:"object",properties:{label:{type:"string"},field:{type:"string"},pattern:{oneOf:[{type:"boolean"},{type:"string"}]}},additionalProperties:!1,required:["label","field","pattern"]}},Oh={type:"array",minItems:1,items:{type:"object",properties:{label:{type:"string"},field:{type:"string"},pattern:{type:"string"}},additionalProperties:!1,required:["label","field"]}};function Rh(){const e=da().map(e=>({[e.name]:e.schema}));return Object.assign(...e)}class Ah extends Error{constructor(e,...t){const n=e.map(({message:e,instancePath:t})=>{const n=t.slice(1).split("/").map(e=>e.match(/^\d+$/)?`[${e}]`:`.${e}`).join("").slice(1);return`${n?`'${n}'`:"config"} ${e}`}).join("\n");super(n,...t),this.errors=e,this.message=n}toString(){return this.message}}function Ih(e){const t=(e.integrations||[]).reduce((t,n)=>{const{hooks:r,collections:o,provider:i,...a}=n;return t.providers[i]={...a},o?(("*"===o?e.collections.map(e=>e.name):o).forEach(e=>{r.forEach(n=>{t.hooks[e]?t.hooks[e][n]=i:t.hooks[e]={[n]:i}})}),t):(r.forEach(e=>{t.hooks[e]=i}),t)},{providers:{},hooks:{}});return(0,Wr.fromJS)(t)}const Dh=(0,Wr.fromJS)({providers:{},hooks:{}});function Lh(e,t,n){return t?e.getIn(["hooks",t,n],!1):e.getIn(["hooks",n],!1)}const Nh="CONFIG_REQUEST",$h="CONFIG_SUCCESS",Mh="CONFIG_FAILURE";function jh(e){return"types"in e||"field"in e}function Fh(e,t){return e.map(e=>{const n=t(e);return function(e){return"fields"in e}(n)?{...n,fields:Fh(n.fields,t)}:jh(n)&&n.field?{...n,field:Fh([n.field],t)[0]}:jh(n)&&n.types?{...n,types:Fh(n.types,t)}:n})}function Uh(e){return"media_folder"in e&&!("public_folder"in e)?{...e,public_folder:e.media_folder}:e}const qh={dateFormat:"date_format",timeFormat:"time_format",pickerUtc:"picker_utc",editorComponents:"editor_components",valueType:"value_type",valueField:"value_field",searchFields:"search_fields",displayFields:"display_fields",optionsLength:"options_length"};function zh(e){const t=Object.keys(qh).filter(t=>t in e).map(t=>{const n=qh[t];return console.warn(`Field ${e.name} is using a deprecated configuration '${t}'. Please use '${n}'`),{[n]:e[t]}});return Object.assign({},e,...t)}function Bh(e){return!0===e[oh]?{...e,[oh]:ah.TRANSLATE}:!1!==e[oh]&&e[oh]?e:{...e,[oh]:ah.NONE}}function Hh(e,t){if("boolean"==typeof e)return t;{const n=e.locales||t.locales,r=e.default_locale||n[0],o=Ra()()(t,e);return o.locales=n,o.default_locale=r,Kh(o),o}}function Wh(e,t){return Fh(e,t?Bh:e=>{const t={...e};return delete t[oh],t})}function Vh(e){if(e&&e.structure!==ih.SINGLE_FILE)throw new Error(`i18n configuration for files collections is limited to ${ih.SINGLE_FILE} structure`)}function Kh(e){if(e&&e.default_locale&&!e.locales.includes(e.default_locale))throw new Error(`i18n locales '${e.locales.join(", ")}' are missing the default locale ${e.default_locale}`)}function Gh(e,t){return!!Lh(Ih(e),t.name,"listEntries")}function Yh(e){return{type:$h,payload:e}}function Jh(e){return{type:Mh,error:"Error loading config",payload:e}}function Qh(e){return e.locale||"en"}function Xh(e){return e.publish_mode===Na}const Zh=Uo((e,t)=>{switch(t.type){case Nh:e.isFetching=!0;break;case $h:return{...t.payload,isFetching:!1,error:void 0};case Mh:e.isFetching=!1,e.error=t.payload.toString()}},{isFetching:!0}),{extractTemplateVars:eg,dateParsers:tg,expandPath:ng}=li.stringTemplate;class rg{storageKey="decap-cms-user";retrieve(){const e=window.localStorage.getItem(this.storageKey);return e&&JSON.parse(e)}store(e){window.localStorage.setItem(this.storageKey,JSON.stringify(e))}logout(){window.localStorage.removeItem(this.storageKey)}}function og(e,t){const n="backup";return e?`${n}.${e}${t?`.${t}`:""}`:n}function ig(e,t){const n=ei()(t.data,e);if(n)return String(n);{const n=e.split(".")[0];return t[n]?t[n]:""}}function ag(e){return t=>e.reduce((e,n)=>{const r=ig(n,t);return r?`${e} ${r}`:e},"")}function sg(e,t){return e.score>t.score?-1:e.score<t.score?1:0}function lg(e,t){const n=e.get("folder",""),r=t.toLowerCase().replace(n.toLowerCase(),"");return(0,Ge().join)((0,Ge().dirname)(Jo()(r,"/")),(0,Ge().basename)(r,(0,Ge().extname)(t)))}let cg=[];function ug(e,t){return rh(t)?(0,Ge().dirname)(e).slice(t.get("folder").length+1)||"/":e}function dg(e){let t;return t=e.get("nested")?.get("depth")||(0,si.getPathDepth)(e.get("path","")),sh(e)&&(t=function(e,t){const{structure:n}=lh(e);return n===ih.MULTIPLE_FOLDERS?t+1:t}(e,t)),t}function fg(e,{defaultLocale:t,structure:n},r=t){return n===ih.MULTIPLE_FOLDERS?`${r}\\/${e}`:n===ih.MULTIPLE_FILES?`${e}\\.${r}\\..*`:e}function pg(e){return e.get("path")?`${e.get("folder")}/${e.get("path")}`.replace(/{{.*}}/gm,"(.*)"):""}function hg(e,t){try{return eh(e,t)}catch{return}}class gg{constructor(e,{backendName:t,authStore:n,config:r}){if(this.deleteAnonymousBackup(),this.config=r,this.implementation=e.init(this.config,{useWorkflow:Xh(this.config),updateUserCredentials:this.updateUserCredentials,retrieveUserCredentials:this.retrieveUserCredentials,initialWorkflowStatus:Ma.first(),onSessionInvalid:e=>cg.forEach(t=>t(e))}),this.backendName=t,this.authStore=n,null===this.implementation)throw new Error("Cannot instantiate a Backend with no implementation");this.backupSync=(0,si.asyncLock)();const o=ia.editorApi,i=this.implementation;o&&"function"==typeof i.attachEditor&&i.attachEditor({editor:o,registerFieldAction:ba})}async status(){let e={auth:{status:!0},api:{status:!0,statusPage:""}};for(let t=1;t<=3;t++){if(e=await this.implementation.status(),Object.values(e).every(e=>!0===e.status))return e;await new Promise(e=>setTimeout(e,1e3*t))}return e}currentUser(){if(this.user)return this.user;const e=this.authStore.retrieve();return e&&e.backendName===this.backendName?Promise.resolve(this.implementation.restoreUser(e)).then(e=>(this.user={...e,backendName:this.backendName},this.authStore.store(this.user),this.user)):Promise.resolve(null)}isGitBackend(){return this.implementation.isGitBackend?.()||!1}updateUserCredentials=e=>{const t=this.authStore.retrieve();if(t&&t.backendName===this.backendName)return this.user={...t,...e},this.authStore.store(this.user),this.user};retrieveUserCredentials=()=>{const e=this.authStore?.retrieve();return e&&e.backendName===this.backendName?e:null};authComponent(){return this.implementation.authComponent()}authenticate(e){return this.implementation.authenticate(e).then(e=>(this.user={...e,backendName:this.backendName},this.authStore&&this.authStore.store(this.user),this.user))}async logout(){try{await this.implementation.logout()}catch(e){console.warn("Error during logout",e.message)}finally{this.user=null,this.authStore&&this.authStore.logout()}}getToken=()=>this.implementation.getToken();async entryExist(e,t,n,r){const o=r&&await this.implementation.unpublishedEntry({collection:e.get("name"),slug:n}).catch(e=>e.name===si.EDITORIAL_WORKFLOW_ERROR&&e.notUnderEditorialWorkflow?Promise.resolve(!1):Promise.reject(e));if(o)return o;let i=t;if(sh(e)){const{structure:r,defaultLocale:o}=lh(e);i=hh(r,Bp(e),t,n,o)}return await this.implementation.getEntry(i).then(e=>e?.data).catch(e=>{if(404===e?.status)return!1;throw e})}async generateUniqueSlug(e,t,n,r,o){const i=n.slug;let a,s=1/0;if(o){const t=lg(e,o);a=(e="")=>`${t}${e}`}else s=function(e,t){const n=["cms",t?.backend?.open_authoring?t.backend.repo:void 0,e.get("name")].filter(Boolean).join("/")+"/",r=Math.min(200,244-cc(n));return Math.max(r,32)}(e,n),a=function(e,t,n){const r=e.get("slug")||"{{slug}}",o=Xp(e),i=t.getIn(tc(o));if(!i)throw new Error("Collection must have a field name that is a valid entry identifier, or must have `identifier_field` set");const a=sc(n),s=Zl(t,Zp(e,"date"))||new Date(Date.now()),l=Ql(r,s,i,t,a);if(!e.has("path"))return(e="")=>`${l}${e}`;const c=ac(e.get("path")),u=new RegExp(`{{ *(?:slug|${oi()(o)}) *(?:\\|[^}]*)?}}`,"gi"),d=sc(n,[l]);return(e="")=>{const n=c.replace(u,t=>`${t}${e}`),r=Ql(n,s,l,t,d);return n===c?`${r}${e}`:r}}(e,t,i);function l(e=""){const t=a(e);return cc(t)>s?`${function(e,t,n){if(cc(e)<=t)return e;let r=0;const o=[];for(const n of Array.from(e)){if(r+=lc(n),r>t)break;o.push(n)}const i=n?.sanitize_replacement;let a,s=o.join("");do{a=s,s=s.replace(/[\s\-_./]+$/u,""),i&&s.endsWith(i)&&(s=s.slice(0,-i.length))}while(s!==a);return s}(t,s-cc(e),i)}${e}`:t}let c=1,u=l();for(;r.includes(u)||await this.entryExist(e,Wp(e,u),u,Xh(n));)u=l(`${Yl(" ",i)}${c++}`);return u}async entrySlugsForCollectionLimit(e,t,n){const r=await this.listAllEntries(e);let o=(0,Wr.Set)(r.map(e=>e.slug)).union(n);if(Xh(t)){const t=await this.implementation.unpublishedEntries(),n=await Promise.all(t.map(e=>this.implementation.unpublishedEntry({id:e}))),r=e.get("name");n.forEach(e=>{e.collection===r&&(o=o.add(e.slug))})}return o}processEntries(e,t){const n=e.map(e=>mc(t.get("name"),Vp(t,e.file.path),e.file.path,{raw:e.data||"",label:e.file.label,author:e.file.author,updatedOn:e.file.updatedOn,meta:{path:ug(e.file.path,t)}})).map(this.entryWithFormat(t)),r=sh(t)?bh(t,Bp(t),n):n,o=t.get("filter");return o?this.filterEntries({entries:r},o):r}async listEntries(e){const t=Bp(e);let n;const r=e.get("type");if(r===Ba)n=()=>{const n=dg(e);return this.implementation.entriesByFolder(e.get("folder"),t,n)};else{if(r!==za)throw new Error(`Unknown collection type: ${r}`);{const t=e.get("files").map(e=>({path:e.get("file"),label:e.get("label")})).toArray();n=()=>this.implementation.entriesByFiles(t)}}const o=await n(),i=si.Cursor.create(o[si.CURSOR_COMPATIBILITY_SYMBOL]).wrapData({cursorType:"collectionEntries",collection:e});return{entries:this.processEntries(o,e),pagination:i.meta?.get("page"),cursor:i}}async getNotes(e,t){return"function"==typeof this.implementation.getNotes?this.implementation.getNotes(e,t):(console.warn(`Backend '${this.backendName}' does not support notes`),[])}async addNote(e,t,n,r){if("function"==typeof this.implementation.addNote)return this.implementation.addNote(e,t,n,r);throw new Error(`Backend '${this.backendName}' does not support adding notes`)}async updateNote(e,t,n,r){if("function"==typeof this.implementation.updateNote)return this.implementation.updateNote(e,t,n,r);throw new Error(`Backend '${this.backendName}' does not support updating notes`)}async deleteNote(e,t,n){if("function"==typeof this.implementation.deleteNote)return this.implementation.deleteNote(e,t,n);throw new Error(`Backend '${this.backendName}' does not support deleting notes`)}async toggleNoteResolution(e,t,n){if("function"==typeof this.implementation.toggleNoteResolution)return this.implementation.toggleNoteResolution(e,t,n);throw new Error(`Backend '${this.backendName}' does not support toggling note resolution`)}async startNotesPolling(e,t,n){if(this.implementation.startNotesPolling)return this.implementation.startNotesPolling(e,t,n);console.warn("Backend does not support notes polling")}async stopNotesPolling(e,t){if("function"==typeof this.implementation.stopNotesPolling)return this.implementation.stopNotesPolling(e,t)}async refreshNotesNow(e,t){if("function"==typeof this.implementation.refreshNotesNow)return this.implementation.refreshNotesNow(e,t);console.warn(`Backend '${this.backendName}' does not support manual refresh`)}reopenIssueForUnpublishedEntry(e,t){return"function"==typeof this.implementation.reopenIssueForUnpublishedEntry?this.implementation.reopenIssueForUnpublishedEntry(e,t):Promise.resolve()}async getPRMetadata(e,t){return"function"==typeof this.implementation.getPRMetadata?this.implementation.getPRMetadata(e,t):null}async listAllEntries(e,t){if(e.get("folder")&&this.implementation.allEntriesByFolder){const n=dg(e),r=Bp(e);return this.implementation.allEntriesByFolder(e.get("folder"),r,n,function(e){let t=pg(e);return sh(e)&&(t=fg(t,lh(e))),t?new RegExp(t):void 0}(e),t,function(e){if(!sh(e))return;const t=lh(e),{structure:n,defaultLocale:r,locales:o}=t;if(n===ih.SINGLE_FILE)return;const i=(o||[]).filter(e=>e!==r);if(0===i.length)return;const a=fg(pg(e),t,`(?:${i.map(oi()).join("|")})`);return a?new RegExp(a):void 0}(e)).then(t=>this.processEntries(t,e))}const n=await this.listEntries(e),{entries:r}=n;let{cursor:o}=n;for(;o&&o.actions.includes("next");){const{entries:e,cursor:t}=await this.traverseCursor(o,"next");r.push(...e),o=t}return r}async search(e,t){const n=[],r=!0===this.implementation.searchesEntryBody,o=e.map(async e=>{const n=e.get("summary",""),o=eg(n);let i=[];e.get("type")===za?e.get("files")?.forEach(e=>{const t=e.get("fields").map(e=>e.get("name")).toArray();i=[...i,...t]}):(i=[Zp(e,"title"),Zp(e,"shortTitle"),Zp(e,"author"),...o.map(t=>tg[t]?Zp(e,"date"):t)],r&&i.push("body"));const a=i.filter(Boolean),s=await this.listAllEntries(e,t);return ii.filter(t,s,{extract:ag(Go()(a))})}).map(e=>e.catch(e=>(n.push(e),[]))),i=await Promise.all(o).then(e=>Ho()(e));if(n.length>0)throw new Error({message:"Errors occurred while searching entries locally!",errors:n});return{entries:i.filter(({score:e})=>e>5).sort(sg).map(e=>e.original)}}async query(e,t,n,r,o){let i=await this.listAllEntries(e);r&&(i=i.filter(e=>e.slug===r));const a=function(e,t){return e.reduce((e,n)=>{const r=t.reduce((e,t)=>{const r=ng({data:n.data,path:t});return e.push(...r),e},[]);for(let t=0;t<r.length;t++)e.push({...n,field:r[t]});return e},[])}(i,t);let s=ii.filter(n,a,{extract:e=>ig(e.field,e)}).sort(sg).map(e=>e.original);void 0!==o&&o>0&&(s=s.slice(0,o));const l=function(e){const t=e.map(e=>e.field),n={},r=e.reduce((e,t)=>{if(!e[t.slug]){const{field:r,...o}=t;e[t.slug]=o,n[t.slug]=(0,Wr.Set)()}const r=t.field.split(".");let o=e[t.slug].data;for(let e=0;e<r.length;e++)if(o=o[r[e]],Array.isArray(o)){const o=r.slice(0,e+1).join(".");n[t.slug]=n[t.slug].add(o)}return e},{});return Object.keys(r).forEach(e=>{const o=r[e].data;for(const r of n[e].toArray()){const e=ei()(o,r),n=e.filter((e,n)=>t.some(e=>`${e}.`.startsWith(`${r}.${n}.`)));n.sort((n,o)=>{const i=e.indexOf(n),a=e.indexOf(o),s=`${r}.${i}.`,l=`${r}.${a}.`;return t.findIndex(e=>`${e}.`.startsWith(s))-t.findIndex(e=>`${e}.`.startsWith(l))}),ni()(o,r,n)}}),Object.values(r)}(s);return{query:n,hits:l}}traverseCursor(e,t){const[n,r]=e.unwrapData(),o=n.get("collection");return this.implementation.traverseCursor(r,t).then(async({entries:e,cursor:t})=>({entries:this.processEntries(e,o),cursor:si.Cursor.create(t).wrapData({cursorType:"collectionEntries",collection:o})}))}async getLocalDraftBackup(e,t){const n=og(e.get("name"),t),r=await si.localForage.getItem(n);if(!r||!r.raw.trim())return{};const{raw:o,path:i}=r;let{mediaFiles:a=[]}=r;a=a.map(e=>e.file?{...e,url:URL.createObjectURL(e.file)}:e);const s=Hp(e,t),l=n=>this.entryWithFormat(e)(mc(e.get("name"),t,i,{raw:n,label:s,mediaFiles:a,meta:{path:ug(i,e)}})),c=l(o);if(sh(e)&&r.i18n){const e=function(e,t){const n=Object.entries(e).reduce((e,[n,{raw:r}])=>{const o=t(r);return{...e,[n]:{data:o.data}}},{});return n}(r.i18n,l);c.i18n=e}return{entry:c}}async persistLocalDraftBackup(e,t){try{await this.backupSync.acquire();const n=og(t.get("name"),e.get("slug")),r=this.entryToRaw(t,e);if(!r.trim())return;const o=await Promise.all(e.get("mediaFiles").toJS().map(async e=>{if(e.url?.startsWith("blob:")){const t=await fetch(e.url).then(e=>e.blob());return{...e,file:(0,si.blobToFileObj)(e.name,t)}}return e}));let i;return sh(t)&&(i=function(e,t,n){const{locales:r,defaultLocale:o}=lh(e);return r.filter(e=>e!==o).reduce((e,r)=>{const i=ph(r,o),a=t.getIn(i);if(!a)return e;const s=t.set("data",a);return{...e,[r]:{raw:n(s)}}},{})}(t,e,e=>this.entryToRaw(t,e))),await si.localForage.setItem(n,{raw:r,path:e.get("path"),mediaFiles:o,...i&&{i18n:i}}),await si.localForage.setItem(og(),r)}catch(e){console.warn("persistLocalDraftBackup",e)}finally{this.backupSync.release()}}async deleteLocalDraftBackup(e,t){try{return await this.backupSync.acquire(),await si.localForage.removeItem(og(e.get("name"),t)),t&&await si.localForage.removeItem(og(e.get("name"))),await this.deleteAnonymousBackup()}catch(e){console.warn("deleteLocalDraftBackup",e)}finally{this.backupSync.release()}}deleteAnonymousBackup(){return si.localForage.removeItem(og())}async getEntry(e,t,n){const r=Wp(t,n),o=Hp(t,n),i=Bp(t),a=async r=>{const i=await this.implementation.getEntry(r);let a=mc(t.get("name"),n,i.file.path,{raw:i.data,label:o,mediaFiles:[],meta:{path:ug(i.file.path,t)}});return a=this.entryWithFormat(t)(a),a=await this.processEntry(e,t,a),a};let s;return s=sh(t)?await async function(e,t,n,r,o){const{structure:i,locales:a,defaultLocale:s}=lh(e);let l;if(i===ih.SINGLE_FILE)l=vh(await o(n),s,a);else{const c=await Promise.allSettled(a.map(async e=>{const a=hh(i,t,n,r,e);return{value:await o(a),locale:e}})),u=c.map(e=>"fulfilled"===e.status?e.value:void 0).filter(e=>void 0!==e);if(0===u.length){const[e=new Error("No entry values found for any locale")]=c.map(e=>"rejected"===e.status?e.reason:void 0).filter(e=>void 0!==e);throw e}l=yh(e,i,s,u)}return l}(t,i,r,n,a):await a(r),s}getMedia(){return this.implementation.getMedia()}getMediaFile(e){return this.implementation.getMediaFile(e)}getMediaDisplayURL(e){if(this.implementation.getMediaDisplayURL)return this.implementation.getMediaDisplayURL(e);const t=new Error("getMediaDisplayURL is not implemented by the current backend, but the backend returned a displayURL which was not a string!");return t.displayURL=e,Promise.reject(t)}entryWithFormat(e){return t=>{const n=Oa(e,t);if(t&&void 0!==t.raw){const e=n&&zo()(n.fromFile.bind(n,t.raw))||{};return Vo()(e)&&console.error(e),Object.assign(t,{data:Vo()(e)?{}:e})}return n.fromFile(t)}}async processUnpublishedEntry(e,t,n){const{slug:r}=t;let o;if(e.get("type")===za){const t=e.get("files").find(e=>e?.get("name")===r);o=(0,Ge().extname)(t.get("file"))}else o=Bp(e);const i=[];if(n){const n=t.diffs.filter(e=>!e.path.endsWith(o)),a=await Promise.all(n.map(t=>this.implementation.unpublishedEntryMediaFile(e.get("name"),r,t.path,t.id)));i.push(...a.map(e=>({...e,draft:!0})))}const a=Xo()(t.diffs.filter(e=>e.path.endsWith(o)),e=>e.path.length),s=(n,o,a)=>{const s=mc(e.get("name"),r,o,{raw:n,isModification:!a,label:e&&Hp(e,r),mediaFiles:i,updatedOn:t.updatedAt,author:t.pullRequestAuthor,status:t.status,meta:{path:ug(o,e)}});return this.entryWithFormat(e)(s)},l=async n=>{const r=await this.implementation.unpublishedEntryDataFile(e.get("name"),t.slug,n.path,n.id);return s(r,n.path,n.newFile)};if(a.length<=0){const t=await this.implementation.getEntry(Wp(e,r));return s(t.data,t.file.path,!1)}if(sh(e)){const t=Wp(e,r),n=function(e,t,n,r,o){const{structure:i}=lh(e);if(i===ih.SINGLE_FILE)return o;const a=function(e,t,n,r){const{structure:o,locales:i}=lh(e);return o===ih.SINGLE_FILE?[n]:i.map(e=>hh(o,t,n,r,e))}(e,t,n,r),s=a.reduce((e,t)=>{const n=o.find(e=>e.path===t);return n?[...e,n]:[...e,{path:t,id:"",newFile:!1}]},[]);return s}(e,o,t,r,a);let i=await Promise.all(n.map(e=>l(e).catch(()=>null)));return i=i.filter(Boolean),(await bh(e,o,i))[0]}return await l(a[0])}async unpublishedContentKeys(){return this.implementation.unpublishedEntries()}async unpublishedEntries(e){const t=await this.implementation.unpublishedEntries();return{pagination:0,entries:(await Promise.all(t.map(async t=>{const n=await this.implementation.unpublishedEntry({id:t}),r=n.collection,o=e.find(e=>e.get("name")===r);return o?await this.processUnpublishedEntry(o,n,!1):(console.warn(`Missing collection '${r}' for unpublished entry '${t}'`),null)}))).filter(Boolean)}}async processEntry(e,t,n){const r=Lh(e.integrations,null,"assetStore"),o=function(e,t,n){const r=function(e,t){return e.has("folder")?Up(e.get("fields").toArray()):e.has("files")?Up(qp(e,t)?.get("fields").toArray()||[]):[]}(t,n.get("slug")),o=r.map(r=>Dp(e,t,n,r));return t.has("files")&&qp(t,n.get("slug"))&&o.unshift(Dp(e,t,n,void 0)),t.has("media_folder")&&(t=t.delete("files"),o.unshift(Dp(e,t,n,void 0))),(0,Wr.Set)(o).toArray()}(e.config,t,(0,Wr.fromJS)(n));if(o.length>0&&!r){const e=await Promise.all(o.map(e=>this.implementation.getMedia(e)));n.mediaFiles=n.mediaFiles.concat(...e)}else n.mediaFiles=n.mediaFiles.concat(e.mediaLibrary.get("files")||[]);return n}async unpublishedEntry(e,t,n){const r=await this.implementation.unpublishedEntry({collection:t.get("name"),slug:n});let o=await this.processUnpublishedEntry(t,r,!0);return o=await this.processEntry(e,t,o),o}getDeploy(e,t,n){const r=this.config.site_url;if(r&&!1!==this.config.show_preview_links)return{url:uc(r,e,t,n,this.config.slug),status:"SUCCESS"}}async getDeployPreview(e,t,n,{maxAttempts:r=1,interval:o=5e3,signal:i}={}){if(!this.implementation.getDeployPreview||!1===this.config.show_preview_links)return;let a,s=0;for(;!a&&s<r;){if(i?.aborted)return;s++,a=await this.implementation.getDeployPreview(e.get("name"),t),a||await new Promise(e=>setTimeout(()=>e(void 0),o))}return a?{url:uc(a.url,e,t,n,this.config.slug),status:a.status?a.status.toUpperCase():""}:void 0}async persistEntry({config:e,collection:t,entryDraft:n,assetProxies:r,usedSlugs:o=(0,Wr.List)(),unpublished:i=!1,status:a}){const s=await this.invokePreSaveEvent(n.get("entry"));let l;l=void 0===s.get("data")?s&&n.setIn(["entry","data"],s)||n:s&&n.setIn(["entry"],s)||n;const c=l.getIn(["entry","newRecord"])||!1,u=Xh(e),d=Nd(t,l);let f;if(c){if(!Kp(t))throw new Error("Not allowed to create new entries in this collection");const n=t.get("limit");if(t.get("type")===Ba&&null!=n&&(await this.entrySlugsForCollectionLimit(t,e,o)).size>=n)throw new Error(`Entry limit of ${n} reached for collection ${t.get("name")}`);const i=await this.generateUniqueSlug(t,l.getIn(["entry","data"]),e,o,d),a=d||Wp(t,i);f={path:a,slug:i,raw:this.entryToRaw(t,l.get("entry"))},function(e,t,n,r,o){e.map(e=>{const i=e.path,a=Lp(t,n,r.get("entry").set("path",o),i,e.field);e.path=a})}(r,e,t,l,a)}else{const e=l.getIn(["entry","slug"]),n=l.getIn(["entry","path"]);f={path:n,slug:d&&!u?lg(t,d):e,raw:this.entryToRaw(t,l.get("entry")),newPath:d===n?void 0:d}}const{slug:p,path:h,newPath:g}=f;let m=[f];if(sh(t)){const e=Bp(t);m=function(e,t,n,r,o,i,a){const{structure:s,defaultLocale:l,locales:c}=lh(e);if(s===ih.SINGLE_FILE){const e=c.reduce((e,t)=>{const r=ph(t,l);return e.set(t,n.getIn(r))},(0,Wr.Map)({})),u=n.set("data",e);return[{path:hh(s,t,o,i,c[0]),slug:i,raw:r(u),...a&&{newPath:hh(s,t,a,i,c[0])}}]}return c.map(e=>{const c=ph(e,l),u=n.set("data",n.getIn(c));return{path:hh(s,t,o,i,e),slug:i,raw:u.get("data")?r(u):"",...a&&{newPath:hh(s,t,a,i,e)}}}).filter(e=>e.raw)}(t,e,l.get("entry"),e=>this.entryToRaw(t,e),h,p,g)}const y=await this.currentUser(),v={unpublished:i,status:a},b={newEntry:c,commitMessage:ic(c?"create":"update",e,{collection:t,slug:p,path:h,authorLogin:y.login,authorName:y.name,authorEmail:y.email},y.useOpenAuthoring),collectionName:t.get("name"),useWorkflow:u,hasSubfolders:!1!==t.get("nested")?.get("subfolders"),entryLabel:hg(t,l.get("entry")),entryPath:h,...v};return u||await this.invokePrePublishEvent(l.get("entry")),await this.implementation.persistEntry({dataFiles:m,assets:r},b),await this.invokePostSaveEvent(l.get("entry")),u||await this.invokePostPublishEvent(l.get("entry")),p}async invokeEventWithEntry(e,t){const{login:n,name:r}=await this.currentUser();return await _a({name:e,data:{entry:t,author:{login:n,name:r}}})}async invokePrePublishEvent(e){await this.invokeEventWithEntry("prePublish",e)}async invokePostPublishEvent(e){await this.invokeEventWithEntry("postPublish",e)}async invokePreUnpublishEvent(e){await this.invokeEventWithEntry("preUnpublish",e)}async invokePostUnpublishEvent(e){await this.invokeEventWithEntry("postUnpublish",e)}async invokePreSaveEvent(e){return await this.invokeEventWithEntry("preSave",e)}async invokePostSaveEvent(e){await this.invokeEventWithEntry("postSave",e)}async persistMedia(e,t){const n=await this.currentUser(),r={commitMessage:ic("uploadMedia",e,{path:t.path,authorLogin:n.login,authorName:n.name,authorEmail:n.email},n.useOpenAuthoring)};return this.implementation.persistMedia(t,r)}async i18nFileExists(e){try{const{data:t}=await this.implementation.getEntry(e);return!!t}catch(e){return 404!==e?.status}}async deleteEntry(e,t,n){const r=e.config,o=Wp(t,n),i=Bp(t);if(!Gp(t))throw new Error("Not allowed to delete entries in this collection");const a=await this.currentUser(),s=ic("delete",r,{collection:t,slug:n,path:o,authorLogin:a.login,authorName:a.name,authorEmail:a.email},a.useOpenAuthoring),l=kp(e.entries,t.get("name"),n);await this.invokePreUnpublishEvent(l);let c=[o];if(sh(t)){const e=function(e,t,n,r,o){const{structure:i,locales:a,defaultLocale:s}=lh(e);if(i===ih.SINGLE_FILE)return[{path:n,known:!0}];const l=o?.get("i18nLocales");return a.map(e=>({path:hh(i,t,n,r,e),known:e===s||!!l?.includes(e)}))}(t,i,o,n,l),r=await Promise.all(e.map(e=>e.known||this.i18nFileExists(e.path)));c=e.filter((e,t)=>r[t]).map(e=>e.path)}await this.implementation.deleteFiles(c,s),await this.invokePostUnpublishEvent(l)}async deleteMedia(e,t){const n=await this.currentUser(),r=ic("deleteMedia",e,{path:t,authorLogin:n.login,authorName:n.name,authorEmail:n.email},n.useOpenAuthoring);return this.implementation.deleteFiles([t],r)}persistUnpublishedEntry(e){return this.persistEntry({...e,unpublished:!0})}updateUnpublishedEntryStatus(e,t,n){return this.implementation.updateUnpublishedEntryStatus(e,t,n)}async publishUnpublishedEntry(e){const t=e.get("collection"),n=e.get("slug");await this.invokePrePublishEvent(e),await this.implementation.publishUnpublishedEntry(t,n),await this.invokePostPublishEvent(e)}deleteUnpublishedEntry(e,t){return this.implementation.deleteUnpublishedEntry(e,t)}entryToRaw(e,t){const n=Oa(e,t.toJS()),r=this.fieldsOrder(e,t),o=function(e,t){let n=[];if(e.has("folder"))n=e.get("fields").toArray();else if(e.has("files")){const r=e.get("files").find(e=>e?.get("name")===t.get("slug"));n=r?.get("fields").toArray()||[]}const r={};return Yp(n).forEach(t=>{const n=Jp(e,t);n?.has("comment")&&(r[t]=n.get("comment"))}),r}(e,t);let i=n.toFile(t.get("data").toJS(),r,o);return"\n"!=i.slice(-1)&&(i+="\n"),i}fieldsOrder(e,t){if(e.get("fields"))return e.get("fields").map(e=>e.get("name")).toArray();const n=(e.get("files")||(0,Wr.List)()).filter(e=>e.get("name")===t.get("slug")).get(0);if(null==n)throw new Error(`No file found for ${t.get("slug")} in ${e.get("name")}`);return n.get("fields").map(e=>e.get("name")).toArray()}filterEntries(e,t){return e.entries.filter(e=>{const n=e.data[t.get("field")];return Array.isArray(n)?n.includes(t.get("value")):n===t.get("value")})}}function mg(e){if(!e.backend.name)throw new Error("No backend defined in configuration");const{name:t}=e.backend,n=new rg,r=ma(t);if(r)return new gg(r,{backendName:t,authStore:n,config:e});throw new Error(`Backend not found: ${t}`)}const yg=function(){let e;return t=>e||(e=mg(t))}();function vg(e,t){const n=t.permissions;n&&e(function(e){return(t,n)=>{const{config:r}=n();t(Yh(function(e,t){if(!t?.collections||La()(t.collections))return e;const n=t.collections,r=e.collections||[];let o=!1;const i=r.flatMap(e=>{switch(n[e.name]){case"none":return o=!0,[];case"view":return o=!0,[{...e,create:!1,delete:!1,publish:!1}];default:return[e]}});return o?{...e,collections:i}:e}(r,e)))}}(n))}const bg="AUTH_REQUEST",wg="AUTH_SUCCESS",_g="AUTH_FAILURE",xg="AUTH_REQUEST_DONE",kg="USE_OPEN_AUTHORING",Sg="LOGOUT";function Eg(){return{type:bg}}function Cg(e){return{type:wg,payload:e}}function Tg(e){return{type:_g,error:"Failed to authenticate",payload:e}}function Pg(){return{type:xg}}function Og(){return{type:kg}}function Rg(){return(e,t)=>{const n=t(),r=yg(n.config);Ud?.(),Ud=null,zd?.(),zd=null,qd=null,Promise.resolve(r.logout()).then(()=>{e({type:Sg}),e({type:Kc})})}}const Ag=Uo((e,t)=>{switch(t.type){case bg:e.isFetching=!0;break;case wg:e.user=t.payload;break;case _g:e.error=t.payload&&t.payload.toString();break;case xg:e.isFetching=!1;break;case Sg:e.user=void 0,e.isFetching=!1}},{isFetching:!1,user:void 0,error:void 0});var Ig=__webpack_require__(40989),Dg=__webpack_require__.n(Ig);function Lg(e,t){const n=e.getIn(["pages","keys"])||(0,Wr.List)();return t.concat(n.filter(e=>!t.includes(e)))}function Ng(e,t){return e.get("entities")?e.get("entities").filter((e,n)=>Dg()(n,`${t}.`)).map(e=>e.get("slug")).valueSeq():null}function $g(e){return Object.values(e).some(e=>e.isLoading)}const Mg=Uo((e,t)=>{switch(t.type){case Wu:t.payload.forEach(t=>{e[t.path]={asset:t,isLoading:!1,error:null}});break;case Vu:{const n=t.payload;e[n.path]={asset:n,isLoading:!1,error:null};break}case Ku:{const n=t.payload;delete e[n];break}case Gu:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!0;break}case Yu:{const{path:n}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=null;break}case Ju:{const{path:n,error:r}=t.payload;e[n]=e[n]||{},e[n].isLoading=!1,e[n].error=r}}},{}),jg="DEPLOY_PREVIEW_REQUEST",Fg="DEPLOY_PREVIEW_SUCCESS",Ug="DEPLOY_PREVIEW_FAILURE";function qg(e,t){return{type:Ug,payload:{collection:e,slug:t}}}const zg=Uo((e,t)=>{switch(t.type){case jg:{const{collection:n,slug:r}=t.payload;e[`${n}.${r}`]={isFetching:!0,status:"PENDING"};break}case Fg:{const{collection:n,slug:r,url:o,status:i}=t.payload,a=`${n}.${r}`;e[a].isFetching=!1,e[a].url=o,e[a].status=i;break}case Ug:{const{collection:n,slug:r}=t.payload,o=`${n}.${r}`;e[o].isFetching=!1,e[o].url=void 0,e[o].status="PENDING";break}}},{}),Bg=zg;function Hg(e){return e.supported&&e.pageEnabled&&(null!==e.latest||e.deployments.length>0||e.pendingCount>0)}const Wg=Uo((e,t)=>{switch(t.type){case $d:{const{pendingCount:n,latest:r,supported:o,pageEnabled:i,branch:a}=t.payload;e.pendingCount=n,void 0!==a&&(e.branch=a),r&&(e.latest=r),void 0!==o&&(e.supported=o),void 0!==i&&(e.pageEnabled=i);break}case Md:e.isFetching=!0,e.error=null;break;case jd:e.isFetching=!1,e.loaded=!0,e.deployments=t.payload.deployments,e.latest=(n=t.payload.deployments,r=e.branch,r?n.filter(e=>!e.branch||e.branch===r):n)[0]??e.latest,e.entryLabels={};for(const n of t.payload.commits??[])n.entry_label&&(e.entryLabels[n.commit_sha]=n.entry_label);break;case Fd:e.isFetching=!1,e.error=t.payload.error}var n,r},{pendingCount:0,latest:null,deployments:[],branch:null,entryLabels:{},isFetching:!1,error:null,supported:!1,pageEnabled:!1,loaded:!1}),Vg=["DEPLOY_PREVIEW","STATUS_REQUEST","STATUS_SUCCESS","STATUS_FAILURE"];function Kg(e){return Vg.some(t=>e.type.includes(t))}const Gg=Uo((e,t)=>{!Kg(t)&&t.type.includes("REQUEST")?e.isFetching=!0:Kg(t)||!t.type.includes("SUCCESS")&&!t.type.includes("FAILURE")?t.type===kg&&(e.useOpenAuthoring=!0):e.isFetching=!1},{isFetching:!1,useOpenAuthoring:!1}),Yg={isFetching:!1,term:"",collections:[],page:0,entryIds:[],queryHits:{},error:void 0,requests:[]},Jg=Uo((e,t)=>{switch(t.type){case Rc:return Yg;case Sc:{const{page:n,searchTerm:r,searchCollections:o}=t.payload;e.isFetching=!0,e.term=r,e.collections=o,e.page=n;break}case Ec:{const{entries:n,page:r}=t.payload,o=n.map(e=>({collection:e.collection,slug:e.slug}));e.isFetching=!1,e.page=r,e.entryIds=!r||isNaN(r)||0===r?o:e.entryIds.concat(o);break}case Cc:{const{error:n}=t.payload;e.isFetching=!1,e.error=n;break}case Tc:{const{searchTerm:n,request:r}=t.payload;e.isFetching=!0,e.term=n,r&&e.requests.push(r);break}case Ac:e.requests=e.requests.filter(e=>e.expires>=new Date);break;case Pc:{const{namespace:n,hits:r}=t.payload;e.isFetching=!1,e.queryHits[n]=r;break}case Oc:{const{error:n}=t.payload;e.isFetching=!1,e.error=n}}},Yg),Qg="STATUS_REQUEST",Xg="STATUS_SUCCESS",Zg="STATUS_FAILURE";function em(e){return{type:Xg,payload:{status:e}}}const tm={auth:Ag,config:Zh,collections:function(e=jp,t){if(t.type===$h){const e=t.payload.collections;let n=(0,Wr.OrderedMap)({});return e.forEach(e=>{n=n.set(e.name,(0,Wr.fromJS)(e))}),n}return e},search:Jg,integrations:function(e=Dh,t){return t.type===$h?Ih(t.payload):e},entries:function(e=(0,Wr.Map)({entities:(0,Wr.Map)(),pages:(0,Wr.Map)(),sort:mp(),viewStyle:vp()}),t){switch(t.type){case Gd:{const n=t.payload;return e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!0)}case Yd:{const n=t.payload;return lp=n.collection,fp=n.entry.slug,e.withMutations(e=>{e.setIn(["entities",`${lp}.${fp}`],(0,Wr.fromJS)(n.entry));const t=e.getIn(["pages",lp,"ids"],(0,Wr.List)());t.includes(fp)||e.setIn(["pages",lp,"ids"],t.unshift(fp))})}case Qd:{const n=t.payload;return e.withMutations(e=>{e.setIn(["pages",n.collection,"isFetching"],!0)})}case Xd:{const n=t.payload;return lp=n.collection,cp=n.entries,up=n.append,dp=n.page,e.withMutations(e=>{cp.forEach(t=>e.setIn(["entities",`${lp}.${t.slug}`],(0,Wr.fromJS)({...t,isFetching:!1})));const t=(0,Wr.List)(cp.map(e=>e.slug));e.setIn(["pages",lp],(0,Wr.Map)({page:dp,ids:up?e.getIn(["pages",lp,"ids"],(0,Wr.List)()).concat(t):t}))})}case Zd:return e.setIn(["pages",t.meta.collection,"isFetching"],!1);case Jd:{const n=t.payload;return e.withMutations(e=>{e.setIn(["entities",`${n.collection}.${n.slug}`,"isFetching"],!1),e.setIn(["entities",`${n.collection}.${n.slug}`,"error"],n.error.message)})}case Ec:{const n=t.payload;return cp=n.entries,e.withMutations(e=>{cp.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,Wr.fromJS)({...t,isFetching:!1})))})}case Sf:{const n=t.payload;return e.withMutations(e=>{e.deleteIn(["entities",`${n.collectionName}.${n.entrySlug}`]),e.updateIn(["pages",n.collectionName,"ids"],e=>e.filter(e=>e!==n.entrySlug))})}case ef:{const n=t.payload,{collection:r,key:o,direction:i}=n,a=e.withMutations(e=>{const t=(0,Wr.OrderedMap)({[o]:(0,Wr.Map)({key:o,direction:i})});e.setIn(["sort",r],t),e.setIn(["pages",r,"isFetching"],!0),e.deleteIn(["pages",r,"page"])});return yp(a.get("sort")),a}case lf:case of:case tf:{const n=t.payload,{collection:r,entries:o}=n;return cp=o,e.withMutations(e=>{cp.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,Wr.fromJS)({...t,isFetching:!1}))),e.setIn(["pages",r,"isFetching"],!1);const t=(0,Wr.List)(cp.map(e=>e.slug));e.setIn(["pages",r],(0,Wr.Map)({page:1,ids:t}))})}case nf:{const n=t.payload,{collection:r,key:o}=n,i=e.withMutations(e=>{e.deleteIn(["sort",r,o]),e.setIn(["pages",r,"isFetching"],!1)});return yp(i.get("sort")),i}case rf:{const n=t.payload,{collection:r,filter:o}=n;return e.withMutations(e=>{const t=e.getIn(["filter",r,o.id],(0,Wr.fromJS)(o));e.setIn(["filter",r,t.get("id")],t.set("active",!t.get("active")))})}case af:{const n=t.payload,{collection:r,filter:o}=n;return e.withMutations(e=>{e.deleteIn(["filter",r,o.id]),e.setIn(["pages",r,"isFetching"],!1)})}case sf:{const n=t.payload,{collection:r,group:o}=n;return e.withMutations(e=>{const t=e.getIn(["group",r,o.id],(0,Wr.fromJS)(o));e.deleteIn(["group",r]),e.setIn(["group",r,t.get("id")],t.set("active",!t.get("active")))})}case cf:{const n=t.payload,{collection:r,group:o}=n;return e.withMutations(e=>{e.deleteIn(["group",r,o.id]),e.setIn(["pages",r,"isFetching"],!1)})}case Tf:{const r=t.payload,{style:o}=r,i=e.withMutations(e=>{e.setIn(["viewStyle"],o)});return(n=i.get("viewStyle"))?localStorage.setItem(hp,n):localStorage.removeItem(hp),i}default:return e}var n},cursors:function(e=(0,Wr.fromJS)({cursorsByType:{collectionEntries:{}}}),t){switch(t.type){case Xd:return e.setIn(["cursorsByType","collectionEntries",t.payload.collection],si.Cursor.create(t.payload.cursor).store);case of:case lf:case tf:return e.deleteIn(["cursorsByType","collectionEntries",t.payload.collection]);default:return e}},editorialWorkflow:function(e=(0,Wr.Map)(),t){switch(t.type){case $h:return(t.payload&&t.payload.publish_mode)===Na?(0,Wr.Map)({entities:(0,Wr.Map)(),pages:(0,Wr.Map)()}):e;case sd:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isFetching"],!0);case cd:return e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]);case ld:return e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.slug}`],(0,Wr.fromJS)(t.payload.entry));case ud:return e.withMutations(e=>{e.setIn(["pages","isFetching"],!0),e.deleteIn(["pages","error"])});case dd:{const n=Lg(e,(0,Wr.List)(t.payload.entries.map(e=>(0,si.generateContentKey)(e.collection,e.slug))));return e.withMutations(e=>{t.payload.entries.forEach(t=>e.setIn(["entities",`${t.collection}.${t.slug}`],(0,Wr.fromJS)({...t,isFetching:!1}))),e.set("pages",(0,Wr.Map)({...t.payload.pages,ids:(0,Wr.List)(t.payload.entries.map(e=>e.slug)),keys:n}))})}case pd:return e.setIn(["pages","keys"],Lg(e,(0,Wr.List)(t.payload.keys)));case fd:{const n=t.payload;return e.withMutations(e=>{e.setIn(["pages","isFetching"],!1),e.setIn(["pages","error"],n?.message||"Failed to load entries")})}case hd:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!0);case gd:return e.withMutations(e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`],(0,Wr.fromJS)(t.payload.entry)),e.deleteIn(["entities",`${t.payload.collection}.${t.payload.entry.get("slug")}`,"isPersisting"]),e.updateIn(["pages","ids"],(0,Wr.List)(),e=>e.push(t.payload.entry.get("slug"))),e.updateIn(["pages","keys"],(0,Wr.List)(),e=>{const n=t.payload.slug||t.payload.entry.get("slug"),r=e;if(!n)return r;const o=(0,si.generateContentKey)(t.payload.collection,n);return r.includes(o)?r:r.push(o)})});case md:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPersisting"],!1);case yd:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!0);case vd:return e.withMutations(e=>{e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"status"],t.payload.newStatus),e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1)});case bd:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isUpdatingStatus"],!1);case wd:return e.setIn(["entities",`${t.payload.collection}.${t.payload.slug}`,"isPublishing"],!0);case _d:case kd:return e.withMutations(e=>{e.deleteIn(["entities",`${t.payload.collection}.${t.payload.slug}`]),e.updateIn(["pages","keys"],(0,Wr.List)(),e=>{const n=(0,si.generateContentKey)(t.payload.collection,t.payload.slug);return e.filter(e=>e!==n)})});default:return e}},entryDraft:function(e=(0,Wr.Map)(),t){switch(t.type){case uf:return e.withMutations(e=>{e.set("entry",(0,Wr.fromJS)(t.payload.entry)),e.setIn(["entry","newRecord"],!1),e.set("fieldsMetaData",(0,Wr.Map)()),e.set("fieldsErrors",(0,Wr.Map)()),e.set("notes",(0,Wr.List)()),e.set("hasChanged",!1),e.set("key",crypto.randomUUID())});case df:return e.withMutations(e=>{e.set("entry",(0,Wr.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("fieldsMetaData",(0,Wr.Map)()),e.set("fieldsErrors",(0,Wr.Map)()),e.set("notes",(0,Wr.List)()),e.set("hasChanged",!1),e.set("key",crypto.randomUUID())});case bf:return e.withMutations(e=>{const t=e.get("localBackup").get("entry");e.delete("localBackup"),e.set("entry",t),e.setIn(["entry","newRecord"],!t.get("path")),e.set("fieldsMetaData",(0,Wr.Map)()),e.set("fieldsErrors",(0,Wr.Map)()),e.set("notes",(0,Wr.List)()),e.set("hasChanged",!0),e.set("key",crypto.randomUUID())});case wf:return e.withMutations(e=>{e.set("entry",(0,Wr.fromJS)(t.payload)),e.setIn(["entry","newRecord"],!0),e.set("mediaFiles",(0,Wr.List)()),e.set("fieldsMetaData",(0,Wr.Map)()),e.set("notes",(0,Wr.List)()),e.set("fieldsErrors",(0,Wr.Map)()),e.set("hasChanged",!0)});case ff:return Dd;case vf:{const{entry:n}=t.payload,r=new Wr.Map({entry:(0,Wr.fromJS)(n)});return e.set("localBackup",r)}case pf:return e.withMutations(e=>{const{field:n,value:r,metadata:o,entries:i,i18n:a}=t.payload,s=n.get("name"),l=n.get("meta"),c=a&&ph(a.currentLocale,a.defaultLocale)||["data"];l?e.setIn(["entry","meta",s],r):(e.setIn(["entry",...c,s],r),a&&(e=wh(e,n,a.locales,a.defaultLocale))),e.updateIn(["fieldsMetaData"],(e=(0,Wr.Map)())=>Ld(e,(0,Wr.fromJS)(o)));const u=e.getIn(["entry",...c]),d=e.getIn(["entry","meta"]);e.set("hasChanged",!i.some(e=>u.equals(e.get(...c)))||!i.some(e=>d.equals(e.get("meta"))))});case hf:{const{names:n}=t.payload;return e.withMutations(e=>{for(const t of n)e.updateIn(["fieldRevisions",t],(e=0)=>e+1),e.setIn(["fieldHighlights",t],!0)})}case gf:{const{names:n}=t.payload;return e.withMutations(e=>{for(const t of n)e.deleteIn(["fieldHighlights",t])})}case mf:return 0===t.payload.errors.length?e.deleteIn(["fieldsErrors",t.payload.uniquefieldId]):e.setIn(["fieldsErrors",t.payload.uniquefieldId],t.payload.errors);case yf:{const{uniqueFieldId:n}=t.payload;return e.deleteIn(["fieldsErrors",n])}case _f:case hd:return e.setIn(["entry","isPersisting"],!0);case kf:case md:return e.deleteIn(["entry","isPersisting"]);case yd:return e.setIn(["entry","isUpdatingStatus"],!0);case bd:case vd:return e.deleteIn(["entry","isUpdatingStatus"]);case wd:return e.setIn(["entry","isPublishing"],!0);case _d:case xd:return e.deleteIn(["entry","isPublishing"]);case xf:case gd:return e.withMutations(e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1),e.getIn(["entry","slug"])||e.setIn(["entry","slug"],t.payload.slug)});case Sf:return e.withMutations(e=>{e.deleteIn(["entry","isPersisting"]),e.set("hasChanged",!1)});case Ef:return e.withMutations(e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot(e=>e.get("id")===t.payload.id).insert(0,(0,Wr.fromJS)(t.payload))),e.set("hasChanged",!0)});case Cf:return e.withMutations(e=>{const n=e.getIn(["entry","mediaFiles"]);e.setIn(["entry","mediaFiles"],n.filterNot(e=>e.get("id")===t.payload.id)),e.set("hasChanged",!0)});case Pf:return e.set("notes",(0,Wr.fromJS)(t.payload.notes));case Of:return e.update("notes",e=>e.push((0,Wr.fromJS)(t.payload.note)));case Rf:return e.update("notes",e=>e.map(e=>e.get("id")===t.payload.id?e.merge((0,Wr.fromJS)(t.payload.updates)):e));case Af:return e.update("notes",e=>e.filterNot(e=>e.get("id")===t.payload.id));case If:return e.set("notes",(0,Wr.fromJS)(t.payload.notes));default:return e}},medias:Mg,mediaLibrary:function(e=(0,Wr.Map)(zu),t){switch(t.type){case au:return e.withMutations(e=>{e.set("externalLibrary",t.payload),e.set("showMediaButton",t.payload.enableStandalone())});case ou:{const{controlID:n,forImage:r,privateUpload:o,config:i,field:a,value:s,replaceIndex:l}=t.payload,c=i||(0,Wr.Map)();return e.get("privateUpload")!==o?(0,Wr.Map)({isVisible:!0,forImage:r,controlID:n,canInsert:!!n,privateUpload:o,config:c,controlMedia:(0,Wr.Map)(),displayURLs:(0,Wr.Map)(),field:a,value:s,replaceIndex:l}):e.withMutations(e=>{e.set("isVisible",!0),e.set("forImage",r??!1),e.set("controlID",n??""),e.set("canInsert",!!n),e.set("privateUpload",o),e.set("config",c),e.set("field",a??""),e.set("value",""==s&&c.get("multiple")?[]:s??""),e.set("replaceIndex",l??!1)})}case iu:return e.set("isVisible",!1);case su:{const{mediaPath:n}=t.payload,r=e.get("controlID"),o=e.get("value");if(!Array.isArray(o))return e.withMutations(e=>{e.setIn(["controlMedia",r],n)});const i=e.get("replaceIndex"),a=Array.isArray(n)?n:[n],s=o;return"number"==typeof i?s[i]=a[0]:s.push(...a),e.withMutations(e=>{e.setIn(["controlMedia",r],s)})}case lu:{const n=t.payload.controlID;return e.setIn(["controlMedia",n],"")}case cu:return e.withMutations(e=>{e.set("isLoading",!0),e.set("isPaginating",t.payload.page>1)});case uu:{const{files:n=[],page:r,canPaginate:o,dynamicSearch:i,dynamicSearchQuery:a,privateUpload:s}=t.payload;if(e.get("privateUpload")!==s)return e;const l=n.map(e=>({...e,key:crypto.randomUUID()}));return e.withMutations(e=>{if(e.set("isLoading",!1),e.set("isPaginating",!1),e.set("page",r??1),e.set("hasNextPage",!!(o&&n.length>0)),e.set("dynamicSearch",i??!1),e.set("dynamicSearchQuery",a??""),e.set("dynamicSearchActive",!!a),r&&r>1){const t=e.get("files").concat(l);e.set("files",t)}else e.set("files",l)})}case du:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isLoading",!1);case fu:return e.set("isPersisting",!0);case pu:{const{file:n,privateUpload:r}=t.payload;return e.get("privateUpload")!==r?e:e.withMutations(e=>{const t=[{...n,key:crypto.randomUUID()},...e.get("files")||[]];e.set("files",t),e.set("isPersisting",!1)})}case hu:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isPersisting",!1);case gu:return e.set("isDeleting",!0);case mu:{const{file:n,privateUpload:r}=t.payload,{key:o,id:i}=n;return e.get("privateUpload")!==r?e:e.withMutations(e=>{const t=e.get("files").filter(e=>o?e.key!==o:e.id!==i);e.set("files",t),e.deleteIn(["displayURLs",i]),e.set("isDeleting",!1)})}case yu:return e.get("privateUpload")!==t.payload.privateUpload?e:e.set("isDeleting",!1);case vu:return e.setIn(["displayURLs",t.payload.key,"isFetching"],!0);case bu:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"url"],t.payload.url)}case wu:{const n=["displayURLs",t.payload.key];return e.setIn([...n,"isFetching"],!1).setIn([...n,"err"],t.payload.err||!0).deleteIn([...n,"url"])}default:return e}},deploys:Bg,deployStatus:Wg,globalUI:Gg,status:Uo((e,t)=>{switch(t.type){case Qg:e.isFetching=!0;break;case Xg:e.isFetching=!1,e.status=t.payload.status;break;case Zg:e.isFetching=!1,e.error=t.payload.error}},{isFetching:!1,status:{auth:{status:!0},api:{status:!0,statusPage:""}},error:void 0}),notifications:Uo((e,t)=>{switch(t.type){case Kc:e.notifications=[];break;case Vc:e.notifications=e.notifications.filter(e=>e.id!==t.id);break;case Hc:e.notifications=[...e.notifications,{id:t.payload.id??crypto.randomUUID(),...t.payload}];break;case Wc:e.notifications=e.notifications.map(e=>e.id===t.id?{...e,...t.payload}:e)}},{notifications:[]})};function nm(e,t,n){return kp(e.entries,t,n)}function rm(e,t){return Sp(e.entries,t)}function om(e,t,n){return function(e,t,n){return e[`${t}.${n}`]}(e.deploys,t,n)}function im(e,t,n){return function(e,t,n){return e&&e.getIn(["entities",`${t}.${n}`])}(e.editorialWorkflow,t,n)}function am(e,t){return function(e,t){return e?e.get("entities").filter(e=>e.get("status")===t).valueSeq():null}(e.editorialWorkflow,t)}function sm(e,t){const n=e.collections.get(t);if(!n||!n.get("create"))return!1;if(n.get("type")!==Ba)return Kp(n);const r=n.get("limit");if(null==r)return!0;const o=e.entries.getIn(["pages",t,"isFetching"],!1),i=e.entries.getIn(["pages",t,"ids"]);if(o&&!i)return!1;let a=(0,Wr.Set)(Sp(e.entries,t));const s=e.config?.publish_mode===Na&&e.editorialWorkflow?Ng(e.editorialWorkflow,t):null;return s&&(a=a.union(s.toArray())),a.size<r}function lm(e,t,n){return Lh(e.integrations,t,n)}const cm=(0,Nt().y$)((0,Nt().HY)({...tm}),(0,Lt().tY)((0,Nt().Tw)(Br,({dispatch:e,getState:t})=>{let n=[];return r=>o=>{if(o.type===Hr)return n.push(o),null;const i=r(o);return function(r){const o=[],i=[];for(const e of n)e.predicate(r)?o.push(e):i.push(e);n=i;for(const n of o)n.run(e,t,r)}(o),i}})));var um=__webpack_require__(28970),dm=__webpack_require__.n(um);function fm(e){return dm()({},xa("en"),xa(e))}function pm(e){var t=null;return function(){return null==t&&(t=e()),t}}function hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hm(this,"entered",[]),hm(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t;return(t=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e){return o.push(e)}),o}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),mm=pm(function(){return/firefox/i.test(navigator.userAgent)}),ym=pm(function(){return Boolean(window.safari)});function vm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bm=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vm(this,"xs",void 0),vm(this,"ys",void 0),vm(this,"c1s",void 0),vm(this,"c2s",void 0),vm(this,"c3s",void 0);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort(function(e,n){return t[e]<t[n]?-1:1});for(var a,s,l=[],c=[],u=[],d=0;d<r-1;d++)a=t[d+1]-t[d],s=n[d+1]-n[d],c.push(a),l.push(s),u.push(s/a);for(var f=[u[0]],p=0;p<c.length-1;p++){var h=u[p],g=u[p+1];if(h*g<=0)f.push(0);else{a=c[p];var m=c[p+1],y=a+m;f.push(3*y/((y+m)/h+(y+a)/g))}}f.push(u[u.length-1]);for(var v,b=[],w=[],_=0;_<f.length-1;_++){v=u[_];var x=f[_],k=1/c[_],S=x+f[_+1]-v-v;b.push((v-x-S)*k),w.push(S*k*k)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=w}var t;return(t=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,c=i.length-1;l<=c;){var u=t[s=Math.floor(.5*(l+c))];if(u<e)l=s+1;else{if(!(u>e))return n[s];c=s-1}}var d=e-t[a=Math.max(0,c)],f=d*d;return n[a]+r[a]*d+o[a]*f+i[a]*d*f}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function wm(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function _m(e){return{x:e.clientX,y:e.clientY}}var xm,km="__NATIVE_FILE__",Sm="__NATIVE_URL__",Em="__NATIVE_TEXT__",Cm="__NATIVE_HTML__";function Tm(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=r?r:n}function Pm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Om=(Pm(xm={},km,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),Pm(xm,Cm,{exposeProperties:{html:function(e,t){return Tm(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),Pm(xm,Sm,{exposeProperties:{urls:function(e,t){return Tm(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),Pm(xm,Em,{exposeProperties:{text:function(e,t){return Tm(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),xm);function Rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Am=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Rm(this,"item",void 0),Rm(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t;return(t=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Im(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(Om).filter(function(e){return Om[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function Dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lm=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Dm(this,"ownerDocument",null),Dm(this,"globalContext",void 0),Dm(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t;return(t=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nm(Object(n),!0).forEach(function(t){Mm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jm=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Mm(this,"options",void 0),Mm(this,"actions",void 0),Mm(this,"monitor",void 0),Mm(this,"registry",void 0),Mm(this,"enterLeaveCounter",void 0),Mm(this,"sourcePreviewNodes",new Map),Mm(this,"sourcePreviewNodeOptions",new Map),Mm(this,"sourceNodes",new Map),Mm(this,"sourceNodeOptions",new Map),Mm(this,"dragStartSourceIds",null),Mm(this,"dropTargetIds",[]),Mm(this,"dragEnterTargetIds",[]),Mm(this,"currentNativeSource",null),Mm(this,"currentNativeHandle",null),Mm(this,"currentDragSourceNode",null),Mm(this,"altKeyPressed",!1),Mm(this,"mouseMoveTimeoutTimer",null),Mm(this,"asyncEndDragFrameId",null),Mm(this,"dragOverTargetIds",null),Mm(this,"lastClientOffset",null),Mm(this,"hoverRafId",null),Mm(this,"getSourceClientOffset",function(e){var t=o.sourceNodes.get(e);return t&&wm(t)||null}),Mm(this,"endDragNativeItem",function(){o.isDraggingNativeItem()&&(o.actions.endDrag(),o.currentNativeHandle&&o.registry.removeSource(o.currentNativeHandle),o.currentNativeHandle=null,o.currentNativeSource=null)}),Mm(this,"isNodeInDocument",function(e){return Boolean(e&&o.document&&o.document.body&&o.document.body.contains(e))}),Mm(this,"endDragIfSourceWasRemovedFromDOM",function(){var e=o.currentDragSourceNode;null==e||o.isNodeInDocument(e)||o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()}),Mm(this,"handleTopDragStartCapture",function(){o.clearCurrentDragSourceNode(),o.dragStartSourceIds=[]}),Mm(this,"handleTopDragStart",function(e){if(!e.defaultPrevented){var t=o.dragStartSourceIds;o.dragStartSourceIds=null;var n=_m(e);o.monitor.isDragging()&&o.actions.endDrag(),o.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:o.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,i=Im(r);if(o.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var a=o.monitor.getSourceId(),s=o.sourceNodes.get(a),l=o.sourcePreviewNodes.get(a)||s;if(l){var c=o.getCurrentSourcePreviewNodeOptions(),u=function(e,t,n,r,o){var i,a,s,l="IMG"===(i=t).nodeName&&(mm()||!(null!==(a=document.documentElement)&&void 0!==a&&a.contains(i))),c=wm(l?e:t),u={x:n.x-c.x,y:n.y-c.y},d=e.offsetWidth,f=e.offsetHeight,p=r.anchorX,h=r.anchorY,g=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return ym()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(l,t,d,f),m=g.dragPreviewWidth,y=g.dragPreviewHeight,v=o.offsetX,b=o.offsetY,w=0===b||b;return{x:0===v||v?v:new bm([0,.5,1],[u.x,u.x/d*m,u.x+m-d]).interpolate(p),y:w?b:(s=new bm([0,.5,1],[u.y,u.y/f*y,u.y+y-f]).interpolate(h),ym()&&l&&(s+=(window.devicePixelRatio-1)*y),s)}}(s,l,n,{anchorX:c.anchorX,anchorY:c.anchorY},{offsetX:c.offsetX,offsetY:c.offsetY});r.setDragImage(l,u.x,u.y)}}try{null==r||r.setData("application/json",{})}catch(e){}o.setCurrentDragSourceNode(e.target),o.getCurrentSourcePreviewNodeOptions().captureDraggingState?o.actions.publishDragSource():setTimeout(function(){return o.actions.publishDragSource()},0)}else if(i)o.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}}),Mm(this,"handleTopDragEndCapture",function(){o.clearCurrentDragSourceNode()&&o.monitor.isDragging()&&o.actions.endDrag()}),Mm(this,"handleTopDragEnterCapture",function(e){if(o.dragEnterTargetIds=[],o.enterLeaveCounter.enter(e.target)&&!o.monitor.isDragging()){var t=e.dataTransfer,n=Im(t);n&&o.beginDragNativeItem(n,t)}}),Mm(this,"handleTopDragEnter",function(e){var t=o.dragEnterTargetIds;o.dragEnterTargetIds=[],o.monitor.isDragging()&&(o.altKeyPressed=e.altKey,t.length>0&&o.actions.hover(t,{clientOffset:_m(e)}),t.some(function(e){return o.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())))}),Mm(this,"handleTopDragOverCapture",function(){o.dragOverTargetIds=[]}),Mm(this,"handleTopDragOver",function(e){var t=o.dragOverTargetIds;if(o.dragOverTargetIds=[],!o.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));o.altKeyPressed=e.altKey,o.lastClientOffset=_m(e),null===o.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(o.hoverRafId=requestAnimationFrame(function(){o.monitor.isDragging()&&o.actions.hover(t||[],{clientOffset:o.lastClientOffset}),o.hoverRafId=null})),(t||[]).some(function(e){return o.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())):o.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))}),Mm(this,"handleTopDragLeaveCapture",function(e){o.isDraggingNativeItem()&&e.preventDefault(),o.enterLeaveCounter.leave(e.target)&&o.isDraggingNativeItem()&&setTimeout(function(){return o.endDragNativeItem()},0)}),Mm(this,"handleTopDropCapture",function(e){var t;o.dropTargetIds=[],o.isDraggingNativeItem()?(e.preventDefault(),null===(t=o.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Im(e.dataTransfer)&&e.preventDefault(),o.enterLeaveCounter.reset()}),Mm(this,"handleTopDrop",function(e){var t=o.dropTargetIds;o.dropTargetIds=[],o.actions.hover(t,{clientOffset:_m(e)}),o.actions.drop({dropEffect:o.getCurrentDropEffect()}),o.isDraggingNativeItem()?o.endDragNativeItem():o.monitor.isDragging()&&o.actions.endDrag()}),Mm(this,"handleSelectStart",function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}),this.options=new Lm(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new gm(this.isNodeInDocument)}var t;return(t=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return $m({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return $m({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(fn).some(function(t){return fn[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new Am(Om[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),Fm=function(e,t,n){return new jm(e,t,n)};function Um(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,function(){return r[a++]}))).name="Invariant Violation"}throw i.framesToPop=1,i}}function qm(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function zm(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}function Bm(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,Jt().isValidElement)(t)){var r=t;return e(r,n),r}var o=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return Um("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,Jt().cloneElement)(e,{ref:function(e){Hm(n,e),Hm(t,e)}}):(0,Jt().cloneElement)(e,{ref:t})}(o,i)}}(r);t[n]=function(){return o}}}),t}function Hm(e,t){"function"==typeof e?e(t):e.current=t}function Wm(e){return Wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wm(e)}function Vm(e){return null!==e&&"object"===Wm(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function Km(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}function Gm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ym=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Gm(this,"hooks",Bm({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,Vm(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,Vm(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),Gm(this,"handlerId",null),Gm(this,"dragSourceRef",null),Gm(this,"dragSourceNode",void 0),Gm(this,"dragSourceOptionsInternal",null),Gm(this,"dragSourceUnsubscribe",void 0),Gm(this,"dragPreviewRef",null),Gm(this,"dragPreviewNode",void 0),Gm(this,"dragPreviewOptionsInternal",null),Gm(this,"dragPreviewUnsubscribe",void 0),Gm(this,"lastConnectedHandlerId",null),Gm(this,"lastConnectedDragSource",null),Gm(this,"lastConnectedDragSourceOptions",null),Gm(this,"lastConnectedDragPreview",null),Gm(this,"lastConnectedDragPreviewOptions",null),Gm(this,"backend",void 0),this.backend=t}var t;return(t=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Km(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Km(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Jm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qm=!1,Xm=!1,Zm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Jm(this,"internalMonitor",void 0),Jm(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t;return(t=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){Um(!Qm,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qm=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Qm=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;Um(!Xm,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Xm=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Xm=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function ey(e){return ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ey(e)}function ty(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function ny(e){return"function"==typeof e}function ry(){}function oy(e){if(!function(e){return"object"===ey(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function iy(e,t){return"string"==typeof e||"symbol"===ey(e)||!!t&&Array.isArray(e)&&e.every(function(e){return iy(e,!1)})}var ay=(0,Jt().createContext)({dragDropManager:void 0});function sy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ly(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cy(e,t,n){return t&&ly(e.prototype,t),n&&ly(e,n),e}function uy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dy=function(){function e(t){sy(this,e),uy(this,"isDisposed",!1),uy(this,"action",void 0),this.action=ny(t)?t:ry}return cy(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&ny(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();uy(dy,"empty",{dispose:ry});var fy=function(){function e(){sy(this,e),uy(this,"isDisposed",!1),uy(this,"disposables",void 0);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return cy(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),py=function(){function e(){sy(this,e),uy(this,"isDisposed",!1),uy(this,"current",void 0)}return cy(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function hy(e){return hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hy(e)}function gy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function my(e,t){return my=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},my(e,t)}function yy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vy(e)}function by(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wy(e){var t=e.DecoratedComponent,n=e.createHandler,r=e.createMonitor,o=e.createConnector,i=e.registerHandler,a=e.containerDisplayName,s=e.getType,l=e.collect,c=e.options.arePropsEqual,u=void 0===c?Km:c,d=t,f=t.displayName||t.name||"Component",p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&my(e,t)}(h,e);var t,a,c,p=(a=h,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=vy(a);if(c){var n=vy(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===hy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yy(e)}(this,e)});function h(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),by(yy(t=p.call(this,e)),"decoratedRef",(0,Jt().createRef)()),by(yy(t),"handlerId",void 0),by(yy(t),"manager",void 0),by(yy(t),"handlerMonitor",void 0),by(yy(t),"handlerConnector",void 0),by(yy(t),"handler",void 0),by(yy(t),"disposable",void 0),by(yy(t),"currentType",void 0),by(yy(t),"handleChange",function(){var e=t.getCurrentState();Km(e,t.state)||t.setState(e)}),t.disposable=new py,t.receiveProps(e),t.dispose(),t}return(t=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Um(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!u(e,this.props)||!Km(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new py,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){u(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(s(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=function(e){if(Array.isArray(e))return e}(a=i(e,this.handler,this.manager))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(a)||function(e){if(e){if("string"==typeof e)return gy(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?gy(e,2):void 0}}(a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new fy(new dy(o),new dy(r)))}var a}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?l(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return(0,It().jsx)(ay.Consumer,{children:function(t){var n,r,o=t.dragDropManager;return e.receiveDragDropManager(o),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()}),(0,It().jsx)(d,Object.assign({},e.props,e.getCurrentState(),{ref:(n=d,(r=n)&&r.prototype&&"function"==typeof r.prototype.render||function(e){var t;return"Symbol(react.forward_ref)"===(null==e||null===(t=e.$$typeof)||void 0===t?void 0:t.toString())}(n)?e.decoratedRef:null)}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(Um(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",f,f),void 0!==e&&(this.manager=e,this.handlerMonitor=r(e),this.handlerConnector=o(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(h.prototype,t),h}(Jt().Component);return by(p,"DecoratedComponent",t),by(p,"displayName","".concat(a,"(").concat(f,")")),Sn()()(p,t)}function _y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xy=["canDrag","beginDrag","isDragging","endDrag"],ky=["beginDrag"],Sy=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_y(this,"props",null),_y(this,"spec",void 0),_y(this,"monitor",void 0),_y(this,"ref",void 0),_y(this,"beginDrag",function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)}),this.spec=t,this.monitor=n,this.ref=r}var t;return(t=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,ty(this.ref))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Ey(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cy=!1,Ty=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ey(this,"internalMonitor",void 0),Ey(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t;return(t=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;Um(!Cy,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Cy=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Cy=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Py(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oy=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Py(this,"hooks",Bm({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,Vm(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),Py(this,"handlerId",null),Py(this,"dropTargetRef",null),Py(this,"dropTargetNode",void 0),Py(this,"dropTargetOptionsInternal",null),Py(this,"unsubscribeDropTarget",void 0),Py(this,"lastConnectedHandlerId",null),Py(this,"lastConnectedDropTarget",null),Py(this,"lastConnectedDropTargetOptions",null),Py(this,"backend",void 0),this.backend=t}var t;return(t=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Km(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Ry(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ay=["canDrop","hover","drop"],Iy=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ry(this,"props",null),Ry(this,"spec",void 0),Ry(this,"monitor",void 0),Ry(this,"ref",void 0),this.spec=t,this.monitor=n,this.ref=r}var t;return(t=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,ty(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),Dy="dnd-core/INIT_COORDS",Ly="dnd-core/BEGIN_DRAG",Ny="dnd-core/PUBLISH_DRAG_SOURCE",$y="dnd-core/HOVER",My="dnd-core/DROP",jy="dnd-core/END_DRAG";function Fy(e,t){return{type:Dy,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Uy(e){return Uy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uy(e)}function qy(e){return"object"===Uy(e)}var zy={type:Dy,payload:{clientOffset:null,sourceClientOffset:null}};function By(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,a=n.getSourceClientOffset,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Fy(i)),function(e,t,n){Um(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){Um(n.getSource(e),"Expected sourceIds to be registered.")})}(t,s,l);var c=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,s);if(null!==c){var u=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){Um("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),u=a(c)}e.dispatch(Fy(i,u));var d=l.getSource(c).beginDrag(s,c);if(null!=d){!function(e){Um(qy(e),"Item must be an object.")}(d),l.pinSource(c);var f=l.getSourceType(c);return{type:Ly,payload:{itemType:f,item:d,sourceId:c,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!o}}}}else e.dispatch(zy)}}function Hy(e){return function(){if(e.getMonitor().isDragging())return{type:Ny}}}function Wy(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function Vy(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){Um(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){Um(t.isDragging(),"Cannot call hover while not dragging."),Um(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];Um(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array."),Um(n.getTarget(o),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];Wy(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:$y,payload:{targetIds:r,clientOffset:n||null}}}}function Ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ky(Object(n),!0).forEach(function(t){Yy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jy(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){Um(e.isDragging(),"Cannot call drop while not dragging."),Um(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(function(o,i){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){Um(void 0===e||qy(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(o,i,r,n),s={type:My,payload:{dropResult:Gy(Gy({},t),a)}};e.dispatch(s)})}}function Qy(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){Um(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:jy}}}function Xy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zy=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xy(this,"store",void 0),Xy(this,"monitor",void 0),Xy(this,"backend",void 0),Xy(this,"isSetUp",!1),Xy(this,"handleRefCountChange",function(){var e=r.store.getState().refCount>0;r.backend&&(e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t;return t=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:By(e),publishDragSource:Hy(e),hover:Vy(e),drop:Jy(e),endDrag:Qy(e)}}(this);return Object.keys(n).reduce(function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),ev=function(e,t){return e===t};function tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tv(Object(n),!0).forEach(function(t){rv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ov={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function iv(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ov,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case Dy:case Ly:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case $y:return e=n.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:nv(nv({},n),{},{clientOffset:o.clientOffset});case jy:case My:return ov;default:return n}}var av="dnd-core/ADD_SOURCE",sv="dnd-core/ADD_TARGET",lv="dnd-core/REMOVE_SOURCE",cv="dnd-core/REMOVE_TARGET";function uv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uv(Object(n),!0).forEach(function(t){fv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pv={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function hv(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pv,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case Ly:return dv(dv({},n),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case Ny:return dv(dv({},n),{},{isSourcePublic:!0});case $y:return dv(dv({},n),{},{targetIds:o.targetIds});case cv:return-1===n.targetIds.indexOf(o.targetId)?n:dv(dv({},n),{},{targetIds:(e=n.targetIds,t=o.targetId,e.filter(function(e){return e!==t}))});case My:return dv(dv({},n),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case jy:return dv(dv({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function gv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case av:case sv:return e+1;case lv:case cv:return e-1;default:return e}}var mv=[],yv=[];function vv(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case $y:break;case av:case sv:case cv:case lv:return mv;default:return yv}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e,t){1===e&&o.push(t)}),o}(r,i),s=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ev;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,i);if(!s)return mv;var l=i[i.length-1],c=r[r.length-1];return l!==c&&(l&&a.push(l),c&&a.push(c)),a}function bv(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function wv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wv(Object(n),!0).forEach(function(t){xv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kv(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:vv(n.dirtyHandlerIds,{type:r.type,payload:_v(_v({},r.payload),{},{prevTargetIds:(e=n,t=[],"dragOperation.targetIds".split(".").reduce(function(e,n){return e&&e[n]?e[n]:t||null},e))})}),dragOffset:iv(n.dragOffset,r),refCount:gv(n.refCount,r),dragOperation:hv(n.dragOperation,r),stateId:bv(n.stateId)}}function Sv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ev(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}mv.__IS_NONE__=!0,yv.__IS_ALL__=!0;var Cv,Tv=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ev(this,"store",void 0),Ev(this,"registry",void 0),this.store=t,this.registry=n}var t;return t=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;Um("function"==typeof e,"listener must be a function."),Um(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe(function(){var o=t.store.getState(),i=o.stateId;try{var a=i===r||i===r+1&&!function(e,t){return e!==mv&&(e===yv||void 0===t||(n=e,t.filter(function(e){return n.indexOf(e)>-1})).length>0);var n}(o.dirtyHandlerIds,n);a||e()}finally{r=i}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;Um("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return Um(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return Um(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&Wy(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return Um(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!Wy(n,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return r=(e=this.store.getState().dragOffset).clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,r&&o&&i?Sv((n=i,{x:(t=r).x+n.x,y:t.y+n.y}),o):null;var e,t,n,r,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,n=e.initialClientOffset,t&&n?Sv(t,n):null;var e,t,n}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),Pv=0;function Ov(e){return Ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ov(e)}function Rv(e,t){t&&Array.isArray(e)?e.forEach(function(e){return Rv(e,!1)}):Um("string"==typeof e||"symbol"===Ov(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Cv||(Cv={}));const Av=void 0!==__webpack_require__.g?__webpack_require__.g:self,Iv=Av.MutationObserver||Av.WebKitMutationObserver;function Dv(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const Lv="function"==typeof Iv?function(e){let t=1;const n=new Iv(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Dv;class Nv{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const $v=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Lv(this.flush),this.requestErrorThrow=Dv(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Mv=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new Nv(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}($v.registerPendingError);function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Uv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qv(e){switch(e[0]){case"S":return Cv.SOURCE;case"T":return Cv.TARGET;default:Um(!1,"Cannot parse handler ID: ".concat(e))}}function zv(e,t){var n=e.entries(),r=!1;do{var o=n.next(),i=o.done;if(Fv(o.value,2)[1]===t)return!0;r=!!i}while(!r);return!1}var Bv=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),jv(this,"types",new Map),jv(this,"dragSources",new Map),jv(this,"dropTargets",new Map),jv(this,"pinnedSourceId",null),jv(this,"pinnedSource",null),jv(this,"store",void 0),this.store=t}var t;return t=[{key:"addSource",value:function(e,t){Rv(e),function(e){Um("function"==typeof e.canDrag,"Expected canDrag to be a function."),Um("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Um("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(Cv.SOURCE,e,t);return this.store.dispatch(function(e){return{type:av,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){Rv(e,!0),function(e){Um("function"==typeof e.canDrop,"Expected canDrop to be a function."),Um("function"==typeof e.hover,"Expected hover to be a function."),Um("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(Cv.TARGET,e,t);return this.store.dispatch(function(e){return{type:sv,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return zv(this.dragSources,e)||zv(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Um(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return Um(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return Um(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return Um(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return qv(e)===Cv.SOURCE}},{key:"isTargetId",value:function(e){return qv(e)===Cv.TARGET}},{key:"removeSource",value:function(e){var t,n=this;Um(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:lv,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},$v.enqueueTask(Mv.create(t))}},{key:"removeTarget",value:function(e){Um(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:cv,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);Um(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){Um(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(Pv++).toString();switch(e){case Cv.SOURCE:return"S".concat(t);case Cv.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(r,t),e===Cv.SOURCE?this.dragSources.set(r,n):e===Cv.TARGET&&this.dropTargets.set(r,n),r}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Hv(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(t=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__,(0,Nt().y$)(kv,t&&n&&n({name:"dnd-core",instanceId:"dnd-core"}))),a=new Tv(i,new Bv(i)),s=new Zy(i,a),l=e(s,r,o);return s.receiveBackend(l),s}var Wv=["children"];function Vv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Kv=0,Gv=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Yv=(0,Jt().memo)(function(e){var t,n=e.children,r=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jv(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[Gv]||(o[Gv]={dragDropManager:Hv(e,t,n,r)}),o[Gv]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Wv)),o=function(e){if(Array.isArray(e))return e}(t=r)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return Vv(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vv(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],a=o[1];return(0,Jt().useEffect)(function(){if(a){var e=Jv();return++Kv,function(){0===--Kv&&(e[Gv]=null)}}},[]),(0,It().jsx)(ay.Provider,Object.assign({value:i},{children:n}),void 0)});function Jv(){return void 0!==__webpack_require__.g?__webpack_require__.g:window}function Qv({namespace:e,...t}){const n=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Um(iy(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),o=function(){return e}),Um(oy(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var i=function(e){return Object.keys(e).forEach(function(t){Um(xy.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',xy.join(", "),t),Um("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),ky.forEach(function(t){Um("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),function(t,n){return new Sy(e,t,n)}}(t);return Um("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Um(oy(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return wy({containerDisplayName:"DragSource",createHandler:i,registerHandler:zm,createConnector:function(e){return new Ym(e)},createMonitor:function(e){return new Zm(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}(e,{beginDrag:({children:e,isDragging:t,connectDragComponent:n,...r})=>r},e=>({connectDragComponent:e.dragSource()}))(({children:e,connectDragComponent:t})=>e(t));return(0,Jt().createElement)(n,t,t.children)}function Xv({onDrop:e,namespace:t,...n}){const r=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e;"function"!=typeof e&&(Um(iy(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),o=function(){return e}),Um(oy(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var i=function(e){return Object.keys(e).forEach(function(t){Um(Ay.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',Ay.join(", "),t),Um("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])}),function(t,n){return new Iy(e,t,n)}}(t);return Um("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),Um(oy(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return wy({containerDisplayName:"DropTarget",createHandler:i,registerHandler:qm,createMonitor:function(e){return new Ty(e)},createConnector:function(e){return new Oy(e)},DecoratedComponent:e,getType:o,collect:n,options:r})}}(t,{drop(t,n){e(n.getItem())}},(e,t)=>({connectDropTarget:e.dropTarget(),isHovered:t.isOver()}))(({children:e,connectDropTarget:t,isHovered:n})=>e(t,{isHovered:n}));return(0,Jt().createElement)(r,n,n.children)}Qv.propTypes={namespace:gn()().any.isRequired,children:gn()().func.isRequired},Xv.propTypes={onDrop:gn()().func.isRequired,namespace:gn()().any.isRequired,children:gn()().func.isRequired};var Zv=__webpack_require__(48110),eb=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,tb=Js(function(e){return eb.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),nb=function(e){return"theme"!==e},rb=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?tb:nb},ob=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ib=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ks(t,n,r),ll(function(){return Gs(t,n,r)}),null},ab=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=ob(t,n,i),l=s||rb(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var g=(0,Zv.withEmotionCache)(function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=Jt().useContext(Zv.ThemeContext)}"string"==typeof e.className?i=Vs(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=al(d.concat(u),t.registered,f);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?rb(r):l,m={};for(var y in e)c&&"as"===y||g(y)&&(m[y]=e[y]);return m.className=i,n&&(m.ref=n),Jt().createElement(Jt().Fragment,null,Jt().createElement(ib,{cache:t,serialized:h,isStringTag:"string"==typeof r}),Jt().createElement(r,m))});return g.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=d,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,xn({},n,r,{shouldForwardProp:ob(g,r,!0)})).apply(void 0,d)},g}},sb=__webpack_require__(5594),lb=__webpack_require__.n(sb);function cb({title:e,config:t}){const n=t?.issue_reports?.url??"https://github.com/decaporg/decap-cms/issues/new";try{const r=function({config:e}){let t="";"string"==typeof DECAP_CMS_VERSION?t=`decap-cms@${DECAP_CMS_VERSION}`:"string"==typeof DECAP_CMS_APP_VERSION&&(t=`decap-cms-app@${DECAP_CMS_APP_VERSION}`);const n=function({version:e,provider:t,browser:n,config:r}){return`\n**Describe the bug**\n\n**To Reproduce**\n\n**Expected behavior**\n\n**Screenshots**\n\n**Applicable Versions:**\n - Decap CMS version: \`${e}\`\n - Git provider: \`${t}\`\n - Browser version: \`${n}\`\n\n**CMS configuration**\n\`\`\`\n${r}\n\`\`\`\n\n**Additional context**\n`}({version:t,provider:e.backend.name,browser:navigator.userAgent,config:ui().stringify(e)});return n}({config:t}),o=new URLSearchParams;return o.append("title",lb()(e,{length:100})),o.append("body",lb()(r,{length:4e3,omission:"\n..."})),o.append("labels","type: bug"),`${n}?${o.toString()}`}catch(e){return console.log(e),`${n}?template=bug_report.md`}}const ub=ab("div",{target:"emw4gx72",label:"ErrorBoundaryContainer"})("padding:40px;h1{font-size:28px;color:",Ur.colors.text,";}h2{font-size:20px;}strong{color:",Ur.colors.textLead,";font-weight:500;}hr{width:200px;margin:30px 0;border:0;height:1px;background-color:",Ur.colors.text,";}a{color:",Ur.colors.active,";}"),db=ab("span",{target:"emw4gx71",label:"PrivacyWarning"})("color:",Ur.colors.text,";"),fb=ab("button",{target:"emw4gx70",label:"CopyButton"})(Ur.buttons.button,";",Ur.buttons.default,";",Ur.buttons.gray,";display:block;margin:12px 0;");function pb({entry:e,t:t}){return console.log(e),wl(vl,{children:[bl("hr",{}),bl("h2",{children:t("ui.errorBoundary.recoveredEntry.heading")}),bl("strong",{children:t("ui.errorBoundary.recoveredEntry.warning")}),bl(fb,{onClick:()=>navigator.clipboard?.writeText(e),children:t("ui.errorBoundary.recoveredEntry.copyButtonLabel")}),bl("pre",{children:bl("code",{children:e})})]})}class hb extends Jt().Component{static propTypes={children:gn()().node,t:gn()().func.isRequired,config:gn()().object.isRequired};state={hasError:!1,errorMessage:"",errorTitle:"",backup:""};static getDerivedStateFromError(e){return console.error(e),{hasError:!0,errorMessage:e.stack||e.toString(),errorTitle:e.toString()}}componentDidMount(){gn()().checkPropTypes(hb.propTypes,this.props,"prop","ErrorBoundary")}shouldComponentUpdate(e,t){return!this.props.showBackup||this.state.errorMessage!==t.errorMessage||this.state.backup!==t.backup}async componentDidUpdate(){if(this.props.showBackup){const e=await si.localForage.getItem("backup");e&&console.log(e),this.setState({backup:e})}}render(){const{hasError:e,errorMessage:t,backup:n,errorTitle:r}=this.state,{showBackup:o,t:i}=this.props;return e?wl(ub,{children:[bl("h1",{children:i("ui.errorBoundary.title")}),wl("p",{children:[bl("span",{children:i("ui.errorBoundary.details")}),bl("a",{href:cb({title:r,config:this.props.config}),target:"_blank",rel:"noopener noreferrer","data-testid":"issue-url",children:i("ui.errorBoundary.reportIt")})]}),bl("p",{children:i("ui.errorBoundary.privacyWarning").split("\n").map((e,t)=>wl(vl,{children:[bl(db,{children:e},t),bl("br",{})]}))}),bl("hr",{}),bl("h2",{children:i("ui.errorBoundary.detailsHeading")}),bl("p",{children:t}),n&&o&&bl(pb,{entry:n,t:i})]}):this.props.children}}const gb=(0,Ot().Tl)()(hb);function mb({label:e,imagesOnly:t,onChange:n,disabled:r,className:o}){return wl("label",{tabIndex:"0",className:`nc-fileUploadButton ${o||""}`,children:[bl("span",{children:e}),bl("input",{type:"file",accept:t?"image/*":"*/*",onChange:n,disabled:r})]})}function yb(){return yb.c||(yb.c=__webpack_require__.n(Ct()))}mb.propTypes={className:gn()().string,label:gn()().string.isRequired,imagesOnly:gn()().bool,onChange:gn()().func.isRequired,disabled:gn()().bool},ft(),Ct();var vb={name:"1o9c9d2-ReactModalGlobalStyles",styles:".ReactModal__Body--open{overflow:hidden;};label:ReactModalGlobalStyles;"};function bb(){return bl(Zv.Global,{styles:vb})}const wb=`\n    ${Ur.shadows.dropDeep};\n    background-color: #fff;\n    border-radius: ${Ur.lengths.borderRadius} ${Ur.lengths.borderRadius} 0 0;\n    height: 90%;\n    @media (min-width: 500px) {\n      border-radius: ${Ur.lengths.borderRadius};\n      height: 80%;\n    }\n    text-align: center;\n    max-width: 2200px;\n    padding: 20px;\n\n    &:focus {\n      outline: none;\n    }\n  `,_b=`\n    z-index: ${Ur.zIndex.zIndex99999};\n    position: fixed;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    display: flex;\n    justify-content: center;\n    align-items: flex-end;\n    @media (min-width: 500px) {\n      align-items: center;\n    }\n    opacity: 0;\n    background-color: rgba(0, 0, 0, 0);\n    transition: background-color ${Ur.transitions.main}, opacity ${Ur.transitions.main};\n  `;class xb extends Jt().Component{static propTypes={children:gn()().node.isRequired,isOpen:gn()().bool.isRequired,className:gn()().string,onClose:gn()().func.isRequired};componentDidMount(){gn()().checkPropTypes(xb.propTypes,this.props,"prop","Modal"),yb()().setAppElement("#nc-root")}render(){const{isOpen:e,children:t,className:n,onClose:r}=this.props;return wl(vl,{children:[bl(bb,{}),bl(Zv.ClassNames,{children:({css:o,cx:i})=>bl(yb()(),{isOpen:e,onRequestClose:r,closeTimeoutMS:300,className:{base:i(o`
                    ${wb};
                  `,n),afterOpen:"",beforeClose:""},overlayClassName:{base:o`
                  ${_b};
                `,afterOpen:o`
                  ${"\n    background-color: rgba(0, 0, 0, 0.6);\n    opacity: 1;\n  "};
                `,beforeClose:o`
                  ${"\n    background-color: rgba(0, 0, 0, 0);\n    opacity: 0;\n  "};
                `},children:t})})]})}}function kb(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=kb(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Sb=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kb(e))&&(r&&(r+=" "),r+=t);return r},Eb=e=>"number"==typeof e&&!isNaN(e),Cb=e=>"string"==typeof e,Tb=e=>"function"==typeof e,Pb=e=>Cb(e)||Tb(e)?e:null,Ob=e=>(0,Jt().isValidElement)(e)||Cb(e)||Tb(e)||Eb(e);function Rb(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(e){let{children:a,position:s,preventExitTransition:l,done:c,nodeRef:u,isIn:d,playToast:f}=e;const p=r?`${t}--${s}`:t,h=r?`${n}--${s}`:n,g=(0,Jt().useRef)(0);return(0,Jt().useLayoutEffect)(()=>{const e=u.current,t=p.split(" "),n=r=>{r.target===u.current&&(f(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===g.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,Jt().useEffect)(()=>{const e=u.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}(e,c,i):c()};d||(l?t():(g.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[d]),Jt().createElement(Jt().Fragment,null,a)}}function Ab(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ib=new Map;let Db=[];const Lb=new Set,Nb=e=>Lb.forEach(t=>t(e)),$b=()=>Ib.size>0;function Mb(e,t){var n;if(t)return!(null==(n=Ib.get(t))||!n.isToastActive(e));let r=!1;return Ib.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function jb(e,t){Ob(e)&&($b()||Db.push({content:e,options:t}),Ib.forEach(n=>{n.buildToast(e,t)}))}function Fb(e,t){Ib.forEach(n=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===n.id&&n.toggle(e,null==t?void 0:t.id):n.toggle(e,null==t?void 0:t.id)})}function Ub(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:a,style:s,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:f}=e;const p=i||l&&0===c,h={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(h.transform=`scaleX(${c})`);const g=Sb("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),m=Tb(a)?a({rtl:u,type:o,defaultClassName:g}):Sb(g,a),y={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&r()}};return Jt().createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},Jt().createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${o}`}),Jt().createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:m,style:h,...y}))}let qb=1;const zb=()=>""+qb++;function Bb(e){return e&&(Cb(e.toastId)||Eb(e.toastId))?e.toastId:zb()}function Hb(e,t){return jb(e,t),t.toastId}function Wb(e,t){return{...t,type:t&&t.type||e,toastId:Bb(t)}}function Vb(e){return(t,n)=>Hb(t,Wb(e,n))}function Kb(e,t){return Hb(e,Wb("default",t))}Kb.loading=(e,t)=>Hb(e,Wb("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Kb.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=Cb(o)?Kb.loading(o,n):Kb.loading(o.render,{...n,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,o)=>{if(null==t)return void Kb.dismiss(r);const i={type:e,...s,...n,data:o},a=Cb(t)?{render:t}:t;return r?Kb.update(r,{...i,...a}):Kb(a.render,{...i,...a}),o},c=Tb(e)?e():e;return c.then(e=>l("success",a,e)).catch(e=>l("error",i,e)),c},Kb.success=Vb("success"),Kb.info=Vb("info"),Kb.error=Vb("error"),Kb.warning=Vb("warning"),Kb.warn=Kb.warning,Kb.dark=(e,t)=>Hb(e,Wb("default",{theme:"dark",...t})),Kb.dismiss=function(e){!function(e){var t;if($b()){if(null==e||Cb(t=e)||Eb(t))Ib.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const t=Ib.get(e.containerId);t?t.removeToast(e.id):Ib.forEach(t=>{t.removeToast(e.id)})}}else Db=Db.filter(t=>null!=e&&t.options.toastId!==e)}(e)},Kb.clearWaitingQueue=function(e){void 0===e&&(e={}),Ib.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Kb.isActive=Mb,Kb.update=function(e,t){void 0===t&&(t={});const n=((e,t)=>{var n;let{containerId:r}=t;return null==(n=Ib.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:zb()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Hb(a,i)}},Kb.done=e=>{Kb.update(e,{progress:1})},Kb.onChange=function(e){return Lb.add(e),()=>{Lb.delete(e)}},Kb.play=e=>Fb(!0,e),Kb.pause=e=>Fb(!1,e);const Gb="undefined"!=typeof window?Jt().useLayoutEffect:Jt().useEffect,Yb=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return Jt().createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Jb={info:function(e){return Jt().createElement(Yb,{...e},Jt().createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Jt().createElement(Yb,{...e},Jt().createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Jt().createElement(Yb,{...e},Jt().createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Jt().createElement(Yb,{...e},Jt().createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Jt().createElement("div",{className:"Toastify__spinner"})}},Qb=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=function(e){const[t,n]=(0,Jt().useState)(!1),[r,o]=(0,Jt().useState)(!1),i=(0,Jt().useRef)(null),a=(0,Jt().useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:d}=e;var f,p;function h(){n(!0)}function g(){n(!1)}function m(n){const r=i.current;a.canDrag&&r&&(a.didMove=!0,t&&g(),a.delta="x"===e.draggableDirection?n.clientX-a.start:n.clientY-a.start,a.start!==n.clientX&&(a.canCloseOnClick=!1),r.style.transform=`translate3d(${"x"===e.draggableDirection?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,r.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function y(){document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",y);const t=i.current;if(a.canDrag&&a.didMove&&t){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(p=Ib.get((f={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))||p.setToggle(f.id,f.fn),(0,Jt().useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",h),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){a.didMove=!1,document.addEventListener("pointermove",m),document.addEventListener("pointerup",y);const n=i.current;a.canCloseOnClick=!0,a.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(a.start=t.clientX,a.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(a.start=t.clientY,a.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){const{top:n,bottom:r,left:o,right:a}=i.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=o&&t.clientX<=a&&t.clientY>=n&&t.clientY<=r?g():h()}};return s&&l&&(v.onMouseEnter=g,e.stacked||(v.onMouseLeave=h)),d&&(v.onClick=e=>{u&&u(e),a.canCloseOnClick&&c()}),{playToast:h,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:v}}(e),{closeButton:a,children:s,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:f,transition:p,position:h,className:g,style:m,bodyClassName:y,bodyStyle:v,progressClassName:b,progressStyle:w,updateId:_,role:x,progress:k,rtl:S,toastId:E,deleteToast:C,isIn:T,isLoading:P,closeOnClick:O,theme:R}=e,A=Sb("Toastify__toast",`Toastify__toast-theme--${R}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":S},{"Toastify__toast--close-on-click":O}),I=Tb(g)?g({rtl:S,position:h,type:u,defaultClassName:A}):Sb(A,g),D=function(e){let{theme:t,type:n,isLoading:r,icon:o}=e,i=null;const a={theme:t,type:n};return!1===o||(Tb(o)?i=o({...a,isLoading:r}):(0,Jt().isValidElement)(o)?i=(0,Jt().cloneElement)(o,a):r?i=Jb.spinner():(e=>e in Jb)(n)&&(i=Jb[n](a))),i}(e),L=!!k||!l,N={closeToast:f,type:u,theme:R};let $=null;return!1===a||($=Tb(a)?a(N):(0,Jt().isValidElement)(a)?(0,Jt().cloneElement)(a,N):function(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return Jt().createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},Jt().createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Jt().createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(N)),Jt().createElement(p,{isIn:T,done:C,position:h,preventExitTransition:n,nodeRef:r,playToast:i},Jt().createElement("div",{id:E,onClick:c,"data-in":T,className:I,...o,style:m,ref:r},Jt().createElement("div",{...T&&{role:x},className:Tb(y)?y({type:u}):Sb("Toastify__toast-body",y),style:v},null!=D&&Jt().createElement("div",{className:Sb("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},D),Jt().createElement("div",null,s)),$,Jt().createElement(Ub,{..._&&!L?{key:`pb-${_}`}:{},rtl:S,theme:R,delay:l,isRunning:t,isIn:T,closeToast:f,hide:d,type:u,style:w,className:b,controlledProgress:L,progress:k||0})))},Xb=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Zb=Rb(Xb("bounce",!0)),ew=(Rb(Xb("slide",!0)),Rb(Xb("zoom")),Rb(Xb("flip")),{position:"top-right",transition:Zb,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"});function tw(e){let t={...ew,...e};const n=e.stacked,[r,o]=(0,Jt().useState)(!0),i=(0,Jt().useRef)(null),{getToastToRender:a,isToastActive:s,count:l}=function(e){const{subscribe:t,getSnapshot:n,setProps:r}=(0,Jt().useRef)(function(e){const t=e.containerId||1;return{subscribe(n){const r=function(e,t,n){let r=1,o=0,i=[],a=[],s=[],l=t;const c=new Map,u=new Set,d=()=>{s=Array.from(c.values()),u.forEach(e=>e())},f=e=>{a=null==e?[]:a.filter(t=>t!==e),d()},p=e=>{const{toastId:t,onOpen:r,updateId:o,children:i}=e.props,s=null==o;e.staleId&&c.delete(e.staleId),c.set(t,e),a=[...a,e.props.toastId].filter(t=>t!==e.staleId),d(),n(Ab(e,s?"added":"updated")),s&&Tb(r)&&r((0,Jt().isValidElement)(i)&&i.props)};return{id:e,props:l,observe:e=>(u.add(e),()=>u.delete(e)),toggle:(e,t)=>{c.forEach(n=>{null!=t&&t!==n.props.toastId||Tb(n.toggle)&&n.toggle(e)})},removeToast:f,toasts:c,clearQueue:()=>{o-=i.length,i=[]},buildToast:(t,a)=>{if((t=>{let{containerId:n,toastId:r,updateId:o}=t;const i=n?n!==e:1!==e,a=c.has(r)&&null==o;return i||a})(a))return;const{toastId:s,updateId:u,data:h,staleId:g,delay:m}=a,y=()=>{f(s)},v=null==u;v&&o++;const b={...l,style:l.toastStyle,key:r++,...Object.fromEntries(Object.entries(a).filter(e=>{let[t,n]=e;return null!=n})),toastId:s,updateId:u,data:h,closeToast:y,isIn:!1,className:Pb(a.className||l.toastClassName),bodyClassName:Pb(a.bodyClassName||l.bodyClassName),progressClassName:Pb(a.progressClassName||l.progressClassName),autoClose:!a.isLoading&&(w=a.autoClose,_=l.autoClose,!1===w||Eb(w)&&w>0?w:_),deleteToast(){const e=c.get(s),{onClose:t,children:r}=e.props;Tb(t)&&t((0,Jt().isValidElement)(r)&&r.props),n(Ab(e,"removed")),c.delete(s),o--,o<0&&(o=0),i.length>0?p(i.shift()):d()}};var w,_;b.closeButton=l.closeButton,!1===a.closeButton||Ob(a.closeButton)?b.closeButton=a.closeButton:!0===a.closeButton&&(b.closeButton=!Ob(l.closeButton)||l.closeButton);let x=t;(0,Jt().isValidElement)(t)&&!Cb(t.type)?x=(0,Jt().cloneElement)(t,{closeToast:y,toastProps:b,data:h}):Tb(t)&&(x=t({closeToast:y,toastProps:b,data:h}));const k={content:x,props:b,staleId:g};l.limit&&l.limit>0&&o>l.limit&&v?i.push(k):Eb(m)?setTimeout(()=>{p(k)},m):p(k)},setProps(e){l=e},setToggle:(e,t)=>{c.get(e).toggle=t},isToastActive:e=>a.some(t=>t===e),getSnapshot:()=>s}}(t,e,Nb);Ib.set(t,r);const o=r.observe(n);return Db.forEach(e=>jb(e.content,e.options)),Db=[],()=>{o(),Ib.delete(t)}},setProps(e){var n;null==(n=Ib.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=Ib.get(t))?void 0:e.getSnapshot()}}}(e)).current;r(e);const o=(0,Jt().useSyncExternalStore)(t,n,n);return{getToastToRender:function(t){if(!o)return[];const n=new Map;return e.newestOnTop&&o.reverse(),o.forEach(e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},isToastActive:Mb,count:null==o?void 0:o.length}}(t),{className:c,style:u,rtl:d,containerId:f}=t;function p(e){const t=Sb("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return Tb(c)?c({position:e,rtl:d,defaultClassName:t}):Sb(t,Pb(c))}function h(){n&&(o(!0),Kb.play())}return Gb(()=>{if(n){var e;const n=i.current.querySelectorAll('[data-in="true"]'),o=12,a=null==(e=t.position)?void 0:e.includes("top");let s=0,l=0;Array.from(n).reverse().forEach((e,t)=>{const n=e;n.classList.add("Toastify__toast--stacked"),t>0&&(n.dataset.collapsed=`${r}`),n.dataset.pos||(n.dataset.pos=a?"top":"bot");const i=s*(r?.2:1)+(r?0:o*t);n.style.setProperty("--y",`${a?i:-1*i}px`),n.style.setProperty("--g",`${o}`),n.style.setProperty("--s",""+(1-(r?l:0))),s+=n.offsetHeight,l+=.025})}},[r,l,n]),Jt().createElement("div",{ref:i,className:"Toastify",id:f,onMouseEnter:()=>{n&&(o(!1),Kb.pause())},onMouseLeave:h},a((e,t)=>{const r=t.length?{...u}:{...u,pointerEvents:"none"};return Jt().createElement("div",{className:p(e),style:r,key:`container-${e}`},t.map(e=>{let{content:t,props:r}=e;return Jt().createElement(Qb,{...r,stacked:n,collapseAll:h,isIn:s(r.toastId,r.containerId),style:r.style,key:`toast-${r.key}`},t)}))}))}var nw;function rw(e,t){return"string"==typeof e?e:t(e.key,{...e})}function ow(e,t){const n=rw(e.message,t);return e.link?wl(vl,{children:[n," ",bl("a",{href:e.link.url,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline",fontWeight:"bold"},children:rw(e.link.label,t)})]}):n}(nw=document.createElement("style")).innerText=':root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74c3c;--toastify-color-transparent:hsla(0,0%,100%,.7);--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-toast-width:320px;--toastify-toast-offset:16px;--toastify-toast-top:max(var(--toastify-toast-offset),env(safe-area-inset-top));--toastify-toast-right:max(var(--toastify-toast-offset),env(safe-area-inset-right));--toastify-toast-left:max(var(--toastify-toast-offset),env(safe-area-inset-left));--toastify-toast-bottom:max(var(--toastify-toast-offset),env(safe-area-inset-bottom));--toastify-toast-background:#fff;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-toast-bd-radius:6px;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error);--toastify-color-progress-bgo:0.2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translateZ(var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translateX(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translateX(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width:480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translateX(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translateX(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:auto}}.Toastify__toast{--y:0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__close-button,.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width:480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:auto;transform-origin:right;border-bottom-left-radius:0;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}',document.head.appendChild(nw);const iw=Qn(function({notifications:e}){return{notifications:e.notifications}})(function({notifications:e}){const t=(0,Ot().WD)(),n=nr(),[r,o]=(0,Jt().useState)({});return(0,Jt().useEffect)(()=>{function i(e,t){null!==e.dismissTimer&&e.dismissAfter===t.dismissAfter||(null!==e.dismissTimer&&(clearTimeout(e.dismissTimer),e.dismissTimer=null),e.dismissAfter=t.dismissAfter,t.dismissAfter&&(e.dismissTimer=setTimeout(()=>{n(Yc(t.id))},t.dismissAfter)))}e.filter(e=>!r[e.id]).forEach(e=>{const n={toastId:Kb(ow(e,t),{autoClose:e.dismissAfter,type:e.type,isLoading:e.spinner}),notification:e,dismissTimer:null,dismissAfter:void 0};r[e.id]=n,o(r),i(n,e)}),e.forEach(e=>{const n=r[e.id];n&&n.notification!==e&&(n.notification=e,Kb.update(n.toastId,{render:ow(e,t),type:e.type,autoClose:e.dismissAfter,isLoading:e.spinner??!1}),i(n,e))}),Object.entries(r).forEach(([t,n])=>{e.find(e=>e.id===t)||(Kb.dismiss(n.toastId),null!==n.dismissTimer&&clearTimeout(n.dismissTimer),delete r[t],o(r))})},[e]),Kb.onChange(e=>{if("removed"==e.status){const t=Object.entries(r).find(([,t])=>t.toastId===e.id)?.[0];t&&n(Yc(t))}}),bl(vl,{children:bl(tw,{position:"top-right",theme:"colored",className:"notif__container",closeOnClick:!0,draggable:!0})})}),aw={name:"m2n7c1-avatarImage",styles:"width:32px;border-radius:32px;label:avatarImage;"},sw=ab(Ur.DropdownButton,{target:"e1gt62yu8",label:"AvatarDropdownButton"})({name:"dtukf8",styles:"display:inline-block;padding:8px;cursor:pointer;color:#1e2532;background-color:transparent"}),lw=ab("img",{target:"e1gt62yu7",label:"AvatarImage"})(aw,";"),cw=ab(Ur.Icon,{target:"e1gt62yu6",label:"AvatarPlaceholderIcon"})(aw,";height:32px;color:#1e2532;background-color:",Ur.colors.textFieldBorder,";"),uw=(0,Zv.css)("font-size:14px;font-weight:400;color:",Ur.colors.text,";padding:10px 16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;;label:AppHeaderLink;"),dw=ab("a",{target:"e1gt62yu5",label:"AppHeaderSiteLink"})(uw,""),fw=ab("a",{target:"e1gt62yu4",label:"AppHeaderTestRepoIndicator"})(uw,";@media (max-width: 399px){position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:12px;background-color:",Ur.colors.background,";padding:4px 12px;border-radius:0 0 4px 4px;",Ur.shadows.drop,";}"),pw=ab("li",{target:"e1gt62yu3",label:"AccountLabel"})("padding:8px 14px;border-bottom:1px solid ",Ur.colors.textFieldBorder,";margin-bottom:4px;cursor:default;"),hw=ab("div",{target:"e1gt62yu2",label:"AccountLabelLine"})("font-size:13px;font-weight:500;color:",Ur.colors.text,";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"),gw=ab(hw,{target:"e1gt62yu1",label:"AccountLabelEmail"})("font-size:12px;font-weight:400;color:",Ur.colors.textLead,";");function mw({imageUrl:e}){return e?bl(lw,{src:e}):bl(cw,{type:"user",size:"large"})}mw.propTypes={imageUrl:gn()().string};const yw=ab("div",{target:"e1gt62yu0",label:"SettingsWrapper"})({name:"p2fe58",styles:"display:flex;align-items:center;min-width:0"});function vw({displayUrl:e,isTestRepo:t,imageUrl:n,identity:r,onLogoutClick:o,t:i}){return wl(yw,{children:[t&&bl(fw,{href:"https://www.decapcms.org/docs/test-backend",target:"_blank",rel:"noopener noreferrer",children:"Test Backend ↗"}),e?bl(dw,{href:e,target:"_blank",children:zl(e)}):null,wl(Ur.Dropdown,{dropdownTopOverlap:"50px",dropdownWidth:r?"220px":"100px",dropdownPosition:"right",renderButton:()=>bl(sw,{"aria-label":i("ui.settingsDropdown.account"),children:bl(mw,{imageUrl:n})}),children:[r?wl(pw,{children:[bl(hw,{title:r.label,children:r.label}),r.email?bl(gw,{title:r.email,children:r.email}):null]}):null,bl(Ur.DropdownItem,{label:i("ui.settingsDropdown.logOut"),onClick:o})]})]})}vw.propTypes={displayUrl:gn()().string,isTestRepo:gn()().bool,imageUrl:gn()().string,identity:gn()().shape({label:gn()().string.isRequired,email:gn()().string}),onLogoutClick:gn()().func.isRequired,t:gn()().func.isRequired};const bw=(0,Ot().Tl)()(vw);var ww=__webpack_require__(18630),_w=__webpack_require__.n(ww),xw=__webpack_require__(33555),kw=__webpack_require__.n(xw);function Sw(e){rd.push(ql(e))}var Ew=__webpack_require__(41936),Cw=__webpack_require__.n(Ew);const Tw=ab("div",{target:"el0uck02",label:"SearchContainer"})({name:"1h3gsib",styles:"height:37px;display:flex;align-items:center;position:relative;flex:1 1 150px;max-width:460px"}),Pw=ab("input",{target:"el0uck01",label:"SearchInput"})("background-color:#eff0f4;border-radius:",Ur.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 32px;width:100%;position:relative;z-index:",Ur.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",Ur.colors.active,";}"),Ow=ab(Ur.Icon,{target:"el0uck00",label:"SearchIcon"})("position:absolute;top:50%;left:6px;z-index:",Ur.zIndex.zIndex2,";transform:translate(0, -50%);pointer-events:none;");function Rw({value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:o}){return wl(Tw,{children:[bl(Ow,{type:"search",size:"small"}),bl(Pw,{value:e,onChange:t,onKeyDown:n,placeholder:r,disabled:o})]})}Rw.propTypes={value:gn()().string,onChange:gn()().func.isRequired,onKeyDown:gn()().func.isRequired,placeholder:gn()().string.isRequired,disabled:gn()().bool};const Aw=Rw,Iw=ab("div",{target:"estf6122",label:"HeaderContainer"})({name:"bkqiel",styles:"@media (max-width: 499px){width:100%;display:flex;justify-content:space-between;flex-direction:row-reverse;}"}),Dw=ab("button",{target:"estf6121",label:"CloseButton"})(Ur.buttons.button,";background-color:white;@media (min-width: 500px){",Ur.shadows.dropMiddle,";position:absolute;margin-right:-40px;left:-40px;top:-40px;width:40px;height:40px;border-radius:50%;padding:0;display:flex;justify-content:center;align-items:center;}"),Lw=ab("h1",{target:"estf6120",label:"LibraryTitle"})("font-size:18px;line-height:28px;text-align:left;@media (min-width: 500px){font-size:22px;line-height:36px;}margin-bottom:0;color:",e=>e.isPrivate&&Ur.colors.textFieldBorder,";");function Nw({onClose:e,title:t,isPrivate:n,t:r}){return wl(Iw,{children:[bl(Dw,{"aria-label":r("mediaLibrary.mediaLibraryModal.close"),onClick:e,children:bl(Ur.Icon,{type:"close"})}),bl(Lw,{isPrivate:n,children:t})]})}Nw.propTypes={onClose:gn()().func.isRequired,title:gn()().string.isRequired,isPrivate:gn()().bool};const $w=Nw,Mw={button:(0,Zv.css)(Ur.buttons.button,";",Ur.buttons.default,";display:inline-flex;align-items:center;&[disabled]{",Ur.buttons.disabled,";cursor:default;};label:button;"),visuallyHidden:{name:"1w6ud9y-visuallyHidden",styles:"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;label:visuallyHidden;"}},jw=ab(mb,{target:"e288rjk3",label:"UploadButton"})(Mw.button,";",Ur.buttons.gray,";",Ur.shadows.dropMain,";margin-bottom:0;span{font-size:14px;font-weight:500;display:flex;justify-content:center;align-items:center;}input{height:0.1px;width:0.1px;margin:0;padding:0;opacity:0;overflow:hidden;position:absolute;z-index:",Ur.zIndex.zIndex0,";outline:none;}"),Fw=ab("button",{target:"e288rjk2",label:"DeleteButton"})(Mw.button,";",Ur.buttons.lightRed,";"),Uw=ab("button",{target:"e288rjk1",label:"InsertButton"})(Mw.button,";",Ur.buttons.green,";"),qw=ab("button",{target:"e288rjk0",label:"ActionButton"})(Mw.button,";",e=>!e.disabled&&(0,Zv.css)(Ur.buttons.gray,";;label:ActionButton;"),";");function zw({children:e,icon:t,...n}){return wl(qw,{...n,children:[bl(Ur.Icon,{type:t,size:"small","aria-hidden":"true",css:(0,Zv.css)({"@media (min-width: 600px)":Mw.visuallyHidden},";label:ResponsiveActionButton;")}),bl("span",{css:(0,Zv.css)({"@media (max-width: 599px)":Mw.visuallyHidden},";label:ResponsiveActionButton;"),children:e})]})}function Bw({children:e,...t}){return bl(zw,{...t,icon:"download",children:e})}class Hw extends Jt().Component{mounted=!1;timeout;state={copied:!1};componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}handleCopy=async()=>{clearTimeout(this.timeout);const{path:e,draft:t,name:n}=this.props;await(navigator.clipboard?.writeText((0,si.isAbsolutePath)(e)||!t?e:n)),this.setState({copied:!0}),this.timeout=setTimeout(()=>this.mounted&&this.setState({copied:!1}),1500)};getTitle=()=>{const{t:e,path:t,draft:n}=this.props;return this.state.copied?e("mediaLibrary.mediaLibraryCard.copied"):t?(0,si.isAbsolutePath)(t)?e("mediaLibrary.mediaLibraryCard.copyUrl"):e(n?"mediaLibrary.mediaLibraryCard.copyName":"mediaLibrary.mediaLibraryCard.copyPath"):e("mediaLibrary.mediaLibraryCard.copy")};getIcon=()=>this.state.copied?"check":"copy";render(){const{disabled:e}=this.props;return bl(zw,{disabled:e,onClick:this.handleCopy,icon:this.getIcon(),children:this.getTitle()})}}Hw.propTypes={disabled:gn()().bool.isRequired,draft:gn()().bool,path:gn()().string,name:gn()().string,t:gn()().func.isRequired};const Ww={name:"1nvn5qv-flexSpacing",styles:"gap:8px;@media (min-width: 500px){gap:15px;};label:flexSpacing;"},Vw=ab("div",{target:"e1n0ky5z2",label:"LibraryTop"})("position:relative;display:flex;flex-direction:column;",Ww,";"),Kw=ab("div",{target:"e1n0ky5z1",label:"RowContainer"})("display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;",Ww,";"),Gw=ab("div",{target:"e1n0ky5z0",label:"ButtonsContainer"})("display:flex;align-items:center;justify-content:stretch;flex-wrap:wrap;",Ww,";");function Yw({t:e,onClose:t,privateUpload:n,forImage:r,onDownload:o,onUpload:i,query:a,onSearchChange:s,onSearchKeyDown:l,searchDisabled:c,onDelete:u,canInsert:d,onInsert:f,hasSelection:p,isPersisting:h,isDeleting:g,selectedFile:m={}}){const y=h||g,v=!y,b=!y&&p,w=e(h?"mediaLibrary.mediaLibraryModal.uploading":"mediaLibrary.mediaLibraryModal.upload"),_=e(g?"mediaLibrary.mediaLibraryModal.deleting":"mediaLibrary.mediaLibraryModal.deleteSelected"),x=e("mediaLibrary.mediaLibraryModal.download"),k=e("mediaLibrary.mediaLibraryModal.chooseSelected");return wl(Vw,{children:[wl(Kw,{children:[bl($w,{onClose:t,title:`${n?e("mediaLibrary.mediaLibraryModal.private"):""}${e(r?"mediaLibrary.mediaLibraryModal.images":"mediaLibrary.mediaLibraryModal.mediaAssets")}`,isPrivate:n,t:e}),wl(Gw,{children:[bl(Hw,{disabled:!p,path:m.path,name:m.name,draft:m.draft,t:e}),bl(Bw,{onClick:o,disabled:!p,children:x}),bl(jw,{label:w,imagesOnly:r,onChange:i,disabled:!v})]})]}),wl(Kw,{children:[bl(Aw,{value:a,onChange:s,onKeyDown:l,placeholder:e("mediaLibrary.mediaLibraryModal.search"),disabled:c}),wl(Gw,{children:[bl(Fw,{onClick:u,disabled:!b,children:_}),d?bl(Uw,{onClick:f,disabled:!p,children:k}):null]})]})]})}Yw.propTypes={t:gn()().func.isRequired,onClose:gn()().func.isRequired,privateUpload:gn()().bool,forImage:gn()().bool,onDownload:gn()().func.isRequired,onUpload:gn()().func.isRequired,query:gn()().string,onSearchChange:gn()().func.isRequired,onSearchKeyDown:gn()().func.isRequired,searchDisabled:gn()().bool.isRequired,onDelete:gn()().func.isRequired,canInsert:gn()().bool,onInsert:gn()().func.isRequired,hasSelection:gn()().bool.isRequired,isPersisting:gn()().bool,isDeleting:gn()().bool,selectedFile:gn()().oneOfType([gn()().shape({path:gn()().string.isRequired,draft:gn()().bool.isRequired,name:gn()().string.isRequired}),gn()().shape({})])};const Jw=Yw;var Qw=!("undefined"==typeof window||!window.document||!window.document.createElement),Xw=void 0;function Zw(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function e_(e){this.target=e,this.events={}}e_.prototype.getEventHandlers=function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(0|n.capture)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]},e_.prototype.handleEvent=function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach(function(e){e&&e(n)})},e_.prototype.add=function(e,t,n){var r=this,o=this.getEventHandlers(e,n);Zw(o),0===o.nextHandlers.length&&(o.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,o.handleEvent,n)),o.nextHandlers.push(t);var i=!0;return function(){if(i){i=!1,Zw(o);var a=o.nextHandlers.indexOf(t);o.nextHandlers.splice(a,1),0===o.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,o.handleEvent,n),o.handleEvent=void 0)}}};var t_="__consolidated_events_handlers__";function n_(e,t,n,r){e[t_]||(e[t_]=new e_(e));var o=function(e){if(e)return void 0===Xw&&(Xw=function(){if(!Qw)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),Xw?e:!!e.capture}(r);return e[t_].add(t,n,o)}function r_(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var o=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof o?o*t:void 0}dt();var o_,i_="above",a_="inside",s_="below",l_="invisible";function c_(e){return"string"==typeof e.type}var u_=[];function d_(e){u_.push(e),o_||(o_=setTimeout(function(){var e;for(o_=null;e=u_.shift();)e()},0));var t=!0;return function(){if(t){t=!1;var n=u_.indexOf(e);-1!==n&&(u_.splice(n,1),!u_.length&&o_&&(clearTimeout(o_),o_=null))}}}var f_="undefined"!=typeof window,p_=function(e){function t(t){var n;return(n=e.call(this,t)||this).refElement=function(e){n._ref=e},n}or(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;f_&&(this.cancelOnNextTick=d_(function(){e.cancelOnNextTick=null;var t=e.props,n=t.children;t.debug,function(e,t){if(e&&!c_(e)&&!t)throw new Error("<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=n_(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=n_(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)}))},n.componentDidUpdate=function(){var e=this;f_&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=d_(function(){e.cancelOnNextTick=null,e._handleScroll(null)})))},n.componentWillUnmount=function(){f_&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())},n._findScrollableAncestor=function(){var e=this.props,t=e.horizontal,n=e.scrollableAncestor;if(n)return function(e){return"window"===e?__webpack_require__.g.window:e}(n);for(var r=this._ref;r.parentNode;){if((r=r.parentNode)===document.body)return window;var o=window.getComputedStyle(r),i=(t?o.getPropertyValue("overflow-x"):o.getPropertyValue("overflow-y"))||o.getPropertyValue("overflow");if("auto"===i||"scroll"===i||"overlay"===i)return r}return window},n._handleScroll=function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop===0?l_:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom||e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom||e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?a_:e.viewportBottom<e.waypointTop?s_:e.waypointTop<e.viewportTop?i_:l_}(t),r=this._previousPosition,o=this.props,i=(o.debug,o.onPositionChange),a=o.onEnter,s=o.onLeave,l=o.fireOnRapidScroll;if(this._previousPosition=n,r!==n){var c={currentPosition:n,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};i.call(this,c),n===a_?a.call(this,c):r===a_&&s.call(this,c),l&&(r===s_&&n===i_||r===i_&&n===s_)&&(a.call(this,{currentPosition:a_,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),s.call(this,{currentPosition:n,previousPosition:a_,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}},n._getBounds=function(){var e,t,n=this.props,r=n.horizontal,o=(n.debug,this._ref.getBoundingClientRect()),i=o.left,a=o.top,s=o.right,l=o.bottom,c=r?i:a,u=r?s:l;this.scrollableAncestor===window?(e=r?window.innerWidth:window.innerHeight,t=0):(e=r?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,t=r?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var d=this.props,f=d.bottomOffset;return{waypointTop:c,waypointBottom:u,viewportTop:t+r_(d.topOffset,e),viewportBottom:t+e-r_(f,e)}},n.render=function(){var e=this,t=this.props.children;return t?c_(t)||(0,ut().isForwardRef)(t)?hn()().cloneElement(t,{ref:function(n){e.refElement(n),t.ref&&("function"==typeof t.ref?t.ref(n):t.ref.current=n)}}):hn()().cloneElement(t,{innerRef:this.refElement}):hn()().createElement("span",{ref:this.refElement,style:{fontSize:0}})},t}(hn()().PureComponent);function h_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}p_.above=i_,p_.below=s_,p_.inside=a_,p_.invisible=l_,p_.defaultProps={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},p_.displayName="Waypoint";var g_=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function m_(e,t){return e===t||!(!g_(e)||!g_(t))}function y_(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!m_(e[n],t[n]))return!1;return!0}const v_=function(e,t){var n;void 0===t&&(t=y_);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}};var b_="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function w_(e){cancelAnimationFrame(e.id)}var __=-1,x_=null;function k_(e){if(void 0===e&&(e=!1),null===x_||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?x_="positive-descending":(t.scrollLeft=1,x_=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),x_}return x_}var S_=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};var E_=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},C_=function(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,f=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,m=e.validateProps;return(t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,h_(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:h_(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=v_(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=v_(function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,f=r._getItemStyleCache(g&&s,g&&l,g&&c),p=e+":"+t;if(f.hasOwnProperty(p))o=f[p];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;f[p]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=v_(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(k_()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){var e,t,n;null!==r._resetIsScrollingTimeoutId&&w_(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=b_(),n={id:requestAnimationFrame(function r(){b_()-t>=150?e.call(null):n.id=requestAnimationFrame(r)})})},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}or(t,e),t.getDerivedStateFromProps=function(e,t){return E_(e,t),m(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,f=i.rowCount,p=i.width,h=this.state,g=h.scrollLeft,m=h.scrollTop,y=function(e){if(void 0===e&&(e=!1),-1===__||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),__=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return __}();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,f-1)));var v=a(this.props,this._instanceProps),b=s(this.props,this._instanceProps)>p?y:0,w=v>d?y:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,g,this._instanceProps,w):g,scrollTop:void 0!==o?c(this.props,o,n,m,this._instanceProps,b):m})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(k_()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&w_(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,f=e.itemKey,p=void 0===f?S_:f,h=e.outerElementType,g=e.outerTagName,m=e.rowCount,y=e.style,v=e.useIsScrolling,b=e.width,w=this.state.isScrolling,_=this._getHorizontalRangeToRender(),x=_[0],k=_[1],S=this._getVerticalRangeToRender(),E=S[0],C=S[1],T=[];if(r>0&&m)for(var P=E;P<=C;P++)for(var O=x;O<=k;O++)T.push((0,Jt().createElement)(t,{columnIndex:O,data:d,isScrolling:v?w:void 0,key:p({columnIndex:O,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,O)}));var R=a(this.props,this._instanceProps),A=s(this.props,this._instanceProps);return(0,Jt().createElement)(h||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:xn({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},(0,Jt().createElement)(c||u||"div",{children:T,ref:l,style:{height:R,pointerEvents:w?"none":void 0,width:A}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],f=u[1],p=u[2],h=u[3];this._callOnItemsRendered(a,s,d,f,l,c,p,h)}if("function"==typeof r){var g=this.state,m=g.horizontalScrollDirection,y=g.scrollLeft,v=g.scrollTop,b=g.scrollUpdateWasRequested,w=g.verticalScrollDirection;this._callOnScroll(y,v,m,w,b)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,f=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var p=r(this.props,d,this._instanceProps),h=o(this.props,p,d,this._instanceProps),g=u&&"backward"!==c?1:Math.max(1,f),m=u&&"forward"!==c?1:Math.max(1,f);return[Math.max(0,p-g),Math.max(0,Math.min(t-1,h+m)),p,h]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),h=p(this.props,d,c,this._instanceProps),g=s&&"backward"!==l?1:Math.max(1,u),m=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-g),Math.max(0,Math.min(i-1,h+m)),d,h]},t}(Jt().PureComponent)).defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,s=e.columnWidth,l=e.width,c=Math.max(0,a*s-l),u=Math.min(c,t*s),d=Math.max(0,t*s-l+i+s);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var f=Math.round(d+(u-d)/2);return f<Math.ceil(l/2)?0:f>c+Math.floor(l/2)?c:f;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,s=e.height,l=e.rowCount,c=Math.max(0,l*a-s),u=Math.min(c,t*a),d=Math.max(0,t*a-s+i+a);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var f=Math.round(d+(u-d)/2);return f<Math.ceil(s/2)?0:f>c+Math.floor(s/2)?c:f;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}});let T_;T_="undefined"!=typeof window?window:"undefined"!=typeof self?self:__webpack_require__.g;let P_=null,O_=null;const R_=T_.clearTimeout,A_=T_.setTimeout,I_=T_.cancelAnimationFrame||T_.mozCancelAnimationFrame||T_.webkitCancelAnimationFrame,D_=T_.requestAnimationFrame||T_.mozRequestAnimationFrame||T_.webkitRequestAnimationFrame;null==I_||null==D_?(P_=R_,O_=function(e){return A_(e,20)}):(P_=function([e,t]){I_(e),R_(t)},O_=function(e){const t=D_(function(){R_(n),e()}),n=A_(function(){I_(t),e()},20);return[t,n]});class L_ extends Jt().Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i;if(!e&&this.state.height!==c||!t&&this.state.width!==u){this.setState({height:c,width:u});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:c,width:u,get scaledHeight(){return e(),c},get scaledWidth(){return e(),u}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&P_(this.__resizeRAF__),this.__resizeRAF__=O_(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=T_.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:d,width:f}=this.state,p={overflow:"visible"},h={};let g=!1;return r||(0===d&&(g=!0),p.height=0,h.height=d,h.scaledHeight=d),o||(0===f&&(g=!0),p.width=0,h.width=f,h.scaledWidth=f),i&&(g=!1),(0,Jt().createElement)(c,{ref:this._setRef,style:{...p,...l},...u},!g&&e(h))}}const N_=ab("div",{target:"e2etv5a5",label:"Card"})("width:",e=>e.width,";height:",e=>e.height,";margin:",e=>e.margin,";border:",Ur.borders.textField,";border-color:",e=>e.isSelected&&Ur.colors.active,";border-radius:",Ur.lengths.borderRadius,";cursor:pointer;overflow:hidden;background-color:",e=>e.isPrivate&&Ur.colors.textFieldBorder,";&:focus{outline:none;}"),$_=ab("div",{target:"e2etv5a4",label:"CardImageWrapper"})("height:",162,"px;",Ur.effects.checkerboard,";",Ur.shadows.inset,";border-bottom:solid ",Ur.lengths.borderWidth," ",Ur.colors.textFieldBorder,";position:relative;"),M_=ab("img",{target:"e2etv5a3",label:"CardImage"})("width:100%;height:",160,"px;object-fit:contain;border-radius:2px 2px 0 0;"),j_=ab("div",{target:"e2etv5a2",label:"CardFileIcon"})({name:"viljxp",styles:"width:100%;height:160px;object-fit:cover;border-radius:2px 2px 0 0;padding:1em;font-size:3em"}),F_=ab("p",{target:"e2etv5a1",label:"CardText"})("color:",Ur.colors.text,";padding:8px;margin-top:20px;overflow-wrap:break-word;line-height:1.3!important;"),U_=ab("p",{target:"e2etv5a0",label:"DraftText"})("color:",Ur.colors.mediaDraftText,";background-color:",Ur.colors.mediaDraftBackground,";position:absolute;padding:8px;border-radius:",Ur.lengths.borderRadius," 0 ",Ur.lengths.borderRadius," 0;");class q_ extends Jt().Component{render(){const{isSelected:e,displayURL:t,text:n,onClick:r,draftText:o,height:i,margin:a,isPrivate:s,type:l,isViewableImage:c,isDraft:u}=this.props,d=t.get("url");return wl(N_,{isSelected:e,onClick:r,width:"100%",height:i,margin:a,tabIndex:"-1",isPrivate:s,children:[wl($_,{children:[u?bl(U_,{"data-testid":"draft-text",children:o}):null,d&&c?bl(M_,{loading:"lazy",src:d}):bl(j_,{"data-testid":"card-file-icon",children:l})]}),bl(F_,{children:n})]})}componentDidMount(){const{displayURL:e,loadDisplayURL:t}=this.props;e.get("url")||t()}}q_.propTypes={isSelected:gn()().bool,displayURL:_w().map.isRequired,text:gn()().string.isRequired,onClick:gn()().func.isRequired,draftText:gn()().string.isRequired,height:gn()().string.isRequired,margin:gn()().string.isRequired,isPrivate:gn()().bool,type:gn()().string,isViewableImage:gn()().bool.isRequired,loadDisplayURL:gn()().func.isRequired,isDraft:gn()().bool};const z_=q_;function B_(e){const{rowIndex:t,columnIndex:n,style:r,data:{mediaItems:o,isSelectedFile:i,onAssetClick:a,cardDraftText:s,cardWidth:l,cardHeight:c,isPrivate:u,displayURLs:d,loadDisplayURL:f,columnCount:p,gutter:h}}=e,g=t*p+n;if(g>=o.length)return null;const m=o[g];return bl("div",{tabIndex:"0",style:{...r,left:r.left+h*n,top:r.top+h,width:r.width-h,height:r.height-h},children:bl(z_,{isSelected:i(m),text:m.name,onClick:()=>a(m),isDraft:m.draft,draftText:s,width:l,height:c,margin:"0px",isPrivate:u,displayURL:d.get(m.id,m.url?(0,Wr.Map)({url:m.url}):(0,Wr.Map)()),loadDisplayURL:()=>f(m),type:m.type,isViewableImage:m.isViewableImage},m.key)})}function H_(e){const{mediaItems:t,setScrollContainerRef:n}=e;return bl(V_,{ref:n,children:bl(L_,{children:({height:n,width:r})=>{const o=parseInt(e.cardWidth,10),i=parseInt(e.cardHeight,10),a=parseInt(e.cardMargin,10),s=Math.min(r,o+a),l=i+a,c=Math.max(1,Math.floor(r/s)),u=Math.ceil(t.length/c);return bl(C_,{columnCount:c,columnWidth:s,rowCount:u,rowHeight:l,width:r,height:n,itemData:{...e,gutter:a,columnCount:c},children:B_})}})})}function W_({setScrollContainerRef:e,mediaItems:t,isSelectedFile:n,onAssetClick:r,cardDraftText:o,cardWidth:i,cardHeight:a,cardMargin:s,isPrivate:l,displayURLs:c,loadDisplayURL:u,canLoadMore:d,onLoadMore:f,isPaginating:p,paginatingMessage:h}){return wl(V_,{ref:e,children:[wl(K_,{children:[t.map(e=>bl(z_,{isSelected:n(e),text:e.name,onClick:()=>r(e),isDraft:e.draft,draftText:o,width:i,height:a,margin:s,isPrivate:l,displayURL:c.get(e.id,e.url?(0,Wr.Map)({url:e.url}):(0,Wr.Map)()),loadDisplayURL:()=>u(e),type:e.type,isViewableImage:e.isViewableImage},e.key)),d?bl(p_,{onEnter:f}):null]}),p?bl(G_,{isPrivate:l,children:h}):null]})}const V_=ab("div",{target:"e1l5oka22",label:"CardGridContainer"})({name:"bv8zlo",styles:"overflow-y:auto;overflow-x:hidden"}),K_=ab("div",{target:"e1l5oka21",label:"CardGrid"})({name:"15jhlc1",styles:"display:flex;flex-wrap:wrap;margin-left:-10px;margin-right:-10px"}),G_=ab("h1",{target:"e1l5oka20",label:"PaginatingMessage"})("color:",e=>e.isPrivate&&Ur.colors.textFieldBorder,";");function Y_(e){const{canLoadMore:t,isPaginating:n}=e;return bl(t||n?W_:H_,{...e})}Y_.propTypes={setScrollContainerRef:gn()().func.isRequired,mediaItems:gn()().arrayOf(gn()().shape({displayURL:gn()().oneOfType([gn()().string,gn()().object]),id:gn()().string.isRequired,key:gn()().string.isRequired,name:gn()().string.isRequired,type:gn()().string.isRequired,draft:gn()().bool})).isRequired,isSelectedFile:gn()().func.isRequired,onAssetClick:gn()().func.isRequired,canLoadMore:gn()().bool,onLoadMore:gn()().func.isRequired,isPaginating:gn()().bool,paginatingMessage:gn()().string,cardDraftText:gn()().string.isRequired,cardWidth:gn()().string.isRequired,cardMargin:gn()().string.isRequired,loadDisplayURL:gn()().func.isRequired,isPrivate:gn()().bool,displayURLs:gn()().instanceOf(Wr.Map).isRequired};const J_=Y_,Q_=ab("div",{target:"e156433y0",label:"EmptyMessageContainer"})("height:100%;width:100%;display:flex;justify-content:center;align-items:center;color:",e=>e.isPrivate&&Ur.colors.textFieldBorder,";");function X_({content:e,isPrivate:t}){return bl(Q_,{isPrivate:t,children:bl("h1",{children:e})})}X_.propTypes={content:gn()().string.isRequired,isPrivate:gn()().bool};const Z_=X_,ex="300px",tx=ab(xb,{target:"e4d0svf0",label:"StyledModal"})("display:grid;width:100%;grid-template-rows:auto 1fr;gap:20px;background-color:",e=>e.isPrivate&&Ur.colors.grayDark,";@media (min-width: 500px){width:min(","calc(100% - 40px)",", calc(",ex," * 2 + 20px));}@media (min-width: 1120px){width:calc(",ex," * 3 + 20px);}@media (min-width: 1440px){width:calc(",ex," * 4 + 20px);}@media (min-width: 1760px){width:calc(",ex," * 5 + 20px);}@media (min-width: 2080px){width:calc(",ex," * 6 + 20px);}h1{color:",e=>e.isPrivate&&Ur.colors.textFieldBorder,";}button:disabled,label[disabled]{background-color:",e=>e.isPrivate&&"rgba(217, 217, 217, 0.15)",";}");function nx({isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:o,forImage:i,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:c,isPaginating:u,privateUpload:d,query:f,selectedFile:p,handleFilter:h,handleQuery:g,toTableData:m,handleClose:y,handleSearchChange:v,handleSearchKeyDown:b,handlePersist:w,handleDelete:_,handleInsert:x,handleDownload:k,setScrollContainerRef:S,handleAssetClick:E,handleLoadMore:C,loadDisplayURL:T,displayURLs:P,t:O}){const R=i?h(n):n,A=!r&&f?g(f,R):R,I=m(A),D=n&&!!n.length,L=R&&!!R.length,N=A&&!!A.length,$=N,M=!$,j=a&&!$&&O("mediaLibrary.mediaLibraryModal.loading")||o&&O("mediaLibrary.mediaLibraryModal.noResults")||!D&&O("mediaLibrary.mediaLibraryModal.noAssetsFound")||!L&&O("mediaLibrary.mediaLibraryModal.noImagesFound")||!N&&O("mediaLibrary.mediaLibraryModal.noResults"),F=$&&!La()(p);return wl(tx,{isOpen:e,onClose:y,isPrivate:d,children:[bl(Jw,{t:O,onClose:y,privateUpload:d,forImage:i,onDownload:k,onUpload:w,query:f,onSearchChange:v,onSearchKeyDown:b,searchDisabled:!o&&!L,onDelete:_,canInsert:t,onInsert:x,hasSelection:F,isPersisting:s,isDeleting:l,selectedFile:p}),M?bl(Z_,{content:j,isPrivate:d}):null,bl(J_,{setScrollContainerRef:S,mediaItems:I,isSelectedFile:e=>p.key===e.key,onAssetClick:E,canLoadMore:c,onLoadMore:C,isPaginating:u,paginatingMessage:O("mediaLibrary.mediaLibraryModal.loading"),cardDraftText:O("mediaLibrary.mediaLibraryCard.draft"),cardWidth:"280px",cardHeight:"240px",cardMargin:"10px",isPrivate:d,loadDisplayURL:T,displayURLs:P})]})}const rx={displayURL:gn()().oneOfType([gn()().string,gn()().object]).isRequired,id:gn()().string.isRequired,key:gn()().string.isRequired,name:gn()().string.isRequired,queryOrder:gn()().number,size:gn()().number,path:gn()().string.isRequired};nx.propTypes={isVisible:gn()().bool,canInsert:gn()().bool,files:gn()().arrayOf(gn()().shape(rx)).isRequired,dynamicSearch:gn()().bool,dynamicSearchActive:gn()().bool,forImage:gn()().bool,isLoading:gn()().bool,isPersisting:gn()().bool,isDeleting:gn()().bool,hasNextPage:gn()().bool,isPaginating:gn()().bool,privateUpload:gn()().bool,query:gn()().string,selectedFile:gn()().oneOfType([gn()().shape(rx),gn()().shape({})]),handleFilter:gn()().func.isRequired,handleQuery:gn()().func.isRequired,toTableData:gn()().func.isRequired,handleClose:gn()().func.isRequired,handleSearchChange:gn()().func.isRequired,handleSearchKeyDown:gn()().func.isRequired,handlePersist:gn()().func.isRequired,handleDelete:gn()().func.isRequired,handleInsert:gn()().func.isRequired,setScrollContainerRef:gn()().func.isRequired,handleAssetClick:gn()().func.isRequired,handleLoadMore:gn()().func.isRequired,loadDisplayURL:gn()().func.isRequired,t:gn()().func.isRequired,displayURLs:gn()().instanceOf(Wr.Map).isRequired};const ox=(0,Ot().Tl)()(nx),ix=["jpg","jpeg","webp","gif","png","bmp","tiff","svg","avif"],ax=[...ix];class sx extends Jt().Component{static propTypes={isVisible:gn()().bool,loadMediaDisplayURL:gn()().func,displayURLs:_w().map,canInsert:gn()().bool,files:gn()().arrayOf(gn()().shape(rx)).isRequired,dynamicSearch:gn()().bool,dynamicSearchActive:gn()().bool,forImage:gn()().bool,isLoading:gn()().bool,isPersisting:gn()().bool,isDeleting:gn()().bool,hasNextPage:gn()().bool,isPaginating:gn()().bool,privateUpload:gn()().bool,config:_w().map,loadMedia:gn()().func.isRequired,dynamicSearchQuery:gn()().string,page:gn()().number,persistMedia:gn()().func.isRequired,deleteMedia:gn()().func.isRequired,insertMedia:gn()().func.isRequired,closeMediaLibrary:gn()().func.isRequired,t:gn()().func.isRequired};static defaultProps={files:[]};state={selectedFile:{},query:"",isPersisted:!1};componentDidMount(){gn()().checkPropTypes(sx.propTypes,this.props,"prop","MediaLibrary"),this.props.loadMedia()}UNSAFE_componentWillReceiveProps(e){!this.props.isVisible&&e.isVisible&&this.setState({selectedFile:{},query:""}),this.state.isPersisted&&this.setState({selectedFile:e.files[0]||{},isPersisted:!1})}componentDidUpdate(e){!e.isVisible&&this.props.isVisible&&e.privateUpload!==this.props.privateUpload&&this.props.loadMedia({privateUpload:this.props.privateUpload}),this.state.isPersisted&&this.setState({selectedFile:this.props.files[0]||{},isPersisted:!1})}loadDisplayURL=e=>{const{loadMediaDisplayURL:t}=this.props;t(e)};filterImages=e=>e.filter(e=>{const t=(0,si.fileExtension)(e.name).toLowerCase();return ax.includes(t)});toTableData=e=>{const t=e&&e.map(({key:e,name:t,id:n,size:r,path:o,queryOrder:i,displayURL:a,draft:s})=>{const l=(0,si.fileExtension)(t).toLowerCase();return{key:e,id:n,name:t,path:o,type:l.toUpperCase(),size:r,queryOrder:i,displayURL:a,draft:s,isImage:ax.includes(l),isViewableImage:ix.includes(l)}}),{sortFields:n}=this.state,r=Cw()(n,"fieldName").concat("queryOrder"),o=Cw()(n,"direction").concat("asc");return Tl()(t,r,o)};handleClose=()=>{this.props.closeMediaLibrary()};handleAssetClick=e=>{const t=this.state.selectedFile.key===e.key?{}:e;this.setState({selectedFile:t})};handlePersist=async e=>{e.persist(),e.stopPropagation(),e.preventDefault();const{persistMedia:t,privateUpload:n,config:r,t:o,field:i}=this.props,{files:a}=e.dataTransfer||e.target,s=[...a][0],l=r.get("max_file_size");l&&s.size>l?window.alert(o("mediaLibrary.mediaLibrary.fileTooLarge",{size:Math.floor(l/1e3)})):(await t(s,{privateUpload:n,field:i}),this.setState({isPersisted:!0}),this.scrollToTop()),e.target.value=null};handleInsert=()=>{const{selectedFile:e}=this.state,{path:t}=e,{insertMedia:n,field:r}=this.props;n(t,r),this.handleClose()};handleDelete=()=>{const{selectedFile:e}=this.state,{files:t,deleteMedia:n,privateUpload:r,t:o}=this.props;window.confirm(o("mediaLibrary.mediaLibrary.onDelete"))&&n(t.find(t=>e.key===t.key),{privateUpload:r}).then(()=>{this.setState({selectedFile:{}})})};handleDownload=()=>{const{selectedFile:e}=this.state,{displayURLs:t}=this.props,n=t.getIn([e.id,"url"])||e.url;if(!n)return;const r=e.name,o=document.createElement("a");o.setAttribute("href",n),o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),this.setState({selectedFile:{}})};handleLoadMore=()=>{const{loadMedia:e,dynamicSearchQuery:t,page:n,privateUpload:r}=this.props;e({query:t,page:n+1,privateUpload:r})};handleSearchKeyDown=async e=>{const{dynamicSearch:t,loadMedia:n,privateUpload:r}=this.props;"Enter"===e.key&&t&&(await n({query:this.state.query,privateUpload:r}),this.scrollToTop())};scrollToTop=()=>{this.scrollContainerRef.scrollTop=0};handleSearchChange=e=>{this.setState({query:e.target.value})};queryFilter=(e,t)=>{const n=e.replace(/ /g,"");return ai().filter(n,t,{extract:e=>e.name}).map((e,n)=>({...t[e.index],queryIndex:n}))};render(){const{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:o,forImage:i,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:c,isPaginating:u,privateUpload:d,displayURLs:f,t:p}=this.props;return bl(ox,{isVisible:e,canInsert:t,files:n,dynamicSearch:r,dynamicSearchActive:o,forImage:i,isLoading:a,isPersisting:s,isDeleting:l,hasNextPage:c,isPaginating:u,privateUpload:d,query:this.state.query,selectedFile:this.state.selectedFile,handleFilter:this.filterImages,handleQuery:this.queryFilter,toTableData:this.toTableData,handleClose:this.handleClose,handleSearchChange:this.handleSearchChange,handleSearchKeyDown:this.handleSearchKeyDown,handlePersist:this.handlePersist,handleDelete:this.handleDelete,handleInsert:this.handleInsert,handleDownload:this.handleDownload,setScrollContainerRef:e=>this.scrollContainerRef=e,handleAssetClick:this.handleAssetClick,handleLoadMore:this.handleLoadMore,displayURLs:f,loadDisplayURL:this.loadDisplayURL,t:p})}}const lx=Qn(function(e){const{mediaLibrary:t}=e,n=t.get("field");return{isVisible:t.get("isVisible"),canInsert:t.get("canInsert"),files:Bu(e,n),displayURLs:t.get("displayURLs"),dynamicSearch:t.get("dynamicSearch"),dynamicSearchActive:t.get("dynamicSearchActive"),dynamicSearchQuery:t.get("dynamicSearchQuery"),forImage:t.get("forImage"),isLoading:t.get("isLoading"),isPersisting:t.get("isPersisting"),isDeleting:t.get("isDeleting"),privateUpload:t.get("privateUpload"),config:t.get("config"),page:t.get("page"),hasNextPage:t.get("hasNextPage"),isPaginating:t.get("isPaginating"),field:n}},{loadMedia:Cu,persistMedia:Ou,deleteMedia:Ru,insertMedia:Su,loadMediaDisplayURL:Au,closeMediaLibrary:function(){return(e,t)=>{const n=t().mediaLibrary.get("externalLibrary");n&&n.hide(),e({type:iu})}}})((0,Ot().Tl)()(sx));hn()().Component,hn()().Component;var cx=function(e,t){return"function"==typeof e?e(t):e},ux=function(e,t){return"string"==typeof e?pr(e,null,null,t):e},dx=function(e){return e},fx=hn()().forwardRef;void 0===fx&&(fx=dx);var px=fx(function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=kn(e,["innerRef","navigate","onClick"]),a=i.target,s=xn({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=dx!==fx&&t||n,hn()().createElement("a",s)}),hx=fx(function(e,t){var n=e.component,r=void 0===n?px:n,o=e.replace,i=e.to,a=e.innerRef,s=kn(e,["component","replace","to","innerRef"]);return hn()().createElement(Pr.Consumer,null,function(e){e||cr(!1);var n=e.history,l=ux(cx(i,e.location),e.location),c=l?n.createHref(l):"",u=xn({},s,{href:c,navigate:function(){var t=cx(i,e.location),r=fr(e.location)===fr(ux(t));(o||r?n.replace:n.push)(t)}});return dx!==fx?u.ref=t||a:u.innerRef=a,hn()().createElement(r,u)})}),gx=function(e){return e},mx=hn()().forwardRef;void 0===mx&&(mx=gx);var yx=mx(function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,i=void 0===o?"active":o,a=e.activeStyle,s=e.className,l=e.exact,c=e.isActive,u=e.location,d=e.sensitive,f=e.strict,p=e.style,h=e.to,g=e.innerRef,m=kn(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return hn()().createElement(Pr.Consumer,null,function(e){e||cr(!1);var n=u||e.location,o=ux(cx(h,n),n),y=o.pathname,v=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),b=v?Mr(n.pathname,{path:v,exact:l,sensitive:d,strict:f}):null,w=!!(c?c(b,n):b),_="function"==typeof s?s(w):s,x="function"==typeof p?p(w):p;w&&(_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}(_,i),x=xn({},x,a));var k=xn({"aria-current":w&&r||null,className:_,style:x,to:o},m);return gx!==mx?k.ref=t||g:k.innerRef=g,hn()().createElement(hx,k)})});const vx=ab("div",{target:"e6w847r7",label:"SearchContainer"})("margin:0 12px;position:relative;",Ur.Icon,"{position:absolute;top:0;left:6px;z-index:",Ur.zIndex.zIndex2,";height:100%;display:flex;align-items:center;pointer-events:none;}"),bx=ab("div",{target:"e6w847r6",label:"InputContainer"})({name:"1dbubah",styles:"display:flex;align-items:center;position:relative"}),wx=ab("input",{target:"e6w847r5",label:"SearchInput"})("background-color:#eff0f4;border-radius:",Ur.lengths.borderRadius,";font-size:14px;padding:10px 6px 10px 34px;width:100%;position:relative;z-index:",Ur.zIndex.zIndex1,";&:focus{outline:none;box-shadow:inset 0 0 0 2px ",Ur.colorsRaw.blue,";}"),_x=ab("div",{target:"e6w847r4",label:"SuggestionsContainer"})({name:"pw7jst",styles:"position:relative;width:100%"}),xx=ab("ul",{target:"e6w847r3",label:"Suggestions"})("position:absolute;top:6px;left:0;right:0;padding:10px 0;margin:0;list-style:none;background-color:#fff;border-radius:",Ur.lengths.borderRadius,";border:1px solid ",Ur.colors.textFieldBorder,";z-index:",Ur.zIndex.zIndex1,";"),kx=ab("li",{target:"e6w847r2",label:"SuggestionHeader"})("padding:0 6px 6px 34px;font-size:12px;color:",Ur.colors.text,";"),Sx=ab("li",{target:"e6w847r1",label:"SuggestionItem"})(({isActive:e})=>`\n  color: ${e?Ur.colors.active:Ur.colorsRaw.grayDark};\n  background-color: ${e?Ur.colors.activeBackground:"inherit"};\n  padding: 6px 6px 6px 34px;\n  cursor: pointer;\n  position: relative;\n\n  &:hover {\n    color: ${Ur.colors.active};\n    background-color: ${Ur.colors.activeBackground};\n  }\n`,""),Ex=ab("div",{target:"e6w847r0",label:"SuggestionDivider"})({name:"1d3w5wq",styles:"width:100%"});class Cx extends Jt().Component{static propTypes={collections:_w().map.isRequired,collection:_w().map,searchTerm:gn()().string.isRequired,onSubmit:gn()().func.isRequired,t:gn()().func.isRequired};state={query:this.props.searchTerm,suggestionsVisible:!1,selectedCollectionIdx:this.getSelectedSelectionBasedOnProps()};componentDidMount(){gn()().checkPropTypes(Cx.propTypes,this.props,"prop","CollectionSearch")}componentDidUpdate(e){if(e.collection!==this.props.collection){const e=this.getSelectedSelectionBasedOnProps();this.setState({selectedCollectionIdx:e})}}getSelectedSelectionBasedOnProps(){const{collection:e,collections:t}=this.props;return e?t.keySeq().indexOf(e.get("name")):-1}toggleSuggestions(e){this.setState({suggestionsVisible:e})}selectNextSuggestion(){const{collections:e}=this.props,{selectedCollectionIdx:t}=this.state;this.setState({selectedCollectionIdx:Math.min(t+1,e.size-1)})}selectPreviousSuggestion(){const{selectedCollectionIdx:e}=this.state;this.setState({selectedCollectionIdx:Math.max(e-1,-1)})}resetSelectedSuggestion(){this.setState({selectedCollectionIdx:-1})}submitSearch=()=>{const{onSubmit:e,collections:t}=this.props,{selectedCollectionIdx:n,query:r}=this.state;this.toggleSuggestions(!1),-1!==n?e(r,t.toIndexedSeq().getIn([n,"name"])):e(r)};handleKeyDown=e=>{const{suggestionsVisible:t}=this.state;"Enter"===e.key&&this.submitSearch(),t&&("Escape"===e.key&&this.toggleSuggestions(!1),"ArrowDown"===e.key?(this.selectNextSuggestion(),e.preventDefault()):"ArrowUp"===e.key&&(this.selectPreviousSuggestion(),e.preventDefault()))};handleQueryChange=e=>{this.setState({query:e}),this.toggleSuggestions(""!==e),""===e&&this.resetSelectedSuggestion()};handleSuggestionClick=(e,t)=>{this.setState({selectedCollectionIdx:t},this.submitSearch),e.preventDefault()};render(){const{collections:e,t:t}=this.props,{suggestionsVisible:n,selectedCollectionIdx:r,query:o}=this.state;return wl(vx,{onBlur:()=>this.toggleSuggestions(!1),onFocus:()=>this.toggleSuggestions(""!==o),children:[wl(bx,{children:[bl(Ur.Icon,{type:"search"}),bl(wx,{onChange:e=>this.handleQueryChange(e.target.value),onKeyDown:this.handleKeyDown,onClick:()=>this.toggleSuggestions(!0),placeholder:t("collection.sidebar.searchAll"),value:o})]}),n&&bl(_x,{children:wl(xx,{children:[bl(kx,{children:t("collection.sidebar.searchIn")}),bl(Sx,{isActive:-1===r,onClick:e=>this.handleSuggestionClick(e,-1),onMouseDown:e=>e.preventDefault(),children:t("collection.sidebar.allCollections")}),bl(Ex,{}),e.toIndexedSeq().map((e,t)=>bl(Sx,{isActive:t===r,onClick:e=>this.handleSuggestionClick(e,t),onMouseDown:e=>e.preventDefault(),children:e.get("label")},t))]})})]})}}const Tx=(0,Ot().Tl)()(Cx),{addFileTemplateFields:Px}=li.stringTemplate,Ox=ab("div",{target:"eh84wlq5",label:"NodeTitleContainer"})({name:"1vcob1d",styles:"display:flex;justify-content:center;align-items:center"}),Rx=ab("div",{target:"eh84wlq4",label:"NodeTitle"})({name:"qamjgr",styles:"margin-right:4px"}),Ax=ab("div",{target:"eh84wlq3",label:"Caret"})({name:"1lo1a34",styles:"position:relative;top:2px"}),Ix=ab(Ax,{target:"eh84wlq2",label:"CaretDown"})(Ur.components.caretDown,";color:currentColor;"),Dx=ab(Ax,{target:"eh84wlq1",label:"CaretRight"})(Ur.components.caretRight,";color:currentColor;left:2px;"),Lx=ab(yx,{target:"eh84wlq0",label:"TreeNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px;padding-left:",e=>16*e.depth+18,"px;border-left:2px solid #fff;",Ur.Icon,"{margin-right:4px;flex-shrink:0;}",e=>(0,Zv.css)("&:hover,&:active,&.",e.activeClassName,"{color:",Ur.colors.active,";background-color:",Ur.colors.activeBackground,";border-left-color:#4863c6;};label:TreeNavLink;"),";");function Nx(e,t){const n=!1!==t.getIn(["nested","subfolders"]);if(!e.isRoot&&e.isDir&&n){const t=e.children.find(e=>!e.isDir);if(t&&t.title)return t.title}return e.title}function $x(e){const{collection:t,treeData:n,depth:r=0,onToggle:o}=e,i=t.get("name"),a=Xo()(n,e=>Nx(e,t)),s=!1!==t.get("nested")?.get("subfolders");return a.map(e=>{if(r>0&&(s?e.children.length<=1&&!e.children[0]?.isDir:0===e.children.length))return null;let n=`/collections/${i}`;r>0&&(n=`${n}/filter${e.path}`);const a=Nx(e,t),l=0===r||(s?e.children.some(e=>e.children.some(e=>e.isDir)):e.children.some(e=>e.isDir));return wl(Jt().Fragment,{children:[wl(Lx,{exact:!0,to:n,activeClassName:"sidebar-active",onClick:()=>o({node:e,expanded:!e.expanded}),depth:r,"data-testid":e.path,children:[bl(Ur.Icon,{type:"write"}),wl(Ox,{children:[bl(Rx,{children:a}),l&&(e.expanded?bl(Ix,{}):bl(Dx,{}))]})]}),e.expanded&&bl($x,{collection:t,depth:r+1,treeData:e.children,onToggle:o})]},e.path)})}function Mx(e,t){return function e(n){for(const r of n)t(r),e(r.children)}(e)}function jx(e,t){const n=e.get("folder"),r=t.toJS().map(e=>({...e,path:e.path.slice(n.length)})),o=r.reduce((e,t)=>{let n=(0,Ge().dirname)(t.path);for(;!e[n]&&n&&"/"!==n;){const t=n.split(Ge().sep);e[n]=t.pop(),n=t.length&&t.join(Ge().sep)}return e},{}),i=[{title:(e=e.getIn(["nested","summary"])?e.set("summary",e.getIn(["nested","summary"])):e.delete("summary")).get("label"),path:"/",isDir:!0,isRoot:!0},...Object.entries(o).map(([e,t])=>({title:t,path:e,isDir:!0,isRoot:!1})),...r.map((n,r)=>{let o=t.get(r);return o=o.set("data",Px(o.get("path"),o.get("data"))),{...n,title:eh(e,o),isDir:!1,isRoot:!1}})].reduce((e,t)=>{const n="/"===t.path?"":(0,Ge().dirname)(t.path);return e[n]?e[n].push(t):e[n]=[t],e},{});return i[""].reduce(function e(t,n){const r=n;let o=[];return i[r.path]&&(o=i[r.path].reduce(e,[])),t.push({...r,children:o}),t},[])}$x.propTypes={collection:_w().map.isRequired,depth:gn()().number,treeData:gn()().array.isRequired,onToggle:gn()().func.isRequired};class Fx extends Jt().Component{static propTypes={collection:_w().map.isRequired,entries:_w().list.isRequired,filterTerm:gn()().string};constructor(e){super(e),this.state={treeData:jx(this.props.collection,this.props.entries),selected:null,useFilter:!0}}componentDidMount(){gn()().checkPropTypes(Fx.propTypes,this.props,"prop","NestedCollection")}componentDidUpdate(e){const{collection:t,entries:n,filterTerm:r}=this.props;if(t!==e.collection||n!==e.entries||r!==e.filterTerm){const e={};Mx(this.state.treeData,t=>{t.expanded&&(e[t.path]=!0)});const o=jx(t,n),i=`/${r}`;Mx(o,t=>{(e[t.path]||this.state.useFilter&&i.startsWith(t.path))&&(t.expanded=!0)}),this.setState({treeData:o})}}onToggle=({node:e,expanded:t})=>{if(!this.state.selected||this.state.selected.path===e.path||t){const n=function(e,t,n){let r=!1;return function e(o){if(r)return o;for(let e=0;e<o.length;e++)if(o[e].path===t.path)return o[e]=n(t),r=!0,o;return o.forEach(t=>e(t.children)),o}([...e])}(this.state.treeData,e,e=>({...e,expanded:t}));this.setState({treeData:n,selected:e,useFilter:!1})}else this.setState({selected:e,useFilter:!1})};render(){const{treeData:e}=this.state,{collection:t}=this.props;return bl($x,{collection:t,treeData:e,onToggle:this.onToggle})}}const Ux=Qn(function(e,t){const{collection:n}=t;return{entries:Cp(e.entries,n)||(0,Wr.List)()}},null)(Fx),qx={sidebarNavLinkActive:(0,Zv.css)("color:",Ur.colors.active,";background-color:",Ur.colors.activeBackground,";border-left-color:#4863c6;;label:sidebarNavLinkActive;")},zx=ab("aside",{target:"e1t18l343",label:"SidebarContainer"})(Ur.components.card,";width:",Ur.lengths.topCardWidth,";max-width:100%;padding:8px 0 12px;max-height:calc(100vh - 112px);display:flex;flex-direction:column;@media (min-width: 800px){position:fixed;width:250px;}"),Bx=ab("h2",{target:"e1t18l342",label:"SidebarHeading"})(Ur.components.cardTopHeading,";margin:10px 20px;color:",Ur.colors.textLead,";"),Hx=ab("ul",{target:"e1t18l341",label:"SidebarNavList"})({name:"14vcqsr",styles:"margin:12px 0 0;list-style:none;overflow:auto"}),Wx=ab(yx,{target:"e1t18l340",label:"SidebarNavLink"})("display:flex;font-size:14px;font-weight:500;align-items:center;padding:8px 18px;border-left:2px solid #fff;z-index:-1;",Ur.Icon,"{margin-right:4px;flex-shrink:0;}",e=>(0,Zv.css)("&:hover,&:active,&.",e.activeClassName,"{",qx.sidebarNavLinkActive,";};label:SidebarNavLink;"),";");class Vx extends Jt().Component{static propTypes={collections:_w().map.isRequired,collection:_w().map,isSearchEnabled:gn()().bool,searchTerm:gn()().string,filterTerm:gn()().string,t:gn()().func.isRequired};componentDidMount(){gn()().checkPropTypes(Vx.propTypes,this.props,"prop","Sidebar")}renderLink=(e,t)=>{const n=e.get("name");return e.has("nested")?bl("li",{children:bl(Ux,{collection:e,filterTerm:t,"data-testid":n})},n):bl("li",{children:wl(Wx,{to:`/collections/${n}`,activeClassName:"sidebar-active","data-testid":n,children:[bl(Ur.Icon,{type:"write"}),e.get("label")]})},n)};render(){const{collections:e,collection:t,isSearchEnabled:n,searchTerm:r,t:o,filterTerm:i}=this.props;return wl(zx,{children:[bl(Bx,{children:o("collection.sidebar.collections")}),n&&bl(Tx,{searchTerm:r,collections:e,collection:t,onSubmit:(e,t)=>function(e,t){t?rd.push(`/collections/${t}/search/${e}`):rd.push(`/search/${e}`)}(e,t)}),bl(Hx,{children:e.toList().filter(e=>!0!==e.get("hide")).map(e=>this.renderLink(e,i))})]})}}const Kx=(0,Ot().Tl)()(Vx),Gx=ab("div",{target:"ei8nkzc4",label:"CollectionTopContainer"})(Ur.components.cardTop,";"),Yx=ab("div",{target:"ei8nkzc3",label:"CollectionTopRow"})({name:"q30ya6",styles:"display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between"}),Jx=ab("h1",{target:"ei8nkzc2",label:"CollectionTopHeading"})(Ur.components.cardTopHeading,";"),Qx=ab(hx,{target:"ei8nkzc1",label:"CollectionTopNewButton"})(Ur.buttons.button,";",Ur.shadows.dropDeep,";",Ur.buttons.default,";",Ur.buttons.gray,";white-space:nowrap;padding:0 30px;"),Xx=ab("p",{target:"ei8nkzc0",label:"CollectionTopDescription"})(Ur.components.cardTopDescription,";");function Zx({collection:e,newEntryUrl:t,t:n}){const{collectionLabel:r,collectionLabelSingular:o,collectionDescription:i}=function(e){return{collectionLabel:e.get("label"),collectionLabelSingular:e.get("label_singular"),collectionDescription:e.get("description")}}(e);return wl(Gx,{children:[wl(Yx,{children:[bl(Jx,{children:r}),t?bl(Qx,{to:t,dir:"auto","aria-label":n("collection.collectionTop.newButtonAriaLabel",{collectionLabel:o||r}),children:n("collection.collectionTop.newButton",{collectionLabel:o||r})}):null]}),i?bl(Xx,{children:i}):null]})}Zx.propTypes={collection:_w().map.isRequired,newEntryUrl:gn()().string,t:gn()().func.isRequired};const ek=(0,Ot().Tl)()(Zx);var tk=__webpack_require__(43663),nk=__webpack_require__.n(tk);const rk=ab("li",{target:"effeus410",label:"ListCard"})(Ur.components.card,";width:",Ur.lengths.topCardWidth,";margin-left:12px;margin-bottom:10px;overflow:hidden;"),ok=ab(hx,{target:"effeus49",label:"ListCardLink"})("display:block;max-width:100%;padding:16px 20px;&:hover{background-color:",Ur.colors.foreground,";}"),ik=ab("li",{target:"effeus48",label:"GridCard"})(Ur.components.card,";flex:0 0 335px;height:240px;overflow:hidden;margin-left:12px;margin-bottom:16px;"),ak=ab(hx,{target:"effeus47",label:"GridCardLink"})("display:block;height:100%;outline-offset:-2px;&,&:hover{background-color:",Ur.colors.foreground,";color:",Ur.colors.text,";}"),sk=ab("h2",{target:"effeus46",label:"CollectionLabel"})("font-size:12px;color:",Ur.colors.textLead,";text-transform:uppercase;"),lk=ab("h2",{target:"effeus45",label:"ListCardTitle"})({name:"rmz9aj",styles:"margin-bottom:0;display:flex;justify-content:space-between"}),ck=ab("h2",{target:"effeus44",label:"CardHeading"})({name:"1969ag7",styles:"margin:0 0 2px;display:flex;justify-content:space-between"}),uk=ab("div",{target:"effeus43",label:"CardBody"})("padding:16px 20px;height:90px;position:relative;margin-bottom:",e=>e.hasImage&&0,";&:after{content:'';position:absolute;display:block;z-index:",Ur.zIndex.zIndex1,";bottom:0;left:-20%;height:140%;width:140%;box-shadow:inset 0 -15px 24px ",Ur.colorsRaw.white,";}"),dk=ab("div",{target:"effeus42",label:"StyledImage"})("background-image:url(",e=>e.src,");background-position:center center;background-size:cover;background-repeat:no-repeat;height:150px;"),fk=ab("div",{target:"effeus41",label:"TitleIcons"})({name:"1yydxi7",styles:"display:flex;align-items:center;gap:8px"}),pk=ab("span",{target:"effeus40",label:"WorkflowBadge"})("padding:2px 6px;border-radius:3px;font-size:11px;text-transform:uppercase;background-color:",e=>{switch(e.status){case"draft":return Ur.colors.statusDraftBackground;case"pending_review":return Ur.colors.statusReviewBackground;case"pending_publish":return Ur.colors.statusReadyBackground;default:return Ur.colors.background}},";color:",e=>{switch(e.status){case"draft":return Ur.colors.statusDraftText;case"pending_review":return Ur.colors.statusReviewText;case"pending_publish":return Ur.colors.statusReadyText;default:return Ur.colors.text}},";");function hk({getAsset:e,value:t,field:n}){const[r,o]=(0,Jt().useState)(null);return(0,Jt().useEffect)(()=>{o(t?e(t,n):null)},[t,n,e]),r?bl(dk,{"data-testid":"entry-card-image",src:r.toString()}):null}const gk=Qn(function(e,t){const{entry:n,inferredFields:r,collection:o}=t,i=n.get("data"),a=eh(o,n);let s=i.get(r.imageField);s&&(s=encodeURI(s));const l=$g(e.medias);return{summary:a,path:`/collections/${o.get("name")}/entries/${n.get("slug")}`,image:s,imageFolder:o.get("fields")?.find(e=>e.get("name")===r.imageField&&"image"===e.get("widget")),isLoadingAsset:l}},function(e){return{boundGetAsset:(t,n)=>td(e,t,n)}},function(e,t,n){return{...e,...t,...n,getAsset:t.boundGetAsset(n.collection,n.entry)}})((0,Ot().Tl)()(function({path:e,summary:t,image:n,imageField:r,collectionLabel:o,viewStyle:i=ip,workflowStatus:a,getAsset:s,t:l}){function c(e){switch(e){case"pending_review":return l("editor.editorToolbar.inReview");case"pending_publish":return l("editor.editorToolbar.ready");case"draft":return l("editor.editorToolbar.draft");default:return e}}return i===ip?bl(rk,{children:wl(ok,{to:e,children:[o?bl(sk,{children:o}):null,wl(lk,{children:[t,bl(fk,{children:a&&bl(pk,{status:a,children:c(a)})})]})]})}):i===ap?bl(ik,{children:wl(ak,{to:e,children:[wl(uk,{hasImage:n,children:[o?bl(sk,{children:o}):null,wl(ck,{children:[t,bl(fk,{children:a&&bl(pk,{status:a,children:c(a)})})]})]}),n?bl(hk,{getAsset:s,value:n,field:r}):null]})}):void 0})),mk=gk,yk=ab("ul",{target:"etq0ss02",label:"CardsGrid"})({name:"1dbthoi",styles:"display:flex;flex-flow:row wrap;list-style-type:none;margin-left:-12px;margin-top:16px;margin-bottom:16px"}),vk=ab("div",{target:"etq0ss01",label:"SectionSeparator"})("width:",Ur.lengths.topCardWidth,";margin:24px 0 16px 12px;padding-top:16px;border-top:2px solid ",Ur.colors.textFieldBorder,";"),bk=ab("p",{target:"etq0ss00",label:"SectionHeading"})("font-size:16px;font-weight:600;color:",Ur.colors.textLead,";margin:0 0 8px;");class wk extends Jt().Component{static propTypes={collections:_w().iterable.isRequired,entries:_w().list,viewStyle:gn()().string,cursor:gn()().any.isRequired,handleCursorActions:gn()().func.isRequired,page:gn()().number,getUnpublishedEntries:gn()().func.isRequired,getWorkflowStatus:gn()().func.isRequired,filterTerm:gn()().string,sortFields:gn()().array,showPublishedEntries:gn()().bool,showUnpublishedEntries:gn()().bool,t:gn()().func.isRequired};static defaultProps={showPublishedEntries:!0,showUnpublishedEntries:!0};componentDidMount(){gn()().checkPropTypes(wk.propTypes,this.props,"prop","EntryListing")}hasMore=()=>{const e=this.props.cursor?.actions?.has("append_next");return e};handleLoadMore=()=>{this.hasMore()&&this.props.handleCursorActions("append_next")};inferFields=e=>{const t=Zp(e,"title"),n=Zp(e,"description"),r=Zp(e,"image"),o=zp(e),i=[t,n,r];return{titleField:t,descriptionField:n,imageField:r,remainingFields:o&&o.filter(e=>-1===i.indexOf(e.get("name")))}};sortEntries=(e,t,n)=>{if(!t||0===t.length)return e;const r=t.map(e=>nh(n,e.get("key"))),o=t.map(e=>e.get("direction")===Pl.Ascending?"asc":"desc");return(0,Wr.fromJS)(Tl()(e.toJS(),r,o))};getUnpublishedEntriesList=()=>{const{entries:e,collections:t,filterTerm:n,sortFields:r}=this.props,o=Wr.Map.isMap(t)?t.get("name"):null;if(!o)return(0,Wr.List)();const i=this.props.getUnpublishedEntries(o);if(!i||0===i.length)return(0,Wr.List)();let a=(0,Wr.List)(i.map(e=>e));t.has("nested")&&n&&(a=Ak(n,t.get("folder"),a,!1!==t.get("nested").get("subfolders")));const s=e.map(e=>e.get("slug")).toSet(),l=a.filterNot(e=>s.has(e.get("slug")));return this.sortEntries(l,r,t)};renderCardsForSingleCollection=()=>{const{collections:e,viewStyle:t,entries:n,page:r,t:o,showPublishedEntries:i,showUnpublishedEntries:a}=this.props,s=this.inferFields(e),l={collection:e,inferredFields:s,viewStyle:t},c=i?n.map((t,n)=>{const r=this.props.getWorkflowStatus(e.get("name"),t.get("slug"));return(0,Zv.createElement)(mk,{...l,entry:t,workflowStatus:r,key:`published-${n}`})}):(0,Wr.List)(),u=a?this.getUnpublishedEntriesList():(0,Wr.List)();if(0===u.size)return i?wl(yk,{children:[c,this.hasMore()&&bl(p_,{onEnter:this.handleLoadMore},r)]}):null;const d=u.map((t,n)=>{const r=this.props.getWorkflowStatus(e.get("name"),t.get("slug"));return(0,Zv.createElement)(mk,{...l,entry:t,workflowStatus:r,key:`unpublished-${n}`})});return wl(Jt().Fragment,{children:[i&&wl(yk,{children:[c,this.hasMore()&&bl(p_,{onEnter:this.handleLoadMore},r)]}),bl(vk,{children:bl(bk,{children:o("collection.entries.unpublishedHeader")})}),bl(yk,{children:d})]})};renderCardsForMultipleCollections=()=>{const{collections:e,entries:t,page:n}=this.props,r=1===e.size,o=t.map((t,n)=>{const o=t.get("collection"),i=e.find(e=>e.get("name")===o),a=!r&&i.get("label"),s=this.inferFields(i),l=this.props.getWorkflowStatus(o,t.get("slug")),c={collection:i,entry:t,inferredFields:s,collectionLabel:a,workflowStatus:l};return(0,Zv.createElement)(mk,{...c,key:n})});return wl(yk,{children:[o,this.hasMore()&&bl(p_,{onEnter:this.handleLoadMore},n)]})};render(){const{collections:e}=this.props;return bl("div",{children:Wr.Map.isMap(e)?this.renderCardsForSingleCollection():this.renderCardsForMultipleCollections()})}}const _k=(0,Ot().Tl)()(wk),xk=ab("div",{target:"e1d0i3na1",label:"PaginationMessage"})("width:",Ur.lengths.topCardWidth,";max-width:100%;padding:16px;text-align:center;"),kk=ab(xk,{target:"e1d0i3na0",label:"NoEntriesMessage"})({name:"yz1nei",styles:"margin-top:16px"});function Sk({collections:e,entries:t,isFetching:n,viewStyle:r,cursor:o,handleCursorActions:i,t:a,page:s,getWorkflowStatus:l,getUnpublishedEntries:c,filterTerm:u,sortFields:d,showPublishedEntries:f=!0,showUnpublishedEntries:p=!0}){const h=[a("collection.entries.loadingEntries"),a("collection.entries.cachingEntries"),a("collection.entries.longerLoading")];return f&&n&&void 0===s?bl(Ur.Loader,{active:!0,children:h}):f&&(t&&t.size>0||o?.actions?.has("append_next"))||!f?wl(vl,{children:[bl(_k,{collections:e,entries:t,viewStyle:r,cursor:o,handleCursorActions:i,page:s,getWorkflowStatus:l,getUnpublishedEntries:c,filterTerm:u,sortFields:d,showPublishedEntries:f,showUnpublishedEntries:p}),f&&n&&void 0!==s&&t.size>0?bl(xk,{children:a("collection.entries.loadingEntries")}):null]}):bl(kk,{children:a("collection.entries.noEntries")})}Sk.propTypes={collections:_w().iterable.isRequired,entries:_w().list,page:gn()().number,isFetching:gn()().bool,viewStyle:gn()().string,cursor:gn()().any.isRequired,handleCursorActions:gn()().func.isRequired,t:gn()().func.isRequired,getWorkflowStatus:gn()().func,getUnpublishedEntries:gn()().func,filterTerm:gn()().string,sortFields:gn()().array,showPublishedEntries:gn()().bool,showUnpublishedEntries:gn()().bool};const Ek=(0,Ot().Tl)()(Sk),Ck=ab("h2",{target:"eucqz2q1",label:"GroupHeading"})("font-size:22px;font-weight:600;line-height:37px;color:",Ur.colors.textLead,";"),Tk=ab("div",{target:"eucqz2q0",label:"GroupContainer"})("");function Pk(e,t){return e.filter(e=>t.has(e.get("path")))}function Ok(e,t,n,r){return e.map(e=>{const o=function(e,t){const{label:n,value:r}=e;return void 0===r?t("collection.groups.other"):"boolean"==typeof r?r?n:t("collection.groups.negateLabel",{label:n}):`${n} ${r}`.trim()}(e,r);return wl(Tk,{id:e.id,children:[bl(Ck,{children:o}),bl(n,{entries:Pk(t,e.paths),showUnpublishedEntries:!1})]},e.id)})}class Rk extends Jt().Component{static propTypes={collection:_w().map.isRequired,collections:_w().iterable,page:gn()().number,entries:_w().list,groups:gn()().array,isFetching:gn()().bool.isRequired,viewStyle:gn()().string,cursor:gn()().object.isRequired,loadEntries:gn()().func.isRequired,traverseCollectionCursor:gn()().func.isRequired,entriesLoaded:gn()().bool,loadUnpublishedEntries:gn()().func.isRequired,unpublishedEntriesLoaded:gn()().bool,unpublishedEntriesFailed:gn()().bool,isEditorialWorkflowEnabled:gn()().bool,getWorkflowStatus:gn()().func.isRequired,getUnpublishedEntries:gn()().func.isRequired};componentDidMount(){gn()().checkPropTypes(Rk.propTypes,this.props,"prop","EntriesCollection");const{collection:e,collections:t,entriesLoaded:n,loadEntries:r,unpublishedEntriesLoaded:o,loadUnpublishedEntries:i,isEditorialWorkflowEnabled:a}=this.props;e&&!n&&r(e),a&&!o&&i(t)}componentDidUpdate(e){const{collection:t,collections:n,entriesLoaded:r,loadEntries:o,unpublishedEntriesLoaded:i,unpublishedEntriesFailed:a,loadUnpublishedEntries:s,isEditorialWorkflowEnabled:l}=this.props,c=t!==e.collection;c&&!r&&o(t),l&&(!i&&!a||c)&&s(n)}handleCursorActions=(e,t)=>{const{collection:n,traverseCollectionCursor:r}=this.props;r(n,t)};render(){const{collection:e,entries:t,groups:n,isFetching:r,viewStyle:o,cursor:i,page:a,t:s,getWorkflowStatus:l,getUnpublishedEntries:c,filterTerm:u,sortFields:d}=this.props,f=({entries:t,showPublishedEntries:n,showUnpublishedEntries:s})=>{const f={};return void 0!==n&&(f.showPublishedEntries=n),void 0!==s&&(f.showUnpublishedEntries=s),bl(Ek,{collections:e,entries:t,isFetching:r,collectionName:e.get("label"),viewStyle:o,cursor:i,handleCursorActions:nk()(this.handleCursorActions,i),page:a,getWorkflowStatus:l,getUnpublishedEntries:c,filterTerm:u,sortFields:d,...f})};return n&&n.length>0?wl(Jt().Fragment,{children:[Ok(n,t,f,s),bl(f,{entries:t,showPublishedEntries:!1})]}):bl(f,{entries:t})}}function Ak(e,t,n,r){return n.filter(n=>{let o=n.get("path").slice(t.length+1);if(!o.startsWith(e))return!1;if(e&&(o=o.slice(e.length+1)),r){const t=o.split("/").length;return e?2===t:t<=2}return!o.includes("/")})}const Ik=Qn(function(e,t){const{collection:n,viewStyle:r,filterTerm:o}=t,i=e.entries.getIn(["pages",n.get("name"),"page"]),a=e.collections;let s=Cp(e.entries,n);const l=function(e,t){const n=t.get("name"),r=Ep(e,n),o=function(e,t){const n=_p(e,t),r=n?.valueSeq().find(e=>!0===e?.get("active"));return r}(e,n);if(void 0===o)return[];let i={};const a=qa()(r.toArray(),e=>{const t=function(e,t){const n=t.get("label"),r=t.get("field"),o=e.getIn(["data",...sp(r)]);if(void 0===o)return{id:"missing_value",label:n,value:o};const i=String(o);if(t.has("pattern")){const e=t.get("pattern");let o="";if(void 0!==e)try{const t=new RegExp(e),n=i.match(t);n&&(o=n[0])}catch(t){console.warn(`Invalid view group pattern '${e}' for field '${r}'`,t)}return{id:`${n}${o}`,label:n,value:o}}return{id:`${n}${o}`,label:n,value:"boolean"==typeof o?o:i}}(e,o);return i={...i,[t.id]:t},t.id}),s=Object.entries(a).map(([e,t])=>({...i[e],paths:(0,Wr.Set)(t.map(e=>e.get("path")))}));return s}(e.entries,n),c=xp(e.entries,n.get("name"));n.has("nested")&&(s=Ak(o||"",n.get("folder"),s,!1!==n.get("nested").get("subfolders")));const u=function(e,t){return!!e.getIn(["pages",t])}(e.entries,n.get("name")),d=Tp(e.entries,n.get("name")),f=Lc(e.cursors,n.get("name")),p=si.Cursor.create(f).clearData(),h="editorial_workflow"===e.config?.publish_mode;return{collection:n,collections:a,page:i,entries:s,groups:l,sortFields:c,entriesLoaded:u,isFetching:d,viewStyle:r,cursor:p,unpublishedEntriesLoaded:!h||!!e.editorialWorkflow?.getIn(["pages","ids"],!1),unpublishedEntriesFailed:h&&!!e.editorialWorkflow?.getIn(["pages","error"]),isEditorialWorkflowEnabled:h,getWorkflowStatus:(t,n)=>{const r=im(e,t,n);return r?r.get("status"):null},getUnpublishedEntries:t=>{if(!h)return[];const n=[];return["draft","pending_review","pending_publish"].forEach(r=>{const o=am(e,r);o&&o.forEach(e=>{if(e.get("collection")===t){const r=e.set("collection",t);n.push(r)}})}),n}}},{loadEntries:Yf,traverseCollectionCursor:function(e,t){return async(n,r)=>{const o=r(),i=e.get("name");if(o.entries.getIn(["pages",`${i}`,"isFetching"]))return;const a=yg(o.config),{action:s,append:l}=Kf.has(t)?Kf.get(t).toJS():{action:t,append:!1},c=Lc(o.cursors,e.get("name"));if(c.meta.get("usingOldPaginationAPI",!1))return n(Yf(e,c.data.get("nextPage")));try{n(Df(e));const{entries:t,cursor:r}=await function(e,t,n){if(!t.actions.has(n))throw new Error(`The current cursor does not support the pagination action "${n}".`);return e.traverseCursor(t,n)}(a,c,s),o=r.meta?.get("page");return n(Lf(e,t,o,Gf(r),l))}catch(t){return console.error(t),n(Gc({message:{details:t,key:"ui.toast.onFailToLoadEntries"},type:"error",dismissAfter:8e3})),Promise.reject(n(Nf(e,t)))}}},loadUnpublishedEntries:e=>Od(e)})(Rk),Dk=(0,Ot().Tl)()(Ik);class Lk extends Jt().Component{static propTypes={isFetching:gn()().bool,searchEntries:gn()().func.isRequired,clearSearch:gn()().func.isRequired,searchTerm:gn()().string.isRequired,collections:_w().seq,collectionNames:gn()().array,entries:_w().list,page:gn()().number,getWorkflowStatus:gn()().func};componentDidMount(){gn()().checkPropTypes(Lk.propTypes,this.props,"prop","EntriesSearch");const{searchTerm:e,searchEntries:t,collectionNames:n}=this.props;t(e,n)}componentDidUpdate(e){const{searchTerm:t,collectionNames:n}=this.props;if(e.searchTerm===t&&pc()(e.collectionNames,n))return;const{searchEntries:r}=e;r(t,n)}componentWillUnmount(){this.props.clearSearch()}getCursor=()=>{const{page:e}=this.props;return si.Cursor.create({actions:isNaN(e)?[]:["append_next"]})};handleCursorActions=e=>{const{page:t,searchTerm:n,searchEntries:r,collectionNames:o}=this.props;"append_next"===e&&r(n,o,t+1)};render(){const{collections:e,entries:t,isFetching:n,getWorkflowStatus:r}=this.props;return bl(Ek,{cursor:this.getCursor(),handleCursorActions:this.handleCursorActions,collections:e,entries:t,isFetching:n,getWorkflowStatus:r})}}const Nk=Qn(function(e,t){const{searchTerm:n}=t,r=t.collections.toIndexedSeq(),o=t.collections.keySeq().toArray(),i=e.search.isFetching,a=e.search.page,s=function(e,t){return(0,Wr.List)(e.search.entryIds).filter(e=>-1!==t.indexOf(e.collection)).map(t=>kp(e.entries,t.collection,t.slug))}(e,o);return{isFetching:i,page:a,collections:r,collectionNames:o,entries:s,searchTerm:n,getWorkflowStatus:function(t,n){const r=im(e,t,n);return r?r.get("status"):null}}},{searchEntries:function(e,t,n=0){return async(r,o)=>{const i=o(),{search:a}=i,s=yg(i.config),l=t||i.collections.keySeq().toArray(),c=l.filter(e=>lm(i,e,"search")),u=lm(i,c[0],"search");if(a.isFetching&&a.term===e&&pc()(l,a.collections)&&(a.page===n||!u))return;r(function(e,t,n){return{type:Sc,payload:{searchTerm:e,searchCollections:t,page:n}}}(e,l,n));const d=u?kc(i.integrations,s.getToken,u).search(c,e,n):s.search(i.collections.filter((e,t)=>-1!==l.indexOf(t)).valueSeq().toArray(),e);try{const e=await d;return r(function(e,t){return{type:Ec,payload:{entries:e,page:t}}}(e.entries,e.pagination))}catch(e){return r(function(e){return{type:Cc,payload:{error:e}}}(e))}}},clearSearch:Ic})(Lk),$k=ab("div",{target:"evv1i7c1",label:"ViewControlsSection"})({name:"k6mob8",styles:"display:flex;align-items:center;justify-content:flex-end;max-width:500px"}),Mk=ab("button",{target:"evv1i7c0",label:"ViewControlsButton"})(Ur.buttons.button,";color:",e=>e.isActive?Ur.colors.active:"#b3b9c4",";background-color:transparent;display:block;padding:0;margin:0 4px;&:last-child{margin-right:0;}",Ur.Icon,"{display:block;}"),jk=function({viewStyle:e,onChangeViewStyle:t,t:n}){return wl($k,{children:[bl(Mk,{"aria-label":n("collection.collectionTop.viewAsList"),isActive:e===ip,onClick:()=>t(ip),children:bl(Ur.Icon,{type:"list"})}),bl(Mk,{"aria-label":n("collection.collectionTop.viewAsGrid"),isActive:e===ap,onClick:()=>t(ap),children:bl(Ur.Icon,{type:"grid"})})]})},Fk=ab(Ur.StyledDropdownButton,{target:"e1obtllk0",label:"Button"})(Ur.buttons.button,";",Ur.buttons.medium,";",Ur.buttons.grayText,";font-size:14px;white-space:nowrap;&:after{top:11px;}");function Uk({active:e,title:t}){return bl(Fk,{css:(0,Zv.css)("color:",e?Ur.colors.active:void 0,";;label:ControlButton;"),children:t})}function qk(e){return{icon:"chevron",iconDirection:zk[e],iconSmall:!0}}const zk={[Pl.Ascending]:"up",[Pl.Descending]:"down"},Bk=(0,Ot().Tl)()(function({t:e,fields:t,onSortClick:n,sort:r}){const o=r?.valueSeq().toJS().some(e=>e.direction!==Pl.None);return bl(Ur.Dropdown,{renderButton:()=>bl(Uk,{active:o,title:e("collection.collectionTop.sortBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"max-content",dropdownPosition:"left",children:t.map(e=>{const t=r?.getIn([e.key,"direction"]),o=t&&t!==Pl.None,i=function(e){switch(e){case Pl.Ascending:return Pl.Descending;case Pl.Descending:return Pl.None;default:return Pl.Ascending}}(t);return bl(Ur.DropdownItem,{label:e.label,onClick:()=>n(e.key,i),isActive:o,...o&&qk(t)},e.key)})})}),Hk=(0,Ot().Tl)()(function({viewFilters:e,t:t,onFilterClick:n,filter:r}){const o=r?.valueSeq().toJS().some(e=>!0===e.active);return bl(Ur.Dropdown,{renderButton:()=>bl(Uk,{active:o,title:t("collection.collectionTop.filterBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownPosition:"left",children:e.map(e=>bl(Ur.DropdownCheckedItem,{label:e.label,id:e.id,checked:r.getIn([e.id,"active"],!1),onClick:()=>n(e)},e.id))})}),Wk=(0,Ot().Tl)()(function({viewGroups:e,t:t,onGroupClick:n,group:r}){const o=r?.valueSeq().toJS().some(e=>!0===e.active);return bl(Ur.Dropdown,{renderButton:()=>bl(Uk,{active:o,title:t("collection.collectionTop.groupBy")}),closeOnSelection:!1,dropdownTopOverlap:"30px",dropdownWidth:"max-content",dropdownPosition:"left",children:e.map(e=>bl(Ur.DropdownItem,{label:e.label,onClick:()=>n(e),isActive:r.getIn([e.id,"active"],!1)},e.id))})}),Vk=ab("div",{target:"emfmed70",label:"CollectionControlsContainer"})("display:flex;flex-flow:row-reverse wrap;align-items:center;gap:6px 0;margin-top:22px;width:",Ur.lengths.topCardWidth,";max-width:100%;@media (min-width: 500px){gap:6px;}"),Kk=function({viewStyle:e,onChangeViewStyle:t,sortableFields:n,onSortClick:r,sort:o,viewFilters:i,viewGroups:a,onFilterClick:s,onGroupClick:l,t:c,filter:u,group:d}){return wl(Vk,{children:[bl(jk,{viewStyle:e,onChangeViewStyle:t,t:c}),a.length>0&&bl(Wk,{viewGroups:a,onGroupClick:l,t:c,group:d}),i.length>0&&bl(Hk,{viewFilters:i,onFilterClick:s,t:c,filter:u}),n.length>0&&bl(Bk,{fields:n,sort:o,onSortClick:r})]})},Gk=ab("div",{target:"e1sogrfi3",label:"CollectionContainer"})("display:flex;flex-direction:column;gap:20px;margin:",Ur.lengths.pageMarginMobile,";@media (min-width: 500px){margin:",Ur.lengths.pageMargin,";}"),Yk=ab("main",{target:"e1sogrfi2",label:"CollectionMain"})({name:"12i6y66",styles:"@media (min-width: 800px){padding-left:280px;}"}),Jk=ab("div",{target:"e1sogrfi1",label:"SearchResultContainer"})(Ur.components.cardTop,";"),Qk=ab("h1",{target:"e1sogrfi0",label:"SearchResultHeading"})(Ur.components.cardTopHeading,";");class Xk extends Jt().Component{static propTypes={searchTerm:gn()().string,collectionName:gn()().string,isSearchResults:gn()().bool,isSingleSearchResult:gn()().bool,collection:_w().map.isRequired,collections:_w().map.isRequired,sortableFields:gn()().array,sort:_w().orderedMap,onSortClick:gn()().func.isRequired,canCreate:gn()().bool.isRequired,filterTerm:gn()().string,viewStyle:gn()().string};componentDidMount(){gn()().checkPropTypes(Xk.propTypes,this.props,"prop","Collection")}renderEntriesCollection=()=>{const{collection:e,filterTerm:t,viewStyle:n}=this.props;return bl(Dk,{collection:e,viewStyle:n,filterTerm:t})};renderEntriesSearch=()=>{const{searchTerm:e,collections:t,collection:n,isSingleSearchResult:r}=this.props;return bl(Nk,{collections:r?t.filter(e=>e===n):t,searchTerm:e})};render(){const{collection:e,collections:t,collectionName:n,isSearchEnabled:r,isSearchResults:o,isSingleSearchResult:i,searchTerm:a,sortableFields:s,onSortClick:l,sort:c,viewFilters:u,viewGroups:d,filterTerm:f,t:p,onFilterClick:h,onGroupClick:g,filter:m,group:y,onChangeViewStyle:v,viewStyle:b,canCreate:w}=this.props;let _=w?ql(n):"";_&&f&&(_=ql(n),f&&(_=`${_}?path=${f}`));const x="collection.collectionTop.searchResults"+(i?"InCollection":"");return wl(Gk,{children:[bl(Kx,{collections:t,collection:(!o||i)&&e,isSearchEnabled:r,searchTerm:a,filterTerm:f}),wl(Yk,{children:[o?bl(Jk,{children:bl(Qk,{children:p(x,{searchTerm:a,collection:e.get("label")})})}):wl(vl,{children:[bl(ek,{collection:e,newEntryUrl:_}),bl(Kk,{viewStyle:b,onChangeViewStyle:v,sortableFields:s,onSortClick:l,sort:c,viewFilters:u,viewGroups:d,t:p,onFilterClick:h,onGroupClick:g,filter:m,group:y})]}),o?this.renderEntriesSearch():this.renderEntriesCollection()]})]})}}const Zk=Qn(function(e,t){const{collections:n}=e,r=e.config&&0!=e.config.search,{isSearchResults:o,match:i,t:a}=t,{name:s,searchTerm:l="",filterTerm:c=""}=i.params,u=s?n.get(s):n.first(),d=bp(e.entries,u.get("name")),f=function(e,t){return e.get("sortable_fields").toArray().map(n=>{const r=n.get("field"),o=n.get("label");if(r===Wa)return{key:r,field:{name:r,label:o||t("collection.defaultFields.updatedOn.label")}};const i=Jp(e,r);if(r===Ha&&!i)return{key:r,field:{name:r,label:o||t("collection.defaultFields.author.label")}};let a=i?.toJS();return a&&o&&(a={...a,label:o}),a&&!a.label&&(a={...a,label:a.name||r}),{key:r,field:a}}).filter(e=>!!e.field).map(e=>({...e.field,key:e.key}))}(u,a),p=function(e){return e.get("view_filters").toJS()}(u),h=function(e){return e.get("view_groups").toJS()}(u),g=wp(e.entries,u.get("name")),m=_p(e.entries,u.get("name"));return{collection:u,collections:n,collectionName:s,isSearchEnabled:r,isSearchResults:o,searchTerm:l,filterTerm:c,sort:d,sortableFields:f,viewFilters:p,viewGroups:h,filter:g,group:m,viewStyle:e.entries.get("viewStyle"),canCreate:sm(e,s)}},{sortByField:Mf,filterByField:function(e,t){return async(n,r)=>{const o=r(),i=Tp(o.entries,e.get("name"));if(n({type:rf,payload:{collection:e.get("name"),filter:t}}),!i)try{const r=await $f(o,e);n({type:of,payload:{collection:e.get("name"),filter:t,entries:r}})}catch(r){n({type:af,payload:{collection:e.get("name"),filter:t,error:r}})}}},changeViewStyle:function(e){return{type:Tf,payload:{style:e}}},groupByField:function(e,t){return async(n,r)=>{const o=r(),i=Tp(o.entries,e.get("name"));if(n({type:sf,payload:{collection:e.get("name"),group:t}}),!i)try{const r=await $f(o,e);n({type:lf,payload:{collection:e.get("name"),group:t,entries:r}})}catch(r){n({type:cf,payload:{collection:e.get("name"),group:t,error:r}})}}}},function(e,t,n){return{...e,...n,onSortClick:(n,r)=>t.sortByField(e.collection,n,r),onFilterClick:n=>t.filterByField(e.collection,n),onGroupClick:n=>t.groupByField(e.collection,n),onChangeViewStyle:e=>t.changeViewStyle(e)}})(Xk),eS=(0,Ot().Tl)()(Zk),tS={text:{name:"1lc6g5t-text",styles:"font-size:13px;font-weight:normal;margin-top:4px;label:text;"},button:(0,Zv.css)(Ur.buttons.button,";width:auto;flex:1 0 0;font-size:13px;padding:6px;;label:button;")},nS=ab(hx,{target:"ewffzyy8",label:"WorkflowLink"})({name:"13m7uc3",styles:"display:block;padding:8px;height:140px;overflow:hidden;@media (min-width: 800px){height:200px;padding:12px 18px 18px;}"}),rS=ab("div",{target:"ewffzyy7",label:"CardCollection"})("font-size:12px;color:",Ur.colors.textLead,";text-transform:uppercase;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;@media (min-width: 800px){font-size:14px;}"),oS=ab("h2",{target:"ewffzyy6",label:"CardTitle"})("font-size:14px;line-height:17px;margin:10px 0 0;color:",Ur.colors.textLead,";word-break:break-word;@media (min-width: 800px){font-size:15px;line-height:18px;margin-top:28px;}"),iS=ab("div",{target:"ewffzyy5",label:"CardDateContainer"})(tS.text,";"),aS=ab("p",{target:"ewffzyy4",label:"CardBody"})(tS.text,";line-height:17px;color:",Ur.colors.text,";margin:10px 0 0;overflow-wrap:break-word;word-break:break-word;hyphens:auto;@media (min-width: 800px){margin-top:24px;}"),sS=ab("div",{target:"ewffzyy3",label:"CardButtonContainer"})("background-color:",Ur.colors.foreground,";position:absolute;bottom:0;width:100%;display:none;padding:8px;flex-direction:column;gap:6px;transition:opacity ",Ur.transitions.main,";cursor:pointer;@media (min-width: 500px){display:flex;}@media (min-width: 800px){padding:12px 18px;flex-direction:row;gap:12px;}@media (hover: hover){opacity:0;}"),lS=ab("button",{target:"ewffzyy2",label:"DeleteButton"})(tS.button,";background-color:",Ur.colorsRaw.redLight,";color:",Ur.colorsRaw.red,";"),cS=ab("button",{target:"ewffzyy1",label:"PublishButton"})(tS.button,";background-color:",Ur.colorsRaw.teal,";color:",Ur.colors.textLight,";&[disabled]{",Ur.buttons.disabled,";}"),uS=ab("div",{target:"ewffzyy0",label:"WorkflowCardContainer"})(Ur.components.card,";margin-bottom:10px;position:relative;overflow:hidden;&:hover ",sS,",&:has(:focus-visible) ",sS,"{opacity:1;}@media (min-width: 800px){margin-bottom:24px;}"),dS=(0,Ot().Tl)()(({t:e,date:t,author:n})=>{const r=function(e,t){return e&&t?"lastChange":e?"lastChangeNoAuthor":t?"lastChangeNoDate":void 0}(t,n);if(r)return bl(iS,{children:e(`workflow.workflowCard.${r}`,{date:t,author:n})})});function fS({collectionLabel:e,title:t,authorLastChange:n,body:r,isModification:o,editLink:i,timestamp:a,onDelete:s,allowPublish:l,canPublish:c,onPublish:u,postAuthor:d,t:f}){return wl(uS,{children:[wl(nS,{to:i,children:[bl(rS,{children:e}),d,bl(oS,{children:t}),(a||n)&&bl(dS,{date:a,author:n}),bl(aS,{children:r})]}),wl(sS,{children:[bl(lS,{onClick:s,children:f(o?"workflow.workflowCard.deleteChanges":"workflow.workflowCard.deleteNewEntry")}),l&&bl(cS,{disabled:!c,onClick:u,children:f(o?"workflow.workflowCard.publishChanges":"workflow.workflowCard.publishNewEntry")})]})]})}fS.propTypes={collectionLabel:gn()().string.isRequired,title:gn()().string,authorLastChange:gn()().string,body:gn()().string,isModification:gn()().bool,editLink:gn()().string.isRequired,timestamp:gn()().string.isRequired,onDelete:gn()().func.isRequired,allowPublish:gn()().bool.isRequired,canPublish:gn()().bool.isRequired,onPublish:gn()().func.isRequired,postAuthor:gn()().string,t:gn()().func.isRequired};const pS=(0,Ot().Tl)()(fS),hS=ab("div",{target:"e190xgae3",label:"WorkflowListContainer"})({name:"1qe9ect",styles:"min-height:60%;display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:8px;@media (min-width: 500px){gap:14px;}@media (min-width: 800px){gap:40px;}"}),gS=ab("div",{target:"e190xgae2",label:"WorkflowListContainerOpenAuthoring"})({name:"1c9eugt",styles:"min-height:60%;display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px;@media (min-width: 500px){gap:14px;}@media (min-width: 800px){gap:40px;}"}),mS={columnPosition:e=>e>0&&(0,Zv.css)("&:before{content:'';display:block;position:absolute;width:2px;height:80%;top:36px;background-color:",Ur.colors.textFieldBorder,";@media (min-width: 800px){top:76px;}}&:before{left:-7px;@media (min-width: 500px){left:-10px;}@media (min-width: 800px){left:-23px;}};label:columnPosition;"),column:{name:"qsy8jd-column",styles:"transition:background-color 0.5s ease;border:2px dashed transparent;border-radius:4px;position:relative;height:100%;label:column;"},columnHovered:(0,Zv.css)("border-color:",Ur.colors.active,";;label:columnHovered;"),hiddenColumn:{name:"1woovtn-hiddenColumn",styles:"display:none;label:hiddenColumn;"}},yS=ab("h2",{target:"e190xgae1",label:"ColumnHeader"})("font-size:16px;font-weight:normal;padding:2px 6px;border-radius:",Ur.lengths.borderRadius,";white-space:nowrap;margin-bottom:6px;@media (min-width: 800px){font-size:20px;padding:4px 12px;margin-bottom:28px;}",e=>"draft"===e.name&&(0,Zv.css)("background-color:",Ur.colors.statusDraftBackground,";color:",Ur.colors.statusDraftText,";;label:ColumnHeader;")," ",e=>"pending_review"===e.name&&(0,Zv.css)("background-color:",Ur.colors.statusReviewBackground,";color:",Ur.colors.statusReviewText,";;label:ColumnHeader;")," ",e=>"pending_publish"===e.name&&(0,Zv.css)("background-color:",Ur.colors.statusReadyBackground,";color:",Ur.colors.statusReadyText,";;label:ColumnHeader;"),";"),vS=ab("p",{target:"e190xgae0",label:"ColumnCount"})("font-size:11px;font-weight:500;color:",Ur.colors.text,";text-transform:uppercase;margin-bottom:6px;padding-inline:6px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0;@media (min-width: 800px){font-size:13px;padding-inline:12px;}"),bS="cms-workflow";function wS(e,t){switch(e){case"draft":return t("workflow.workflowList.draftHeader");case"pending_review":return t("workflow.workflowList.inReviewHeader");case"pending_publish":return t("workflow.workflowList.readyHeader")}}class _S extends Jt().Component{static propTypes={entries:_w().orderedMap,handleChangeStatus:gn()().func.isRequired,handlePublish:gn()().func.isRequired,handleDelete:gn()().func.isRequired,t:gn()().func.isRequired,isOpenAuthoring:gn()().bool,collections:_w().map.isRequired};componentDidMount(){gn()().checkPropTypes(_S.propTypes,this.props,"prop","WorkflowList")}handleChangeStatus=(e,t)=>{const n=t.slug,r=t.collection,o=t.ownStatus;this.props.handleChangeStatus(r,n,o,e)};requestDelete=(e,t,n)=>{window.confirm(this.props.t("workflow.workflowList.onDeleteEntry"))&&this.props.handleDelete(e,t,n)};requestPublish=(e,t,n)=>{n===Ma.last()?window.confirm(this.props.t("workflow.workflowList.onPublishEntry"))&&this.props.handlePublish(e,t):window.alert(this.props.t("workflow.workflowList.onPublishingNotReadyEntry"))};renderColumns=(e,t)=>{const{isOpenAuthoring:n,collections:r,t:o}=this.props;return e?t?bl("div",{children:e.map(e=>{const t=bi()(e.get("updatedOn")).format(o("workflow.workflow.dateFormat")),n=e.get("slug"),i=e.get("collection"),a=`collections/${i}/entries/${n}?ref=workflow`,s=e.get("status"),l=r.find(e=>e.get("name")===i),c=l?.get("label"),u=e.get("isModification"),d=l?.get("publish"),f=s===Ma.last()&&!e.get("isPersisting",!1),p=e.get("author");return bl(Qv,{namespace:bS,slug:n,collection:i,ownStatus:s,children:r=>r(bl("div",{children:bl(pS,{collectionLabel:c||i,title:eh(l,e),authorLastChange:e.getIn(["metaData","user"]),body:e.getIn(["data","body"]),isModification:u,editLink:a,timestamp:t,onDelete:this.requestDelete.bind(this,i,n,s),allowPublish:d,canPublish:f,onPublish:this.requestPublish.bind(this,i,n,s),postAuthor:p})}))},`${i}-${n}`)})}):e.entrySeq().map(([e,t],r)=>bl(Xv,{namespace:bS,onDrop:this.handleChangeStatus.bind(this,e),children:(o,{isHovered:i})=>o(bl("div",{style:{height:"100%"},children:wl("div",{css:[mS.column,mS.columnPosition(r),i&&mS.columnHovered,n&&"pending_publish"===e&&mS.hiddenColumn,";label:renderColumns;"],children:[bl(yS,{name:e,children:wS(e,this.props.t)}),bl(vS,{children:this.props.t("workflow.workflowList.currentEntries",{smart_count:t.size})}),this.renderColumns(t,e)]})}))},e)):null};render(){const e=this.renderColumns(this.props.entries),t=this.props.isOpenAuthoring?gS:hS;return bl(t,{children:e})}}const xS=(kS=(0,Ot().Tl)()(_S),class extends Jt().Component{static propTypes={...kS.propTypes};render(){return bl(Yv,{backend:Fm,children:bl(kS,{...this.props})})}});var kS;const SS=ab("div",{target:"e1t9l5ui4",label:"WorkflowContainer"})("height:100vh;margin:",Ur.lengths.pageMarginMobile,";@media (min-width: 500px){margin:",Ur.lengths.pageMargin,";}"),ES=ab("div",{target:"e1t9l5ui3",label:"WorkflowTop"})(Ur.components.cardTop,";"),CS=ab("div",{target:"e1t9l5ui2",label:"WorkflowTopRow"})("display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;span[role='button']{",Ur.shadows.dropDeep,";}"),TS=ab("h1",{target:"e1t9l5ui1",label:"WorkflowTopHeading"})(Ur.components.cardTopHeading,";"),PS=ab("p",{target:"e1t9l5ui0",label:"WorkflowTopDescription"})(Ur.components.cardTopDescription,";");class OS extends Jt().Component{static propTypes={collections:_w().map.isRequired,creatableCollections:_w().list.isRequired,isEditorialWorkflow:gn()().bool.isRequired,isOpenAuthoring:gn()().bool,isFetching:gn()().bool,unpublishedEntries:_w().map,loadUnpublishedEntries:gn()().func.isRequired,updateUnpublishedEntryStatus:gn()().func.isRequired,publishUnpublishedEntry:gn()().func.isRequired,deleteUnpublishedEntry:gn()().func.isRequired,t:gn()().func.isRequired};componentDidMount(){gn()().checkPropTypes(OS.propTypes,this.props,"prop","Workflow");const{loadUnpublishedEntries:e,isEditorialWorkflow:t,collections:n}=this.props;t&&e(n)}render(){const{isEditorialWorkflow:e,isOpenAuthoring:t,isFetching:n,unpublishedEntries:r,updateUnpublishedEntryStatus:o,publishUnpublishedEntry:i,deleteUnpublishedEntry:a,collections:s,creatableCollections:l,t:c}=this.props;if(!e)return null;if(n)return bl(Ur.Loader,{active:!0,children:c("workflow.workflow.loading")});const u=r.get("pending_review").size,d=r.get("pending_publish").size;return wl(SS,{children:[wl(ES,{children:[wl(CS,{children:[bl(TS,{children:c("workflow.workflow.workflowHeading")}),bl(Ur.Dropdown,{dropdownWidth:"max-content",dropdownPosition:"left",dropdownTopOverlap:"40px",renderButton:()=>bl(Ur.StyledDropdownButton,{children:c("workflow.workflow.newPost")}),children:l.map(e=>bl(Ur.DropdownItem,{label:e.get("label"),onClick:()=>Sw(e.get("name"))},e.get("name")))})]}),bl(PS,{children:c("workflow.workflow.description",{smart_count:u,readyCount:d})})]}),bl(xS,{entries:r,handleChangeStatus:o,handlePublish:i,handleDelete:a,isOpenAuthoring:t,collections:s})]})}}const RS=Qn(function(e){const{collections:t,config:n,globalUI:r}=e,o=n.publish_mode===Na,i=r.useOpenAuthoring,a=t.filter(t=>sm(e,t.get("name"))).toList(),s={collections:t,creatableCollections:a,isEditorialWorkflow:o,isOpenAuthoring:i};return o&&(s.isFetching=e.editorialWorkflow.getIn(["pages","isFetching"],!1),s.unpublishedEntries=Ma.reduce((t,n)=>{const r=am(e,n);return t.set(n,r)},(0,Wr.OrderedMap)())),s},{loadUnpublishedEntries:Od,updateUnpublishedEntryStatus:Rd,publishUnpublishedEntry:Id,deleteUnpublishedEntry:Ad})((0,Ot().Tl)()(OS)),AS=ab(Ur.Icon,{target:"ev9m3q80",label:"DotIcon"})("color:",e=>e.color,";flex-shrink:0;");function IS({color:e}){return bl(AS,{type:"circle",color:e})}IS.propTypes={color:gn()().string.isRequired};const DS={success:Ur.colorsRaw.green,failed:Ur.colorsRaw.redDark,building:Ur.colorsRaw.brown,pending:Ur.colorsRaw.brown,canceled:Ur.colorsRaw.gray,stalled:Ur.colorsRaw.gray};function LS(e,t=Date.now()){if(!e||"building"!==e.state&&"pending"!==e.state)return!1;const n=Date.parse(e.updated_at);return Number.isFinite(n)&&t-n>18e5}function NS(e){if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":t.toLocaleString()}function $S(e){return e.provider_label?e.provider_label:e.source?.startsWith("github")?"GitHub":e.source?.startsWith("gitlab")?"GitLab":"Webhook"}function MS(e){return`${e.source}:${e.external_id}`}function jS(e){return e.branch||""}function FS(e){const t=e.branch||null,n=e.environment||null;return t&&n&&n!==t?`${t} · ${n}`:t||n||"—"}const US=ab("div",{target:"e9gclx213",label:"DeploysContainer"})("min-height:100vh;margin:",Ur.lengths.pageMarginMobile,";@media (min-width: 500px){margin:",Ur.lengths.pageMargin,";}"),qS=ab("div",{target:"e9gclx212",label:"DeploysTop"})(Ur.components.cardTop,";"),zS=ab("div",{target:"e9gclx211",label:"DeploysTopRow"})({name:"q30ya6",styles:"display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between"}),BS=ab("h1",{target:"e9gclx210",label:"DeploysTopHeading"})(Ur.components.cardTopHeading,";"),HS=ab("p",{target:"e9gclx29",label:"DeploysTopDescription"})(Ur.components.cardTopDescription,";"),WS=ab("button",{target:"e9gclx28",label:"RefreshButton"})(Ur.buttons.button,";",Ur.buttons.default,";",Ur.buttons.gray,";display:inline-flex;align-items:center;gap:6px;"),VS=ab("a",{target:"e9gclx27",label:"SummaryLink"})(Ur.buttons.button,";",Ur.buttons.default,";",Ur.buttons.lightBlue,";text-decoration:none;display:inline-block;margin-top:12px;"),KS=ab("div",{target:"e9gclx26",label:"Card"})(Ur.components.card,";",Ur.shadows.dropMain,";padding:16px 20px;margin-bottom:16px;"),GS=ab("table",{target:"e9gclx25",label:"Table"})("width:100%;border-collapse:collapse;font-size:14px;th,td{text-align:left;padding:10px 12px;border-bottom:1px solid ",Ur.colors.textFieldBorder,";vertical-align:top;}th{color:",Ur.colors.controlLabel,";font-weight:600;white-space:nowrap;}"),YS=ab("span",{target:"e9gclx24",label:"StateCell"})("display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:",e=>e.color,";font-weight:600;"),JS=ab("a",{target:"e9gclx23",label:"StateLink"})({name:"19yhkv9",styles:"color:inherit;text-decoration:none;&:hover{text-decoration:underline;}"}),QS=ab("p",{target:"e9gclx22",label:"Muted"})("color:",Ur.colors.text,";margin:0;"),XS=ab("p",{target:"e9gclx21",label:"ErrorText"})("color:",Ur.colors.errorText,";margin:4px 0 0;font-weight:400;"),ZS=ab("code",{target:"e9gclx20",label:"Commit"})({name:"1n7r223",styles:"font-family:monospace"});class eE extends hn()().Component{static propTypes={deployments:gn()().array.isRequired,pendingCount:gn()().number.isRequired,latest:gn()().object,isFetching:gn()().bool.isRequired,loaded:gn()().bool.isRequired,error:gn()().string,commitUrls:gn()().object.isRequired,entryLabels:gn()().object.isRequired,branch:gn()().string,loadDeployHistory:gn()().func.isRequired,t:gn()().func.isRequired};componentDidMount(){this.props.loadDeployHistory(),this.startAutoRefresh(),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentWillUnmount(){this.stopAutoRefresh(),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}startAutoRefresh(){this.timer||(this.timer=setInterval(()=>{this.props.loadDeployHistory({silent:!0})},1e4))}stopAutoRefresh(){clearInterval(this.timer),this.timer=null}handleVisibilityChange=()=>{document.hidden?this.stopAutoRefresh():(this.props.loadDeployHistory({silent:!0}),this.startAutoRefresh())};renderRow(e,t,n){const{commitUrls:r,entryLabels:o,branch:i,t:a}=this.props,s=function(e,t,n){return LS(e,n)?"ui.deploys.state.stalled":"success"===e.state?t.has(MS(e))?"ui.deploys.state.live":"ui.deploys.state.deployed":`ui.deploys.state.${e.state}`}(e,t,n),l=function(e,t){return LS(e,t)?DS.stalled:DS[e.state]||Ur.colors.text}(e,n),c=Boolean(i)&&Boolean(jS(e))&&jS(e)!==i,u=LS(e,n)?a("ui.deploys.stalledHint"):"ui.deploys.state.live"===s&&c?a("ui.deploys.liveOnBranchHint"):void 0,d=bl(ZS,{children:e.commit_sha.slice(0,7)});return wl("tr",{children:[wl("td",{children:[wl(YS,{color:l,title:u,children:[bl(IS,{color:l}),e.target_url?bl(JS,{href:e.target_url,target:"_blank",rel:"noopener noreferrer",children:a(s)}):a(s)]}),e.error_message&&bl(XS,{children:e.error_message})]}),bl("td",{children:o[e.commit_sha]||bl(QS,{as:"span",children:"—"})}),bl("td",{children:FS(e)}),bl("td",{children:$S(e)}),bl("td",{children:r[e.commit_sha]?bl("a",{href:r[e.commit_sha],target:"_blank",rel:"noopener noreferrer",children:d}):d}),bl("td",{children:NS(e.finished_at||e.updated_at)})]},MS(e))}render(){const{deployments:e,pendingCount:t,latest:n,isFetching:r,loaded:o,error:i,t:a}=this.props,s=Date.now(),l=function(e,t,n){return e>0?{key:"ui.deploys.summaryPublishing",options:{count:e}}:!t||LS(t,n)?{key:"ui.deploys.summaryUnknown",options:{}}:"failed"===t.state?{key:"ui.deploys.summaryFailed",options:{}}:"building"===t.state||"pending"===t.state?{key:"ui.deploys.summaryBuilding",options:{}}:"success"===t.state?{key:"ui.deploys.summaryLive",options:{time:NS(t.finished_at||t.updated_at)}}:{key:"ui.deploys.summaryUnknown",options:{}}}(t,n,s),c=[...new Set(e.map($S))].sort(),u=function(e){const t=new Set,n=new Set;for(const r of e){if("success"!==r.state)continue;const e=jS(r);t.has(e)||(t.add(e),n.add(MS(r)))}return n}(e),d=n&&"success"===n.state?n.target_url:null;return wl(US,{children:[wl(qS,{children:[wl(zS,{children:[bl(BS,{children:a("ui.deploys.heading")}),wl(WS,{onClick:()=>this.props.loadDeployHistory(),disabled:r,children:[bl(Ur.Icon,{type:"refresh",size:"small"}),a(r?"ui.deploys.refreshing":"ui.deploys.refresh")]})]}),bl(HS,{children:a(l.key,l.options)}),d&&bl(VS,{href:d,target:"_blank",rel:"noopener noreferrer",children:a("ui.deploys.viewSite")})]}),i&&bl(KS,{children:bl(XS,{children:a("ui.deploys.loadError",{details:i})})}),c.length>1&&bl(KS,{children:bl(QS,{children:a("ui.deploys.multipleTargets",{targets:c.join(", ")})})}),bl(KS,{children:0===e.length?bl(QS,{children:a(o?"ui.deploys.emptyConfigured":"ui.deploys.emptyUnknown")}):wl(GS,{children:[bl("thead",{children:wl("tr",{children:[bl("th",{children:a("ui.deploys.columnState")}),bl("th",{children:a("ui.deploys.columnEntry")}),bl("th",{children:a("ui.deploys.columnWhere")}),bl("th",{children:a("ui.deploys.columnTarget")}),bl("th",{children:a("ui.deploys.columnCommit")}),bl("th",{children:a("ui.deploys.columnWhen")})]})}),bl("tbody",{children:e.map(e=>this.renderRow(e,u,s))})]})})]})}}const tE=Qn(function(e){const{deployments:t,pendingCount:n,latest:r,isFetching:o,error:i,loaded:a,entryLabels:s,branch:l}=e.deployStatus,c={};for(const n of t)n.commit_sha in c||(c[n.commit_sha]=Vd(e,n.commit_sha));return{deployments:t,pendingCount:n,latest:r,isFetching:o,error:i,loaded:a,commitUrls:c,entryLabels:s,branch:l}},{loadDeployHistory:Wd})((0,Ot().Tl)()(eE));var nE=__webpack_require__(20671),rE=__webpack_require__.n(nE),oE=__webpack_require__(83876),iE=__webpack_require__.n(oE);function aE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lE(e,t,n){return t&&sE(e.prototype,t),n&&sE(e,n),e}function cE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uE(Object(n),!0).forEach(function(t){cE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hE(e,t)}function pE(e){return pE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pE(e)}function hE(e,t){return hE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hE(e,t)}function gE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mE(e){return function(){var t,n=pE(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=pE(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?gE(e):t}(this,t)}}var yE=function(e){fE(n,e);var t=mE(n);function n(){return aE(this,n),t.apply(this,arguments)}return lE(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.split,o=e.style,i=e.size,a=e.eleRef,s=["Pane",r,n],l={flex:1,position:"relative",outline:"none"};return void 0!==i&&("vertical"===r?l.width=i:(l.height=i,l.display="flex"),l.flex="none"),l=Object.assign({},l,o||{}),hn()().createElement("div",{ref:a,className:s.join(" "),style:l},t)}}]),n}(hn()().PureComponent);yE.propTypes={className:gn()().string.isRequired,children:gn()().node.isRequired,size:gn()().oneOfType([gn()().string,gn()().number]),split:gn()().oneOf(["vertical","horizontal"]),style:iE(),eleRef:gn()().func},yE.defaultProps={};var vE="Resizer",bE=function(e){fE(n,e);var t=mE(n);function n(){return aE(this,n),t.apply(this,arguments)}return lE(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.onClick,r=e.onDoubleClick,o=e.onMouseDown,i=e.onTouchEnd,a=e.onTouchStart,s=e.resizerClassName,l=e.split,c=e.style,u=[s,l,t];return hn()().createElement("span",{role:"presentation",className:u.join(" "),style:c,onMouseDown:function(e){return o(e)},onTouchStart:function(e){e.preventDefault(),a(e)},onTouchEnd:function(e){e.preventDefault(),i(e)},onClick:function(e){n&&(e.preventDefault(),n(e))},onDoubleClick:function(e){r&&(e.preventDefault(),r(e))}})}}]),n}(hn()().Component);function wE(e,t){if(e.selection)e.selection.empty();else try{t.getSelection().removeAllRanges()}catch(e){}}function _E(e,t,n,r){if("number"==typeof r){var o="number"==typeof t?t:0,i="number"==typeof n&&n>=0?n:1/0;return Math.max(o,Math.min(i,r))}return void 0!==e?e:t}bE.propTypes={className:gn()().string.isRequired,onClick:gn()().func,onDoubleClick:gn()().func,onMouseDown:gn()().func.isRequired,onTouchStart:gn()().func.isRequired,onTouchEnd:gn()().func.isRequired,split:gn()().oneOf(["vertical","horizontal"]),style:iE(),resizerClassName:gn()().string.isRequired},bE.defaultProps={resizerClassName:vE};var xE=function(e){fE(n,e);var t=mE(n);function n(e){var r;aE(this,n),(r=t.call(this,e)).onMouseDown=r.onMouseDown.bind(gE(r)),r.onTouchStart=r.onTouchStart.bind(gE(r)),r.onMouseMove=r.onMouseMove.bind(gE(r)),r.onTouchMove=r.onTouchMove.bind(gE(r)),r.onMouseUp=r.onMouseUp.bind(gE(r));var o=e.size,i=e.defaultSize,a=e.minSize,s=e.maxSize,l=e.primary,c=void 0!==o?o:_E(i,a,s,null);return r.state={active:!1,resized:!1,pane1Size:"first"===l?c:void 0,pane2Size:"second"===l?c:void 0,instanceProps:{size:o}},r}return lE(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(n.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchStart(t)}},{key:"onTouchStart",value:function(e){var t=this.props,n=t.allowResize,r=t.onDragStarted,o=t.split;if(n){wE(document,window);var i="vertical"===o?e.touches[0].clientX:e.touches[0].clientY;"function"==typeof r&&r(),this.setState({active:!0,position:i})}}},{key:"onMouseMove",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchMove(t)}},{key:"onTouchMove",value:function(e){var t=this.props,n=t.allowResize,r=t.maxSize,o=t.minSize,i=t.onChange,a=t.split,s=t.step,l=this.state,c=l.active,u=l.position;if(n&&c){wE(document,window);var d="first"===this.props.primary,f=d?this.pane1:this.pane2,p=d?this.pane2:this.pane1;if(f){var h=f,g=p;if(h.getBoundingClientRect){var m=h.getBoundingClientRect().width,y=h.getBoundingClientRect().height,v="vertical"===a?m:y,b=u-("vertical"===a?e.touches[0].clientX:e.touches[0].clientY);if(s){if(Math.abs(b)<s)return;b=~~(b/s)*s}var w=d?b:-b;parseInt(window.getComputedStyle(h).order)>parseInt(window.getComputedStyle(g).order)&&(w=-w);var _=r;if(void 0!==r&&r<=0){var x=this.splitPane;_="vertical"===a?x.getBoundingClientRect().width+r:x.getBoundingClientRect().height+r}var k=v-w,S=u-b;k<o?k=o:void 0!==r&&k>_?k=_:this.setState({position:S,resized:!0}),i&&i(k),this.setState(cE({draggedSize:k},d?"pane1Size":"pane2Size",k))}}}}},{key:"onMouseUp",value:function(){var e=this.props,t=e.allowResize,n=e.onDragFinished,r=this.state,o=r.active,i=r.draggedSize;t&&o&&("function"==typeof n&&n(i),this.setState({active:!1}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.allowResize,r=t.children,o=t.className,i=t.onResizerClick,a=t.onResizerDoubleClick,s=t.paneClassName,l=t.pane1ClassName,c=t.pane2ClassName,u=t.paneStyle,d=t.pane1Style,f=t.pane2Style,p=t.resizerClassName,h=t.resizerStyle,g=t.split,m=t.style,y=this.state,v=y.pane1Size,b=y.pane2Size,w=n?"":"disabled",_=p?"".concat(p," ").concat(vE):p,x=function(e){return hn()().Children.toArray(e).filter(function(e){return e})}(r),k=dE({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},m);"vertical"===g?Object.assign(k,{flexDirection:"row",left:0,right:0}):Object.assign(k,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var S=["SplitPane",o,g,w],E=dE({},u,{},d),C=dE({},u,{},f),T=["Pane1",s,l].join(" "),P=["Pane2",s,c].join(" ");return hn()().createElement("div",{className:S.join(" "),ref:function(t){e.splitPane=t},style:k},hn()().createElement(yE,{className:T,key:"pane1",eleRef:function(t){e.pane1=t},size:v,split:g,style:E},x[0]),hn()().createElement(bE,{className:w,onClick:i,onDoubleClick:a,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:_,split:g,style:h||{}}),hn()().createElement(yE,{className:P,key:"pane2",eleRef:function(t){e.pane2=t},size:b,split:g,style:C},x[1]))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return n.getSizeUpdate(e,t)}},{key:"getSizeUpdate",value:function(e,t){var n={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var r=void 0!==e.size?e.size:_E(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(n.draggedSize=r);var o="first"===e.primary;return n[o?"pane1Size":"pane2Size"]=r,n[o?"pane2Size":"pane1Size"]=void 0,n.instanceProps={size:e.size},n}}]),n}(hn()().Component);xE.propTypes={allowResize:gn()().bool,children:gn()().arrayOf(gn()().node).isRequired,className:gn()().string,primary:gn()().oneOf(["first","second"]),minSize:gn()().oneOfType([gn()().string,gn()().number]),maxSize:gn()().oneOfType([gn()().string,gn()().number]),defaultSize:gn()().oneOfType([gn()().string,gn()().number]),size:gn()().oneOfType([gn()().string,gn()().number]),split:gn()().oneOf(["vertical","horizontal"]),onDragStarted:gn()().func,onDragFinished:gn()().func,onChange:gn()().func,onResizerClick:gn()().func,onResizerDoubleClick:gn()().func,style:iE(),resizerStyle:iE(),paneClassName:gn()().string,pane1ClassName:gn()().string,pane2ClassName:gn()().string,paneStyle:iE(),pane1Style:iE(),pane2Style:iE(),resizerClassName:gn()().string,step:gn()().number},xE.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},(0,ft().polyfill)(xE);const kE=xE;var SE=__webpack_require__(82158),EE=__webpack_require__(59406),CE=__webpack_require__.n(EE);function TE(){return TE.c||(TE.c=__webpack_require__.n(ht()))}function PE(){return PE.c||(PE.c=__webpack_require__.n($t()))}ht(),$t();const OE=new Set(["string","text","markdown","richtext","color","datetime","select"]);function RE(){const e=cm.getState();if(!e)return null;const t=e.entryDraft.get("entry"),n=t;if(!t||!n||0===n.size||!0===n.get("partial"))return null;const r=t.get("collection"),o=e.collections.get(r);if(!o)return null;const i=t.get("slug"),a=zp(o,i);return a?{collection:o,collectionName:r,entry:t,fields:a,slug:i}:null}function AE(){const e=RE();if(!e)return null;const{collection:t,collectionName:n,entry:r,fields:o}=e,{locales:i,defaultLocale:a}=lh(t),s=cm.getState();return{collection:n,collectionLabel:t.get("label")??n,slug:r.get("newRecord")?null:r.get("slug")??null,newRecord:Boolean(r.get("newRecord")),path:r.get("path")??null,fields:o.toJS(),data:r.get("data")?.toJS()??{},i18n:r.get("i18n")?.toJS()??null,locales:i??null,defaultLocale:a??null,hasChanged:Boolean(s.entryDraft.get("hasChanged"))}}function IE(e,t,n){if(!t)return null;const r=e.get("widget");return e.get("multiple")&&Array.isArray(n)?null:OE.has(r)&&"string"!=typeof n?`${r} fields take a string`:"boolean"===r&&"boolean"!=typeof n?"boolean fields take true or false":"number"===r&&"number"!=typeof n&&"string"!=typeof n?"number fields take a number":"list"!==r||Array.isArray(n)?"object"!==r||null!==n&&"object"==typeof n&&!Array.isArray(n)?null:"object fields take an object":"list fields take an array"}const DE={getCurrentEntry:AE,applyFieldPatch:function(e,t={}){const n={applied:[],rejected:[]},r=RE();if(!r){for(const t of e)n.rejected.push({path:t.path,reason:"no entry is open"});return n}const{collection:o,collectionName:i,fields:a,slug:s}=r,{locales:l,defaultLocale:c}=lh(o),u=t.locale??c;if(t.locale&&(!l||!l.includes(t.locale))){for(const r of e)n.rejected.push({path:r.path,reason:`this collection has no locale "${t.locale}"`});return n}const d=l&&u&&c?{currentLocale:u,defaultLocale:c,locales:l}:void 0,f=d&&ph(d.currentLocale,d.defaultLocale)||["data"],p=new Set;for(const t of e){const e=String(t.path).split(".").filter(Boolean),r=a.find(t=>t.get("name")===e[0]);if(!r){n.rejected.push({path:t.path,reason:"no such field"});continue}if("hidden"===r.get("widget")){n.rejected.push({path:t.path,reason:"hidden fields cannot be edited"});continue}if(d&&u!==c&&!ch(r,u,c)){n.rejected.push({path:t.path,reason:`this field is not translated into "${u}"`});continue}const o=IE(r,1===e.length,t.value);if(o){n.rejected.push({path:t.path,reason:o});continue}const l=cm.getState(),h=l.entryDraft.get("entry"),g=r.get("meta")?["meta",e[0]]:[...f,e[0]],m=h.getIn(g),y=(0,Wr.fromJS)(t.value);let v;if(1===e.length)v=y;else{const r=e.slice(1).map(e=>/^\d+$/.test(e)?Number(e):e),o=m??("number"==typeof r[0]?(0,Wr.List)():(0,Wr.Map)());if(!Wr.Map.isMap(o)&&!Wr.List.isList(o)){n.rejected.push({path:t.path,reason:`${e[0]} has no nested values`});continue}v=o.setIn(r,y)}const b=[im(l,i,s),nm(l,i,s)].filter(Boolean);cm.dispatch(Uf({field:r,value:v,metadata:{},entries:b,i18n:d})),n.applied.push(t.path),p.add(e[0])}if(p.size>0){const e=[...p];cm.dispatch(function(e){return{type:hf,payload:{names:e}}}(e)),setTimeout(()=>cm.dispatch(function(e){return{type:gf,payload:{names:e}}}(e)),4e3)}return n},onEditorChange:function(e){let t;return cm.subscribe(()=>{const n=cm.getState()?.entryDraft;n!==t&&(t=n,e(AE()))})}};function LE(){return{error:!1}}function NE(e){return null==e||Object.prototype.hasOwnProperty.call(e,"length")&&0===e.length||e.constructor===Object&&0===Object.keys(e).length||Wr.List.isList(e)&&0===e.size}class $E extends Jt().Component{static propTypes={controlComponent:gn()().func.isRequired,field:_w().map.isRequired,hasActiveStyle:gn()().bool,setActiveStyle:gn()().func.isRequired,setInactiveStyle:gn()().func.isRequired,classNameWrapper:gn()().string.isRequired,classNameWidget:gn()().string.isRequired,classNameWidgetActive:gn()().string.isRequired,classNameLabel:gn()().string.isRequired,classNameLabelActive:gn()().string.isRequired,value:gn()().oneOfType([gn()().node,gn()().object,gn()().string,gn()().bool]),mediaPaths:_w().map.isRequired,metadata:_w().map,fieldsErrors:_w().map,onChange:gn()().func.isRequired,onValidate:gn()().func,controlRef:gn()().func,onOpenMediaLibrary:gn()().func.isRequired,onClearMediaControl:gn()().func.isRequired,onRemoveMediaControl:gn()().func.isRequired,onPersistMedia:gn()().func.isRequired,onAddAsset:gn()().func.isRequired,onRemoveInsertedMedia:gn()().func.isRequired,getAsset:gn()().func.isRequired,resolveWidget:gn()().func.isRequired,widget:gn()().object.isRequired,getEditorComponents:gn()().func.isRequired,isFetching:gn()().bool,query:gn()().func.isRequired,clearSearch:gn()().func.isRequired,clearFieldErrors:gn()().func.isRequired,queryHits:gn()().oneOfType([gn()().array,gn()().object]),editorControl:gn()().elementType.isRequired,uniqueFieldId:gn()().string.isRequired,loadEntry:gn()().func.isRequired,t:gn()().func.isRequired,onValidateObject:gn()().func,isEditorComponent:gn()().bool,isNewEditorComponent:gn()().bool,entry:_w().map.isRequired,getEntry:gn()().func.isRequired,isDisabled:gn()().bool,isFieldDuplicate:gn()().func,isFieldHidden:gn()().func,locale:gn()().string,isParentListCollapsed:gn()().bool};componentDidMount(){gn()().checkPropTypes($E.propTypes,this.props,"prop","Widget")}shouldComponentUpdate(e){return(!this.props.isLoadingAsset||!e.isLoadingAsset)&&(this.wrappedControlShouldComponentUpdate?this.wrappedControlShouldComponentUpdate(e):this.props.value!==e.value||this.props.classNameWrapper!==e.classNameWrapper||this.props.hasActiveStyle!==e.hasActiveStyle)}processInnerControlRef=e=>{if(!e)return;this.innerWrappedControl=e.getWrappedInstance?e.getWrappedInstance():e,this.wrappedControlValid=this.innerWrappedControl.isValid||LE;const{shouldComponentUpdate:t}=this.innerWrappedControl;this.wrappedControlShouldComponentUpdate=t&&t.bind(this.innerWrappedControl),this.props.controlRef&&this.props.controlRef(this)};focus(e){if(this.innerWrappedControl?.focus)this.innerWrappedControl.focus(e);else{const e=document.getElementById(this.props.uniqueFieldId);e?.focus()}const t=document.querySelector(`label[for="${this.props.uniqueFieldId}"]`);t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})}getValidateValue=()=>{let e=this.innerWrappedControl?.getValidateValue?.()||this.props.value;return Wr.List.isList(e)&&(e=e.join(",")),e};validate=(e=!1)=>{const t=this.getValidateValue(),n=this.props.field,r=[],o=[this.validatePresence,this.validatePattern];if(n.get("meta")&&o.push(this.props.validateMetaField),o.forEach(e=>{const o=e(n,t,this.props.t);o.error&&r.push(o.error)}),e)e.error&&r.push(e.error);else{const e=this.validateWrappedControl(n);e.error&&r.push(e.error)}this.props.onValidate(r)};validatePresence=(e,t)=>{const{t:n,parentIds:r}=this.props;return e.get("required",!0)&&NE(t)?{error:{type:jc,parentIds:r,message:n("editor.editorControlPane.widget.required",{fieldLabel:e.get("label",e.get("name"))})}}:{error:!1}};validatePattern=(e,t)=>{const{t:n,parentIds:r}=this.props,o=e.get("pattern",!1);return NE(t)?{error:!1}:o&&!RegExp(o.first()).test(t)?{error:{type:"PATTERN",parentIds:r,message:n("editor.editorControlPane.widget.regexPattern",{fieldLabel:e.get("label",e.get("name")),pattern:o.last()})}}:{error:!1}};validateWrappedControl=e=>{const{t:t,parentIds:n}=this.props;if("function"!=typeof this.wrappedControlValid)throw new Error(Qi`
        this.wrappedControlValid is not a function. Are you sure widget
        "${e.get("widget")}" is registered?
      `);const r=this.wrappedControlValid();return"boolean"==typeof r?{error:!r}:Object.prototype.hasOwnProperty.call(r,"error")?r:r instanceof Promise?(r.then(()=>{this.validate({error:!1})},t=>{const n={type:Fc,message:`${e.get("label",e.get("name"))} - ${t}.`};this.validate({error:n})}),{error:{type:Fc,parentIds:n,message:t("editor.editorControlPane.widget.processing",{fieldLabel:e.get("label",e.get("name"))})}}):{error:!1}};getObjectValue=()=>this.props.value||(0,Wr.Map)();onChangeObject=(e,t,n)=>{const r=this.getObjectValue().set(e.get("name"),t);return this.props.onChange(r,n&&{[this.props.field.get("name")]:n})};setInactiveStyle=()=>{this.props.setInactiveStyle(),this.props.field.has("pattern")&&!NE(this.getValidateValue())&&this.validate()};render(){const{controlComponent:e,entry:t,getEntry:n,collection:r,config:o,field:i,value:a,mediaPaths:s,metadata:l,onChange:c,onValidateObject:u,onOpenMediaLibrary:d,onRemoveMediaControl:f,onPersistMedia:p,onClearMediaControl:h,onAddAsset:g,onRemoveInsertedMedia:m,getAsset:y,classNameWrapper:v,classNameWidget:b,classNameWidgetActive:w,classNameLabel:_,classNameLabelActive:x,setActiveStyle:k,hasActiveStyle:S,editorControl:E,uniqueFieldId:C,resolveWidget:T,widget:P,getEditorComponents:O,query:R,queryHits:A,clearSearch:I,clearFieldErrors:D,isFetching:L,loadEntry:N,fieldsErrors:$,controlRef:M,isEditorComponent:j,isNewEditorComponent:F,parentIds:U,t:q,isDisabled:z,isFieldDuplicate:B,isFieldHidden:H,locale:W,isParentListCollapsed:V}=this.props;return(0,Jt().createElement)(e,{entry:t,getEntry:n,collection:r,config:o,field:i,value:a,mediaPaths:s,metadata:l,onChange:c,onChangeObject:this.onChangeObject,onValidateObject:u,onOpenMediaLibrary:d,onClearMediaControl:h,onRemoveMediaControl:f,onPersistMedia:p,onAddAsset:g,onRemoveInsertedMedia:m,getAsset:y,forID:C,ref:this.processInnerControlRef,validate:this.validate,classNameWrapper:v,classNameWidget:b,classNameWidgetActive:w,classNameLabel:_,classNameLabelActive:x,setActiveStyle:k,setInactiveStyle:()=>this.setInactiveStyle(),hasActiveStyle:S,editorControl:E,resolveWidget:T,widget:P,getEditorComponents:O,getRemarkPlugins:ha,query:R,queryHits:A,clearSearch:I,clearFieldErrors:D,isFetching:L,loadEntry:N,isEditorComponent:j,isNewEditorComponent:F,fieldsErrors:$,controlRef:M,parentIds:U,t:q,isDisabled:z,isFieldDuplicate:B,isFieldHidden:H,locale:W,isParentListCollapsed:V})}}const ME={widget:`\n    display: block;\n    width: 100%;\n    padding: ${Ur.lengths.inputPadding};\n    margin: 0;\n    border: ${Ur.borders.textField};\n    border-radius: ${Ur.lengths.borderRadius};\n    border-top-left-radius: 0;\n    outline: 0;\n    box-shadow: none;\n    background-color: ${Ur.colors.inputBackground};\n    color: #444a57;\n    transition: border-color ${Ur.transitions.main};\n    position: relative;\n    font-size: 15px;\n    line-height: 1.5;\n\n    select& {\n      text-indent: 14px;\n      height: 58px;\n    }\n  `,widgetActive:`\n    border-color: ${Ur.colors.active};\n  `,widgetError:`\n    border-color: ${Ur.colors.errorText};\n  `,disabled:"\n    pointer-events: none;\n    opacity: 0.5;\n  ",hidden:"\n    visibility: hidden;\n  "},jE=ab("div",{target:"ec1nk3l5",label:"ControlContainer"})({name:"gpgisz",styles:"margin-top:16px;&:first-of-type{margin-top:36px;}"}),FE=ab("div",{target:"ec1nk3l4",label:"FieldActions"})({name:"11acjhr",styles:"display:flex;gap:6px;margin-left:auto"}),UE=ab("button",{target:"ec1nk3l3",label:"FieldActionButton"})("border:0;border-radius:",Ur.lengths.borderRadius,";background:",Ur.colors.textFieldBorder,";color:",Ur.colors.controlLabel,";font-size:12px;font-weight:600;padding:3px 8px;cursor:pointer;&:hover,&:focus-visible{background:",Ur.colors.active,";color:",Ur.colors.textLight,";}"),qE=ab("div",{target:"ec1nk3l2",label:"ControlTopbar"})({name:"hvtmtt",styles:"display:flex;justify-content:space-between;gap:20px;align-items:end"}),zE=ab("ul",{target:"ec1nk3l1",label:"ControlErrorsList"})("list-style-type:none;font-size:12px;color:",Ur.colors.errorText,";text-align:right;text-transform:uppercase;font-weight:600;margin:0;padding:2px 0 3px;"),BE=ab("p",{target:"ec1nk3l0",label:"ControlHint"})("margin-bottom:0;padding:6px 0 0;font-size:12px;color:",e=>e.error?Ur.colors.errorText:e.active?Ur.colors.active:Ur.colors.controlLabel,";transition:color ",Ur.transitions.main,";");function HE({field:e,isActive:t,hasErrors:n,uniqueFieldId:r,isFieldOptional:o,t:i}){const a=`${e.get("label",e.get("name"))}`;return bl(Ur.FieldLabel,{isActive:t,hasErrors:n,htmlFor:r,children:o?wl(vl,{children:[a,bl("span",{children:` (${i("editor.editorControl.field.optional")})`})]}):a})}function WE({field:e,collection:t,locale:n,actions:r}){const o={field:e.toJS(),collection:t?.get("name"),locale:n,get entry(){return DE.getCurrentEntry()},applyFieldPatch:DE.applyFieldPatch},i=r.filter(e=>!e.isAvailable||e.isAvailable(o));return 0===i.length?null:bl(FE,{children:i.map(e=>bl(UE,{type:"button",title:e.title||e.label,onClick:()=>e.onClick(o),children:e.label},e.id))})}class VE extends Jt().Component{static propTypes={value:gn()().oneOfType([gn()().node,gn()().object,gn()().string,gn()().bool]),field:_w().map.isRequired,fieldsMetaData:_w().map,fieldsErrors:_w().map,mediaPaths:_w().map.isRequired,boundGetAsset:gn()().func.isRequired,onChange:gn()().func.isRequired,openMediaLibrary:gn()().func.isRequired,addAsset:gn()().func.isRequired,removeInsertedMedia:gn()().func.isRequired,persistMedia:gn()().func.isRequired,onValidate:gn()().func,controlRef:gn()().func,query:gn()().func.isRequired,queryHits:gn()().object,isFetching:gn()().bool,clearSearch:gn()().func.isRequired,clearFieldErrors:gn()().func.isRequired,loadEntry:gn()().func.isRequired,getEntry:gn()().func.isRequired,t:gn()().func.isRequired,isEditorComponent:gn()().bool,isNewEditorComponent:gn()().bool,parentIds:gn()().arrayOf(gn()().string),collection:_w().map.isRequired,isDisabled:gn()().bool,isHidden:gn()().bool,isHighlighted:gn()().bool,fieldActions:gn()().array,isFieldDuplicate:gn()().func,isFieldHidden:gn()().func,locale:gn()().string,isParentListCollapsed:gn()().bool};static defaultProps={parentIds:[]};state={activeLabel:!1};uniqueFieldId=CE()(`${this.props.field.get("name")}-field-`);componentDidMount(){gn()().checkPropTypes(VE.propTypes,this.props,"prop","EditorControl")}isAncestorOfFieldError=()=>{const{fieldsErrors:e}=this.props;return!!(e&&e.size>0)&&Object.values(e.toJS()).some(e=>e.some(e=>e.parentIds&&e.parentIds.includes(this.uniqueFieldId)))};onChange=(e,t)=>{this.props.onChange(this.props.field,e,t),this.props.clearFieldErrors(this.uniqueFieldId)};render(){const{value:e,getEntry:t,collection:n,config:r,field:o,fieldsMetaData:i,fieldsErrors:a,mediaPaths:s,boundGetAsset:l,openMediaLibrary:c,clearMediaControl:u,removeMediaControl:d,addAsset:f,removeInsertedMedia:p,persistMedia:h,onValidate:g,controlRef:m,query:y,queryHits:v,isFetching:b,clearSearch:w,clearFieldErrors:_,loadEntry:x,className:k,isSelected:S,isEditorComponent:E,isNewEditorComponent:C,parentIds:T,isHighlighted:P,fieldActions:O,t:R,validateMetaField:A,isLoadingAsset:I,isDisabled:D,isHidden:L,isFieldDuplicate:N,isFieldHidden:$,locale:M,isParentListCollapsed:j}=this.props,F=o.get("widget"),U=fa(F),q=o.get("name"),z=o.get("hint"),B=!1===o.get("required"),H=g,W=i&&i.get(q),V=a&&a.get(this.uniqueFieldId),K=this.isAncestorOfFieldError(),G=!!V||K;return bl(Zv.ClassNames,{children:({css:i,cx:q})=>wl(jE,{className:k,"aria-label":R("editor.editorControl.field.widgetLabel",{widgetLabel:F}),css:i`
              ${L&&ME.hidden};
              ${P&&`\n                border-radius: ${Ur.lengths.borderRadius};\n                box-shadow: 0 0 0 3px ${Ur.colors.active};\n              `};
              transition: box-shadow ${Ur.transitions.main};
            `,children:[wl(qE,{children:[U.globalStyles&&bl(Zv.Global,{styles:(0,Zv.css)(U.globalStyles,";;label:EditorControl;")}),bl(HE,{field:o,isActive:S||this.state.styleActive,hasErrors:G,uniqueFieldId:this.uniqueFieldId,isFieldOptional:B,t:R}),O?.length>0&&bl(WE,{field:o,collection:n,locale:M,actions:O}),V&&bl(zE,{children:V.map(e=>e.message&&"string"==typeof e.message&&bl("li",{children:e.message},e.message.trim().replace(/[^a-z0-9]+/gi,"-")))})]}),bl($E,{classNameWrapper:q(i`
                  ${ME.widget};
                `,{[i`
                    ${ME.widgetActive};
                  `]:S||this.state.styleActive},{[i`
                    ${ME.widgetError};
                  `]:G},{[i`
                    ${ME.disabled}
                  `]:D}),classNameWidget:i`
                ${ME.widget};
              `,classNameWidgetActive:i`
                ${ME.widgetActive};
              `,classNameLabel:i`
                ${ME.label};
              `,classNameLabelActive:i`
                ${ME.labelActive};
              `,controlComponent:U.control,entry:t(),collection:n,config:r,field:o,uniqueFieldId:this.uniqueFieldId,value:e,mediaPaths:s,metadata:W,onChange:this.onChange,onValidate:g&&nk()(g,this.uniqueFieldId),onOpenMediaLibrary:c,onClearMediaControl:u,onRemoveMediaControl:d,onRemoveInsertedMedia:p,onPersistMedia:h,onAddAsset:f,getAsset:l,hasActiveStyle:S||this.state.styleActive,setActiveStyle:()=>this.setState({styleActive:!0}),setInactiveStyle:()=>this.setState({styleActive:!1}),resolveWidget:fa,widget:U,getEditorComponents:pa,controlRef:m,editorControl:GE,query:y,loadEntry:x,getEntry:t,queryHits:v[this.uniqueFieldId]||[],clearSearch:w,clearFieldErrors:_,isFetching:b,fieldsErrors:a,onValidateObject:H,isEditorComponent:E,isNewEditorComponent:C,parentIds:T,t:R,validateMetaField:A,isDisabled:D,isFieldDuplicate:N,isFieldHidden:$,isLoadingAsset:I,locale:M,isParentListCollapsed:j}),z&&bl(BE,{active:S||this.state.styleActive,error:G,children:bl(TE()(),{remarkPlugins:[PE()()],allowedElements:["a","strong","em","del"],unwrapDisallowed:!0,components:{a:({node:e,...t})=>bl("a",{...t,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit"}})},children:z})})]})})}}const KE={loadEntry:async function(e,t){const n=cm.getState(),{collections:r}=n,o=r.get(e);if(o)return await Vf(n,o,t);throw new Error(`Can't find collection '${e}'`)},validateMetaField:qc()(e=>(t,n,r)=>function(e,t,n,r,o){if(n.get("meta")&&"path"===n.get("name")){if(!r)return op(r,"invalidPath",o);const n=r.split("/").map(sc(e.config.slug)).join("/");if(r.toLocaleLowerCase()!==n)return op(r,"invalidPath",o);const i=Nd(t,(0,Wr.fromJS)({entry:{meta:{path:r}}})),a=i?function(e,t,n){const r=Sp(e,t),o=r&&r.map(n=>kp(e,t,n));return o&&o.find(e=>e?.get("path")===n)}(e.entries,t.get("name"),i):void 0,s=a?.get("path"),l=e.entryDraft?.getIn(["entry","path"]);if(s&&s!==l)return op(r,"pathExists",o)}return{error:!1}}(cm.getState(),e,t,n,r)),getEntry:()=>cm.getState().entryDraft.get("entry"),getBoundedAsset:qc()(e=>(t,n)=>{const r=cm.getState().entryDraft.get("entry");return cm.dispatch(nd({collection:e,entry:r,path:t,field:n}))})},GE=Qn(function(e){const{collections:t,entryDraft:n}=e,r=t.get(n.getIn(["entry","collection"])),o=$g(e.medias);return{mediaPaths:e.mediaLibrary.get("controlMedia"),isFetching:e.search.isFetching,queryHits:e.search.queryHits,config:e.config,collection:r,isLoadingAsset:o,getEntry:KE.getEntry,loadEntry:KE.loadEntry,validateMetaField:KE.validateMetaField(r)}},function(e){return{...(0,Nt().zH)({openMediaLibrary:ku,clearMediaControl:_u,removeMediaControl:xu,removeInsertedMedia:Eu,persistMedia:Ou,addAsset:Xu,query:Dc,clearSearch:Ic,clearFieldErrors:qf},e),boundGetAsset:KE.getBoundedAsset}},function(e,t,n){return{...e,...t,...n,boundGetAsset:t.boundGetAsset(e.collection)}})((0,Ot().Tl)()(VE)),YE=GE,JE=ab("div",{target:"e11hw0lx4",label:"ControlPaneContainer"})({name:"1n0x6o4",styles:"max-width:800px;margin:0 auto;padding-bottom:16px;font-size:16px"}),QE=ab(Ur.StyledDropdownButton,{target:"e11hw0lx3",label:"LocaleButton"})(Ur.buttons.button,";",Ur.buttons.medium,";color:",Ur.colors.controlLabel,";background:",Ur.colors.textFieldBorder,";height:100%;&:after{top:11px;}"),XE=ab("div",{target:"e11hw0lx2",label:"LocaleButtonWrapper"})({name:"zjik7",styles:"display:flex"}),ZE=ab("div",{target:"e11hw0lx1",label:"LocaleRowWrapper"})({name:"zjik7",styles:"display:flex"}),eC=ab(Ur.Dropdown,{target:"e11hw0lx0",label:"StyledDropdown"})({name:"1hfmrg2",styles:"width:max-content;margin-top:20px;margin-bottom:20px;margin-right:20px"});function tC({locales:e,dropdownText:t,onLocaleChange:n}){return bl(eC,{renderButton:()=>bl(XE,{children:bl(QE,{children:t})}),children:e.map(e=>bl(Ur.DropdownItem,{css:(0,Zv.css)(Ur.text.fieldLabel,";;label:LocaleDropdown;"),label:e,onClick:()=>n(e)},e))})}function nC({field:e,entry:t,isTranslatable:n,locale:r}){if(e.get("meta"))return t.getIn(["meta",e.get("name")]);if(n){const n=fh(r);return t.getIn([...n,e.get("name")])}return t.getIn(["data",e.get("name")])}class rC extends Jt().Component{state={selectedLocale:this.props.locale};childRefs={};controlRef=(e,t)=>{if(!t)return;const n=e.get("name");this.childRefs[n]=t};getControlRef=qc()(e=>t=>{this.controlRef(e,t)});handleLocaleChange=e=>{this.setState({selectedLocale:e}),this.props.onLocaleChange(e)};copyFromOtherLocale=({targetLocale:e,t:t})=>n=>{if(!window.confirm(t("editor.editorControlPane.i18n.copyFromLocaleConfirm",{locale:n.toUpperCase()})))return;const{entry:r,collection:o}=this.props,{locales:i,defaultLocale:a}=lh(o),s=this.state.selectedLocale,l=i&&{currentLocale:s,locales:i,defaultLocale:a};this.props.fields.forEach(t=>{if(ch(t,e,n)){const e=nC({field:t,entry:r,locale:n,isTranslatable:n!==a});e&&this.props.onChange(t,e,void 0,l)}})};validate=async()=>{this.props.fields.forEach(e=>{if("hidden"===e.get("widget"))return;const t=this.childRefs[e.get("name")],n=t?.innerWrappedControl?.validate??t?.validate;n&&n()})};switchToDefaultLocale=()=>{if(sh(this.props.collection)){const{defaultLocale:e}=lh(this.props.collection);return new Promise(t=>this.setState({selectedLocale:e},t))}return Promise.resolve()};focus(e){const[t,...n]=e.split("."),r=this.childRefs[t];r?.focus&&r.focus(n.join("."))}getI18n(){const{collection:e}=this.props,{locales:t,defaultLocale:n}=lh(e),r=this.state.selectedLocale;return t&&{currentLocale:r,locales:t,defaultLocale:n}}onChange=(e,t,n)=>{this.props.onChange(e,t,n,this.getI18n())};isFieldDuplicate=e=>{const t=this.state.selectedLocale,{defaultLocale:n}=lh(this.props.collection);return uh(e,t,n)};isFieldHidden=e=>{const t=this.state.selectedLocale,{defaultLocale:n}=lh(this.props.collection);return dh(e,t,n)};render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:o,fieldRevisions:i,fieldHighlights:a,onValidate:s,t:l}=this.props,c=wa();if(!e||!n)return null;if(0===t.size||!0===t.get("partial"))return null;const{locales:u,defaultLocale:d}=lh(e),f=this.state.selectedLocale,p=u&&{currentLocale:f,locales:u,defaultLocale:d};return wl(JE,{children:[u&&wl(ZE,{children:[bl(tC,{locales:u,dropdownText:l("editor.editorControlPane.i18n.writingInLocale",{locale:f.toUpperCase()}),onLocaleChange:this.handleLocaleChange}),bl(tC,{locales:u.filter(e=>e!==f),dropdownText:l("editor.editorControlPane.i18n.copyFromLocale"),onLocaleChange:this.copyFromOtherLocale({targetLocale:f,t:l})})]}),n.filter(e=>"hidden"!==e.get("widget")).map((n,l)=>{const u=ch(n,f,d),h=uh(n,f,d),g=dh(n,f,d),m=i?.get(n.get("name"))??0,y=`${p?`${f}_${l}`:l}_${m}`;return bl(YE,{field:n,value:nC({field:n,entry:t,locale:f,isTranslatable:u}),fieldsMetaData:r,fieldsErrors:o,onChange:this.onChange,onValidate:s,controlRef:this.getControlRef(n),collection:e,isDisabled:h,isHidden:g,isFieldDuplicate:this.isFieldDuplicate,isFieldHidden:this.isFieldHidden,locale:f,isHighlighted:Boolean(a?.get(n.get("name"))),fieldActions:c},y)})]})}}rC.propTypes={collection:_w().map.isRequired,entry:_w().map.isRequired,fields:_w().list.isRequired,fieldsMetaData:_w().map.isRequired,fieldsErrors:_w().map.isRequired,onChange:gn()().func.isRequired,onValidate:gn()().func.isRequired,locale:gn()().string},it();var oC={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},iC={0:8203,1:8204,2:8205,3:65279},aC=new Array(4).fill(String.fromCodePoint(iC[0])).join(""),sC=String.fromCharCode(0);function lC(e){let t=JSON.stringify(e);return`${aC}${Array.from(t).map(e=>{let n=e.charCodeAt(0);if(n>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${t} on character ${e} (${n})`);return Array.from(n.toString(4).padStart(4,"0")).map(e=>String.fromCodePoint(iC[e])).join("")}).join("")}`}var cC=Object.fromEntries(Object.entries(iC).map(e=>e.reverse())),uC=Object.fromEntries(Object.entries(oC).map(e=>e.reverse())),dC=`${Object.values(oC).map(e=>`\\u{${e.toString(16)}}`).join("")}`,fC=new RegExp(`[${dC}]{4,}`,"gu");function pC(e){return Wr.Map.isMap(e)}function hC(e){return e?"types"in e?e.types??[]:"fields"in e?e.fields??[]:"field"in e?e.field?[e.field]:[]:[e]:[]}const gC=new Map;class mC extends Jt().Component{handleClick=e=>{const{previewProps:t,onFieldClick:n}=this.props,r=t?.collection?.getIn(["editor","visualEditing"],!1);if(r)try{const t=function(e){let t=e.match(fC);if(t)return function(e,t=!1){let n=Array.from(e);if(n.length%2!=0)throw new Error("Encoded data has invalid length");if(n.length%4||!e.startsWith(aC))return function(e,t){var n;let r=[];for(let t=.5*e.length;t--;){let n=`${uC[e[2*t].codePointAt(0)]}${uC[e[2*t+1].codePointAt(0)]}`;r.unshift(String.fromCharCode(parseInt(n,16)))}let o=[],i=[r.join("")],a=10;for(;i.length;){let e=i.shift();try{if(o.push(JSON.parse(e)),t)return o}catch(t){if(!a--)throw t;let r=+(null==(n=t.message.match(/\sposition\s(\d+)$/))?void 0:n[1]);if(!r)throw t;i.unshift(e.substring(0,r),e.substring(r))}}return o}(n,t);let r=[];for(let e=.25*n.length;e--;){let t=n.slice(4*e,4*e+4).map(e=>cC[e.codePointAt(0)]).join("");r.unshift(String.fromCharCode(parseInt(t,4)))}if(t){r.shift();let e=r.indexOf(sC);return-1===e&&(e=r.length),[JSON.parse(r.slice(0,e).join(""))]}return r.join("").split(sC).filter(Boolean).map(e=>JSON.parse(e))}(t[0],!0)[0]}(e.target.textContent);t?.decap&&n&&n(t.decap)}catch(e){console.log("Visual editing error:",e)}};renderPreview(){const{previewComponent:e,previewProps:t}=this.props;return bl("div",{onClick:this.handleClick,children:(0,at().isElement)(e)?(0,Jt().cloneElement)(e,t):(0,Jt().createElement)(e,t)})}render(){const{previewProps:e}=this.props,t=e?.collection?.getIn(["editor","visualEditing"],!1),n=!t;return bl(it().rH,{children:e=>{const t=this.renderPreview();return n?bl(SE.ScrollSyncPane,{attachTo:e.document.scrollingElement,children:t}):t}})}}mC.propTypes={previewComponent:gn()().func.isRequired,getEditorComponents:gn()().func,previewProps:gn()().object,onFieldClick:gn()().func};const yC=mC;class vC extends Jt().Component{shouldComponentUpdate(e){return["object","list"].includes(e.field.get("widget"))||this.props.value!==e.value||this.props.fieldsMetaData!==e.fieldsMetaData||this.props.getAsset!==e.getAsset}render(){const{previewComponent:e,...t}=this.props;return(0,Jt().createElement)(e,t)}}vC.propTypes={previewComponent:gn()().func.isRequired,field:_w().map.isRequired,value:gn()().oneOfType([gn()().node,gn()().object,gn()().string,gn()().bool])};const bC=vC;function wC(e){return"hidden"!==e.get("widget")}const _C=ab("div",{target:"e1iji6y40",label:"PreviewContainer"})({name:"9bq7s9",styles:"font-family:Roboto,'Helvetica Neue',HelveticaNeue,Helvetica,Arial,sans-serif"});class xC extends Jt().Component{render(){const{collection:e,fields:t,widgetFor:n}=this.props;return e&&t?bl(_C,{children:t.filter(wC).map(e=>bl("div",{children:n(e.get("name"))},e.get("name")))}):null}}xC.propTypes={collection:_w().map.isRequired,entry:_w().map.isRequired,fields:_w().list.isRequired,getAsset:gn()().func.isRequired,widgetFor:gn()().func.isRequired};const kC=ab(it().Ay,{target:"enus48h0",label:"PreviewPaneFrame"})("width:100%;height:100%;border:none;background:#fff;border-radius:",Ur.lengths.borderRadius,";");class SC extends Jt().Component{getWidget=(e,t,n,r,o=null)=>{const{getAsset:i,entry:a}=r,s=fa(e.get("widget")),l=o?e.get("name")+"_"+o:e.get("name"),c=t&&!s.allowMapValue&&Wr.Map.isMap(t);return s.preview?bl(bC,{previewComponent:s.preview,field:e,getAsset:i,value:c?t.get(e.get("name")):t,entry:a,fieldsMetaData:n,resolveWidget:fa,getRemarkPlugins:ha,getEditorComponents:pa},l):null};inferredFields={};inferFields(){const e=Zp(this.props.collection,"title"),t=Zp(this.props.collection,"shortTitle"),n=Zp(this.props.collection,"author");this.inferredFields={},e&&(this.inferredFields[e]=kl.title),t&&(this.inferredFields[t]=kl.shortTitle),n&&(this.inferredFields[n]=kl.author)}widgetFor=(e,t=this.props.fields,n=this.props.entry.get("data"),r=this.props.fieldsMetaData)=>{let o=t&&t.find(t=>t.get("name")===e),i=Wr.Map.isMap(n)&&n.get(o.get("name"));o.get("meta")&&(i=this.props.entry.getIn(["meta",o.get("name")]));const a=o.get("fields"),s=o.get("field"),l=r&&r.get(o.get("name"),(0,Wr.Map)());a&&(o=o.set("fields",this.getNestedWidgets(a,i,l))),s&&(o=o.set("field",this.getSingleNested(s,i,l)));const c=Object.entries(this.inferredFields).filter(([e])=>Jp(this.props.collection,e)===o).map(([,e])=>e)[0];return c?i=c.defaultPreview(i):i&&-1!==["string","text","number"].indexOf(o.get("widget"))&&i.toString().length<50&&(i=wl("div",{children:[wl("strong",{children:[o.get("label",o.get("name")),":"]})," ",i]})),i?this.getWidget(o,i,l,this.props):null};getNestedWidgets=(e,t,n)=>Wr.List.isList(t)?t.map(t=>this.widgetsForNestedFields(e,t,n)):this.widgetsForNestedFields(e,t,n);getSingleNested=(e,t,n)=>Wr.List.isList(t)?t.map((t,r)=>this.getWidget(e,t,n.get(e.get("name")),this.props,r)):this.getWidget(e,t,n.get(e.get("name")),this.props);widgetsForNestedFields=(e,t,n)=>e.map(r=>this.widgetFor(r.get("name"),e,t,n));widgetsFor=e=>{const{fields:t,entry:n,fieldsMetaData:r}=this.props,o=t.find(t=>t.get("name")===e),i=o&&o.get("fields"),a=o&&o.get("types"),s=n.getIn(["data",o.get("name")]),l=r.get(o.get("name"),(0,Wr.Map)());return Wr.List.isList(s)&&a?s.map(e=>{const t=a.find(t=>t.get("name")===e.get("type")),n=t&&t.get("fields"),r=n&&(0,Wr.Map)(n.map((t,n)=>[t.get("name"),bl("div",{children:this.getWidget(t,e,l.get(t.get("name")),this.props)},n)]));return(0,Wr.Map)({data:e,widgets:r})}):Wr.List.isList(s)?s.map(e=>{const t=i&&(0,Wr.Map)(i.map((t,n)=>[t.get("name"),bl("div",{children:this.getWidget(t,e,l.get(t.get("name")),this.props)},n)]));return(0,Wr.Map)({data:e,widgets:t})}):(0,Wr.Map)({data:s,widgets:i&&(0,Wr.Map)(i.map(e=>[e.get("name"),this.getWidget(e,s,l.get(e.get("name")),this.props)]))})};getCollection=async(e,t)=>{const{state:n}=this.props,r=n.collections.get(e);if(void 0===t)return(await $f(n,r)).map(({data:e,slug:t,path:n})=>(0,Wr.Map)({data:e,slug:t,path:n}));const{data:o,slug:i,path:a}=await Vf(n,r,t);return(0,Wr.Map)({data:o,slug:i,path:a})};render(){const{entry:e,collection:t,config:n}=this.props;if(!e||!e.get("data"))return null;const r=la(function(e,t){return Fp[e.get("type")].templateName(e,t)}(t,e.get("slug")))||xC;this.inferFields();const o=t.getIn(["editor","visualEditing"],!1)?e.set("data",function e(t,n,r=""){if(gC.get(r)===t)return t;const o={fields:n,path:r,visit:e};let i;return i=function(e){return Wr.List.isList(e)}(t)?function(e,t){let n=e;for(let e=0;e<n.size;e++){const r=n.get(e);if(pC(r)){const o=r.get("type");if("string"==typeof o){const i=t.fields.find(e=>e.name===o),a=t.visit(r,hC(i),`${t.path}.${e}`);n=n.set(e,a)}else{const o=t.visit(r,t.fields,`${t.path}.${e}`);n=n.set(e,o)}}else{const o=t.fields[0],i=t.visit(r,o?[o]:[],`${t.path}.${e}`);i!==r&&(n=n.set(e,i))}}return n}(t,o):pC(t)?function(e,t){let n=e;for(const[e,r]of n.entrySeq().toArray()){const o=t.fields.find(t=>t.name===e);if(o){const i=hC(o),a=t.visit(r,i,t.path?`${t.path}.${e}`:e);a!==r&&(n=n.set(e,a))}}return n}(t,o):"string"==typeof t?function(e,{fields:t,path:n}){const[r]=t;if(!r)return e;const{widget:o}=r;if("string"===o||"text"===o)return"visualEditing"in r&&!1===r.visualEditing?e:e+lC({decap:n});if("markdown"===o){const t=lC({decap:n});return e.split(/(\n\n+)/).map(e=>e.trim()?e+t:e).join("")}return e}(t,o):t,gC.set(r,i),i}(e.get("data"),this.props.fields.toJS())):e,i={...this.props,entry:o,widgetFor:(e,t,n=o.get("data"),r)=>this.widgetFor(e,t,n,r),widgetsFor:this.widgetsFor,getCollection:this.getCollection,getEditorComponents:pa},a=sa().map((e,t)=>e.raw?bl("style",{children:e.value},t):bl("link",{href:e.value,type:"text/css",rel:"stylesheet"},t));return t||bl(kC,{id:"preview-pane",head:a}),bl(gb,{config:n,children:bl(kC,{id:"preview-pane",head:a,initialContent:'\n<!DOCTYPE html>\n<html>\n  <head><base target="_blank"/></head>\n  <body><div></div></body>\n</html>\n',children:bl(it().rH,{children:({document:e,window:t})=>bl(yC,{previewComponent:r,previewProps:{...i,document:e,window:t},onFieldClick:this.props.onFieldClick})})})})}}SC.propTypes={collection:_w().map.isRequired,fields:_w().list.isRequired,entry:_w().map.isRequired,fieldsMetaData:_w().map.isRequired,getAsset:gn()().func.isRequired,onFieldClick:gn()().func};const EC=Qn(function(e){return{isLoadingAsset:$g(e.medias),config:e.config,state:e}},function(e){return{boundGetAsset:(t,n)=>td(e,t,n)}},function(e,t,n){return{...e,...t,...n,getAsset:t.boundGetAsset(n.collection,n.entry)}})(SC),CC=ab("div",{target:"ee0v20j13",label:"NoteCard"})("background-color:",e=>e.resolved?Ur.colors.inputBackground:"white",";border:1px solid ",e=>(e.resolved,Ur.colors.textFieldBorder),";border-radius:4px;margin-bottom:8px;padding:12px 18px;transition:all ",Ur.transitions.main,";opacity:",e=>e.resolved?.7:1,";&:hover{border-color:",Ur.colors.active,";box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}"),TC=ab("div",{target:"ee0v20j12",label:"NoteHeader"})({name:"rcj3va",styles:"display:flex;justify-content:space-between;align-items:center;margin-bottom:8px"}),PC=ab("span",{target:"ee0v20j11",label:"NoteAuthor"})("font-size:12px;color:",Ur.colors.controlLabel,";font-weight:500;"),OC=ab("div",{target:"ee0v20j10",label:"AuthorSection"})({name:"1yydxi7",styles:"display:flex;align-items:center;gap:8px"}),RC=ab("div",{target:"ee0v20j9",label:"Avatar"})("width:24px;height:24px;border-radius:50%;overflow:hidden;background-color:",Ur.colors.inputBackground,";display:flex;align-items:center;justify-content:center;flex-shrink:0;"),AC=ab("img",{target:"ee0v20j8",label:"AvatarImage"})({name:"4uwt2b",styles:"width:100%;height:100%;object-fit:cover"}),IC=ab("span",{target:"ee0v20j7",label:"AvatarInitials"})("font-size:10px;font-weight:600;color:",Ur.colors.controlLabel,";text-transform:uppercase;"),DC=ab("span",{target:"ee0v20j6",label:"NoteTimestamp"})("font-size:11px;color:",Ur.colors.controlLabel,";"),LC=ab("div",{target:"ee0v20j5",label:"NoteContent"})({name:"5bhc30",styles:"margin-bottom:8px"}),NC=ab("p",{target:"ee0v20j4",label:"NoteText"})("margin:0;font-size:14px;line-height:1.4;color:",Ur.colors.text,";white-space:pre-wrap;word-wrap:break-word;"),$C=ab("textarea",{target:"ee0v20j3",label:"EditableText"})("width:100%;min-height:60px;padding:8px;border:1px solid ",Ur.colors.active,";border-radius:3px;font-size:14px;font-family:inherit;line-height:1.4;resize:vertical;outline:none;&:focus{border-color:",Ur.colors.active,";box-shadow:0 0 0 2px rgba(70, 151, 218, 0.1);}"),MC=ab("div",{target:"ee0v20j2",label:"NoteActions"})({name:"197tvr9",styles:"display:flex;gap:8px;align-items:center"}),jC=ab("button",{target:"ee0v20j1",label:"ActionButton"})("background:none;border:none;color:",Ur.colors.controlLabel,";font-size:12px;cursor:pointer;padding:4px 8px;border-radius:3px;transition:all ",Ur.transitions.main,";&:hover{background-color:",Ur.colors.inputBackground,";color:",e=>e.danger?Ur.colors.errorText:Ur.colors.active,";}&:disabled{opacity:0.5;cursor:not-allowed;}"),FC=ab("span",{target:"ee0v20j0",label:"ResolvedBadge"})("background-color:",Ur.colors.successText,";color:white;font-size:10px;padding:2px 6px;border-radius:10px;font-weight:500;text-transform:uppercase;");class UC extends Jt().Component{static propTypes={note:_w().map.isRequired,onUpdate:gn()().func.isRequired,onDelete:gn()().func.isRequired,onToggleResolution:gn()().func.isRequired,user:gn()().object,t:gn()().func.isRequired};state={isEditing:!1,editContent:""};isCurrentUserAuthor=()=>{const{note:e,user:t}=this.props,n=e.get("isOwn");if(void 0!==n)return n;const r=t?.login||t?.name||"Anonymous";return e.get("author")===r};getAuthorInitials=e=>e.split(" ").map(e=>e.charAt(0)).join("").slice(0,2);formatTimestamp=e=>new Date(e).toLocaleString(void 0,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"});handleEditStart=()=>{this.setState({isEditing:!0,editContent:this.props.note.get("content")})};handleEditCancel=()=>{this.setState({isEditing:!1,editContent:""})};handleEditSave=()=>{const{note:e,onUpdate:t}=this.props,{editContent:n}=this.state,r=n.trim();r&&r!==e.get("content")&&t(e.get("id"),{content:r}),this.setState({isEditing:!1,editContent:""})};handleEditKeyDown=e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)?(e.preventDefault(),this.handleEditSave()):"Escape"===e.key&&(e.preventDefault(),this.handleEditCancel())};handleDelete=()=>{const{note:e,onDelete:t,t:n}=this.props;window.confirm(n("editor.editorNotesPane.confirmDelete"))&&t(e.get("id"))};handleToggleResolution=()=>{const{note:e,onToggleResolution:t}=this.props;t(e.get("id"))};render(){const{note:e,t:t}=this.props,{isEditing:n,editContent:r}=this.state,o=e.get("resolved");return wl(CC,{resolved:o,children:[wl(TC,{children:[wl(OC,{children:[wl(RC,{children:[e.get("avatarUrl")?bl(AC,{src:e.get("avatarUrl"),alt:`${e.get("author")} avatar`,onError:e=>{e.target.style.display="none",e.target.nextSibling.style.display="flex"}}):null,bl(IC,{style:{display:e.get("avatarUrl")?"none":"flex"},children:this.getAuthorInitials(e.get("author"))})]}),bl(PC,{children:e.get("author")})]}),wl("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[o&&bl(FC,{children:"resolved"}),bl(DC,{children:this.formatTimestamp(e.get("timestamp"))})]})]}),bl(LC,{children:n?bl($C,{value:r,onChange:e=>this.setState({editContent:e.target.value}),onKeyDown:this.handleEditKeyDown,placeholder:t("editor.editorNotesPane.editPlaceholder"),autoFocus:!0}):bl(NC,{children:e.get("content")})}),bl(MC,{children:wl(vl,n?{children:[bl(jC,{onClick:this.handleEditSave,children:t("editor.editorNotesPane.save")}),bl(jC,{onClick:this.handleEditCancel,children:t("editor.editorNotesPane.cancel")})]}:{children:[!o&&bl(jC,{onClick:this.handleEditStart,disabled:!this.isCurrentUserAuthor(),children:t("editor.editorNotesPane.edit")}),bl(jC,{onClick:this.handleToggleResolution,disabled:!this.isCurrentUserAuthor(),children:t(o?"editor.editorNotesPane.unresolve":"editor.editorNotesPane.resolve")}),bl(jC,{onClick:this.handleDelete,danger:!0,disabled:!this.isCurrentUserAuthor(),children:t("editor.editorNotesPane.delete")})]})})]})}}const qC=UC,zC=ab("div",{target:"etcnkr60",label:"ListContainer"})({name:"1yrfwjn",styles:"flex:1;overflow-y:auto;padding:8px 30px"});function BC({notes:e,onUpdate:t,onDelete:n,onToggleResolution:r,user:o,t:i}){const a=e.sort((e,t)=>e.get("resolved")!==t.get("resolved")?e.get("resolved")?1:-1:new Date(t.get("timestamp"))-new Date(e.get("timestamp")));return bl(zC,{children:a.map(e=>bl(qC,{note:e,onUpdate:t,onDelete:n,onToggleResolution:r,user:o,t:i},e.get("id")))})}BC.propTypes={notes:_w().list.isRequired,onUpdate:gn()().func.isRequired,onDelete:gn()().func.isRequired,onToggleResolution:gn()().func.isRequired,user:gn()().object,t:gn()().func.isRequired};const HC=BC,WC=ab("div",{target:"e7u4zx84",label:"FormContainer"})("padding:16px 28px;border-top:1px solid ",Ur.colors.textFieldBorder,";background-color:",Ur.colors.inputBackground,";"),VC=ab("textarea",{target:"e7u4zx83",label:"TextArea"})("width:100%;min-height:80px;padding:12px;border:1px solid ",Ur.colors.textFieldBorder,";border-radius:4px;font-size:14px;font-family:inherit;line-height:1.4;resize:vertical;outline:none;transition:border-color ",Ur.transitions.main,";&:focus{border-color:",Ur.colors.active,";box-shadow:0 0 0 2px ",Ur.colors.activeBackground,";}&::placeholder{color:",Ur.colors.controlLabel,";}"),KC=ab("div",{target:"e7u4zx82",label:"FormActions"})({name:"1b5ywd4",styles:"display:flex;justify-content:space-between;align-items:center;margin-top:8px"}),GC=ab("button",{target:"e7u4zx81",label:"AddButton"})("background-color:",Ur.colors.active,";color:",Ur.colors.textLight,";border:none;padding:8px 16px;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:all ",Ur.transitions.main,";&:hover:not(:disabled){background-color:",Ur.colors.statusReadyText,";}&:disabled{opacity:0.5;cursor:not-allowed;}"),YC=ab("p",{target:"e7u4zx80",label:"Hint"})("font-size:12px;color:",Ur.colors.controlLabel,";margin:4px 0 0;font-style:italic;");class JC extends Jt().Component{static propTypes={onAdd:gn()().func.isRequired,t:gn()().func.isRequired};state={content:"",isFocused:!1};handleContentChange=e=>{const t=e.target.value;this.setState({content:t})};handleSubmit=e=>{e.preventDefault();const{content:t}=this.state,n=t.trim();n&&(this.props.onAdd(n),this.setState({content:"",isFocused:!1}))};handleKeyDown=e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),this.handleSubmit(e))};handleFocus=()=>{this.setState({isFocused:!0})};handleBlur=e=>{const{relatedTarget:t}=e;t&&"submit"===t.type||this.state.content.trim()||this.setState({isFocused:!1})};render(){const{t:e}=this.props,{content:t}=this.state,n=t.trim().length>0;return bl(WC,{children:wl("form",{onSubmit:this.handleSubmit,children:[bl(VC,{value:t,onChange:this.handleContentChange,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,placeholder:e("editor.editorNotesPane.addPlaceholder"),rows:"4"}),bl(KC,{children:bl(GC,{type:"submit",disabled:!n,children:e("editor.editorNotesPane.addNote")})}),bl(YC,{children:e("editor.editorNotesPane.shortcut")})]})})}}const QC=JC,XC=ab("div",{target:"e1fzfvs010",label:"NotesContainer"})("height:100%;display:flex;flex-direction:column;background-color:",Ur.colors.background,";border-left:1px solid ",Ur.colors.textFieldBorder,";"),ZC=ab("div",{target:"e1fzfvs09",label:"NotesHeader"})("padding:16px 24px;border-bottom:1px solid ",Ur.colors.textFieldBorder,";background-color:",Ur.colors.inputBackground,";display:flex;align-items:center;min-height:60px;"),eT=ab("div",{target:"e1fzfvs08",label:"NotesTitleGroup"})({name:"1yydxi7",styles:"display:flex;align-items:center;gap:8px"}),tT=ab("h3",{target:"e1fzfvs07",label:"NotesTitle"})("margin:0;font-size:16px;font-weight:600;color:",Ur.colors.text,";"),nT=ab("span",{target:"e1fzfvs06",label:"NotesCount"})("background-color:",Ur.colors.controlLabel,";color:white;border-radius:12px;padding:2px 8px;font-size:12px;font-weight:500;"),rT=ab("a",{target:"e1fzfvs05",label:"SourceLink"})("color:",Ur.colors.controlLabel,";text-decoration:none;font-size:14px;display:flex;align-items:center;gap:6px;&:hover{color:",Ur.colors.text,";text-decoration:underline;}"),oT=ab(Ur.Icon,{target:"e1fzfvs04",label:"SourceIcon"})({name:"40intd",styles:"width:16px;height:16px;color:currentColor"}),iT=ab("div",{target:"e1fzfvs03",label:"NotesContent"})({name:"xt6tct",styles:"flex:1;display:flex;flex-direction:column;overflow:hidden"}),aT=ab("div",{target:"e1fzfvs02",label:"EmptyState"})("flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:40px 20px;color:",Ur.colors.controlLabel,";text-align:center;"),sT=ab("div",{target:"e1fzfvs01",label:"EmptyStateIcon"})({name:"wv8os8",styles:"font-size:48px;margin-bottom:16px;opacity:0.5"}),lT=ab("p",{target:"e1fzfvs00",label:"EmptyStateText"})({name:"ggbbmu",styles:"font-size:14px;margin:0;line-height:1.4"}),cT={github:{text:"View in GitHub",iconType:"github"},gitlab:{text:"View in GitLab",iconType:"gitlab"}};cT["turbo-github"]=cT.github,cT["turbo-gitlab"]=cT.gitlab;class uT extends Jt().Component{static propTypes={notes:_w().list,onChange:gn()().func.isRequired,entry:_w().map.isRequired,collection:_w().map.isRequired,user:gn()().object,t:gn()().func,sourceUrl:gn()().string};static defaultProps={notes:(0,Wr.List)(),t:e=>e};handleAddNote=e=>{const{onChange:t,user:n}=this.props;t("ADD_NOTE",{content:e.trim(),author:n?.login||n?.name||"Anonymous",resolved:!1})};handleUpdateNote=(e,t)=>{const{onChange:n}=this.props;n("UPDATE_NOTE",{id:e,updates:t})};handleDeleteNote=e=>{const{onChange:t}=this.props;t("DELETE_NOTE",{id:e})};handleToggleNoteResolution=e=>{const{notes:t}=this.props,n=(t&&void 0!==t.size?t:(0,Wr.List)(t||[])).find(t=>t.get("id")===e),r=!!n&&n.get("resolved");this.handleUpdateNote(e,{resolved:!r})};render(){const{notes:e,user:t,t:n}=this.props,r=e&&void 0!==e.size?e:(0,Wr.List)(e||[]),o=r.size,i=r.filter(e=>!e.get("resolved")).size,a=o>0?r.first()?.get("issueUrl"):null,s=a?function(e,t){if(cT[t])return cT[t];let n;try{n=new URL(e).hostname.toLowerCase()}catch{return{text:"View source",iconType:"link"}}function r(e){return n===e||n.endsWith(`.${e}`)}return r("github.com")?cT.github:r("gitlab.com")?cT.gitlab:{text:"View source",iconType:"link"}}(a,t?.backendName):null;return wl(XC,{children:[bl(ZC,{children:wl(eT,{children:[bl(tT,{children:n("editor.editorNotesPane.title")}),o>0&&bl(nT,{children:i>0?i:o}),s&&wl(rT,{href:a,target:"_blank",rel:"noopener noreferrer",children:[bl("span",{children:s.text}),bl(oT,{type:s.iconType})]})]})}),wl(iT,{children:[0===o?wl(aT,{children:[bl(sT,{children:"📝"}),bl(lT,{children:n("editor.editorNotesPane.emptyState")})]}):bl(HC,{notes:r,onUpdate:this.handleUpdateNote,onDelete:this.handleDeleteNote,onToggleResolution:this.handleToggleNoteResolution,user:this.props.user,t:n}),bl(QC,{onAdd:this.handleAddNote,t:n})]})]})}}const dT=uT;function fT(e){if(!e)return;const t=e.name||e.login||e.email;return t?{label:t,...e.email&&e.email!==t&&{email:e.email}}:void 0}const pT={noOverflow:{name:"1ctb18k-noOverflow",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis;label:noOverflow;"},buttonMargin:{name:"bx8mhy-buttonMargin",styles:"margin:0 10px;label:buttonMargin;"},toolbarSection:(0,Zv.css)("height:100%;display:flex;align-items:center;border:0 solid ",Ur.colors.textFieldBorder,";;label:toolbarSection;"),publishedButton:(0,Zv.css)("background-color:",Ur.colorsRaw.tealLight,";color:",Ur.colorsRaw.tealDark,";;label:publishedButton;")},hT=ab("div",{target:"e1d2l9mo26",label:"TooltipText"})({name:"1ykbu60",styles:"visibility:hidden;width:321px;background-color:#555;color:#fff;text-align:unset;border-radius:6px;padding:5px;position:absolute;z-index:1;top:145%;left:50%;margin-left:-320px;opacity:0;transition:opacity 0.3s"}),gT=ab("div",{target:"e1d2l9mo25",label:"Tooltip"})("position:relative;display:inline-block;&:hover+",hT,"{visibility:visible;opacity:0.9;}"),mT=ab("div",{target:"e1d2l9mo24",label:"TooltipContainer"})({name:"bjn8wh",styles:"position:relative"}),yT=ab(Ur.StyledDropdownButton,{target:"e1d2l9mo23",label:"DropdownButton"})(pT.noOverflow,"@media (max-width: 1200px){padding-left:10px;}"),vT=ab("div",{target:"e1d2l9mo22",label:"ToolbarContainer"})("box-shadow:0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1),0 2px 54px rgba(0, 0, 0, 0.1);position:absolute;top:0;left:0;width:100%;min-width:800px;z-index:",Ur.zIndex.zIndex300,";background-color:#fff;height:66px;display:flex;justify-content:space-between;"),bT=ab("div",{target:"e1d2l9mo21",label:"ToolbarSectionMain"})(pT.toolbarSection,";flex:10;display:flex;justify-content:space-between;padding:0 10px;"),wT=ab("div",{target:"e1d2l9mo20",label:"ToolbarSubSectionFirst"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),_T=ab(wT,{target:"e1d2l9mo19",label:"ToolbarSubSectionLast"})({name:"1f60if8",styles:"justify-content:flex-end"}),xT=ab(hx,{target:"e1d2l9mo18",label:"ToolbarSectionBackLink"})(pT.toolbarSection,";border-right-width:1px;font-weight:normal;padding:0 20px;&:hover,&:focus{background-color:#f1f2f4;}"),kT=ab("div",{target:"e1d2l9mo17",label:"ToolbarSectionMeta"})(pT.toolbarSection,";border-left-width:1px;padding:0 7px;"),ST=ab(Ur.Dropdown,{target:"e1d2l9mo16",label:"ToolbarDropdown"})(pT.buttonMargin,";",Ur.Icon,"{color:",Ur.colorsRaw.teal,";}"),ET=ab("div",{target:"e1d2l9mo15",label:"BackArrow"})("color:",Ur.colors.textLead,";font-size:21px;font-weight:600;margin-right:16px;"),CT=ab("div",{target:"e1d2l9mo14",label:"BackCollection"})("color:",Ur.colors.textLead,";font-size:14px;"),TT=ab("div",{target:"e1d2l9mo13",label:"BackStatus"})({name:"j9a02z",styles:"margin-top:6px"}),PT=ab(TT,{target:"e1d2l9mo12",label:"BackStatusUnchanged"})(Ur.components.textBadgeSuccess,";"),OT=ab(TT,{target:"e1d2l9mo11",label:"BackStatusChanged"})(Ur.components.textBadgeDanger,";"),RT=ab("button",{target:"e1d2l9mo10",label:"ToolbarButton"})(Ur.buttons.button,";",Ur.buttons.default,";",pT.buttonMargin,";",pT.noOverflow,";display:block;@media (max-width: 1200px){padding:0 10px;}"),AT=ab(RT,{target:"e1d2l9mo9",label:"DeleteButton"})(Ur.buttons.lightRed,";"),IT=ab(RT,{target:"e1d2l9mo8",label:"SaveButton"})(Ur.buttons.lightBlue,";&[disabled]{",Ur.buttons.disabled,";}"),DT=ab(yT,{target:"e1d2l9mo7",label:"PublishedToolbarButton"})(pT.publishedButton,";"),LT=ab(RT,{target:"e1d2l9mo6",label:"PublishedButton"})(pT.publishedButton,";"),NT=ab(yT,{target:"e1d2l9mo5",label:"PublishButton"})("background-color:",Ur.colorsRaw.teal,";"),$T=ab(yT,{target:"e1d2l9mo4",label:"StatusButton"})("background-color:",Ur.colorsRaw.tealLight,";color:",Ur.colorsRaw.teal,";"),MT=ab("div",{target:"e1d2l9mo3",label:"PreviewButtonContainer"})("margin-right:12px;color:",Ur.colorsRaw.blue,";display:flex;align-items:center;a,",Ur.Icon,"{color:",Ur.colorsRaw.blue,";}",Ur.Icon,"{position:relative;top:1px;}"),jT=ab("button",{target:"e1d2l9mo2",label:"RefreshPreviewButton"})("background:none;border:0;cursor:pointer;color:",Ur.colorsRaw.blue,";span{margin-right:6px;}&:disabled{cursor:default;opacity:0.6;}",Ur.Icon,"{",e=>e.$spinning&&"animation: spin 1s linear infinite;",";}@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}"),FT=jT.withComponent("a",{target:"e1d2l9mo27",label:"PreviewLink"}),UT=ab(Ur.DropdownItem,{target:"e1d2l9mo1",label:"PublishDropDownItem"})({name:"svxjwj",styles:"min-width:initial"}),qT=ab(Ur.DropdownItem,{target:"e1d2l9mo0",label:"StatusDropdownItem"})(Ur.Icon,"{color:",Ur.colors.infoText,";}");class zT extends Jt().Component{static propTypes={isPersisting:gn()().bool,isPublishing:gn()().bool,isUpdatingStatus:gn()().bool,isDeleting:gn()().bool,onPersist:gn()().func.isRequired,onPersistAndNew:gn()().func.isRequired,onPersistAndDuplicate:gn()().func.isRequired,showDelete:gn()().bool.isRequired,onDelete:gn()().func.isRequired,onDeleteUnpublishedChanges:gn()().func.isRequired,onChangeStatus:gn()().func.isRequired,onPublish:gn()().func.isRequired,unPublish:gn()().func.isRequired,onDuplicate:gn()().func.isRequired,onPublishAndNew:gn()().func.isRequired,onPublishAndDuplicate:gn()().func.isRequired,user:gn()().object,hasChanged:gn()().bool,canCreateNewEntry:gn()().bool,displayUrl:gn()().string,collection:_w().map.isRequired,hasWorkflow:gn()().bool,useOpenAuthoring:gn()().bool,hasUnpublishedChanges:gn()().bool,isNewEntry:gn()().bool,isModification:gn()().bool,currentStatus:gn()().string,onLogoutClick:gn()().func.isRequired,deployPreview:gn()().object,loadDeployPreview:gn()().func.isRequired,t:gn()().func.isRequired,editorBackLink:gn()().string.isRequired};componentDidMount(){gn()().checkPropTypes(zT.propTypes,this.props,"prop","EditorToolbar");const{isNewEntry:e,loadDeployPreview:t}=this.props;e||(this._pollController=new AbortController,t({maxAttempts:24,signal:this._pollController.signal}))}componentDidUpdate(e){const{isNewEntry:t,isPersisting:n,loadDeployPreview:r}=this.props;t||!e.isPersisting||n||(this._pollController?.abort(),this._pollController=new AbortController,r({maxAttempts:3,signal:this._pollController.signal}))}componentWillUnmount(){this._pollController?.abort()}renderSimpleControls=()=>{const{collection:e,canCreateNewEntry:t,hasChanged:n,isNewEntry:r,showDelete:o,onDelete:i,t:a}=this.props,s=t??e.get("create");return wl(vl,{children:[r||n?this.renderNewEntrySimplePublishControls({canCreate:s}):this.renderExistingEntrySimplePublishControls({canCreate:s}),bl("div",{children:o?bl(AT,{onClick:i,children:a("editor.editorToolbar.deleteEntry")}):null})]})};renderDeployPreviewControls=e=>{const{deployPreview:t={},loadDeployPreview:n,t:r}=this.props,{url:o,status:i,isFetching:a}=t;if(i)return bl(MT,{children:"SUCCESS"!==i||a?wl(jT,{onClick:n,disabled:a,$spinning:a,children:[bl("span",{children:r("editor.editorToolbar.deployPreviewPendingButtonLabel")}),bl(Ur.Icon,{type:"refresh",size:"xsmall"})]}):wl(FT,{rel:"noopener noreferrer",target:"_blank",href:o,children:[bl("span",{children:e}),bl(Ur.Icon,{type:"new-tab",size:"xsmall"})]})})};renderStatusInfoTooltip=()=>{const{t:e,currentStatus:t}=this.props,n={[Ma.get("DRAFT")]:"statusInfoTooltipDraft",[Ma.get("PENDING_REVIEW")]:"statusInfoTooltipInReview"},r=Object.keys(n).find(e=>e===t);return wl(mT,{children:[bl(gT,{children:bl(Ur.Icon,{type:"info-circle",size:"small",className:"tooltip"})}),r&&bl(hT,{children:e(`editor.editorToolbar.${n[r]}`)})]})};renderWorkflowStatusControls=()=>{const{isUpdatingStatus:e,onChangeStatus:t,currentStatus:n,t:r,useOpenAuthoring:o}=this.props,i={[Ma.get("DRAFT")]:r("editor.editorToolbar.draft"),[Ma.get("PENDING_REVIEW")]:r("editor.editorToolbar.inReview"),[Ma.get("PENDING_PUBLISH")]:r("editor.editorToolbar.ready")},a=e?r("editor.editorToolbar.updating"):r("editor.editorToolbar.status",{status:i[n]});return wl(vl,{children:[wl(ST,{dropdownTopOverlap:"40px",dropdownWidth:"max-content",renderButton:()=>bl($T,{children:a}),children:[bl(qT,{label:r("editor.editorToolbar.draft"),onClick:()=>t("DRAFT"),icon:n===Ma.get("DRAFT")?"check":null}),bl(qT,{label:r("editor.editorToolbar.inReview"),onClick:()=>t("PENDING_REVIEW"),icon:n===Ma.get("PENDING_REVIEW")?"check":null}),o?"":bl(qT,{label:r("editor.editorToolbar.ready"),onClick:()=>t("PENDING_PUBLISH"),icon:n===Ma.get("PENDING_PUBLISH")?"check":null})]}),o&&this.renderStatusInfoTooltip()]})};renderNewEntryWorkflowPublishControls=({canCreate:e,canPublish:t})=>{const{isPublishing:n,onPublish:r,onPublishAndNew:o,onPublishAndDuplicate:i,t:a}=this.props;return t?wl(ST,{dropdownTopOverlap:"40px",dropdownWidth:"max-content",renderButton:()=>bl(NT,{children:a(n?"editor.editorToolbar.publishing":"editor.editorToolbar.publish")}),children:[bl(UT,{label:a("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:r}),e?wl(vl,{children:[bl(UT,{label:a("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:o}),bl(UT,{label:a("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:i})]}):null]}):""};renderExistingEntryWorkflowPublishControls=({canCreate:e,canPublish:t,canDelete:n})=>{const{unPublish:r,onDuplicate:o,isPersisting:i,t:a}=this.props;return t||e?wl(ST,{dropdownTopOverlap:"40px",dropdownWidth:"max-content",renderButton:()=>bl(DT,{children:a(i?"editor.editorToolbar.unpublishing":"editor.editorToolbar.published")}),children:[n&&t&&bl(Ur.DropdownItem,{label:a("editor.editorToolbar.unpublish"),icon:"arrow",iconDirection:"right",onClick:r}),e&&bl(Ur.DropdownItem,{label:a("editor.editorToolbar.duplicate"),icon:"add",onClick:o})]},"td-publish-create"):""};renderExistingEntrySimplePublishControls=({canCreate:e})=>{const{onDuplicate:t,t:n}=this.props;return e?bl(ST,{dropdownTopOverlap:"40px",dropdownWidth:"max-content",renderButton:()=>bl(DT,{children:n("editor.editorToolbar.published")}),children:bl(Ur.DropdownItem,{label:n("editor.editorToolbar.duplicate"),icon:"add",onClick:t})}):bl(LT,{children:n("editor.editorToolbar.published")})};renderNewEntrySimplePublishControls=({canCreate:e})=>{const{onPersist:t,onPersistAndNew:n,onPersistAndDuplicate:r,isPersisting:o,t:i}=this.props;return bl("div",{children:wl(ST,{dropdownTopOverlap:"40px",dropdownWidth:"max-content",renderButton:()=>bl(NT,{children:i(o?"editor.editorToolbar.publishing":"editor.editorToolbar.publish")}),children:[bl(Ur.DropdownItem,{label:i("editor.editorToolbar.publishNow"),icon:"arrow",iconDirection:"right",onClick:t}),e?wl(vl,{children:[bl(Ur.DropdownItem,{label:i("editor.editorToolbar.publishAndCreateNew"),icon:"add",onClick:n}),bl(Ur.DropdownItem,{label:i("editor.editorToolbar.publishAndDuplicate"),icon:"add",onClick:r})]}):null]})})};renderSimpleDeployPreviewControls=()=>{const{hasChanged:e,isNewEntry:t,t:n}=this.props;if(!t&&!e)return this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))};renderWorkflowControls=()=>{const{onPersist:e,onDelete:t,onDeleteUnpublishedChanges:n,showDelete:r,hasChanged:o,hasUnpublishedChanges:i,useOpenAuthoring:a,isPersisting:s,isDeleting:l,isNewEntry:c,isModification:u,currentStatus:d,collection:f,canCreateNewEntry:p,t:h}=this.props,g=p??f.get("create"),m=f.get("publish")&&!a,y=f.get("delete",!0),v=i&&u&&h("editor.editorToolbar.deleteUnpublishedChanges")||i&&(c||!u)&&h("editor.editorToolbar.deleteUnpublishedEntry")||!i&&!u&&h("editor.editorToolbar.deletePublishedEntry");return[bl(IT,{disabled:!o,onClick:()=>o&&e(),children:h(s?"editor.editorToolbar.saving":"editor.editorToolbar.save")},"save-button"),d?[wl(Jt().Fragment,{children:[this.renderWorkflowStatusControls(),!o&&this.renderNewEntryWorkflowPublishControls({canCreate:g,canPublish:m})]},"workflow-status-controls")]:!c&&bl(Jt().Fragment,{children:this.renderExistingEntryWorkflowPublishControls({canCreate:g,canPublish:m,canDelete:y})},"existing-entry-workflow-publish-controls"),r&&!a||i||u?bl(AT,{onClick:i?n:t,children:l?h("editor.editorToolbar.deleting"):v},"delete-button"):null]};renderWorkflowDeployPreviewControls=()=>{const{currentStatus:e,isNewEntry:t,t:n}=this.props;return e?this.renderDeployPreviewControls(n("editor.editorToolbar.deployPreviewButtonLabel")):t?void 0:this.renderDeployPreviewControls(n("editor.editorToolbar.deployButtonLabel"))};render(){const{user:e,hasChanged:t,displayUrl:n,collection:r,hasWorkflow:o,onLogoutClick:i,t:a,editorBackLink:s}=this.props;return wl(vT,{children:[wl(xT,{to:s,children:[bl(ET,{children:"←"}),wl("div",{children:[bl(CT,{children:a("editor.editorToolbar.backCollection",{collectionLabel:r.get("label")})}),t?bl(OT,{children:a("editor.editorToolbar.unsavedChanges")}):bl(PT,{children:a("editor.editorToolbar.changesSaved")})]})]}),wl(bT,{children:[bl(wT,{children:o?this.renderWorkflowControls():this.renderSimpleControls()}),bl(_T,{children:o?this.renderWorkflowDeployPreviewControls():this.renderSimpleDeployPreviewControls()})]}),bl(kT,{children:bl(bw,{displayUrl:n,imageUrl:e?.avatar_url,identity:fT(e),onLogoutClick:i})})]})}}const BT=(0,Ot().Tl)()(zT),HT="cms.scroll-sync-enabled",WT="cms.split-pane-position",VT="cms.right-pane",KT=["i18n","notes","preview"],GT="none";function YT(){return localStorage.getItem(VT)||KT[0]}const JT={splitPane:(0,Zv.css)(Ur.components.card,";border-radius:0;height:100%;;label:splitPane;"),pane:{name:"1yvxf4n-pane",styles:"height:100%;overflow-y:auto;label:pane;"}},QT=ab(Ur.IconButton,{target:"e1nx103k8",label:"EditorToggle"})({name:"cn3xcj",styles:"margin-bottom:12px"});function XT(){return bl(Zv.Global,{styles:(0,Zv.css)(".Resizer.vertical{width:2px;cursor:col-resize;position:relative;background:none;&:before{content:'';width:2px;height:100%;position:relative;background-color:",Ur.colors.textFieldBorder,";display:block;z-index:10;transition:background-color ",Ur.transitions.main,";}&:hover,&:active{&:before{width:4px;left:-1px;background-color:",Ur.colorsRaw.blue,";}}};label:ReactSplitPaneGlobalStyles;")})}const ZT=ab(kE,{target:"e1nx103k7",label:"StyledSplitPane"})(JT.splitPane,";.Pane{height:100%;}"),eP=ab("div",{target:"e1nx103k6",label:"NoPreviewContainer"})(JT.splitPane,";"),tP=ab("div",{target:"e1nx103k5",label:"EditorContainer"})("width:100%;min-width:800px;height:100%;position:absolute;top:0;left:0;overflow:hidden;padding-top:66px;background-color:",Ur.colors.background,";"),nP=ab("div",{target:"e1nx103k4",label:"Editor"})({name:"yd3x82",styles:"height:100%;margin:0 auto;position:relative"}),rP=ab("div",{target:"e1nx103k3",label:"PreviewPaneContainer"})("height:100%;pointer-events:",e=>e.blockEntry?"none":"auto",";overflow-y:",e=>e.overFlow?"auto":"hidden",";"),oP=ab(rP,{target:"e1nx103k2",label:"ControlPaneContainer"})({name:"b2tic3",styles:"padding:0 16px;position:relative;overflow-x:hidden"}),iP=ab("div",{target:"e1nx103k1",label:"NotesPaneContainer"})("height:100%;pointer-events:",e=>e.blockEntry?"none":"auto",";overflow:hidden;"),aP=ab("div",{target:"e1nx103k0",label:"ViewControls"})("position:absolute;top:10px;right:10px;z-index:",Ur.zIndex.zIndex299,";");function sP({rightPane:e,editor:t,editorWithEditor:n,editorWithPreview:r,editorWithNotes:o}){switch(e){case"i18n":return n;case"notes":return o;case"preview":return r;default:return bl(eP,{children:t})}}class lP extends Jt().Component{state={showEventBlocker:!1,rightPane:YT(),scrollSyncEnabled:"false"!==localStorage.getItem(HT)};handleFieldClick=e=>{this.controlPaneRef?.focus(e)};handleSplitPaneDragStart=()=>{this.setState({showEventBlocker:!0})};handleSplitPaneDragFinished=()=>{this.setState({showEventBlocker:!1})};handleOnPersist=async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPersist({createNew:t,duplicate:n})};handleOnPublish=async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e;await this.controlPaneRef.switchToDefaultLocale(),this.controlPaneRef.validate(),this.props.onPublish({createNew:t,duplicate:n})};handleTogglePane=(e,t)=>{const n=t===e?GT:e;this.setState({rightPane:n}),localStorage.setItem(VT,n)};handleNotesChange=(e,t)=>{this.props.onNotesChange(e,t)};handleToggleScrollSync=()=>{const e=!this.state.scrollSyncEnabled;this.setState({scrollSyncEnabled:e}),localStorage.setItem(HT,e)};handleLeftPanelLocaleChange=e=>{this.setState({leftPanelLocale:e})};render(){const{collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:o,fieldRevisions:i,fieldHighlights:a,onChange:s,showDelete:l,onDelete:c,onDeleteUnpublishedChanges:u,onChangeStatus:d,onPublish:f,unPublish:p,onDuplicate:h,onValidate:g,user:m,hasChanged:y,canCreateNewEntry:v,displayUrl:b,hasWorkflow:w,useOpenAuthoring:_,hasUnpublishedChanges:x,isNewEntry:k,isModification:S,isPublished:E,currentStatus:C,onLogoutClick:T,loadDeployPreview:P,deployPreview:O,draftKey:R,editorBackLink:A,t:I}=this.props,{scrollSyncEnabled:D,showEventBlocker:L}=this.state,N=function(e,t){if(e.get("type")===za){const n=qp(e,t.get("slug")),r=n?.getIn(["editor","preview"]);if(null!=r)return r}return e.getIn(["editor","preview"],!0)}(e,t),$=function(e,t,n,r,o){if(n||!o)return!1;if(e.get("type")===za){const n=qp(e,t.get("slug")),r=n?.getIn(["editor","notes"]);if(null!=r)return r}return e.getIn(["editor","notes"],!1)}(e,t,k,0,w),{locales:M,defaultLocale:j}=lh(this.props.collection),F=sh(e)&&M.length>1,U={collection:e,entry:t,fields:n,fieldsMetaData:r,fieldsErrors:o,fieldRevisions:i,fieldHighlights:a,onChange:s,onValidate:g},q=this.state.leftPanelLocale||M?.[0],z=bl(oP,{overFlow:!0,blockEntry:L,children:bl(rC,{...U,ref:e=>this.controlPaneRef=e,locale:q,t:I,onLocaleChange:this.handleLeftPanelLocaleChange})}),B=bl(oP,{overFlow:!this.state.scrollSyncEnabled,blockEntry:L,children:bl(rC,{...U,locale:M?.[1],t:I})}),H=F?function(e,t,n){return t===n?e:e.set("data",e.getIn([oh,t,"data"]))}(t,q,j):t,W=bl(SE.ScrollSync,{enabled:this.state.scrollSyncEnabled,children:wl("div",{children:[bl(XT,{}),wl(ZT,{maxSize:-100,minSize:400,defaultSize:parseInt(localStorage.getItem(WT),10)||"50%",onChange:e=>localStorage.setItem(WT,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished,children:[bl(SE.ScrollSyncPane,{children:z}),bl(rP,{blockEntry:L,children:bl(EC,{collection:e,entry:H,fields:n,fieldsMetaData:r,locale:q,onFieldClick:this.handleFieldClick})})]})]})}),V=bl(SE.ScrollSync,{enabled:this.state.scrollSyncEnabled,children:wl("div",{children:[bl(XT,{}),wl(ZT,{maxSize:-100,minSize:400,defaultSize:parseInt(localStorage.getItem(WT),10)||"50%",onChange:e=>localStorage.setItem(WT,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished,children:[bl(SE.ScrollSyncPane,{children:z}),bl(iP,{blockEntry:L,children:bl(dT,{notes:this.props.notes,onChange:this.handleNotesChange,entry:t,collection:e,user:m,t:I})})]})]})}),K=bl(SE.ScrollSync,{enabled:this.state.scrollSyncEnabled,children:bl("div",{children:wl(ZT,{maxSize:-100,defaultSize:parseInt(localStorage.getItem(WT),10)||"50%",onChange:e=>localStorage.setItem(WT,e),onDragStarted:this.handleSplitPaneDragStart,onDragFinished:this.handleSplitPaneDragFinished,children:[bl(SE.ScrollSyncPane,{children:z}),bl(SE.ScrollSyncPane,{children:B})]})})}),G=(Y=this.state.rightPane,J={i18n:F,notes:$,preview:N},Y===GT?null:Y&&J[Y]?Y:KT.find(e=>J[e])??null);var Y,J;const Q=null!==G;return wl(tP,{children:[bl(BT,{isPersisting:t.get("isPersisting"),isPublishing:t.get("isPublishing"),isUpdatingStatus:t.get("isUpdatingStatus"),isDeleting:t.get("isDeleting"),onPersist:this.handleOnPersist,onPersistAndNew:()=>this.handleOnPersist({createNew:!0}),onPersistAndDuplicate:()=>this.handleOnPersist({createNew:!0,duplicate:!0}),onDelete:c,onDeleteUnpublishedChanges:u,onChangeStatus:d,showDelete:l,onPublish:f,unPublish:p,onDuplicate:h,onPublishAndNew:()=>this.handleOnPublish({createNew:!0}),onPublishAndDuplicate:()=>this.handleOnPublish({createNew:!0,duplicate:!0}),user:m,hasChanged:y,canCreateNewEntry:v,displayUrl:b,collection:e,hasWorkflow:w,useOpenAuthoring:_,hasUnpublishedChanges:x,isNewEntry:k,isModification:S,currentStatus:C,onLogoutClick:T,loadDeployPreview:P,deployPreview:O,editorBackLink:A}),wl(nP,{children:[wl(aP,{children:[F&&bl(QT,{isActive:"i18n"===G,onClick:()=>this.handleTogglePane("i18n",G),size:"large",type:"page",title:I("editor.editorInterface.toggleI18n"),marginTop:"70px"}),N&&bl(QT,{isActive:"preview"===G,onClick:()=>this.handleTogglePane("preview",G),size:"large",type:"eye",title:I("editor.editorInterface.togglePreview")}),$&&bl(QT,{isActive:"notes"===G,onClick:()=>this.handleTogglePane("notes",G),size:"large",type:"write",title:I("editor.editorInterface.toggleNotes")}),Q&&!e.getIn(["editor","visualEditing"])&&bl(QT,{isActive:D,onClick:this.handleToggleScrollSync,size:"large",type:"scroll",title:I("editor.editorInterface.toggleScrollSync")})]}),bl(sP,{rightPane:G,editor:z,editorWithEditor:K,editorWithPreview:W,editorWithNotes:V})]},R)]})}}lP.propTypes={collection:_w().map.isRequired,entry:_w().map.isRequired,fields:_w().list.isRequired,fieldsMetaData:_w().map.isRequired,fieldsErrors:_w().map.isRequired,onChange:gn()().func.isRequired,onValidate:gn()().func.isRequired,onPersist:gn()().func.isRequired,showDelete:gn()().bool.isRequired,onDelete:gn()().func.isRequired,onDeleteUnpublishedChanges:gn()().func.isRequired,onPublish:gn()().func.isRequired,unPublish:gn()().func.isRequired,onDuplicate:gn()().func.isRequired,onChangeStatus:gn()().func.isRequired,user:gn()().object,hasChanged:gn()().bool,canCreateNewEntry:gn()().bool,displayUrl:gn()().string,hasWorkflow:gn()().bool,useOpenAuthoring:gn()().bool,hasUnpublishedChanges:gn()().bool,isNewEntry:gn()().bool,isModification:gn()().bool,isPublished:gn()().bool,currentStatus:gn()().string,onLogoutClick:gn()().func.isRequired,deployPreview:gn()().object,loadDeployPreview:gn()().func.isRequired,draftKey:gn()().string.isRequired,t:gn()().func.isRequired,notes:_w().list,onNotesChange:gn()().func};const cP=lP;function uP(e,t){const{collections:n}=e,r=e.config.publish_mode===Na,o=n.get(t.match.params.name);if(!o)return{isEditorialWorkflow:r};const i={isEditorialWorkflow:r,showDelete:!t.newEntry&&Gp(o)};if(r){const n=t.match.params[0],r=im(e,o.get("name"),n);r&&(i.unpublishedEntry=!0,i.entry=r)}return i}function dP(e,t,n){const{isEditorialWorkflow:r,unpublishedEntry:o}=e,{dispatch:i}=t,a={};return r&&(a.loadEntry=(e,t)=>i(Pd(e,t)),a.persistEntry=e=>i(function(e,t){return async(n,r)=>{const o=r(),i=o.entryDraft,a=i.get("fieldsErrors"),s=function(e,t){return Ng(e.editorialWorkflow,t)}(o,e.get("name")),l=rm(o,e.get("name")).concat(s);if(!ei()(o.editorialWorkflow.toJS(),"pages.ids",!1)&&n(Od(o.collections)),!a.isEmpty())return a.some(e=>e.some(e=>e.type&&e.type===jc))&&n(Gc({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject();const c=yg(o.config),u=i.get("entry"),d=Xf({entry:u}),f=Zf(e,u),p=i.set("entry",f);n(Ed(e,u.get("slug")));const h=t?c.persistUnpublishedEntry:c.persistEntry;try{const t=await h.call(c,{config:o.config,collection:e,entryDraft:p,assetProxies:d,usedSlugs:l});n(Gc({message:{key:"ui.toast.entrySaved"},type:"success",dismissAfter:4e3})),n(Cd(e,f,t)),u.get("slug")!==t&&(await n(Pd(e,t)),ad(e.get("name"),t))}catch(t){return n(Gc({message:{key:"ui.toast.onFailToPersist",details:t},type:"error",dismissAfter:8e3})),Promise.reject(n(Td(t,e,u.get("slug"))))}}}(e,o))),{...n,...e,...a}}function fP(e,t){if(e.get("type")===za){const n=qp(e,t),r=n?.getIn(["editor","notes"]);if(null!=r)return r}return e.getIn(["editor","notes"],!1)}class pP extends Jt().Component{static propTypes={changeDraftField:gn()().func.isRequired,changeDraftFieldValidation:gn()().func.isRequired,collection:_w().map.isRequired,createDraftDuplicateFromEntry:gn()().func.isRequired,createEmptyDraft:gn()().func.isRequired,discardDraft:gn()().func.isRequired,entry:_w().map,entryDraft:_w().map.isRequired,loadEntry:gn()().func.isRequired,loadNotes:gn()().func,stopNotesPolling:gn()().func,persistEntry:gn()().func.isRequired,deleteEntry:gn()().func.isRequired,showDelete:gn()().bool.isRequired,fields:_w().list.isRequired,slug:gn()().string,newEntry:gn()().bool.isRequired,displayUrl:gn()().string,hasWorkflow:gn()().bool,useOpenAuthoring:gn()().bool,unpublishedEntry:gn()().bool,isModification:gn()().bool,collectionEntriesLoaded:gn()().bool,updateUnpublishedEntryStatus:gn()().func.isRequired,publishUnpublishedEntry:gn()().func.isRequired,deleteUnpublishedEntry:gn()().func.isRequired,logoutUser:gn()().func.isRequired,loadEntries:gn()().func.isRequired,deployPreview:gn()().object,loadDeployPreview:gn()().func.isRequired,currentStatus:gn()().string,user:gn()().object,location:gn()().shape({pathname:gn()().string,search:gn()().string}),hasChanged:gn()().bool,canCreateNewEntry:gn()().bool,t:gn()().func.isRequired,retrieveLocalBackup:gn()().func.isRequired,localBackup:_w().map,loadLocalBackup:gn()().func,persistLocalBackup:gn()().func.isRequired,deleteLocalBackup:gn()().func};componentDidMount(){gn()().checkPropTypes(pP.propTypes,this.props,"prop","Editor");const{newEntry:e,collection:t,slug:n,loadEntry:r,createEmptyDraft:o,loadEntries:i,retrieveLocalBackup:a,collectionEntriesLoaded:s,t:l}=this.props;a(t,n),e?o(t,this.props.location.search):r(t,n);const c=l("editor.editor.onLeavePage");this.exitBlocker=e=>{if(this.props.entryDraft.get("hasChanged"))return e.returnValue=c,c},window.addEventListener("beforeunload",this.exitBlocker);const u=rd.block((e,n)=>{const r=this.props.entryDraft.getIn(["entry","isPersisting"]),o=this.props.entryDraft.getIn(["entry","newRecord"]),i=`/collections/${t.get("name")}/new`;if(!r||!o||this.props.location.pathname!==i||"PUSH"!==n)return this.props.hasChanged?c:void 0});this.unlisten=rd.listen((e,n)=>{const r=`/collections/${t.get("name")}/new`,o=`/collections/${t.get("name")}/entries/`,{pathname:i}=e;i.startsWith(r)||i.startsWith(o)&&"PUSH"===n||(this.deleteBackup(),u(),this.unlisten())}),s||i(t)}componentDidUpdate(e){if(!e.localBackup&&this.props.localBackup&&(window.confirm(this.props.t("editor.editor.confirmLoadBackup"))?this.props.loadLocalBackup():this.deleteBackup()),e.entry!==this.props.entry&&this.props.entry&&!this.props.entry.get("isFetching")&&!this.props.newEntry&&this.props.hasWorkflow&&fP(this.props.collection,this.props.slug)&&this.props.loadNotes(this.props.collection,this.props.slug),this.props.hasChanged&&this.createBackup(this.props.entryDraft.get("entry"),this.props.collection),e.entry===this.props.entry)return;const{newEntry:t,collection:n}=this.props;t&&e.createEmptyDraft(n,this.props.location.search)}componentWillUnmount(){!this.props.newEntry&&this.props.hasWorkflow&&fP(this.props.collection,this.props.slug)&&this.props.stopNotesPolling(this.props.collection,this.props.slug),this.createBackup.flush(),this.props.discardDraft(),window.removeEventListener("beforeunload",this.exitBlocker)}createBackup=rE()(function(e,t){this.props.persistLocalBackup(e,t)},2e3);handleChangeDraftField=(e,t,n,r)=>{const o=[this.props.unPublishedEntry,this.props.publishedEntry].filter(Boolean);this.props.changeDraftField({field:e,value:t,metadata:n,entries:o,i18n:r})};handleChangeStatus=e=>{const{entryDraft:t,updateUnpublishedEntryStatus:n,collection:r,slug:o,currentStatus:i,t:a}=this.props;if(t.get("hasChanged"))return void window.alert(a("editor.editor.onUpdatingWithUnsavedChanges"));const s=Ma.get(e);n(r.get("name"),o,i,s)};deleteBackup(){const{deleteLocalBackup:e,collection:t,slug:n,newEntry:r}=this.props;this.createBackup.cancel(),e(t,!r&&n)}handlePersistEntry=async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{persistEntry:r,collection:o,currentStatus:i,hasWorkflow:a,loadEntry:s,slug:l,createDraftDuplicateFromEntry:c,entryDraft:u}=this.props;await r(o),this.deleteBackup(),t?(id(o.get("name")),n&&c(u.get("entry"))):l&&a&&!i&&s(o,l)};handlePublishEntry=async(e={})=>{const{createNew:t=!1,duplicate:n=!1}=e,{publishUnpublishedEntry:r,createDraftDuplicateFromEntry:o,entryDraft:i,collection:a,slug:s,currentStatus:l,t:c}=this.props;l===Ma.last()?i.get("hasChanged")?window.alert(c("editor.editor.onPublishingWithUnsavedChanges")):window.confirm(c("editor.editor.onPublishing"))&&(await r(a.get("name"),s),this.deleteBackup(),t&&id(a.get("name")),n&&o(i.get("entry"))):window.alert(c("editor.editor.onPublishingNotReady"))};handleUnpublishEntry=async()=>{const{unpublishPublishedEntry:e,collection:t,slug:n,t:r}=this.props;if(window.confirm(r("editor.editor.onUnpublishing")))return await e(t,n),od(t.get("name"))};handleDuplicateEntry=()=>{const{createDraftDuplicateFromEntry:e,collection:t,entryDraft:n}=this.props;id(t.get("name")),e(n.get("entry"))};handleDeleteEntry=()=>{const{entryDraft:e,newEntry:t,collection:n,deleteEntry:r,slug:o,t:i}=this.props;if(e.get("hasChanged")){if(!window.confirm(i("editor.editor.onDeleteWithUnsavedChanges")))return}else if(!window.confirm(i("editor.editor.onDeletePublishedEntry")))return;if(t)return od(n.get("name"));setTimeout(async()=>(await r(n,o),this.deleteBackup(),od(n.get("name"))),0)};handleDeleteUnpublishedChanges=async()=>{const{entryDraft:e,collection:t,slug:n,deleteUnpublishedEntry:r,loadEntry:o,isModification:i,t:a}=this.props;e.get("hasChanged")&&!window.confirm(a("editor.editor.onDeleteUnpublishedChangesWithUnsavedChanges"))||window.confirm(a("editor.editor.onDeleteUnpublishedChanges"))&&(await r(t.get("name"),n),this.deleteBackup(),i?o(t,n):od(t.get("name")))};handleNotesChange=(e,t)=>{const{collection:n,slug:r}=this.props;switch(e){case"ADD_NOTE":this.props.persistNote(n,r,t);break;case"UPDATE_NOTE":this.props.updateNotePersist(n,r,t.id,t.updates);break;case"DELETE_NOTE":this.props.deleteNotePersist(n,r,t.id);break;default:console.log("Unknown notes action:",e,t)}};render(){const{entry:e,entryDraft:t,fields:n,collection:r,changeDraftFieldValidation:o,user:i,hasChanged:a,canCreateNewEntry:s,displayUrl:l,hasWorkflow:c,useOpenAuthoring:u,unpublishedEntry:d,newEntry:f,isModification:p,currentStatus:h,logoutUser:g,deployPreview:m,loadDeployPreview:y,draftKey:v,slug:b,t:w,editorBackLink:_}=this.props,x=!f&&!d;return e&&e.get("error")?bl("div",{children:bl("h3",{children:e.get("error")})}):null==t||void 0===t.get("entry")||e&&e.get("isFetching")?bl(Ur.Loader,{active:!0,children:w("editor.editor.loadingEntry")}):bl(cP,{draftKey:v,entry:t.get("entry"),collection:r,fields:n,fieldsMetaData:t.get("fieldsMetaData"),fieldsErrors:t.get("fieldsErrors"),fieldRevisions:t.get("fieldRevisions"),fieldHighlights:t.get("fieldHighlights"),notes:t.get("notes"),onChange:this.handleChangeDraftField,onNotesChange:this.handleNotesChange,onValidate:o,onPersist:this.handlePersistEntry,onDelete:this.handleDeleteEntry,onDeleteUnpublishedChanges:this.handleDeleteUnpublishedChanges,onChangeStatus:this.handleChangeStatus,onPublish:this.handlePublishEntry,unPublish:this.handleUnpublishEntry,onDuplicate:this.handleDuplicateEntry,showDelete:this.props.showDelete,user:i,hasChanged:a,canCreateNewEntry:s,displayUrl:l,hasWorkflow:c,useOpenAuthoring:u,hasUnpublishedChanges:d,isNewEntry:f,isModification:p,isPublished:x,currentStatus:h,onLogoutClick:g,deployPreview:m,loadDeployPreview:t=>y(r,b,e,x,t),editorBackLink:_,t:w})}}const hP={changeDraftField:Uf,changeDraftFieldValidation:function(e,t){return{type:mf,payload:{uniquefieldId:e,errors:t}}},loadEntry:Wf,loadEntries:Yf,loadDeployPreview:function(e,t,n,r,o){return async(i,a)=>{const s=a(),l=yg(s.config),c=e.get("name"),u=om(s,c,t);if(!u||!u.isFetching||o?.signal){i(function(e,t){return{type:jg,payload:{collection:e,slug:t}}}(c,t));try{const a=r?l.getDeploy(e,t,n):await l.getDeployPreview(e,t,n,o);return i(a?function(e,t,n){const{url:r,status:o}=n;return{type:Fg,payload:{collection:e,slug:t,url:r,status:o}}}(c,t,a):qg(c,t))}catch(e){console.error(e),i(Gc({message:{details:e.message,key:"ui.toast.onFailToLoadDeployPreview"},type:"error",dismissAfter:8e3})),i(qg(c,t))}}}},loadLocalBackup:function(){return{type:bf}},retrieveLocalBackup:function(e,t){return async(n,r)=>{const o=r(),i=yg(o.config),{entry:a}=await i.getLocalDraftBackup(e,t);if(a){const t=a.mediaFiles||[],o=await Promise.all(t.map(t=>t.file||t.url?_i({path:t.path,file:t.file,url:t.url,field:t.field}):nd({collection:e,entry:(0,Wr.fromJS)(a),path:t.path,field:t.field})(n,r)));return n(Qu(o)),n(function(e){return{type:vf,payload:{entry:e}}}(a))}}},persistLocalBackup:function(e,t){return(n,r)=>{const o=r();return yg(o.config).persistLocalDraftBackup(e,t)}},deleteLocalBackup:function(e,t){return(n,r)=>{const o=r();return yg(o.config).deleteLocalDraftBackup(e,t)}},createDraftDuplicateFromEntry:function(e){return t=>{t(zc({predicate:({type:e})=>e===df,run:()=>t(function(e){return{type:wf,payload:mc(e.get("collection"),"","",{data:e.get("data"),i18n:e.get("i18n"),mediaFiles:e.get("mediaFiles").toJS()})}}(e))}))}},createEmptyDraft:function(e,t){return async(n,r)=>{const o=new URLSearchParams(t);(0,Wr.Set)([...o.keys()]).toArray().forEach(t=>{const n=Jp(e,t),r=n?.get("multiple",!1),i=o.getAll(t);e=function(e,t){const n=Jp(e,t);if(!n)return e;let o=!1;return e=e.set("fields",Qp(e.get("fields",(0,Wr.List)()),function(e){const t=e;return t===n?(o=!0,(e=>{if(r){const t=i.flatMap(e=>e.split(",")).map(Jf);return e.set("default",(0,Wr.List)(t))}return e.set("default",Jf(i[i.length-1]))})(t)):t},()=>o)),e}(e,t)});const i=e.get("fields",(0,Wr.List)()),a=function(e){return e.filter(e=>!e.get("meta")).toList()}(i),s=Qf(a),l=function(e){return e.filter(e=>!0===e.get("meta")).toList()}(i),c=Qf(l),u=r(),d=yg(u.config);e.has("media_folder")||await qu(n,r());const f=function(e,t){return sh(e)?function(e,t){const{locales:n,defaultLocale:r}=lh(e);return Object.fromEntries(n.filter(e=>e!==r).map(e=>[e,{data:t}]))}(e,Qf(t,function(e){return e.get(oh)!==ah.DUPLICATE&&e.get(oh)!==ah.TRANSLATE})):{}}(e,a);let p=mc(e.get("name"),"","",{data:s,i18n:f,mediaFiles:[],meta:c});p=await d.processEntry(u,e,p),n({type:df,payload:p})}},discardDraft:function(){return{type:ff}},persistEntry:function(e){return async(t,n)=>{const r=n(),o=r.entryDraft,i=o.get("fieldsErrors"),a=rm(r,e.get("name"));if(!i.isEmpty())return i.some(e=>e.some(e=>e.type&&e.type===jc))&&t(Gc({message:{key:"ui.toast.missingRequiredField"},type:"error",dismissAfter:8e3})),Promise.reject();const s=yg(r.config),l=o.get("entry"),c=Xf({entry:l}),u=Zf(e,l),d=o.set("entry",u);return t(function(e,t){return{type:_f,payload:{collectionName:e.get("name"),entrySlug:t.get("slug")}}}(e,u)),s.persistEntry({config:r.config,collection:e,entryDraft:d,assetProxies:c,usedSlugs:a}).then(async n=>{var o,i;t((o=hg(e,u),i=function(e,t,n,r){const o="https://entry-preview-path.invalid";try{const i=uc(o,e,t,n,r);if(!i)return;const a=new URL(i);if(a.origin!==new URL(o).origin)return;const s=`${a.pathname}${a.search}${a.hash}`;return s&&"/"!==s?s:void 0}catch{return}}(e,n,u,r.config.slug),(e,t)=>{const n=Bd(t);e(Hd());const r="function"==typeof n?.recordSaveForDeployWatch&&n.recordSaveForDeployWatch(o,i),a=crypto.randomUUID();qd=r?a:null,e(Gc({id:a,message:{key:r?"ui.toast.entryPublishing":"ui.toast.entrySaved"},type:"success",dismissAfter:4e3}))})),t(function(e,t,n){return{type:xf,payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),slug:n}}}(e,u,n)),c.length>0&&Promise.resolve(t(Cu())).catch(e=>{console.error("Failed to reload the media library after saving",e)}),(e.has("nested")||s.implementation.reloadEntriesAfterPersist)&&await t(Yf(e)),l.get("slug")!==n&&(await t(Wf(e,n)),ad(e.get("name"),n))}).catch(n=>(console.error(n),t(Gc({message:{details:n,key:"ui.toast.onFailToPersist"},type:"error",dismissAfter:8e3})),Promise.reject(t(function(e,t,n){return{type:kf,error:"Failed to persist entry",payload:{collectionName:e.get("name"),entrySlug:t.get("slug"),error:n.toString()}}}(e,u,n)))))}},deleteEntry:function(e,t){return(n,r)=>{const o=r(),i=yg(o.config);return n(function(e,t){return{type:"ENTRY_DELETE_REQUEST",payload:{collectionName:e.get("name"),entrySlug:t}}}(e,t)),i.deleteEntry(o,e,t).then(()=>n(jf(e,t))).catch(r=>(n(Gc({message:{details:r,key:"ui.toast.onFailToDelete"},type:"error",dismissAfter:8e3})),console.error(r),Promise.reject(n(function(e,t,n){return{type:"ENTRY_DELETE_FAILURE",payload:{collectionName:e.get("name"),entrySlug:t,error:n.toString()}}}(e,t,r)))))}},updateUnpublishedEntryStatus:Rd,publishUnpublishedEntry:Id,unpublishPublishedEntry:function(e,t){return(n,r)=>{const o=r(),i=yg(o.config),a=nm(o,e.get("name"),t),s=(0,Wr.Map)().set("entry",a);return n(Ed(e,t)),i.deleteEntry(o,e,t).then(()=>i.persistEntry({config:o.config,collection:e,entryDraft:s,assetProxies:[],usedSlugs:(0,Wr.List)(),status:Ma.get("PENDING_PUBLISH")})).then(()=>i.reopenIssueForUnpublishedEntry(e.get("name"),t)).then(()=>{n(Cd(e,a,t)),n(jf(e,t)),n(Pd(e,t)),n(Gc({message:{key:"ui.toast.entryUnpublished"},type:"success",dismissAfter:4e3}))}).catch(t=>{n(Gc({message:{key:"ui.toast.onFailToUnpublishEntry",details:t},type:"error",dismissAfter:8e3})),n(Td(t,e,a.get("slug")))})}},deleteUnpublishedEntry:Ad,logoutUser:Rg,loadNotesForEntry:Hf,loadNotes:function(e,t){return async(n,r)=>{n(function(e,t){return{type:"NOTES_REQUEST",payload:{collection:e.get("name"),slug:t}}}(e,t));try{const o=r(),i=yg(o.config),a=(await i.getNotes(e.get("name"),t)).map(e=>({...e,entrySlug:t}));n(function(e,t,n){return{type:"NOTES_SUCCESS",payload:{collection:e.get("name"),slug:t,notes:n}}}(e,t,a)),n(Hf(a)),n(rp(e,t))}catch(r){n(function(e,t,n){return{type:"NOTES_FAILURE",payload:{error:e,collection:t.get("name"),slug:n}}}(r,e,t)),n(Hf([]))}}},stopNotesPolling:function(e,t){return async(n,r)=>{try{const o=r(),i=yg(o.config);if(!i.stopNotesPolling)return;await i.stopNotesPolling(e.get("name"),t),n(function(e,t){return{type:"NOTES_POLLING_STOP",payload:{collection:e.get("name"),slug:t}}}(e,t))}catch(e){console.error("[Redux] Failed to stop notes polling:",e)}}},persistNote:function(e,t,n){return async(r,o)=>{const i=o(),a=yg(i.config),s=i.entryDraft?.get("entry"),l=s&&s.get("slug")===t?eh(e,s):void 0;r(ep(e,t,n));try{const o=await a.addNote(e.get("name"),t,n,l);return r(tp(e,t,o)),r(function(e){return{type:Of,payload:{note:e}}}(o)),r(Gc({message:{key:"ui.toast.noteAdded"},type:"success",dismissAfter:4e3})),function(e,t){if(e.get("type")===za){const n=qp(e,t),r=n?.get("editor")?.get("notes");if(null!=r)return r}return e.get("editor")?.get("notes")??!1}(e,t)&&(await new Promise(e=>setTimeout(e,1e3)),await r(rp(e,t))),o}catch(o){r(np(e,t,n,o)),r(Gc({message:{details:o.message,key:"ui.toast.onFailToAddNote"},type:"error",dismissAfter:8e3}))}}},updateNotePersist:function(e,t,n,r){return async(o,i)=>{const a=i(),s=yg(a.config),l={id:n,...r};o(ep(e,t,l));try{const i=await s.updateNote(e.get("name"),t,n,r);return o(tp(e,t,i)),o(function(e,t){return{type:Rf,payload:{id:e,updates:t}}}(n,r)),o(Gc({message:{key:"ui.toast.noteUpdated"},type:"success",dismissAfter:4e3})),i}catch(n){o(np(e,t,l,n)),o(Gc({message:{details:n.message,key:"ui.toast.onFailToUpdateNote"},type:"error",dismissAfter:8e3}))}}},deleteNotePersist:function(e,t,n){return async(r,o)=>{const i=o(),a=yg(i.config);r(function(e,t,n){return{type:"NOTE_DELETE_REQUEST",payload:{collection:e.get("name"),slug:t,noteId:n}}}(e,t,n));try{await a.deleteNote(e.get("name"),t,n),r(function(e,t,n){return{type:"NOTE_DELETE_SUCCESS",payload:{collection:e.get("name"),slug:t,noteId:n}}}(e,t,n)),r(function(e){return{type:Af,payload:{id:e}}}(n)),r(Gc({message:{key:"ui.toast.noteDeleted"},type:"success",dismissAfter:4e3}))}catch(o){r(function(e,t,n,r){return{type:"NOTE_DELETE_FAILURE",payload:{collection:e.get("name"),slug:t,noteId:n,error:r.toString()}}}(e,t,n,o)),r(Gc({message:{details:o.message,key:"ui.toast.onFailToDeleteNote"},type:"error",dismissAfter:8e3}))}}}},gP=Qn(function(e,t){const{collections:n,entryDraft:r,auth:o,config:i,entries:a,globalUI:s}=e,l=t.match.params[0],c=n.get(t.match.params.name);if(!c)return{collection:null};const u=c.get("name"),d=!0===t.newRecord,f=zp(c,l),p=d?null:nm(e,u,l),h=o.user,g=r.get("hasChanged"),m=sm(e,u),y=i.display_url,v=i.publish_mode===Na,b=s.useOpenAuthoring,w=r.getIn(["entry","isModification"]),_=!!a.getIn(["pages",u]),x=im(e,u,l),k=nm(e,u,l),S=x&&x.get("status"),E=om(e,u,l),C=r.get("localBackup"),T=r.get("key");let P=`/collections/${u}`;if("workflow"===new URLSearchParams(t.location.search).get("ref")&&(P="/workflow"),c.has("nested")&&l){const e=l.split("/");e.length>2&&(P=`${P}/filter/${e.slice(0,-2).join("/")}`)}return{collection:c,collections:n,newEntry:d,entryDraft:r,fields:f,slug:l,entry:p,user:h,hasChanged:g,canCreateNewEntry:m,displayUrl:y,hasWorkflow:v,useOpenAuthoring:b,isModification:w,collectionEntriesLoaded:_,currentStatus:S,deployPreview:E,localBackup:C,draftKey:T,publishedEntry:k,unPublishedEntry:x,editorBackLink:P}},hP)(function(e){return Qn(uP,null,dP)(class extends Jt().Component{render(){return this.props.collection?bl(e,{...this.props}):bl(Lr,{to:"/"})}})}((0,Ot().Tl)()(pP))),mP=ab("div",{target:"ew40z3q0",label:"NotFoundContainer"})("margin:",Ur.lengths.pageMargin,";");function yP({t:e}){return bl(mP,{children:bl("h2",{children:e("app.notFoundPage.header")})})}yP.propTypes={t:gn()().func.isRequired};const vP=(0,Ot().Tl)()(yP),bP={buttonActive:(0,Zv.css)("color:",Ur.colors.active,";;label:buttonActive;")};function wP(e){return bl("header",{css:(0,Zv.css)(Ur.shadows.dropMain,";width:100%;background-color:",Ur.colors.foreground,";z-index:",Ur.zIndex.zIndex300,";@media (min-height: 500px){position:sticky;top:0;};label:AppHeader;"),...e})}const _P=ab("div",{target:"e1rbzf6g5",label:"AppHeaderContent"})({name:"v7ez28",styles:"display:flex;flex-direction:column-reverse;padding:0 12px;margin:0 auto;@media (min-width: 800px){max-width:1440px;flex-direction:row;justify-content:space-between;}"}),xP=ab("button",{target:"e1rbzf6g4",label:"AppHeaderButton"})(Ur.buttons.button,";background:none;color:#7b8290;font-family:inherit;font-size:13px;line-height:1;font-weight:500;display:inline-flex;flex-direction:column;gap:2px;padding:0 10px 10px;align-items:center;text-align:center;@media (min-width: 400px){flex-direction:row;gap:4px;}@media (min-width: 500px){font-size:16px;padding:16px 20px;}",Ur.Icon,"{color:#b3b9c4;}&:hover,&:active,&:focus-visible{",bP.buttonActive,";",Ur.Icon,"{",bP.buttonActive,";}}",e=>(0,Zv.css)("&.",e.activeClassName,"{",bP.buttonActive,";",Ur.Icon,"{",bP.buttonActive,";}};label:AppHeaderButton;"),";"),kP=xP.withComponent(yx,{target:"e1rbzf6g6",label:"AppHeaderNavLink"}),SP=ab("div",{target:"e1rbzf6g3",label:"AppHeaderActions"})({name:"bcffy2",styles:"display:flex;align-items:center;justify-content:space-between"}),EP=ab(Ur.StyledDropdownButton,{target:"e1rbzf6g2",label:"AppHeaderQuickNewButton"})(Ur.buttons.button,";",Ur.buttons.medium,";",Ur.buttons.gray,";white-space:nowrap;margin-right:8px;&:after{top:11px;}"),CP=ab("ul",{target:"e1rbzf6g1",label:"AppHeaderNavList"})({name:"3sjwt6",styles:"display:flex;margin:0;list-style:none;justify-content:space-around;@media (min-width: 800px){justify-content:flex-start;}"}),TP=ab("li",{target:"e1rbzf6g0",label:"AppHeaderLogo"})({name:"d1300z",styles:"display:flex;align-items:center;img{padding:12px 20px;max-height:56px;max-width:300px;object-fit:contain;object-position:center;}"});class PP extends Jt().Component{static propTypes={user:gn()().object.isRequired,collections:_w().map.isRequired,creatableCollections:_w().list.isRequired,onCreateEntryClick:gn()().func.isRequired,onLogoutClick:gn()().func.isRequired,openMediaLibrary:gn()().func.isRequired,hasWorkflow:gn()().bool.isRequired,displayUrl:gn()().string,logoUrl:gn()().string,logo:gn()().shape({src:gn()().string.isRequired,show_in_header:gn()().bool}),isTestRepo:gn()().bool,t:gn()().func.isRequired,checkBackendStatus:gn()().func.isRequired};intervalId;componentDidMount(){gn()().checkPropTypes(PP.propTypes,this.props,"prop","Header"),this.intervalId=setInterval(()=>{this.props.checkBackendStatus()},3e5)}componentWillUnmount(){clearInterval(this.intervalId)}handleCreatePostClick=e=>{const{onCreateEntryClick:t}=this.props;t&&t(e)};render(){const{user:e,creatableCollections:t,onLogoutClick:n,openMediaLibrary:r,hasWorkflow:o,displayUrl:i,logoUrl:a,logo:s,isTestRepo:l,t:c,showMediaButton:u,hasDeployStatus:d,deployPendingCount:f,deployLatest:p}=this.props,h=function(e,t,n=Date.now()){return e>0?{key:"app.header.deploysPublishing",color:DS.building}:!t||LS(t,n)?{key:"app.header.deploys",color:Ur.colorsRaw.gray}:"failed"===t.state?{key:"app.header.deploysFailed",color:DS.failed}:"building"===t.state||"pending"===t.state?{key:"app.header.deploysBuilding",color:DS.building}:{key:"app.header.deploysDeployed",color:DS.success}}(f,p);return bl(wP,{children:wl(_P,{children:[bl("nav",{children:wl(CP,{children:[s?.show_in_header&&s?.src&&bl(TP,{children:bl("img",{src:s?.src||a,alt:"Logo"})}),bl("li",{children:wl(kP,{to:"/",activeClassName:"header-link-active",isActive:(e,t)=>t.pathname.startsWith("/collections/"),children:[bl(Ur.Icon,{type:"page"}),c("app.header.content")]})}),o&&bl("li",{children:wl(kP,{to:"/workflow",activeClassName:"header-link-active",children:[bl(Ur.Icon,{type:"workflow"}),c("app.header.workflow")]})}),u&&bl("li",{children:wl(xP,{onClick:r,children:[bl(Ur.Icon,{type:"media-alt"}),c("app.header.media")]})}),d&&bl("li",{children:wl(kP,{to:"/deploys",activeClassName:"header-link-active",children:[bl(IS,{color:h.color}),c(h.key)]})})]})}),wl(SP,{children:[t.size>0&&bl(Ur.Dropdown,{renderButton:()=>wl(EP,{children:[" ",c("app.header.quickAdd")]}),dropdownTopOverlap:"30px",dropdownWidth:"max-content",dropdownPosition:"left",children:t.map(e=>bl(Ur.DropdownItem,{label:e.get("label_singular")||e.get("label"),onClick:()=>this.handleCreatePostClick(e.get("name"))},e.get("name")))}),bl(bw,{displayUrl:i,isTestRepo:l,imageUrl:e?.avatar_url,identity:fT(e),onLogoutClick:n})]})]})})}}const OP=Qn(function(e,t){const{deployStatus:n}=e;return{creatableCollections:t.collections.filter(t=>sm(e,t.get("name"))).toList(),hasDeployStatus:Hg(n),deployPendingCount:n.pendingCount,deployLatest:n.latest}},{checkBackendStatus:function(){return async(e,t)=>{try{const n=t();if(n.status.isFetching)return;e({type:Qg});const r=yg(n.config),o=await r.status(),i="ui.toast.onBackendDown",a=n.notifications.notifications.filter(e=>"string"!=typeof e.message&&e.message?.key===i);if(!1===o.api.status)return 0===a.length&&e(Gc({message:{details:o.api.statusPage,key:"ui.toast.onBackendDown"},type:"error"})),e(em(o));if(!0===o.api.status&&a.length>0&&a.forEach(t=>{e(Yc(t.id))}),!1===o.auth.status){const t="ui.toast.onLoggedOut";n.notifications.notifications.find(e=>"string"!=typeof e.message&&e.message?.key===t)||e(Gc({message:{key:"ui.toast.onLoggedOut"},type:"error"}))}e(em(o))}catch(t){e(function(e){return{type:Zg,payload:{error:e}}}(t))}}}})((0,Ot().Tl)()(PP));kw().config({barColors:{0:Ur.colors.active,"1.0":Ur.colors.active},shadowBlur:0,barThickness:2});const RP=ab("div",{target:"eh2m33j2",label:"AppMainContainer"})({name:"1nq08h0",styles:"max-width:1440px;margin:0 auto"}),AP=ab("div",{target:"eh2m33j1",label:"ErrorContainer"})({name:"3zy121",styles:"margin:20px"}),IP=ab("pre",{target:"eh2m33j0",label:"ErrorCodeBlock"})({name:"1dps4tx",styles:"margin-left:20px;font-size:15px;line-height:1.5"});function DP(e){const t=e.filter(e=>!0!==e.get("hide")).first();if(t)return`/collections/${t.get("name")}`;throw new Error("Could not find a non hidden collection")}function LP({collections:e,render:t,...n}){const r=DP(e);return bl(jr,{...n,render:n=>e.get(n.match.params.name)?t(n):bl(Lr,{to:r})})}class NP extends Jt().Component{static propTypes={auth:gn()().object.isRequired,config:gn()().object.isRequired,collections:_w().map.isRequired,loginUser:gn()().func.isRequired,logoutUser:gn()().func.isRequired,sessionInvalidated:gn()().func.isRequired,user:gn()().object,isFetching:gn()().bool.isRequired,publishMode:gn()().oneOf(["simple",Na]),siteId:gn()().string,useMediaLibrary:gn()().bool,openMediaLibrary:gn()().func.isRequired,showMediaButton:gn()().bool,startDeployNotifications:gn()().func.isRequired,startDeployStatus:gn()().func.isRequired,deployStatusVisible:gn()().bool.isRequired,t:gn()().func.isRequired};componentDidMount(){var e;gn()().checkPropTypes(NP.propTypes,this.props,"prop","App"),this.startDeployWatching(),this.unsubscribeSessionInvalid=(e=e=>this.props.sessionInvalidated(e),cg.push(e),()=>{cg=cg.filter(t=>t!==e)})}componentWillUnmount(){this.unsubscribeSessionInvalid?.()}componentDidUpdate(e){!e.user&&this.props.user&&this.startDeployWatching()}startDeployWatching(){this.props.startDeployNotifications(),this.props.startDeployStatus()}configError(e){const t=this.props.t;return wl(AP,{children:[bl("h1",{children:t("app.app.errorHeader")}),wl("div",{children:[wl("strong",{children:[t("app.app.configErrors"),":"]}),bl(IP,{children:e.error}),bl("span",{children:t("app.app.checkConfigYml")})]})]})}handleLogin(e){this.props.loginUser(e)}authenticating(){const{auth:e,t:t}=this.props,n=yg(this.props.config);return null==n?bl("div",{children:bl("h1",{children:t("app.app.waitingBackend")})}):wl("div",{children:[bl(iw,{}),(0,Jt().createElement)(n.authComponent(),{onLogin:this.handleLogin.bind(this),error:e.error,inProgress:e.isFetching,siteId:this.props.config.backend.site_domain,base_url:this.props.config.backend.base_url,authEndpoint:this.props.config.backend.auth_endpoint,config:this.props.config,clearHash:()=>rd.replace("/"),t:t})]})}handleLinkClick(e,t,...n){e.preventDefault(),t(...n)}render(){const{user:e,config:t,collections:n,logoutUser:r,isFetching:o,publishMode:i,useMediaLibrary:a,openMediaLibrary:s,t:l,showMediaButton:c,location:u,deployStatusVisible:d}=this.props;if(null===t)return null;if(t.error)return this.configError(t);if(t.isFetching)return bl(Ur.Loader,{active:!0,children:l("app.app.loadingConfig")});if(null==e)return this.authenticating(l);const f=DP(n),p=i===Na,h=d,[,g,,m]=u.pathname.split("/"),y="collections"===g&&("entries"===m||"new"===m);return wl(vl,{children:[bl(iw,{}),!y&&bl(OP,{user:e,collections:n,onCreateEntryClick:Sw,onLogoutClick:r,openMediaLibrary:s,hasWorkflow:p,displayUrl:t.display_url,logoUrl:t.logo_url,logo:t.logo,isTestRepo:"test-repo"===t.backend.name,showMediaButton:c}),wl(RP,{children:[o&&bl(kw(),{}),wl(Fr,{children:[bl(Lr,{exact:!0,from:"/",to:f}),bl(Lr,{exact:!0,from:"/search/",to:f}),bl(LP,{exact:!0,collections:n,path:"/collections/:name/search/",render:({match:e})=>bl(Lr,{to:`/collections/${e.params.name}`})}),bl(Lr,{from:"/error=access_denied&error_description=Signups+not+allowed+for+this+instance",to:f}),p?bl(jr,{path:"/workflow",component:RS}):null,h?bl(jr,{path:"/deploys",component:tE}):null,bl(LP,{exact:!0,collections:n,path:"/collections/:name",render:e=>bl(eS,{...e})}),bl(LP,{path:"/collections/:name/new",collections:n,render:e=>bl(gP,{...e,newRecord:!0})}),bl(LP,{path:"/collections/:name/entries/*",collections:n,render:e=>bl(gP,{...e})}),bl(LP,{path:"/collections/:name/search/:searchTerm",collections:n,render:e=>bl(eS,{...e,isSearchResults:!0,isSingleSearchResult:!0})}),bl(LP,{collections:n,path:"/collections/:name/filter/:filterTerm*",render:e=>bl(eS,{...e})}),bl(jr,{path:"/search/:searchTerm",render:e=>bl(eS,{...e,isSearchResults:!0})}),bl(LP,{path:"/edit/:name/:entryName+",collections:n,render:({match:e})=>{const{name:t,entryName:n}=e.params;return bl(Lr,{to:`/collections/${t}/entries/${n}`})}}),bl(jr,{component:vP})]}),a?bl(lx,{}):null]})]})}}const $P=Qn(function(e){const{auth:t,config:n,collections:r,globalUI:o,mediaLibrary:i,deployStatus:a}=e,s=t.user,l=o.isFetching,c=n.publish_mode,u=!i.get("externalLibrary");return{auth:t,config:n,collections:r,user:s,isFetching:l,publishMode:c,showMediaButton:i.get("showMediaButton"),useMediaLibrary:u,deployStatusVisible:Hg(a)}},{openMediaLibrary:ku,loginUser:function(e){return(t,n)=>{const r=n(),o=yg(r.config);return t(Eg()),o.authenticate(e).then(e=>{e.useOpenAuthoring&&t(Og()),t(Cg(e)),vg(t,e)}).catch(e=>{console.error(e),t(Gc({message:{details:e.message,key:"ui.toast.onFailToAuth"},type:"error",dismissAfter:8e3})),t(Tg(e)),t(Pg())})}},logoutUser:Rg,sessionInvalidated:function(e){return(t,n)=>{n().auth.user&&(t(Tg(new Error(e))),t(Rg()))}},startDeployNotifications:Hd,startDeployStatus:function(){return(e,t)=>{if(zd)return;const n=Bd(t);if("function"!=typeof n?.subscribeDeployStatus)return;const r=n.deployStatusConfig?.()??{enabled:!0,page:!0,primaryTarget:null};r.enabled&&(zd=n.subscribeDeployStatus(t=>e({type:$d,payload:{pendingCount:t.pendingCount,latest:t.latest,supported:!0,pageEnabled:r.page,branch:r.branch??null}}))??null,zd&&e(Wd()))}}})((0,Ot().Tl)()(NP));function MP({field:e,t:t}){return bl("div",{children:t("editor.editorWidgets.unknownControl.noControl",{widget:e.get("widget")})})}MP.propTypes={field:_w().map,t:gn()().func.isRequired};const jP=(0,Ot().Tl)()(MP);function FP({field:e,t:t}){return bl("div",{className:"nc-widgetPreview",children:t("editor.editorWidgets.unknownPreview.noPreview",{widget:e.get("widget")})})}FP.propTypes={field:_w().map,t:gn()().func.isRequired},ca("unknown",jP,(0,Ot().Tl)()(FP));var UP=__webpack_require__(51561),qP=__webpack_require__.n(UP);function zP(e){if(!e)return;const t=e.toJS?.()??e,{avatar_url:n,...r}=qP()(t,["id","email","name","avatar_url"]);return void 0===n?r:{...r,avatarUrl:n}}async function BP(){const e=cm.getState();if(!e)return{};const t=yg(e.config);let n;try{n=await t.getToken()||void 0}catch(e){n=void 0}const r={...e.config?.backend};return{backendName:r?.name,backendConfig:r,user:zP(e.auth?.user),token:n,activeSiteId:r?.turbo_site_id||void 0}}function HP(e){return cm.dispatch(Su(e,void 0))}const WP=El()(async function(e,t){const n=ya(e);if(n){const e=await n.init({options:t,handleInsert:HP,getMediaLibraryContext:BP});cm.dispatch(function(e){const t={show:e.show||(()=>{}),hide:e.hide||(()=>{}),onClearControl:e.onClearControl||(()=>{}),onRemoveControl:e.onRemoveControl||(()=>{}),enableStandalone:e.enableStandalone||(()=>{})};return{type:au,payload:t}}(e))}else{const t=new Error(`Missing external media library '${e}'. Please use 'registerMediaLibrary' to register it.`);cm.dispatch(Jh(t))}});cm.subscribe(()=>{const e=cm.getState();if(e){const t=e.config.media_library?.name;if(t&&!e.mediaLibrary.get("externalLibrary")){const n=e.config.media_library;WP(t,n)}}}),__webpack_require__(72402);const VP="nc-root",KP=Qn(function(e){return{locale:Qh(e.config),config:e.config}})(function({locale:e,config:t}){return bl(Ot().F2,{locale:e,messages:fm(e),children:bl(gb,{showBackup:!0,config:t,children:bl(Or,{history:rd,children:bl(jr,{component:$P})})})})}),GP=new WeakMap;!function(e){ia.editorApi=e}(DE);const YP={...aa,init:function(e={}){const{config:t}=e;console.log("decap-cms-core 3.20.2"),cm.dispatch(function(e={},t){return window.CMS_CONFIG?Yh(window.CMS_CONFIG):async n=>{n({type:Nh});try{const r=function(){const e=document.querySelector('link[rel="cms-config-url"]');return e&&{"text/yaml":"yaml","application/x-yaml":"yaml"}[e.type]&&e.href?(console.log(`Using config file path: "${e.href}"`),e.href):"config.yml"}(),o=!La()(e),i=!1===e.load_config_file?{}:await async function(e,t){const n=await fetch(e,{credentials:"same-origin"}).catch(e=>e);if(n instanceof Error||200!==n.status){if(t)return{};const e=n instanceof Error?n.message:n.status;throw new Error(`Failed to load config.yml (${e})`)}const r=n.headers.get("Content-Type")||"Not-Found";return-1===r.indexOf("yaml")&&(console.log(`Response for ${e} was not yaml. (Content-Type: ${r})`),t)?{}:function(e){const t=ui().parse(e,{maxAliasCount:-1,prettyErrors:!0,merge:!0});if("undefined"!=typeof window&&"string"==typeof window.CMS_ENV&&t[window.CMS_ENV]){const e=Object.keys(t[window.CMS_ENV]);for(const n of e)t[n]=t[window.CMS_ENV][n]}return t}(await n.text())}(r,o),a=Ra()()(i,e);!function(e){const t=new(ja()())({allErrors:!0,$data:!0,strict:!1});if((0,p().uniqueItemProperties)(t),(0,p().select)(t),(0,p().instanceof)(t),(0,p().prohibited)(t),Fa()()(t),!t.validate({type:"object",properties:{backend:{type:"object",properties:{name:{type:"string",examples:["test-repo"]},auth_scope:{type:"string",examples:["repo","public_repo"],enum:["repo","public_repo"]},cms_label_prefix:{type:"string",minLength:1},open_authoring:{type:"boolean",examples:[!0]}},required:["name"]},local_backend:{oneOf:[{type:"boolean"},{type:"object",properties:{url:{type:"string",examples:["http://localhost:8081/api/v1"]},allowed_hosts:{type:"array",items:{type:"string"}}},additionalProperties:!1}]},locale:{type:"string",examples:["en","fr","de"]},i18n:kh,site_url:{type:"string",examples:["https://example.com"]},display_url:{type:"string",examples:["https://example.com"]},logo_url:{type:"string",examples:["https://example.com/images/logo.svg"]},logo:{type:"object",properties:{src:{type:"string",examples:["https://example.com/images/logo.svg"]},show_in_header:{type:"boolean"}},required:["src"]},show_preview_links:{type:"boolean"},media_folder:{type:"string",examples:["assets/uploads"]},public_folder:{type:"string",examples:["/uploads"]},media_folder_relative:{type:"boolean"},media_processing:Ch,media_library:{type:"object",properties:{name:{type:"string",examples:["uploadcare"]},config:{type:"object"}},required:["name"]},publish_mode:{type:"string",enum:["simple","editorial_workflow",""],examples:["editorial_workflow"]},slug:{type:"object",properties:{encoding:{type:"string",enum:["unicode","ascii"]},clean_accents:{type:"boolean"}}},issue_reports:{type:"object",properties:{url:{type:"string",examples:["https://example.com/report-issue"]}}},collections:{type:"array",minItems:1,items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},folder:{type:"string"},files:{type:"array",items:{type:"object",properties:{name:{type:"string"},label:{type:"string"},label_singular:{type:"string"},description:{type:"string"},file:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},preview_path_preserve_slashes:{type:"boolean"},fields:Th()},required:["name","label","file","fields"]},uniqueItemProperties:["name"]},identifier_field:{type:"string"},summary:{type:"string"},slug:{type:"string"},path:{type:"string"},preview_path:{type:"string"},preview_path_date_field:{type:"string"},preview_path_preserve_slashes:{type:"boolean"},create:{type:"boolean"},publish:{type:"boolean"},hide:{type:"boolean"},editor:{type:"object",properties:{preview:{type:"boolean"}}},format:{type:"string"},extension:{type:"string"},frontmatter_delimiter:{type:["string","array"],minItems:2,maxItems:2,items:{type:"string"}},fields:Th(),sortable_fields:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{field:{type:"string"},label:{type:"string"},default_sort:{oneOf:[{type:"boolean"},{type:"string",enum:["asc","desc"]}]}},required:["field"],additionalProperties:!1}]}},sortableFields:{type:"array",items:{type:"string"}},view_filters:Ph,view_groups:Oh,nested:{type:"object",properties:{depth:{type:"number",minimum:1,maximum:1e3},subfolders:{type:"boolean"},summary:{type:"string"}},required:["depth"]},meta:{type:"object",properties:{path:{type:"object",properties:{label:{type:"string"},widget:{type:"string"},index_file:{type:"string"}},required:["label","widget"]}},additionalProperties:!1,minProperties:1},i18n:Sh,limit:{type:"number"}},required:["name","label"],oneOf:[{required:["files"]},{required:["folder","fields"]}],not:{required:["sortable_fields","sortableFields"]},if:{required:["extension"]},then:{if:{properties:{extension:{enum:Object.keys(Ta)}}},else:{required:["format"]}},dependencies:{frontmatter_delimiter:{properties:{format:{enum:Ea}},required:["format"]}}},uniqueItemProperties:["name"]},editor:{type:"object",properties:{preview:{type:"boolean"}}}},required:["backend","collections"],anyOf:[{required:["media_folder"]},{required:["media_library"]}]},e)){const e=t.errors.map(e=>{switch(e.keyword){case"uniqueItemProperties":{const t=e.instancePath||"";let n=e;return t.endsWith("/fields")?n={...e,message:"fields names must be unique"}:t.endsWith("/files")?n={...e,message:"files names must be unique"}:t.endsWith("/collections")&&(n={...e,message:"collections names must be unique"}),n}case"instanceof":{const t=e.instancePath||"";let n=e;return/fields\/\d+\/pattern\/\d+/.test(t)&&(n={...e,message:"must be a regular expression"}),n}default:return e}});throw console.error("Config Errors",e),new Ah(e)}e.collections&&e.collections.forEach((e,t)=>{if(e.sortable_fields&&e.sortable_fields.filter(e=>"object"==typeof e&&void 0!==e.default_sort).length>1){const e={instancePath:`/collections/${t}/sortable_fields`,message:"only one sortable field can have the default_sort property"};throw console.error("Config Errors",[e]),new Ah([e])}})}(a);const s=await async function(e){if(!e.local_backend)return e;const{proxyUrl:t,publish_modes:n,type:r}=await async function(e){if(!["localhost","127.0.0.1",..."boolean"==typeof e?[]:e?.allowed_hosts||[]].includes(location.hostname)||!e)return{};const t="http://localhost:8081/api/v1",n=!0===e?t:e.url||t.replace("localhost",location.hostname);try{const{protocol:e}=new URL(n);if("http:"!==e&&"https:"!==e)return console.log(`Decap CMS local_backend url must use http or https, ignoring '${n}'`),{}}catch{return console.log(`Decap CMS local_backend url '${n}' is not a valid URL`),{}}try{console.log(`Looking for Decap CMS Proxy Server at '${n}'`);const e=await fetch(`${n}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"info"})}),{repo:t,publish_modes:r,type:o}=await e.json();return"string"==typeof t&&Array.isArray(r)&&"string"==typeof o?(console.log(`Detected Decap CMS Proxy Server at '${n}' with repo: '${t}'`),{proxyUrl:n,publish_modes:r,type:o}):(console.log(`Decap CMS Proxy Server not detected at '${n}'`),{})}catch{return console.log(`Decap CMS Proxy Server not detected at '${n}'`),{}}}(e.local_backend);return t?Uo(e,e=>{e.backend.name="proxy",e.backend.proxy_url=t,e.publish_mode&&(e.publish_mode=function(e,t,n){if(e.publish_mode&&t&&!t.includes(e.publish_mode)){const r=t[0];return console.log(`'${e.publish_mode}' is not supported by '${n}' backend, switching to '${r}'`),r}return e.publish_mode}(e,n,r))}):e}(a),l=function(e){const{collections:t=[]}=e,n=t.map(e=>{const{fields:t,files:n}=e;let r=e;if(t){const e=Fh(t,zh);r={...r,fields:e}}if(n){const e=n.map(e=>{const t=Fh(e.fields,zh);return{...e,fields:t}});r={...r,files:e}}if(r.sortableFields){const{sortableFields:t,...n}=r;r={...n,sortable_fields:t},console.warn(`Collection ${e.name} is using a deprecated configuration 'sortableFields'. Please use 'sortable_fields'`)}var o;return r.sortable_fields&&(r={...r,sortable_fields:(o=r.sortable_fields,o.map(e=>"string"==typeof e?{field:e,default_sort:void 0}:e))}),r});return{...e,collections:n}}(await async function(e){const t=e.backend?.name,n=t&&ma(t),r=n?.BackendClass?.preloadConfig;return"function"!=typeof r?e:r(e)}(s)),c=Uo(l,e=>{e.publish_mode=e.publish_mode||"simple",e.slug=e.slug||{},e.collections=e.collections||[],e.editor||(e.editor={}),"preview"in e.editor||(e.editor.preview=!0),"notes"in e.editor||(e.editor.notes=!1),!e.display_url&&e.site_url&&(e.display_url=e.site_url);const t=`/${Ia()(e.media_folder,"/")}`;"public_folder"in e||(e.public_folder=t),"encoding"in e.slug||(e.slug.encoding="unicode"),"clean_accents"in e.slug||(e.slug.clean_accents=!1),"sanitize_replacement"in e.slug||(e.slug.sanitize_replacement="-");const n=e[oh];n&&(n.default_locale=n.default_locale||n.locales[0]),Kh(n);const r=mg(e);for(const t of e.collections){"publish"in t||(t.publish=!0);let o=t[oh];n&&o?(o=Hh(o,n),t[oh]=o):(o=void 0,delete t[oh]),t.fields&&(t.fields=Wh(t.fields,Boolean(o)));const{folder:i,files:a,view_filters:s,view_groups:l,meta:c}=t;if(i&&(t.type=Ba,t.path&&!t.media_folder&&(t.media_folder=""),"media_folder"in t&&!("public_folder"in t)&&(t.public_folder=t.media_folder),t.fields&&(t.fields=Fh(t.fields,Uh)),t.folder=Jo()(i,"/"),c&&c.path)){const e={name:"path",meta:!0,required:!0,...c.path};t.fields=[e,...t.fields||[]]}if(a){t.type=za,Vh(o),delete t.nested,delete t.meta;for(const e of a){e.file=Ia()(e.file,"/"),"media_folder"in e&&!("public_folder"in e)&&(e.public_folder=e.media_folder),e.fields&&(e.fields=Fh(e.fields,Uh));let t=e[oh];t&&o?(t=Hh(t,o),e[oh]=t):(t=void 0,delete e[oh]),Vh(t),e.fields&&(e.fields=Wh(e.fields,Boolean(t)))}}t.sortable_fields||(t.sortable_fields=th((0,Wr.fromJS)(t),r,Gh(e,t))),t.view_filters=(s||[]).map(e=>({...e,id:`${e.field}__${e.pattern}`})),t.view_groups=(l||[]).map(e=>({...e,id:`${e.field}__${e.pattern}`})),t.editor={preview:e.editor.preview,notes:e.editor.notes,...t.editor}}});n(Yh(c)),"function"==typeof t&&t()}catch(e){throw n(Jh(e)),e}}}(t,function(){cm.dispatch((e,t)=>{const n=t(),r=yg(n.config);return e(Eg()),Promise.resolve(r.currentUser()).then(t=>{t?(t.useOpenAuthoring&&e(Og()),e(Cg(t)),vg(e,t)):e(Pg())}).catch(t=>{e(Tg(t)),e(Rg())})})})),function(e){const t=GP.get(e);if(t)return t;const n=(0,et().createRoot)(e);return GP.set(e,n),n}(function(){const e=document.getElementById(VP);if(e)return e;const t=document.createElement("div");return t.id=VP,document.body.appendChild(t),t}()).render(bl(function(){return wl(vl,{children:[bl(Ur.GlobalStyles,{}),bl(_n,{store:cm,children:bl(KP,{})})]})},{}))},editor:DE}})(),__webpack_exports__=__webpack_exports__.DecapCmsCore,__webpack_exports__})());
//# sourceMappingURL=/sm/7541f05bc242b7ea600447e22af0919a30a2c22752aa2086fc43fd469a1561c5.map