md/assets/index-rTfho1Gk.js

1286 lines
5.7 MiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-7LQXDS3O-CEWLQ6IO.js","assets/graph-RRZFWUB3.js","assets/_baseUniq-DbOZ-2NY.js","assets/layout-BWz4qxnn.js","assets/min-CsCIFSS6.js","assets/json-oxWcndKW.js","assets/c4Diagram-THADGKDP-DuI0yCPo.js","assets/chunk-XVOYOM2C-CJx2i4op.js","assets/flowDiagram-SWJZLURC-CWk5Uyll.js","assets/chunk-WZBIATSK-BKTodbr2.js","assets/chunk-GWHMDDHB-D5dVVSwb.js","assets/channel-XnM4PBc8.js","assets/erDiagram-62CBQV5Y-qk6S0bai.js","assets/gitGraphDiagram-UL5UFKDR-dYaNrMv3.js","assets/chunk-OQCM5LHU-Bcp1tYPj.js","assets/chunk-2RYQ3QTB-DgwCjInT.js","assets/gitGraph-YCYPL57B-AfJfRAHO.js","assets/ganttDiagram-ASEIQ4P5-A0OHgVk2.js","assets/linear-CtYNAs-W.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-OZ7PC5JD-DvA3ZtnF.js","assets/pieDiagram-OZX6XH5M-BIv5KmWx.js","assets/arc-CrKgW31H.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-VG34DGKC-7BqNaDXo.js","assets/xychartDiagram-TMT7NLBN-DLLUzJ4e.js","assets/requirementDiagram-FPZB6IJI-DrIQl4j-.js","assets/sequenceDiagram-K7U7U2PU-GNyY0NGz.js","assets/classDiagram-4BHYIK4I-kCmVWJOj.js","assets/chunk-BAVOGKFW-Bfuos4Sn.js","assets/classDiagram-v2-SPY6V32O-DJR4N2QC.js","assets/chunk-MKAIFKW5-DlTf82q9.js","assets/stateDiagram-Q3B52UYC-D42c1DyG.js","assets/chunk-W3SRJFPQ-WNJX62II.js","assets/stateDiagram-v2-YJVOV2SD-B4KFMGvJ.js","assets/journeyDiagram-G5LC7W2K-CWvF8CV5.js","assets/timeline-definition-KYQAIZUX-BgNf2cfV.js","assets/mindmap-definition-26FWEE7H-Tmdlm-x-.js","assets/cytoscape.esm-BTmJTmak.js","assets/sankeyDiagram-KMMQDL5K-C4dSAcmX.js","assets/diagram-QS5GVLUX-DIHCzlt1.js","assets/blockDiagram-SLEYNUNN-C6IbdsSX.js","assets/architectureDiagram-WQGLKCSC-DGkoual0.js"])))=>i.map(i=>d[i]);
var ow=Object.defineProperty;var KT=Ra=>{throw TypeError(Ra)};var lw=(Ra,qa,Ja)=>qa in Ra?ow(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:Ja}):Ra[qa]=Ja;var n1=(Ra,qa,Ja)=>lw(Ra,typeof qa!="symbol"?qa+"":qa,Ja),cw=(Ra,qa,Ja)=>qa.has(Ra)||KT("Cannot "+Ja);var XT=(Ra,qa,Ja)=>qa.has(Ra)?KT("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,Ja);var _E=(Ra,qa,Ja)=>(cw(Ra,qa,"access private method"),Ja);(function(){const qa=document.createElement("link").relList;if(qa&&qa.supports&&qa.supports("modulepreload"))return;for(const td of document.querySelectorAll('link[rel="modulepreload"]'))ed(td);new MutationObserver(td=>{for(const rd of td)if(rd.type==="childList")for(const sd of rd.addedNodes)sd.tagName==="LINK"&&sd.rel==="modulepreload"&&ed(sd)}).observe(document,{childList:!0,subtree:!0});function Ja(td){const rd={};return td.integrity&&(rd.integrity=td.integrity),td.referrerPolicy&&(rd.referrerPolicy=td.referrerPolicy),td.crossOrigin==="use-credentials"?rd.credentials="include":td.crossOrigin==="anonymous"?rd.credentials="omit":rd.credentials="same-origin",rd}function ed(td){if(td.ep)return;td.ep=!0;const rd=Ja(td);fetch(td.href,rd)}})();const global$1=globalThis||void 0||self;/**
* @vue/shared v3.5.0
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function makeMap(Ra,qa){const Ja=new Set(Ra.split(","));return ed=>Ja.has(ed)}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&(Ra.charCodeAt(2)>122||Ra.charCodeAt(2)<97),isModelListener=Ra=>Ra.startsWith("onUpdate:"),extend$3=Object.assign,remove$1=(Ra,qa)=>{const Ja=Ra.indexOf(qa);Ja>-1&&Ra.splice(Ja,1)},hasOwnProperty$i=Object.prototype.hasOwnProperty,hasOwn$1=(Ra,qa)=>hasOwnProperty$i.call(Ra,qa),isArray$2=Array.isArray,isMap$1=Ra=>toTypeString(Ra)==="[object Map]",isSet$1=Ra=>toTypeString(Ra)==="[object Set]",isFunction$4=Ra=>typeof Ra=="function",isString$3=Ra=>typeof Ra=="string",isSymbol$1=Ra=>typeof Ra=="symbol",isObject$5=Ra=>Ra!==null&&typeof Ra=="object",isPromise=Ra=>(isObject$5(Ra)||isFunction$4(Ra))&&isFunction$4(Ra.then)&&isFunction$4(Ra.catch),objectToString$1=Object.prototype.toString,toTypeString=Ra=>objectToString$1.call(Ra),toRawType=Ra=>toTypeString(Ra).slice(8,-1),isPlainObject$3=Ra=>toTypeString(Ra)==="[object Object]",isIntegerKey=Ra=>isString$3(Ra)&&Ra!=="NaN"&&Ra[0]!=="-"&&""+parseInt(Ra,10)===Ra,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=Ra=>{const qa=Object.create(null);return Ja=>qa[Ja]||(qa[Ja]=Ra(Ja))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(Ra=>Ra.replace(camelizeRE,(qa,Ja)=>Ja?Ja.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate$1=cacheStringFunction(Ra=>Ra.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(Ra=>Ra.charAt(0).toUpperCase()+Ra.slice(1)),toHandlerKey=cacheStringFunction(Ra=>Ra?`on${capitalize$1(Ra)}`:""),hasChanged=(Ra,qa)=>!Object.is(Ra,qa),invokeArrayFns=(Ra,...qa)=>{for(let Ja=0;Ja<Ra.length;Ja++)Ra[Ja](...qa)},def$2=(Ra,qa,Ja,ed=!1)=>{Object.defineProperty(Ra,qa,{configurable:!0,enumerable:!1,writable:ed,value:Ja})},looseToNumber=Ra=>{const qa=parseFloat(Ra);return isNaN(qa)?Ra:qa},toNumber$3=Ra=>{const qa=isString$3(Ra)?Number(Ra):NaN;return isNaN(qa)?Ra:qa};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global$1<"u"?global$1:{});function normalizeStyle(Ra){if(isArray$2(Ra)){const qa={};for(let Ja=0;Ja<Ra.length;Ja++){const ed=Ra[Ja],td=isString$3(ed)?parseStringStyle(ed):normalizeStyle(ed);if(td)for(const rd in td)qa[rd]=td[rd]}return qa}else if(isString$3(Ra)||isObject$5(Ra))return Ra}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(Ra){const qa={};return Ra.replace(styleCommentRE,"").split(listDelimiterRE).forEach(Ja=>{if(Ja){const ed=Ja.split(propertyDelimiterRE);ed.length>1&&(qa[ed[0].trim()]=ed[1].trim())}}),qa}function normalizeClass(Ra){let qa="";if(isString$3(Ra))qa=Ra;else if(isArray$2(Ra))for(let Ja=0;Ja<Ra.length;Ja++){const ed=normalizeClass(Ra[Ja]);ed&&(qa+=ed+" ")}else if(isObject$5(Ra))for(const Ja in Ra)Ra[Ja]&&(qa+=Ja+" ");return qa.trim()}function normalizeProps(Ra){if(!Ra)return null;let{class:qa,style:Ja}=Ra;return qa&&!isString$3(qa)&&(Ra.class=normalizeClass(qa)),Ja&&(Ra.style=normalizeStyle(Ja)),Ra}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(Ra){return!!Ra||Ra===""}const isRef$1=Ra=>!!(Ra&&Ra.__v_isRef===!0),toDisplayString=Ra=>isString$3(Ra)?Ra:Ra==null?"":isArray$2(Ra)||isObject$5(Ra)&&(Ra.toString===objectToString$1||!isFunction$4(Ra.toString))?isRef$1(Ra)?toDisplayString(Ra.value):JSON.stringify(Ra,replacer$1,2):String(Ra),replacer$1=(Ra,qa)=>isRef$1(qa)?replacer$1(Ra,qa.value):isMap$1(qa)?{[`Map(${qa.size})`]:[...qa.entries()].reduce((Ja,[ed,td],rd)=>(Ja[stringifySymbol(ed,rd)+" =>"]=td,Ja),{})}:isSet$1(qa)?{[`Set(${qa.size})`]:[...qa.values()].map(Ja=>stringifySymbol(Ja))}:isSymbol$1(qa)?stringifySymbol(qa):isObject$5(qa)&&!isArray$2(qa)&&!isPlainObject$3(qa)?String(
* @vue/reactivity v3.5.0
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let activeEffectScope;class EffectScope{constructor(qa=!1){this.detached=qa,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!qa&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let qa,Ja;if(this.scopes)for(qa=0,Ja=this.scopes.length;qa<Ja;qa++)this.scopes[qa].pause();for(qa=0,Ja=this.effects.length;qa<Ja;qa++)this.effects[qa].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let qa,Ja;if(this.scopes)for(qa=0,Ja=this.scopes.length;qa<Ja;qa++)this.scopes[qa].resume();for(qa=0,Ja=this.effects.length;qa<Ja;qa++)this.effects[qa].resume()}}run(qa){if(this._active){const Ja=activeEffectScope;try{return activeEffectScope=this,qa()}finally{activeEffectScope=Ja}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(qa){if(this._active){let Ja,ed;for(Ja=0,ed=this.effects.length;Ja<ed;Ja++)this.effects[Ja].stop();for(Ja=0,ed=this.cleanups.length;Ja<ed;Ja++)this.cleanups[Ja]();if(this.scopes)for(Ja=0,ed=this.scopes.length;Ja<ed;Ja++)this.scopes[Ja].stop(!0);if(!this.detached&&this.parent&&!qa){const td=this.parent.scopes.pop();td&&td!==this&&(this.parent.scopes[this.index]=td,td.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(Ra){return new EffectScope(Ra)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(Ra,qa=!1){activeEffectScope&&activeEffectScope.cleanups.push(Ra)}let activeSub;const pausedQueueEffects=new WeakSet;class ReactiveEffect{constructor(qa){this.fn=qa,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&activeEffectScope.active&&activeEffectScope.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=batchedEffect,batchedEffect=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const qa=activeSub,Ja=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=qa,shouldTrack=Ja,this.flags&=-3}}stop(){if(this.flags&1){for(let qa=this.deps;qa;qa=qa.nextDep)removeSub(qa);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}}let batchDepth=0,batchedEffect;function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;let Ra;for(;batchedEffect;){let qa=batchedEffect;for(batchedEffect=void 0;qa;){const Ja=qa.nextEffect;if(qa.nextEffect=void 0,qa.flags&=-9,qa.flags&1)try{qa.trigger()}catch(ed){Ra||(Ra=ed)}qa=Ja}}if(Ra)throw Ra}function prepareDeps(Ra){for(let qa=Ra.deps;qa;qa=qa.nextDep)qa.version=-1,qa.prevActiveLink=qa.dep.activeLink,qa.dep.activeLink=qa}function cleanupDeps(Ra){let qa,Ja=Ra.depsTail;for(let ed=Ja;ed;ed=ed.prevDep)ed.version===-1?(ed===Ja&&(Ja=ed.prevDep),removeSub(ed),removeDep(ed)):qa=ed,ed.dep.activeLink=ed.prevActiveLink,ed.prevActiveLink=void 0;Ra.deps=qa,Ra.depsTail=Ja}function isDirty(Ra){for(let qa=Ra.deps;qa;qa=qa.nextDep)if(qa.dep.version!==qa.version||qa.dep.computed&&refreshComputed(qa.dep.computed)===!1||qa.dep.version!==qa.version)return!0;return!!Ra._dirty}function refreshComputed(Ra){if(Ra.flags&2)return!1;if(Ra.flags&4&&!(Ra.flags&16)||(Ra.flags&=-17,Ra.globalVersion===globalVersion))return;Ra.globalVersion=globalVersion;const qa=Ra.dep;if(Ra.flags|=2,qa.version>0&&!Ra.isSSR&&!isDirty(Ra)){Ra.flags&=-3;return}const Ja=activeSub,ed=shouldTrack;activeSub=Ra,shouldTrack=!0;try{prepareDeps(Ra);const td=Ra.fn();(qa.version===0||hasChanged(td,Ra._value))&&(Ra._value=td,qa.version++)}catch(td){throw qa.version++,td}finally{activeSub=Ja,shouldTrac
* @vue/runtime-core v3.5.0
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const stack=[];let isWarning=!1;function warn$1(Ra,...qa){if(isWarning)return;isWarning=!0,pauseTracking();const Ja=stack.length?stack[stack.length-1].component:null,ed=Ja&&Ja.appContext.config.warnHandler,td=getComponentTrace();if(ed)callWithErrorHandling(ed,Ja,11,[Ra+qa.map(rd=>{var sd,od;return(od=(sd=rd.toString)==null?void 0:sd.call(rd))!=null?od:JSON.stringify(rd)}).join(""),Ja&&Ja.proxy,td.map(({vnode:rd})=>`at <${formatComponentName(Ja,rd.type)}>`).join(`
`),td]);else{const rd=[`[Vue warn]: ${Ra}`,...qa];td.length&&rd.push(`
`,...formatTrace(td)),console.warn(...rd)}resetTracking(),isWarning=!1}function getComponentTrace(){let Ra=stack[stack.length-1];if(!Ra)return[];const qa=[];for(;Ra;){const Ja=qa[0];Ja&&Ja.vnode===Ra?Ja.recurseCount++:qa.push({vnode:Ra,recurseCount:0});const ed=Ra.component&&Ra.component.parent;Ra=ed&&ed.vnode}return qa}function formatTrace(Ra){const qa=[];return Ra.forEach((Ja,ed)=>{qa.push(...ed===0?[]:[`
`],...formatTraceEntry(Ja))}),qa}function formatTraceEntry({vnode:Ra,recurseCount:qa}){const Ja=qa>0?`... (${qa} recursive calls)`:"",ed=Ra.component?Ra.component.parent==null:!1,td=` at <${formatComponentName(Ra.component,Ra.type,ed)}`,rd=">"+Ja;return Ra.props?[td,...formatProps(Ra.props),rd]:[td+rd]}function formatProps(Ra){const qa=[],Ja=Object.keys(Ra);return Ja.slice(0,3).forEach(ed=>{qa.push(...formatProp(ed,Ra[ed]))}),Ja.length>3&&qa.push(" ..."),qa}function formatProp(Ra,qa,Ja){return isString$3(qa)?(qa=JSON.stringify(qa),Ja?qa:[`${Ra}=${qa}`]):typeof qa=="number"||typeof qa=="boolean"||qa==null?Ja?qa:[`${Ra}=${qa}`]:isRef(qa)?(qa=formatProp(Ra,toRaw(qa.value),!0),Ja?qa:[`${Ra}=Ref<`,qa,">"]):isFunction$4(qa)?[`${Ra}=fn${qa.name?`<${qa.name}>`:""}`]:(qa=toRaw(qa),Ja?qa:[`${Ra}=`,qa])}function callWithErrorHandling(Ra,qa,Ja,ed){try{return ed?Ra(...ed):Ra()}catch(td){handleError$1(td,qa,Ja)}}function callWithAsyncErrorHandling(Ra,qa,Ja,ed){if(isFunction$4(Ra)){const td=callWithErrorHandling(Ra,qa,Ja,ed);return td&&isPromise(td)&&td.catch(rd=>{handleError$1(rd,qa,Ja)}),td}if(isArray$2(Ra)){const td=[];for(let rd=0;rd<Ra.length;rd++)td.push(callWithAsyncErrorHandling(Ra[rd],qa,Ja,ed));return td}}function handleError$1(Ra,qa,Ja,ed=!0){const td=qa?qa.vnode:null,{errorHandler:rd,throwUnhandledErrorInProduction:sd}=qa&&qa.appContext.config||EMPTY_OBJ;if(qa){let od=qa.parent;const ld=qa.proxy,cd=`https://vuejs.org/error-reference/#runtime-${Ja}`;for(;od;){const ud=od.ec;if(ud){for(let _d=0;_d<ud.length;_d++)if(ud[_d](Ra,ld,cd)===!1)return}od=od.parent}if(rd){pauseTracking(),callWithErrorHandling(rd,null,10,[Ra,ld,cd]),resetTracking();return}}logError(Ra,Ja,td,ed,sd)}function logError(Ra,qa,Ja,ed=!0,td=!1){if(td)throw Ra;console.error(Ra)}let isFlushing=!1,isFlushPending=!1;const queue$2=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$1(Ra){const qa=currentFlushPromise||resolvedPromise;return Ra?qa.then(this?Ra.bind(this):Ra):qa}function findInsertionIndex(Ra){let qa=isFlushing?flushIndex+1:0,Ja=queue$2.length;for(;qa<Ja;){const ed=qa+Ja>>>1,td=queue$2[ed],rd=getId(td);rd<Ra||rd===Ra&&td.flags&2?qa=ed+1:Ja=ed}return qa}function queueJob(Ra){if(!(Ra.flags&1)){const qa=getId(Ra),Ja=queue$2[queue$2.length-1];!Ja||!(Ra.flags&2)&&qa>=getId(Ja)?queue$2.push(Ra):queue$2.splice(findInsertionIndex(qa),0,Ra),Ra.flags&4||(Ra.flags|=1),queueFlush()}}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(Ra){isArray$2(Ra)?pendingPostFlushCbs.push(...Ra):activePostFlushCbs&&Ra.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,Ra):Ra.flags&1||(pendingPostFlushCbs.push(Ra),Ra.flags&4||(Ra.flags|=1)),queueFlush()}function flushPreFlushCbs(Ra,qa,Ja=isFlushing?flushIndex+1:0){for(;Ja<queue$2.length;Ja++){const ed=queue$2[Ja];if(ed&&ed.flags&2){if(Ra&&ed.id!==Ra.uid)continue;queue$2.splice(Ja,1),Ja--,ed(),ed.flags&=-2}}}function flushPostFlushCbs(Ra){if(pendingPostFlushCbs.length){const qa=[...new Set(pendingPostFlushCbs)].sort((Ja,ed)=>getId(Ja)-getId(ed));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...qa);return}for(activePostFlushCbs=qa,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const Ja=activePostFlushCbs[postFlushIndex];Ja.flags&8||Ja(),Ja.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId=Ra=>Ra.id==null?Ra.flags&2?-1:1/0:Ra.id;function flushJobs(Ra){isFlushPending=!1,isFlushing=!0;try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const qa=queue$2[flushIndex];qa&&!(qa.flags&8)&&(callWithErrorHandling(qa,qa.i,qa.i?15:14),qa.flags&=-2)}}finally{flushIndex=0,queue$2.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&flushJobs()}}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(Ra){const qa=currentRenderingInstance;return
* @vue/runtime-dom v3.5.0
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let policy;const tt$5=typeof window<"u"&&window.trustedTypes;if(tt$5)try{policy=tt$5.createPolicy("vue",{createHTML:Ra=>Ra})}catch{}const unsafeToTrustedHTML=policy?Ra=>policy.createHTML(Ra):Ra=>Ra,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(Ra,qa,Ja)=>{qa.insertBefore(Ra,Ja||null)},remove:Ra=>{const qa=Ra.parentNode;qa&&qa.removeChild(Ra)},createElement:(Ra,qa,Ja,ed)=>{const td=qa==="svg"?doc.createElementNS(svgNS,Ra):qa==="mathml"?doc.createElementNS(mathmlNS,Ra):Ja?doc.createElement(Ra,{is:Ja}):doc.createElement(Ra);return Ra==="select"&&ed&&ed.multiple!=null&&td.setAttribute("multiple",ed.multiple),td},createText:Ra=>doc.createTextNode(Ra),createComment:Ra=>doc.createComment(Ra),setText:(Ra,qa)=>{Ra.nodeValue=qa},setElementText:(Ra,qa)=>{Ra.textContent=qa},parentNode:Ra=>Ra.parentNode,nextSibling:Ra=>Ra.nextSibling,querySelector:Ra=>doc.querySelector(Ra),setScopeId(Ra,qa){Ra.setAttribute(qa,"")},insertStaticContent(Ra,qa,Ja,ed,td,rd){const sd=Ja?Ja.previousSibling:qa.lastChild;if(td&&(td===rd||td.nextSibling))for(;qa.insertBefore(td.cloneNode(!0),Ja),!(td===rd||!(td=td.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(ed==="svg"?`<svg>${Ra}</svg>`:ed==="mathml"?`<math>${Ra}</math>`:Ra);const od=templateContainer.content;if(ed==="svg"||ed==="mathml"){const ld=od.firstChild;for(;ld.firstChild;)od.appendChild(ld.firstChild);od.removeChild(ld)}qa.insertBefore(od,Ja)}return[sd?sd.nextSibling:qa.firstChild,Ja?Ja.previousSibling:qa.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition$1=(Ra,{slots:qa})=>h$1(BaseTransition,resolveTransitionProps(Ra),qa);Transition$1.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition$1.props=extend$3({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(Ra,qa=[])=>{isArray$2(Ra)?Ra.forEach(Ja=>Ja(...qa)):Ra&&Ra(...qa)},hasExplicitCallback=Ra=>Ra?isArray$2(Ra)?Ra.some(qa=>qa.length>1):Ra.length>1:!1;function resolveTransitionProps(Ra){const qa={};for(const Jd in Ra)Jd in DOMTransitionPropsValidators||(qa[Jd]=Ra[Jd]);if(Ra.css===!1)return qa;const{name:Ja="v",type:ed,duration:td,enterFromClass:rd=`${Ja}-enter-from`,enterActiveClass:sd=`${Ja}-enter-active`,enterToClass:od=`${Ja}-enter-to`,appearFromClass:ld=rd,appearActiveClass:cd=sd,appearToClass:ud=od,leaveFromClass:_d=`${Ja}-leave-from`,leaveActiveClass:yd=`${Ja}-leave-active`,leaveToClass:gd=`${Ja}-leave-to`}=Ra,Ed=normalizeDuration(td),Td=Ed&&Ed[0],kd=Ed&&Ed[1],{onBeforeEnter:Rd,onEnter:Nd,onEnterCancelled:Id,onLeave:Md,onLeaveCancelled:Ld,onBeforeAppear:Pd=Rd,onAppear:qd=Nd,onAppearCancelled:Yd=Id}=qa,Ud=(Jd,Zd,pf)=>{removeTransitionClass(Jd,Zd?ud:od),removeTransitionClass(Jd,Zd?cd:sd),pf&&pf()},Hd=(Jd,Zd)=>{Jd._isLeaving=!1,removeTransitionClass(Jd,_d),removeTransitionClass(Jd,gd),removeTransitionClass(Jd,yd),Zd&&Zd()},Vd=Jd=>(Zd,pf)=>{const Xd=Jd?qd:Nd,hf=()=>Ud(Zd,Jd,pf);callHook(Xd,[Zd,hf]),nextFrame(()=>{removeTransitionClass(Zd,Jd?ld:rd),addTransitionClass(Zd,Jd?ud:od),hasExplicitCallback(Xd)||whenTransitionEnds(Zd,ed,Td,hf)})};return extend$3(qa,{onBeforeEnter(Jd){callHook(Rd,[Jd]),addTransitionClass(Jd,rd),addTransitionClass(Jd,sd)},onBeforeAppear(Jd){callHook(Pd,[Jd]),addTransitionClass(Jd,ld),addTransitionClass(Jd,cd)},onEnter:Vd(!1),onAppear:Vd(!0),onLeave(Jd,Zd){Jd._isLeaving=!0;const pf=()=>Hd(Jd,Zd);addTransitionClass(Jd,_d),addTransitionClass(Jd,yd),forceReflow(),nextFrame(()=>{Jd._isLeaving&&(removeTransitionClass(Jd,_d),addTransitionClass(Jd,gd),hasExplicitCallback(Md)||whenTransitionEnds(Jd,ed,kd,pf))}),callHook(Md,[Jd,pf])},onEnterCancelled(Jd){Ud(Jd,!1),callHook(Id,[Jd])
`).map(td=>{const rd=td.match(/^\s+/);if(rd===null)return td;const[sd]=rd;return sd.length>=ed.length?td.slice(ed.length):td}).join(`
`)}let _Tokenizer$1=class{constructor(qa){n1(this,"options");n1(this,"rules");n1(this,"lexer");this.options=qa||_defaults$1}space(qa){const Ja=this.rules.block.newline.exec(qa);if(Ja&&Ja[0].length>0)return{type:"space",raw:Ja[0]}}code(qa){const Ja=this.rules.block.code.exec(qa);if(Ja){const ed=Ja[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:Ja[0],codeBlockStyle:"indented",text:this.options.pedantic?ed:rtrim$1(ed,`
`)}}}fences(qa){const Ja=this.rules.block.fences.exec(qa);if(Ja){const ed=Ja[0],td=indentCodeCompensation$1(ed,Ja[3]||"");return{type:"code",raw:ed,lang:Ja[2]?Ja[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):Ja[2],text:td}}}heading(qa){const Ja=this.rules.block.heading.exec(qa);if(Ja){let ed=Ja[2].trim();if(/#$/.test(ed)){const td=rtrim$1(ed,"#");(this.options.pedantic||!td||/ $/.test(td))&&(ed=td.trim())}return{type:"heading",raw:Ja[0],depth:Ja[1].length,text:ed,tokens:this.lexer.inline(ed)}}}hr(qa){const Ja=this.rules.block.hr.exec(qa);if(Ja)return{type:"hr",raw:rtrim$1(Ja[0],`
`)}}blockquote(qa){const Ja=this.rules.block.blockquote.exec(qa);if(Ja){let ed=rtrim$1(Ja[0],`
`).split(`
`),td="",rd="";const sd=[];for(;ed.length>0;){let od=!1;const ld=[];let cd;for(cd=0;cd<ed.length;cd++)if(/^ {0,3}>/.test(ed[cd]))ld.push(ed[cd]),od=!0;else if(!od)ld.push(ed[cd]);else break;ed=ed.slice(cd);const ud=ld.join(`
`),_d=ud.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");td=td?`${td}
${ud}`:ud,rd=rd?`${rd}
${_d}`:_d;const yd=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(_d,sd,!0),this.lexer.state.top=yd,ed.length===0)break;const gd=sd[sd.length-1];if((gd==null?void 0:gd.type)==="code")break;if((gd==null?void 0:gd.type)==="blockquote"){const Ed=gd,Td=Ed.raw+`
`+ed.join(`
`),kd=this.blockquote(Td);sd[sd.length-1]=kd,td=td.substring(0,td.length-Ed.raw.length)+kd.raw,rd=rd.substring(0,rd.length-Ed.text.length)+kd.text;break}else if((gd==null?void 0:gd.type)==="list"){const Ed=gd,Td=Ed.raw+`
`+ed.join(`
`),kd=this.list(Td);sd[sd.length-1]=kd,td=td.substring(0,td.length-gd.raw.length)+kd.raw,rd=rd.substring(0,rd.length-Ed.raw.length)+kd.raw,ed=Td.substring(sd[sd.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:td,tokens:sd,text:rd}}}list(qa){let Ja=this.rules.block.list.exec(qa);if(Ja){let ed=Ja[1].trim();const td=ed.length>1,rd={type:"list",raw:"",ordered:td,start:td?+ed.slice(0,-1):"",loose:!1,items:[]};ed=td?`\\d{1,9}\\${ed.slice(-1)}`:`\\${ed}`,this.options.pedantic&&(ed=td?ed:"[*+-]");const sd=new RegExp(`^( {0,3}${ed})((?:[ ][^\\n]*)?(?:\\n|$))`);let od=!1;for(;qa;){let ld=!1,cd="",ud="";if(!(Ja=sd.exec(qa))||this.rules.block.hr.test(qa))break;cd=Ja[0],qa=qa.substring(cd.length);let _d=Ja[2].split(`
`,1)[0].replace(/^\t+/,Rd=>" ".repeat(3*Rd.length)),yd=qa.split(`
`,1)[0],gd=!_d.trim(),Ed=0;if(this.options.pedantic?(Ed=2,ud=_d.trimStart()):gd?Ed=Ja[1].length+1:(Ed=Ja[2].search(/[^ ]/),Ed=Ed>4?1:Ed,ud=_d.slice(Ed),Ed+=Ja[1].length),gd&&/^[ \t]*$/.test(yd)&&(cd+=yd+`
`,qa=qa.substring(yd.length+1),ld=!0),!ld){const Rd=new RegExp(`^ {0,${Math.min(3,Ed-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Nd=new RegExp(`^ {0,${Math.min(3,Ed-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Id=new RegExp(`^ {0,${Math.min(3,Ed-1)}}(?:\`\`\`|~~~)`),Md=new RegExp(`^ {0,${Math.min(3,Ed-1)}}#`);for(;qa;){const Ld=qa.split(`
`,1)[0];let Pd;if(yd=Ld,this.options.pedantic?(yd=yd.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),Pd=yd):Pd=yd.replace(/\t/g," "),Id.test(yd)||Md.test(yd)||Rd.test(yd)||Nd.test(yd))break;if(Pd.search(/[^ ]/)>=Ed||!yd.trim())ud+=`
`+Pd.slice(Ed);else{if(gd||_d.replace(/\t/g," ").search(/[^ ]/)>=4||Id.test(_d)||Md.test(_d)||Nd.test(_d))break;ud+=`
`+yd}!gd&&!yd.trim()&&(gd=!0),cd+=Ld+`
`,qa=qa.substring(Ld.length+1),_d=Pd.slice(Ed)}}rd.loose||(od?rd.loose=!0:/\n[ \t]*\n[ \t]*$/.test(cd)&&(od=!0));let Td=null,kd;this.options.gfm&&(Td=/^\[[ xX]\] /.exec(ud),Td&&(kd=Td[0]!=="[ ] ",ud=ud.replace(/^\[[ xX]\] +/,""))),rd.items.push({type:"list_item",raw:cd,task:!!Td,checked:kd,loose:!1,text:ud,tokens:[]}),rd.raw+=cd}rd.items[rd.items.length-1].raw=rd.items[rd.items.length-1].raw.trimEnd(),rd.items[rd.items.length-1].text=rd.items[rd.items.length-1].text.trimEnd(),rd.raw=rd.raw.trimEnd();for(let ld=0;ld<rd.items.length;ld++)if(this.lexer.state.top=!1,rd.items[ld].tokens=this.lexer.blockTokens(rd.items[ld].text,[]),!rd.loose){const cd=rd.items[ld].tokens.filter(_d=>_d.type==="space"),ud=cd.length>0&&cd.some(_d=>/\n.*\n/.test(_d.raw));rd.loose=ud}if(rd.loose)for(let ld=0;ld<rd.items.length;ld++)rd.items[ld].loose=!0;return rd}}html(qa){const Ja=this.rules.block.html.exec(qa);if(Ja)return{type:"html",block:!0,raw:Ja[0],pre:Ja[1]==="pre"||Ja[1]==="script"||Ja[1]==="style",text:Ja[0]}}def(qa){const Ja=this.rules.block.def.exec(qa);if(Ja){const ed=Ja[1].toLowerCase().replace(/\s+/g," "),td=Ja[2]?Ja[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",rd=Ja[3]?Ja[3].substring(1,Ja[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):Ja[3];return{type:"def",tag:ed,raw:Ja[0],href:td,title:rd}}}table(qa){const Ja=this.rules.block.table.exec(qa);if(!Ja||!/[:|]/.test(Ja[2]))return;const ed=splitCells$1(Ja[1]),td=Ja[2].replace(/^\||\| *$/g,"").split("|"),rd=Ja[3]&&Ja[3].trim()?Ja[3].replace(/\n[ \t]*$/,"").split(`
`):[],sd={type:"table",raw:Ja[0],header:[],align:[],rows:[]};if(ed.length===td.length){for(const od of td)/^ *-+: *$/.test(od)?sd.align.push("right"):/^ *:-+: *$/.test(od)?sd.align.push("center"):/^ *:-+ *$/.test(od)?sd.align.push("left"):sd.align.push(null);for(let od=0;od<ed.length;od++)sd.header.push({text:ed[od],tokens:this.lexer.inline(ed[od]),header:!0,align:sd.align[od]});for(const od of rd)sd.rows.push(splitCells$1(od,sd.header.length).map((ld,cd)=>({text:ld,tokens:this.lexer.inline(ld),header:!1,align:sd.align[cd]})));return sd}}lheading(qa){const Ja=this.rules.block.lheading.exec(qa);if(Ja)return{type:"heading",raw:Ja[0],depth:Ja[2].charAt(0)==="="?1:2,text:Ja[1],tokens:this.lexer.inline(Ja[1])}}paragraph(qa){const Ja=this.rules.block.paragraph.exec(qa);if(Ja){const ed=Ja[1].charAt(Ja[1].length-1)===`
`?Ja[1].slice(0,-1):Ja[1];return{type:"paragraph",raw:Ja[0],text:ed,tokens:this.lexer.inline(ed)}}}text(qa){const Ja=this.rules.block.text.exec(qa);if(Ja)return{type:"text",raw:Ja[0],text:Ja[0],tokens:this.lexer.inline(Ja[0])}}escape(qa){const Ja=this.rules.inline.escape.exec(qa);if(Ja)return{type:"escape",raw:Ja[0],text:escape$1$2(Ja[1])}}tag(qa){const Ja=this.rules.inline.tag.exec(qa);if(Ja)return!this.lexer.state.inLink&&/^<a /i.test(Ja[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(Ja[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ja[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ja[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:Ja[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:Ja[0]}}link(qa){const Ja=this.rules.inline.link.exec(qa);if(Ja){const ed=Ja[2].trim();if(!this.options.pedantic&&/^</.test(ed)){if(!/>$/.test(ed))return;const sd=rtrim$1(ed.slice(0,-1),"\\");if((ed.length-sd.length)%2===0)return}else{const sd=findClosingBracket$1(Ja[2],"()");if(sd>-1){const ld=(Ja[0].indexOf("!")===0?5:4)+Ja[1].length+sd;Ja[2]=Ja[2].substring(0,sd),Ja[0]=Ja[0].substring(0,ld).trim(),Ja[3]=""}}let td=Ja[2],rd="";if(this.options.pedantic){const sd=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(td);sd&&(td=sd[1],rd=sd[3])}else rd=Ja[3]?Ja[3].slice(1,-1):"";return td=td.trim(),/^</.test(td)&&(this.options.pedantic&&!/>$/.test(ed)?td=td.slice(1):td=td.slice(1,-1)),outputLink$1(Ja,{href:td&&td.replace(this.rules.inline.anyPunctuation,"$1"),title:rd&&rd.replace(this.rules.inline.anyPunctuation,"$1")},Ja[0],this.lexer)}}reflink(qa,Ja){let ed;if((ed=this.rules.inline.reflink.exec(qa))||(ed=this.rules.inline.nolink.exec(qa))){const td=(ed[2]||ed[1]).replace(/\s+/g," "),rd=Ja[td.toLowerCase()];if(!rd){const sd=ed[0].charAt(0);return{type:"text",raw:sd,text:sd}}return outputLink$1(ed,rd,ed[0],this.lexer)}}emStrong(qa,Ja,ed=""){let td=this.rules.inline.emStrongLDelim.exec(qa);if(!td||td[3]&&ed.match(/[\p{L}\p{N}]/u))return;if(!(td[1]||td[2]||"")||!ed||this.rules.inline.punctuation.exec(ed)){const sd=[...td[0]].length-1;let od,ld,cd=sd,ud=0;const _d=td[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_d.lastIndex=0,Ja=Ja.slice(-1*qa.length+sd);(td=_d.exec(Ja))!=null;){if(od=td[1]||td[2]||td[3]||td[4]||td[5]||td[6],!od)continue;if(ld=[...od].length,td[3]||td[4]){cd+=ld;continue}else if((td[5]||td[6])&&sd%3&&!((sd+ld)%3)){ud+=ld;continue}if(cd-=ld,cd>0)continue;ld=Math.min(ld,ld+cd+ud);const yd=[...td[0]][0].length,gd=qa.slice(0,sd+td.index+yd+ld);if(Math.min(sd,ld)%2){const Td=gd.slice(1,-1);return{type:"em",raw:gd,text:Td,tokens:this.lexer.inlineTokens(Td)}}const Ed=gd.slice(2,-2);return{type:"strong",raw:gd,text:Ed,tokens:this.lexer.inlineTokens(Ed)}}}}codespan(qa){const Ja=this.rules.inline.code.exec(qa);if(Ja){let ed=Ja[2].replace(/\n/g," ");const td=/[^ ]/.test(ed),rd=/^ /.test(ed)&&/ $/.test(ed);return td&&rd&&(ed=ed.substring(1,ed.length-1)),ed=escape$1$2(ed,!0),{type:"codespan",raw:Ja[0],text:ed}}}br(qa){const Ja=this.rules.inline.br.exec(qa);if(Ja)return{type:"br",raw:Ja[0]}}del(qa){const Ja=this.rules.inline.del.exec(qa);if(Ja)return{type:"del",raw:Ja[0],text:Ja[2],tokens:this.lexer.inlineTokens(Ja[2])}}autolink(qa){const Ja=this.rules.inline.autolink.exec(qa);if(Ja){let ed,td;return Ja[2]==="@"?(ed=escape$1$2(Ja[1]),td="mailto:"+ed):(ed=escape$1$2(Ja[1]),td=ed),{type:"link",raw:Ja[0],text:ed,href:td,tokens:[{type:"text",raw:ed,text:ed}]}}}url(qa){var ed;let Ja;if(Ja=this.rules.inline.url.exec(qa)){let td,rd;if(Ja[2]==="@")td=escape$1$2(Ja[0]),rd="mailto:"+td;else{let sd;do sd=Ja[0],Ja[0]=((ed=this.rules.inline._backpedal.exec(Ja[0]))==null?void 0:ed[0])??"";while(sd!==Ja[0]);td=escape$1$2(Ja[0]),Ja[1]==="www."?rd="http://"+Ja[0]:rd=Ja[0]}return{type:"link",raw:Ja[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}inlineText(qa){const Ja=this.rules.inline.text.exec(qa);if(Ja){let ed;return this.lexer.state.inRawBl
]`).replace("lheading",lheading$1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape$5=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,inlineCode$1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br$4=/^( {2,}|\\)\n(?!\s*$)/,inlineText$1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_punctuation$1="\\p{P}\\p{S}",punctuation$1=edit$1(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,_punctuation$1).getRegex(),blockSkip$1=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,emStrongLDelim$1=edit$1(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,_punctuation$1).getRegex(),emStrongRDelimAst$1=edit$1("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,_punctuation$1).getRegex(),emStrongRDelimUnd$1=edit$1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,_punctuation$1).getRegex(),anyPunctuation$1=edit$1(/\\([punct])/,"gu").replace(/punct/g,_punctuation$1).getRegex(),autolink$1=edit$1(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_inlineComment$1=edit$1(_comment$1).replace("(?:-->|$)","-->").getRegex(),tag$1=edit$1("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_inlineComment$1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_inlineLabel$1=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,link$1=edit$1(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",_inlineLabel$1).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),reflink$1=edit$1(/^!?\[(label)\]\[(ref)\]/).replace("label",_inlineLabel$1).replace("ref",_blockLabel$1).getRegex(),nolink$1=edit$1(/^!?\[(ref)\](?:\[\])?/).replace("ref",_blockLabel$1).getRegex(),reflinkSearch$1=edit$1("reflink|nolink(?!\\()","g").replace("reflink",reflink$1).replace("nolink",nolink$1).getRegex(),inlineNormal$1={_backpedal:noopTest$1,anyPunctuation:anyPunctuation$1,autolink:autolink$1,blockSkip:blockSkip$1,br:br$4,code:inlineCode$1,del:noopTest$1,emStrongLDelim:emStrongLDelim$1,emStrongRDelimAst:emStrongRDelimAst$1,emStrongRDelimUnd:emStrongRDelimUnd$1,escape:escape$5,link:link$1,nolink:nolink$1,punctuation:punctuation$1,reflink:reflink$1,reflinkSearch:reflinkSearch$1,tag:tag$1,text:inlineText$1,url:noopTest$1},inlinePedantic$1={...inlineNormal$1,link:edit$1(/^!?\[(label)\]\((.*?)\)/).replace("label",_inlineLabel$1).getRegex(),reflink:edit$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_inlineLabel$1).getRegex()},inlineGfm$1={...inlineNormal$1,escape:edit$1(escape$5).replace("])","~|])").getRegex(),url:edit$1(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},inlineBreaks$1={...inlineGfm$1,br:edit$1(br$4).replace("{2,}","*").
`),this.blockTokens(qa,this.tokens);for(let Ja=0;Ja<this.inlineQueue.length;Ja++){const ed=this.inlineQueue[Ja];this.inlineTokens(ed.src,ed.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,Ja=[],ed=!1){this.options.pedantic&&(qa=qa.replace(/\t/g," ").replace(/^ +$/gm,""));let td,rd,sd;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(od=>(td=od.call({lexer:this},qa,Ja))?(qa=qa.substring(td.raw.length),Ja.push(td),!0):!1))){if(td=this.tokenizer.space(qa)){qa=qa.substring(td.raw.length),td.raw.length===1&&Ja.length>0?Ja[Ja.length-1].raw+=`
`:Ja.push(td);continue}if(td=this.tokenizer.code(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&(rd.type==="paragraph"||rd.type==="text")?(rd.raw+=`
`+td.raw,rd.text+=`
`+td.text,this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(td=this.tokenizer.fences(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.heading(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.hr(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.blockquote(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.list(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.html(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.def(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&(rd.type==="paragraph"||rd.type==="text")?(rd.raw+=`
`+td.raw,rd.text+=`
`+td.raw,this.inlineQueue[this.inlineQueue.length-1].src=rd.text):this.tokens.links[td.tag]||(this.tokens.links[td.tag]={href:td.href,title:td.title});continue}if(td=this.tokenizer.table(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.lheading(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(sd=qa,this.options.extensions&&this.options.extensions.startBlock){let od=1/0;const ld=qa.slice(1);let cd;this.options.extensions.startBlock.forEach(ud=>{cd=ud.call({lexer:this},ld),typeof cd=="number"&&cd>=0&&(od=Math.min(od,cd))}),od<1/0&&od>=0&&(sd=qa.substring(0,od+1))}if(this.state.top&&(td=this.tokenizer.paragraph(sd))){rd=Ja[Ja.length-1],ed&&(rd==null?void 0:rd.type)==="paragraph"?(rd.raw+=`
`+td.raw,rd.text+=`
`+td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td),ed=sd.length!==qa.length,qa=qa.substring(td.raw.length);continue}if(td=this.tokenizer.text(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&rd.type==="text"?(rd.raw+=`
`+td.raw,rd.text+=`
`+td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(qa){const od="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(od);break}else throw new Error(od)}}return this.state.top=!0,Ja}inline(qa,Ja=[]){return this.inlineQueue.push({src:qa,tokens:Ja}),Ja}inlineTokens(qa,Ja=[]){let ed,td,rd,sd=qa,od,ld,cd;if(this.tokens.links){const ud=Object.keys(this.tokens.links);if(ud.length>0)for(;(od=this.tokenizer.rules.inline.reflinkSearch.exec(sd))!=null;)ud.includes(od[0].slice(od[0].lastIndexOf("[")+1,-1))&&(sd=sd.slice(0,od.index)+"["+"a".repeat(od[0].length-2)+"]"+sd.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(od=this.tokenizer.rules.inline.blockSkip.exec(sd))!=null;)sd=sd.slice(0,od.index)+"["+"a".repeat(od[0].length-2)+"]"+sd.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(od=this.tokenizer.rules.inline.anyPunctuation.exec(sd))!=null;)sd=sd.slice(0,od.index)+"++"+sd.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(ld||(cd=""),ld=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ud=>(ed=ud.call({lexer:this},qa,Ja))?(qa=qa.substring(ed.raw.length),Ja.push(ed),!0):!1))){if(ed=this.tokenizer.escape(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.tag(qa)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.link(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.emStrong(qa,sd,cd)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.codespan(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.br(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.del(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.autolink(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(!this.state.inLink&&(ed=this.tokenizer.url(qa))){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(rd=qa,this.options.extensions&&this.options.extensions.startInline){let ud=1/0;const _d=qa.slice(1);let yd;this.options.extensions.startInline.forEach(gd=>{yd=gd.call({lexer:this},_d),typeof yd=="number"&&yd>=0&&(ud=Math.min(ud,yd))}),ud<1/0&&ud>=0&&(rd=qa.substring(0,ud+1))}if(ed=this.tokenizer.inlineText(rd)){qa=qa.substring(ed.raw.length),ed.raw.slice(-1)!=="_"&&(cd=ed.raw.slice(-1)),ld=!0,td=Ja[Ja.length-1],td&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(qa){const ud="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ud);break}else throw new Error(ud)}}return Ja}},_Renderer$1=class{constructor(qa){n1(this,"options");n1(this,"parser");this.options=qa||_defaults$1}space(qa){return""}code({text:qa,lang:Ja,escaped:ed}){var sd;const td=(sd=(Ja||"").match(/^\S*/))==null?void 0:sd[0],rd=qa.replace(/\n$/,"")+`
`;return td?'<pre><code class="language-'+escape$1$2(td)+'">'+(ed?rd:escape$1$2(rd,!0))+`</code></pre>
`:"<pre><code>"+(ed?rd:escape$1$2(rd,!0))+`</code></pre>
`}blockquote({tokens:qa}){return`<blockquote>
${this.parser.parse(qa)}</blockquote>
`}html({text:qa}){return qa}heading({tokens:qa,depth:Ja}){return`<h${Ja}>${this.parser.parseInline(qa)}</h${Ja}>
`}hr(qa){return`<hr>
`}list(qa){const Ja=qa.ordered,ed=qa.start;let td="";for(let od=0;od<qa.items.length;od++){const ld=qa.items[od];td+=this.listitem(ld)}const rd=Ja?"ol":"ul",sd=Ja&&ed!==1?' start="'+ed+'"':"";return"<"+rd+sd+`>
`+td+"</"+rd+`>
`}listitem(qa){let Ja="";if(qa.task){const ed=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=ed+" "+qa.tokens[0].text,qa.tokens[0].tokens&&qa.tokens[0].tokens.length>0&&qa.tokens[0].tokens[0].type==="text"&&(qa.tokens[0].tokens[0].text=ed+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:ed+" ",text:ed+" "}):Ja+=ed+" "}return Ja+=this.parser.parse(qa.tokens,!!qa.loose),`<li>${Ja}</li>
`}checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return`<p>${this.parser.parseInline(qa)}</p>
`}table(qa){let Ja="",ed="";for(let rd=0;rd<qa.header.length;rd++)ed+=this.tablecell(qa.header[rd]);Ja+=this.tablerow({text:ed});let td="";for(let rd=0;rd<qa.rows.length;rd++){const sd=qa.rows[rd];ed="";for(let od=0;od<sd.length;od++)ed+=this.tablecell(sd[od]);td+=this.tablerow({text:ed})}return td&&(td=`<tbody>${td}</tbody>`),`<table>
<thead>
`+Ja+`</thead>
`+td+`</table>
`}tablerow({text:qa}){return`<tr>
${qa}</tr>
`}tablecell(qa){const Ja=this.parser.parseInline(qa.tokens),ed=qa.header?"th":"td";return(qa.align?`<${ed} align="${qa.align}">`:`<${ed}>`)+Ja+`</${ed}>
`}strong({tokens:qa}){return`<strong>${this.parser.parseInline(qa)}</strong>`}em({tokens:qa}){return`<em>${this.parser.parseInline(qa)}</em>`}codespan({text:qa}){return`<code>${qa}</code>`}br(qa){return"<br>"}del({tokens:qa}){return`<del>${this.parser.parseInline(qa)}</del>`}link({href:qa,title:Ja,tokens:ed}){const td=this.parser.parseInline(ed),rd=cleanUrl$1(qa);if(rd===null)return td;qa=rd;let sd='<a href="'+qa+'"';return Ja&&(sd+=' title="'+Ja+'"'),sd+=">"+td+"</a>",sd}image({href:qa,title:Ja,text:ed}){const td=cleanUrl$1(qa);if(td===null)return ed;qa=td;let rd=`<img src="${qa}" alt="${ed}"`;return Ja&&(rd+=` title="${Ja}"`),rd+=">",rd}text(qa){return"tokens"in qa&&qa.tokens?this.parser.parseInline(qa.tokens):qa.text}},_TextRenderer$1=class{strong({text:qa}){return qa}em({text:qa}){return qa}codespan({text:qa}){return qa}del({text:qa}){return qa}html({text:qa}){return qa}text({text:qa}){return qa}link({text:qa}){return""+qa}image({text:qa}){return""+qa}br(){return""}},_Parser$1=class hT{constructor(qa){n1(this,"options");n1(this,"renderer");n1(this,"textRenderer");this.options=qa||_defaults$1,this.options.renderer=this.options.renderer||new _Renderer$1,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _TextRenderer$1}static parse(qa,Ja){return new hT(Ja).parse(qa)}static parseInline(qa,Ja){return new hT(Ja).parseInline(qa)}parse(qa,Ja=!0){let ed="";for(let td=0;td<qa.length;td++){const rd=qa[td];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[rd.type]){const od=rd,ld=this.options.extensions.renderers[od.type].call({parser:this},od);if(ld!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(od.type)){ed+=ld||"";continue}}const sd=rd;switch(sd.type){case"space":{ed+=this.renderer.space(sd);continue}case"hr":{ed+=this.renderer.hr(sd);continue}case"heading":{ed+=this.renderer.heading(sd);continue}case"code":{ed+=this.renderer.code(sd);continue}case"table":{ed+=this.renderer.table(sd);continue}case"blockquote":{ed+=this.renderer.blockquote(sd);continue}case"list":{ed+=this.renderer.list(sd);continue}case"html":{ed+=this.renderer.html(sd);continue}case"paragraph":{ed+=this.renderer.paragraph(sd);continue}case"text":{let od=sd,ld=this.renderer.text(od);for(;td+1<qa.length&&qa[td+1].type==="text";)od=qa[++td],ld+=`
`+this.renderer.text(od);Ja?ed+=this.renderer.paragraph({type:"paragraph",raw:ld,text:ld,tokens:[{type:"text",raw:ld,text:ld}]}):ed+=ld;continue}default:{const od='Token with "'+sd.type+'" type was not found.';if(this.options.silent)return console.error(od),"";throw new Error(od)}}}return ed}parseInline(qa,Ja){Ja=Ja||this.renderer;let ed="";for(let td=0;td<qa.length;td++){const rd=qa[td];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[rd.type]){const od=this.options.extensions.renderers[rd.type].call({parser:this},rd);if(od!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(rd.type)){ed+=od||"";continue}}const sd=rd;switch(sd.type){case"escape":{ed+=Ja.text(sd);break}case"html":{ed+=Ja.html(sd);break}case"link":{ed+=Ja.link(sd);break}case"image":{ed+=Ja.image(sd);break}case"strong":{ed+=Ja.strong(sd);break}case"em":{ed+=Ja.em(sd);break}case"codespan":{ed+=Ja.codespan(sd);break}case"br":{ed+=Ja.br(sd);break}case"del":{ed+=Ja.del(sd);break}case"text":{ed+=Ja.text(sd);break}default:{const od='Token with "'+sd.type+'" type was not found.';if(this.options.silent)return console.error(od),"";throw new Error(od)}}}return ed}};var pT;let _Hooks$1=(pT=class{constructor(qa){n1(this,"options");n1(this,"block");this.options=qa||_defaults$1}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}provideLexer(){return this.block?_Lexer$1.lex:_Lexer$1.lexInline}provideParser(){return this.block?_Parser$1.parse:_Parser$1.parseInline}},n1(pT,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),pT),Marked$1=class{constructor(...qa){n1(this,"defaults",_getDefaults$1());n1(this,"options",this.setOptions);n1(this,"parse",this.parseMarkdown(!0));n1(this,"parseInline",this.parseMarkdown(!1));n1(this,"Parser",_Parser$1);n1(this,"Renderer",_Renderer$1);n1(this,"TextRenderer",_TextRenderer$1);n1(this,"Lexer",_Lexer$1);n1(this,"Tokenizer",_Tokenizer$1);n1(this,"Hooks",_Hooks$1);this.use(...qa)}walkTokens(qa,Ja){var td,rd;let ed=[];for(const sd of qa)switch(ed=ed.concat(Ja.call(this,sd)),sd.type){case"table":{const od=sd;for(const ld of od.header)ed=ed.concat(this.walkTokens(ld.tokens,Ja));for(const ld of od.rows)for(const cd of ld)ed=ed.concat(this.walkTokens(cd.tokens,Ja));break}case"list":{const od=sd;ed=ed.concat(this.walkTokens(od.items,Ja));break}default:{const od=sd;(rd=(td=this.defaults.extensions)==null?void 0:td.childTokens)!=null&&rd[od.type]?this.defaults.extensions.childTokens[od.type].forEach(ld=>{const cd=od[ld].flat(1/0);ed=ed.concat(this.walkTokens(cd,Ja))}):od.tokens&&(ed=ed.concat(this.walkTokens(od.tokens,Ja)))}}return ed}use(...qa){const Ja=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(ed=>{const td={...ed};if(td.async=this.defaults.async||td.async||!1,ed.extensions&&(ed.extensions.forEach(rd=>{if(!rd.name)throw new Error("extension name required");if("renderer"in rd){const sd=Ja.renderers[rd.name];sd?Ja.renderers[rd.name]=function(...od){let ld=rd.renderer.apply(this,od);return ld===!1&&(ld=sd.apply(this,od)),ld}:Ja.renderers[rd.name]=rd.renderer}if("tokenizer"in rd){if(!rd.level||rd.level!=="block"&&rd.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const sd=Ja[rd.level];sd?sd.unshift(rd.tokenizer):Ja[rd.level]=[rd.tokenizer],rd.start&&(rd.level==="block"?Ja.startBlock?Ja.startBlock.push(rd.start):Ja.startBlock=[rd.start]:rd.level==="inline"&&(Ja.startInline?Ja.startInline.push(rd.start):Ja.startInline=[rd.start]))}"childTokens"in rd&&rd.childTokens&&(Ja.childTokens[rd.name]=rd.childTokens)}),td.extensions=Ja),ed.renderer){const rd=this.defaults.renderer||new _Renderer$1(this.defaults);for(const sd in ed.renderer){if(!(sd in rd))throw new Error(`renderer '${sd}' does not exist`);if(["options","parser"].includes(sd))continue;const od=sd,ld=ed.renderer[od],cd=rd[od];rd[od]=(...ud)=>{let _d=ld.apply(rd,ud);return _d===!1&&(_d=cd.apply(rd,ud)),_d||""}}td.renderer=rd}if(ed.tokenizer){const rd=this.defaults.tokenizer||new _Tokenizer$1(
Please report this to https://github.com/markedjs/marked.`,qa){const td="<p>An error occurred:</p><pre>"+escape$1$2(ed.message+"",!0)+"</pre>";return Ja?Promise.resolve(td):td}if(Ja)return Promise.reject(ed);throw ed}}};const markedInstance$1=new Marked$1;function marked$1(Ra,qa){return markedInstance$1.parse(Ra,qa)}marked$1.options=marked$1.setOptions=function(Ra){return markedInstance$1.setOptions(Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.getDefaults=_getDefaults$1;marked$1.defaults=_defaults$1;marked$1.use=function(...Ra){return markedInstance$1.use(...Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.walkTokens=function(Ra,qa){return markedInstance$1.walkTokens(Ra,qa)};marked$1.parseInline=markedInstance$1.parseInline;marked$1.Parser=_Parser$1;marked$1.parser=_Parser$1.parse;marked$1.Renderer=_Renderer$1;marked$1.TextRenderer=_TextRenderer$1;marked$1.Lexer=_Lexer$1;marked$1.lexer=_Lexer$1.lex;marked$1.Tokenizer=_Tokenizer$1;marked$1.Hooks=_Hooks$1;marked$1.parse=marked$1;marked$1.options;marked$1.setOptions;marked$1.use;marked$1.walkTokens;marked$1.parseInline;_Parser$1.parse;_Lexer$1.lex;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(Ra){return Ra&&Ra.__esModule&&Object.prototype.hasOwnProperty.call(Ra,"default")?Ra.default:Ra}function getAugmentedNamespace(Ra){if(Ra.__esModule)return Ra;var qa=Ra.default;if(typeof qa=="function"){var Ja=function ed(){return this instanceof ed?Reflect.construct(qa,arguments,this.constructor):qa.apply(this,arguments)};Ja.prototype=qa.prototype}else Ja={};return Object.defineProperty(Ja,"__esModule",{value:!0}),Object.keys(Ra).forEach(function(ed){var td=Object.getOwnPropertyDescriptor(Ra,ed);Object.defineProperty(Ja,ed,td.get?td:{enumerable:!0,get:function(){return Ra[ed]}})}),Ja}var codemirror={exports:{}},hasRequiredCodemirror;function requireCodemirror(){return hasRequiredCodemirror||(hasRequiredCodemirror=1,function(Ra,qa){(function(Ja,ed){Ra.exports=ed()})(commonjsGlobal,function(){var Ja=navigator.userAgent,ed=navigator.platform,td=/gecko\/\d/i.test(Ja),rd=/MSIE \d/.test(Ja),sd=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ja),od=/Edge\/(\d+)/.exec(Ja),ld=rd||sd||od,cd=ld&&(rd?document.documentMode||6:+(od||sd)[1]),ud=!od&&/WebKit\//.test(Ja),_d=ud&&/Qt\/\d+\.\d+/.test(Ja),yd=!od&&/Chrome\/(\d+)/.exec(Ja),gd=yd&&+yd[1],Ed=/Opera\//.test(Ja),Td=/Apple Computer/.test(navigator.vendor),kd=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ja),Rd=/PhantomJS/.test(Ja),Nd=Td&&(/Mobile\/\w+/.test(Ja)||navigator.maxTouchPoints>2),Id=/Android/.test(Ja),Md=Nd||Id||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ja),Ld=Nd||/Mac/.test(ed),Pd=/\bCrOS\b/.test(Ja),qd=/win/i.test(ed),Yd=Ed&&Ja.match(/Version\/(\d*\.\d*)/);Yd&&(Yd=Number(Yd[1])),Yd&&Yd>=15&&(Ed=!1,ud=!0);var Ud=Ld&&(_d||Ed&&(Yd==null||Yd<12.11)),Hd=td||ld&&cd>=9;function Vd(Ad){return new RegExp("(^|\\s)"+Ad+"(?:$|\\s)\\s*")}var Jd=function(Ad,Bd){var Wd=Ad.className,zd=Vd(Bd).exec(Wd);if(zd){var Qd=Wd.slice(zd.index+zd[0].length);Ad.className=Wd.slice(0,zd.index)+(Qd?zd[1]+Qd:"")}};function Zd(Ad){for(var Bd=Ad.childNodes.length;Bd>0;--Bd)Ad.removeChild(Ad.firstChild);return Ad}function pf(Ad,Bd){return Zd(Ad).appendChild(Bd)}function Xd(Ad,Bd,Wd,zd){var Qd=document.createElement(Ad);if(Wd&&(Qd.className=Wd),zd&&(Qd.style.cssText=zd),typeof Bd=="string")Qd.appendChild(document.createTextNode(Bd));else if(Bd)for(var Ef=0;Ef<Bd.length;++Ef)Qd.appendChild(Bd[Ef]);return Qd}function hf(Ad,Bd,Wd,zd){var Qd=Xd(Ad,Bd,Wd,zd);return Qd.setAttribute("role","presentation"),Qd}var mf;document.createRange?mf=function(Ad,Bd,Wd,zd){var Qd=document.createRange();return Qd.setEnd(zd||Ad,Wd),Qd.setStart(Ad,Bd),Qd}:mf=function(Ad,Bd,Wd){var zd=document.body.createTextRange();try{zd.moveToElementText(Ad.parentNode)}catch{return zd}return zd.collapse(!0),zd.moveEnd("character",Wd),zd.moveStart("character",Bd),zd};function xf(Ad,Bd){
b`.split(/\n/).length!=3?function(Ad){for(var Bd=0,Wd=[],zd=Ad.length;Bd<=zd;){var Qd=Ad.indexOf(`
`,Bd);Qd==-1&&(Qd=Ad.length);var Ef=Ad.slice(Bd,Ad.charAt(Qd-1)=="\r"?Qd-1:Qd),Of=Ef.indexOf("\r");Of!=-1?(Wd.push(Ef.slice(0,Of)),Bd+=Of+1):(Wd.push(Ef),Bd=Qd+1)}return Wd}:function(Ad){return Ad.split(/\r\n?|\n/)},ph=window.getSelection?function(Ad){try{return Ad.selectionStart!=Ad.selectionEnd}catch{return!1}}:function(Ad){var Bd;try{Bd=Ad.ownerDocument.selection.createRange()}catch{}return!Bd||Bd.parentElement()!=Ad?!1:Bd.compareEndPoints("StartToEnd",Bd)!=0},ih=function(){var Ad=Xd("div");return"oncopy"in Ad?!0:(Ad.setAttribute("oncopy","return;"),typeof Ad.oncopy=="function")}(),yh=null;function Lh(Ad){if(yh!=null)return yh;var Bd=pf(Ad,Xd("span","x")),Wd=Bd.getBoundingClientRect(),zd=mf(Bd,0,1).getBoundingClientRect();return yh=Math.abs(Wd.left-zd.left)>1}var $h={},Gh={};function Bh(Ad,Bd){arguments.length>2&&(Bd.dependencies=Array.prototype.slice.call(arguments,2)),$h[Ad]=Bd}function Ah(Ad,Bd){Gh[Ad]=Bd}function cm(Ad){if(typeof Ad=="string"&&Gh.hasOwnProperty(Ad))Ad=Gh[Ad];else if(Ad&&typeof Ad.name=="string"&&Gh.hasOwnProperty(Ad.name)){var Bd=Gh[Ad.name];typeof Bd=="string"&&(Bd={name:Bd}),Ad=Dh(Bd,Ad),Ad.name=Bd.name}else{if(typeof Ad=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(Ad))return cm("application/xml");if(typeof Ad=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(Ad))return cm("application/json")}return typeof Ad=="string"?{name:Ad}:Ad||{name:"null"}}function um(Ad,Bd){Bd=cm(Bd);var Wd=$h[Bd.name];if(!Wd)return um(Ad,"text/plain");var zd=Wd(Ad,Bd);if(_m.hasOwnProperty(Bd.name)){var Qd=_m[Bd.name];for(var Ef in Qd)Qd.hasOwnProperty(Ef)&&(zd.hasOwnProperty(Ef)&&(zd["_"+Ef]=zd[Ef]),zd[Ef]=Qd[Ef])}if(zd.name=Bd.name,Bd.helperType&&(zd.helperType=Bd.helperType),Bd.modeProps)for(var Of in Bd.modeProps)zd[Of]=Bd.modeProps[Of];return zd}var _m={};function Ff(Ad,Bd){var Wd=_m.hasOwnProperty(Ad)?_m[Ad]:_m[Ad]={};_f(Bd,Wd)}function $m(Ad,Bd){if(Bd===!0)return Bd;if(Ad.copyState)return Ad.copyState(Bd);var Wd={};for(var zd in Bd){var Qd=Bd[zd];Qd instanceof Array&&(Qd=Qd.concat([])),Wd[zd]=Qd}return Wd}function m1(Ad,Bd){for(var Wd;Ad.innerMode&&(Wd=Ad.innerMode(Bd),!(!Wd||Wd.mode==Ad));)Bd=Wd.state,Ad=Wd.mode;return Wd||{mode:Ad,state:Bd}}function f1(Ad,Bd,Wd){return Ad.startState?Ad.startState(Bd,Wd):!0}var a1=function(Ad,Bd,Wd){this.pos=this.start=0,this.string=Ad,this.tabSize=Bd||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Wd};a1.prototype.eol=function(){return this.pos>=this.string.length},a1.prototype.sol=function(){return this.pos==this.lineStart},a1.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},a1.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},a1.prototype.eat=function(Ad){var Bd=this.string.charAt(this.pos),Wd;if(typeof Ad=="string"?Wd=Bd==Ad:Wd=Bd&&(Ad.test?Ad.test(Bd):Ad(Bd)),Wd)return++this.pos,Bd},a1.prototype.eatWhile=function(Ad){for(var Bd=this.pos;this.eat(Ad););return this.pos>Bd},a1.prototype.eatSpace=function(){for(var Ad=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>Ad},a1.prototype.skipToEnd=function(){this.pos=this.string.length},a1.prototype.skipTo=function(Ad){var Bd=this.string.indexOf(Ad,this.pos);if(Bd>-1)return this.pos=Bd,!0},a1.prototype.backUp=function(Ad){this.pos-=Ad},a1.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=$f(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?$f(this.string,this.lineStart,this.tabSize):0)},a1.prototype.indentation=function(){return $f(this.string,null,this.tabSize)-(this.lineStart?$f(this.string,this.lineStart,this.tabSize):0)},a1.prototype.match=function(Ad,Bd,Wd){if(typeof Ad=="string"){var zd=function(Of){return Wd?Of.toLowerCase():Of},Qd=this.string.substr(this.pos,Ad.length);if(zd(Qd)==zd(Ad))return Bd!==!1&&(this.pos+=Ad.length),!0}else{var Ef=this.string.slice(this.pos).match(Ad);return Ef&&Ef.index>0?null:(Ef&&Bd!==!1&&(this.pos+=Ef[0].length),Ef)}},a1.prototype.current=funct
`?(Nm=kh.appendChild(Xd("span",Qh[0]=="\r"?"␍":"␤","cm-invalidchar")),Nm.setAttribute("cm-text",Qh[0]),Ad.col+=1):(Nm=Ad.cm.options.specialCharPlaceholder(Qh[0]),Nm.setAttribute("cm-text",Qh[0]),ld&&cd<9?kh.appendChild(Xd("span",[Nm])):kh.appendChild(Nm),Ad.col+=1);Ad.map.push(Ad.pos,Ad.pos+1,Nm),Ad.pos++}}if(Ad.trailingSpace=Uf.charCodeAt(Bd.length-1)==32,Wd||zd||Qd||uh||Ef||Of){var Qm=Wd||"";zd&&(Qm+=zd),Qd&&(Qm+=Qd);var Ym=Xd("span",[kh],Qm,Ef);if(Of)for(var e1 in Of)Of.hasOwnProperty(e1)&&e1!="style"&&e1!="class"&&Ym.setAttribute(e1,Of[e1]);return Ad.content.appendChild(Ym)}Ad.content.appendChild(kh)}}function Tb(Ad,Bd){if(Ad.length>1&&!/ /.test(Ad))return Ad;for(var Wd=Bd,zd="",Qd=0;Qd<Ad.length;Qd++){var Ef=Ad.charAt(Qd);Ef==" "&&Wd&&(Qd==Ad.length-1||Ad.charCodeAt(Qd+1)==32)&&(Ef=" "),zd+=Ef,Wd=Ef==" "}return zd}function s0(Ad,Bd){return function(Wd,zd,Qd,Ef,Of,Uf,Qf){Qd=Qd?Qd+" cm-force-border":"cm-force-border";for(var uh=Wd.pos,kh=uh+zd.length;;){for(var qh=void 0,Qh=0;Qh<Bd.length&&(qh=Bd[Qh],!(qh.to>uh&&qh.from<=uh));Qh++);if(qh.to>=kh)return Ad(Wd,zd,Qd,Ef,Of,Uf,Qf);Ad(Wd,zd.slice(0,qh.to-uh),Qd,Ef,null,Uf,Qf),Ef=null,zd=zd.slice(qh.to-uh),uh=qh.to}}}function D_(Ad,Bd,Wd,zd){var Qd=!zd&&Wd.widgetNode;Qd&&Ad.map.push(Ad.pos,Ad.pos+Bd,Qd),!zd&&Ad.cm.display.input.needsContentAttribute&&(Qd||(Qd=Ad.content.appendChild(document.createElement("span"))),Qd.setAttribute("cm-marker",Wd.id)),Qd&&(Ad.cm.display.input.setUneditable(Qd),Ad.content.appendChild(Qd)),Ad.pos+=Bd,Ad.trailingSpace=!1}function Zb(Ad,Bd,Wd){var zd=Ad.markedSpans,Qd=Ad.text,Ef=0;if(!zd){for(var Of=1;Of<Wd.length;Of+=2)Bd.addToken(Bd,Qd.slice(Ef,Ef=Wd[Of]),S0(Wd[Of+1],Bd.cm.options));return}for(var Uf=Qd.length,Qf=0,uh=1,kh="",qh,Qh,Kh=0,hm,Nm,Hm,Km,Qm;;){if(Kh==Qf){hm=Nm=Hm=Qh="",Qm=null,Km=null,Kh=1/0;for(var Ym=[],e1=void 0,c1=0;c1<zd.length;++c1){var l1=zd[c1],D1=l1.marker;if(D1.type=="bookmark"&&l1.from==Qf&&D1.widgetNode)Ym.push(D1);else if(l1.from<=Qf&&(l1.to==null||l1.to>Qf||D1.collapsed&&l1.to==Qf&&l1.from==Qf)){if(l1.to!=null&&l1.to!=Qf&&Kh>l1.to&&(Kh=l1.to,Nm=""),D1.className&&(hm+=" "+D1.className),D1.css&&(Qh=(Qh?Qh+";":"")+D1.css),D1.startStyle&&l1.from==Qf&&(Hm+=" "+D1.startStyle),D1.endStyle&&l1.to==Kh&&(e1||(e1=[])).push(D1.endStyle,l1.to),D1.title&&((Qm||(Qm={})).title=D1.title),D1.attributes)for(var n0 in D1.attributes)(Qm||(Qm={}))[n0]=D1.attributes[n0];D1.collapsed&&(!Km||Tg(Km.marker,D1)<0)&&(Km=l1)}else l1.from>Qf&&Kh>l1.from&&(Kh=l1.from)}if(e1)for(var y0=0;y0<e1.length;y0+=2)e1[y0+1]==Kh&&(Nm+=" "+e1[y0]);if(!Km||Km.from==Qf)for(var o0=0;o0<Ym.length;++o0)D_(Bd,0,Ym[o0]);if(Km&&(Km.from||0)==Qf){if(D_(Bd,(Km.to==null?Uf+1:Km.to)-Qf,Km.marker,Km.from==null),Km.to==null)return;Km.to==Qf&&(Km=!1)}}if(Qf>=Uf)break;for(var m0=Math.min(Uf,Kh);;){if(kh){var x0=Qf+kh.length;if(!Km){var C0=x0>m0?kh.slice(0,m0-Qf):kh;Bd.addToken(Bd,C0,qh?qh+hm:hm,Hm,Qf+C0.length==Kh?Nm:"",Qh,Qm)}if(x0>=m0){kh=kh.slice(m0-Qf),Qf=m0;break}Qf=x0,Hm=""}kh=Qd.slice(Ef,Ef=Wd[uh++]),qh=S0(Wd[uh++],Bd.cm.options)}}}function Av(Ad,Bd,Wd){this.line=Bd,this.rest=N_(Bd),this.size=this.rest?oh(gh(this.rest))-Wd+1:1,this.node=this.text=null,this.hidden=c0(Ad,Bd)}function Sg(Ad,Bd,Wd){for(var zd=[],Qd,Ef=Bd;Ef<Wd;Ef=Qd){var Of=new Av(Ad.doc,Dm(Ad.doc,Ef),Ef);Qd=Ef+Of.size,zd.push(Of)}return zd}var v_=null;function Nv(Ad){v_?v_.ops.push(Ad):Ad.ownsGroup=v_={ops:[Ad],delayedCallbacks:[]}}function Ry(Ad){var Bd=Ad.delayedCallbacks,Wd=0;do{for(;Wd<Bd.length;Wd++)Bd[Wd].call(null);for(var zd=0;zd<Ad.ops.length;zd++){var Qd=Ad.ops[zd];if(Qd.cursorActivityHandlers)for(;Qd.cursorActivityCalled<Qd.cursorActivityHandlers.length;)Qd.cursorActivityHandlers[Qd.cursorActivityCalled++].call(null,Qd.cm)}}while(Wd<Bd.length)}function jd(Ad,Bd){var Wd=Ad.ownsGroup;if(Wd)try{Ry(Wd)}finally{v_=null,Bd(Wd)}}var Od=null;function Gd(Ad,Bd){var Wd=Gm(Ad,Bd);if(Wd.length){var zd=Array.prototype.slice.call(arguments,2),Qd;v_?Qd=v_.delayedCallbacks:Od?Qd=Od:(Qd=Od=[],setTimeout(df,0));for(var Ef=function(Uf){Qd.push(function(){return Wd[Uf].apply(null,zd)})},Of=0;Of<Wd.length;++Of)E
top: `+e1+"px; width: "+(c1??Qf-Ym)+`px;
height: `+(l1-e1)+"px"))}function qh(Ym,e1,c1){var l1=Dm(Qd,Ym),D1=l1.text.length,n0,y0;function o0(C0,K0){return Tm(Ad,am(Ym,C0),"div",l1,K0)}function m0(C0,K0,G0){var I0=i0(Ad,l1,null,C0),w0=K0=="ltr"==(G0=="after")?"left":"right",_0=G0=="after"?I0.begin:I0.end-(/\s/.test(l1.text.charAt(I0.end-1))?2:1);return o0(_0,w0)[w0]}var x0=Xh(l1,Qd.direction);return Zf(x0,e1||0,c1??D1,function(C0,K0,G0,I0){var w0=G0=="ltr",_0=o0(C0,w0?"left":"right"),Z0=o0(K0-1,w0?"right":"left"),Kb=e1==null&&C0==0,Bg=c1==null&&K0==D1,V0=I0==0,tg=!x0||I0==x0.length-1;if(Z0.top-_0.top<=3){var P0=(uh?Kb:Bg)&&V0,fE=(uh?Bg:Kb)&&tg,rg=P0?Uf:(w0?_0:Z0).left,Pg=fE?Qf:(w0?Z0:_0).right;kh(rg,_0.top,Pg-rg,_0.bottom)}else{var Fg,X0,Xb,hE;w0?(Fg=uh&&Kb&&V0?Uf:_0.left,X0=uh?Qf:m0(C0,G0,"before"),Xb=uh?Uf:m0(K0,G0,"after"),hE=uh&&Bg&&tg?Qf:Z0.right):(Fg=uh?m0(C0,G0,"before"):Uf,X0=!uh&&Kb&&V0?Qf:_0.right,Xb=!uh&&Bg&&tg?Uf:Z0.left,hE=uh?m0(K0,G0,"after"):Qf),kh(Fg,_0.top,X0-Fg,_0.bottom),_0.bottom<Z0.top&&kh(Uf,_0.bottom,null,Z0.top),kh(Xb,Z0.top,hE-Xb,Z0.bottom)}(!n0||Jg(_0,n0)<0)&&(n0=_0),Jg(Z0,n0)<0&&(n0=Z0),(!y0||Jg(_0,y0)<0)&&(y0=_0),Jg(Z0,y0)<0&&(y0=Z0)}),{start:n0,end:y0}}var Qh=Bd.from(),Kh=Bd.to();if(Qh.line==Kh.line)qh(Qh.line,Qh.ch,Kh.ch);else{var hm=Dm(Qd,Qh.line),Nm=Dm(Qd,Kh.line),Hm=W1(hm)==W1(Nm),Km=qh(Qh.line,Qh.ch,Hm?hm.text.length+1:null).end,Qm=qh(Kh.line,Hm?0:null,Kh.ch).start;Hm&&(Km.top<Qm.top-2?(kh(Km.right,Km.top,null,Km.bottom),kh(Uf,Qm.top,Qm.left,Qm.bottom)):kh(Km.right,Km.top,Qm.left-Km.right,Km.bottom)),Km.bottom<Qm.top&&kh(Uf,Km.bottom,null,Qm.top)}Wd.appendChild(Ef)}function Zg(Ad){if(Ad.state.focused){var Bd=Ad.display;clearInterval(Bd.blinker);var Wd=!0;Bd.cursorDiv.style.visibility="",Ad.options.cursorBlinkRate>0?Bd.blinker=setInterval(function(){Ad.hasFocus()||Nb(Ad),Bd.cursorDiv.style.visibility=(Wd=!Wd)?"":"hidden"},Ad.options.cursorBlinkRate):Ad.options.cursorBlinkRate<0&&(Bd.cursorDiv.style.visibility="hidden")}}function wg(Ad){Ad.hasFocus()||(Ad.display.input.focus(),Ad.state.focused||By(Ad))}function Ab(Ad){Ad.state.delayingBlurEvent=!0,setTimeout(function(){Ad.state.delayingBlurEvent&&(Ad.state.delayingBlurEvent=!1,Ad.state.focused&&Nb(Ad))},100)}function By(Ad,Bd){Ad.state.delayingBlurEvent&&!Ad.state.draggingText&&(Ad.state.delayingBlurEvent=!1),Ad.options.readOnly!="nocursor"&&(Ad.state.focused||(Om(Ad,"focus",Ad,Bd),Ad.state.focused=!0,Wf(Ad.display.wrapper,"CodeMirror-focused"),!Ad.curOp&&Ad.display.selForContextMenu!=Ad.doc.sel&&(Ad.display.input.reset(),ud&&setTimeout(function(){return Ad.display.input.reset(!0)},20)),Ad.display.input.receivedFocus()),Zg(Ad))}function Nb(Ad,Bd){Ad.state.delayingBlurEvent||(Ad.state.focused&&(Om(Ad,"blur",Ad,Bd),Ad.state.focused=!1,Jd(Ad.display.wrapper,"CodeMirror-focused")),clearInterval(Ad.display.blinker),setTimeout(function(){Ad.state.focused||(Ad.display.shift=!1)},150))}function Mv(Ad){for(var Bd=Ad.display,Wd=Bd.lineDiv.offsetTop,zd=Math.max(0,Bd.scroller.getBoundingClientRect().top),Qd=Bd.lineDiv.getBoundingClientRect().top,Ef=0,Of=0;Of<Bd.view.length;Of++){var Uf=Bd.view[Of],Qf=Ad.options.lineWrapping,uh=void 0,kh=0;if(!Uf.hidden){if(Qd+=Uf.line.height,ld&&cd<8){var qh=Uf.node.offsetTop+Uf.node.offsetHeight;uh=qh-Wd,Wd=qh}else{var Qh=Uf.node.getBoundingClientRect();uh=Qh.bottom-Qh.top,!Qf&&Uf.text.firstChild&&(kh=Uf.text.firstChild.getBoundingClientRect().right-Qh.left-1)}var Kh=Uf.line.height-uh;if((Kh>.005||Kh<-.005)&&(Qd<zd&&(Ef-=Kh),o1(Uf.line,uh),rv(Uf.line),Uf.rest))for(var hm=0;hm<Uf.rest.length;hm++)rv(Uf.rest[hm]);if(kh>Ad.display.sizerWidth){var Nm=Math.ceil(kh/dg(Ad.display));Nm>Ad.display.maxLineLength&&(Ad.display.maxLineLength=Nm,Ad.display.maxLine=Uf.line,Ad.display.maxLineChanged=!0)}}}Math.abs(Ef)>2&&(Bd.scroller.scrollTop+=Ef)}function rv(Ad){if(Ad.widgets)for(var Bd=0;Bd<Ad.widgets.length;++Bd){var Wd=Ad.widgets[Bd],zd=Wd.node.parentNode;zd&&(Wd.height=zd.offsetHeight)}}function eb(Ad,Bd,Wd){var zd=Wd&&Wd.top!=null?Math.max(0,Wd.top):Ad.scroller.scrollTop;zd=Math.floor(zd-O0(Ad));var Qd=Wd&&Wd.bottom!=null?Wd.bottom:zd+Ad
top: `+(Bd.top-Wd.viewOffset-O0(Ad.display))+`px;
height: `+(Bd.bottom-Bd.top+W_(Ad)+Wd.barHeight)+`px;
left: `+Bd.left+"px; width: "+Math.max(2,Bd.right-Bd.left)+"px;");Ad.display.lineSpace.appendChild(Of),Of.scrollIntoView(Qd),Ad.display.lineSpace.removeChild(Of)}}}function x2(Ad,Bd,Wd,zd){zd==null&&(zd=0);var Qd;!Ad.options.lineWrapping&&Bd==Wd&&(Wd=Bd.sticky=="before"?am(Bd.line,Bd.ch+1,"before"):Bd,Bd=Bd.ch?am(Bd.line,Bd.sticky=="before"?Bd.ch-1:Bd.ch,"after"):Bd);for(var Ef=0;Ef<5;Ef++){var Of=!1,Uf=dm(Ad,Bd),Qf=!Wd||Wd==Bd?Uf:dm(Ad,Wd);Qd={left:Math.min(Uf.left,Qf.left),top:Math.min(Uf.top,Qf.top)-zd,right:Math.max(Uf.left,Qf.left),bottom:Math.max(Uf.bottom,Qf.bottom)+zd};var uh=Fy(Ad,Qd),kh=Ad.doc.scrollTop,qh=Ad.doc.scrollLeft;if(uh.scrollTop!=null&&(nv(Ad,uh.scrollTop),Math.abs(Ad.doc.scrollTop-kh)>1&&(Of=!0)),uh.scrollLeft!=null&&($_(Ad,uh.scrollLeft),Math.abs(Ad.doc.scrollLeft-qh)>1&&(Of=!0)),!Of)break}return Qd}function AE(Ad,Bd){var Wd=Fy(Ad,Bd);Wd.scrollTop!=null&&nv(Ad,Wd.scrollTop),Wd.scrollLeft!=null&&$_(Ad,Wd.scrollLeft)}function Fy(Ad,Bd){var Wd=Ad.display,zd=I_(Ad.display);Bd.top<0&&(Bd.top=0);var Qd=Ad.curOp&&Ad.curOp.scrollTop!=null?Ad.curOp.scrollTop:Wd.scroller.scrollTop,Ef=Iy(Ad),Of={};Bd.bottom-Bd.top>Ef&&(Bd.bottom=Bd.top+Ef);var Uf=Ad.doc.height+Yg(Wd),Qf=Bd.top<zd,uh=Bd.bottom>Uf-zd;if(Bd.top<Qd)Of.scrollTop=Qf?0:Bd.top;else if(Bd.bottom>Qd+Ef){var kh=Math.min(Bd.top,(uh?Uf:Bd.bottom)-Ef);kh!=Qd&&(Of.scrollTop=kh)}var qh=Ad.options.fixedGutter?0:Wd.gutters.offsetWidth,Qh=Ad.curOp&&Ad.curOp.scrollLeft!=null?Ad.curOp.scrollLeft:Wd.scroller.scrollLeft-qh,Kh=Kg(Ad)-Wd.gutters.offsetWidth,hm=Bd.right-Bd.left>Kh;return hm&&(Bd.right=Bd.left+Kh),Bd.left<10?Of.scrollLeft=0:Bd.left<Qh?Of.scrollLeft=Math.max(0,Bd.left+qh-(hm?0:10)):Bd.right>Kh+Qh-3&&(Of.scrollLeft=Bd.right+(hm?0:10)-Kh),Of}function jy(Ad,Bd){Bd!=null&&(Lv(Ad),Ad.curOp.scrollTop=(Ad.curOp.scrollTop==null?Ad.doc.scrollTop:Ad.curOp.scrollTop)+Bd)}function u0(Ad){Lv(Ad);var Bd=Ad.getCursor();Ad.curOp.scrollToPos={from:Bd,to:Bd,margin:Ad.options.cursorScrollMargin}}function R0(Ad,Bd,Wd){(Bd!=null||Wd!=null)&&Lv(Ad),Bd!=null&&(Ad.curOp.scrollLeft=Bd),Wd!=null&&(Ad.curOp.scrollTop=Wd)}function C2(Ad,Bd){Lv(Ad),Ad.curOp.scrollToPos=Bd}function Lv(Ad){var Bd=Ad.curOp.scrollToPos;if(Bd){Ad.curOp.scrollToPos=null;var Wd=i1(Ad,Bd.from),zd=i1(Ad,Bd.to);Uy(Ad,Wd,zd,Bd.margin)}}function Uy(Ad,Bd,Wd,zd){var Qd=Fy(Ad,{left:Math.min(Bd.left,Wd.left),top:Math.min(Bd.top,Wd.top)-zd,right:Math.max(Bd.right,Wd.right),bottom:Math.max(Bd.bottom,Wd.bottom)+zd});R0(Ad,Qd.scrollLeft,Qd.scrollTop)}function nv(Ad,Bd){Math.abs(Ad.doc.scrollTop-Bd)<2||(td||M_(Ad,{top:Bd}),Bv(Ad,Bd,!0),td&&M_(Ad),sv(Ad,100))}function Bv(Ad,Bd,Wd){Bd=Math.max(0,Math.min(Ad.display.scroller.scrollHeight-Ad.display.scroller.clientHeight,Bd)),!(Ad.display.scroller.scrollTop==Bd&&!Wd)&&(Ad.doc.scrollTop=Bd,Ad.display.scrollbars.setScrollTop(Bd),Ad.display.scroller.scrollTop!=Bd&&(Ad.display.scroller.scrollTop=Bd))}function $_(Ad,Bd,Wd,zd){Bd=Math.max(0,Math.min(Bd,Ad.display.scroller.scrollWidth-Ad.display.scroller.clientWidth)),!((Wd?Bd==Ad.doc.scrollLeft:Math.abs(Ad.doc.scrollLeft-Bd)<2)&&!zd)&&(Ad.doc.scrollLeft=Bd,IE(Ad),Ad.display.scroller.scrollLeft!=Bd&&(Ad.display.scroller.scrollLeft=Bd),Ad.display.scrollbars.setScrollLeft(Bd))}function tb(Ad){var Bd=Ad.display,Wd=Bd.gutters.offsetWidth,zd=Math.round(Ad.doc.height+Yg(Ad.display));return{clientHeight:Bd.scroller.clientHeight,viewHeight:Bd.wrapper.clientHeight,scrollWidth:Bd.scroller.scrollWidth,clientWidth:Bd.scroller.clientWidth,viewWidth:Bd.wrapper.clientWidth,barLeft:Ad.options.fixedGutter?Wd:0,docHeight:zd,scrollHeight:zd+W_(Ad)+Bd.barHeight,nativeBarWidth:Bd.nativeBarWidth,gutterWidth:Wd}}var E_=function(Ad,Bd,Wd){this.cm=Wd;var zd=this.vert=Xd("div",[Xd("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Qd=this.horiz=Xd("div",[Xd("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");zd.tabIndex=Qd.tabIndex=-1,Ad(zd),Ad(Qd),om(zd,"scroll",function(){zd.clientHeight&&Bd(zd.scrollTop,"vertical")}),om(Qd,"scroll",function(){Qd.clientWidth&&Bd(Qd.scrollLeft,"horizontal")}),thi
`},setDirection:$0(function(Ad){Ad!="rtl"&&(Ad="ltr"),Ad!=this.direction&&(this.direction=Ad,this.iter(function(Bd){return Bd.order=null}),this.cm&&hg(this.cm))})}),Y0.prototype.eachLine=Y0.prototype.iter;var zv=0;function F2(Ad){var Bd=this;if(QE(Bd),!(Jm(Bd,Ad)||Y1(Bd.display,Ad))){Xm(Ad),ld&&(zv=+new Date);var Wd=Y_(Bd,Ad,!0),zd=Ad.dataTransfer.files;if(!(!Wd||Bd.isReadOnly()))if(zd&&zd.length&&window.FileReader&&window.File)for(var Qd=zd.length,Ef=Array(Qd),Of=0,Uf=function(){++Of==Qd&&t0(Bd,function(){Wd=h1(Bd.doc,Wd);var Kh={from:Wd,to:Wd,text:Bd.doc.splitLines(Ef.filter(function(hm){return hm!=null}).join(Bd.doc.lineSeparator())),origin:"paste"};Pb(Bd.doc,Kh),Ig(Bd.doc,Ng(h1(Bd.doc,Wd),h1(Bd.doc,Dg(Kh))))})()},Qf=function(Kh,hm){if(Bd.options.allowDropFileTypes&&hh(Bd.options.allowDropFileTypes,Kh.type)==-1){Uf();return}var Nm=new FileReader;Nm.onerror=function(){return Uf()},Nm.onload=function(){var Hm=Nm.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Hm)){Uf();return}Ef[hm]=Hm,Uf()},Nm.readAsText(Kh)},uh=0;uh<zd.length;uh++)Qf(zd[uh],uh);else{if(Bd.state.draggingText&&Bd.doc.sel.contains(Wd)>-1){Bd.state.draggingText(Ad),setTimeout(function(){return Bd.display.input.focus()},20);return}try{var kh=Ad.dataTransfer.getData("Text");if(kh){var qh;if(Bd.state.draggingText&&!Bd.state.draggingText.copy&&(qh=Bd.listSelections()),H0(Bd.doc,Ng(Wd,Wd)),qh)for(var Qh=0;Qh<qh.length;++Qh)ob(Bd.doc,"",qh[Qh].anchor,qh[Qh].head,"drag");Bd.replaceSelection(kh,"around","paste"),Bd.display.input.focus()}}catch{}}}}function rE(Ad,Bd){if(ld&&(!Ad.state.draggingText||+new Date-zv<100)){V1(Bd);return}if(!(Jm(Ad,Bd)||Y1(Ad.display,Bd))&&(Bd.dataTransfer.setData("Text",Ad.getSelection()),Bd.dataTransfer.effectAllowed="copyMove",Bd.dataTransfer.setDragImage&&!Td)){var Wd=Xd("img",null,null,"position: fixed; left: 0; top: 0;");Wd.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ed&&(Wd.width=Wd.height=1,Ad.display.wrapper.appendChild(Wd),Wd._top=Wd.offsetTop),Bd.dataTransfer.setDragImage(Wd,0,0),Ed&&Wd.parentNode.removeChild(Wd)}}function $1(Ad,Bd){var Wd=Y_(Ad,Bd);if(Wd){var zd=document.createDocumentFragment();$v(Ad,Wd,zd),Ad.display.dragCursor||(Ad.display.dragCursor=Xd("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),Ad.display.lineSpace.insertBefore(Ad.display.dragCursor,Ad.display.cursorDiv)),pf(Ad.display.dragCursor,zd)}}function QE(Ad){Ad.display.dragCursor&&(Ad.display.lineSpace.removeChild(Ad.display.dragCursor),Ad.display.dragCursor=null)}function JE(Ad){if(document.getElementsByClassName){for(var Bd=document.getElementsByClassName("CodeMirror"),Wd=[],zd=0;zd<Bd.length;zd++){var Qd=Bd[zd].CodeMirror;Qd&&Wd.push(Qd)}Wd.length&&Wd[0].operation(function(){for(var Ef=0;Ef<Wd.length;Ef++)Ad(Wd[Ef])})}}var qb=!1;function ZE(){qb||(j2(),qb=!0)}function j2(){var Ad;om(window,"resize",function(){Ad==null&&(Ad=setTimeout(function(){Ad=null,JE(U2)},100))}),om(window,"blur",function(){return JE(Nb)})}function U2(Ad){var Bd=Ad.display;Bd.cachedCharWidth=Bd.cachedTextHeight=Bd.cachedPaddingH=null,Bd.scrollbarsClipped=!1,Ad.setSize()}for(var L0={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},dv=0;dv<10;dv++)L0[dv+48]=L0[dv+96]=String(dv);for(var ub=65;ub<=90;ub++)L0[ub]=String.fromCharCode(ub);for(var db=1;db<=12;db++)L0[db+111]=L0[db+63235]="F"+db;var Q_={};Q_.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"
`,"start")},toggleOverwrite:function(Ad){return Ad.toggleOverwrite()}};function _g(Ad,Bd){var Wd=Dm(Ad.doc,Bd),zd=W1(Wd);return zd!=Wd&&(Bd=oh(zd)),mv(!0,Ad,zd,Bd,1)}function t2(Ad,Bd){var Wd=Dm(Ad.doc,Bd),zd=Vg(Wd);return zd!=Wd&&(Bd=oh(zd)),mv(!0,Ad,Wd,Bd,-1)}function iE(Ad,Bd){var Wd=_g(Ad,Bd.line),zd=Dm(Ad.doc,Wd.line),Qd=Xh(zd,Ad.doc.direction);if(!Qd||Qd[0].level==0){var Ef=Math.max(Wd.ch,zd.text.search(/\S/)),Of=Bd.line==Wd.line&&Bd.ch<=Ef&&Bd.ch;return am(Wd.line,Of?0:Ef,Wd.sticky)}return Wd}function Hb(Ad,Bd,Wd){if(typeof Bd=="string"&&(Bd=_v[Bd],!Bd))return!1;Ad.display.input.ensurePolled();var zd=Ad.display.shift,Qd=!1;try{Ad.isReadOnly()&&(Ad.state.suppressEdits=!0),Wd&&(Ad.display.shift=!1),Qd=Bd(Ad)!=kf}finally{Ad.display.shift=zd,Ad.state.suppressEdits=!1}return Qd}function q2(Ad,Bd,Wd){for(var zd=0;zd<Ad.state.keyMaps.length;zd++){var Qd=f_(Bd,Ad.state.keyMaps[zd],Wd,Ad);if(Qd)return Qd}return Ad.options.extraKeys&&f_(Bd,Ad.options.extraKeys,Wd,Ad)||f_(Bd,Ad.options.keyMap,Wd,Ad)}var H2=new zf;function gv(Ad,Bd,Wd,zd){var Qd=Ad.state.keySeq;if(Qd){if(Vv(Bd))return"handled";if(/\'$/.test(Bd)?Ad.state.keySeq=null:H2.set(50,function(){Ad.state.keySeq==Qd&&(Ad.state.keySeq=null,Ad.display.input.reset())}),aE(Ad,Qd+" "+Bd,Wd,zd))return!0}return aE(Ad,Bd,Wd,zd)}function aE(Ad,Bd,Wd,zd){var Qd=q2(Ad,Bd,zd);return Qd=="multi"&&(Ad.state.keySeq=Bd),Qd=="handled"&&Gd(Ad,"keyHandled",Ad,Bd,Wd),(Qd=="handled"||Qd=="multi")&&(Xm(Wd),Zg(Ad)),!!Qd}function sE(Ad,Bd){var Wd=pv(Bd,!0);return Wd?Bd.shiftKey&&!Ad.state.keySeq?gv(Ad,"Shift-"+Wd,Bd,function(zd){return Hb(Ad,zd,!0)})||gv(Ad,Wd,Bd,function(zd){if(typeof zd=="string"?/^go[A-Z]/.test(zd):zd.motion)return Hb(Ad,zd)}):gv(Ad,Wd,Bd,function(zd){return Hb(Ad,zd)}):!1}function G2(Ad,Bd,Wd){return gv(Ad,"'"+Wd+"'",Bd,function(zd){return Hb(Ad,zd,!0)})}var Yv=null;function oE(Ad){var Bd=this;if(!(Ad.target&&Ad.target!=Bd.display.input.getField())&&(Bd.curOp.focus=Lf(wf(Bd)),!Jm(Bd,Ad))){ld&&cd<11&&Ad.keyCode==27&&(Ad.returnValue=!1);var Wd=Ad.keyCode;Bd.display.shift=Wd==16||Ad.shiftKey;var zd=sE(Bd,Ad);Ed&&(Yv=zd?Wd:null,!zd&&Wd==88&&!ih&&(Ld?Ad.metaKey:Ad.ctrlKey)&&Bd.replaceSelection("",null,"cut")),td&&!Ld&&!zd&&Wd==46&&Ad.shiftKey&&!Ad.ctrlKey&&document.execCommand&&document.execCommand("cut"),Wd==18&&!/\bCodeMirror-crosshair\b/.test(Bd.display.lineDiv.className)&&a_(Bd)}}function a_(Ad){var Bd=Ad.display.lineDiv;Wf(Bd,"CodeMirror-crosshair");function Wd(zd){(zd.keyCode==18||!zd.altKey)&&(Jd(Bd,"CodeMirror-crosshair"),Fm(document,"keyup",Wd),Fm(document,"mouseover",Wd))}om(document,"keyup",Wd),om(document,"mouseover",Wd)}function j_(Ad){Ad.keyCode==16&&(this.doc.sel.shift=!1),Jm(this,Ad)}function r2(Ad){var Bd=this;if(!(Ad.target&&Ad.target!=Bd.display.input.getField())&&!(Y1(Bd.display,Ad)||Jm(Bd,Ad)||Ad.ctrlKey&&!Ad.altKey||Ld&&Ad.metaKey)){var Wd=Ad.keyCode,zd=Ad.charCode;if(Ed&&Wd==Yv){Yv=null,Xm(Ad);return}if(!(Ed&&(!Ad.which||Ad.which<10)&&sE(Bd,Ad))){var Qd=String.fromCharCode(zd??Wd);Qd!="\b"&&(G2(Bd,Ad,Qd)||Bd.display.input.onKeyPress(Ad))}}}var z2=400,Gb=function(Ad,Bd,Wd){this.time=Ad,this.pos=Bd,this.button=Wd};Gb.prototype.compare=function(Ad,Bd,Wd){return this.time+z2>Ad&&Vm(Bd,this.pos)==0&&Wd==this.button};var J_,zb;function n2(Ad,Bd){var Wd=+new Date;return zb&&zb.compare(Wd,Ad,Bd)?(J_=zb=null,"triple"):J_&&J_.compare(Wd,Ad,Bd)?(zb=new Gb(Wd,Ad,Bd),J_=null,"double"):(J_=new Gb(Wd,Ad,Bd),zb=null,"single")}function i2(Ad){var Bd=this,Wd=Bd.display;if(!(Jm(Bd,Ad)||Wd.activeTouch&&Wd.input.supportsTouch())){if(Wd.input.ensurePolled(),Wd.shift=Ad.shiftKey,Y1(Wd,Ad)){ud||(Wd.scroller.draggable=!1,setTimeout(function(){return Wd.scroller.draggable=!0},100));return}if(!Wb(Bd,Ad)){var zd=Y_(Bd,Ad),Qd=I1(Ad),Ef=zd?n2(zd,Qd):"single";qf(Bd).focus(),Qd==1&&Bd.state.selectingText&&Bd.state.selectingText(Ad),!(zd&&a2(Bd,Qd,zd,Ef,Ad))&&(Qd==1?zd?bv(Bd,zd,Ef,Ad):Z1(Ad)==Wd.scroller&&Xm(Ad):Qd==2?(zd&&$b(Bd.doc,zd),setTimeout(function(){return Wd.input.focus()},20)):Qd==3&&(Hd?Bd.display.input.onContextMenu(Ad):Ab(Bd)))}}}function a2(Ad,Bd,Wd,zd,Qd){var Ef="Click";
`)==Bd){if(zd.ranges.length%S_.text.length==0){uh=[];for(var kh=0;kh<S_.text.length;kh++)uh.push(Ef.splitLines(S_.text[kh]))}}else Qf.length==zd.ranges.length&&Ad.options.pasteLinesPerSelection&&(uh=Nh(Qf,function(Km){return[Km]}));for(var qh=Ad.curOp.updateInput,Qh=zd.ranges.length-1;Qh>=0;Qh--){var Kh=zd.ranges[Qh],hm=Kh.from(),Nm=Kh.to();Kh.empty()&&(Wd&&Wd>0?hm=am(hm.line,hm.ch-Wd):Ad.state.overwrite&&!Uf?Nm=am(Nm.line,Math.min(Dm(Ef,Nm.line).text.length,Nm.ch+gh(Qf).length)):Uf&&S_&&S_.lineWise&&S_.text.join(`
`)==Qf.join(`
`)&&(hm=Nm=am(hm.line,0)));var Hm={from:hm,to:Nm,text:uh?uh[Qh%uh.length]:Qf,origin:Qd||(Uf?"paste":Ad.state.cutIncoming>Of?"cut":"+input")};Pb(Ad.doc,Hm),Gd(Ad,"inputRead",Ad,Hm)}Bd&&!Uf&&ry(Ad,Bd),u0(Ad),Ad.curOp.updateInput<2&&(Ad.curOp.updateInput=qh),Ad.curOp.typing=!0,Ad.state.pasteIncoming=Ad.state.cutIncoming=-1}function Z_(Ad,Bd){var Wd=Ad.clipboardData&&Ad.clipboardData.getData("Text");if(Wd)return Ad.preventDefault(),!Bd.isReadOnly()&&!Bd.options.disableInput&&Bd.hasFocus()&&z0(Bd,function(){return pE(Bd,Wd,0,null,"paste")}),!0}function ry(Ad,Bd){if(!(!Ad.options.electricChars||!Ad.options.smartIndent))for(var Wd=Ad.doc.sel,zd=Wd.ranges.length-1;zd>=0;zd--){var Qd=Wd.ranges[zd];if(!(Qd.head.ch>100||zd&&Wd.ranges[zd-1].head.line==Qd.head.line)){var Ef=Ad.getModeAt(Qd.head),Of=!1;if(Ef.electricChars){for(var Uf=0;Uf<Ef.electricChars.length;Uf++)if(Bd.indexOf(Ef.electricChars.charAt(Uf))>-1){Of=Ev(Ad,Qd.head.line,"smart");break}}else Ef.electricInput&&Ef.electricInput.test(Dm(Ad.doc,Qd.head.line).text.slice(0,Qd.head.ch))&&(Of=Ev(Ad,Qd.head.line,"smart"));Of&&Gd(Ad,"electricInput",Ad,Qd.head.line)}}}function ny(Ad){for(var Bd=[],Wd=[],zd=0;zd<Ad.doc.sel.ranges.length;zd++){var Qd=Ad.doc.sel.ranges[zd].head.line,Ef={anchor:am(Qd,0),head:am(Qd+1,0)};Wd.push(Ef),Bd.push(Ad.getRange(Ef.anchor,Ef.head))}return{text:Bd,ranges:Wd}}function Tv(Ad,Bd,Wd,zd){Ad.setAttribute("autocorrect",Wd?"on":"off"),Ad.setAttribute("autocapitalize",zd?"on":"off"),Ad.setAttribute("spellcheck",!!Bd)}function Sv(){var Ad=Xd("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),Bd=Xd("div",[Ad],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ud?Ad.style.width="1000px":Ad.setAttribute("wrap","off"),Nd&&(Ad.style.border="1px solid black"),Bd}function Yb(Ad){var Bd=Ad.optionHandlers,Wd=Ad.helpers={};Ad.prototype={constructor:Ad,focus:function(){qf(this).focus(),this.display.input.focus()},setOption:function(zd,Qd){var Ef=this.options,Of=Ef[zd];Ef[zd]==Qd&&zd!="mode"||(Ef[zd]=Qd,Bd.hasOwnProperty(zd)&&t0(this,Bd[zd])(this,Qd,Of),Om(this,"optionChange",this,zd))},getOption:function(zd){return this.options[zd]},getDoc:function(){return this.doc},addKeyMap:function(zd,Qd){this.state.keyMaps[Qd?"push":"unshift"](fv(zd))},removeKeyMap:function(zd){for(var Qd=this.state.keyMaps,Ef=0;Ef<Qd.length;++Ef)if(Qd[Ef]==zd||Qd[Ef].name==zd)return Qd.splice(Ef,1),!0},addOverlay:b1(function(zd,Qd){var Ef=zd.token?zd:Ad.getMode(this.options,zd);if(Ef.startState)throw new Error("Overlays may not be stateful.");dh(this.state.overlays,{mode:Ef,modeSpec:zd,opaque:Qd&&Qd.opaque,priority:Qd&&Qd.priority||0},function(Of){return Of.priority}),this.state.modeGen++,J0(this)}),removeOverlay:b1(function(zd){for(var Qd=this.state.overlays,Ef=0;Ef<Qd.length;++Ef){var Of=Qd[Ef].modeSpec;if(Of==zd||typeof zd=="string"&&Of.name==zd){Qd.splice(Ef,1),this.state.modeGen++,J0(this);return}}}),indentLine:b1(function(zd,Qd,Ef){typeof Qd!="string"&&typeof Qd!="number"&&(Qd==null?Qd=this.options.smartIndent?"smart":"prev":Qd=Qd?"add":"subtract"),mm(this.doc,zd)&&Ev(this,zd,Qd,Ef)}),indentSelection:b1(function(zd){for(var Qd=this.doc.sel.ranges,Ef=-1,Of=0;Of<Qd.length;Of++){var Uf=Qd[Of];if(Uf.empty())Uf.head.line>Ef&&(Ev(this,Uf.head.line,zd,!0),Ef=Uf.head.line,Of==this.doc.sel.primIndex&&u0(this));else{var Qf=Uf.from(),uh=Uf.to(),kh=Math.max(Ef,Qf.line);Ef=Math.min(this.lastLine(),uh.line-(uh.ch?0:1))+1;for(var qh=kh;qh<Ef;++qh)Ev(this,qh,zd);var Qh=this.doc.sel.ranges;Qf.ch==0&&Qd.length==Qh.length&&Qh[Of].from().ch>0&&T_(this.doc,Of,new K1(Qf,Qh[Of].to()),Jf)}}}),getTokenAt:function(zd,Qd){return __(this,zd,Qd)},getLineTokens:function(zd,Qd){return __(this,am(zd),Qd,!0)},getTokenTypeAt:function(zd){zd=h1(this.doc,zd);var Qd=m_(this,Dm(this.doc,zd.line)),Ef=0,Of=(Qd.length-1)/2,Uf=zd.ch,Qf;if(Uf==0)Qf=Qd[2];else for(;;){var uh=Ef+Of>>1;if((uh?Qd[uh*2-1]:0)>=Uf)Of=uh;else if(Qd[uh*2+1]<Uf)Ef=uh+1;else{Qf=Qd[uh*2+2];break}}var kh=Qf?Qf.indexOf("overlay "):-1;return kh<0?Qf:kh==0?null:Q
`,Hm=Wh(Nm,Kh)?"w":Qh&&Nm==`
`?"n":!Qh||/\s/.test(Nm)?null:"p";if(Qh&&!hm&&!Hm&&(Hm="s"),qh&&qh!=Hm){Wd<0&&(Wd=1,kh(),Bd.sticky="after");break}if(Hm&&(qh=Hm),Wd>0&&!kh(!hm))break}var Km=Lb(Ad,Bd,Ef,Of,!0);return E1(Ef,Km)&&(Km.hitSide=!0),Km}function xv(Ad,Bd,Wd,zd){var Qd=Ad.doc,Ef=Bd.left,Of;if(zd=="page"){var Uf=Math.min(Ad.display.wrapper.clientHeight,qf(Ad).innerHeight||Qd(Ad).documentElement.clientHeight),Qf=Math.max(Uf-.5*I_(Ad.display),3);Of=(Wd>0?Bd.bottom:Bd.top)+Wd*Qf}else zd=="line"&&(Of=Wd>0?Bd.bottom+3:Bd.top-3);for(var uh;uh=H1(Ad,Ef,Of),!!uh.outside;){if(Wd<0?Of<=0:Of>=Qd.height){uh.hitSide=!0;break}Of+=Wd*5}return uh}var X1=function(Ad){this.cm=Ad,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new zf,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};X1.prototype.init=function(Ad){var Bd=this,Wd=this,zd=Wd.cm,Qd=Wd.div=Ad.lineDiv;Qd.contentEditable=!0,Tv(Qd,zd.options.spellcheck,zd.options.autocorrect,zd.options.autocapitalize);function Ef(Uf){for(var Qf=Uf.target;Qf;Qf=Qf.parentNode){if(Qf==Qd)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Qf.className))break}return!1}om(Qd,"paste",function(Uf){!Ef(Uf)||Jm(zd,Uf)||Z_(Uf,zd)||cd<=11&&setTimeout(t0(zd,function(){return Bd.updateFromDOM()}),20)}),om(Qd,"compositionstart",function(Uf){Bd.composing={data:Uf.data,done:!1}}),om(Qd,"compositionupdate",function(Uf){Bd.composing||(Bd.composing={data:Uf.data,done:!1})}),om(Qd,"compositionend",function(Uf){Bd.composing&&(Uf.data!=Bd.composing.data&&Bd.readFromDOMSoon(),Bd.composing.done=!0)}),om(Qd,"touchstart",function(){return Wd.forceCompositionEnd()}),om(Qd,"input",function(){Bd.composing||Bd.readFromDOMSoon()});function Of(Uf){if(!(!Ef(Uf)||Jm(zd,Uf))){if(zd.somethingSelected())ty({lineWise:!1,text:zd.getSelections()}),Uf.type=="cut"&&zd.replaceSelection("",null,"cut");else if(zd.options.lineWiseCopyCut){var Qf=ny(zd);ty({lineWise:!0,text:Qf.text}),Uf.type=="cut"&&zd.operation(function(){zd.setSelections(Qf.ranges,0,Jf),zd.replaceSelection("",null,"cut")})}else return;if(Uf.clipboardData){Uf.clipboardData.clearData();var uh=S_.text.join(`
`);if(Uf.clipboardData.setData("Text",uh),Uf.clipboardData.getData("Text")==uh){Uf.preventDefault();return}}var kh=Sv(),qh=kh.firstChild;Tv(qh),zd.display.lineSpace.insertBefore(kh,zd.display.lineSpace.firstChild),qh.value=S_.text.join(`
`);var Qh=Lf(Kf(Qd));If(qh),setTimeout(function(){zd.display.lineSpace.removeChild(kh),Qh.focus(),Qh==Qd&&Wd.showPrimarySelection()},50)}}om(Qd,"copy",Of),om(Qd,"cut",Of)},X1.prototype.screenReaderLabelChanged=function(Ad){Ad?this.div.setAttribute("aria-label",Ad):this.div.removeAttribute("aria-label")},X1.prototype.prepareSelection=function(){var Ad=Ly(this.cm,!1);return Ad.focus=Lf(Kf(this.div))==this.div,Ad},X1.prototype.showSelection=function(Ad,Bd){!Ad||!this.cm.display.view.length||((Ad.focus||Bd)&&this.showPrimarySelection(),this.showMultipleSelections(Ad))},X1.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},X1.prototype.showPrimarySelection=function(){var Ad=this.getSelection(),Bd=this.cm,Wd=Bd.doc.sel.primary(),zd=Wd.from(),Qd=Wd.to();if(Bd.display.viewTo==Bd.display.viewFrom||zd.line>=Bd.display.viewTo||Qd.line<Bd.display.viewFrom){Ad.removeAllRanges();return}var Ef=B0(Bd,Ad.anchorNode,Ad.anchorOffset),Of=B0(Bd,Ad.focusNode,Ad.focusOffset);if(!(Ef&&!Ef.bad&&Of&&!Of.bad&&Vm(N0(Ef,Of),zd)==0&&Vm(q1(Ef,Of),Qd)==0)){var Uf=Bd.display.view,Qf=zd.line>=Bd.display.viewFrom&&Mg(Bd,zd)||{node:Uf[0].measure.map[2],offset:0},uh=Qd.line<Bd.display.viewTo&&Mg(Bd,Qd);if(!uh){var kh=Uf[Uf.length-1].measure,qh=kh.maps?kh.maps[kh.maps.length-1]:kh.map;uh={node:qh[qh.length-1],offset:qh[qh.length-2]-qh[qh.length-3]}}if(!Qf||!uh){Ad.removeAllRanges();return}var Qh=Ad.rangeCount&&Ad.getRangeAt(0),Kh;try{Kh=mf(Qf.node,Qf.offset,uh.offset,uh.node)}catch{}Kh&&(!td&&Bd.state.focused?(Ad.collapse(Qf.node,Qf.offset),Kh.collapsed||(Ad.removeAllRanges(),Ad.addRange(Kh))):(Ad.removeAllRanges(),Ad.addRange(Kh)),Qh&&Ad.anchorNode==null?Ad.addRange(Qh):td&&this.startGracePeriod()),this.rememberSelection()}},X1.prototype.startGracePeriod=function(){var Ad=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){Ad.gracePeriod=!1,Ad.selectionChanged()&&Ad.cm.operation(function(){return Ad.cm.curOp.selectionChanged=!0})},20)},X1.prototype.showMultipleSelections=function(Ad){pf(this.cm.display.cursorDiv,Ad.cursors),pf(this.cm.display.selectionDiv,Ad.selection)},X1.prototype.rememberSelection=function(){var Ad=this.getSelection();this.lastAnchorNode=Ad.anchorNode,this.lastAnchorOffset=Ad.anchorOffset,this.lastFocusNode=Ad.focusNode,this.lastFocusOffset=Ad.focusOffset},X1.prototype.selectionInEditor=function(){var Ad=this.getSelection();if(!Ad.rangeCount)return!1;var Bd=Ad.getRangeAt(0).commonAncestorContainer;return xf(this.div,Bd)},X1.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Lf(Kf(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},X1.prototype.blur=function(){this.div.blur()},X1.prototype.getField=function(){return this.div},X1.prototype.supportsTouch=function(){return!0},X1.prototype.receivedFocus=function(){var Ad=this,Bd=this;this.selectionInEditor()?setTimeout(function(){return Ad.pollSelection()},20):z0(this.cm,function(){return Bd.cm.curOp.selectionChanged=!0});function Wd(){Bd.cm.state.focused&&(Bd.pollSelection(),Bd.polling.set(Bd.cm.options.pollInterval,Wd))}this.polling.set(this.cm.options.pollInterval,Wd)},X1.prototype.selectionChanged=function(){var Ad=this.getSelection();return Ad.anchorNode!=this.lastAnchorNode||Ad.anchorOffset!=this.lastAnchorOffset||Ad.focusNode!=this.lastFocusNode||Ad.focusOffset!=this.lastFocusOffset},X1.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var Ad=this.getSelection(),Bd=this.cm;if(Id&&yd&&this.cm.display.gutterSpecs.length&&Y2(Ad.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Wd=B0(Bd,Ad.anchorNode,Ad.anchorOffset),zd=B0(Bd,Ad.focusNode,Ad.focusOffset);Wd&&zd&&z0(Bd,function(){q0(Bd.doc,Ng(Wd,zd),Jf),(Wd.bad||zd.bad)&&(Bd.curOp.selectionChanged=!0)})}}},X1.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMT
`),If(Qd))}else return;Of.type=="cut"&&(zd.state.cutIncoming=+new Date)}}om(Qd,"cut",Ef),om(Qd,"copy",Ef),om(Ad.scroller,"paste",function(Of){if(!(Y1(Ad,Of)||Jm(zd,Of))){if(!Qd.dispatchEvent){zd.state.pasteIncoming=+new Date,Wd.focus();return}var Uf=new Event("paste");Uf.clipboardData=Of.clipboardData,Qd.dispatchEvent(Uf)}}),om(Ad.lineSpace,"selectstart",function(Of){Y1(Ad,Of)||Xm(Of)}),om(Qd,"compositionstart",function(){var Of=zd.getCursor("from");Wd.composing&&Wd.composing.range.clear(),Wd.composing={start:Of,range:zd.markText(Of,zd.getCursor("to"),{className:"CodeMirror-composing"})}}),om(Qd,"compositionend",function(){Wd.composing&&(Wd.poll(),Wd.composing.range.clear(),Wd.composing=null)})},v0.prototype.createField=function(Ad){this.wrapper=Sv(),this.textarea=this.wrapper.firstChild;var Bd=this.cm.options;Tv(this.textarea,Bd.spellcheck,Bd.autocorrect,Bd.autocapitalize)},v0.prototype.screenReaderLabelChanged=function(Ad){Ad?this.textarea.setAttribute("aria-label",Ad):this.textarea.removeAttribute("aria-label")},v0.prototype.prepareSelection=function(){var Ad=this.cm,Bd=Ad.display,Wd=Ad.doc,zd=Ly(Ad);if(Ad.options.moveInputWithCursor){var Qd=dm(Ad,Wd.sel.primary().head,"div"),Ef=Bd.wrapper.getBoundingClientRect(),Of=Bd.lineDiv.getBoundingClientRect();zd.teTop=Math.max(0,Math.min(Bd.wrapper.clientHeight-10,Qd.top+Of.top-Ef.top)),zd.teLeft=Math.max(0,Math.min(Bd.wrapper.clientWidth-10,Qd.left+Of.left-Ef.left))}return zd},v0.prototype.showSelection=function(Ad){var Bd=this.cm,Wd=Bd.display;pf(Wd.cursorDiv,Ad.cursors),pf(Wd.selectionDiv,Ad.selection),Ad.teTop!=null&&(this.wrapper.style.top=Ad.teTop+"px",this.wrapper.style.left=Ad.teLeft+"px")},v0.prototype.reset=function(Ad){if(!(this.contextMenuPending||this.composing&&Ad)){var Bd=this.cm;if(this.resetting=!0,Bd.somethingSelected()){this.prevInput="";var Wd=Bd.getSelection();this.textarea.value=Wd,Bd.state.focused&&If(this.textarea),ld&&cd>=9&&(this.hasSelection=Wd)}else Ad||(this.prevInput=this.textarea.value="",ld&&cd>=9&&(this.hasSelection=null));this.resetting=!1}},v0.prototype.getField=function(){return this.textarea},v0.prototype.supportsTouch=function(){return!1},v0.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Md||Lf(Kf(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},v0.prototype.blur=function(){this.textarea.blur()},v0.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},v0.prototype.receivedFocus=function(){this.slowPoll()},v0.prototype.slowPoll=function(){var Ad=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){Ad.poll(),Ad.cm.state.focused&&Ad.slowPoll()})},v0.prototype.fastPoll=function(){var Ad=!1,Bd=this;Bd.pollingFast=!0;function Wd(){var zd=Bd.poll();!zd&&!Ad?(Ad=!0,Bd.polling.set(60,Wd)):(Bd.pollingFast=!1,Bd.slowPoll())}Bd.polling.set(20,Wd)},v0.prototype.poll=function(){var Ad=this,Bd=this.cm,Wd=this.textarea,zd=this.prevInput;if(this.contextMenuPending||this.resetting||!Bd.state.focused||ph(Wd)&&!zd&&!this.composing||Bd.isReadOnly()||Bd.options.disableInput||Bd.state.keySeq)return!1;var Qd=Wd.value;if(Qd==zd&&!Bd.somethingSelected())return!1;if(ld&&cd>=9&&this.hasSelection===Qd||Ld&&/[\uf700-\uf7ff]/.test(Qd))return Bd.display.input.reset(),!1;if(Bd.doc.sel==Bd.display.selForContextMenu){var Ef=Qd.charCodeAt(0);if(Ef==8203&&!zd&&(zd=""),Ef==8666)return this.reset(),this.cm.execCommand("undo")}for(var Of=0,Uf=Math.min(zd.length,Qd.length);Of<Uf&&zd.charCodeAt(Of)==Qd.charCodeAt(Of);)++Of;return z0(Bd,function(){pE(Bd,Qd.slice(Of),zd.length-Of,null,Ad.composing?"*compose":null),Qd.length>1e3||Qd.indexOf(`
`)>-1?Wd.value=Ad.prevInput="":Ad.prevInput=Qd,Ad.composing&&(Ad.composing.range.clear(),Ad.composing.range=Bd.markText(Ad.composing.start,Bd.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},v0.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},v0.prototype.onKeyPress=function(){ld&&cd>=9&&(this.hasSelection=null),this.fastPoll()},v0.prototype.onContextMenu=function(Ad){var Bd=this,Wd=Bd.cm,zd=Wd.display,Qd=Bd.textarea;Bd.contextMenuPending&&Bd.contextMenuPending();var Ef=Y_(Wd,Ad),Of=zd.scroller.scrollTop;if(!Ef||Ed)return;var Uf=Wd.options.resetSelectionOnContextMenu;Uf&&Wd.doc.sel.contains(Ef)==-1&&t0(Wd,q0)(Wd.doc,Ng(Ef),Jf);var Qf=Qd.style.cssText,uh=Bd.wrapper.style.cssText,kh=Bd.wrapper.offsetParent.getBoundingClientRect();Bd.wrapper.style.cssText="position: static",Qd.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(Ad.clientY-kh.top-5)+"px; left: "+(Ad.clientX-kh.left-5)+`px;
z-index: 1000; background: `+(ld?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var qh;ud&&(qh=Qd.ownerDocument.defaultView.scrollY),zd.input.focus(),ud&&Qd.ownerDocument.defaultView.scrollTo(null,qh),zd.input.reset(),Wd.somethingSelected()||(Qd.value=Bd.prevInput=" "),Bd.contextMenuPending=Kh,zd.selForContextMenu=Wd.doc.sel,clearTimeout(zd.detectingSelectAll);function Qh(){if(Qd.selectionStart!=null){var Nm=Wd.somethingSelected(),Hm=""+(Nm?Qd.value:"");Qd.value="⇚",Qd.value=Hm,Bd.prevInput=Nm?"":"",Qd.selectionStart=1,Qd.selectionEnd=Hm.length,zd.selForContextMenu=Wd.doc.sel}}function Kh(){if(Bd.contextMenuPending==Kh&&(Bd.contextMenuPending=!1,Bd.wrapper.style.cssText=uh,Qd.style.cssText=Qf,ld&&cd<9&&zd.scrollbars.setScrollTop(zd.scroller.scrollTop=Of),Qd.selectionStart!=null)){(!ld||ld&&cd<9)&&Qh();var Nm=0,Hm=function(){zd.selForContextMenu==Wd.doc.sel&&Qd.selectionStart==0&&Qd.selectionEnd>0&&Bd.prevInput==""?t0(Wd,Bb)(Wd):Nm++<10?zd.detectingSelectAll=setTimeout(Hm,500):(zd.selForContextMenu=null,zd.input.reset())};zd.detectingSelectAll=setTimeout(Hm,200)}}if(ld&&cd>=9&&Qh(),Hd){V1(Ad);var hm=function(){Fm(window,"mouseup",hm),setTimeout(Kh,20)};om(window,"mouseup",hm)}else setTimeout(Kh,50)},v0.prototype.readOnlyChanged=function(Ad){Ad||this.reset(),this.textarea.disabled=Ad=="nocursor",this.textarea.readOnly=!!Ad},v0.prototype.setUneditable=function(){},v0.prototype.needsContentAttribute=!1;function d2(Ad,Bd){if(Bd=Bd?_f(Bd):{},Bd.value=Ad.value,!Bd.tabindex&&Ad.tabIndex&&(Bd.tabindex=Ad.tabIndex),!Bd.placeholder&&Ad.placeholder&&(Bd.placeholder=Ad.placeholder),Bd.autofocus==null){var Wd=Lf(Kf(Ad));Bd.autofocus=Wd==Ad||Ad.getAttribute("autofocus")!=null&&Wd==document.body}function zd(){Ad.value=Uf.getValue()}var Qd;if(Ad.form&&(om(Ad.form,"submit",zd),!Bd.leaveSubmitMethodAlone)){var Ef=Ad.form;Qd=Ef.submit;try{var Of=Ef.submit=function(){zd(),Ef.submit=Qd,Ef.submit(),Ef.submit=Of}}catch{}}Bd.finishInit=function(Qf){Qf.save=zd,Qf.getTextArea=function(){return Ad},Qf.toTextArea=function(){Qf.toTextArea=isNaN,zd(),Ad.parentNode.removeChild(Qf.getWrapperElement()),Ad.style.display="",Ad.form&&(Fm(Ad.form,"submit",zd),!Bd.leaveSubmitMethodAlone&&typeof Ad.form.submit=="function"&&(Ad.form.submit=Qd))}},Ad.style.display="none";var Uf=G1(function(Qf){return Ad.parentNode.insertBefore(Qf,Ad.nextSibling)},Bd);return Uf}function X2(Ad){Ad.off=Fm,Ad.on=om,Ad.wheelEventPixels=$2,Ad.Doc=Y0,Ad.splitLines=yf,Ad.countColumn=$f,Ad.findColumn=Tf,Ad.isWordChar=Zh,Ad.Pass=kf,Ad.signal=Om,Ad.Line=Mf,Ad.changeEnd=Dg,Ad.scrollbarModel=rb,Ad.Pos=am,Ad.cmpPos=Vm,Ad.modes=$h,Ad.mimeModes=Gh,Ad.resolveMode=cm,Ad.getMode=um,Ad.modeExtensions=_m,Ad.extendMode=Ff,Ad.copyState=$m,Ad.startState=f1,Ad.innerMode=m1,Ad.commands=_v,Ad.keyMap=Q_,Ad.keyName=pv,Ad.isModifierKey=Vv,Ad.lookupKey=f_,Ad.normalizeKeyMap=p_,Ad.StringStream=a1,Ad.SharedTextMarker=Ub,Ad.TextMarker=F_,Ad.LineWidget=cb,Ad.e_preventDefault=Xm,Ad.e_stopPropagation=F1,Ad.e_stop=V1,Ad.addClass=Wf,Ad.contains=xf,Ad.rmClass=Jd,Ad.keyNames=L0}dE(G1),Yb(G1);var p2="iter insert remove copy getEditor constructor".split(" ");for(var iy in Y0.prototype)Y0.prototype.hasOwnProperty(iy)&&hh(p2,iy)<0&&(G1.prototype[iy]=function(Ad){return function(){return Ad.apply(this.doc,arguments)}}(Y0.prototype[iy]));return x1(Y0),G1.inputStyles={textarea:v0,contenteditable:X1},G1.defineMode=function(Ad){!G1.defaults.mode&&Ad!="null"&&(G1.defaults.mode=Ad),Bh.apply(this,arguments)},G1.defineMIME=Ah,G1.defineMode("null",function(){return{token:function(Ad){return Ad.skipToEnd()}}}),G1.defineMIME("text/plain","null"),G1.defineExtension=function(Ad,Bd){G1.prototype[Ad]=Bd},G1.defineDocExtension=function(Ad,Bd){Y0.prototype[Ad]=Bd},G1.fromTextArea=d2,X2(G1),G1.version="5.65.17",G1})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);function tryOnScopeDispose$1(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function toValue$2(Ra){return typeof Ra=="function"?Ra():unref(Ra)}
(?:
(?:`+ed+":){7}(?:"+ed+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+ed+":){6}(?:"+Ja+"|:"+ed+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+ed+":){5}(?::"+Ja+"|(?::"+ed+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+ed+":){4}(?:(?::"+ed+"){0,1}:"+Ja+"|(?::"+ed+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+ed+":){3}(?:(?::"+ed+"){0,2}:"+Ja+"|(?::"+ed+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+ed+":){2}(?:(?::"+ed+"){0,3}:"+Ja+"|(?::"+ed+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+ed+":){1}(?:(?::"+ed+"){0,4}:"+Ja+"|(?::"+ed+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+ed+"){0,5}:"+Ja+"|(?::"+ed+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),rd=new RegExp("(?:^"+Ja+"$)|(?:^"+td+"$)"),sd=new RegExp("^"+Ja+"$"),od=new RegExp("^"+td+"$"),ld=function(Md){return Md&&Md.exact?rd:new RegExp("(?:"+qa(Md)+Ja+qa(Md)+")|(?:"+qa(Md)+td+qa(Md)+")","g")};ld.v4=function(Id){return Id&&Id.exact?sd:new RegExp(""+qa(Id)+Ja+qa(Id),"g")},ld.v6=function(Id){return Id&&Id.exact?od:new RegExp(""+qa(Id)+td+qa(Id),"g")};var cd="(?:(?:[a-z]+:)?//)",ud="(?:\\S+(?::\\S*)?@)?",_d=ld.v4().source,yd=ld.v6().source,gd="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",Ed="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",Td="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",kd="(?::\\d{2,5})?",Rd='(?:[/?#][^\\s"]*)?',Nd="(?:"+cd+"|www\\.)"+ud+"(?:localhost|"+_d+"|"+yd+"|"+gd+Ed+Td+")"+kd+Rd;return urlReg=new RegExp("(?:^"+Nd+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$2={integer:function(qa){return types$2.number(qa)&&parseInt(qa,10)===qa},float:function(qa){return types$2.number(qa)&&!types$2.integer(qa)},array:function(qa){return Array.isArray(qa)},regexp:function(qa){if(qa instanceof RegExp)return!0;try{return!!new RegExp(qa)}catch{return!1}},date:function(qa){return typeof qa.getTime=="function"&&typeof qa.getMonth=="function"&&typeof qa.getYear=="function"&&!isNaN(qa.getTime())},number:function(qa){return isNaN(qa)?!1:typeof qa=="number"},object:function(qa){return typeof qa=="object"&&!types$2.array(qa)},method:function(qa){return typeof qa=="function"},email:function(qa){return typeof qa=="string"&&qa.length<=320&&!!qa.match(pattern$2.email)},url:function(qa){return typeof qa=="string"&&qa.length<=2048&&!!qa.match(getUrlRegex())},hex:function(qa){return typeof qa=="string"&&!!qa.match(pattern$2.hex)}},type$1$1=function(qa,Ja,ed,td,rd){if(qa.required&&Ja===void 0){required$1(qa,Ja,ed,td,rd);return}var sd=["integer","float","array","regexp","object","method","email","number","date","url","hex"],od=qa.type;sd.indexOf(od)>-1?types$2[od](Ja)||td.push(format$2(rd.messages.types[od],qa.fullField,qa.type)):od&&typeof Ja!==qa.type&&td.push(format$2(rd.messages.types[od],qa.fullField,qa.type))},range$4=function(qa,Ja,ed,td,rd){var sd=typeof qa.len=="number",od=typeof qa.min=="number",ld=typeof qa.max=="number",cd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ud=Ja,_d=null,yd=typeof Ja=="number",gd=typeof Ja=="string",Ed=Array.isArray(Ja);if(yd?_d="number":gd?_d="string":Ed&&(_d="array"),!_d)return!1;Ed&&(ud=Ja.length),gd&&(ud=Ja.replace(cd,"_").length),sd?ud!==qa.len&&td.push(format$2(rd.messages[_d].len,qa.fullField,qa.len)):od&&!ld&&ud<qa.min?td.push(format$2(rd.messages[_d].min,qa.fullField,qa.min)):ld&&!od&&ud>qa.max?td.push(format$2(rd.messages[_d].max,qa.fullField,qa.max)):od&&ld&&(ud<qa.min||ud>qa.max)&&td.push(format$2(rd.messages[_d].range,qa.fullField,qa.min,qa.max))},ENUM$1="enum",enumerable$1=function(qa,Ja,ed,td,rd){qa[ENUM$1]=Array.isArray(qa[ENUM$1])?qa[ENUM$1]:[],qa[ENUM$1].indexOf(Ja)===-1&&td.push(format$2(rd.messages[ENUM$1],qa.fullField,qa[ENUM$1].join(", ")))},pattern$1=function(qa,Ja,ed,td,rd){if(qa.pattern){if(qa.pattern instanceof RegExp)qa.pattern.lastIndex=0,qa.pattern.test(Ja)||td.push(format$2(rd.messages.pattern.mismatch,qa.fullField,Ja,qa.pattern));else if(typeof qa.pattern=="string"){var sd=new RegExp(qa.pattern);sd.test(Ja)||td.push(format$2(rd.messages.pattern.mismatch,qa.fullField,Ja,qa.pattern))}}},rules={required:required$1,whitespace:whitespace$1,type:type$1$1,range:range$4,enum:enumerable$1,pattern:pattern$1},string=function(qa,Ja,ed,td,rd){var sd=[],od=qa.required||!qa.required&&td.hasOwnProperty(qa.field);if(od){if(isEmptyValue(Ja,"string")&&!qa.required)return ed();rules.required(qa,Ja,td,sd,rd,"string"),isEmptyValue(Ja,"string")||(rules.type(qa,Ja,td,sd,rd),rules.range(qa,Ja,td,sd,rd),rules.pattern(qa,Ja,td,sd,rd),qa.whitespace===!0&
height:0 !important;
visibility:hidden !important;
${isFirefox()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling(Ra){const qa=window.getComputedStyle(Ra),Ja=qa.getPropertyValue("box-sizing"),ed=Number.parseFloat(qa.getPropertyValue("padding-bottom"))+Number.parseFloat(qa.getPropertyValue("padding-top")),td=Number.parseFloat(qa.getPropertyValue("border-bottom-width"))+Number.parseFloat(qa.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(sd=>`${sd}:${qa.getPropertyValue(sd)}`).join(";"),paddingSize:ed,borderSize:td,boxSizing:Ja}}function calcTextareaHeight(Ra,qa=1,Ja){var ed;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:td,borderSize:rd,boxSizing:sd,contextStyle:od}=calculateNodeStyling(Ra);hiddenTextarea.setAttribute("style",`${od};${HIDDEN_STYLE}`),hiddenTextarea.value=Ra.value||Ra.placeholder||"";let ld=hiddenTextarea.scrollHeight;const cd={};sd==="border-box"?ld=ld+rd:sd==="content-box"&&(ld=ld-td),hiddenTextarea.value="";const ud=hiddenTextarea.scrollHeight-td;if(isNumber$3(qa)){let _d=ud*qa;sd==="border-box"&&(_d=_d+td+rd),ld=Math.max(_d,ld),cd.minHeight=`${_d}px`}if(isNumber$3(Ja)){let _d=ud*Ja;sd==="border-box"&&(_d=_d+td+rd),ld=Math.min(_d,ld)}return cd.height=`${ld}px`,(ed=hiddenTextarea.parentNode)==null||ed.removeChild(hiddenTextarea),hiddenTextarea=void 0,cd}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...useAriaProps(["ariaLabel"])}),inputEmits={[UPDATE_MODEL_EVENT]:Ra=>isString$3(Ra),input:Ra=>isString$3(Ra),change:Ra=>isString$3(Ra),focus:Ra=>Ra instanceof FocusEvent,blur:Ra=>Ra instanceof FocusEvent,clear:()=>!0,mouseleave:Ra=>Ra instanceof MouseEvent,mouseenter:Ra=>Ra instanceof MouseEvent,keydown:Ra=>Ra instanceof Event,compositionstart:Ra=>Ra instanceof CompositionEvent,compositionupdate:Ra=>Ra instanceof CompositionEvent,compositionend:Ra=>Ra instanceof CompositionEvent},__default__$z=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main$1f=defineComponent({...__default__$z,props:inputProps,emits:inputEmits,setup(Ra,{expose:qa,emit:Ja}){const ed=Ra,td=useAttrs$1(),rd=useSlots(),sd=computed(()=>{const Fh={};return ed.containerRole==="combobox"&&(Fh["aria-haspopup"]=td["aria-haspopup"],Fh["aria-owns"]=td["aria-owns"],Fh["aria-expanded"]=td["aria-expanded"]),Fh}),od=computed(()=>[ed.type==="textarea"?kd.b():Td.b(),Td.m(gd.value),Td.is("disabled",Ed.value),Td.is("exceed",Sf.value),{[Td.b("group")]:rd.prepend||rd.append,[Td.m("prefix")]:rd.prefix||ed.prefixIcon,[Td.m("suffix")]:rd.suffix||ed.suffixIcon||ed.clearable||ed.showPassword,[Td.bm("suffix","password-clear")]:Lf.value&&Wf.value,[Td.b("hidden")]:ed.type==="hidden"},td.class]),ld=computed(()=>[Td.e("wrapper"),Td.is("focus",Ud.value)]),cd=useAttrs({excludeKeys:computed(()=>Object.keys(sd.value))}),{form:ud,formItem:_d}=useFormItem(),{inputId:yd}=useFormItemInputId(ed,{formItemContext:_d}),gd=useFormSize(),Ed=useFormDisabled(),Td=useNamespace("input"),kd=useNamespace("textarea"),Rd=shallowRef(),Nd=shallowRef(),Id=ref$1(!1),Md=ref$1(!1
M 50 50
m 0 ${Md?"":"-"}${Id}
a ${Id} ${Id} 0 1 1 0 ${Md?"-":""}${Id*2}
a ${Id} ${Id} 0 1 1 0 ${Md?"":"-"}${Id*2}
`}),ld=computed(()=>2*Math.PI*sd.value),cd=computed(()=>qa.type==="dashboard"?.75:1),ud=computed(()=>`${-1*ld.value*(1-cd.value)/2}px`),_d=computed(()=>({strokeDasharray:`${ld.value*cd.value}px, ${ld.value}px`,strokeDashoffset:ud.value})),yd=computed(()=>({strokeDasharray:`${ld.value*cd.value*(qa.percentage/100)}px, ${ld.value}px`,strokeDashoffset:ud.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),gd=computed(()=>{let Id;return qa.color?Id=Nd(qa.percentage):Id=Ja[qa.status]||Ja.default,Id}),Ed=computed(()=>qa.status==="warning"?warning_filled_default:qa.type==="line"?qa.status==="success"?circle_check_default:circle_close_default:qa.status==="success"?check_default:close_default),Td=computed(()=>qa.type==="line"?12+qa.strokeWidth*.4:qa.width*.111111+2),kd=computed(()=>qa.format(qa.percentage));function Rd(Id){const Md=100/Id.length;return Id.map((Pd,qd)=>isString$3(Pd)?{color:Pd,percentage:(qd+1)*Md}:Pd).sort((Pd,qd)=>Pd.percentage-qd.percentage)}const Nd=Id=>{var Md;const{color:Ld}=qa;if(isFunction$4(Ld))return Ld(Id);if(isString$3(Ld))return Ld;{const Pd=Rd(Ld);for(const qd of Pd)if(qd.percentage>Id)return qd.color;return(Md=Pd[Pd.length-1])==null?void 0:Md.color}};return(Id,Md)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ed).b(),unref(ed).m(Id.type),unref(ed).is(Id.status),{[unref(ed).m("without-text")]:!Id.showText,[unref(ed).m("text-inside")]:Id.textInside}]),role:"progressbar","aria-valuenow":Id.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[Id.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ed).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(ed).be("bar","outer")),style:normalizeStyle({height:`${Id.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(ed).be("bar","inner"),{[unref(ed).bem("bar","inner","indeterminate")]:Id.indeterminate},{[unref(ed).bem("bar","inner","striped")]:Id.striped},{[unref(ed).bem("bar","inner","striped-flow")]:Id.stripedFlow}]),style:normalizeStyle(unref(td))},[(Id.showText||Id.$slots.default)&&Id.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ed).be("bar","innerText"))},[renderSlot(Id.$slots,"default",{percentage:Id.percentage},()=>[createBaseVNode("span",null,toDisplayString(unref(kd)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ed).b("circle")),style:normalizeStyle({height:`${Id.width}px`,width:`${Id.width}px`})},[(openBlock(),createElementBlock("svg",{viewBox:"0 0 100 100"},[createBaseVNode("path",{class:normalizeClass(unref(ed).be("circle","track")),d:unref(od),stroke:`var(${unref(ed).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":Id.strokeLinecap,"stroke-width":unref(rd),fill:"none",style:normalizeStyle(unref(_d))},null,14,["d","stroke","stroke-linecap","stroke-width"]),createBaseVNode("path",{class:normalizeClass(unref(ed).be("circle","path")),d:unref(od),stroke:unref(gd),fill:"none",opacity:Id.percentage?1:0,"stroke-linecap":Id.strokeLinecap,"stroke-width":unref(rd),style:normalizeStyle(unref(yd))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(Id.showText||Id.$slots.default)&&!Id.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ed).e("text")),style:normalizeStyle({fontSize:`${unref(Td)}px`})},[renderSlot(Id.$slots,"default",{percentage:Id.percentage},()=>[Id.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ed))))]),_:1})):(openBlock(),createElementBlock("span",{key:0},toDisplayString(unref(kd)),1))])],6)):createCommentVNode("v-if",!0)],10,["aria-valuenow"]))}});var Progress=_export_sfc$1(_sfc_main$G,[["__file","progress.vue"]]);const ElProgress=withInstall(Progress),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:isValidComponentSize},width:{type:[String,Number],default:"
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(Ra){const qa=base64Js$1,Ja=ieee754$1,ed=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=ud,Ra.SlowBuffer=Ld,Ra.INSPECT_MAX_BYTES=50;const td=2147483647;Ra.kMaxLength=td;const{Uint8Array:rd,ArrayBuffer:sd,SharedArrayBuffer:od}=globalThis;ud.TYPED_ARRAY_SUPPORT=ld(),!ud.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function ld(){try{const sh=new rd(1),Rf={foo:function(){return 42}};return Object.setPrototypeOf(Rf,rd.prototype),Object.setPrototypeOf(sh,Rf),sh.foo()===42}catch{return!1}}Object.defineProperty(ud.prototype,"parent",{enumerable:!0,get:function(){if(ud.isBuffer(this))return this.buffer}}),Object.defineProperty(ud.prototype,"offset",{enumerable:!0,get:function(){if(ud.isBuffer(this))return this.byteOffset}});function cd(sh){if(sh>td)throw new RangeError('The value "'+sh+'" is invalid for option "size"');const Rf=new rd(sh);return Object.setPrototypeOf(Rf,ud.prototype),Rf}function ud(sh,Rf,Df){if(typeof sh=="number"){if(typeof Rf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ed(sh)}return _d(sh,Rf,Df)}ud.poolSize=8192;function _d(sh,Rf,Df){if(typeof sh=="string")return Td(sh,Rf);if(sd.isView(sh))return Rd(sh);if(sh==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof sh);if(Fh(sh,sd)||sh&&Fh(sh.buffer,sd)||typeof od<"u"&&(Fh(sh,od)||sh&&Fh(sh.buffer,od)))return Nd(sh,Rf,Df);if(typeof sh=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Zf=sh.valueOf&&sh.valueOf();if(Zf!=null&&Zf!==sh)return ud.from(Zf,Rf,Df);const bh=Id(sh);if(bh)return bh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof sh[Symbol.toPrimitive]=="function")return ud.from(sh[Symbol.toPrimitive]("string"),Rf,Df);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof sh)}ud.from=function(sh,Rf,Df){return _d(sh,Rf,Df)},Object.setPrototypeOf(ud.prototype,rd.prototype),Object.setPrototypeOf(ud,rd);function yd(sh){if(typeof sh!="number")throw new TypeError('"size" argument must be of type number');if(sh<0)throw new RangeError('The value "'+sh+'" is invalid for option "size"')}function gd(sh,Rf,Df){return yd(sh),sh<=0?cd(sh):Rf!==void 0?typeof Df=="string"?cd(sh).fill(Rf,Df):cd(sh).fill(Rf):cd(sh)}ud.alloc=function(sh,Rf,Df){return gd(sh,Rf,Df)};function Ed(sh){return yd(sh),cd(sh<0?0:Md(sh)|0)}ud.allocUnsafe=function(sh){return Ed(sh)},ud.allocUnsafeSlow=function(sh){return Ed(sh)};function Td(sh,Rf){if((typeof Rf!="string"||Rf==="")&&(Rf="utf8"),!ud.isEncoding(Rf))throw new TypeError("Unknown encoding: "+Rf);const Df=Pd(sh,Rf)|0;let Zf=cd(Df);const bh=Zf.write(sh,Rf);return bh!==Df&&(Zf=Zf.slice(0,bh)),Zf}function kd(sh){const Rf=sh.length<0?0:Md(sh.length)|0,Df=cd(Rf);for(let Zf=0;Zf<Rf;Zf+=1)Df[Zf]=sh[Zf]&255;return Df}function Rd(sh){if(Fh(sh,rd)){const Rf=new rd(sh);return Nd(Rf.buffer,Rf.byteOffset,Rf.byteLength)}return kd(sh)}function Nd(sh,Rf,Df){if(Rf<0||sh.byteLength<Rf)throw new RangeError('"offset" is outside of buffer bounds');if(sh.byteLength<Rf+(Df||0))throw new RangeError('"length" is outside of buffer bounds');let Zf;return Rf===void 0&&Df===void 0?Zf=new rd(sh):Df===void 0?Zf=new rd(sh,Rf):Zf=new rd(sh,Rf,Df),Object.setPrototypeOf(Zf,ud.prototype),Zf}function Id(sh){if(ud.isBuffer(sh)){const Rf=Md(sh.length)|0,Df=cd(Rf);return Df.length===0||sh.copy(Df,0,0,Rf),Df}if(sh.length!==void 0)return typeof sh.length!="number"||Zh(sh.length)?cd(0):kd(sh);if(sh.type==="Buffer"&&Array.isArray(sh.data))return kd(sh.data)}function Md(sh){if(sh>=td)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+td.toString(16)+" bytes");return sh|0}function Ld(sh){return+sh!
https://github.com/highlightjs/highlight.js/issues/2277`),Yf=mf,Wf=xf),Lf===void 0&&(Lf=!0);const If={code:Wf,language:Yf};Xd("before:highlight",If);const Sf=If.result?If.result:_d(If.language,If.code,Lf);return Sf.code=If.code,Xd("after:highlight",Sf),Sf}function _d(mf,xf,Lf,Wf){const Yf=Object.create(null);function If(Wh,sm){return Wh.keywords[sm]}function Sf(){if(!Pf.keywords){Nh.addText(dh);return}let Wh=0;Pf.keywordPatternRe.lastIndex=0;let sm=Pf.keywordPatternRe.exec(dh),fm="";for(;sm;){fm+=dh.substring(Wh,sm.index);const sh=Gf.case_insensitive?sm[0].toLowerCase():sm[0],Rf=If(Pf,sh);if(Rf){const[Df,Zf]=Rf;if(Nh.addText(fm),fm="",Yf[sh]=(Yf[sh]||0)+1,Yf[sh]<=MAX_KEYWORD_HITS&&(jh+=Zf),Df.startsWith("_"))fm+=sm[0];else{const bh=Gf.classNameAliases[Df]||Df;qf(sm[0],bh)}}else fm+=sm[0];Wh=Pf.keywordPatternRe.lastIndex,sm=Pf.keywordPatternRe.exec(dh)}fm+=dh.substring(Wh),Nh.addText(fm)}function wf(){if(dh==="")return;let Wh=null;if(typeof Pf.subLanguage=="string"){if(!qa[Pf.subLanguage]){Nh.addText(dh);return}Wh=_d(Pf.subLanguage,dh,!0,gh[Pf.subLanguage]),gh[Pf.subLanguage]=Wh._top}else Wh=gd(dh,Pf.subLanguage.length?Pf.subLanguage:null);Pf.relevance>0&&(jh+=Wh.relevance),Nh.__addSublanguage(Wh._emitter,Wh.language)}function Kf(){Pf.subLanguage!=null?wf():Sf(),dh=""}function qf(Wh,sm){Wh!==""&&(Nh.startScope(sm),Nh.addText(Wh),Nh.endScope())}function gf(Wh,sm){let fm=1;const sh=sm.length-1;for(;fm<=sh;){if(!Wh._emit[fm]){fm++;continue}const Rf=Gf.classNameAliases[Wh[fm]]||Wh[fm],Df=sm[fm];Rf?qf(Df,Rf):(dh=Df,Sf(),dh=""),fm++}}function _f(Wh,sm){return Wh.scope&&typeof Wh.scope=="string"&&Nh.openNode(Gf.classNameAliases[Wh.scope]||Wh.scope),Wh.beginScope&&(Wh.beginScope._wrap?(qf(dh,Gf.classNameAliases[Wh.beginScope._wrap]||Wh.beginScope._wrap),dh=""):Wh.beginScope._multi&&(gf(Wh.beginScope,sm),dh="")),Pf=Object.create(Wh,{parent:{value:Pf}}),Pf}function $f(Wh,sm,fm){let sh=startsWith$1(Wh.endRe,fm);if(sh){if(Wh["on:end"]){const Rf=new Response$1(Wh);Wh["on:end"](sm,Rf),Rf.isMatchIgnored&&(sh=!1)}if(sh){for(;Wh.endsParent&&Wh.parent;)Wh=Wh.parent;return Wh}}if(Wh.endsWithParent)return $f(Wh.parent,sm,fm)}function zf(Wh){return Pf.matcher.regexIndex===0?(dh+=Wh[0],1):(Zh=!0,0)}function hh(Wh){const sm=Wh[0],fm=Wh.rule,sh=new Response$1(fm),Rf=[fm.__beforeBegin,fm["on:begin"]];for(const Df of Rf)if(Df&&(Df(Wh,sh),sh.isMatchIgnored))return zf(sm);return fm.skip?dh+=sm:(fm.excludeBegin&&(dh+=sm),Kf(),!fm.returnBegin&&!fm.excludeBegin&&(dh=sm)),_f(fm,Wh),fm.returnBegin?0:sm.length}function Vf(Wh){const sm=Wh[0],fm=xf.substring(Wh.index),sh=$f(Pf,Wh,fm);if(!sh)return NO_MATCH;const Rf=Pf;Pf.endScope&&Pf.endScope._wrap?(Kf(),qf(sm,Pf.endScope._wrap)):Pf.endScope&&Pf.endScope._multi?(Kf(),gf(Pf.endScope,Wh)):Rf.skip?dh+=sm:(Rf.returnEnd||Rf.excludeEnd||(dh+=sm),Kf(),Rf.excludeEnd&&(dh=sm));do Pf.scope&&Nh.closeNode(),!Pf.skip&&!Pf.subLanguage&&(jh+=Pf.relevance),Pf=Pf.parent;while(Pf!==sh.parent);return sh.starts&&_f(sh.starts,Wh),Rf.returnEnd?0:sm.length}function kf(){const Wh=[];for(let sm=Pf;sm!==Gf;sm=sm.parent)sm.scope&&Wh.unshift(sm.scope);Wh.forEach(sm=>Nh.openNode(sm))}let Jf={};function Ch(Wh,sm){const fm=sm&&sm[0];if(dh+=Wh,fm==null)return Kf(),0;if(Jf.type==="begin"&&sm.type==="end"&&Jf.index===sm.index&&fm===""){if(dh+=xf.slice(sm.index,sm.index+1),!td){const sh=new Error(`0 width match regex (${mf})`);throw sh.languageName=mf,sh.badRule=Jf.rule,sh}return 1}if(Jf=sm,sm.type==="begin")return hh(sm);if(sm.type==="illegal"&&!Lf){const sh=new Error('Illegal lexeme "'+fm+'" for mode "'+(Pf.scope||"<unnamed>")+'"');throw sh.mode=Pf,sh}else if(sm.type==="end"){const sh=Vf(sm);if(sh!==NO_MATCH)return sh}if(sm.type==="illegal"&&fm==="")return 1;if(Fh>1e5&&Fh>sm.index*3)throw new Error("potential infinite loop, way more iterations than matches");return dh+=fm,fm.length}const Gf=Ud(mf);if(!Gf)throw error(rd.replace("{}",mf)),new Error('Unknown language: "'+mf+'"');const Tf=compileLanguage(Gf);let Af="",Pf=Wf||Tf;const gh={},Nh=new od.__emitter(od);kf();let dh="",jh=0,Dh=0,Fh=0,Zh=!1;try{if(Gf.__emitTokens)Gf.__emitTokens(xf,Nh
`},Ed]}}return kotlin_1=td,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function Ra(qa){const Ja="[a-zA-Z_][\\w.]*",ed="<\\?(lasso(script)?|=)",td="\\]|\\?>",rd={$pattern:Ja+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},sd=qa.COMMENT("<!--","-->",{relevance:0}),od={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[sd]}},ld={className:"meta",begin:"\\[/noprocess|"+ed},cd={className:"symbol",begin:"'"+Ja+"'"},ud=[qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE,qa.inherit(qa.C_NUMBER_MODE,{begin:qa.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),qa.inherit(qa.APOS_STRING_MODE,{illegal:null}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+Ja},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:Ja,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+Ja,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[cd]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[qa.inherit(qa.TITLE_MODE,{begin:Ja+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:rd,contains:[{className:"meta",begin:td,relevance:0,starts:{end:"\\[|"+ed,returnEnd:!0,relevance:0,contains:[sd]}},od,ld,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:rd,contains:[{className:"meta",begin:td,relevance:0,starts:{end:"\\[noprocess\\]|"+ed,returnEnd:!0,contains:[sd]}},od,ld].concat(ud)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(ud)}}return lasso_1=Ra,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function Ra(qa){const ed=qa.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middl
]`,Ed={scope:"string",variants:[ud,cd,_d,yd]},Td={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},kd=["false","null","true"],Rd=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],Nd=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],Md={keyword:Rd,literal:(pf=>{const Xd=[];return pf.forEach(hf=>{Xd.push(hf),hf.toLowerCase()===hf?Xd.push(hf.toUpperCase()):Xd.push(hf.toLowerCase())}),Xd})(kd),built_in:Nd},Ld=pf=>pf.map(Xd=>Xd.replace(/\|\d+$/,"")),Pd={variants:[{match:[/new/,Ja.concat(gd,"+"),Ja.concat("(?!",Ld(Nd).join("\\b|"),"\\b)"),rd],scope:{1:"keyword",4:"title.class"}}]},qd=Ja.concat(td,"\\b(?!\\()"),Yd={variants:[{match:[Ja.concat(/::/,Ja.lookahead(/(?!class\b)/)),qd],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[rd,Ja.concat(/::/,Ja.lookahead(/(?!class\b)/)),qd],scope:{1:"title.class",3:"variable.constant"}},{match:[rd,Ja.concat("::",Ja.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[rd,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Ud={scope:"attr",match:Ja.concat(td,Ja.lookahead(":"),Ja.lookahead(/(?!::)/))},Hd={relevance:0,begin:/\(/,end:/\)/,keywords:Md,contains:[Ud,sd,Yd,qa.C_BLOCK_COMMENT_MODE,Ed,Td,Pd]},Vd={relevance:0,match:[/\b/,Ja.concat("(?!fn\\b|function\\b|",Ld(Rd).join("\\b|"),"|",Ld(Nd).join("\\b|"),"\\b)"),td,Ja.concat(gd,"*"),Ja.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Hd]};Hd.contains.push(Vd);const Jd=[Ud,Yd,qa.C_BLOCK_COMMENT_MODE,Ed,Td,Pd],Zd={begin:Ja.concat(/#\[\s*/,rd),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:kd,keyword:["new","array"]},contains:[{begi
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return smali_1=Ra,smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1;function Ra(qa){const Ja="[a-z][a-zA-Z0-9_]*",ed={className:"string",begin:"\\$.{1}"},td={className:"symbol",begin:"#"+qa.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[qa.COMMENT('"','"'),qa.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:Ja+":",relevance:0},qa.C_NUMBER_MODE,td,ed,{begin:"\\|[ ]*"+Ja+"([ ]+"+Ja+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+Ja}]},{begin:"#\\(",end:"\\)",contains:[qa.APOS_STRING_MODE,ed,qa.C_NUMBER_MODE,td]}]}}return smalltalk_1=Ra,smalltalk_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1;function Ra(qa){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},qa.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},qa.inherit(qa.APOS_STRING_MODE,{className:"string",relevance:0}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return sml_1=Ra,sml_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1;function Ra(qa){const Ja={className:"variable",begin:/\b_+[a-zA-Z]\w*/},ed={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},td={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},rd=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],sd=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],od=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerSc
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},qa.COMMENT("^[ ]*\\*.*$",!1),qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE]}}return stata_1=Ra,stata_1}var step21_1,hasRequiredStep21;function requireStep21(){if(hasRequiredStep21)return step21_1;hasRequiredStep21=1;function Ra(qa){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE,qa.COMMENT("/\\*\\*!","\\*/"),qa.C_NUMBER_MODE,qa.inherit(qa.APOS_STRING_MODE,{illegal:null}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return step21_1=Ra,step21_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1;const Ra=cd=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:cd.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[cd.APOS_STRING_MODE,cd.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:cd.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),qa=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ja=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],ed=[...qa,...Ja],td=["any
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return subunit_1=Ra,subunit_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1;function Ra(Yd){return Yd?typeof Yd=="string"?Yd:Yd.source:null}function qa(Yd){return Ja("(?=",Yd,")")}function Ja(...Yd){return Yd.map(Hd=>Ra(Hd)).join("")}function ed(Yd){const Ud=Yd[Yd.length-1];return typeof Ud=="object"&&Ud.constructor===Object?(Yd.splice(Yd.length-1,1),Ud):{}}function td(...Yd){return"("+(ed(Yd).capture?"":"?:")+Yd.map(Vd=>Ra(Vd)).join("|")+")"}const rd=Yd=>Ja(/\b/,Yd,/\w$/.test(Yd)?/\b/:/\B/),sd=["Protocol","Type"].map(rd),od=["init","self"].map(rd),ld=["Any","Self"],cd=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],ud=["false","nil","true"],_d=["assignment","associativity","higherThan","left","lowerThan","none","right"],yd=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],gd=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Ed=td(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Td=td(Ed,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),kd=Ja(Ed,Td,"*"),Rd=td(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Nd=td(Rd,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Id=Ja(Rd,Nd,"*"),Md=Ja(/[A-Z]/,Nd,"*"),Ld=["attached","autoclosure",Ja(/convention\(/,td("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","N
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+qa/2.075+" -"+qa+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+qa)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+qa)+" "+Ja+"h400000v"+(40+qa)+"h-400000z"},sqrtSize1=function(qa,Ja){return"M263,"+(601+qa+Ja)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+qa/2.084+" -"+qa+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+qa)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+qa)+" "+Ja+"h400000v"+(40+qa)+"h-400000z"},sqrtSize2=function(qa,Ja){return"M983 "+(10+qa+Ja)+`
l`+qa/3.13+" -"+qa+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+qa)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+qa)+" "+Ja+"h400000v"+(40+qa)+"h-400000z"},sqrtSize3=function(qa,Ja){return"M424,"+(2398+qa+Ja)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+qa/4.223+" -"+qa+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+qa)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+qa)+" "+Ja+`
h400000v`+(40+qa)+"h-400000z"},sqrtSize4=function(qa,Ja){return"M473,"+(2713+qa+Ja)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+qa/5.298+" -"+qa+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+qa)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+qa)+" "+Ja+"h400000v"+(40+qa)+"H1017.7z"},phasePath=function(qa){var Ja=qa/2;return"M400000 "+qa+" H0 L"+Ja+" 0 l65 45 L145 "+(qa-80)+" H400000z"},sqrtTall=function(qa,Ja,ed){var td=ed-54-Ja-qa;return"M702 "+(qa+Ja)+"H400000"+(40+qa)+`
H742v`+td+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+Ja+"H400000v"+(40+qa)+"H742z"},sqrtPath=function(qa,Ja,ed){Ja=1e3*Ja;var td="";switch(qa){case"sqrtMain":td=sqrtMain(Ja,hLinePad);break;case"sqrtSize1":td=sqrtSize1(Ja,hLinePad);break;case"sqrtSize2":td=sqrtSize2(Ja,hLinePad);break;case"sqrtSize3":td=sqrtSize3(Ja,hLinePad);break;case"sqrtSize4":td=sqrtSize4(Ja,hLinePad);break;case"sqrtTall":td=sqrtTall(Ja,hLinePad,ed)}return td},innerPath=function(qa,Ja){switch(qa){case"⎜":return"M291 0 H417 V"+Ja+" H291z M291 0 H417 V"+Ja+" H291z";case"":return"M145 0 H188 V"+Ja+" H145z M145 0 H188 V"+Ja+" H145z";case"∥":return"M145 0 H188 V"+Ja+" H145z M145 0 H188 V"+Ja+" H145z"+("M367 0 H410 V"+Ja+" H367z M367 0 H410 V"+Ja+" H367z");case"⎟":return"M457 0 H583 V"+Ja+" H457z M457 0 H583 V"+Ja+" H457z";case"⎢":return"M319 0 H403 V"+Ja+" H319z M319 0 H403 V"+Ja+" H319z";case"⎥":return"M263 0 H347 V"+Ja+" H263z M263 0 H347 V"+Ja+" H263z";case"⎪":return"M384 0 H504 V"+Ja+" H384z M384 0 H504 V"+Ja+" H384z";case"⏐":return"M312 0 H355 V"+Ja+" H312z M312 0 H355 V"+Ja+" H312z";case"‖":return"M257 0 H300 V"+Ja+" H257z M257 0 H300 V"+Ja+" H257z"+("M478 0 H521 V"+Ja+" H478z M478 0 H521 V"+Ja+" H478z");default:return""}},path={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},tallDelim=function(qa,Ja){switch(qa){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+Ja+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+Ja+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+Ja+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+Ja+" v1759 h84z";case"vert":return"M145 15 v585 v"+Ja+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-Ja+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+Ja+" v585 h43z";case"doublevert":return"M145 15 v585 v"+Ja+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-Ja+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+Ja+` v585 h43z
M367 15 v585 v`+Ja+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-Ja+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+Ja+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+Ja+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+Ja+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+Ja+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+Ja+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+Ja+` v602 h84z
M403 1759 V0 H319 V1759 v`+Ja+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+Ja+` v602 h84z
M347 1759 V0 h-84 V1759 v`+Ja+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(Ja+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(Ja+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(Ja+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(Ja+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class DocumentFragment{constructor(qa){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=qa,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(qa){return utils$6.contains(this.classes,qa)}toNode(){for(var qa=document.createDocumentFragment(),Ja=0;Ja<this.children.length;Ja++)qa.appendChild(this.children[Ja].toNode());return qa}toMarkup(){for(var qa="",Ja=0;Ja<this.children.length;Ja++)qa+=this.children[Ja].toMarkup();return qa}toText(){var qa=Ja=>Ja.toText();return this.children.map(qa).join("")}}var fontMetricsData={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77
`+qd+" children.");for(var Vd=0;Vd<qd;Vd++){var Jd=new PathNode(Id[Vd]),Zd=new SvgNode([Jd],{width:"400em",height:makeEm(Pd),viewBox:"0 0 "+od+" "+Ld,preserveAspectRatio:Ud[Vd]+" slice"}),pf=buildCommon.makeSvgSpan([Yd[Vd]],[Zd],Ja);if(qd===1)return{span:pf,minWidth:Md,height:Pd};pf.style.height=makeEm(Pd),Rd.push(pf)}return{span:buildCommon.makeSpan(["stretchy"],Rd,Ja),minWidth:Md,height:Pd}}}var{span:td,minWidth:rd,height:sd}=ed();return td.height=sd,td.style.height=makeEm(sd),rd>0&&(td.style.minWidth=makeEm(rd)),td},encloseSpan=function(qa,Ja,ed,td,rd){var sd,od=qa.height+qa.depth+ed+td;if(/fbox|color|angl/.test(Ja)){if(sd=buildCommon.makeSpan(["stretchy",Ja],[],rd),Ja==="fbox"){var ld=rd.color&&rd.getColor();ld&&(sd.style.borderColor=ld)}}else{var cd=[];/^[bx]cancel$/.test(Ja)&&cd.push(new LineNode({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(Ja)&&cd.push(new LineNode({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var ud=new SvgNode(cd,{width:"100%",height:makeEm(od)});sd=buildCommon.makeSvgSpan([],[ud],rd)}return sd.height=od,sd.style.height=makeEm(od),sd},stretchy={encloseSpan,mathMLnode,svgSpan};function assertNodeType(Ra,qa){if(!Ra||Ra.type!==qa)throw new Error("Expected node of type "+qa+", but got "+(Ra?"node of type "+Ra.type:String(Ra)));return Ra}function assertSymbolNodeType(Ra){var qa=checkSymbolNodeType(Ra);if(!qa)throw new Error("Expected node of symbol group type, but got "+(Ra?"node of type "+Ra.type:String(Ra)));return qa}function checkSymbolNodeType(Ra){return Ra&&(Ra.type==="atom"||NON_ATOMS.hasOwnProperty(Ra.type))?Ra:null}var htmlBuilder$a=(Ra,qa)=>{var Ja,ed,td;Ra&&Ra.type==="supsub"?(ed=assertNodeType(Ra.base,"accent"),Ja=ed.base,Ra.base=Ja,td=assertSpan(buildGroup$1(Ra,qa)),Ra.base=ed):(ed=assertNodeType(Ra,"accent"),Ja=ed.base);var rd=buildGroup$1(Ja,qa.havingCrampedStyle()),sd=ed.isShifty&&utils$6.isCharacterBox(Ja),od=0;if(sd){var ld=utils$6.getBaseElem(Ja),cd=buildGroup$1(ld,qa.havingCrampedStyle());od=assertSymbolDomNode(cd).skew}var ud=ed.label==="\\c",_d=ud?rd.height+rd.depth:Math.min(rd.height,qa.fontMetrics().xHeight),yd;if(ed.isStretchy)yd=stretchy.svgSpan(ed,qa),yd=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:rd},{type:"elem",elem:yd,wrapperClasses:["svg-align"],wrapperStyle:od>0?{width:"calc(100% - "+makeEm(2*od)+")",marginLeft:makeEm(2*od)}:void 0}]},qa);else{var gd,Ed;ed.label==="\\vec"?(gd=buildCommon.staticSvg("vec",qa),Ed=buildCommon.svgData.vec[1]):(gd=buildCommon.makeOrd({mode:ed.mode,text:ed.label},qa,"textord"),gd=assertSymbolDomNode(gd),gd.italic=0,Ed=gd.width,ud&&(_d+=gd.depth)),yd=buildCommon.makeSpan(["accent-body"],[gd]);var Td=ed.label==="\\textcircled";Td&&(yd.classes.push("accent-full"),_d=rd.height);var kd=od;Td||(kd-=Ed/2),yd.style.left=makeEm(kd),ed.label==="\\textcircled"&&(yd.style.top=".2em"),yd=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:rd},{type:"kern",size:-_d},{type:"elem",elem:yd}]},qa)}var Rd=buildCommon.makeSpan(["mord","accent"],[yd],qa);return td?(td.children[0]=Rd,td.height=Math.max(Rd.height,td.height),td.classes[0]="mord",td):Rd},mathmlBuilder$9=(Ra,qa)=>{var Ja=Ra.isStretchy?stretchy.mathMLnode(Ra.label):new mathMLTree.MathNode("mo",[makeText(Ra.label,Ra.mode)]),ed=new mathMLTree.MathNode("mover",[buildGroup2(Ra.base,qa),Ja]);return ed.setAttribute("accent","true"),ed},NON_STRETCHY_ACCENT_REGEX=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(Ra=>"\\"+Ra).join("|"));defineFunction({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(Ra,qa)=>{var Ja=normalizeArgument(qa[0]),ed=!NON_STRETCHY_ACCENT_REGEX.test(Ra.funcName),td=!ed||Ra.funcName==="\\
]`,controlWordRegexString="\\\\[a-zA-Z@]+",controlSymbolRegexString="\\\\[^\uD800-\uDFFF]",controlWordWhitespaceRegexString="("+controlWordRegexString+")"+spaceRegexString+"*",controlSpaceRegexString=`\\\\(
|[ \r ]+
?)[ \r ]*`,combiningDiacriticalMarkString="[̀-ͯ]",combiningDiacriticalMarksEndRegex=new RegExp(combiningDiacriticalMarkString+"+$"),tokenRegexString="("+spaceRegexString+"+)|"+(controlSpaceRegexString+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(combiningDiacriticalMarkString+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(combiningDiacriticalMarkString+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+controlWordWhitespaceRegexString)+("|"+controlSymbolRegexString+")");class Lexer{constructor(qa,Ja){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=qa,this.settings=Ja,this.tokenRegex=new RegExp(tokenRegexString,"g"),this.catcodes={"%":14,"~":13}}setCatcode(qa,Ja){this.catcodes[qa]=Ja}lex(){var qa=this.input,Ja=this.tokenRegex.lastIndex;if(Ja===qa.length)return new Token("EOF",new SourceLocation(this,Ja,Ja));var ed=this.tokenRegex.exec(qa);if(ed===null||ed.index!==Ja)throw new ParseError("Unexpected character: '"+qa[Ja]+"'",new Token(qa[Ja],new SourceLocation(this,Ja,Ja+1)));var td=ed[6]||ed[3]||(ed[2]?"\\ ":" ");if(this.catcodes[td]===14){var rd=qa.indexOf(`
`,this.tokenRegex.lastIndex);return rd===-1?(this.tokenRegex.lastIndex=qa.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=rd+1,this.lex()}return new Token(td,new SourceLocation(this,Ja,this.tokenRegex.lastIndex))}}class Namespace{constructor(qa,Ja){qa===void 0&&(qa={}),Ja===void 0&&(Ja={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Ja,this.builtins=qa,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ParseError("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var qa=this.undefStack.pop();for(var Ja in qa)qa.hasOwnProperty(Ja)&&(qa[Ja]==null?delete this.current[Ja]:this.current[Ja]=qa[Ja])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(qa){return this.current.hasOwnProperty(qa)||this.builtins.hasOwnProperty(qa)}get(qa){return this.current.hasOwnProperty(qa)?this.current[qa]:this.builtins[qa]}set(qa,Ja,ed){if(ed===void 0&&(ed=!1),ed){for(var td=0;td<this.undefStack.length;td++)delete this.undefStack[td][qa];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][qa]=Ja)}else{var rd=this.undefStack[this.undefStack.length-1];rd&&!rd.hasOwnProperty(qa)&&(rd[qa]=this.current[qa])}Ja==null?delete this.current[qa]:this.current[qa]=Ja}}var macros=_macros;defineMacro("\\noexpand",function(Ra){var qa=Ra.popToken();return Ra.isExpandable(qa.text)&&(qa.noexpand=!0,qa.treatAsRelax=!0),{tokens:[qa],numArgs:0}});defineMacro("\\expandafter",function(Ra){var qa=Ra.popToken();return Ra.expandOnce(!0),{tokens:[qa],numArgs:0}});defineMacro("\\@firstoftwo",function(Ra){var qa=Ra.consumeArgs(2);return{tokens:qa[0],numArgs:0}});defineMacro("\\@secondoftwo",function(Ra){var qa=Ra.consumeArgs(2);return{tokens:qa[1],numArgs:0}});defineMacro("\\@ifnextchar",function(Ra){var qa=Ra.consumeArgs(3);Ra.consumeSpaces();var Ja=Ra.future();return qa[0].length===1&&qa[0][0].text===Ja.text?{tokens:qa[1],numArgs:0}:{tokens:qa[2],numArgs:0}});defineMacro("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");defineMacro("\\TextOrMath",function(Ra){var qa=Ra.consumeArgs(2);return Ra.mode==="text"?{tokens:qa[0],numArgs:0}:{tokens:qa[1],numArgs:0}});var digitToNumber={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};defineMacro("\\char",function(Ra){var qa=Ra.popToken(),Ja,ed="";if(qa.text==="'")Ja=8,qa=Ra.popToken();else if(qa.text==='"')Ja=16,qa=Ra.popToken();else if(qa.text==="`")if(qa=Ra.popToken(),qa.text[0]==="\\")ed=qa.text.charCodeAt(1);else{if(qa.text==="EOF")throw new ParseError("\\char` missing argument");ed=qa.text.charCodeAt(0)}else Ja=10;if(Ja){if(ed=digitToNumber[qa.text],ed==null||ed>=Ja)throw new ParseError("Invalid base-"+Ja+" digit "+qa.text);for(var td;(td=digitToNumber[Ra.future().text])!=null&&td<Ja;)ed*=Ja,ed+=td,Ra.popToken()}return"\\@char{"+ed+"}"});var newcommand=(Ra,qa,Ja)=>{var ed=Ra.consumeArg().tokens;if(ed.length!==1)throw new ParseError("\\newcommand's first argument must be a macro name");var td=ed[0].text,rd=Ra.isDefined(td);if(rd&&!qa)throw new ParseError("\\newcommand{"+td+"} attempting to redefine "+(td+"; use \\renewcommand"));if(!rd&&!Ja)throw new ParseError("\\renewcommand{"+td+"} when command "+td+" does not yet exist; use \\newcommand");var sd=0;if(ed=Ra.consumeArg().tokens,ed.length===1&&ed[0].text==="["){for(var od="",ld=Ra.expandNextToken();ld.text!=="]"&&ld.text!=="EOF";)od+=ld.text,ld=Ra.expandNextToken();if(!od.match(/^\s*[0-9]+\s*$/))throw new ParseError("Invalid number of arguments: "+od);sd=parseInt(od),ed=Ra.consumeArg().tokens}return Ra.macros.set(td,{tokens:ed,numArgs:sd}),""};defineMacro("\\newcommand",Ra=>newcommand(Ra,!1,!0));defineMacro("\\renewcommand",Ra=>newcommand(Ra,!0,!1));defineMacro("\\providecommand",Ra=>newcommand(Ra,!0,!0));defineMacro("\\message",Ra=>{var qa=Ra.consumeArgs(1)[0];return console.log(qa.reverse().map(Ja=>Ja.text).join("")),""})
please report what input caused this bug`);return ed=ed.slice(1,-1),{type:"verb",mode:"text",body:ed,star:td}}unicodeSymbols.hasOwnProperty(Ja[0])&&!symbols[this.mode][Ja[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Ja[0]+'" used in math mode',qa),Ja=unicodeSymbols[Ja[0]]+Ja.slice(1));var rd=combiningDiacriticalMarksEndRegex.exec(Ja);rd&&(Ja=Ja.substring(0,rd.index),Ja==="i"?Ja="ı":Ja==="j"&&(Ja="ȷ"));var sd;if(symbols[this.mode][Ja]){this.settings.strict&&this.mode==="math"&&extraLatin.indexOf(Ja)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Ja[0]+'" used in math mode',qa);var od=symbols[this.mode][Ja].group,ld=SourceLocation.range(qa),cd;if(ATOMS.hasOwnProperty(od)){var ud=od;cd={type:"atom",mode:this.mode,family:ud,loc:ld,text:Ja}}else cd={type:od,mode:this.mode,loc:ld,text:Ja};sd=cd}else if(Ja.charCodeAt(0)>=128)this.settings.strict&&(supportedCodepoint(Ja.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Ja[0]+'" used in math mode',qa):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Ja[0]+'"'+(" ("+Ja.charCodeAt(0)+")"),qa)),sd={type:"textord",mode:"text",loc:SourceLocation.range(qa),text:Ja};else return null;if(this.consume(),rd)for(var _d=0;_d<rd[0].length;_d++){var yd=rd[0][_d];if(!unicodeAccents[yd])throw new ParseError("Unknown accent ' "+yd+"'",qa);var gd=unicodeAccents[yd][this.mode]||unicodeAccents[yd].text;if(!gd)throw new ParseError("Accent "+yd+" unsupported in "+this.mode+" mode",qa);sd={type:"accent",mode:this.mode,loc:SourceLocation.range(qa),label:gd,isStretchy:!1,isShifty:!0,base:sd}}return sd}};Parser$1.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var parseTree=function(qa,Ja){if(!(typeof qa=="string"||qa instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var ed=new Parser$1(qa,Ja);delete ed.gullet.macros.current["\\df@tag"];var td=ed.parse();if(delete ed.gullet.macros.current["\\current@color"],delete ed.gullet.macros.current["\\color"],ed.gullet.macros.get("\\df@tag")){if(!Ja.displayMode)throw new ParseError("\\tag works only in display equations");td=[{type:"tag",mode:"text",body:td,tag:ed.subparse([new Token("\\df@tag")])}]}return td},render$2=function(qa,Ja,ed){Ja.textContent="";var td=renderToDomTree(qa,ed).toNode();Ja.appendChild(td)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),render$2=function(){throw new ParseError("KaTeX doesn't work in quirks mode.")});var renderToString=function(qa,Ja){var ed=renderToDomTree(qa,Ja).toMarkup();return ed},generateParseTree=function(qa,Ja){var ed=new Settings(Ja);return parseTree(qa,ed)},renderError=function(qa,Ja,ed){if(ed.throwOnError||!(qa instanceof ParseError))throw qa;var td=buildCommon.makeSpan(["katex-error"],[new SymbolNode(Ja)]);return td.setAttribute("title",qa.toString()),td.setAttribute("style","color:"+ed.errorColor),td},renderToDomTree=function(qa,Ja){var ed=new Settings(Ja);try{var td=parseTree(qa,ed);return buildTree(td,qa,ed)}catch(rd){return renderError(rd,qa,ed)}},renderToHTMLTree=function(qa,Ja){var ed=new Settings(Ja);try{var td=parseTree(qa,ed);return buildHTMLTree(td,qa,ed)}catch(rd){return renderError(rd,qa,ed)}},katex={version:"0.16.11",render:render$2,renderToString,ParseError,SETTINGS_SCHEMA,__parse:generateParseTree,__renderToDomTree:renderToDomTree,__renderToHTMLTree:renderToHTMLTree,__setFontMetrics:setFontMetrics,__defineSymbol:defineSymbol,__defineFunction:defineFunction,__defineMacro:defineMacro,__domTree:{Span,Anchor,SymbolNode,SvgNode,PathNode,LineNode}};const katex$1=Object.freeze(Object.defineProperty({__proto__:null,default:katex},Symbol.toStringTag,{value:"Module"})),inlineRule=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,inlineRul
`:"")}function inlineKatex(Ra,qa){const Ja=Ra&&Ra.nonStandard,ed=Ja?inlineRuleNonStandard:inlineRule;return{name:"inlineKatex",level:"inline",start(td){let rd,sd=td;for(;sd;){if(rd=sd.indexOf("$"),rd===-1)return;if((Ja?rd>-1:rd===0||sd.charAt(rd-1)===" ")&&sd.substring(rd).match(ed))return rd;sd=sd.substring(rd+1).replace(/^\$+/,"")}},tokenizer(td,rd){const sd=td.match(ed);if(sd)return{type:"inlineKatex",raw:sd[0],text:sd[2].trim(),displayMode:sd[1].length===2}},renderer:qa}}function blockKatex(Ra,qa){return{name:"blockKatex",level:"block",tokenizer(Ja,ed){const td=Ja.match(blockRule);if(td)return{type:"blockKatex",raw:td[0],text:td[2].trim(),displayMode:td[1].length===2}},renderer:qa}}const scriptRel="modulepreload",assetsURL=function(Ra){return"/md/"+Ra},seen={},__vitePreload=function(qa,Ja,ed){let td=Promise.resolve();if(Ja&&Ja.length>0){document.getElementsByTagName("link");const rd=document.querySelector("meta[property=csp-nonce]"),sd=(rd==null?void 0:rd.nonce)||(rd==null?void 0:rd.getAttribute("nonce"));td=Promise.all(Ja.map(od=>{if(od=assetsURL(od),od in seen)return;seen[od]=!0;const ld=od.endsWith(".css"),cd=ld?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${od}"]${cd}`))return;const ud=document.createElement("link");if(ud.rel=ld?"stylesheet":scriptRel,ld||(ud.as="script"),ud.crossOrigin="",ud.href=od,sd&&ud.setAttribute("nonce",sd),document.head.appendChild(ud),ld)return new Promise((_d,yd)=>{ud.addEventListener("load",_d),ud.addEventListener("error",()=>yd(new Error(`Unable to preload CSS for ${od}`)))})}))}return td.then(()=>qa()).catch(rd=>{const sd=new Event("vite:preloadError",{cancelable:!0});if(sd.payload=rd,window.dispatchEvent(sd),!sd.defaultPrevented)throw rd})},Channel={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:Ra=>Ra>=255?255:Ra<0?0:Ra,g:Ra=>Ra>=255?255:Ra<0?0:Ra,b:Ra=>Ra>=255?255:Ra<0?0:Ra,h:Ra=>Ra%360,s:Ra=>Ra>=100?100:Ra<0?0:Ra,l:Ra=>Ra>=100?100:Ra<0?0:Ra,a:Ra=>Ra>=1?1:Ra<0?0:Ra},toLinear:Ra=>{const qa=Ra/255;return Ra>.03928?Math.pow((qa+.055)/1.055,2.4):qa/12.92},hue2rgb:(Ra,qa,Ja)=>(Ja<0&&(Ja+=1),Ja>1&&(Ja-=1),Ja<1/6?Ra+(qa-Ra)*6*Ja:Ja<1/2?qa:Ja<2/3?Ra+(qa-Ra)*(2/3-Ja)*6:Ra),hsl2rgb:({h:Ra,s:qa,l:Ja},ed)=>{if(!qa)return Ja*2.55;Ra/=360,qa/=100,Ja/=100;const td=Ja<.5?Ja*(1+qa):Ja+qa-Ja*qa,rd=2*Ja-td;switch(ed){case"r":return Channel.hue2rgb(rd,td,Ra+1/3)*255;case"g":return Channel.hue2rgb(rd,td,Ra)*255;case"b":return Channel.hue2rgb(rd,td,Ra-1/3)*255}},rgb2hsl:({r:Ra,g:qa,b:Ja},ed)=>{Ra/=255,qa/=255,Ja/=255;const td=Math.max(Ra,qa,Ja),rd=Math.min(Ra,qa,Ja),sd=(td+rd)/2;if(ed==="l")return sd*100;if(td===rd)return 0;const od=td-rd,ld=sd>.5?od/(2-td-rd):od/(td+rd);if(ed==="s")return ld*100;switch(td){case Ra:return((qa-Ja)/od+(qa<Ja?6:0))*60;case qa:return((Ja-Ra)/od+2)*60;case Ja:return((Ra-qa)/od+4)*60;default:return-1}}},Lang$2={clamp:(Ra,qa,Ja)=>qa>Ja?Math.min(qa,Math.max(Ja,Ra)):Math.min(Ja,Math.max(qa,Ra)),round:Ra=>Math.round(Ra*1e10)/1e10},Unit={dec2hex:Ra=>{const qa=Math.round(Ra).toString(16);return qa.length>1?qa:`0${qa}`}},Utils={channel:Channel,lang:Lang$2,unit:Unit},DEC2HEX={};for(let Ra=0;Ra<=255;Ra++)DEC2HEX[Ra]=Utils.unit.dec2hex(Ra);const TYPE={ALL:0,RGB:1,HSL:2};class Type{constructor(){this.type=TYPE.ALL}get(){return this.type}set(qa){if(this.type&&this.type!==qa)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=qa}reset(){this.type=TYPE.ALL}is(qa){return this.type===qa}}class Channels{constructor(qa,Ja){this.color=Ja,this.changed=!1,this.data=qa,this.type=new Type}set(qa,Ja){return this.color=Ja,this.changed=!1,this.data=qa,this.type.type=TYPE.ALL,this}_ensureHSL(){const qa=this.data,{h:Ja,s:ed,l:td}=qa;Ja===void 0&&(qa.h=Utils.channel.rgb2hsl(qa,"h")),ed===void 0&&(qa.s=Utils.channel.rgb2hsl(qa,"s")),td===void 0&&(qa.l=Utils.channel.rgb2hsl(qa,"l"))}_ensureRGB(){const qa=this.data,{r:Ja,g:ed,b:td}=qa;Ja===void 0&&(qa.r=Utils.channel.hsl2rgb(qa,"r")),ed===void 0&&(qa.g=Utils.channel.hsl2rgb(qa,"g")),td===void 0&&(qa.b=Utils.channel.hsl2rgb(qa,"b"))}get r(){const qa=this.data,Ja=qa.r;
`+m1),Vf&&arrayForEach([Jd,Zd,pf],f1=>{m1=stringReplace(m1,f1," ")}),Md&&Pf?Md.createHTML(m1):m1},qa.setConfig=function(){let Bh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};x1(Bh),Ch=!0},qa.clearConfig=function(){Jm=null,Ch=!1},qa.isValidAttribute=function(Bh,Ah,cm){Jm||x1({});const um=Om(Bh),_m=Om(Ah);return yh(um,_m,cm)},qa.addHook=function(Bh,Ah){typeof Ah=="function"&&(Vd[Bh]=Vd[Bh]||[],arrayPush(Vd[Bh],Ah))},qa.removeHook=function(Bh){if(Vd[Bh])return arrayPop(Vd[Bh])},qa.removeHooks=function(Bh){Vd[Bh]&&(Vd[Bh]=[])},qa.removeAllHooks=function(){Vd={}},qa}var purify=createDOMPurify(),__defProp=Object.defineProperty,__name=(Ra,qa)=>__defProp(Ra,"name",{value:qa,configurable:!0}),__export=(Ra,qa)=>{for(var Ja in qa)__defProp(Ra,Ja,{get:qa[Ja],enumerable:!0})},LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},log$1={trace:__name((...Ra)=>{},"trace"),debug:__name((...Ra)=>{},"debug"),info:__name((...Ra)=>{},"info"),warn:__name((...Ra)=>{},"warn"),error:__name((...Ra)=>{},"error"),fatal:__name((...Ra)=>{},"fatal")},setLogLevel=__name(function(Ra="fatal"){let qa=LEVELS.fatal;typeof Ra=="string"?Ra.toLowerCase()in LEVELS&&(qa=LEVELS[Ra]):typeof Ra=="number"&&(qa=Ra),log$1.trace=()=>{},log$1.debug=()=>{},log$1.info=()=>{},log$1.warn=()=>{},log$1.error=()=>{},log$1.fatal=()=>{},qa<=LEVELS.fatal&&(log$1.fatal=console.error?console.error.bind(console,format$1("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",format$1("FATAL"))),qa<=LEVELS.error&&(log$1.error=console.error?console.error.bind(console,format$1("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",format$1("ERROR"))),qa<=LEVELS.warn&&(log$1.warn=console.warn?console.warn.bind(console,format$1("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",format$1("WARN"))),qa<=LEVELS.info&&(log$1.info=console.info?console.info.bind(console,format$1("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",format$1("INFO"))),qa<=LEVELS.debug&&(log$1.debug=console.debug?console.debug.bind(console,format$1("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("DEBUG"))),qa<=LEVELS.trace&&(log$1.trace=console.debug?console.debug.bind(console,format$1("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("TRACE")))},"setLogLevel"),format$1=__name(Ra=>`%c${dayjs2().format("ss.SSS")} : ${Ra} : `,"format"),frontMatterRegex=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,directiveRegex=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,anyCommentRegex=/\s*%%.*\n/gm,oy,UnknownDiagramError=(oy=class extends Error{constructor(qa){super(qa),this.name="UnknownDiagramError"}},__name(oy,"UnknownDiagramError"),oy),detectors={},detectType=__name(function(Ra,qa){Ra=Ra.replace(frontMatterRegex,"").replace(directiveRegex,"").replace(anyCommentRegex,`
`);for(const[Ja,{detector:ed}]of Object.entries(detectors))if(ed(Ra,qa))return Ja;throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${Ra}`)},"detectType"),registerLazyLoadedDiagrams=__name((...Ra)=>{for(const{id:qa,detector:Ja,loader:ed}of Ra)addDetector(qa,Ja,ed)},"registerLazyLoadedDiagrams"),addDetector=__name((Ra,qa,Ja)=>{detectors[Ra]&&log$1.warn(`Detector with key ${Ra} already exists. Overwriting.`),detectors[Ra]={detector:qa,loader:Ja},log$1.debug(`Detector with key ${Ra} added${Ja?" with loader":""}`)},"addDetector"),getDiagramLoader=__name(Ra=>detectors[Ra].loader,"getDiagramLoader"),assignWithDepth=__name((Ra,qa,{depth:Ja=2,clobber:ed=!1}={})=>{const td={depth:Ja,clobber:ed};return Array.isArray(qa)&&!Array.isArray(Ra)?(qa.forEach(rd=>assignWithDepth(Ra,rd,td)),Ra):Array.isArray(qa)&&Array.isArray(Ra)?(qa.forEach(rd=>{Ra.includes(rd)||Ra.push(rd)}),Ra):Ra===void 0||Ja<=0?Ra!=null&&typeof Ra=="object"&&typeof qa=="object"?Object.assign(Ra,qa):qa:(qa!==void 0&&typeof Ra=="object"&&typeof qa=="object"&&Object.keys(qa).forEach(rd=>{typeof qa[rd]=="object"&&(Ra[rd]===void 0||typeof Ra[rd]=="object")?(Ra[rd]===void 0&&(Ra[rd]=Array.isArray(qa[rd])?[]:{}),Ra[rd]=assignWithDepth(Ra[rd],qa[rd],{depth:Ja-1,clobber:ed})):(ed||typeof Ra[rd]!="object"&&typeof qa[rd]!="object")&&(Ra[rd]=qa[rd])}),Ra)},"assignWithDepth"),assignWithDepth_default=assignWithDepth,oldAttributeBackgroundColorOdd="#ffffff",oldAttributeBackgroundColorEven="#f2f2f2",mkBorder=__name((Ra,qa)=>qa?adjust(Ra,{s:-40,l:10}):adjust(Ra,{s:-40,l:-10}),"mkBorder"),uy,Theme=(uy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var Ja,ed,td,rd,sd,od,ld,cd,ud,_d,yd;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||adjust(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||adjust(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mkBorder(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mkBorder(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||invert(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||invert(this.tertiaryColor),this.lineColor=this.lineColor||invert(this.background),this.arrowheadColor=this.arrowheadColor||invert(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?darken(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextCo
font-family: ${Ja.fontFamily};
font-size: ${Ja.fontSize};
fill: ${Ja.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${Ja.errorBkgColor};
}
& .error-text {
fill: ${Ja.errorTextColor};
stroke: ${Ja.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 1px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-thickness-invisible {
stroke-width: 0;
fill: none;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${Ja.lineColor};
stroke: ${Ja.lineColor};
}
& .marker.cross {
stroke: ${Ja.lineColor};
}
& svg {
font-family: ${Ja.fontFamily};
font-size: ${Ja.fontSize};
}
& p {
margin: 0
}
${ed}
${qa}
`},"getStyles"),addStylesForDiagram=__name((Ra,qa)=>{qa!==void 0&&(themes[Ra]=qa)},"addStylesForDiagram"),styles_default=getStyles$1,commonDb_exports={};__export(commonDb_exports,{clear:()=>clear$1,getAccDescription:()=>getAccDescription,getAccTitle:()=>getAccTitle,getDiagramTitle:()=>getDiagramTitle,setAccDescription:()=>setAccDescription,setAccTitle:()=>setAccTitle,setDiagramTitle:()=>setDiagramTitle});var accTitle="",diagramTitle="",accDescription="",sanitizeText2=__name(Ra=>sanitizeText(Ra,getConfig$1()),"sanitizeText"),clear$1=__name(()=>{accTitle="",accDescription="",diagramTitle=""},"clear"),setAccTitle=__name(Ra=>{accTitle=sanitizeText2(Ra).replace(/^\s+/g,"")},"setAccTitle"),getAccTitle=__name(()=>accTitle,"getAccTitle"),setAccDescription=__name(Ra=>{accDescription=sanitizeText2(Ra).replace(/\n\s+/g,`
`)},"setAccDescription"),getAccDescription=__name(()=>accDescription,"getAccDescription"),setDiagramTitle=__name(Ra=>{diagramTitle=sanitizeText2(Ra)},"setDiagramTitle"),getDiagramTitle=__name(()=>diagramTitle,"getDiagramTitle"),log2=log$1,setLogLevel2=setLogLevel,getConfig2=getConfig$1,setConfig2=setConfig,defaultConfig2=defaultConfig,sanitizeText3=__name(Ra=>sanitizeText(Ra,getConfig2()),"sanitizeText"),setupGraphViewbox2=setupGraphViewbox,getCommonDb=__name(()=>commonDb_exports,"getCommonDb"),diagrams={},registerDiagram=__name((Ra,qa,Ja)=>{var ed;diagrams[Ra]&&log2.warn(`Diagram with id ${Ra} already registered. Overwriting.`),diagrams[Ra]=qa,Ja&&addDetector(Ra,Ja),addStylesForDiagram(Ra,qa.styles),(ed=qa.injectUtils)==null||ed.call(qa,log2,setLogLevel2,getConfig2,sanitizeText3,setupGraphViewbox2,getCommonDb(),()=>{})},"registerDiagram"),getDiagram=__name(Ra=>{if(Ra in diagrams)return diagrams[Ra];throw new DiagramNotFoundError(Ra)},"getDiagram"),Ny,DiagramNotFoundError=(Ny=class extends Error{constructor(qa){super(`Diagram ${qa} not found.`)}},__name(Ny,"DiagramNotFoundError"),Ny);const defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1}),defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(Ra,qa,Ja,ed="")=>{const td=Ra.split(":");if(Ra.slice(0,1)==="@"){if(td.length<2||td.length>3)return null;ed=td.shift().slice(1)}if(td.length>3||!td.length)return null;if(td.length>1){const od=td.pop(),ld=td.pop(),cd={provider:td.length>0?td[0]:ed,prefix:ld,name:od};return validateIconName(cd)?cd:null}const rd=td[0],sd=rd.split("-");if(sd.length>1){const od={provider:ed,prefix:sd.shift(),name:sd.join("-")};return validateIconName(od)?od:null}if(Ja&&ed===""){const od={provider:ed,prefix:"",name:rd};return validateIconName(od,Ja)?od:null}return null},validateIconName=(Ra,qa)=>Ra?!!((Ra.provider===""||Ra.provider.match(matchIconName))&&(qa&&Ra.prefix===""||Ra.prefix.match(matchIconName))&&Ra.name.match(matchIconName)):!1;function mergeIconTransformations(Ra,qa){const Ja={};!Ra.hFlip!=!qa.hFlip&&(Ja.hFlip=!0),!Ra.vFlip!=!qa.vFlip&&(Ja.vFlip=!0);const ed=((Ra.rotate||0)+(qa.rotate||0))%4;return ed&&(Ja.rotate=ed),Ja}function mergeIconData(Ra,qa){const Ja=mergeIconTransformations(Ra,qa);for(const ed in defaultExtendedIconProps)ed in defaultIconTransformations?ed in Ra&&!(ed in Ja)&&(Ja[ed]=defaultIconTransformations[ed]):ed in qa?Ja[ed]=qa[ed]:ed in Ra&&(Ja[ed]=Ra[ed]);return Ja}function getIconsTree(Ra,qa){const Ja=Ra.icons,ed=Ra.aliases||Object.create(null),td=Object.create(null);function rd(sd){if(Ja[sd])return td[sd]=[];if(!(sd in td)){td[sd]=null;const od=ed[sd]&&ed[sd].parent,ld=od&&rd(od);ld&&(td[sd]=[od].concat(ld))}return td[sd]}return(qa||Object.keys(Ja).concat(Object.keys(ed))).forEach(rd),td}function internalGetIconData(Ra,qa,Ja){const ed=Ra.icons,td=Ra.aliases||Object.create(null);let rd={};function sd(od){rd=mergeIconData(ed[od]||td[od],rd)}return sd(qa),Ja.forEach(sd),mergeIconData(Ra,rd)}function getIconData(Ra,qa){if(Ra.icons[qa])return internalGetIconData(Ra,qa,[]);const Ja=getIconsTree(Ra,[qa])[qa];return Ja?internalGetIconData(Ra,qa,Ja):null}const unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(Ra,qa,Ja){if(qa===1)return Ra;if(Ja=Ja||100,typeof Ra=="number")return Math.ceil(Ra*qa*Ja)/Ja;if(typeof Ra!="string")return Ra;const ed=Ra.split(unitsSplit);if(ed===null||!ed.length)return Ra;const td=[];let rd=ed.shift(),sd=unitsTest.test(rd);for(;;){if(sd){const od=parseFloat(rd);isNaN(od)?td.push(rd):td.push(Math.ceil(od*qa*Ja)/Ja)}else td.push(rd);if(rd=ed.shift(),rd===void 0)return td.join("");sd=!sd}}function splitSVGDefs(Ra,qa="defs"){let Ja=
`,"ig");Ra=Ra.trim().replace(td,"").replace(/'/gm,'"'),log$1.debug(`Detecting diagram directive${qa!==null?" type:"+qa:""} based on the text:${Ra}`);let rd;const sd=[];for(;(rd=directiveRegex.exec(Ra))!==null;)if(rd.index===directiveRegex.lastIndex&&directiveRegex.lastIndex++,rd&&!qa||qa&&((Ja=rd[1])!=null&&Ja.match(qa))||qa&&((ed=rd[2])!=null&&ed.match(qa))){const od=rd[1]?rd[1]:rd[2],ld=rd[3]?rd[3].trim():rd[4]?JSON.parse(rd[4].trim()):null;sd.push({type:od,args:ld})}return sd.length===0?{type:Ra,args:null}:sd.length===1?sd[0]:sd}catch(td){return log$1.error(`ERROR: ${td.message} - Unable to parse directive type: '${qa}' based on the text: '${Ra}'`),{type:void 0,args:null}}},"detectDirective"),removeDirectives=__name(function(Ra){return Ra.replace(directiveRegex,"")},"removeDirectives"),isSubstringInArray=__name(function(Ra,qa){for(const[Ja,ed]of qa.entries())if(ed.match(Ra))return Ja;return-1},"isSubstringInArray");function interpolateToCurve(Ra,qa){if(!Ra)return qa;const Ja=`curve${Ra.charAt(0).toUpperCase()+Ra.slice(1)}`;return d3CurveTypes[Ja]??qa}__name(interpolateToCurve,"interpolateToCurve");function formatUrl(Ra,qa){const Ja=Ra.trim();if(Ja)return qa.securityLevel!=="loose"?sanitizeUrl_1(Ja):Ja}__name(formatUrl,"formatUrl");var runFunc=__name((Ra,...qa)=>{const Ja=Ra.split("."),ed=Ja.length-1,td=Ja[ed];let rd=window;for(let sd=0;sd<ed;sd++)if(rd=rd[Ja[sd]],!rd){log$1.error(`Function name: ${Ra} not found in window`);return}rd[td](...qa)},"runFunc");function distance(Ra,qa){return!Ra||!qa?0:Math.sqrt(Math.pow(qa.x-Ra.x,2)+Math.pow(qa.y-Ra.y,2))}__name(distance,"distance");function traverseEdge(Ra){let qa,Ja=0;Ra.forEach(td=>{Ja+=distance(td,qa),qa=td});const ed=Ja/2;return calculatePoint(Ra,ed)}__name(traverseEdge,"traverseEdge");function calcLabelPosition(Ra){return Ra.length===1?Ra[0]:traverseEdge(Ra)}__name(calcLabelPosition,"calcLabelPosition");var roundNumber=__name((Ra,qa=2)=>{const Ja=Math.pow(10,qa);return Math.round(Ra*Ja)/Ja},"roundNumber"),calculatePoint=__name((Ra,qa)=>{let Ja,ed=qa;for(const td of Ra){if(Ja){const rd=distance(td,Ja);if(rd<ed)ed-=rd;else{const sd=ed/rd;if(sd<=0)return Ja;if(sd>=1)return{x:td.x,y:td.y};if(sd>0&&sd<1)return{x:roundNumber((1-sd)*Ja.x+sd*td.x,5),y:roundNumber((1-sd)*Ja.y+sd*td.y,5)}}}Ja=td}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),calcCardinalityPosition=__name((Ra,qa,Ja)=>{log$1.info(`our points ${JSON.stringify(qa)}`),qa[0]!==Ja&&(qa=qa.reverse());const td=calculatePoint(qa,25),rd=Ra?10:5,sd=Math.atan2(qa[0].y-td.y,qa[0].x-td.x),od={x:0,y:0};return od.x=Math.sin(sd)*rd+(qa[0].x+td.x)/2,od.y=-Math.cos(sd)*rd+(qa[0].y+td.y)/2,od},"calcCardinalityPosition");function calcTerminalLabelPosition(Ra,qa,Ja){const ed=structuredClone(Ja);log$1.info("our points",ed),qa!=="start_left"&&qa!=="start_right"&&ed.reverse();const td=25+Ra,rd=calculatePoint(ed,td),sd=10+Ra*.5,od=Math.atan2(ed[0].y-rd.y,ed[0].x-rd.x),ld={x:0,y:0};return qa==="start_left"?(ld.x=Math.sin(od+Math.PI)*sd+(ed[0].x+rd.x)/2,ld.y=-Math.cos(od+Math.PI)*sd+(ed[0].y+rd.y)/2):qa==="end_right"?(ld.x=Math.sin(od-Math.PI)*sd+(ed[0].x+rd.x)/2-5,ld.y=-Math.cos(od-Math.PI)*sd+(ed[0].y+rd.y)/2-5):qa==="end_left"?(ld.x=Math.sin(od)*sd+(ed[0].x+rd.x)/2-5,ld.y=-Math.cos(od)*sd+(ed[0].y+rd.y)/2-5):(ld.x=Math.sin(od)*sd+(ed[0].x+rd.x)/2,ld.y=-Math.cos(od)*sd+(ed[0].y+rd.y)/2),ld}__name(calcTerminalLabelPosition,"calcTerminalLabelPosition");function getStylesFromArray(Ra){let qa="",Ja="";for(const ed of Ra)ed!==void 0&&(ed.startsWith("color:")||ed.startsWith("text-align:")?Ja=Ja+ed+";":qa=qa+ed+";");return{style:qa,labelStyle:Ja}}__name(getStylesFromArray,"getStylesFromArray");var cnt=0,generateId=__name(()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt),"generateId");function makeRandomHex(Ra){let qa="";const Ja="0123456789abcdef",ed=Ja.length;for(let td=0;td<Ra;td++)qa+=Ja.charAt(Math.floor(Math.random()*ed));return qa}__name(makeRandomHex,"makeRandomHex");var random=__name(Ra=>makeRandomHex(Ra.length),"random"),getTextObj=__name(function(){return{x:0,y:0,fill:vo
`).map(td=>{const rd=td.match(/^\s+/);if(rd===null)return td;const[sd]=rd;return sd.length>=ed.length?td.slice(ed.length):td}).join(`
`)}class _Tokenizer{constructor(qa){n1(this,"options");n1(this,"rules");n1(this,"lexer");this.options=qa||_defaults}space(qa){const Ja=this.rules.block.newline.exec(qa);if(Ja&&Ja[0].length>0)return{type:"space",raw:Ja[0]}}code(qa){const Ja=this.rules.block.code.exec(qa);if(Ja){const ed=Ja[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Ja[0],codeBlockStyle:"indented",text:this.options.pedantic?ed:rtrim(ed,`
`)}}}fences(qa){const Ja=this.rules.block.fences.exec(qa);if(Ja){const ed=Ja[0],td=indentCodeCompensation(ed,Ja[3]||"");return{type:"code",raw:ed,lang:Ja[2]?Ja[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):Ja[2],text:td}}}heading(qa){const Ja=this.rules.block.heading.exec(qa);if(Ja){let ed=Ja[2].trim();if(/#$/.test(ed)){const td=rtrim(ed,"#");(this.options.pedantic||!td||/ $/.test(td))&&(ed=td.trim())}return{type:"heading",raw:Ja[0],depth:Ja[1].length,text:ed,tokens:this.lexer.inline(ed)}}}hr(qa){const Ja=this.rules.block.hr.exec(qa);if(Ja)return{type:"hr",raw:rtrim(Ja[0],`
`)}}blockquote(qa){const Ja=this.rules.block.blockquote.exec(qa);if(Ja){let ed=rtrim(Ja[0],`
`).split(`
`),td="",rd="";const sd=[];for(;ed.length>0;){let od=!1;const ld=[];let cd;for(cd=0;cd<ed.length;cd++)if(/^ {0,3}>/.test(ed[cd]))ld.push(ed[cd]),od=!0;else if(!od)ld.push(ed[cd]);else break;ed=ed.slice(cd);const ud=ld.join(`
`),_d=ud.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");td=td?`${td}
${ud}`:ud,rd=rd?`${rd}
${_d}`:_d;const yd=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(_d,sd,!0),this.lexer.state.top=yd,ed.length===0)break;const gd=sd[sd.length-1];if((gd==null?void 0:gd.type)==="code")break;if((gd==null?void 0:gd.type)==="blockquote"){const Ed=gd,Td=Ed.raw+`
`+ed.join(`
`),kd=this.blockquote(Td);sd[sd.length-1]=kd,td=td.substring(0,td.length-Ed.raw.length)+kd.raw,rd=rd.substring(0,rd.length-Ed.text.length)+kd.text;break}else if((gd==null?void 0:gd.type)==="list"){const Ed=gd,Td=Ed.raw+`
`+ed.join(`
`),kd=this.list(Td);sd[sd.length-1]=kd,td=td.substring(0,td.length-gd.raw.length)+kd.raw,rd=rd.substring(0,rd.length-Ed.raw.length)+kd.raw,ed=Td.substring(sd[sd.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:td,tokens:sd,text:rd}}}list(qa){let Ja=this.rules.block.list.exec(qa);if(Ja){let ed=Ja[1].trim();const td=ed.length>1,rd={type:"list",raw:"",ordered:td,start:td?+ed.slice(0,-1):"",loose:!1,items:[]};ed=td?`\\d{1,9}\\${ed.slice(-1)}`:`\\${ed}`,this.options.pedantic&&(ed=td?ed:"[*+-]");const sd=new RegExp(`^( {0,3}${ed})((?:[ ][^\\n]*)?(?:\\n|$))`);let od=!1;for(;qa;){let ld=!1,cd="",ud="";if(!(Ja=sd.exec(qa))||this.rules.block.hr.test(qa))break;cd=Ja[0],qa=qa.substring(cd.length);let _d=Ja[2].split(`
`,1)[0].replace(/^\t+/,Rd=>" ".repeat(3*Rd.length)),yd=qa.split(`
`,1)[0],gd=!_d.trim(),Ed=0;if(this.options.pedantic?(Ed=2,ud=_d.trimStart()):gd?Ed=Ja[1].length+1:(Ed=Ja[2].search(/[^ ]/),Ed=Ed>4?1:Ed,ud=_d.slice(Ed),Ed+=Ja[1].length),gd&&/^ *$/.test(yd)&&(cd+=yd+`
`,qa=qa.substring(yd.length+1),ld=!0),!ld){const Rd=new RegExp(`^ {0,${Math.min(3,Ed-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Nd=new RegExp(`^ {0,${Math.min(3,Ed-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Id=new RegExp(`^ {0,${Math.min(3,Ed-1)}}(?:\`\`\`|~~~)`),Md=new RegExp(`^ {0,${Math.min(3,Ed-1)}}#`);for(;qa;){const Ld=qa.split(`
`,1)[0];if(yd=Ld,this.options.pedantic&&(yd=yd.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),Id.test(yd)||Md.test(yd)||Rd.test(yd)||Nd.test(qa))break;if(yd.search(/[^ ]/)>=Ed||!yd.trim())ud+=`
`+yd.slice(Ed);else{if(gd||_d.search(/[^ ]/)>=4||Id.test(_d)||Md.test(_d)||Nd.test(_d))break;ud+=`
`+yd}!gd&&!yd.trim()&&(gd=!0),cd+=Ld+`
`,qa=qa.substring(Ld.length+1),_d=yd.slice(Ed)}}rd.loose||(od?rd.loose=!0:/\n *\n *$/.test(cd)&&(od=!0));let Td=null,kd;this.options.gfm&&(Td=/^\[[ xX]\] /.exec(ud),Td&&(kd=Td[0]!=="[ ] ",ud=ud.replace(/^\[[ xX]\] +/,""))),rd.items.push({type:"list_item",raw:cd,task:!!Td,checked:kd,loose:!1,text:ud,tokens:[]}),rd.raw+=cd}rd.items[rd.items.length-1].raw=rd.items[rd.items.length-1].raw.trimEnd(),rd.items[rd.items.length-1].text=rd.items[rd.items.length-1].text.trimEnd(),rd.raw=rd.raw.trimEnd();for(let ld=0;ld<rd.items.length;ld++)if(this.lexer.state.top=!1,rd.items[ld].tokens=this.lexer.blockTokens(rd.items[ld].text,[]),!rd.loose){const cd=rd.items[ld].tokens.filter(_d=>_d.type==="space"),ud=cd.length>0&&cd.some(_d=>/\n.*\n/.test(_d.raw));rd.loose=ud}if(rd.loose)for(let ld=0;ld<rd.items.length;ld++)rd.items[ld].loose=!0;return rd}}html(qa){const Ja=this.rules.block.html.exec(qa);if(Ja)return{type:"html",block:!0,raw:Ja[0],pre:Ja[1]==="pre"||Ja[1]==="script"||Ja[1]==="style",text:Ja[0]}}def(qa){const Ja=this.rules.block.def.exec(qa);if(Ja){const ed=Ja[1].toLowerCase().replace(/\s+/g," "),td=Ja[2]?Ja[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",rd=Ja[3]?Ja[3].substring(1,Ja[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):Ja[3];return{type:"def",tag:ed,raw:Ja[0],href:td,title:rd}}}table(qa){const Ja=this.rules.block.table.exec(qa);if(!Ja||!/[:|]/.test(Ja[2]))return;const ed=splitCells(Ja[1]),td=Ja[2].replace(/^\||\| *$/g,"").split("|"),rd=Ja[3]&&Ja[3].trim()?Ja[3].replace(/\n[ \t]*$/,"").split(`
`):[],sd={type:"table",raw:Ja[0],header:[],align:[],rows:[]};if(ed.length===td.length){for(const od of td)/^ *-+: *$/.test(od)?sd.align.push("right"):/^ *:-+: *$/.test(od)?sd.align.push("center"):/^ *:-+ *$/.test(od)?sd.align.push("left"):sd.align.push(null);for(let od=0;od<ed.length;od++)sd.header.push({text:ed[od],tokens:this.lexer.inline(ed[od]),header:!0,align:sd.align[od]});for(const od of rd)sd.rows.push(splitCells(od,sd.header.length).map((ld,cd)=>({text:ld,tokens:this.lexer.inline(ld),header:!1,align:sd.align[cd]})));return sd}}lheading(qa){const Ja=this.rules.block.lheading.exec(qa);if(Ja)return{type:"heading",raw:Ja[0],depth:Ja[2].charAt(0)==="="?1:2,text:Ja[1],tokens:this.lexer.inline(Ja[1])}}paragraph(qa){const Ja=this.rules.block.paragraph.exec(qa);if(Ja){const ed=Ja[1].charAt(Ja[1].length-1)===`
`?Ja[1].slice(0,-1):Ja[1];return{type:"paragraph",raw:Ja[0],text:ed,tokens:this.lexer.inline(ed)}}}text(qa){const Ja=this.rules.block.text.exec(qa);if(Ja)return{type:"text",raw:Ja[0],text:Ja[0],tokens:this.lexer.inline(Ja[0])}}escape(qa){const Ja=this.rules.inline.escape.exec(qa);if(Ja)return{type:"escape",raw:Ja[0],text:escape$1$1(Ja[1])}}tag(qa){const Ja=this.rules.inline.tag.exec(qa);if(Ja)return!this.lexer.state.inLink&&/^<a /i.test(Ja[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(Ja[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ja[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ja[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:Ja[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:Ja[0]}}link(qa){const Ja=this.rules.inline.link.exec(qa);if(Ja){const ed=Ja[2].trim();if(!this.options.pedantic&&/^</.test(ed)){if(!/>$/.test(ed))return;const sd=rtrim(ed.slice(0,-1),"\\");if((ed.length-sd.length)%2===0)return}else{const sd=findClosingBracket(Ja[2],"()");if(sd>-1){const ld=(Ja[0].indexOf("!")===0?5:4)+Ja[1].length+sd;Ja[2]=Ja[2].substring(0,sd),Ja[0]=Ja[0].substring(0,ld).trim(),Ja[3]=""}}let td=Ja[2],rd="";if(this.options.pedantic){const sd=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(td);sd&&(td=sd[1],rd=sd[3])}else rd=Ja[3]?Ja[3].slice(1,-1):"";return td=td.trim(),/^</.test(td)&&(this.options.pedantic&&!/>$/.test(ed)?td=td.slice(1):td=td.slice(1,-1)),outputLink(Ja,{href:td&&td.replace(this.rules.inline.anyPunctuation,"$1"),title:rd&&rd.replace(this.rules.inline.anyPunctuation,"$1")},Ja[0],this.lexer)}}reflink(qa,Ja){let ed;if((ed=this.rules.inline.reflink.exec(qa))||(ed=this.rules.inline.nolink.exec(qa))){const td=(ed[2]||ed[1]).replace(/\s+/g," "),rd=Ja[td.toLowerCase()];if(!rd){const sd=ed[0].charAt(0);return{type:"text",raw:sd,text:sd}}return outputLink(ed,rd,ed[0],this.lexer)}}emStrong(qa,Ja,ed=""){let td=this.rules.inline.emStrongLDelim.exec(qa);if(!td||td[3]&&ed.match(/[\p{L}\p{N}]/u))return;if(!(td[1]||td[2]||"")||!ed||this.rules.inline.punctuation.exec(ed)){const sd=[...td[0]].length-1;let od,ld,cd=sd,ud=0;const _d=td[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_d.lastIndex=0,Ja=Ja.slice(-1*qa.length+sd);(td=_d.exec(Ja))!=null;){if(od=td[1]||td[2]||td[3]||td[4]||td[5]||td[6],!od)continue;if(ld=[...od].length,td[3]||td[4]){cd+=ld;continue}else if((td[5]||td[6])&&sd%3&&!((sd+ld)%3)){ud+=ld;continue}if(cd-=ld,cd>0)continue;ld=Math.min(ld,ld+cd+ud);const yd=[...td[0]][0].length,gd=qa.slice(0,sd+td.index+yd+ld);if(Math.min(sd,ld)%2){const Td=gd.slice(1,-1);return{type:"em",raw:gd,text:Td,tokens:this.lexer.inlineTokens(Td)}}const Ed=gd.slice(2,-2);return{type:"strong",raw:gd,text:Ed,tokens:this.lexer.inlineTokens(Ed)}}}}codespan(qa){const Ja=this.rules.inline.code.exec(qa);if(Ja){let ed=Ja[2].replace(/\n/g," ");const td=/[^ ]/.test(ed),rd=/^ /.test(ed)&&/ $/.test(ed);return td&&rd&&(ed=ed.substring(1,ed.length-1)),ed=escape$1$1(ed,!0),{type:"codespan",raw:Ja[0],text:ed}}}br(qa){const Ja=this.rules.inline.br.exec(qa);if(Ja)return{type:"br",raw:Ja[0]}}del(qa){const Ja=this.rules.inline.del.exec(qa);if(Ja)return{type:"del",raw:Ja[0],text:Ja[2],tokens:this.lexer.inlineTokens(Ja[2])}}autolink(qa){const Ja=this.rules.inline.autolink.exec(qa);if(Ja){let ed,td;return Ja[2]==="@"?(ed=escape$1$1(Ja[1]),td="mailto:"+ed):(ed=escape$1$1(Ja[1]),td=ed),{type:"link",raw:Ja[0],text:ed,href:td,tokens:[{type:"text",raw:ed,text:ed}]}}}url(qa){var ed;let Ja;if(Ja=this.rules.inline.url.exec(qa)){let td,rd;if(Ja[2]==="@")td=escape$1$1(Ja[0]),rd="mailto:"+td;else{let sd;do sd=Ja[0],Ja[0]=((ed=this.rules.inline._backpedal.exec(Ja[0]))==null?void 0:ed[0])??"";while(sd!==Ja[0]);td=escape$1$1(Ja[0]),Ja[1]==="www."?rd="http://"+Ja[0]:rd=Ja[0]}return{type:"link",raw:Ja[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}inlineText(qa){const Ja=this.rules.inline.text.exec(qa);if(Ja){let ed;return this.lexer.state.inRawBlock?ed=J
]`).replace("lheading",lheading).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape$2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,inlineCode=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br$3=/^( {2,}|\\)\n(?!\s*$)/,inlineText=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_punctuation="\\p{P}\\p{S}",punctuation=edit(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,_punctuation).getRegex(),blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,emStrongLDelim=edit(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,_punctuation).getRegex(),emStrongRDelimAst=edit("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,_punctuation).getRegex(),emStrongRDelimUnd=edit("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,_punctuation).getRegex(),anyPunctuation=edit(/\\([punct])/,"gu").replace(/punct/g,_punctuation).getRegex(),autolink=edit(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_inlineComment=edit(_comment).replace("(?:-->|$)","-->").getRegex(),tag=edit("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_inlineComment).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_inlineLabel=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,link=edit(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",_inlineLabel).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),reflink=edit(/^!?\[(label)\]\[(ref)\]/).replace("label",_inlineLabel).replace("ref",_blockLabel).getRegex(),nolink=edit(/^!?\[(ref)\](?:\[\])?/).replace("ref",_blockLabel).getRegex(),reflinkSearch=edit("reflink|nolink(?!\\()","g").replace("reflink",reflink).replace("nolink",nolink).getRegex(),inlineNormal={_backpedal:noopTest,anyPunctuation,autolink,blockSkip,br:br$3,code:inlineCode,del:noopTest,emStrongLDelim,emStrongRDelimAst,emStrongRDelimUnd,escape:escape$2,link,nolink,punctuation,reflink,reflinkSearch,tag,text:inlineText,url:noopTest},inlinePedantic={...inlineNormal,link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",_inlineLabel).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_inlineLabel).getRegex()},inlineGfm={...inlineNormal,escape:edit(escape$2).replace("])","~|])").getRegex(),url:edit(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},inlineBreaks={...inlineGfm,br:edit(br$3).replace("{2,}","*").getRegex(),text:edit(inlineGfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},block$2={normal:blockNormal,gfm:blockGfm,pedantic:blockPedantic},inline$1={normal:inlineNormal,gfm:inlineGfm,breaks:inlineBreaks,pedantic:inlinePedantic};class _Lexer{constructor(
`),this.blockTokens(qa,this.tokens);for(let Ja=0;Ja<this.inlineQueue.length;Ja++){const ed=this.inlineQueue[Ja];this.inlineTokens(ed.src,ed.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,Ja=[],ed=!1){this.options.pedantic?qa=qa.replace(/\t/g," ").replace(/^ +$/gm,""):qa=qa.replace(/^( *)(\t+)/gm,(od,ld,cd)=>ld+" ".repeat(cd.length));let td,rd,sd;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(od=>(td=od.call({lexer:this},qa,Ja))?(qa=qa.substring(td.raw.length),Ja.push(td),!0):!1))){if(td=this.tokenizer.space(qa)){qa=qa.substring(td.raw.length),td.raw.length===1&&Ja.length>0?Ja[Ja.length-1].raw+=`
`:Ja.push(td);continue}if(td=this.tokenizer.code(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&(rd.type==="paragraph"||rd.type==="text")?(rd.raw+=`
`+td.raw,rd.text+=`
`+td.text,this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(td=this.tokenizer.fences(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.heading(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.hr(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.blockquote(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.list(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.html(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.def(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&(rd.type==="paragraph"||rd.type==="text")?(rd.raw+=`
`+td.raw,rd.text+=`
`+td.raw,this.inlineQueue[this.inlineQueue.length-1].src=rd.text):this.tokens.links[td.tag]||(this.tokens.links[td.tag]={href:td.href,title:td.title});continue}if(td=this.tokenizer.table(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.lheading(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(sd=qa,this.options.extensions&&this.options.extensions.startBlock){let od=1/0;const ld=qa.slice(1);let cd;this.options.extensions.startBlock.forEach(ud=>{cd=ud.call({lexer:this},ld),typeof cd=="number"&&cd>=0&&(od=Math.min(od,cd))}),od<1/0&&od>=0&&(sd=qa.substring(0,od+1))}if(this.state.top&&(td=this.tokenizer.paragraph(sd))){rd=Ja[Ja.length-1],ed&&(rd==null?void 0:rd.type)==="paragraph"?(rd.raw+=`
`+td.raw,rd.text+=`
`+td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td),ed=sd.length!==qa.length,qa=qa.substring(td.raw.length);continue}if(td=this.tokenizer.text(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&rd.type==="text"?(rd.raw+=`
`+td.raw,rd.text+=`
`+td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(qa){const od="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(od);break}else throw new Error(od)}}return this.state.top=!0,Ja}inline(qa,Ja=[]){return this.inlineQueue.push({src:qa,tokens:Ja}),Ja}inlineTokens(qa,Ja=[]){let ed,td,rd,sd=qa,od,ld,cd;if(this.tokens.links){const ud=Object.keys(this.tokens.links);if(ud.length>0)for(;(od=this.tokenizer.rules.inline.reflinkSearch.exec(sd))!=null;)ud.includes(od[0].slice(od[0].lastIndexOf("[")+1,-1))&&(sd=sd.slice(0,od.index)+"["+"a".repeat(od[0].length-2)+"]"+sd.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(od=this.tokenizer.rules.inline.blockSkip.exec(sd))!=null;)sd=sd.slice(0,od.index)+"["+"a".repeat(od[0].length-2)+"]"+sd.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(od=this.tokenizer.rules.inline.anyPunctuation.exec(sd))!=null;)sd=sd.slice(0,od.index)+"++"+sd.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(ld||(cd=""),ld=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ud=>(ed=ud.call({lexer:this},qa,Ja))?(qa=qa.substring(ed.raw.length),Ja.push(ed),!0):!1))){if(ed=this.tokenizer.escape(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.tag(qa)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.link(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.emStrong(qa,sd,cd)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.codespan(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.br(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.del(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.autolink(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(!this.state.inLink&&(ed=this.tokenizer.url(qa))){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(rd=qa,this.options.extensions&&this.options.extensions.startInline){let ud=1/0;const _d=qa.slice(1);let yd;this.options.extensions.startInline.forEach(gd=>{yd=gd.call({lexer:this},_d),typeof yd=="number"&&yd>=0&&(ud=Math.min(ud,yd))}),ud<1/0&&ud>=0&&(rd=qa.substring(0,ud+1))}if(ed=this.tokenizer.inlineText(rd)){qa=qa.substring(ed.raw.length),ed.raw.slice(-1)!=="_"&&(cd=ed.raw.slice(-1)),ld=!0,td=Ja[Ja.length-1],td&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(qa){const ud="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ud);break}else throw new Error(ud)}}return Ja}}class _Renderer{constructor(qa){n1(this,"options");n1(this,"parser");this.options=qa||_defaults}space(qa){return""}code({text:qa,lang:Ja,escaped:ed}){var sd;const td=(sd=(Ja||"").match(/^\S*/))==null?void 0:sd[0],rd=qa.replace(/\n$/,"")+`
`;return td?'<pre><code class="language-'+escape$1$1(td)+'">'+(ed?rd:escape$1$1(rd,!0))+`</code></pre>
`:"<pre><code>"+(ed?rd:escape$1$1(rd,!0))+`</code></pre>
`}blockquote({tokens:qa}){return`<blockquote>
${this.parser.parse(qa)}</blockquote>
`}html({text:qa}){return qa}heading({tokens:qa,depth:Ja}){return`<h${Ja}>${this.parser.parseInline(qa)}</h${Ja}>
`}hr(qa){return`<hr>
`}list(qa){const Ja=qa.ordered,ed=qa.start;let td="";for(let od=0;od<qa.items.length;od++){const ld=qa.items[od];td+=this.listitem(ld)}const rd=Ja?"ol":"ul",sd=Ja&&ed!==1?' start="'+ed+'"':"";return"<"+rd+sd+`>
`+td+"</"+rd+`>
`}listitem(qa){let Ja="";if(qa.task){const ed=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=ed+" "+qa.tokens[0].text,qa.tokens[0].tokens&&qa.tokens[0].tokens.length>0&&qa.tokens[0].tokens[0].type==="text"&&(qa.tokens[0].tokens[0].text=ed+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:ed+" ",text:ed+" "}):Ja+=ed+" "}return Ja+=this.parser.parse(qa.tokens,!!qa.loose),`<li>${Ja}</li>
`}checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return`<p>${this.parser.parseInline(qa)}</p>
`}table(qa){let Ja="",ed="";for(let rd=0;rd<qa.header.length;rd++)ed+=this.tablecell(qa.header[rd]);Ja+=this.tablerow({text:ed});let td="";for(let rd=0;rd<qa.rows.length;rd++){const sd=qa.rows[rd];ed="";for(let od=0;od<sd.length;od++)ed+=this.tablecell(sd[od]);td+=this.tablerow({text:ed})}return td&&(td=`<tbody>${td}</tbody>`),`<table>
<thead>
`+Ja+`</thead>
`+td+`</table>
`}tablerow({text:qa}){return`<tr>
${qa}</tr>
`}tablecell(qa){const Ja=this.parser.parseInline(qa.tokens),ed=qa.header?"th":"td";return(qa.align?`<${ed} align="${qa.align}">`:`<${ed}>`)+Ja+`</${ed}>
`}strong({tokens:qa}){return`<strong>${this.parser.parseInline(qa)}</strong>`}em({tokens:qa}){return`<em>${this.parser.parseInline(qa)}</em>`}codespan({text:qa}){return`<code>${qa}</code>`}br(qa){return"<br>"}del({tokens:qa}){return`<del>${this.parser.parseInline(qa)}</del>`}link({href:qa,title:Ja,tokens:ed}){const td=this.parser.parseInline(ed),rd=cleanUrl(qa);if(rd===null)return td;qa=rd;let sd='<a href="'+qa+'"';return Ja&&(sd+=' title="'+Ja+'"'),sd+=">"+td+"</a>",sd}image({href:qa,title:Ja,text:ed}){const td=cleanUrl(qa);if(td===null)return ed;qa=td;let rd=`<img src="${qa}" alt="${ed}"`;return Ja&&(rd+=` title="${Ja}"`),rd+=">",rd}text(qa){return"tokens"in qa&&qa.tokens?this.parser.parseInline(qa.tokens):qa.text}}class _TextRenderer{strong({text:qa}){return qa}em({text:qa}){return qa}codespan({text:qa}){return qa}del({text:qa}){return qa}html({text:qa}){return qa}text({text:qa}){return qa}link({text:qa}){return""+qa}image({text:qa}){return""+qa}br(){return""}}class _Parser{constructor(qa){n1(this,"options");n1(this,"renderer");n1(this,"textRenderer");this.options=qa||_defaults,this.options.renderer=this.options.renderer||new _Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _TextRenderer}static parse(qa,Ja){return new _Parser(Ja).parse(qa)}static parseInline(qa,Ja){return new _Parser(Ja).parseInline(qa)}parse(qa,Ja=!0){let ed="";for(let td=0;td<qa.length;td++){const rd=qa[td];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[rd.type]){const od=rd,ld=this.options.extensions.renderers[od.type].call({parser:this},od);if(ld!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(od.type)){ed+=ld||"";continue}}const sd=rd;switch(sd.type){case"space":{ed+=this.renderer.space(sd);continue}case"hr":{ed+=this.renderer.hr(sd);continue}case"heading":{ed+=this.renderer.heading(sd);continue}case"code":{ed+=this.renderer.code(sd);continue}case"table":{ed+=this.renderer.table(sd);continue}case"blockquote":{ed+=this.renderer.blockquote(sd);continue}case"list":{ed+=this.renderer.list(sd);continue}case"html":{ed+=this.renderer.html(sd);continue}case"paragraph":{ed+=this.renderer.paragraph(sd);continue}case"text":{let od=sd,ld=this.renderer.text(od);for(;td+1<qa.length&&qa[td+1].type==="text";)od=qa[++td],ld+=`
`+this.renderer.text(od);Ja?ed+=this.renderer.paragraph({type:"paragraph",raw:ld,text:ld,tokens:[{type:"text",raw:ld,text:ld}]}):ed+=ld;continue}default:{const od='Token with "'+sd.type+'" type was not found.';if(this.options.silent)return console.error(od),"";throw new Error(od)}}}return ed}parseInline(qa,Ja){Ja=Ja||this.renderer;let ed="";for(let td=0;td<qa.length;td++){const rd=qa[td];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[rd.type]){const od=this.options.extensions.renderers[rd.type].call({parser:this},rd);if(od!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(rd.type)){ed+=od||"";continue}}const sd=rd;switch(sd.type){case"escape":{ed+=Ja.text(sd);break}case"html":{ed+=Ja.html(sd);break}case"link":{ed+=Ja.link(sd);break}case"image":{ed+=Ja.image(sd);break}case"strong":{ed+=Ja.strong(sd);break}case"em":{ed+=Ja.em(sd);break}case"codespan":{ed+=Ja.codespan(sd);break}case"br":{ed+=Ja.br(sd);break}case"del":{ed+=Ja.del(sd);break}case"text":{ed+=Ja.text(sd);break}default:{const od='Token with "'+sd.type+'" type was not found.';if(this.options.silent)return console.error(od),"";throw new Error(od)}}}return ed}}class _Hooks{constructor(qa){n1(this,"options");this.options=qa||_defaults}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}}n1(_Hooks,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var _b,JT,mT,ZT;class Marked{constructor(...qa){XT(this,_b);n1(this,"defaults",_getDefaults());n1(this,"options",this.setOptions);n1(this,"parse",_E(this,_b,mT).call(this,_Lexer.lex,_Parser.parse));n1(this,"parseInline",_E(this,_b,mT).call(this,_Lexer.lexInline,_Parser.parseInline));n1(this,"Parser",_Parser);n1(this,"Renderer",_Renderer);n1(this,"TextRenderer",_TextRenderer);n1(this,"Lexer",_Lexer);n1(this,"Tokenizer",_Tokenizer);n1(this,"Hooks",_Hooks);this.use(...qa)}walkTokens(qa,Ja){var td,rd;let ed=[];for(const sd of qa)switch(ed=ed.concat(Ja.call(this,sd)),sd.type){case"table":{const od=sd;for(const ld of od.header)ed=ed.concat(this.walkTokens(ld.tokens,Ja));for(const ld of od.rows)for(const cd of ld)ed=ed.concat(this.walkTokens(cd.tokens,Ja));break}case"list":{const od=sd;ed=ed.concat(this.walkTokens(od.items,Ja));break}default:{const od=sd;(rd=(td=this.defaults.extensions)==null?void 0:td.childTokens)!=null&&rd[od.type]?this.defaults.extensions.childTokens[od.type].forEach(ld=>{const cd=od[ld].flat(1/0);ed=ed.concat(this.walkTokens(cd,Ja))}):od.tokens&&(ed=ed.concat(this.walkTokens(od.tokens,Ja)))}}return ed}use(...qa){const Ja=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(ed=>{const td={...ed};if(td.async=this.defaults.async||td.async||!1,ed.extensions&&(ed.extensions.forEach(rd=>{if(!rd.name)throw new Error("extension name required");if("renderer"in rd){const sd=Ja.renderers[rd.name];sd?Ja.renderers[rd.name]=function(...od){let ld=rd.renderer.apply(this,od);return ld===!1&&(ld=sd.apply(this,od)),ld}:Ja.renderers[rd.name]=rd.renderer}if("tokenizer"in rd){if(!rd.level||rd.level!=="block"&&rd.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const sd=Ja[rd.level];sd?sd.unshift(rd.tokenizer):Ja[rd.level]=[rd.tokenizer],rd.start&&(rd.level==="block"?Ja.startBlock?Ja.startBlock.push(rd.start):Ja.startBlock=[rd.start]:rd.level==="inline"&&(Ja.startInline?Ja.startInline.push(rd.start):Ja.startInline=[rd.start]))}"childTokens"in rd&&rd.childTokens&&(Ja.childTokens[rd.name]=rd.childTokens)}),td.extensions=Ja),ed.renderer){const rd=this.defaults.renderer||new _Renderer(this.defaults);for(const sd in ed.renderer){if(!(sd in rd))throw new Error(`renderer '${sd}' does not exist`);if(["options","parser"].includes(sd))continue;const od=sd;let ld=ed.renderer[od];ed.useNewRenderer||(ld=_E(this,_b,JT).call(this,ld,od,rd));const cd=rd[od];rd[od]=(...ud)=>{let _d=ld.apply(rd,ud);return _d===!1&&(_d=cd.apply(rd,ud)),_d||""}}td.renderer=rd}if(ed.tokenizer){const rd=this.defaults.tokenizer||new _Tokenizer(this.defaults);for(const sd in
Please report this to https://github.com/markedjs/marked.`,qa){const td="<p>An error occurred:</p><pre>"+escape$1$1(ed.message+"",!0)+"</pre>";return Ja?Promise.resolve(td):td}if(Ja)return Promise.reject(ed);throw ed}};const markedInstance=new Marked;function marked(Ra,qa){return markedInstance.parse(Ra,qa)}marked.options=marked.setOptions=function(Ra){return markedInstance.setOptions(Ra),marked.defaults=markedInstance.defaults,changeDefaults(marked.defaults),marked};marked.getDefaults=_getDefaults;marked.defaults=_defaults;marked.use=function(...Ra){return markedInstance.use(...Ra),marked.defaults=markedInstance.defaults,changeDefaults(marked.defaults),marked};marked.walkTokens=function(Ra,qa){return markedInstance.walkTokens(Ra,qa)};marked.parseInline=markedInstance.parseInline;marked.Parser=_Parser;marked.parser=_Parser.parse;marked.Renderer=_Renderer;marked.TextRenderer=_TextRenderer;marked.Lexer=_Lexer;marked.lexer=_Lexer.lex;marked.Tokenizer=_Tokenizer;marked.Hooks=_Hooks;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;_Parser.parse;_Lexer.lex;function dedent(Ra){for(var qa=[],Ja=1;Ja<arguments.length;Ja++)qa[Ja-1]=arguments[Ja];var ed=Array.from(typeof Ra=="string"?[Ra]:Ra);ed[ed.length-1]=ed[ed.length-1].replace(/\r?\n([\t ]*)$/,"");var td=ed.reduce(function(od,ld){var cd=ld.match(/\n([\t ]+|(?!\s).)/g);return cd?od.concat(cd.map(function(ud){var _d,yd;return(yd=(_d=ud.match(/[\t ]/g))===null||_d===void 0?void 0:_d.length)!==null&&yd!==void 0?yd:0})):od},[]);if(td.length){var rd=new RegExp(`
[ ]{`+Math.min.apply(Math,td)+"}","g");ed=ed.map(function(od){return od.replace(rd,`
`)})}ed[0]=ed[0].replace(/^\r?\n/,"");var sd=ed[0];return qa.forEach(function(od,ld){var cd=sd.match(/(?:^|\n)( *)$/),ud=cd?cd[1]:"",_d=od;typeof od=="string"&&od.includes(`
`)&&(_d=String(od).split(`
`).map(function(yd,gd){return gd===0?yd:""+ud+yd}).join(`
`)),sd+=_d+ed[ld+1]}),sd}function preprocessMarkdown(Ra,{markdownAutoWrap:qa}){const ed=Ra.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`),td=dedent(ed);return qa===!1?td.replace(/ /g,"&nbsp;"):td}__name(preprocessMarkdown,"preprocessMarkdown");function markdownToLines(Ra,qa={}){const Ja=preprocessMarkdown(Ra,qa),ed=marked.lexer(Ja),td=[[]];let rd=0;function sd(od,ld="normal"){od.type==="text"?od.text.split(`
`).forEach((ud,_d)=>{_d!==0&&(rd++,td.push([])),ud.split(" ").forEach(yd=>{yd&&td[rd].push({content:yd,type:ld})})}):od.type==="strong"||od.type==="em"?od.tokens.forEach(cd=>{sd(cd,od.type)}):od.type==="html"&&td[rd].push({content:od.text,type:"normal"})}return __name(sd,"processNode"),ed.forEach(od=>{var ld;od.type==="paragraph"?(ld=od.tokens)==null||ld.forEach(cd=>{sd(cd)}):od.type==="html"&&td[rd].push({content:od.text,type:"normal"})}),td}__name(markdownToLines,"markdownToLines");function markdownToHTML(Ra,{markdownAutoWrap:qa}={}){const Ja=marked.lexer(Ra);function ed(td){var rd,sd,od;return td.type==="text"?qa===!1?td.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):td.text.replace(/\n */g,"<br/>"):td.type==="strong"?`<strong>${(rd=td.tokens)==null?void 0:rd.map(ed).join("")}</strong>`:td.type==="em"?`<em>${(sd=td.tokens)==null?void 0:sd.map(ed).join("")}</em>`:td.type==="paragraph"?`<p>${(od=td.tokens)==null?void 0:od.map(ed).join("")}</p>`:td.type==="space"?"":td.type==="html"?`${td.text}`:`Unsupported markdown: ${td.type}`}return __name(ed,"output"),Ja.map(ed).join("")}__name(markdownToHTML,"markdownToHTML");function splitTextToChars(Ra){return Intl.Segmenter?[...new Intl.Segmenter().segment(Ra)].map(qa=>qa.segment):[...Ra]}__name(splitTextToChars,"splitTextToChars");function splitWordToFitWidth(Ra,qa){const Ja=splitTextToChars(qa.content);return splitWordToFitWidthRecursion(Ra,[],Ja,qa.type)}__name(splitWordToFitWidth,"splitWordToFitWidth");function splitWordToFitWidthRecursion(Ra,qa,Ja,ed){if(Ja.length===0)return[{content:qa.join(""),type:ed},{content:"",type:ed}];const[td,...rd]=Ja,sd=[...qa,td];return Ra([{content:sd.join(""),type:ed}])?splitWordToFitWidthRecursion(Ra,sd,rd,ed):(qa.length===0&&td&&(qa.push(td),Ja.shift()),[{content:qa.join(""),type:ed},{content:Ja.join(""),type:ed}])}__name(splitWordToFitWidthRecursion,"splitWordToFitWidthRecursion");function splitLineToFitWidth(Ra,qa){if(Ra.some(({content:Ja})=>Ja.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return splitLineToFitWidthRecursion(Ra,qa)}__name(splitLineToFitWidth,"splitLineToFitWidth");function splitLineToFitWidthRecursion(Ra,qa,Ja=[],ed=[]){if(Ra.length===0)return ed.length>0&&Ja.push(ed),Ja.length>0?Ja:[];let td="";Ra[0].content===" "&&(td=" ",Ra.shift());const rd=Ra.shift()??{content:" ",type:"normal"},sd=[...ed];if(td!==""&&sd.push({content:td,type:"normal"}),sd.push(rd),qa(sd))return splitLineToFitWidthRecursion(Ra,qa,Ja,sd);if(ed.length>0)Ja.push(ed),Ra.unshift(rd);else if(rd.content){const[od,ld]=splitWordToFitWidth(qa,rd);Ja.push([od]),ld.content&&Ra.unshift(ld)}return splitLineToFitWidthRecursion(Ra,qa,Ja)}__name(splitLineToFitWidthRecursion,"splitLineToFitWidthRecursion");function applyStyle$1(Ra,qa){qa&&Ra.attr("style",qa)}__name(applyStyle$1,"applyStyle");async function addHtmlSpan(Ra,qa,Ja,ed,td=!1){const rd=Ra.append("foreignObject"),sd=rd.append("xhtml:div");let od=qa.label;qa.label&&hasKatex(qa.label)&&(od=await renderKatex(qa.label.replace(common_default.lineBreakRegex,`
`),getConfig2()));const ld=qa.isNode?"nodeLabel":"edgeLabel",cd=sd.append("span");cd.html(od),applyStyle$1(cd,qa.labelStyle),cd.attr("class",`${ld} ${ed}`),applyStyle$1(sd,qa.labelStyle),sd.style("display","table-cell"),sd.style("white-space","nowrap"),sd.style("line-height","1.5"),sd.style("max-width",Ja+"px"),sd.style("text-align","center"),sd.attr("xmlns","http://www.w3.org/1999/xhtml"),td&&sd.attr("class","labelBkg");let ud=sd.node().getBoundingClientRect();return ud.width===Ja&&(sd.style("display","table"),sd.style("white-space","break-spaces"),sd.style("width",Ja+"px"),ud=sd.node().getBoundingClientRect()),rd.node()}__name(addHtmlSpan,"addHtmlSpan");function createTspan(Ra,qa,Ja){return Ra.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",qa*Ja-.1+"em").attr("dy",Ja+"em")}__name(createTspan,"createTspan");function computeWidthOfText(Ra,qa,Ja){const ed=Ra.append("text"),td=createTspan(ed,1,qa);updateTextContentAndStyles(td,Ja);const rd=td.node().getComputedTextLength();return ed.remove(),rd}__name(computeWidthOfText,"computeWidthOfText");function computeDimensionOfText(Ra,qa,Ja){var sd;const ed=Ra.append("text"),td=createTspan(ed,1,qa);updateTextContentAndStyles(td,[{content:Ja,type:"normal"}]);const rd=(sd=td.node())==null?void 0:sd.getBoundingClientRect();return rd&&ed.remove(),rd}__name(computeDimensionOfText,"computeDimensionOfText");function createFormattedText(Ra,qa,Ja,ed=!1){const rd=qa.append("g"),sd=rd.insert("rect").attr("class","background").attr("style","stroke: none"),od=rd.append("text").attr("y","-10.1");let ld=0;for(const cd of Ja){const ud=__name(yd=>computeWidthOfText(rd,1.1,yd)<=Ra,"checkWidth"),_d=ud(cd)?[cd]:splitLineToFitWidth(cd,ud);for(const yd of _d){const gd=createTspan(od,ld,1.1);updateTextContentAndStyles(gd,yd),ld++}}if(ed){const cd=od.node().getBBox(),ud=2;return sd.attr("x",-ud).attr("y",-ud).attr("width",cd.width+2*ud).attr("height",cd.height+2*ud),rd.node()}else return od.node()}__name(createFormattedText,"createFormattedText");function updateTextContentAndStyles(Ra,qa){Ra.text(""),qa.forEach((Ja,ed)=>{const td=Ra.append("tspan").attr("font-style",Ja.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",Ja.type==="strong"?"bold":"normal");ed===0?td.text(Ja.content):td.text(" "+Ja.content)})}__name(updateTextContentAndStyles,"updateTextContentAndStyles");function replaceIconSubstring(Ra){return Ra.replace(/fa[bklrs]?:fa-[\w-]+/g,qa=>`<i class='${qa.replace(":"," ")}'></i>`)}__name(replaceIconSubstring,"replaceIconSubstring");var createText=__name(async(Ra,qa="",{style:Ja="",isTitle:ed=!1,classes:td="",useHtmlLabels:rd=!0,isNode:sd=!0,width:od=200,addSvgBackground:ld=!1}={},cd)=>{if(log$1.info("XYZ createText",qa,Ja,ed,td,rd,sd,"addSvgBackground: ",ld),rd){const ud=markdownToHTML(qa,cd),_d=replaceIconSubstring(decodeEntities(ud)),yd=qa.replace(/\\\\/g,"\\"),gd={isNode:sd,label:hasKatex(qa)?yd:_d,labelStyle:Ja.replace("fill:","color:")};return await addHtmlSpan(Ra,gd,od,td,ld)}else{const ud=qa.replace(/<br\s*\/?>/g,"<br/>"),_d=markdownToLines(ud.replace("<br>","<br/>"),cd),yd=createFormattedText(od,Ra,_d,qa?ld:!1);if(sd){/stroke:/.exec(Ja)&&(Ja=Ja.replace("stroke:","lineColor:"));const gd=Ja.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");select(yd).attr("style",gd)}else{const gd=Ja.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");select(yd).select("rect").attr("style",gd.replace(/background:/g,"fill:"));const Ed=Ja.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");select(yd).select("text").attr("style",Ed)}return yd}},"createText");function t(Ra,qa,Ja){if(Ra&&Ra.length){const[ed,td]=qa,rd=Math.PI/180*Ja,sd=Math.cos(rd),od=Math.sin(rd);for(const ld of Ra){const[cd,ud]=ld;ld[0]=(cd-ed)*sd-(ud-td)*od+ed,ld[1]=(cd-ed)*od+(ud-td)*sd+td}}}function e(Ra,qa){return Ra[0]===qa[0]&&Ra[1]===qa[1]}function s(Ra,qa,Ja,ed=1){const td
`),getConfig2()));const td=Ra.isNode?"nodeLabel":"edgeLabel";return Ja.html('<span class="'+td+'" '+(Ra.labelStyle?'style="'+Ra.labelStyle+'"':"")+">"+ed+"</span>"),applyStyle(Ja,Ra.labelStyle),Ja.style("display","inline-block"),Ja.style("padding-right","1px"),Ja.style("white-space","nowrap"),Ja.attr("xmlns","http://www.w3.org/1999/xhtml"),qa.node()}__name(addHtmlLabel,"addHtmlLabel");var createLabel=__name(async(Ra,qa,Ja,ed)=>{let td=Ra||"";if(typeof td=="object"&&(td=td[0]),evaluate(getConfig2().flowchart.htmlLabels)){td=td.replace(/\\n|\n/g,"<br />"),log$1.info("vertexText"+td);const rd={isNode:ed,label:decodeEntities(td).replace(/fa[blrs]?:fa-[\w-]+/g,od=>`<i class='${od.replace(":"," ")}'></i>`),labelStyle:qa&&qa.replace("fill:","color:")};return await addHtmlLabel(rd)}else{const rd=document.createElementNS("http://www.w3.org/2000/svg","text");rd.setAttribute("style",qa.replace("color:","fill:"));let sd=[];typeof td=="string"?sd=td.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(td)?sd=td:sd=[];for(const od of sd){const ld=document.createElementNS("http://www.w3.org/2000/svg","tspan");ld.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ld.setAttribute("dy","1em"),ld.setAttribute("x","0"),Ja?ld.setAttribute("class","title-row"):ld.setAttribute("class","row"),ld.textContent=od.trim(),rd.appendChild(ld)}return rd}},"createLabel"),createLabel_default=createLabel,createRoundedRectPathD=__name((Ra,qa,Ja,ed,td)=>["M",Ra+td,qa,"H",Ra+Ja-td,"A",td,td,0,0,1,Ra+Ja,qa+td,"V",qa+ed-td,"A",td,td,0,0,1,Ra+Ja-td,qa+ed,"H",Ra+td,"A",td,td,0,0,1,Ra,qa+ed-td,"V",qa+td,"A",td,td,0,0,1,Ra+td,qa,"Z"].join(" "),"createRoundedRectPathD"),solidStateFill=__name(Ra=>{const{handDrawnSeed:qa}=getConfig2();return{fill:Ra,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:Ra,seed:qa}},"solidStateFill"),compileStyles=__name(Ra=>{const qa=styles2Map([...Ra.cssCompiledStyles||[],...Ra.cssStyles||[]]);return{stylesMap:qa,stylesArray:[...qa]}},"compileStyles"),styles2Map=__name(Ra=>{const qa=new Map;return Ra.forEach(Ja=>{const[ed,td]=Ja.split(":");qa.set(ed.trim(),td==null?void 0:td.trim())}),qa},"styles2Map"),styles2String=__name(Ra=>{const{stylesArray:qa}=compileStyles(Ra),Ja=[],ed=[],td=[],rd=[];return qa.forEach(sd=>{const od=sd[0];od==="color"||od==="font-size"||od==="font-family"||od==="font-weight"||od==="font-style"||od==="text-decoration"||od==="text-align"||od==="text-transform"||od==="line-height"||od==="letter-spacing"||od==="word-spacing"||od==="text-shadow"||od==="text-overflow"||od==="white-space"||od==="word-wrap"||od==="word-break"||od==="overflow-wrap"||od==="hyphens"?Ja.push(sd.join(":")+" !important"):(ed.push(sd.join(":")+" !important"),od.includes("stroke")&&td.push(sd.join(":")+" !important"),od==="fill"&&rd.push(sd.join(":")+" !important"))}),{labelStyles:Ja.join(";"),nodeStyles:ed.join(";"),stylesArray:qa,borderStyles:td,backgroundStyles:rd}},"styles2String"),userNodeOverrides=__name((Ra,qa)=>{const{themeVariables:Ja,handDrawnSeed:ed}=getConfig2(),{nodeBorder:td,mainBkg:rd}=Ja,{stylesMap:sd}=compileStyles(Ra);return Object.assign({roughness:.7,fill:sd.get("fill")||rd,fillStyle:"hachure",fillWeight:4,stroke:sd.get("stroke")||td,seed:ed,strokeWidth:1.3},qa)},"userNodeOverrides"),rect$2=__name(async(Ra,qa)=>{log$1.info("Creating subgraph rect for ",qa.id,qa);const Ja=getConfig2(),{themeVariables:ed,handDrawnSeed:td}=Ja,{clusterBkg:rd,clusterBorder:sd}=ed,{labelStyles:od,nodeStyles:ld,borderStyles:cd,backgroundStyles:ud}=styles2String(qa),_d=Ra.insert("g").attr("class","cluster "+qa.cssClasses).attr("id",qa.id).attr("data-look",qa.look),yd=evaluate(Ja.flowchart.htmlLabels),gd=_d.insert("g").attr("class","cluster-label "),Ed=await createText(gd,qa.label,{style:qa.labelStyle,useHtmlLabels:yd,isNode:!0});let Td=Ed.getBBox();if(evaluate(Ja.flowchart.htmlLabels)){const qd=Ed.children[0],Yd=select(Ed);Td=qd.getBoundingClientRect(),Yd.attr("width",Td.width),Yd.attr("height",Td.height)}const kd=qa.width<=Td.width+qa.padding?Td.width+qa.padding:qa.width;qa.width<=Td.width+qa.padding?qa.diff=(kd-qa.widt
outsidePoint: ${JSON.stringify(qa)}
insidePoint : ${JSON.stringify(Ja)}
node : x:${Ra.x} y:${Ra.y} w:${Ra.width} h:${Ra.height}`);const ed=Ra.x,td=Ra.y,rd=Math.abs(ed-Ja.x),sd=Ra.width/2;let od=Ja.x<qa.x?sd-rd:sd+rd;const ld=Ra.height/2,cd=Math.abs(qa.y-Ja.y),ud=Math.abs(qa.x-Ja.x);if(Math.abs(td-qa.y)*sd>Math.abs(ed-qa.x)*ld){let _d=Ja.y<qa.y?qa.y-ld-td:td-ld-qa.y;od=ud*_d/cd;const yd={x:Ja.x<qa.x?Ja.x+od:Ja.x-ud+od,y:Ja.y<qa.y?Ja.y+cd-_d:Ja.y-cd+_d};return od===0&&(yd.x=qa.x,yd.y=qa.y),ud===0&&(yd.x=qa.x),cd===0&&(yd.y=qa.y),log$1.debug(`abc89 top/bottom calc, Q ${cd}, q ${_d}, R ${ud}, r ${od}`,yd),yd}else{Ja.x<qa.x?od=qa.x-sd-ed:od=ed-sd-qa.x;let _d=cd*od/ud,yd=Ja.x<qa.x?Ja.x+ud-od:Ja.x-ud+od,gd=Ja.y<qa.y?Ja.y+_d:Ja.y-_d;return log$1.debug(`sides calc abc89, Q ${cd}, q ${_d}, R ${ud}, r ${od}`,{_x:yd,_y:gd}),od===0&&(yd=qa.x,gd=qa.y),ud===0&&(yd=qa.x),cd===0&&(gd=qa.y),{x:yd,y:gd}}},"intersection"),cutPathAtIntersect=__name((Ra,qa)=>{log$1.warn("abc88 cutPathAtIntersect",Ra,qa);let Ja=[],ed=Ra[0],td=!1;return Ra.forEach(rd=>{if(log$1.info("abc88 checking point",rd,qa),!outsideNode(qa,rd)&&!td){const sd=intersection(qa,ed,rd);log$1.debug("abc88 inside",rd,ed,sd),log$1.debug("abc88 intersection",sd,qa);let od=!1;Ja.forEach(ld=>{od=od||ld.x===sd.x&&ld.y===sd.y}),Ja.some(ld=>ld.x===sd.x&&ld.y===sd.y)?log$1.warn("abc88 no intersect",sd,Ja):Ja.push(sd),td=!0}else log$1.warn("abc88 outside",rd,ed),ed=rd,td||Ja.push(rd)}),log$1.debug("returning points",Ja),Ja},"cutPathAtIntersect");function extractCornerPoints(Ra){const qa=[],Ja=[];for(let ed=1;ed<Ra.length-1;ed++){const td=Ra[ed-1],rd=Ra[ed],sd=Ra[ed+1];(td.x===rd.x&&rd.y===sd.y&&Math.abs(rd.x-sd.x)>5&&Math.abs(rd.y-td.y)>5||td.y===rd.y&&rd.x===sd.x&&Math.abs(rd.x-td.x)>5&&Math.abs(rd.y-sd.y)>5)&&(qa.push(rd),Ja.push(ed))}return{cornerPoints:qa,cornerPointPositions:Ja}}__name(extractCornerPoints,"extractCornerPoints");var findAdjacentPoint=__name(function(Ra,qa,Ja){const ed=qa.x-Ra.x,td=qa.y-Ra.y,rd=Math.sqrt(ed*ed+td*td),sd=Ja/rd;return{x:qa.x-sd*ed,y:qa.y-sd*td}},"findAdjacentPoint"),fixCorners=__name(function(Ra){const{cornerPointPositions:qa}=extractCornerPoints(Ra),Ja=[];for(let ed=0;ed<Ra.length;ed++)if(qa.includes(ed)){const td=Ra[ed-1],rd=Ra[ed+1],sd=Ra[ed],od=findAdjacentPoint(td,sd,5),ld=findAdjacentPoint(rd,sd,5),cd=ld.x-od.x,ud=ld.y-od.y;Ja.push(od);const _d=Math.sqrt(2)*2;let yd={x:sd.x,y:sd.y};if(Math.abs(rd.x-td.x)>10&&Math.abs(rd.y-td.y)>=10){log$1.debug("Corner point fixing",Math.abs(rd.x-td.x),Math.abs(rd.y-td.y));const gd=5;sd.x===od.x?yd={x:cd<0?od.x-gd+_d:od.x+gd-_d,y:ud<0?od.y-_d:od.y+_d}:yd={x:cd<0?od.x-_d:od.x+_d,y:ud<0?od.y-gd+_d:od.y+gd-_d}}else log$1.debug("Corner point skipping fixing",Math.abs(rd.x-td.x),Math.abs(rd.y-td.y));Ja.push(yd,ld)}else Ja.push(Ra[ed]);return Ja},"fixCorners"),insertEdge=__name(function(Ra,qa,Ja,ed,td,rd,sd){const{handDrawnSeed:od}=getConfig2();let ld=qa.points,cd=!1;const ud=td;var _d=rd;_d.intersect&&ud.intersect&&(ld=ld.slice(1,qa.points.length-1),ld.unshift(ud.intersect(ld[0])),log$1.debug("Last point APA12",qa.start,"-->",qa.end,ld[ld.length-1],_d,_d.intersect(ld[ld.length-1])),ld.push(_d.intersect(ld[ld.length-1]))),qa.toCluster&&(log$1.info("to cluster abc88",Ja.get(qa.toCluster)),ld=cutPathAtIntersect(qa.points,Ja.get(qa.toCluster).node),cd=!0),qa.fromCluster&&(log$1.debug("from cluster abc88",Ja.get(qa.fromCluster),JSON.stringify(ld,null,2)),ld=cutPathAtIntersect(ld.reverse(),Ja.get(qa.fromCluster).node).reverse(),cd=!0);let yd=ld.filter(Yd=>!Number.isNaN(Yd.y));yd=fixCorners(yd);let gd=yd[yd.length-1];if(yd.length>1){gd=yd[yd.length-1];const Yd=yd[yd.length-2],Ud=(gd.x-Yd.x)/2,Hd=(gd.y-Yd.y)/2,Vd={x:Yd.x+Ud,y:Yd.y+Hd};yd.splice(-1,0,Vd)}let Ed=curveBasis;qa.curve&&(Ed=qa.curve);const{x:Td,y:kd}=getLineFunctionsWithOffset(qa),Rd=line$1().x(Td).y(kd).curve(Ed);let Nd;switch(qa.thickness){case"normal":Nd="edge-thickness-normal";break;case"thick":Nd="edge-thickness-thick";break;case"invisible":Nd="edge-thickness-invisible";break;default:Nd="edge-thickness-normal"}switch(qa.pattern){case"solid":Nd+=" edge-pattern-solid";break;case"dotted":Nd+=" edge-pattern-dotted";break;case"
point:`,yd,`
node:
`,qa,`
res:`,intersect_default.polygon(qa,cd,yd)),intersect_default.polygon(qa,cd,yd)},td},"question"),createHexagonPathD=__name((Ra,qa,Ja,ed,td)=>[`M${Ra+td},${qa}`,`L${Ra+Ja-td},${qa}`,`L${Ra+Ja},${qa-ed/2}`,`L${Ra+Ja-td},${qa-ed}`,`L${Ra+td},${qa-ed}`,`L${Ra},${qa-ed/2}`,"Z"].join(" "),"createHexagonPathD"),hexagon=__name(async(Ra,qa)=>{const{labelStyles:Ja,nodeStyles:ed}=styles2String(qa);qa.labelStyle=Ja;const{shapeSvg:td,bbox:rd}=await labelHelper(Ra,qa,getNodeClasses(qa)),sd=4,od=rd.height+qa.padding,ld=od/sd,cd=rd.width+2*ld+qa.padding,ud=[{x:ld,y:0},{x:cd-ld,y:0},{x:cd,y:-od/2},{x:cd-ld,y:-od},{x:ld,y:-od},{x:0,y:-od/2}];let _d;const{cssStyles:yd}=qa;if(qa.look==="handDrawn"){const gd=at$3.svg(td),Ed=userNodeOverrides(qa,{}),Td=createHexagonPathD(0,0,cd,od,ld),kd=gd.path(Td,Ed);_d=td.insert(()=>kd,":first-child").attr("transform",`translate(${-cd/2}, ${od/2})`),yd&&_d.attr("style",yd)}else _d=insertPolygonShape(td,cd,od,ud);return ed&&_d.attr("style",ed),qa.width=cd,qa.height=od,updateNodeBounds(qa,_d),qa.intersect=function(gd){return intersect_default.polygon(qa,ud,gd)},td},"hexagon"),createLeanRightPathD=__name((Ra,qa,Ja,ed)=>[`M${Ra-2*ed/6},${qa}`,`L${Ra+Ja-ed/6},${qa}`,`L${Ra+Ja+2*ed/6},${qa-ed}`,`L${Ra+ed/6},${qa-ed}`,"Z"].join(" "),"createLeanRightPathD"),lean_right=__name(async(Ra,qa)=>{const{labelStyles:Ja,nodeStyles:ed}=styles2String(qa);qa.labelStyle=Ja;const{shapeSvg:td,bbox:rd}=await labelHelper(Ra,qa,getNodeClasses(qa)),sd=rd.width+qa.padding,od=rd.height+qa.padding,ld=[{x:-2*od/6,y:0},{x:sd-od/6,y:0},{x:sd+2*od/6,y:-od},{x:od/6,y:-od}];let cd;const{cssStyles:ud}=qa;if(qa.look==="handDrawn"){const _d=at$3.svg(td),yd=userNodeOverrides(qa,{}),gd=createLeanRightPathD(0,0,sd,od),Ed=_d.path(gd,yd);cd=td.insert(()=>Ed,":first-child").attr("transform",`translate(${-sd/2}, ${od/2})`),ud&&cd.attr("style",ud)}else cd=insertPolygonShape(td,sd,od,ld);return ed&&cd.attr("style",ed),qa.width=sd,qa.height=od,updateNodeBounds(qa,cd),qa.intersect=function(_d){return intersect_default.polygon(qa,ld,_d)},td},"lean_right"),createLeanLeftPathD=__name((Ra,qa,Ja,ed)=>[`M${Ra+2*ed/6},${qa}`,`L${Ra+Ja+ed/6},${qa}`,`L${Ra+Ja-2*ed/6},${qa-ed}`,`L${Ra-ed/6},${qa-ed}`,"Z"].join(" "),"createLeanLeftPathD"),lean_left=__name(async(Ra,qa)=>{const{labelStyles:Ja,nodeStyles:ed}=styles2String(qa);qa.labelStyle=Ja;const{shapeSvg:td,bbox:rd}=await labelHelper(Ra,qa,getNodeClasses(qa)),sd=rd.width+qa.padding,od=rd.height+qa.padding,ld=[{x:2*od/6,y:0},{x:sd+od/6,y:0},{x:sd-2*od/6,y:-od},{x:-od/6,y:-od}];let cd;const{cssStyles:ud}=qa;if(qa.look==="handDrawn"){const _d=at$3.svg(td),yd=userNodeOverrides(qa,{}),gd=createLeanLeftPathD(0,0,sd,od),Ed=_d.path(gd,yd);cd=td.insert(()=>Ed,":first-child").attr("transform",`translate(${-sd/2}, ${od/2})`),ud&&cd.attr("style",ud)}else cd=insertPolygonShape(td,sd,od,ld);return ed&&cd.attr("style",ed),qa.width=sd,qa.height=od,updateNodeBounds(qa,cd),qa.intersect=function(_d){return intersect_default.polygon(qa,ld,_d)},td},"lean_left"),createTrapezoidPathD=__name((Ra,qa,Ja,ed)=>[`M${Ra-2*ed/6},${qa}`,`L${Ra+Ja+2*ed/6},${qa}`,`L${Ra+Ja-ed/6},${qa-ed}`,`L${Ra+ed/6},${qa-ed}`,"Z"].join(" "),"createTrapezoidPathD"),trapezoid=__name(async(Ra,qa)=>{const{labelStyles:Ja,nodeStyles:ed}=styles2String(qa);qa.labelStyle=Ja;const{shapeSvg:td,bbox:rd}=await labelHelper(Ra,qa,getNodeClasses(qa)),sd=rd.width+qa.padding,od=rd.height+qa.padding,ld=[{x:-2*od/6,y:0},{x:sd+2*od/6,y:0},{x:sd-od/6,y:-od},{x:od/6,y:-od}];let cd;const{cssStyles:ud}=qa;if(qa.look==="handDrawn"){const _d=at$3.svg(td),yd=userNodeOverrides(qa,{}),gd=createTrapezoidPathD(0,0,sd,od),Ed=_d.path(gd,yd);cd=td.insert(()=>Ed,":first-child").attr("transform",`translate(${-sd/2}, ${od/2})`),ud&&cd.attr("style",ud)}else cd=insertPolygonShape(td,sd,od,ld);return ed&&cd.attr("style",ed),qa.width=sd,qa.height=od,updateNodeBounds(qa,cd),qa.intersect=function(_d){return intersect_default.polygon(qa,ld,_d)},td},"trapezoid"),createInvertedTrapezoidPathD=__name((Ra,qa,Ja,ed)=>[`M${Ra+ed/6},${qa}`,`L${Ra+Ja-ed/6},${qa}`,`L${Ra+Ja+2*ed/6},${qa-ed}`,`L${Ra-2*ed/6},${qa-ed}`,"Z
`);const ed=selectSvgElement(qa),td=ed.append("g");ed.attr("viewBox","0 0 2412 512"),configureSvgSize(ed,100,512,!0),td.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),td.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),td.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),td.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),td.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),td.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),td.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),td.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${Ja}`)},"draw"),renderer={draw},errorRenderer_default=renderer,diagram={db:{},renderer,parser:{parse:__name(()=>{},"parse")}},errorDiagram_default=diagram,id18="flowchart-elk",detector18=__name((Ra,qa={})=>{var Ja;return/^\s*flowchart-elk/.test(Ra)||/^\s*flowchart|graph/.test(Ra)&&((Ja=qa==null?void 0:qa.flowchart)==null?void 0:Ja.defaultRenderer)==="elk"?(qa.layout="elk",!0):!1},"detector"),loader18=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./flowDiagram-SWJZLURC-CWk5Uyll.js");return{diagram:qa}},__vite__mapDeps([8,9,10,11]));return{id:id18,diagram:Ra}},"loader"),plugin16={id:id18,detector:detector18,loader:loader18},detector_default=plugin16,id19="timeline",detector19=__name(Ra=>/^\s*timeline/.test(Ra),"detector"),loader19=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./timeline-definition-KYQAIZUX-BgNf2cfV.js");return{diagram:qa}},__vite__mapDeps([36,22]));return{id:id19,diagram:Ra}},"loader"),plugin17={id:id19,detector:detector19,loader:loader19},detector_default2=plugin17,id20="mindmap",detector20=__name(Ra=>/^\s*mindmap/.test(Ra),"detector"),loader20=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./mindmap-definition-26FWEE7H-Tmdlm-x-.js");return{diagram:qa}},__vite__mapDeps([37,38]));return{id:id20,diagram:Ra}},"loader"),plugin18={id:id20,detector:detector20,loader:loader20},detector_default3=plugin18,id21="sankey",detector21=__name(Ra=>/^\s*sankey-beta/.test(Ra),"detector"),loader21=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./sankeyDiagram-KMMQDL5K-C4dSAcmX.js");return{diagram:qa}},__vite__mapDeps([39,23,19]));return{id:id21,diagram:Ra}},"loader"),plugin19={id:id21,detector:detector21,loader:loader21},sankeyDetector_default=plugin19,id22="packet",detector22=__name(Ra=>/^\s*packet-beta/.test(Ra),"detec
`;try{getDiagram(td)}catch{const _d=getDiagramLoader(td);if(!_d)throw new UnknownDiagramError(`Diagram ${td} not found.`);const{id:yd,diagram:gd}=await _d();registerDiagram(yd,gd)}const{db:rd,parser:sd,renderer:od,init:ld}=getDiagram(td);return sd.parser&&(sd.parser.yy=rd),(cd=rd.clear)==null||cd.call(rd),ld==null||ld(ed),Ja.title&&((ud=rd.setDiagramTitle)==null||ud.call(rd,Ja.title)),await sd.parse(qa),new wv(td,qa,rd,sd,od)}async render(qa,Ja){await this.renderer.draw(this.text,qa,Ja,this)}getParser(){return this.parser}getType(){return this.type}},__name(wv,"Diagram"),wv),interactionFunctions=[],attachFunctions=__name(()=>{interactionFunctions.forEach(Ra=>{Ra()}),interactionFunctions=[]},"attachFunctions"),cleanupComments=__name(Ra=>Ra.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function isNothing(Ra){return typeof Ra>"u"||Ra===null}__name(isNothing,"isNothing");function isObject$2(Ra){return typeof Ra=="object"&&Ra!==null}__name(isObject$2,"isObject");function toArray$2(Ra){return Array.isArray(Ra)?Ra:isNothing(Ra)?[]:[Ra]}__name(toArray$2,"toArray");function extend$1(Ra,qa){var Ja,ed,td,rd;if(qa)for(rd=Object.keys(qa),Ja=0,ed=rd.length;Ja<ed;Ja+=1)td=rd[Ja],Ra[td]=qa[td];return Ra}__name(extend$1,"extend");function repeat(Ra,qa){var Ja="",ed;for(ed=0;ed<qa;ed+=1)Ja+=Ra;return Ja}__name(repeat,"repeat");function isNegativeZero(Ra){return Ra===0&&Number.NEGATIVE_INFINITY===1/Ra}__name(isNegativeZero,"isNegativeZero");var isNothing_1=isNothing,isObject_1=isObject$2,toArray_1=toArray$2,repeat_1=repeat,isNegativeZero_1=isNegativeZero,extend_1=extend$1,common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(Ra,qa){var Ja="",ed=Ra.reason||"(unknown reason)";return Ra.mark?(Ra.mark.name&&(Ja+='in "'+Ra.mark.name+'" '),Ja+="("+(Ra.mark.line+1)+":"+(Ra.mark.column+1)+")",!qa&&Ra.mark.snippet&&(Ja+=`
`+Ra.mark.snippet),ed+" "+Ja):ed}__name(formatError,"formatError");function YAMLException$1(Ra,qa){Error.call(this),this.name="YAMLException",this.reason=Ra,this.mark=qa,this.message=formatError(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}__name(YAMLException$1,"YAMLException$1");YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=__name(function(qa){return this.name+": "+formatError(this,qa)},"toString");var exception=YAMLException$1;function getLine(Ra,qa,Ja,ed,td){var rd="",sd="",od=Math.floor(td/2)-1;return ed-qa>od&&(rd=" ... ",qa=ed-od+rd.length),Ja-ed>od&&(sd=" ...",Ja=ed+od-sd.length),{str:rd+Ra.slice(qa,Ja).replace(/\t/g,"→")+sd,pos:ed-qa+rd.length}}__name(getLine,"getLine");function padStart(Ra,qa){return common.repeat(" ",qa-Ra.length)+Ra}__name(padStart,"padStart");function makeSnippet(Ra,qa){if(qa=Object.create(qa||null),!Ra.buffer)return null;qa.maxLength||(qa.maxLength=79),typeof qa.indent!="number"&&(qa.indent=1),typeof qa.linesBefore!="number"&&(qa.linesBefore=3),typeof qa.linesAfter!="number"&&(qa.linesAfter=2);for(var Ja=/\r?\n|\r|\0/g,ed=[0],td=[],rd,sd=-1;rd=Ja.exec(Ra.buffer);)td.push(rd.index),ed.push(rd.index+rd[0].length),Ra.position<=rd.index&&sd<0&&(sd=ed.length-2);sd<0&&(sd=ed.length-1);var od="",ld,cd,ud=Math.min(Ra.line+qa.linesAfter,td.length).toString().length,_d=qa.maxLength-(qa.indent+ud+3);for(ld=1;ld<=qa.linesBefore&&!(sd-ld<0);ld++)cd=getLine(Ra.buffer,ed[sd-ld],td[sd-ld],Ra.position-(ed[sd]-ed[sd-ld]),_d),od=common.repeat(" ",qa.indent)+padStart((Ra.line-ld+1).toString(),ud)+" | "+cd.str+`
`+od;for(cd=getLine(Ra.buffer,ed[sd],td[sd],Ra.position,_d),od+=common.repeat(" ",qa.indent)+padStart((Ra.line+1).toString(),ud)+" | "+cd.str+`
`,od+=common.repeat("-",qa.indent+ud+3+cd.pos)+`^
`,ld=1;ld<=qa.linesAfter&&!(sd+ld>=td.length);ld++)cd=getLine(Ra.buffer,ed[sd+ld],td[sd+ld],Ra.position-(ed[sd]-ed[sd+ld]),_d),od+=common.repeat(" ",qa.indent)+padStart((Ra.line+ld+1).toString(),ud)+" | "+cd.str+`
`;return od.replace(/\n$/,"")}__name(makeSnippet,"makeSnippet");var snippet=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(Ra){var qa={};return Ra!==null&&Object.keys(Ra).forEach(function(Ja){Ra[Ja].forEach(function(ed){qa[String(ed)]=Ja})}),qa}__name(compileStyleAliases,"compileStyleAliases");function Type$1(Ra,qa){if(qa=qa||{},Object.keys(qa).forEach(function(Ja){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(Ja)===-1)throw new exception('Unknown option "'+Ja+'" is met in definition of "'+Ra+'" YAML type.')}),this.options=qa,this.tag=Ra,this.kind=qa.kind||null,this.resolve=qa.resolve||function(){return!0},this.construct=qa.construct||function(Ja){return Ja},this.instanceOf=qa.instanceOf||null,this.predicate=qa.predicate||null,this.represent=qa.represent||null,this.representName=qa.representName||null,this.defaultStyle=qa.defaultStyle||null,this.multi=qa.multi||!1,this.styleAliases=compileStyleAliases(qa.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new exception('Unknown kind "'+this.kind+'" is specified for "'+Ra+'" YAML type.')}__name(Type$1,"Type$1");var type$1=Type$1;function compileList(Ra,qa){var Ja=[];return Ra[qa].forEach(function(ed){var td=Ja.length;Ja.forEach(function(rd,sd){rd.tag===ed.tag&&rd.kind===ed.kind&&rd.multi===ed.multi&&(td=sd)}),Ja[td]=ed}),Ja}__name(compileList,"compileList");function compileMap(){var Ra={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},qa,Ja;function ed(td){td.multi?(Ra.multi[td.kind].push(td),Ra.multi.fallback.push(td)):Ra[td.kind][td.tag]=Ra.fallback[td.tag]=td}for(__name(ed,"collectType"),qa=0,Ja=arguments.length;qa<Ja;qa+=1)arguments[qa].forEach(ed);return Ra}__name(compileMap,"compileMap");function Schema$1(Ra){return this.extend(Ra)}__name(Schema$1,"Schema$1");Schema$1.prototype.extend=__name(function(qa){var Ja=[],ed=[];if(qa instanceof type$1)ed.push(qa);else if(Array.isArray(qa))ed=ed.concat(qa);else if(qa&&(Array.isArray(qa.implicit)||Array.isArray(qa.explicit)))qa.implicit&&(Ja=Ja.concat(qa.implicit)),qa.explicit&&(ed=ed.concat(qa.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");Ja.forEach(function(rd){if(!(rd instanceof type$1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(rd.loadKind&&rd.loadKind!=="scalar")throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(rd.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),ed.forEach(function(rd){if(!(rd instanceof type$1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var td=Object.create(Schema$1.prototype);return td.implicit=(this.implicit||[]).concat(Ja),td.explicit=(this.explicit||[]).concat(ed),td.compiledImplicit=compileList(td,"implicit"),td.compiledExplicit=compileList(td,"explicit"),td.compiledTypeMap=compileMap(td.compiledImplicit,td.compiledExplicit),td},"extend");var schema=Schema$1,str=new type$1("tag:yaml.org,2002:str",{kind:"scalar",construct:__name(function(Ra){return Ra!==null?Ra:""},"construct")}),seq$1=new type$1("tag:yaml.org,2002:seq",{kind:"sequence",construct:__name(function(Ra){return Ra!==null?Ra:[]},"construct")}),map$4=new type$1("tag:yaml.org,2002:map",{kind:"mapping",construct:__name(function(Ra){return Ra!==null?Ra:{}},"construct")}),failsafe=new schema({explicit:[str,seq$1,map$4]});function resolveYamlNull(Ra){if(Ra===null)return!0;var qa=Ra.length;return qa===1&&Ra==="~"||qa===4&&(Ra==="null"||Ra==="Null"||Ra==="NULL")}__name(resolveYamlNull,"resolveYamlNull");function constructYamlNull(){return null}__name(constructYamlNull,"constructYamlNull");function isNull(Ra){
\r`;function resolveYamlBinary(Ra){if(Ra===null)return!1;var qa,Ja,ed=0,td=Ra.length,rd=BASE64_MAP;for(Ja=0;Ja<td;Ja++)if(qa=rd.indexOf(Ra.charAt(Ja)),!(qa>64)){if(qa<0)return!1;ed+=6}return ed%8===0}__name(resolveYamlBinary,"resolveYamlBinary");function constructYamlBinary(Ra){var qa,Ja,ed=Ra.replace(/[\r\n=]/g,""),td=ed.length,rd=BASE64_MAP,sd=0,od=[];for(qa=0;qa<td;qa++)qa%4===0&&qa&&(od.push(sd>>16&255),od.push(sd>>8&255),od.push(sd&255)),sd=sd<<6|rd.indexOf(ed.charAt(qa));return Ja=td%4*6,Ja===0?(od.push(sd>>16&255),od.push(sd>>8&255),od.push(sd&255)):Ja===18?(od.push(sd>>10&255),od.push(sd>>2&255)):Ja===12&&od.push(sd>>4&255),new Uint8Array(od)}__name(constructYamlBinary,"constructYamlBinary");function representYamlBinary(Ra){var qa="",Ja=0,ed,td,rd=Ra.length,sd=BASE64_MAP;for(ed=0;ed<rd;ed++)ed%3===0&&ed&&(qa+=sd[Ja>>18&63],qa+=sd[Ja>>12&63],qa+=sd[Ja>>6&63],qa+=sd[Ja&63]),Ja=(Ja<<8)+Ra[ed];return td=rd%3,td===0?(qa+=sd[Ja>>18&63],qa+=sd[Ja>>12&63],qa+=sd[Ja>>6&63],qa+=sd[Ja&63]):td===2?(qa+=sd[Ja>>10&63],qa+=sd[Ja>>4&63],qa+=sd[Ja<<2&63],qa+=sd[64]):td===1&&(qa+=sd[Ja>>2&63],qa+=sd[Ja<<4&63],qa+=sd[64],qa+=sd[64]),qa}__name(representYamlBinary,"representYamlBinary");function isBinary(Ra){return Object.prototype.toString.call(Ra)==="[object Uint8Array]"}__name(isBinary,"isBinary");var binary=new type$1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary}),_hasOwnProperty$3=Object.prototype.hasOwnProperty,_toString$2=Object.prototype.toString;function resolveYamlOmap(Ra){if(Ra===null)return!0;var qa=[],Ja,ed,td,rd,sd,od=Ra;for(Ja=0,ed=od.length;Ja<ed;Ja+=1){if(td=od[Ja],sd=!1,_toString$2.call(td)!=="[object Object]")return!1;for(rd in td)if(_hasOwnProperty$3.call(td,rd))if(!sd)sd=!0;else return!1;if(!sd)return!1;if(qa.indexOf(rd)===-1)qa.push(rd);else return!1}return!0}__name(resolveYamlOmap,"resolveYamlOmap");function constructYamlOmap(Ra){return Ra!==null?Ra:[]}__name(constructYamlOmap,"constructYamlOmap");var omap=new type$1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),_toString$1=Object.prototype.toString;function resolveYamlPairs(Ra){if(Ra===null)return!0;var qa,Ja,ed,td,rd,sd=Ra;for(rd=new Array(sd.length),qa=0,Ja=sd.length;qa<Ja;qa+=1){if(ed=sd[qa],_toString$1.call(ed)!=="[object Object]"||(td=Object.keys(ed),td.length!==1))return!1;rd[qa]=[td[0],ed[td[0]]]}return!0}__name(resolveYamlPairs,"resolveYamlPairs");function constructYamlPairs(Ra){if(Ra===null)return[];var qa,Ja,ed,td,rd,sd=Ra;for(rd=new Array(sd.length),qa=0,Ja=sd.length;qa<Ja;qa+=1)ed=sd[qa],td=Object.keys(ed),rd[qa]=[td[0],ed[td[0]]];return rd}__name(constructYamlPairs,"constructYamlPairs");var pairs=new type$1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),_hasOwnProperty$2=Object.prototype.hasOwnProperty;function resolveYamlSet(Ra){if(Ra===null)return!0;var qa,Ja=Ra;for(qa in Ja)if(_hasOwnProperty$2.call(Ja,qa)&&Ja[qa]!==null)return!1;return!0}__name(resolveYamlSet,"resolveYamlSet");function constructYamlSet(Ra){return Ra!==null?Ra:{}}__name(constructYamlSet,"constructYamlSet");var set=new type$1("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default$1=core$1.extend({implicit:[timestamp,merge$1],explicit:[binary,omap,pairs,set]}),_hasOwnProperty$1=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(Ra){return Object.prototype.toString.call(Ra)}__name(_class,"_class");function is_EOL(Ra){return Ra===10||R
`:Ra===118?"\v":Ra===102?"\f":Ra===114?"\r":Ra===101?"\x1B":Ra===32?" ":Ra===34?'"':Ra===47?"/":Ra===92?"\\":Ra===78?"…":Ra===95?" ":Ra===76?"\u2028":Ra===80?"\u2029":""}__name(simpleEscapeSequence,"simpleEscapeSequence");function charFromCodepoint(Ra){return Ra<=65535?String.fromCharCode(Ra):String.fromCharCode((Ra-65536>>10)+55296,(Ra-65536&1023)+56320)}__name(charFromCodepoint,"charFromCodepoint");var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256);for(i$1=0;i$1<256;i$1++)simpleEscapeCheck[i$1]=simpleEscapeSequence(i$1)?1:0,simpleEscapeMap[i$1]=simpleEscapeSequence(i$1);var i$1;function State$1(Ra,qa){this.input=Ra,this.filename=qa.filename||null,this.schema=qa.schema||_default$1,this.onWarning=qa.onWarning||null,this.legacy=qa.legacy||!1,this.json=qa.json||!1,this.listener=qa.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Ra.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}__name(State$1,"State$1");function generateError(Ra,qa){var Ja={name:Ra.filename,buffer:Ra.input.slice(0,-1),position:Ra.position,line:Ra.line,column:Ra.position-Ra.lineStart};return Ja.snippet=snippet(Ja),new exception(qa,Ja)}__name(generateError,"generateError");function throwError(Ra,qa){throw generateError(Ra,qa)}__name(throwError,"throwError");function throwWarning(Ra,qa){Ra.onWarning&&Ra.onWarning.call(null,generateError(Ra,qa))}__name(throwWarning,"throwWarning");var directiveHandlers={YAML:__name(function(qa,Ja,ed){var td,rd,sd;qa.version!==null&&throwError(qa,"duplication of %YAML directive"),ed.length!==1&&throwError(qa,"YAML directive accepts exactly one argument"),td=/^([0-9]+)\.([0-9]+)$/.exec(ed[0]),td===null&&throwError(qa,"ill-formed argument of the YAML directive"),rd=parseInt(td[1],10),sd=parseInt(td[2],10),rd!==1&&throwError(qa,"unacceptable YAML version of the document"),qa.version=ed[0],qa.checkLineBreaks=sd<2,sd!==1&&sd!==2&&throwWarning(qa,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:__name(function(qa,Ja,ed){var td,rd;ed.length!==2&&throwError(qa,"TAG directive accepts exactly two arguments"),td=ed[0],rd=ed[1],PATTERN_TAG_HANDLE.test(td)||throwError(qa,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(qa.tagMap,td)&&throwError(qa,'there is a previously declared suffix for "'+td+'" tag handle'),PATTERN_TAG_URI.test(rd)||throwError(qa,"ill-formed tag prefix (second argument) of the TAG directive");try{rd=decodeURIComponent(rd)}catch{throwError(qa,"tag prefix is malformed: "+rd)}qa.tagMap[td]=rd},"handleTagDirective")};function captureSegment(Ra,qa,Ja,ed){var td,rd,sd,od;if(qa<Ja){if(od=Ra.input.slice(qa,Ja),ed)for(td=0,rd=od.length;td<rd;td+=1)sd=od.charCodeAt(td),sd===9||32<=sd&&sd<=1114111||throwError(Ra,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(od)&&throwError(Ra,"the stream contains non-printable characters");Ra.result+=od}}__name(captureSegment,"captureSegment");function mergeMappings(Ra,qa,Ja,ed){var td,rd,sd,od;for(common.isObject(Ja)||throwError(Ra,"cannot merge mappings; the provided source object is unacceptable"),td=Object.keys(Ja),sd=0,od=td.length;sd<od;sd+=1)rd=td[sd],_hasOwnProperty$1.call(qa,rd)||(qa[rd]=Ja[rd],ed[rd]=!0)}__name(mergeMappings,"mergeMappings");function storeMappingPair(Ra,qa,Ja,ed,td,rd,sd,od,ld){var cd,ud;if(Array.isArray(td))for(td=Array.prototype.slice.call(td),cd=0,ud=td.length;cd<ud;cd+=1)Array.isArray(td[cd])&&throwError(Ra,"nested arrays are not supported inside keys"),typeof td=="object"&&_class(td[cd])==="[object Object]"&&(td[cd]="[object Object]");if(typeof td=="object"&&_class(td)==="[object Object]"&&(td="[object Object]"),td=String(td),qa===null&&(qa={}),ed==="tag:yaml.org,2002:merge")if(Array.isArray(rd))for(cd=0,ud=rd.length;cd<ud;cd+=1)mergeMappings(Ra,qa,rd[cd],Ja);else mergeMappings(Ra,qa,rd,Ja);else!Ra.json&&!_hasOwnProperty$1.call(Ja,td)&&_hasOwnProperty$1.call(qa,td)&&(Ra.line=sd||Ra.line,Ra.lineStart=od||Ra.lineStart,Ra.position=ld||Ra.posit
`,qa-1))}__name(writeFoldedLines,"writeFoldedLines");function readPlainScalar(Ra,qa,Ja){var ed,td,rd,sd,od,ld,cd,ud,_d=Ra.kind,yd=Ra.result,gd;if(gd=Ra.input.charCodeAt(Ra.position),is_WS_OR_EOL(gd)||is_FLOW_INDICATOR(gd)||gd===35||gd===38||gd===42||gd===33||gd===124||gd===62||gd===39||gd===34||gd===37||gd===64||gd===96||(gd===63||gd===45)&&(td=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(td)||Ja&&is_FLOW_INDICATOR(td)))return!1;for(Ra.kind="scalar",Ra.result="",rd=sd=Ra.position,od=!1;gd!==0;){if(gd===58){if(td=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(td)||Ja&&is_FLOW_INDICATOR(td))break}else if(gd===35){if(ed=Ra.input.charCodeAt(Ra.position-1),is_WS_OR_EOL(ed))break}else{if(Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)||Ja&&is_FLOW_INDICATOR(gd))break;if(is_EOL(gd))if(ld=Ra.line,cd=Ra.lineStart,ud=Ra.lineIndent,skipSeparationSpace(Ra,!1,-1),Ra.lineIndent>=qa){od=!0,gd=Ra.input.charCodeAt(Ra.position);continue}else{Ra.position=sd,Ra.line=ld,Ra.lineStart=cd,Ra.lineIndent=ud;break}}od&&(captureSegment(Ra,rd,sd,!1),writeFoldedLines(Ra,Ra.line-ld),rd=sd=Ra.position,od=!1),is_WHITE_SPACE(gd)||(sd=Ra.position+1),gd=Ra.input.charCodeAt(++Ra.position)}return captureSegment(Ra,rd,sd,!1),Ra.result?!0:(Ra.kind=_d,Ra.result=yd,!1)}__name(readPlainScalar,"readPlainScalar");function readSingleQuotedScalar(Ra,qa){var Ja,ed,td;if(Ja=Ra.input.charCodeAt(Ra.position),Ja!==39)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,ed=td=Ra.position;(Ja=Ra.input.charCodeAt(Ra.position))!==0;)if(Ja===39)if(captureSegment(Ra,ed,Ra.position,!0),Ja=Ra.input.charCodeAt(++Ra.position),Ja===39)ed=Ra.position,Ra.position++,td=Ra.position;else return!0;else is_EOL(Ja)?(captureSegment(Ra,ed,td,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),ed=td=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a single quoted scalar"):(Ra.position++,td=Ra.position);throwError(Ra,"unexpected end of the stream within a single quoted scalar")}__name(readSingleQuotedScalar,"readSingleQuotedScalar");function readDoubleQuotedScalar(Ra,qa){var Ja,ed,td,rd,sd,od;if(od=Ra.input.charCodeAt(Ra.position),od!==34)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,Ja=ed=Ra.position;(od=Ra.input.charCodeAt(Ra.position))!==0;){if(od===34)return captureSegment(Ra,Ja,Ra.position,!0),Ra.position++,!0;if(od===92){if(captureSegment(Ra,Ja,Ra.position,!0),od=Ra.input.charCodeAt(++Ra.position),is_EOL(od))skipSeparationSpace(Ra,!1,qa);else if(od<256&&simpleEscapeCheck[od])Ra.result+=simpleEscapeMap[od],Ra.position++;else if((sd=escapedHexLen(od))>0){for(td=sd,rd=0;td>0;td--)od=Ra.input.charCodeAt(++Ra.position),(sd=fromHexCode(od))>=0?rd=(rd<<4)+sd:throwError(Ra,"expected hexadecimal character");Ra.result+=charFromCodepoint(rd),Ra.position++}else throwError(Ra,"unknown escape sequence");Ja=ed=Ra.position}else is_EOL(od)?(captureSegment(Ra,Ja,ed,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),Ja=ed=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a double quoted scalar"):(Ra.position++,ed=Ra.position)}throwError(Ra,"unexpected end of the stream within a double quoted scalar")}__name(readDoubleQuotedScalar,"readDoubleQuotedScalar");function readFlowCollection(Ra,qa){var Ja=!0,ed,td,rd,sd=Ra.tag,od,ld=Ra.anchor,cd,ud,_d,yd,gd,Ed=Object.create(null),Td,kd,Rd,Nd;if(Nd=Ra.input.charCodeAt(Ra.position),Nd===91)ud=93,gd=!1,od=[];else if(Nd===123)ud=125,gd=!0,od={};else return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=od),Nd=Ra.input.charCodeAt(++Ra.position);Nd!==0;){if(skipSeparationSpace(Ra,!0,qa),Nd=Ra.input.charCodeAt(Ra.position),Nd===ud)return Ra.position++,Ra.tag=sd,Ra.anchor=ld,Ra.kind=gd?"mapping":"sequence",Ra.result=od,!0;Ja?Nd===44&&throwError(Ra,"expected the node content, but found ','"):throwError(Ra,"missed comma between flow collection entries"),kd=Td=Rd=null,_d=yd=!1,Nd===63&&(cd=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(cd)&&(_d=yd=!0,Ra.position++,skipSeparationSpace(Ra,!0,qa))),ed=Ra.l
`,rd?1+ld:ld):td===CHOMPING_CLIP&&rd&&(Ra.result+=`
`);break}for(ed?is_WHITE_SPACE(_d)?(cd=!0,Ra.result+=common.repeat(`
`,rd?1+ld:ld)):cd?(cd=!1,Ra.result+=common.repeat(`
`,ld+1)):ld===0?rd&&(Ra.result+=" "):Ra.result+=common.repeat(`
`,ld):Ra.result+=common.repeat(`
`,rd?1+ld:ld),rd=!0,sd=!0,ld=0,Ja=Ra.position;!is_EOL(_d)&&_d!==0;)_d=Ra.input.charCodeAt(++Ra.position);captureSegment(Ra,Ja,Ra.position,!1)}return!0}__name(readBlockScalar,"readBlockScalar");function readBlockSequence(Ra,qa){var Ja,ed=Ra.tag,td=Ra.anchor,rd=[],sd,od=!1,ld;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=rd),ld=Ra.input.charCodeAt(Ra.position);ld!==0&&(Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),!(ld!==45||(sd=Ra.input.charCodeAt(Ra.position+1),!is_WS_OR_EOL(sd))));){if(od=!0,Ra.position++,skipSeparationSpace(Ra,!0,-1)&&Ra.lineIndent<=qa){rd.push(null),ld=Ra.input.charCodeAt(Ra.position);continue}if(Ja=Ra.line,composeNode(Ra,qa,CONTEXT_BLOCK_IN,!1,!0),rd.push(Ra.result),skipSeparationSpace(Ra,!0,-1),ld=Ra.input.charCodeAt(Ra.position),(Ra.line===Ja||Ra.lineIndent>qa)&&ld!==0)throwError(Ra,"bad indentation of a sequence entry");else if(Ra.lineIndent<qa)break}return od?(Ra.tag=ed,Ra.anchor=td,Ra.kind="sequence",Ra.result=rd,!0):!1}__name(readBlockSequence,"readBlockSequence");function readBlockMapping(Ra,qa,Ja){var ed,td,rd,sd,od,ld,cd=Ra.tag,ud=Ra.anchor,_d={},yd=Object.create(null),gd=null,Ed=null,Td=null,kd=!1,Rd=!1,Nd;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=_d),Nd=Ra.input.charCodeAt(Ra.position);Nd!==0;){if(!kd&&Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),ed=Ra.input.charCodeAt(Ra.position+1),rd=Ra.line,(Nd===63||Nd===58)&&is_WS_OR_EOL(ed))Nd===63?(kd&&(storeMappingPair(Ra,_d,yd,gd,Ed,null,sd,od,ld),gd=Ed=Td=null),Rd=!0,kd=!0,td=!0):kd?(kd=!1,td=!0):throwError(Ra,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),Ra.position+=1,Nd=ed;else{if(sd=Ra.line,od=Ra.lineStart,ld=Ra.position,!composeNode(Ra,Ja,CONTEXT_FLOW_OUT,!1,!0))break;if(Ra.line===rd){for(Nd=Ra.input.charCodeAt(Ra.position);is_WHITE_SPACE(Nd);)Nd=Ra.input.charCodeAt(++Ra.position);if(Nd===58)Nd=Ra.input.charCodeAt(++Ra.position),is_WS_OR_EOL(Nd)||throwError(Ra,"a whitespace character is expected after the key-value separator within a block mapping"),kd&&(storeMappingPair(Ra,_d,yd,gd,Ed,null,sd,od,ld),gd=Ed=Td=null),Rd=!0,kd=!1,td=!1,gd=Ra.tag,Ed=Ra.result;else if(Rd)throwError(Ra,"can not read an implicit mapping pair; a colon is missed");else return Ra.tag=cd,Ra.anchor=ud,!0}else if(Rd)throwError(Ra,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Ra.tag=cd,Ra.anchor=ud,!0}if((Ra.line===rd||Ra.lineIndent>qa)&&(kd&&(sd=Ra.line,od=Ra.lineStart,ld=Ra.position),composeNode(Ra,qa,CONTEXT_BLOCK_OUT,!0,td)&&(kd?Ed=Ra.result:Td=Ra.result),kd||(storeMappingPair(Ra,_d,yd,gd,Ed,Td,sd,od,ld),gd=Ed=Td=null),skipSeparationSpace(Ra,!0,-1),Nd=Ra.input.charCodeAt(Ra.position)),(Ra.line===rd||Ra.lineIndent>qa)&&Nd!==0)throwError(Ra,"bad indentation of a mapping entry");else if(Ra.lineIndent<qa)break}return kd&&storeMappingPair(Ra,_d,yd,gd,Ed,null,sd,od,ld),Rd&&(Ra.tag=cd,Ra.anchor=ud,Ra.kind="mapping",Ra.result=_d),Rd}__name(readBlockMapping,"readBlockMapping");function readTagProperty(Ra){var qa,Ja=!1,ed=!1,td,rd,sd;if(sd=Ra.input.charCodeAt(Ra.position),sd!==33)return!1;if(Ra.tag!==null&&throwError(Ra,"duplication of a tag property"),sd=Ra.input.charCodeAt(++Ra.position),sd===60?(Ja=!0,sd=Ra.input.charCodeAt(++Ra.position)):sd===33?(ed=!0,td="!!",sd=Ra.input.charCodeAt(++Ra.position)):td="!",qa=Ra.position,Ja){do sd=Ra.input.charCodeAt(++Ra.position);while(sd!==0&&sd!==62);Ra.position<Ra.length?(rd=Ra.input.slice(qa,Ra.position),sd=Ra.input.charCodeAt(++Ra.position)):throwError(Ra,"unexpected end of the stream within a verbatim tag")}else{for(;sd!==0&&!is_WS_OR_EOL(sd);)sd===33&&(ed?throwError(Ra,"tag suffix cannot contain exclamation marks"):(td=Ra.input.slice(qa-1,Ra.position+1),PATTERN_TAG_HANDLE.test(td)||throwError(Ra,"named tag handle cannot contain such characters"),ed=!0,qa=Ra.position+1)),sd=Ra.input.charCodeAt(++Ra.position);
`),Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)));var Ja=new State$1(Ra,qa),ed=Ra.indexOf("\0");for(ed!==-1&&(Ja.position=ed,throwError(Ja,"null byte is not allowed in input")),Ja.input+="\0";Ja.input.charCodeAt(Ja.position)===32;)Ja.lineIndent+=1,Ja.position+=1;for(;Ja.position<Ja.length-1;)readDocument(Ja);return Ja.documents}__name(loadDocuments,"loadDocuments");function loadAll$1(Ra,qa,Ja){qa!==null&&typeof qa=="object"&&typeof Ja>"u"&&(Ja=qa,qa=null);var ed=loadDocuments(Ra,Ja);if(typeof qa!="function")return ed;for(var td=0,rd=ed.length;td<rd;td+=1)qa(ed[td])}__name(loadAll$1,"loadAll$1");function load$1(Ra,qa){var Ja=loadDocuments(Ra,qa);if(Ja.length!==0){if(Ja.length===1)return Ja[0];throw new exception("expected a single document in the stream, but found more")}}__name(load$1,"load$1");var loadAll_1=loadAll$1,load_1=load$1,loader25={loadAll:loadAll_1,load:load_1},_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_BOM=65279,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_CARRIAGE_RETURN=13,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]="\\0";ESCAPE_SEQUENCES[7]="\\a";ESCAPE_SEQUENCES[8]="\\b";ESCAPE_SEQUENCES[9]="\\t";ESCAPE_SEQUENCES[10]="\\n";ESCAPE_SEQUENCES[11]="\\v";ESCAPE_SEQUENCES[12]="\\f";ESCAPE_SEQUENCES[13]="\\r";ESCAPE_SEQUENCES[27]="\\e";ESCAPE_SEQUENCES[34]='\\"';ESCAPE_SEQUENCES[92]="\\\\";ESCAPE_SEQUENCES[133]="\\N";ESCAPE_SEQUENCES[160]="\\_";ESCAPE_SEQUENCES[8232]="\\L";ESCAPE_SEQUENCES[8233]="\\P";var DEPRECATED_BOOLEANS_SYNTAX=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],DEPRECATED_BASE60_SYNTAX=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(Ra,qa){var Ja,ed,td,rd,sd,od,ld;if(qa===null)return{};for(Ja={},ed=Object.keys(qa),td=0,rd=ed.length;td<rd;td+=1)sd=ed[td],od=String(qa[sd]),sd.slice(0,2)==="!!"&&(sd="tag:yaml.org,2002:"+sd.slice(2)),ld=Ra.compiledTypeMap.fallback[sd],ld&&_hasOwnProperty.call(ld.styleAliases,od)&&(od=ld.styleAliases[od]),Ja[sd]=od;return Ja}__name(compileStyleMap,"compileStyleMap");function encodeHex(Ra){var qa,Ja,ed;if(qa=Ra.toString(16).toUpperCase(),Ra<=255)Ja="x",ed=2;else if(Ra<=65535)Ja="u",ed=4;else if(Ra<=4294967295)Ja="U",ed=8;else throw new exception("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+Ja+common.repeat("0",ed-qa.length)+qa}__name(encodeHex,"encodeHex");var QUOTING_TYPE_SINGLE=1,QUOTING_TYPE_DOUBLE=2;function State(Ra){this.schema=Ra.schema||_default$1,this.indent=Math.max(1,Ra.indent||2),this.noArrayIndent=Ra.noArrayIndent||!1,this.skipInvalid=Ra.skipInvalid||!1,this.flowLevel=common.isNothing(Ra.flowLevel)?-1:Ra.flowLevel,this.styleMap=compileStyleMap(this.schema,Ra.styles||null),this.sortKeys=Ra.sortKeys||!1,this.lineWidth=Ra.lineWidth||80,this.noRefs=Ra.noRefs||!1,this.noCompatMode=Ra.noCompatMode||!1,this.condenseFlow=Ra.condenseFlow||!1,this.quotingType=Ra.quotingType==='"'?QUOTING_TYPE_DOUBLE:QUOTING_TYPE_SINGLE,this.forceQuotes=Ra.forceQuotes||!1,this.replacer=typeof Ra.replacer=="function"?Ra.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}__name(State,"State");function indentString(Ra,qa){for(var Ja=common.repeat(" ",qa),ed=0,td=-1,rd="",sd,od=Ra.length;ed<od;)td=Ra.indexOf(`
`,ed),td===-1?(sd=Ra.slice(ed),ed=od):(sd=Ra.slice(ed,td+1),ed=td+1),sd.length&&sd!==`
`&&(rd+=Ja),rd+=sd;return rd}__name(indentString,"indentString");function generateNextLine(Ra,qa){return`
`+common.repeat(" ",Ra.indent*qa)}__name(generateNextLine,"generateNextLine");function testImplicitResolving(Ra,qa){var Ja,ed,td;for(Ja=0,ed=Ra.implicitTypes.length;Ja<ed;Ja+=1)if(td=Ra.implicitTypes[Ja],td.resolve(qa))return!0;return!1}__name(testImplicitResolving,"testImplicitResolving");function isWhitespace$1(Ra){return Ra===CHAR_SPACE||Ra===CHAR_TAB}__name(isWhitespace$1,"isWhitespace");function isPrintable(Ra){return 32<=Ra&&Ra<=126||161<=Ra&&Ra<=55295&&Ra!==8232&&Ra!==8233||57344<=Ra&&Ra<=65533&&Ra!==CHAR_BOM||65536<=Ra&&Ra<=1114111}__name(isPrintable,"isPrintable");function isNsCharOrWhitespace(Ra){return isPrintable(Ra)&&Ra!==CHAR_BOM&&Ra!==CHAR_CARRIAGE_RETURN&&Ra!==CHAR_LINE_FEED}__name(isNsCharOrWhitespace,"isNsCharOrWhitespace");function isPlainSafe(Ra,qa,Ja){var ed=isNsCharOrWhitespace(Ra),td=ed&&!isWhitespace$1(Ra);return(Ja?ed:ed&&Ra!==CHAR_COMMA&&Ra!==CHAR_LEFT_SQUARE_BRACKET&&Ra!==CHAR_RIGHT_SQUARE_BRACKET&&Ra!==CHAR_LEFT_CURLY_BRACKET&&Ra!==CHAR_RIGHT_CURLY_BRACKET)&&Ra!==CHAR_SHARP&&!(qa===CHAR_COLON&&!td)||isNsCharOrWhitespace(qa)&&!isWhitespace$1(qa)&&Ra===CHAR_SHARP||qa===CHAR_COLON&&td}__name(isPlainSafe,"isPlainSafe");function isPlainSafeFirst(Ra){return isPrintable(Ra)&&Ra!==CHAR_BOM&&!isWhitespace$1(Ra)&&Ra!==CHAR_MINUS&&Ra!==CHAR_QUESTION&&Ra!==CHAR_COLON&&Ra!==CHAR_COMMA&&Ra!==CHAR_LEFT_SQUARE_BRACKET&&Ra!==CHAR_RIGHT_SQUARE_BRACKET&&Ra!==CHAR_LEFT_CURLY_BRACKET&&Ra!==CHAR_RIGHT_CURLY_BRACKET&&Ra!==CHAR_SHARP&&Ra!==CHAR_AMPERSAND&&Ra!==CHAR_ASTERISK&&Ra!==CHAR_EXCLAMATION&&Ra!==CHAR_VERTICAL_LINE&&Ra!==CHAR_EQUALS&&Ra!==CHAR_GREATER_THAN&&Ra!==CHAR_SINGLE_QUOTE&&Ra!==CHAR_DOUBLE_QUOTE&&Ra!==CHAR_PERCENT&&Ra!==CHAR_COMMERCIAL_AT&&Ra!==CHAR_GRAVE_ACCENT}__name(isPlainSafeFirst,"isPlainSafeFirst");function isPlainSafeLast(Ra){return!isWhitespace$1(Ra)&&Ra!==CHAR_COLON}__name(isPlainSafeLast,"isPlainSafeLast");function codePointAt(Ra,qa){var Ja=Ra.charCodeAt(qa),ed;return Ja>=55296&&Ja<=56319&&qa+1<Ra.length&&(ed=Ra.charCodeAt(qa+1),ed>=56320&&ed<=57343)?(Ja-55296)*1024+ed-56320+65536:Ja}__name(codePointAt,"codePointAt");function needIndentIndicator(Ra){var qa=/^\n* /;return qa.test(Ra)}__name(needIndentIndicator,"needIndentIndicator");var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(Ra,qa,Ja,ed,td,rd,sd,od){var ld,cd=0,ud=null,_d=!1,yd=!1,gd=ed!==-1,Ed=-1,Td=isPlainSafeFirst(codePointAt(Ra,0))&&isPlainSafeLast(codePointAt(Ra,Ra.length-1));if(qa||sd)for(ld=0;ld<Ra.length;cd>=65536?ld+=2:ld++){if(cd=codePointAt(Ra,ld),!isPrintable(cd))return STYLE_DOUBLE;Td=Td&&isPlainSafe(cd,ud,od),ud=cd}else{for(ld=0;ld<Ra.length;cd>=65536?ld+=2:ld++){if(cd=codePointAt(Ra,ld),cd===CHAR_LINE_FEED)_d=!0,gd&&(yd=yd||ld-Ed-1>ed&&Ra[Ed+1]!==" ",Ed=ld);else if(!isPrintable(cd))return STYLE_DOUBLE;Td=Td&&isPlainSafe(cd,ud,od),ud=cd}yd=yd||gd&&ld-Ed-1>ed&&Ra[Ed+1]!==" "}return!_d&&!yd?Td&&!sd&&!td(Ra)?STYLE_PLAIN:rd===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:Ja>9&&needIndentIndicator(Ra)?STYLE_DOUBLE:sd?rd===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:yd?STYLE_FOLDED:STYLE_LITERAL}__name(chooseScalarStyle,"chooseScalarStyle");function writeScalar(Ra,qa,Ja,ed,td){Ra.dump=function(){if(qa.length===0)return Ra.quotingType===QUOTING_TYPE_DOUBLE?'""':"''";if(!Ra.noCompatMode&&(DEPRECATED_BOOLEANS_SYNTAX.indexOf(qa)!==-1||DEPRECATED_BASE60_SYNTAX.test(qa)))return Ra.quotingType===QUOTING_TYPE_DOUBLE?'"'+qa+'"':"'"+qa+"'";var rd=Ra.indent*Math.max(1,Ja),sd=Ra.lineWidth===-1?-1:Math.max(Math.min(Ra.lineWidth,40),Ra.lineWidth-rd),od=ed||Ra.flowLevel>-1&&Ja>=Ra.flowLevel;function ld(cd){return testImplicitResolving(Ra,cd)}switch(__name(ld,"testAmbiguity"),chooseScalarStyle(qa,od,Ra.indent,sd,ld,Ra.quotingType,Ra.forceQuotes&&!ed,td)){case STYLE_PLAIN:return qa;case STYLE_SINGLE:return"'"+qa.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(qa,rd));case STYLE_FOLDED:return">"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(foldString(qa,sd),rd));case STYLE_DOUBLE:return'"'+escapeString(qa)+'"';defaul
`,td=ed&&(Ra[Ra.length-2]===`
`||Ra===`
`),rd=td?"+":ed?"":"-";return Ja+rd+`
`}__name(blockHeader,"blockHeader");function dropEndingNewline(Ra){return Ra[Ra.length-1]===`
`?Ra.slice(0,-1):Ra}__name(dropEndingNewline,"dropEndingNewline");function foldString(Ra,qa){for(var Ja=/(\n+)([^\n]*)/g,ed=function(){var cd=Ra.indexOf(`
`);return cd=cd!==-1?cd:Ra.length,Ja.lastIndex=cd,foldLine(Ra.slice(0,cd),qa)}(),td=Ra[0]===`
`||Ra[0]===" ",rd,sd;sd=Ja.exec(Ra);){var od=sd[1],ld=sd[2];rd=ld[0]===" ",ed+=od+(!td&&!rd&&ld!==""?`
`:"")+foldLine(ld,qa),td=rd}return ed}__name(foldString,"foldString");function foldLine(Ra,qa){if(Ra===""||Ra[0]===" ")return Ra;for(var Ja=/ [^ ]/g,ed,td=0,rd,sd=0,od=0,ld="";ed=Ja.exec(Ra);)od=ed.index,od-td>qa&&(rd=sd>td?sd:od,ld+=`
`+Ra.slice(td,rd),td=rd+1),sd=od;return ld+=`
`,Ra.length-td>qa&&sd>td?ld+=Ra.slice(td,sd)+`
`+Ra.slice(sd+1):ld+=Ra.slice(td),ld.slice(1)}__name(foldLine,"foldLine");function escapeString(Ra){for(var qa="",Ja=0,ed,td=0;td<Ra.length;Ja>=65536?td+=2:td++)Ja=codePointAt(Ra,td),ed=ESCAPE_SEQUENCES[Ja],!ed&&isPrintable(Ja)?(qa+=Ra[td],Ja>=65536&&(qa+=Ra[td+1])):qa+=ed||encodeHex(Ja);return qa}__name(escapeString,"escapeString");function writeFlowSequence(Ra,qa,Ja){var ed="",td=Ra.tag,rd,sd,od;for(rd=0,sd=Ja.length;rd<sd;rd+=1)od=Ja[rd],Ra.replacer&&(od=Ra.replacer.call(Ja,String(rd),od)),(writeNode(Ra,qa,od,!1,!1)||typeof od>"u"&&writeNode(Ra,qa,null,!1,!1))&&(ed!==""&&(ed+=","+(Ra.condenseFlow?"":" ")),ed+=Ra.dump);Ra.tag=td,Ra.dump="["+ed+"]"}__name(writeFlowSequence,"writeFlowSequence");function writeBlockSequence(Ra,qa,Ja,ed){var td="",rd=Ra.tag,sd,od,ld;for(sd=0,od=Ja.length;sd<od;sd+=1)ld=Ja[sd],Ra.replacer&&(ld=Ra.replacer.call(Ja,String(sd),ld)),(writeNode(Ra,qa+1,ld,!0,!0,!1,!0)||typeof ld>"u"&&writeNode(Ra,qa+1,null,!0,!0,!1,!0))&&((!ed||td!=="")&&(td+=generateNextLine(Ra,qa)),Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?td+="-":td+="- ",td+=Ra.dump);Ra.tag=rd,Ra.dump=td||"[]"}__name(writeBlockSequence,"writeBlockSequence");function writeFlowMapping(Ra,qa,Ja){var ed="",td=Ra.tag,rd=Object.keys(Ja),sd,od,ld,cd,ud;for(sd=0,od=rd.length;sd<od;sd+=1)ud="",ed!==""&&(ud+=", "),Ra.condenseFlow&&(ud+='"'),ld=rd[sd],cd=Ja[ld],Ra.replacer&&(cd=Ra.replacer.call(Ja,ld,cd)),writeNode(Ra,qa,ld,!1,!1)&&(Ra.dump.length>1024&&(ud+="? "),ud+=Ra.dump+(Ra.condenseFlow?'"':"")+":"+(Ra.condenseFlow?"":" "),writeNode(Ra,qa,cd,!1,!1)&&(ud+=Ra.dump,ed+=ud));Ra.tag=td,Ra.dump="{"+ed+"}"}__name(writeFlowMapping,"writeFlowMapping");function writeBlockMapping(Ra,qa,Ja,ed){var td="",rd=Ra.tag,sd=Object.keys(Ja),od,ld,cd,ud,_d,yd;if(Ra.sortKeys===!0)sd.sort();else if(typeof Ra.sortKeys=="function")sd.sort(Ra.sortKeys);else if(Ra.sortKeys)throw new exception("sortKeys must be a boolean or a function");for(od=0,ld=sd.length;od<ld;od+=1)yd="",(!ed||td!=="")&&(yd+=generateNextLine(Ra,qa)),cd=sd[od],ud=Ja[cd],Ra.replacer&&(ud=Ra.replacer.call(Ja,cd,ud)),writeNode(Ra,qa+1,cd,!0,!0,!0)&&(_d=Ra.tag!==null&&Ra.tag!=="?"||Ra.dump&&Ra.dump.length>1024,_d&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?yd+="?":yd+="? "),yd+=Ra.dump,_d&&(yd+=generateNextLine(Ra,qa)),writeNode(Ra,qa+1,ud,!0,_d)&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?yd+=":":yd+=": ",yd+=Ra.dump,td+=yd));Ra.tag=rd,Ra.dump=td||"{}"}__name(writeBlockMapping,"writeBlockMapping");function detectType2(Ra,qa,Ja){var ed,td,rd,sd,od,ld;for(td=Ja?Ra.explicitTypes:Ra.implicitTypes,rd=0,sd=td.length;rd<sd;rd+=1)if(od=td[rd],(od.instanceOf||od.predicate)&&(!od.instanceOf||typeof qa=="object"&&qa instanceof od.instanceOf)&&(!od.predicate||od.predicate(qa))){if(Ja?od.multi&&od.representName?Ra.tag=od.representName(qa):Ra.tag=od.tag:Ra.tag="?",od.represent){if(ld=Ra.styleMap[od.tag]||od.defaultStyle,_toString.call(od.represent)==="[object Function]")ed=od.represent(qa,ld);else if(_hasOwnProperty.call(od.represent,ld))ed=od.represent[ld](qa,ld);else throw new exception("!<"+od.tag+'> tag resolver accepts not "'+ld+'" style');Ra.dump=ed}return!0}return!1}__name(detectType2,"detectType");function writeNode(Ra,qa,Ja,ed,td,rd,sd){Ra.tag=null,Ra.dump=Ja,detectType2(Ra,Ja,!1)||detectType2(Ra,Ja,!0);var od=_toString.call(Ra.dump),ld=ed,cd;ed&&(ed=Ra.flowLevel<0||Ra.flowLevel>qa);var ud=od==="[object Object]"||od==="[object Array]",_d,yd;if(ud&&(_d=Ra.duplicates.indexOf(Ja),yd=_d!==-1),(Ra.tag!==null&&Ra.tag!=="?"||yd||Ra.indent!==2&&qa>0)&&(td=!1),yd&&Ra.usedDuplicates[_d])Ra.dump="*ref_"+_d;else{if(ud&&yd&&!Ra.usedDuplicates[_d]&&(Ra.usedDuplicates[_d]=!0),od==="[object Object]")ed&&Object.keys(Ra.dump).length!==0?(writeBlockMapping(Ra,qa,Ra.dump,td),yd&&(Ra.dump="&ref_"+_d+Ra.dump)):(writeFlowMapping(Ra,qa,Ra.dump),yd&&(Ra.dump="&ref_"+_d+" "+Ra.dump));else if(od==="[object Array]")ed&&Ra.dump.length!==0?(Ra.noArrayIndent&&!sd&&qa>0?writeBlockSequence(Ra,qa-1,Ra.dump,td):writeBlockSequence(Ra,qa,Ra.dump,td),yd&&(Ra.dump="&ref_"+_d+Ra.dump)):(writeFlowSequence(Ra,qa,Ra.dump),yd&&(Ra.dump="
`:""}__name(dump$1,"dump$1");function renamed(Ra,qa){return function(){throw new Error("Function yaml."+Ra+" is removed in js-yaml 4. Use yaml."+qa+" instead, which is now safe by default.")}}__name(renamed,"renamed");var JSON_SCHEMA=json,load$2=loader25.load;function extractFrontMatter(Ra){const qa=Ra.match(frontMatterRegex);if(!qa)return{text:Ra,metadata:{}};let Ja=load$2(qa[1],{schema:JSON_SCHEMA})??{};Ja=typeof Ja=="object"&&!Array.isArray(Ja)?Ja:{};const ed={};return Ja.displayMode&&(ed.displayMode=Ja.displayMode.toString()),Ja.title&&(ed.title=Ja.title.toString()),Ja.config&&(ed.config=Ja.config),{text:Ra.slice(qa[0].length),metadata:ed}}__name(extractFrontMatter,"extractFrontMatter");var cleanupText=__name(Ra=>Ra.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(qa,Ja,ed)=>"<"+Ja+ed.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),processFrontmatter=__name(Ra=>{const{text:qa,metadata:Ja}=extractFrontMatter(Ra),{displayMode:ed,title:td,config:rd={}}=Ja;return ed&&(rd.gantt||(rd.gantt={}),rd.gantt.displayMode=ed),{title:td,config:rd,text:qa}},"processFrontmatter"),processDirectives=__name(Ra=>{const qa=utils_default.detectInit(Ra)??{},Ja=utils_default.detectDirective(Ra,"wrap");return Array.isArray(Ja)?qa.wrap=Ja.some(({type:ed})=>ed==="wrap"):(Ja==null?void 0:Ja.type)==="wrap"&&(qa.wrap=!0),{text:removeDirectives(Ra),directive:qa}},"processDirectives");function preprocessDiagram(Ra){const qa=cleanupText(Ra),Ja=processFrontmatter(qa),ed=processDirectives(Ja.text),td=cleanAndMerge(Ja.config,ed.directive);return Ra=cleanupComments(ed.text),{code:Ra,title:Ja.title,config:td}}__name(preprocessDiagram,"preprocessDiagram");function toBase64$1(Ra){const qa=new TextEncoder().encode(Ra),Ja=Array.from(qa,ed=>String.fromCodePoint(ed)).join("");return btoa(Ja)}__name(toBase64$1,"toBase64");var MAX_TEXTLENGTH=5e4,MAX_TEXTLENGTH_EXCEEDED_MSG="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",SECURITY_LVL_SANDBOX="sandbox",SECURITY_LVL_LOOSE="loose",XMLNS_SVG_STD="http://www.w3.org/2000/svg",XMLNS_XLINK_STD="http://www.w3.org/1999/xlink",XMLNS_XHTML_STD="http://www.w3.org/1999/xhtml",IFRAME_WIDTH="100%",IFRAME_HEIGHT="100%",IFRAME_STYLES="border:0;margin:0;",IFRAME_BODY_STYLE="margin:0",IFRAME_SANDBOX_OPTS="allow-top-navigation-by-user-activation allow-popups",IFRAME_NOT_SUPPORTED_MSG='The "iframe" tag is not supported by your browser.',DOMPURIFY_TAGS=["foreignobject"],DOMPURIFY_ATTR=["dominant-baseline"];function processAndSetConfigs(Ra){const qa=preprocessDiagram(Ra);return reset(),addDirective(qa.config??{}),qa}__name(processAndSetConfigs,"processAndSetConfigs");async function parse$4(Ra,qa){addDiagrams();try{const{code:Ja}=processAndSetConfigs(Ra);return{diagramType:(await getDiagramFromText(Ja)).type}}catch(Ja){if(qa!=null&&qa.suppressErrors)return!1;throw Ja}}__name(parse$4,"parse");var cssImportantStyles=__name((Ra,qa,Ja=[])=>`
.${Ra} ${qa} { ${Ja.join(" !important; ")} !important; }`,"cssImportantStyles"),createCssStyles=__name((Ra,qa=new Map)=>{var ed;let Ja="";if(Ra.themeCSS!==void 0&&(Ja+=`
${Ra.themeCSS}`),Ra.fontFamily!==void 0&&(Ja+=`
:root { --mermaid-font-family: ${Ra.fontFamily}}`),Ra.altFontFamily!==void 0&&(Ja+=`
:root { --mermaid-alt-font-family: ${Ra.altFontFamily}}`),qa instanceof Map){const od=Ra.htmlLabels??((ed=Ra.flowchart)==null?void 0:ed.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];qa.forEach(ld=>{isEmpty$1(ld.styles)||od.forEach(cd=>{Ja+=cssImportantStyles(ld.id,cd,ld.styles)}),isEmpty$1(ld.textStyles)||(Ja+=cssImportantStyles(ld.id,"tspan",((ld==null?void 0:ld.textStyles)||[]).map(cd=>cd.replace("color","fill"))))})}return Ja},"createCssStyles"),createUserStyles=__name((Ra,qa,Ja,ed)=>{const td=createCssStyles(Ra,Ja),rd=styles_default(qa,td,Ra.themeVariables);return serialize(compile$2(`${ed}{${rd}}`),stringify$4)},"createUserStyles"),cleanUpSvgCode=__name((Ra="",qa,Ja)=>{let ed=Ra;return!Ja&&!qa&&(ed=ed.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),ed=decodeEntities(ed),ed=ed.replace(/<br>/g,"<br/>"),ed},"cleanUpSvgCode"),putIntoIFrame=__name((Ra="",qa)=>{var td,rd;const Ja=(rd=(td=qa==null?void 0:qa.viewBox)==null?void 0:td.baseVal)!=null&&rd.height?qa.viewBox.baseVal.height+"px":IFRAME_HEIGHT,ed=toBase64$1(`<body style="${IFRAME_BODY_STYLE}">${Ra}</body>`);return`<iframe style="width:${IFRAME_WIDTH};height:${Ja};${IFRAME_STYLES}" src="data:text/html;charset=UTF-8;base64,${ed}" sandbox="${IFRAME_SANDBOX_OPTS}">
${IFRAME_NOT_SUPPORTED_MSG}
</iframe>`},"putIntoIFrame"),appendDivSvgG=__name((Ra,qa,Ja,ed,td)=>{const rd=Ra.append("div");rd.attr("id",Ja),ed&&rd.attr("style",ed);const sd=rd.append("svg").attr("id",qa).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return td&&sd.attr("xmlns:xlink",td),sd.append("g"),Ra},"appendDivSvgG");function sandboxedIframe(Ra,qa){return Ra.append("iframe").attr("id",qa).attr("style","width: 100%; height: 100%;").attr("sandbox","")}__name(sandboxedIframe,"sandboxedIframe");var removeExistingElements=__name((Ra,qa,Ja,ed)=>{var td,rd,sd;(td=Ra.getElementById(qa))==null||td.remove(),(rd=Ra.getElementById(Ja))==null||rd.remove(),(sd=Ra.getElementById(ed))==null||sd.remove()},"removeExistingElements"),render=__name(async function(Ra,qa,Ja){var Jd,Zd,pf,Xd,hf,mf;addDiagrams();const ed=processAndSetConfigs(qa);qa=ed.code;const td=getConfig$1();log$1.debug(td),qa.length>((td==null?void 0:td.maxTextSize)??MAX_TEXTLENGTH)&&(qa=MAX_TEXTLENGTH_EXCEEDED_MSG);const rd="#"+Ra,sd="i"+Ra,od="#"+sd,ld="d"+Ra,cd="#"+ld,ud=__name(()=>{const Lf=select(yd?od:cd).node();Lf&&"remove"in Lf&&Lf.remove()},"removeTempElements");let _d=select("body");const yd=td.securityLevel===SECURITY_LVL_SANDBOX,gd=td.securityLevel===SECURITY_LVL_LOOSE,Ed=td.fontFamily;if(Ja!==void 0){if(Ja&&(Ja.innerHTML=""),yd){const xf=sandboxedIframe(select(Ja),sd);_d=select(xf.nodes()[0].contentDocument.body),_d.node().style.margin=0}else _d=select(Ja);appendDivSvgG(_d,Ra,ld,`font-family: ${Ed}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,Ra,ld,sd),yd){const xf=sandboxedIframe(select("body"),sd);_d=select(xf.nodes()[0].contentDocument.body),_d.node().style.margin=0}else _d=select("body");appendDivSvgG(_d,Ra,ld)}let Td,kd;try{Td=await Diagram.fromText(qa,{title:ed.title})}catch(xf){if(td.suppressErrorRendering)throw ud(),xf;Td=await Diagram.fromText("error"),kd=xf}const Rd=_d.select(cd).node(),Nd=Td.type,Id=Rd.firstChild,Md=Id.firstChild,Ld=(Zd=(Jd=Td.renderer).getClasses)==null?void 0:Zd.call(Jd,qa,Td),Pd=createUserStyles(td,Nd,Ld,rd),qd=document.createElement("style");qd.innerHTML=Pd,Id.insertBefore(qd,Md);try{await Td.renderer.draw(qa,Ra,version,Td)}catch(xf){throw td.suppressErrorRendering?ud():errorRenderer_default.draw(qa,Ra,version),xf}const Yd=_d.select(`${cd} svg`),Ud=(Xd=(pf=Td.db).getAccTitle)==null?void 0:Xd.call(pf),Hd=(mf=(hf=Td.db).getAccDescription)==null?void 0:mf.call(hf);addA11yInfo(Nd,Yd,Ud,Hd),_d.select(`[id="${Ra}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let Vd=_d.select(cd).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",td.arrowMarkerAbsolute),Vd=cleanUpSvgCode(Vd,yd,evaluate(td.arrowMarkerAbsolute)),yd){const xf=_d.select(cd+" svg").node();Vd=putIntoIFrame(Vd,xf)}else gd||(Vd=purify.sanitize(Vd,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(attachFunctions(),kd)throw kd;return ud(),{diagramType:Nd,svg:Vd,bindFunctions:Td.db.bindFunctions}},"render");function initialize(Ra={}){var ed;const qa=assignWithDepth_default({},Ra);qa!=null&&qa.fontFamily&&!((ed=qa.themeVariables)!=null&&ed.fontFamily)&&(qa.themeVariables||(qa.themeVariables={}),qa.themeVariables.fontFamily=qa.fontFamily),saveConfigFromInitialize(qa),qa!=null&&qa.theme&&qa.theme in themes_default?qa.themeVariables=themes_default[qa.theme].getThemeVariables(qa.themeVariables):qa&&(qa.themeVariables=themes_default.default.getThemeVariables(qa.themeVariables));const Ja=typeof qa=="object"?setSiteConfig(qa):getSiteConfig();setLogLevel(Ja.logLevel),addDiagrams()}__name(initialize,"initialize");var getDiagramFromText=__name((Ra,qa={})=>{const{code:Ja}=preprocessDiagram(Ra);return Diagram.fromText(Ja,qa)},"getDiagramFromText");function addA11yInfo(Ra,qa,Ja,ed){setA11yDiagramInfo(qa,Ra),addSVGa11yTitleDescription(qa,Ja,ed,qa.attr("id"))}__name(addA11yInfo,"addA11yInfo");var mermaidAPI=Object.freeze({render,parse:parse$4,getDiagramFromText,initialize,getConfig:getConfig$1,setConfig,getSiteConfig,updateSiteConfig,reset:__name(()=>{reset()},"reset"),globalReset:__name(()=>{reset(defaultConfig)},"globalReset"),defaultConfig});setLogLevel(getConfig$1()
* Wait for document loaded before starting the execution
*//*! Bundled license information:
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/marked$1.use(markedKatex({throwOnError:!1,output:"html",nonStandard:!0}));function buildTheme({theme:Ra,fonts:qa,size:Ja}){const ed=toMerged(Ra.base,{"font-family":qa,"font-size":Ja}),td=rd=>Object.fromEntries(Object.entries(rd).map(([sd,od])=>[sd,toMerged(ed,od)]));return{...td(Ra.inline),...td(Ra.block)}}function buildAddition(){return`
<style>
.preview-wrapper pre::before {
position: absolute;
top: 0;
right: 0;
color: #ccc;
text-align: center;
font-size: 0.8em;
padding: 5px 10px 0;
line-height: 15px;
height: 15px;
font-weight: 600;
}
</style>
`}function getStyles(Ra,qa,Ja=""){const ed=Ra[qa];return ed?`style="${Object.entries(ed).map(([rd,sd])=>`${rd}:${sd}`).join(";")}${Ja}"`:""}function buildFootnoteArray(Ra){return Ra.map(([qa,Ja,ed])=>ed===Ja?`<code style="font-size: 90%; opacity: 0.6;">[${qa}]</code>: <i style="word-break: break-all">${Ja}</i><br/>`:`<code style="font-size: 90%; opacity: 0.6;">[${qa}]</code> ${Ja}: <i style="word-break: break-all">${ed}</i><br/>`).join(`
`)}function transform$1(Ra,qa,Ja){const ed=Ra.split("-");for(const td of ed){if(td==="alt"&&qa)return qa;if(td==="title"&&Ja)return Ja}return""}function initRenderer(Ra){const qa=[];let Ja=0,ed=buildTheme(Ra),td=0,rd=0,sd=!1;function od(Ed,Td=""){return getStyles(ed,Ed,Td)}function ld(Ed,Td,kd){if(!Td)return"";const Rd=kd??Ed;return`<${Rd} ${od(Ed)}>${Td}</${Rd}>`}function cd(Ed,Td){return qa.push([++Ja,Ed,Td]),Ja}function ud(Ed){qa.length=0,Ja=0,_d(Ed)}function _d(Ed){Ra={...Ra,...Ed},ed=buildTheme(Ra)}const yd=()=>qa.length?ld("h4","引用链接")+ld("footnotes",buildFootnoteArray(qa),"p"):"",gd={heading({tokens:Ed,depth:Td}){const kd=this.parser.parseInline(Ed),Rd=`h${Td}`;return ld(Rd,kd)},paragraph({tokens:Ed}){const Td=this.parser.parseInline(Ed),kd=Td.includes("<figure")&&Td.includes("<img"),Rd=Td.trim()==="";return kd||Rd?Td:ld("p",Td)},blockquote({tokens:Ed}){let Td=this.parser.parse(Ed);return Td=Td.replace(/<p.*?>/g,`<p ${od("blockquote_p")}>`),ld("blockquote",Td)},code({text:Ed,lang:Td=""}){if(Td.startsWith("mermaid"))return clearTimeout(td),td=setTimeout(()=>{mermaid_default.run()},0),`<pre class="mermaid">${Ed}</pre>`;const kd=Td.split(" ")[0],Rd=HighlightJS.getLanguage(kd)?kd:"plaintext";let Nd=HighlightJS.highlight(Ed,{language:Rd}).value;return Nd=Nd.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>").replace(/(>[^<]+)|(^[^<]+)/g,Id=>Id.replace(/\s/g,"&nbsp;")),`<pre class="hljs code__pre" ${od("code_pre")}><code class="language-${Td}" ${od("code")}>${Nd}</code></pre>`},codespan({text:Ed}){return ld("codespan",Ed,"code")},listitem(Ed){const Td=sd?`${rd+1}. `:" ",kd=Ed.tokens.map(Rd=>this[Rd.type](Rd)).join("");return ld("listitem",`${Td}${kd}`,"li")},list({ordered:Ed,items:Td}){const kd=[];for(let Nd=0;Nd<Td.length;Nd++){sd=Ed,rd=Nd;const Id=Td[Nd];kd.push(this.listitem(Id))}return ld(Ed?"ol":"ul",kd.join(""))},image({href:Ed,title:Td,text:kd}){const Rd=ld("figcaption",transform$1(Ra.legend,kd,Td)),Nd=od("figure"),Id=od("image");return`<figure ${Nd}><img ${Id} src="${Ed}" title="${Td}" alt="${kd}"/>${Rd}</figure>`},link({href:Ed,title:Td,text:kd}){if(Ed.startsWith("https://mp.weixin.qq.com"))return`<a href="${Ed}" title="${Td||kd}" ${od("wx_link")}>${kd}</a>`;if(Ed===kd)return kd;if(Ra.status){const Rd=cd(Td||kd,Ed);return`<span ${od("link")}>${kd}<sup>[${Rd}]</sup></span>`}return ld("link",kd,"span")},strong({tokens:Ed}){return ld("strong",this.parser.parseInline(Ed))},em({tokens:Ed}){return ld("em",this.parser.parseInline(Ed),"span")},table({header:Ed,rows:Td}){const kd=Ed.map(Nd=>this.tablecell(Nd)).join(""),Rd=Td.map(Nd=>{const Id=Nd.map(Md=>this.tablecell(Md)).join("");return ld("tr",Id)}).join("");return`
<section style="padding:0 8px; max-width: 100%; overflow: auto">
<table class="preview-table">
<thead ${od("thead")}>${kd}</thead>
<tbody>${Rd}</tbody>
</table>
</section>
`},tablecell(Ed){const Td=this.parser.parseInline(Ed.tokens);return ld("td",Td)},hr(){return ld("hr","")}};return marked$1.use({renderer:gd}),{buildAddition,buildFootnotes:yd,setOptions:_d,reset:ud}}const DEFAULT_CONTENT=`# 探索 Markdown 的奇妙世界
欢迎来到 Markdown 的奇妙世界无论你是写作爱好者开发者博主还是想要简单记录点什么的人Markdown 都能成为你新的好伙伴它不仅让写作变得简单明了还能轻松地将内容转化为漂亮的网页格式今天我们将全面探讨 Markdown 的基础和进阶语法让你在这个过程中充分享受写作的乐趣
Markdown 是一种轻量级标记语言用于格式化纯文本它以简单直观的语法而著称可以快速地生成 HTMLMarkdown 是写作与代码的完美结合既简单又强大
## Markdown 基础语法
### 1. 标题让你的内容层次分明
\`#\` 号来创建标题。标题从 \`#\` 开始,我们最多支持 4 个 \`#\` 号,对应 4 级标题。
\`\`\`markdown
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
\`\`\`
以上代码将渲染出一组层次分明的标题使你的文章井井有条
> 标准 Markdown 支持 1 ~ 6 级标题此编辑器也不例外不过我们只准备了四个级别样式同时也是不推荐文章超过四级标题
### 2. 段落与换行自然流畅
Markdown 中的段落就是一行接一行的文本要创建新段落只需在两行文本之间空一行
### 3. 字体样式强调你的文字
- **粗体**用两个星号或下划线包裹文字 \`**粗体**\`\`__粗体__\`
- _斜体_用一个星号或下划线包裹文字 \`*斜体*\`\`_斜体_\`
- ~~删除线~~用两个波浪线包裹文字 \`~~删除线~~\`
这些简单的标记可以让你的内容更有层次感和重点突出
### 4. 列表整洁有序
- **无序列表** \`-\`\`*\`\`+\` 加空格开始一行。
- **有序列表**使用数字加点号\`1.\`\`2.\`)开始一行。
在列表中嵌套其他内容只需缩进即可实现嵌套效果
- 无序列表项 1
1. 嵌套有序列表项 1
2. 嵌套有序列表项 2
- 无序列表项 2
1. 有序列表项 1
2. 有序列表项 2
### 5. 链接与图片丰富内容
- **链接**用方括号和圆括号创建链接 \`[显示文本](链接地址)\`
- **图片**和链接类似只需在前面加上 \`!\`,如 \`![描述文本](图片链接)\`
[访问 Doocs](https://github.com/doocs)
![doocs](https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/logo-2.png)
轻松实现富媒体内容展示
> 因微信公众号平台不支持除公众号文章以外的链接故其他平台的链接会呈现链接色泽但不能点击
> 对于这些链接请注意明文书写或点击左上角格式->微信外链接转底部引用开启引用这样就可以在底部观察到链接指向
### 6. 引用引用名言或引人深思的句子
使用 \`>\` 来创建引用,只需在文本前面加上它。多层引用?在前一层 \`>\` 后再加一个就行。
> 这是一个引用
>
> > 这是一个嵌套引用
这让你的引用更加富有层次感
### 7. 代码块展示你的代码
- **行内代码**用反引号包裹 \`code\`
- **代码块**用三个反引号包裹并指定语言
\`\`\`js
console.log("Hello, Doocs!");
\`\`\`
语法高亮让你的代码更易读
### 8. 分割线分割内容
用三个或更多的 \`-\`\`*\`\`_\` 来创建分割线。
---
为你的内容添加视觉分隔
### 9. 表格清晰展示数据
Markdown 支持简单的表格 \`|\`\`-\` 分隔单元格和表头。
| 项目人员 | 邮箱 | 微信号 |
| ------------------------------------------- | ---------------------- | ------------ |
| [yanglbme](https://github.com/yanglbme) | contact@yanglibin.info | YLB0109 |
| [YangFong](https://github.com/YangFong) | yangfong2022@gmail.com | yq2419731931 |
| [thinkasany](https://github.com/thinkasany) | thinkasany@gmail.com | thinkasany |
这样的表格让数据展示更为清爽
> 手动编写标记太麻烦我们提供了便捷方式左上方点击编辑->插入表格即可快速实现表格渲染
## Markdown 进阶技巧
### 1. LaTeX 公式完美展示数学表达式
Markdown 允许嵌入 LaTeX 语法展示数学公式
- **行内公式** \`$\` 包裹公式,如 $E = mc^2$
- **块级公式** \`$$\` 包裹公式,如:
$$
\\begin{aligned}
d_{i, j} &\\leftarrow d_{i, j} + 1 \\\\
d_{i, y + 1} &\\leftarrow d_{i, y + 1} - 1 \\\\
d_{x + 1, j} &\\leftarrow d_{x + 1, j} - 1 \\\\
d_{x + 1, y + 1} &\\leftarrow d_{x + 1, y + 1} + 1
\\end{aligned}
$$
这是展示复杂数学表达的利器
### 2. Mermaid 流程图可视化流程
Mermaid 是强大的可视化工具可以在 Markdown 中创建流程图时序图等
\`\`\`mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
\`\`\`
\`\`\`mermaid
pie
title Key elements in Product X
"Calcium" : 42.96
"Potassium" : 50.05
"Magnesium" : 10.01
"Iron" : 5
\`\`\`
\`\`\`mermaid
pie
title 为什么总是宅在家里
"喜欢宅" : 45
"天气太热" : 70
"穷" : 500
"没人约" : 95
\`\`\`
这种方式不仅能直观展示流程还能提升文档的专业性
> 更多用法参见[Mermaid User Guide](https://mermaid.js.org/intro/getting-started.html)。
## 结语
Markdown 是一种简单强大且易于掌握的标记语言通过学习基础和进阶语法你可以快速创作内容并有效传达信息无论是技术文档个人博客还是项目说明Markdown 都是你的得力助手希望这篇文章能够带你全面了解 Markdown 的潜力让你的写作更加丰富多彩
现在拿起 Markdown 编辑器开始创作吧探索 Markdown 的世界你会发现它远比想象中更精彩
#### 推荐阅读
- [阿里又一个 20k+ stars 开源项目诞生恭喜 fastjson](https://mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)
- [刷掉 90% 候选人的互联网大厂海量数据面试题附题解 + 方法总结](https://mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)
- [好用期待已久的文本块功能究竟如何在 Java 13 中发挥作用](https://mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)
- [2019 GitHub 开源贡献排行榜新鲜出炉微软谷歌领头阿里跻身前 12](https://mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)
---
<center>
<img src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png" style="width: 100px;">
</center>
`,DEFAULT_CSS_CONTENT=`/**
* Alt/Option + Shift + F 可格式化
* 如需使用主题色请使用 var(--md-primary-color) 代替颜色值
* color: var(--md-primary-color);
*
* 召集令如果你有好看的主题样式欢迎分享让更多人能够使用到你的主题
* 提交区https://github.com/doocs/md/issues/363
*/
/* 一级标题样式 */
h1 {
}
/* 二级标题样式 */
h2 {
}
/* 三级标题样式 */
h3 {
}
/* 四级标题样式 */
h4 {
}
/* 图片样式 */
image {
}
/* 引用样式 */
blockquote {
}
/* 引用段落样式 */
blockquote_p {
}
/* 段落样式 */
p {
}
/* 分割线样式 */
hr {
}
/* 行内代码样式 */
codespan {
}
/* 粗体样式 */
strong {
}
/* 链接样式 */
link {
}
/* 微信链接样式 */
wx_link {
}
/* 有序列表样式 */
ol {
}
/* 无序列表样式 */
ul {
}
/* 列表项样式 */
li {
}
/* 代码块样式 */
code {
}
`;var cheerio$2={exports:{}},lib$e={},extendStatics=function(Ra,qa){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ja,ed){Ja.__proto__=ed}||function(Ja,ed){for(var td in ed)Object.prototype.hasOwnProperty.call(ed,td)&&(Ja[td]=ed[td])},extendStatics(Ra,qa)};function __extends$4(Ra,qa){if(typeof qa!="function"&&qa!==null)throw new TypeError("Class extends value "+String(qa)+" is not a constructor or null");extendStatics(Ra,qa);function Ja(){this.constructor=Ra}Ra.prototype=qa===null?Object.create(qa):(Ja.prototype=qa.prototype,new Ja)}var __assign$7=function(){return __assign$7=Object.assign||function(qa){for(var Ja,ed=1,td=arguments.length;ed<td;ed++){Ja=arguments[ed];for(var rd in Ja)Object.prototype.hasOwnProperty.call(Ja,rd)&&(qa[rd]=Ja[rd])}return qa},__assign$7.apply(this,arguments)};function __rest$1(Ra,qa){var Ja={};for(var ed in Ra)Object.prototype.hasOwnProperty.call(Ra,ed)&&qa.indexOf(ed)<0&&(Ja[ed]=Ra[ed]);if(Ra!=null&&typeof Object.getOwnPropertySymbols=="function")for(var td=0,ed=Object.getOwnPropertySymbols(Ra);td<ed.length;td++)qa.indexOf(ed[td])<0&&Object.prototype.propertyIsEnumerable.call(Ra,ed[td])&&(Ja[ed[td]]=Ra[ed[td]]);return Ja}function __decorate(Ra,qa,Ja,ed){var td=arguments.length,rd=td<3?qa:ed===null?ed=Object.getOwnPropertyDescriptor(qa,Ja):ed,sd;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")rd=Reflect.decorate(Ra,qa,Ja,ed);else for(var od=Ra.length-1;od>=0;od--)(sd=Ra[od])&&(rd=(td<3?sd(rd):td>3?sd(qa,Ja,rd):sd(qa,Ja))||rd);return td>3&&rd&&Object.defineProperty(qa,Ja,rd),rd}function __param(Ra,qa){return function(Ja,ed){qa(Ja,ed,Ra)}}function __esDecorate(Ra,qa,Ja,ed,td,rd){function sd(Rd){if(Rd!==void 0&&typeof Rd!="function")throw new TypeError("Function expected");return Rd}for(var od=ed.kind,ld=od==="getter"?"get":od==="setter"?"set":"value",cd=!qa&&Ra?ed.static?Ra:Ra.prototype:null,ud=qa||(cd?Object.getOwnPropertyDescriptor(cd,ed.name):{}),_d,yd=!1,gd=Ja.length-1;gd>=0;gd--){var Ed={};for(var Td in ed)Ed[Td]=Td==="access"?{}:ed[Td];for(var Td in ed.access)Ed.access[Td]=ed.access[Td];Ed.addInitializer=function(Rd){if(yd)throw new TypeError("Cannot add initializers after decoration has completed");rd.push(sd(Rd||null))};var kd=(0,Ja[gd])(od==="accessor"?{get:ud.get,set:ud.set}:ud[ld],Ed);if(od==="accessor"){if(kd===void 0)continue;if(kd===null||typeof kd!="object")throw new TypeError("Object expected");(_d=sd(kd.get))&&(ud.get=_d),(_d=sd(kd.set))&&(ud.set=_d),(_d=sd(kd.init))&&td.unshift(_d)}else(_d=sd(kd))&&(od==="field"?td.unshift(_d):ud[ld]=_d)}cd&&Object.defineProperty(cd,ed.name,ud),yd=!0}function __runInitializers(Ra,qa,Ja){for(var ed=arguments.length>2,td=0;td<qa.length;td++)Ja=ed?qa[td].call(Ra,Ja):qa[td].call(Ra);return ed?Ja:void 0}function __propKey(Ra){return typeof Ra=="symbol"?Ra:"".concat(Ra)}function __setFunctionName(Ra,qa,Ja){return typeof qa=="symbol"&&(qa=qa.description?"[".concat(qa.description,"]"):""),Object.defineProperty(Ra,"name",{configurable:!0,value:Ja?"".concat(Ja," ",qa):qa})}function __metadata(Ra,qa){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Ra,qa)}function __awaiter$8(Ra,qa,Ja,ed){function td(rd){return rd instanceof Ja?rd:new Ja(function(sd){sd(rd)})}return new(Ja||(Ja=Promise))(function(rd,sd){function od(ud){try{cd(ed.next(ud))}catch(_d){sd(_d)}}function ld(ud){try{cd(ed.throw(ud))}catch(_d){sd(_d)}}function cd(ud){ud.done?rd(ud.value):td(ud.value).then(od,ld)}cd((ed=ed.apply(Ra,qa||[])).next())})}function __generator$8(Ra,qa){var Ja={label:0,sent:function(){if(rd[0]&1)throw rd[1];return rd[1]},trys:[],ops:[]},ed,td,rd,sd=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return sd.next=od(0),sd.throw=od(1),sd.return=od(2),typeof Symbol=="function"&&(sd[Symbol.iterator]=function(){return this}),sd;function od(cd){return function(ud){return ld([cd,ud])}}function ld(cd){if(ed)throw new TypeError("Generator is already executing.");for(;sd&&(sd=0,cd[0]&&(Ja=0)),Ja;)try{if(ed=1,td&&(rd=cd[0]&2?td.return:cd[0]?td.throw||((rd=td.return)
`,nexist$1="∄",nexists$1="∄",Nfr$1="𝔑",nfr$1="𝔫",ngE$1="≧̸",nge$1="≱",ngeq$1="≱",ngeqq$1="≧̸",ngeqslant$1="⩾̸",nges$1="⩾̸",nGg$1="⋙̸",ngsim$1="≵",nGt$1="≫⃒",ngt$1="≯",ngtr$1="≯",nGtv$1="≫̸",nharr$1="↮",nhArr$1="⇎",nhpar$1="⫲",ni$6="∋",nis$1="⋼",nisd$1="⋺",niv$1="∋",NJcy$1="Њ",njcy$1="њ",nlarr$1="↚",nlArr$1="⇍",nldr$1="‥",nlE$1="≦̸",nle$1="≰",nleftarrow$1="↚",nLeftarrow$1="⇍",nleftrightarrow$1="↮",nLeftrightarrow$1="⇎",nleq$1="≰",nleqq$1="≦̸",nleqslant$1="⩽̸",nles$1="⩽̸",nless$1="≮",nLl$1="⋘̸",nlsim$1="≴",nLt$1="≪⃒",nlt$1="≮",nltri$1="⋪",nltrie$1="⋬",nLtv$1="≪̸",nmid$1="∤",NoBreak$1="",NonBreakingSpace$1=" ",nopf$1="𝕟",Nopf$1="",Not$1="⫬",not$3="¬",NotCongruent$1="≢",NotCupCap$1="≭",NotDoubleVerticalBar$1="∦",NotElement$1="∉",NotEqual$1="≠",NotEqualTilde$1="≂̸",NotExists$1="∄",NotGreater$1="≯",NotGreaterEqual$1="≱",NotGreaterFullEqual$1="≧̸",NotGreaterGreater$1="≫̸",NotGreaterLess$1="≹",NotGreaterSlantEqual$1="⩾̸",NotGreaterTilde$1="≵",NotHumpDownHump$1="≎̸",NotHumpEqual$1="≏̸",notin$1="∉",notindot$1="⋵̸",notinE$1="⋹̸",notinva$1="∉",notinvb$1="⋷",notinvc$1="⋶",NotLeftTriangleBar$1="⧏̸",NotLeftTriangle$1="⋪",NotLeftTriangleEqual$1="⋬",NotLess$1="≮",NotLessEqual$1="≰",NotLessGreater$1="≸",NotLessLess$1="≪̸",NotLessSlantEqual$1="⩽̸",NotLessTilde$1="≴",NotNestedGreaterGreater$1="⪢̸",NotNestedLessLess$1="⪡̸",notni$1="∌",notniva$1="∌",notnivb$1="⋾",notnivc$1="⋽",NotPrecedes$1="⊀",NotPrecedesEqual$1="⪯̸",NotPrecedesSlantEqual$1="⋠",NotReverseElement$1="∌",NotRightTriangleBar$1="⧐̸",NotRightTriangle$1="⋫",NotRightTriangleEqual$1="⋭",NotSquareSubset$1="⊏̸",NotSquareSubsetEqual$1="⋢",NotSquareSuperset$1="⊐̸",NotSquareSupersetEqual$1="⋣",NotSubset$1="⊂⃒",NotSubsetEqual$1="⊈",NotSucceeds$1="⊁",NotSucceedsEqual$1="⪰̸",NotSucceedsSlantEqual$1="⋡",NotSucceedsTilde$1="≿̸",NotSuperset$1="⊃⃒",NotSupersetEqual$1="⊉",NotTilde$1="≁",NotTildeEqual$1="≄",NotTildeFullEqual$1="≇",NotTildeTilde$1="≉",NotVerticalBar$1="∤",nparallel$1="∦",npar$1="∦",nparsl$1="⫽⃥",npart$1="∂̸",npolint$1="⨔",npr$1="⊀",nprcue$1="⋠",nprec$1="⊀",npreceq$1="⪯̸",npre$1="⪯̸",nrarrc$1="⤳̸",nrarr$1="↛",nrArr$1="⇏",nrarrw$1="↝̸",nrightarrow$1="↛",nRightarrow$1="⇏",nrtri$1="⋫",nrtrie$1="⋭",nsc$1="⊁",nsccue$1="⋡",nsce$1="⪰̸",Nscr$1="𝒩",nscr$1="𝓃",nshortmid$1="∤",nshortparallel$1="∦",nsim$1="≁",nsime$1="≄",nsimeq$1="≄",nsmid$1="∤",nspar$1="∦",nsqsube$1="⋢",nsqsupe$1="⋣",nsub$1="⊄",nsubE$1="⫅̸",nsube$1="⊈",nsubset$1="⊂⃒",nsubseteq$1="⊈",nsubseteqq$1="⫅̸",nsucc$1="⊁",nsucceq$1="⪰̸",nsup$1="⊅",nsupE$1="⫆̸",nsupe$1="⊉",nsupset$1="⊃⃒",nsupseteq$1="⊉",nsupseteqq$1="⫆̸",ntgl$1="≹",Ntilde$3="Ñ",ntilde$3="ñ",ntlg$1="≸",ntriangleleft$1="⋪",ntrianglelefteq$1="⋬",ntriangleright$1="⋫",ntrianglerighteq$1="⋭",Nu$4="Ν",nu$6="ν",num$1="#",numero$1="№",numsp$1="",nvap$1="≍⃒",nvdash$1="⊬",nvDash$1="⊭",nVdash$1="⊮",nVDash$1="⊯",nvge$1="≥⃒",nvgt$1=">⃒",nvHarr$1="⤄",nvinfin$1="⧞",nvlArr$1="⤂",nvle$1="≤⃒",nvlt$1="<⃒",nvltrie$1="⊴⃒",nvrArr$1="⤃",nvrtrie$1="⊵⃒",nvsim$1="∼⃒",nwarhk$1="⤣",nwarr$1="↖",nwArr$1="⇖",nwarrow$1="↖",nwnear$1="⤧",Oacute$3="Ó",oacute$3="ó",oast$1="⊛",Ocirc$3="Ô",ocirc$3="ô",ocir$1="⊚",Ocy$1="О",ocy$1="о",odash$1="⊝",Odblac$1="Ő",odblac$1="ő",odiv$1="⨸",odot$1="⊙",odsold$1="⦼",OElig$1="Œ",oelig$1="œ",ofcir$1="⦿",Ofr$1="𝔒",ofr$1="𝔬",ogon$1="˛",Ograve$3="Ò",ograve$3="ò",ogt$1="⧁",ohbar$1="⦵",ohm$1="Ω",oint$1="∮",olarr$1="↺",olcir$1="⦾",olcross$1="⦻",oline$1="‾",olt$1="⧀",Omacr$1="Ō",omacr$1="ō",Omega$1="Ω",omega$1="ω",Omicron$1="Ο",omicron$1="ο",omid$1="⦶",ominus$1="⊖",Oopf$1="𝕆",oopf$1="𝕠",opar$1="⦷",OpenCurlyDoubleQuote$1="“",OpenCurlyQuote$1="",operp$1="⦹",oplus
`:sd(cd.children):(0,qa.isCDATA)(cd)?sd(cd.children):(0,qa.isText)(cd)?cd.data:""}stringify$2.getText=sd;function od(cd){return Array.isArray(cd)?cd.map(od).join(""):(0,qa.hasChildren)(cd)&&!(0,qa.isComment)(cd)?od(cd.children):(0,qa.isText)(cd)?cd.data:""}stringify$2.textContent=od;function ld(cd){return Array.isArray(cd)?cd.map(ld).join(""):(0,qa.hasChildren)(cd)&&(cd.type===ed.ElementType.Tag||(0,qa.isCDATA)(cd))?ld(cd.children):(0,qa.isText)(cd)?cd.data:""}return stringify$2.innerText=ld,stringify$2}var traversal={},hasRequiredTraversal;function requireTraversal(){if(hasRequiredTraversal)return traversal;hasRequiredTraversal=1,Object.defineProperty(traversal,"__esModule",{value:!0}),traversal.prevElementSibling=traversal.nextElementSibling=traversal.getName=traversal.hasAttrib=traversal.getAttributeValue=traversal.getSiblings=traversal.getParent=traversal.getChildren=void 0;var Ra=requireLib$a(),qa=[];function Ja(ud){var _d;return(_d=ud.children)!==null&&_d!==void 0?_d:qa}traversal.getChildren=Ja;function ed(ud){return ud.parent||null}traversal.getParent=ed;function td(ud){var _d,yd,gd=ed(ud);if(gd!=null)return Ja(gd);for(var Ed=[ud],Td=ud.prev,kd=ud.next;Td!=null;)Ed.unshift(Td),_d=Td,Td=_d.prev;for(;kd!=null;)Ed.push(kd),yd=kd,kd=yd.next;return Ed}traversal.getSiblings=td;function rd(ud,_d){var yd;return(yd=ud.attribs)===null||yd===void 0?void 0:yd[_d]}traversal.getAttributeValue=rd;function sd(ud,_d){return ud.attribs!=null&&Object.prototype.hasOwnProperty.call(ud.attribs,_d)&&ud.attribs[_d]!=null}traversal.hasAttrib=sd;function od(ud){return ud.name}traversal.getName=od;function ld(ud){for(var _d,yd=ud.next;yd!==null&&!(0,Ra.isTag)(yd);)_d=yd,yd=_d.next;return yd}traversal.nextElementSibling=ld;function cd(ud){for(var _d,yd=ud.prev;yd!==null&&!(0,Ra.isTag)(yd);)_d=yd,yd=_d.prev;return yd}return traversal.prevElementSibling=cd,traversal}var manipulation$1={},hasRequiredManipulation$1;function requireManipulation$1(){if(hasRequiredManipulation$1)return manipulation$1;hasRequiredManipulation$1=1,Object.defineProperty(manipulation$1,"__esModule",{value:!0}),manipulation$1.prepend=manipulation$1.prependChild=manipulation$1.append=manipulation$1.appendChild=manipulation$1.replaceElement=manipulation$1.removeElement=void 0;function Ra(sd){if(sd.prev&&(sd.prev.next=sd.next),sd.next&&(sd.next.prev=sd.prev),sd.parent){var od=sd.parent.children;od.splice(od.lastIndexOf(sd),1)}}manipulation$1.removeElement=Ra;function qa(sd,od){var ld=od.prev=sd.prev;ld&&(ld.next=od);var cd=od.next=sd.next;cd&&(cd.prev=od);var ud=od.parent=sd.parent;if(ud){var _d=ud.children;_d[_d.lastIndexOf(sd)]=od}}manipulation$1.replaceElement=qa;function Ja(sd,od){if(Ra(od),od.next=null,od.parent=sd,sd.children.push(od)>1){var ld=sd.children[sd.children.length-2];ld.next=od,od.prev=ld}else od.prev=null}manipulation$1.appendChild=Ja;function ed(sd,od){Ra(od);var ld=sd.parent,cd=sd.next;if(od.next=cd,od.prev=sd,sd.next=od,od.parent=ld,cd){if(cd.prev=od,ld){var ud=ld.children;ud.splice(ud.lastIndexOf(cd),0,od)}}else ld&&ld.children.push(od)}manipulation$1.append=ed;function td(sd,od){if(Ra(od),od.parent=sd,od.prev=null,sd.children.unshift(od)!==1){var ld=sd.children[1];ld.prev=od,od.next=ld}else od.next=null}manipulation$1.prependChild=td;function rd(sd,od){Ra(od);var ld=sd.parent;if(ld){var cd=ld.children;cd.splice(cd.indexOf(sd),0,od)}sd.prev&&(sd.prev.next=od),od.parent=ld,od.prev=sd.prev,od.next=sd,sd.prev=od}return manipulation$1.prepend=rd,manipulation$1}var querying={},hasRequiredQuerying;function requireQuerying(){if(hasRequiredQuerying)return querying;hasRequiredQuerying=1,Object.defineProperty(querying,"__esModule",{value:!0}),querying.findAll=querying.existsOne=querying.findOne=querying.findOneChild=querying.find=querying.filter=void 0;var Ra=requireLib$a();function qa(od,ld,cd,ud){return cd===void 0&&(cd=!0),ud===void 0&&(ud=1/0),Array.isArray(ld)||(ld=[ld]),Ja(od,ld,cd,ud)}querying.filter=qa;function Ja(od,ld,cd,ud){for(var _d=[],yd=0,gd=ld;yd<gd.length;yd++){var Ed=gd[yd];if(od(Ed)&&(_d.push(Ed),--ud<=0))break;if(cd&&(0,Ra.hasChildren)(Ed)&&
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}),aliases}var subselects={},hasRequiredSubselects;function requireSubselects(){return hasRequiredSubselects||(hasRequiredSubselects=1,function(Ra){var qa=commonjsGlobal&&commonjsGlobal.__spreadArray||function(od,ld,cd){if(cd||arguments.length===2)for(var ud=0,_d=ld.length,yd;ud<_d;ud++)(yd||!(ud in ld))&&(yd||(yd=Array.prototype.slice.call(ld,0,ud)),yd[ud]=ld[ud]);return od.concat(yd||Array.prototype.slice.call(ld))};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.subselects=Ra.getNextSiblings=Ra.ensureIsTag=Ra.PLACEHOLDER_ELEMENT=void 0;var Ja=requireBoolbase(),ed=requireProcedure();Ra.PLACEHOLDER_ELEMENT={};function td(od,ld){return od===Ja.falseFunc?Ja.falseFunc:function(cd){return ld.isTag(cd)&&od(cd)}}Ra.ensureIsTag=td;function rd(od,ld){var cd=ld.getSiblings(od);if(cd.length<=1)return[];var ud=cd.indexOf(od);return ud<0||ud===cd.length-1?[]:cd.slice(ud+1).filter(ld.isTag)}Ra.getNextSiblings=rd;var sd=function(od,ld,cd,ud,_d){var yd={xmlMode:!!cd.xmlMode,adapter:cd.adapter,equals:cd.equals},gd=_d(ld,yd,ud);return function(Ed){return gd(Ed)&&od(Ed)}};Ra.subselects={is:sd,matches:sd,where:sd,not:function(od,ld,cd,ud,_d){var yd={xmlMode:!!cd.xmlMode,adapter:cd.adapter,equals:cd.equals},gd=_d(ld,yd,ud);return gd===Ja.falseFunc?od:gd===Ja.trueFunc?Ja.falseFunc:function(Td){return!gd(Td)&&od(Td)}},has:function(od,ld,cd,ud,_d){var yd=cd.adapter,gd={xmlMode:!!cd.xmlMode,adapter:yd,equals:cd.equals},Ed=ld.some(function(Id){return Id.some(ed.isTraversal)})?[Ra.PLACEHOLDER_ELEMENT]:void 0,Td=_d(ld,gd,Ed);if(Td===Ja.falseFunc)return Ja.falseFunc;if(Td===Ja.trueFunc)return function(Id){return yd.getChildren(Id).some(yd.isTag)&&od(Id)};var kd=td(Td,yd),Rd=Td.shouldTestNextSiblings,Nd=Rd===void 0?!1:Rd;return Ed?function(Id){Ed[0]=Id;var Md=yd.getChildren(Id),Ld=Nd?qa(qa([],Md,!0),rd(Id,yd),!0):Md;return od(Id)&&yd.existsOne(kd,Ld)}:function(Id){return od(Id)&&yd.existsOne(kd,yd.getChildren(Id))}}}}(subselects)),subselects}var hasRequiredPseudoSelectors;function requirePseudoSelectors(){return hasRequiredPseudoSelectors||(hasRequiredPseudoSelectors=1,function(Ra){Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.compilePseudoSelector=Ra.aliases=Ra.pseudos=Ra.filters=void 0;var qa=requireBoolbase(),Ja=require$$0$5,ed=requireFilters();Object.defineProperty(Ra,"filters",{enumerable:!0,get:function(){return ed.filters}});var td=requirePseudos();Object.defineProperty(Ra,"pseudos",{enumerable:!0,get:function(){return td.pseudos}});var rd=requireAliases();Object.defineProperty(Ra,"aliases",{enumerable:!0,get:function(){return rd.aliases}});var sd=requireSubselects();function od(ld,cd,ud,_d,yd){var gd=cd.name,Ed=cd.data;if(Array.isArray(Ed))return sd.subselects[gd](ld,Ed,ud,_d,yd);if(gd in rd.aliases){if(Ed!=null)throw new Error("Pseudo ".concat(gd," doesn't have any arguments"));var Td=(0,Ja.parse)(rd.aliases[gd]);return sd.subselects.is(ld,Td,ud,_d,yd)}if(gd in ed.filters)return ed.filters[gd](ld,Ed,ud,_d);if(gd in td.pseudos){var kd=td.pseudos[gd];return(0,td.verifyPseudoArgs)(kd,gd,Ed),kd===qa.falseFunc?qa.falseFunc:ld===qa.trueFunc?function(Rd){return kd(Rd,ud,Ed)}:function(Rd){return kd(Rd,ud,Ed)&&ld(Rd)}}throw new Error("unmatched pseudo-class :".concat(gd))}Ra.compilePseudoSelector=od}(pseudoSelectors)),pseudoSelectors}var hasRequiredGeneral;function requireGeneral(){if(hasRequiredGeneral)return general;hasRequiredGeneral=1,Object.defineProperty(general,"
`,nexist="∄",nexists="∄",Nfr="𝔑",nfr="𝔫",ngE="≧̸",nge="≱",ngeq="≱",ngeqq="≧̸",ngeqslant="⩾̸",nges="⩾̸",nGg="⋙̸",ngsim="≵",nGt="≫⃒",ngt="≯",ngtr="≯",nGtv="≫̸",nharr="↮",nhArr="⇎",nhpar="⫲",ni$5="∋",nis="⋼",nisd="⋺",niv="∋",NJcy="Њ",njcy="њ",nlarr="↚",nlArr="⇍",nldr="‥",nlE="≦̸",nle="≰",nleftarrow="↚",nLeftarrow="⇍",nleftrightarrow="↮",nLeftrightarrow="⇎",nleq="≰",nleqq="≦̸",nleqslant="⩽̸",nles="⩽̸",nless="≮",nLl="⋘̸",nlsim="≴",nLt="≪⃒",nlt="≮",nltri="⋪",nltrie="⋬",nLtv="≪̸",nmid="∤",NoBreak="",NonBreakingSpace=" ",nopf="𝕟",Nopf="",Not="⫬",not$1="¬",NotCongruent="≢",NotCupCap="≭",NotDoubleVerticalBar="∦",NotElement="∉",NotEqual="≠",NotEqualTilde="≂̸",NotExists="∄",NotGreater="≯",NotGreaterEqual="≱",NotGreaterFullEqual="≧̸",NotGreaterGreater="≫̸",NotGreaterLess="≹",NotGreaterSlantEqual="⩾̸",NotGreaterTilde="≵",NotHumpDownHump="≎̸",NotHumpEqual="≏̸",notin="∉",notindot="⋵̸",notinE="⋹̸",notinva="∉",notinvb="⋷",notinvc="⋶",NotLeftTriangleBar="⧏̸",NotLeftTriangle="⋪",NotLeftTriangleEqual="⋬",NotLess="≮",NotLessEqual="≰",NotLessGreater="≸",NotLessLess="≪̸",NotLessSlantEqual="⩽̸",NotLessTilde="≴",NotNestedGreaterGreater="⪢̸",NotNestedLessLess="⪡̸",notni="∌",notniva="∌",notnivb="⋾",notnivc="⋽",NotPrecedes="⊀",NotPrecedesEqual="⪯̸",NotPrecedesSlantEqual="⋠",NotReverseElement="∌",NotRightTriangleBar="⧐̸",NotRightTriangle="⋫",NotRightTriangleEqual="⋭",NotSquareSubset="⊏̸",NotSquareSubsetEqual="⋢",NotSquareSuperset="⊐̸",NotSquareSupersetEqual="⋣",NotSubset="⊂⃒",NotSubsetEqual="⊈",NotSucceeds="⊁",NotSucceedsEqual="⪰̸",NotSucceedsSlantEqual="⋡",NotSucceedsTilde="≿̸",NotSuperset="⊃⃒",NotSupersetEqual="⊉",NotTilde="≁",NotTildeEqual="≄",NotTildeFullEqual="≇",NotTildeTilde="≉",NotVerticalBar="∤",nparallel="∦",npar="∦",nparsl="⫽⃥",npart="∂̸",npolint="⨔",npr="⊀",nprcue="⋠",nprec="⊀",npreceq="⪯̸",npre="⪯̸",nrarrc="⤳̸",nrarr="↛",nrArr="⇏",nrarrw="↝̸",nrightarrow="↛",nRightarrow="⇏",nrtri="⋫",nrtrie="⋭",nsc="⊁",nsccue="⋡",nsce="⪰̸",Nscr="𝒩",nscr="𝓃",nshortmid="∤",nshortparallel="∦",nsim="≁",nsime="≄",nsimeq="≄",nsmid="∤",nspar="∦",nsqsube="⋢",nsqsupe="⋣",nsub="⊄",nsubE="⫅̸",nsube="⊈",nsubset="⊂⃒",nsubseteq="⊈",nsubseteqq="⫅̸",nsucc="⊁",nsucceq="⪰̸",nsup="⊅",nsupE="⫆̸",nsupe="⊉",nsupset="⊃⃒",nsupseteq="⊉",nsupseteqq="⫆̸",ntgl="≹",Ntilde$1="Ñ",ntilde$1="ñ",ntlg="≸",ntriangleleft="⋪",ntrianglelefteq="⋬",ntriangleright="⋫",ntrianglerighteq="⋭",Nu$3="Ν",nu$5="ν",num="#",numero="№",numsp="",nvap="≍⃒",nvdash="⊬",nvDash="⊭",nVdash="⊮",nVDash="⊯",nvge="≥⃒",nvgt=">⃒",nvHarr="⤄",nvinfin="⧞",nvlArr="⤂",nvle="≤⃒",nvlt="<⃒",nvltrie="⊴⃒",nvrArr="⤃",nvrtrie="⊵⃒",nvsim="∼⃒",nwarhk="⤣",nwarr="↖",nwArr="⇖",nwarrow="↖",nwnear="⤧",Oacute$1="Ó",oacute$1="ó",oast="⊛",Ocirc$1="Ô",ocirc$1="ô",ocir="⊚",Ocy="О",ocy="о",odash="⊝",Odblac="Ő",odblac="ő",odiv="⨸",odot="⊙",odsold="⦼",OElig="Œ",oelig="œ",ofcir="⦿",Ofr="𝔒",ofr="𝔬",ogon="˛",Ograve$1="Ò",ograve$1="ò",ogt="⧁",ohbar="⦵",ohm="Ω",oint="∮",olarr="↺",olcir="⦾",olcross="⦻",oline="‾",olt="⧀",Omacr="Ō",omacr="ō",Omega="Ω",omega="ω",Omicron="Ο",omicron="ο",omid="⦶",ominus="⊖",Oopf="𝕆",oopf="𝕠",opar="⦷",OpenCurlyDoubleQuote="“",OpenCurlyQuote="",operp="⦹",oplus="⊕",orarr="↻",Or$4="⩔",or$3="",ord="⩝",order="",orderof="",ordf$1="ª",ordm$1="º",origof="⊶",oror="⩖",orslope="⩗",orv="⩛",oS="Ⓢ",Oscr="𝒪",oscr="",Oslash$1="Ø",oslash$1="ø",osol="⊘",Otilde$1="Õ",otilde$1="õ",otimesas="⨶",Otimes="⨷",otimes="⊗",Ouml$1="Ö",ouml$1="ö",ovbar="⌽",OverBar="‾",OverBrace="⏞",OverBracket="⎴",OverParenthesis="⏜",para$1="¶",parallel$1="∥",par="∥",parsim="⫳",parsl="
`||Sf===" "||Sf==="\f"||Sf==="\r"}function sd(Sf){return Sf>="a"&&Sf<="z"||Sf>="A"&&Sf<="Z"}function od(Sf,wf,Kf){var qf=Sf.toLowerCase();return Sf===qf?function(gf,_f){_f===qf?gf._state=wf:(gf._state=Kf,gf._index--)}:function(gf,_f){_f===qf||_f===Sf?gf._state=wf:(gf._state=Kf,gf._index--)}}function ld(Sf,wf){var Kf=Sf.toLowerCase();return function(qf,gf){gf===Kf||gf===Sf?qf._state=wf:(qf._state=3,qf._index--)}}var cd=od("C",24,16),ud=od("D",25,16),_d=od("A",26,16),yd=od("T",27,16),gd=od("A",28,16),Ed=ld("R",35),Td=ld("I",36),kd=ld("P",37),Rd=ld("T",38),Nd=od("R",40,1),Id=od("I",41,1),Md=od("P",42,1),Ld=od("T",43,1),Pd=ld("Y",45),qd=ld("L",46),Yd=ld("E",47),Ud=od("Y",49,1),Hd=od("L",50,1),Vd=od("E",51,1),Jd=ld("I",54),Zd=ld("T",55),pf=ld("L",56),Xd=ld("E",57),hf=od("I",58,1),mf=od("T",59,1),xf=od("L",60,1),Lf=od("E",61,1),Wf=od("#",63,64),Yf=od("X",66,65),If=function(){function Sf(wf,Kf){var qf;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=Kf,this.xmlMode=!!(wf!=null&&wf.xmlMode),this.decodeEntities=(qf=wf==null?void 0:wf.decodeEntities)!==null&&qf!==void 0?qf:!0}return Sf.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},Sf.prototype.write=function(wf){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=wf,this.parse()},Sf.prototype.end=function(wf){this.ended&&this.cbs.onerror(Error(".end() after done!")),wf&&this.write(wf),this.ended=!0,this.running&&this.finish()},Sf.prototype.pause=function(){this.running=!1},Sf.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},Sf.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},Sf.prototype.stateText=function(wf){wf==="<"?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&wf==="&"&&(this.special===1||this.special===4)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},Sf.prototype.isTagStartChar=function(wf){return sd(wf)||this.xmlMode&&!rd(wf)&&wf!=="/"&&wf!==">"},Sf.prototype.stateBeforeTagName=function(wf){wf==="/"?this._state=5:wf==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):wf===">"||this.special!==1||rd(wf)?this._state=1:wf==="!"?(this._state=15,this.sectionStart=this._index+1):wf==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(wf)?(this._state=!this.xmlMode&&(wf==="s"||wf==="S")?32:!this.xmlMode&&(wf==="t"||wf==="T")?52:3,this.sectionStart=this._index):this._state=1},Sf.prototype.stateInTagName=function(wf){(wf==="/"||wf===">"||rd(wf))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},Sf.prototype.stateBeforeClosingTagName=function(wf){rd(wf)||(wf===">"?this._state=1:this.special!==1?this.special!==4&&(wf==="s"||wf==="S")?this._state=33:this.special===4&&(wf==="t"||wf==="T")?this._state=53:(this._state=1,this._index--):this.isTagStartChar(wf)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},Sf.prototype.stateInClosingTagName=function(wf){(wf===">"||rd(wf))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},Sf.prototype.stateAfterClosingTagName=function(wf){wf===">"&&(this._state=1,this.sectionStart=this._index+1)},Sf.prototype.stateBeforeAttributeName=function(wf){wf===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):wf==="/"?this._state=4:rd(wf)||(this._state=9,this.sectionStart=this._index)},Sf.prototype.stateInSelfClosingTag=function(wf){wf===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):rd(wf)||(this._state=8,this._index--)},Sf.prototype.stateInAttributeName=function(wf){(wf==="="||wf==="/"||wf===">"||rd(wf))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,th
`||sd==="\r"&&this.html[rd+1]!==`
`)&&(ed.isEol=!0),ed.col=rd-ed.lineStartPos+1,ed.offset=ed.droppedBufferSize+rd,td.advance.call(this)},retreat(){td.retreat.call(this),ed.isEol=!1,ed.col=this.pos-ed.lineStartPos+1},dropParsedChunk(){const rd=this.pos;td.dropParsedChunk.call(this);const sd=rd-this.pos;ed.lineStartPos-=sd,ed.droppedBufferSize+=sd,ed.offset=ed.droppedBufferSize+this.pos}}}}return preprocessorMixin$1=qa,preprocessorMixin$1}var tokenizerMixin$1,hasRequiredTokenizerMixin$1;function requireTokenizerMixin$1(){if(hasRequiredTokenizerMixin$1)return tokenizerMixin$1;hasRequiredTokenizerMixin$1=1;const Ra=requireMixin(),qa=requireTokenizer(),Ja=requirePreprocessorMixin$1();class ed extends Ra{constructor(rd){super(rd),this.tokenizer=rd,this.posTracker=Ra.install(rd.preprocessor,Ja),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const rd=this.tokenizer.currentToken,sd=this.tokenizer.currentAttr;rd.location.attrs||(rd.location.attrs=Object.create(null)),rd.location.attrs[sd.name]=this.currentAttrLocation}_getOverriddenMethods(rd,sd){const od={_createStartTagToken(){sd._createStartTagToken.call(this),this.currentToken.location=rd.ctLoc},_createEndTagToken(){sd._createEndTagToken.call(this),this.currentToken.location=rd.ctLoc},_createCommentToken(){sd._createCommentToken.call(this),this.currentToken.location=rd.ctLoc},_createDoctypeToken(ld){sd._createDoctypeToken.call(this,ld),this.currentToken.location=rd.ctLoc},_createCharacterToken(ld,cd){sd._createCharacterToken.call(this,ld,cd),this.currentCharacterToken.location=rd.ctLoc},_createEOFToken(){sd._createEOFToken.call(this),this.currentToken.location=rd._getCurrentLocation()},_createAttr(ld){sd._createAttr.call(this,ld),rd.currentAttrLocation=rd._getCurrentLocation()},_leaveAttrName(ld){sd._leaveAttrName.call(this,ld),rd._attachCurrentAttrLocationInfo()},_leaveAttrValue(ld){sd._leaveAttrValue.call(this,ld),rd._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const ld=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=ld.startLine,this.currentCharacterToken.location.endCol=ld.startCol,this.currentCharacterToken.location.endOffset=ld.startOffset),this.currentToken.type===qa.EOF_TOKEN?(ld.endLine=ld.startLine,ld.endCol=ld.startCol,ld.endOffset=ld.startOffset):(ld.endLine=rd.posTracker.line,ld.endCol=rd.posTracker.col+1,ld.endOffset=rd.posTracker.offset+1),sd._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const ld=this.currentCharacterToken&&this.currentCharacterToken.location;ld&&ld.endOffset===-1&&(ld.endLine=rd.posTracker.line,ld.endCol=rd.posTracker.col,ld.endOffset=rd.posTracker.offset),sd._emitCurrentCharacterToken.call(this)}};return Object.keys(qa.MODE).forEach(ld=>{const cd=qa.MODE[ld];od[cd]=function(ud){rd.ctLoc=rd._getCurrentLocation(),sd[cd].call(this,ud)}}),od}}return tokenizerMixin$1=ed,tokenizerMixin$1}var openElementStackMixin,hasRequiredOpenElementStackMixin;function requireOpenElementStackMixin(){if(hasRequiredOpenElementStackMixin)return openElementStackMixin;hasRequiredOpenElementStackMixin=1;const Ra=requireMixin();class qa extends Ra{constructor(ed,td){super(ed),this.onItemPop=td.onItemPop}_getOverriddenMethods(ed,td){return{pop(){ed.onItemPop(this.current),td.pop.call(this)},popAllUpToHtmlElement(){for(let rd=this.stackTop;rd>0;rd--)ed.onItemPop(this.items[rd]);td.popAllUpToHtmlElement.call(this)},remove(rd){ed.onItemPop(this.current),td.remove.call(this,rd)}}}}return openElementStackMixin=qa,openElementStackMixin}var parserMixin$1,hasRequiredParserMixin$1;function requireParserMixin$1(){if(hasRequiredParserMixin$1)return parserMixin$1;hasRequiredParserMixin$1=1;const Ra=requireMixin(),qa=requireTokenizer(),Ja=requireTokenizerMixin$1(),ed=requireOpenElementStackMixin(
`)){if(Bf.chars.length===1)continue;Bf.chars=Bf.chars.substr(1)}if(this._processInputToken(Bf),Mf&&this.pendingScript)break}}runParsingLoopForCurrentChunk(Mf,Bf){if(this._runParsingLoop(Bf),Bf&&this.pendingScript){const Pm=this.pendingScript;this.pendingScript=null,Bf(Pm);return}Mf&&Mf()}_setupTokenizerCDATAMode(){const Mf=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=Mf&&Mf!==this.document&&this.treeAdapter.getNamespaceURI(Mf)!==Ed.HTML&&!this._isIntegrationPoint(Mf)}_switchToTextParsing(Mf,Bf){this._insertElement(Mf,Ed.HTML),this.tokenizer.state=Bf,this.originalInsertionMode=this.insertionMode,this.insertionMode=Vd}switchToPlaintextParsing(){this.insertionMode=Vd,this.originalInsertionMode=Hd,this.tokenizer.state=Ra.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let Mf=this.fragmentContext;do{if(this.treeAdapter.getTagName(Mf)===gd.FORM){this.formElement=Mf;break}Mf=this.treeAdapter.getParentNode(Mf)}while(Mf)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ed.HTML){const Mf=this.treeAdapter.getTagName(this.fragmentContext);Mf===gd.TITLE||Mf===gd.TEXTAREA?this.tokenizer.state=Ra.MODE.RCDATA:Mf===gd.STYLE||Mf===gd.XMP||Mf===gd.IFRAME||Mf===gd.NOEMBED||Mf===gd.NOFRAMES||Mf===gd.NOSCRIPT?this.tokenizer.state=Ra.MODE.RAWTEXT:Mf===gd.SCRIPT?this.tokenizer.state=Ra.MODE.SCRIPT_DATA:Mf===gd.PLAINTEXT&&(this.tokenizer.state=Ra.MODE.PLAINTEXT)}}_setDocumentType(Mf){const Bf=Mf.name||"",Pm=Mf.publicId||"",d1=Mf.systemId||"";this.treeAdapter.setDocumentType(this.document,Bf,Pm,d1)}_attachElementToTree(Mf){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(Mf);else{const Bf=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(Bf,Mf)}}_appendElement(Mf,Bf){const Pm=this.treeAdapter.createElement(Mf.tagName,Bf,Mf.attrs);this._attachElementToTree(Pm)}_insertElement(Mf,Bf){const Pm=this.treeAdapter.createElement(Mf.tagName,Bf,Mf.attrs);this._attachElementToTree(Pm),this.openElements.push(Pm)}_insertFakeElement(Mf){const Bf=this.treeAdapter.createElement(Mf,Ed.HTML,[]);this._attachElementToTree(Bf),this.openElements.push(Bf)}_insertTemplate(Mf){const Bf=this.treeAdapter.createElement(Mf.tagName,Ed.HTML,Mf.attrs),Pm=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Bf,Pm),this._attachElementToTree(Bf),this.openElements.push(Bf)}_insertFakeRootElement(){const Mf=this.treeAdapter.createElement(gd.HTML,Ed.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,Mf),this.openElements.push(Mf)}_appendCommentNode(Mf,Bf){const Pm=this.treeAdapter.createCommentNode(Mf.data);this.treeAdapter.appendChild(Bf,Pm)}_insertCharacters(Mf){if(this._shouldFosterParentOnInsertion())this._fosterParentText(Mf.chars);else{const Bf=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(Bf,Mf.chars)}}_adoptNodes(Mf,Bf){for(let Pm=this.treeAdapter.getFirstChild(Mf);Pm;Pm=this.treeAdapter.getFirstChild(Mf))this.treeAdapter.detachNode(Pm),this.treeAdapter.appendChild(Bf,Pm)}_shouldProcessTokenInForeignContent(Mf){const Bf=this._getAdjustedCurrentElement();if(!Bf||Bf===this.document)return!1;const Pm=this.treeAdapter.getNamespaceURI(Bf);if(Pm===Ed.HTML||this.treeAdapter.getTagName(Bf)===gd.ANNOTATION_XML&&Pm===Ed.MATHML&&Mf.type===Ra.START_TAG_TOKEN&&Mf.tagName===gd.SVG)return!1;const d1=Mf.type===Ra.CHARACTER_TOKEN||Mf.type===Ra.NULL_CHARACTER_TOKEN||Mf.type===Ra.WHITESPACE_CHARACTER_TOKEN;return(Mf.type===Ra.START_TAG_TOKEN&&Mf.tagName!==gd.MGLYPH&&Mf.tagName!==gd.MALIGNMARK||d1)&&this._isIntegrationPoint(Bf,Ed.MATHML)||(Mf.type===Ra.START_TAG_TOKEN||d1)&&this._isIntegrationPoint(Bf,Ed.HTML)?!1:Mf.type!==Ra.EOF_TOKEN}_processToken(Mf){$f[this.insertionMode][Mf.type](this,Mf)}_processTokenInBodyMode(Mf){$f[Hd][Mf.type](this,Mf)}_processTokenInForeignContent(Mf){Mf.type===Ra.CHARACTER_TOKEN?cg(this,Mf):Mf.type===Ra.NULL_CHARACTER_TOKEN?c0(this,Mf)
`)}}):{name:_d,value:yd.replace(ed,`\r
`)}}).toArray()}return forms.serializeArray=rd,forms}var hasRequiredCheerio;function requireCheerio(){if(hasRequiredCheerio)return cheerio$1;hasRequiredCheerio=1,Object.defineProperty(cheerio$1,"__esModule",{value:!0}),cheerio$1.Cheerio=void 0;var Ra=require$$0$6,qa=Ra.__importDefault(requireParse()),Ja=Ra.__importDefault(requireOptions()),ed=requireUtils$2(),td=Ra.__importStar(requireAttributes()),rd=Ra.__importStar(requireTraversing()),sd=Ra.__importStar(requireManipulation()),od=Ra.__importStar(requireCss()),ld=Ra.__importStar(requireForms()),cd=function(){function _d(yd,gd,Ed,Td){var kd=this;if(Td===void 0&&(Td=Ja.default),this.length=0,this.options=Td,!yd)return this;if(Ed&&(typeof Ed=="string"&&(Ed=qa.default(Ed,this.options,!1)),this._root=new this.constructor(Ed,null,null,this.options),this._root._root=this._root),ed.isCheerio(yd))return yd;var Rd=typeof yd=="string"&&ed.isHtml(yd)?qa.default(yd,this.options,!1).children:ud(yd)?[yd]:Array.isArray(yd)?yd:null;if(Rd)return Rd.forEach(function(Md,Ld){kd[Ld]=Md}),this.length=Rd.length,this;var Nd=yd,Id=gd?typeof gd=="string"?ed.isHtml(gd)?this._make(qa.default(gd,this.options,!1)):(Nd=gd+" "+Nd,this._root):ed.isCheerio(gd)?gd:this._make(gd):this._root;return Id?Id.find(Nd):this}return _d.prototype._make=function(yd,gd){var Ed=new this.constructor(yd,gd,this._root,this.options);return Ed.prevObject=this,Ed},_d}();cheerio$1.Cheerio=cd,cd.prototype.cheerio="[cheerio object]",cd.prototype.splice=Array.prototype.splice,cd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(cd.prototype,td,rd,sd,od,ld);function ud(_d){return!!_d.name||_d.type==="root"||_d.type==="text"||_d.type==="comment"}return cheerio$1}var hasRequiredLoad;function requireLoad(){if(hasRequiredLoad)return load;hasRequiredLoad=1,Object.defineProperty(load,"__esModule",{value:!0}),load.load=void 0;var Ra=require$$0$6,qa=Ra.__importStar(requireOptions()),Ja=Ra.__importStar(require_static()),ed=requireCheerio(),td=Ra.__importDefault(requireParse());function rd(sd,od,ld){if(ld===void 0&&(ld=!0),sd==null)throw new Error("cheerio.load() expects a string");var cd=Ra.__assign(Ra.__assign({},qa.default),qa.flatten(od)),ud=td.default(sd,cd,ld),_d=function(gd){Ra.__extends(Ed,gd);function Ed(){return gd!==null&&gd.apply(this,arguments)||this}return Ed}(ed.Cheerio);function yd(gd,Ed,Td,kd){return Td===void 0&&(Td=ud),new _d(gd,Ed,Td,Ra.__assign(Ra.__assign({},cd),qa.flatten(kd)))}return Object.assign(yd,Ja,{load:rd,_root:ud,_options:cd,fn:_d.prototype,prototype:_d.prototype}),yd}return load.load=rd,load}(function(Ra){Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.root=Ra.parseHTML=Ra.merge=Ra.contains=void 0;var qa=require$$0$6;qa.__exportStar(requireTypes(),Ra),qa.__exportStar(requireLoad(),Ra);var Ja=requireLoad();Ra.default=Ja.load([]);var ed=qa.__importStar(require_static());Ra.contains=ed.contains,Ra.merge=ed.merge,Ra.parseHTML=ed.parseHTML,Ra.root=ed.root})(lib$e);var utils$4={},lexer={exports:{}},debug={exports:{}};(function(Ra,qa){var Ja={version:"v20.17.0",versions:{node:"20.17.0",acorn:"8.11.3",ada:"2.9.0",ares:"1.32.3",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.2.2",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.13+quic",simdutf:"5.3.0",tz:"2024a",undici:"6.19.2",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-209717d"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Interna
`)}})(debug);var debugExports=debug.exports;(function(Ra,qa){debugExports("lex"),Ra.exports=Ja;function Ja(ed){var td="",rd,sd=0,od=-1,ld=0,cd=1,ud="before-selector",_d=[ud],yd={},gd=[],Ed=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function Td(){return Yd(),ed[od]}function kd(mf){return mf?_d[_d.length-1-mf]:ud}function Rd(mf){var xf=od+1;return mf===ed.slice(xf,xf+mf.length)}function Nd(mf){var xf=ed.slice(od).indexOf(mf);return xf>0?xf:!1}function Id(mf){return mf===Md(1)}function Md(mf){return ed[od+(mf||1)]}function Ld(){var mf=_d.pop();return ud=_d[_d.length-1],mf}function Pd(mf){return ud=mf,_d.push(ud),_d.length}function qd(mf){var xf=ud;return _d[_d.length-1]=ud=mf,xf}function Yd(mf){if((mf||1)==1)ed[od]==`
`?(cd++,sd=1):sd++,od++;else{var xf=ed.slice(od,od+mf).split(`
`);xf.length>1&&(cd+=xf.length-1,sd=1),sd+=xf[xf.length-1].length,od=od+mf}}function Ud(){yd.end={line:cd,col:sd},gd.push(yd),td="",yd={}}function Hd(mf){yd={type:mf,start:{line:cd,col:sd}}}for(;rd=Td();)switch(rd){case" ":switch(kd()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":td+=rd;break}break;case`
`:case" ":case"\r":case"\f":switch(kd()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":td+=rd;break;case"at-value":rd===`
`&&(yd.value=td.trim(),Ud(),Ld());break}break;case":":switch(kd()){case"name":yd.name=td.trim(),td="",qd("before-value");break;case"before-selector":td+=rd,Hd("selector"),Pd("selector");break;case"before-value":qd("value"),td+=rd;break;default:td+=rd;break}break;case";":switch(kd()){case"name":case"before-value":case"value":td.trim().length>0&&(yd.value=td.trim(),Ud()),qd("before-name");break;case"value-paren":td+=rd;break;case"at-value":yd.value=td.trim(),Ud(),Ld();break;case"before-name":break;default:td+=rd;break}break;case"{":switch(kd()){case"selector":if(Md(-1)==="\\"){td+=rd;break}yd.text=td.trim(),Ud(),qd("before-name"),ld=ld+1;break;case"at-group":switch(yd.name=td.trim(),yd.type){case"font-face":case"viewport":case"page":Pd("before-name");break;default:Pd("before-selector")}Ud(),ld=ld+1;break;case"name":case"at-rule":yd.name=td.trim(),Ud(),Pd("before-name"),ld=ld+1;break;case"comment":case"double-string":case"single-string":td+=rd;break;case"before-value":qd("value"),td+=rd;break}break;case"}":switch(kd()){case"before-name":case"name":case"before-value":case"value":td&&(yd.value=td.trim()),yd.name&&yd.value&&Ud(),Hd("end"),Ud(),Ld(),kd()==="at-group"&&(Hd("at-group-end"),Ud(),Ld()),ld>0&&(ld=ld-1);break;case"at-group":case"before-selector":case"selector":if(Md(-1)==="\\"){td+=rd;break}ld>0&&kd(1)==="at-group"&&(Hd("at-group-end"),Ud()),ld>1&&Ld(),ld>0&&(ld=ld-1);break;case"double-string":case"single-string":case"comment":td+=rd;break}break;case'"':case"'":switch(kd()){case"double-string":rd==='"'&&Md(-1)!=="\\"&&Ld();break;case"single-string":rd==="'"&&Md(-1)!=="\\"&&Ld();break;case"before-at-value":qd("at-value"),Pd(rd==='"'?"double-string":"single-string");break;case"before-value":qd("value"),Pd(rd==='"'?"double-string":"single-string");break;case"comment":break;default:Md(-1)!=="\\"&&Pd(rd==='"'?"double-string":"single-string")}td+=rd;break;case"/":switch(kd()){case"comment":case"double-string":case"single-string":td+=rd;break;case"before-value":case"selector":case"name":case"value":if(Id("*")){var Vd=Nd("*/");Vd&&Yd(Vd+1)}else kd()=="before-value"&&qd("value"),td+=rd;break;default:Id("*")?(Hd("comment"),Pd("comment"),Yd()):td+=rd;break}break;case"*":switch(kd()){case"comment":Id("/")?(yd.text=td,Yd(),Ud(),Ld()):td+=rd;break;case"before-selector":td+=rd,Hd("selector"),Pd("selector");break;case"before-value":qd("value"),td+=rd;break;default:td+=rd}break;case"@":switch(kd()){case"comment":case"double-string":case"single-string":td+=rd;break;case"before-value":qd("value"),td+=rd;break;default:for(var Jd=!1,Zd,pf,Xd=0,hf=Ed.length;!Jd&&Xd<hf;++Xd)pf=Ed[Xd],Zd=pf.name||pf,Rd(Zd)&&(Jd=!0,Hd(Zd),Pd(pf.state||"at-group"),Yd(Zd.length),pf.prefix&&(yd.prefix=pf.prefix),pf.type&&(yd.type=pf.type));Jd||(td+=rd);break}break;case"(":switch(kd()){case"value":Pd("value-paren");break;case"before-value":qd("value");break}td+=rd;break;case")":switch(kd()){case"value-paren":Ld();break;case"before-value":qd("value");break}td+=rd;break;default:switch(kd()){case"before-selector":Hd("selector"),Pd("selector");break;case"before-name":Hd("property"),qd("name");break;case"before-value":qd("value");break;case"before-at-value":qd("at-value");break}td+=rd;break}return gd}})(lexer);var lexerExports=lexer.exports,parser$2={exports:{}};(function(Ra,qa){debugExports("parse");var Ja=lexerExports;Ra.exports=od;var ed,td,rd,sd;function od(Ld,Pd){Pd||(Pd={}),ed=!!Pd.comments,rd=!!Pd.position,td=0,sd=Array.isArray(Ld)?Ld.slice():Ja(Ld);for(var qd,Yd=[],Ud;Ud=cd();)qd=Rd(Ud),qd&&Yd.push(qd);return{type:"stylesheet",stylesheet:{rules:Yd}}}function ld(Ld,Pd){Pd||(Pd={});for(var qd,Yd=["type","name","value"],Ud={},Hd=0;Hd<Yd.length;++Hd)qd=Yd[Hd],Ld[qd]&&(Ud[qd]=Pd[qd]||Ld[qd]);for(Yd=Object.keys(Pd),Hd=0;Hd<Yd.length;++Hd)qd=Yd[Hd],Ud[qd]||(Ud[qd]=Pd[qd]);return rd&&(Ud.position={start:Ld.start,end:Ld.end}),Ud}function cd(){var Ld=sd.shift();return Ld}function ud(Ld){td=td+1;var Pd={};switch(Ld.type){case"font-face":case"viewport":Pd.declarations=Id();break;case"page":Pd.prefix=Ld.prefix,Pd.declarations=Id();break;default:Pd.prefix=Ld.prefix,Pd.rul
`,od=" ");var Pd=Ed(Md.stylesheet.rules,Nd).join(`
`).trim();return Pd}function cd(Md){if(Md){rd+=Md;return}return ed?"":Array(rd).join(td||"")}function ud(Md){return"@"+Md.type+" "+Md.value+";"+sd}function _d(Md){var Ld="",Pd=Md.prefix||"";Md.name&&(Ld=" "+Md.name);var qd=Md.type!=="page";return"@"+Pd+Md.type+Ld+od+Td(Md,qd)+sd}function yd(Md){return Ja?"/*"+(Md.text||"")+"*/"+sd:""}function gd(Md){var Ld;return Md.selectors?Ld=Md.selectors.join(","+sd):(Ld="@"+Md.type,Ld+=Md.name?" "+Md.name:""),cd()+Ld+od+Td(Md)+sd}function Ed(Md,Ld){return Md.reduce(function(Pd,qd){var Yd=qd.type==="comment"?yd(qd):Ld(qd);return Yd&&Pd.push(Yd),Pd},[])}function Td(Md,Ld){var Pd=Md.declarations,qd=Rd;return Md.rules&&(Pd=Md.rules,qd=gd),Pd=kd(Pd,qd),Pd&&(Pd=sd+Pd+(Ld?"":sd)),"{"+Pd+cd()+"}"}function kd(Md,Ld){if(!Md)return"";cd(1);var Pd=Ed(Md,Ld);return cd(-1),Pd.length?Pd.join(sd):""}function Rd(Md){if(Md.type==="property")return Id(Md)}function Nd(Md){switch(Md.type){case"rule":return gd(Md);case"media":case"keyframes":return _d(Md);case"comment":return yd(Md);case"import":case"charset":case"namespace":return ud(Md);case"font-face":case"supports":case"viewport":case"document":case"page":return _d(Md)}}function Id(Md){var Ld=Md.name?Md.name+":"+od:"";return cd()+Ld+Md.value+";"}})(stringify$1);var stringifyExports=stringify$1.exports,mensch={lex:lexerExports,parse:parserExports,stringify:stringifyExports},selector={exports:{}},escapeRe=/([-.*+?^${}()|[\]\/\\])/g,unescapeRe=/\\/g,escape$1=function(Ra){return(Ra+"").replace(escapeRe,"\\$1")},unescape$1=function(Ra){return(Ra+"").replace(unescapeRe,"")},slickRe=RegExp(`^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:(["']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:(["'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(/<combinator>/,"["+escape$1(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),Part=function(qa){this.combinator=qa||" ",this.tag="*"};Part.prototype.toString=function(){if(!this.raw){var Ra="",qa,Ja;if(Ra+=this.tag||"*",this.id&&(Ra+="#"+this.id),this.classes&&(Ra+="."+this.classList.join(".")),this.attributes)for(qa=0;Ja=this.attributes[qa++];)Ra+="["+Ja.name+(Ja.operator?Ja.operator+'"'+Ja.value+'"':"")+"]";if(this.pseudos)for(qa=0;Ja=this.pseudos[qa++];)Ra+=":"+Ja.name,Ja.value&&(Ra+="("+Ja.value+")");this.raw=Ra}return this.raw};var Expression=function(){this.length=0};Expression.prototype.toString=function(){if(!this.raw){for(var Ra="",qa=0,Ja;Ja=this[qa++];)qa!==1&&(Ra+=" "),Ja.combinator!==" "&&(Ra+=Ja.combinator+" "),Ra+=Ja;this.raw=Ra}return this.raw};var replacer=function(Ra,qa,Ja,ed,td,rd,sd,od,ld,cd,ud,_d,yd,gd,Ed,Td){var kd,Rd;if((qa||!this.length)&&(kd=this[this.length++]=new Expression,qa))return"";if(kd||(kd=this[this.length-1]),(Ja||ed||!kd.length)&&(Rd=kd[kd.length++]=new Part(Ja)),Rd||(Rd=kd[kd.length-1]),td)Rd.tag=unescape$1(td);else if(rd)Rd.id=unescape$1(rd);else if(sd){var Nd=unescape$1(sd),Id=Rd.classes||(Rd.classes={});if(!Id[Nd]){Id[Nd]=escape$1(sd);var Md=Rd.classList||(Rd.classList=[]);Md.push(Nd),Md.sort()}}else yd?(Td=Td||Ed,(Rd.pseudos||(Rd.pseudos=[])).push({type:_d.length==1?"class":"element",name:unescape$1(yd),escapedName:escape$1(yd),value:Td?unescape$1(Td):null,escapedValue:Td?escape$1(Td):null})):od&&(ud=ud?escape$1(ud):null,(Rd.attributes||(Rd.attributes=[])).push({operator:ld,name:unescape$1(od),escapedName:escape$1(od),value:ud?unescape$1(ud):null,escapedValue:ud?escape$1(ud):null}));return""},Expressions=function(qa){this.length=0;for(var Ja=this,ed=qa,td;qa;){if(td=qa.replace(slickRe,function(){return replacer.apply(Ja,arguments)}),td===qa)throw new Error(ed+" is an invalid expression");qa=td}};Expressions.prototype.toString=function(){if(!this.raw){for(var Ra=[],qa=0,Ja;Ja=this[qa++];)Ra.push(Ja);this.raw=Ra.join(", ")}return this.raw};var cache$1={},parse=function(Ra){return Ra==null?null:(Ra=(""+Ra).replace(/^\s+|\s+$/g,""),cache$1[Ra]||(cache$1[R
* Returns an array of the selectors.
*
* @license Sizzle CSS Selector Engine - MIT
* @param {String} selectorText from mensch
* @api public
*/Ra.extract=function(rd){for(var sd=0,od=[],ld="",cd=0,ud=rd.length;cd<ud;cd++){var _d=rd.charAt(cd);sd?((_d==="]"||_d===")")&&sd--,ld+=_d):_d===","?(od.push(ld),ld=""):((_d==="["||_d==="(")&&sd++,(ld.length||_d!==","&&_d!==`
`&&_d!==" ")&&(ld+=_d))}return ld.length&&od.push(ld),od},Ra.parseCSS=function(td){for(var rd=qa.parse(td,{position:!0,comments:!0}),sd=typeof rd.stylesheet<"u"&&rd.stylesheet.rules?rd.stylesheet.rules:[],od=[],ld=0,cd=sd.length;ld<cd;ld++)if(sd[ld].type=="rule")for(var ud=sd[ld],_d=ud.selectors,yd=0,gd=_d.length;yd<gd;yd++)od.push([_d[yd],ud.declarations]);return od},Ra.getPreservedText=function(td,rd,sd){for(var od=qa.parse(td,{position:!0,comments:!0}),ld=typeof od.stylesheet<"u"&&od.stylesheet.rules?od.stylesheet.rules:[],cd=[],ud=ld.length-1;ud>=0;ud--)(rd.fontFaces&&ld[ud].type==="font-face"||rd.mediaQueries&&ld[ud].type==="media"||rd.keyFrames&&ld[ud].type==="keyframes"||rd.pseudos&&ld[ud].selectors&&this.matchesPseudo(ld[ud].selectors[0],sd))&&cd.unshift(qa.stringify({stylesheet:{rules:[ld[ud]]}},{comments:!1,indentation:" "})),ld[ud].position.start;return cd.length===0?!1:`
`+cd.join(`
`)+`
`},Ra.normalizeLineEndings=function(td){return td.replace(/\r\n/g,`
`).replace(/\n/g,`\r
`)},Ra.matchesPseudo=function(td,rd){return rd.find(function(sd){return td.indexOf(sd)>-1})},Ra.compareFunc=function(td,rd){for(var sd=Math.min(td.length,rd.length),od=0;od<sd;od++)if(td[od]!==rd[od])return td[od]>rd[od]?1:-1;return td.length-rd.length},Ra.compare=function(td,rd){return Ra.compareFunc(td,rd)==1?td:rd},Ra.getDefaultOptions=function(td){var rd=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},td);return rd.webResources=rd.webResources||{},rd}}(utils$4)),utils$4}(function(Ra){var qa=lib$e;requireUtils$1();var Ja=function(td,rd,sd){return rd=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},rd),td=sd(td),qa.load(td,rd)},ed=function(){var td=[],rd=function(od){var ld=Ra.exports.codeBlocks;return Object.keys(ld).forEach(function(cd){var ud=new RegExp(ld[cd].start+"([\\S\\s]*?)"+ld[cd].end,"g");od=od.replace(ud,function(_d,yd){return td.push(_d),"JUICE_CODE_BLOCK_"+(td.length-1)+"_"})}),od},sd=function(od){for(var ld=0;ld<td.length;ld++){var cd=new RegExp("JUICE_CODE_BLOCK_"+ld+'_(="")?',"gi");od=od.replace(cd,function(){return td[ld]})}return od};return{encodeEntities:rd,decodeEntities:sd}};Ra.exports=function(td,rd,sd,od){var ld=ed(),cd=Ja(td,rd,ld.encodeEntities),ud=[cd];ud.push.apply(ud,od);var _d=sd.apply(void 0,ud)||cd;return rd&&rd.xmlMode?ld.decodeEntities(_d.xml()):ld.decodeEntities(_d.html())},Ra.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}})(cheerio$2);var cheerioExports=cheerio$2.exports,numbers$1={};numbers$1.romanize=function(Ra){if(isNaN(Ra))return NaN;for(var qa=String(+Ra).split(""),Ja=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],ed="",td=3;td--;)ed=(Ja[+qa.pop()+td*10]||"")+ed;return Array(+qa.join("")+1).join("M")+ed};numbers$1.alphanumeric=function(Ra){for(var qa="",Ja;Ra>0;)Ja=(Ra-1)%26,qa=String.fromCharCode(65+Ja)+qa,Ra=(Ra-Ja)/26|0;return qa||void 0};var utils$3=requireUtils$1(),numbers=numbers$1,inline=function(qa){qa.ignoredPseudos=["hover","active","focus","visited","link"],qa.widthElements=["TABLE","TD","TH","IMG"],qa.heightElements=["TABLE","TD","TH","IMG"],qa.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],qa.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],qa.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},qa.excludedProperties=[],qa.juiceDocument=ud,qa.inlineDocument=Ja;function Ja(gd,Ed,Td){Td=Td||{};var kd=utils$3.parseCSS(Ed),Rd=[],Nd="style",Id={};if(Td.styleAttributeName&&(Nd=Td.styleAttributeName),kd.forEach(Pd),Rd.forEach(qd),Td.inlinePseudoElements&&Rd.forEach(Yd),Td.applyWidthAttributes&&Rd.forEach(function(Jd){Ud(Jd,"width")}),Td.applyHeightAttributes&&Rd.forEach(function(Jd){Ud(Jd,"height")}),Td.applyAttributesTableElements&&Rd.forEach(Vd),Td.insertPreservedExtraCss&&Td.extraCss){var Md=utils$3.getPreservedText(Td.extraCss,{mediaQueries:Td.preserveMediaQueries,fontFaces:Td.preserveFontFaces,keyFrames:Td.preserveKeyFrames});if(Md){var Ld=null;Td.insertPreservedExtraCss!==!0?Ld=gd(Td.insertPreservedExtraCss):(Ld=gd("head"),Ld.length||(Ld=gd("body")),Ld.length||(Ld=gd.root())),Ld.first().append("<style>"+Md+"</style>")}}function Pd(Jd){var Zd=Jd[0],pf=Jd[1],Xd=new utils$3.Selector(Zd),hf=Xd.parsed();if(hf){for(var mf=od(hf),xf=0;xf<hf.length;++xf){var Lf=hf[xf];if(Lf.pseudos)for(var Wf=0;Wf<Lf.pseudos.length;++Wf){var Yf=Lf.pseudos[Wf];if(qa.ignoredPseudos.indexOf(Yf.name)>=0)return}}if(mf){var If=hf[hf.length-1],Sf=If.pseudos;If.pseudos=cd(If.pseudos),Zd=hf.toString(),If.pseudos=Sf}var wf;try{wf=gd(Zd)}catch{return}wf.each(function(){var Kf=this;if(Kf.name&&qa.nonVisualElements.indexOf(Kf.name.toUpperCase())>=0)return;if(mf){var qf="pseudo"+mf,gf=Kf[qf];gf||(gf=Kf[qf]=gd
`+Ed.extraCss,Ja(gd,Td,Ed),gd}function _d(gd,Ed){var Td=[],kd=gd("style"),Rd,Nd,Id;return kd.each(function(){Id=this;var Md=!!Id.childNodes;if(Rd=Md?Id.childNodes:Id.children,Rd.length!==1){Ed.removeStyleTags&&gd(Id).remove();return}if(Nd=Rd[0].data,Ed.applyStyleTags&&gd(Id).attr("data-embed")===void 0&&Td.push(Nd),Ed.removeStyleTags&&gd(Id).attr("data-embed")===void 0){var Ld=Md?Id.childNodes[0].nodeValue:Id.children[0].data,Pd=utils$3.getPreservedText(Ld,{mediaQueries:Ed.preserveMediaQueries,fontFaces:Ed.preserveFontFaces,keyFrames:Ed.preserveKeyFrames,pseudos:Ed.preservePseudos},qa.ignoredPseudos);Pd?Md?Id.childNodes[0].nodeValue=Pd:Id.children[0].data=Pd:gd(Id).remove()}gd(Id).removeAttr("data-embed")}),Td}function yd(gd,Ed){var Td=_d(gd,Ed),kd=Td.join(`
`);return kd}return qa},cheerio=cheerioExports,makeJuiceClient=inline,juiceClient=makeJuiceClient(function(Ra,qa){return cheerio(Ra,{xmlMode:qa&&qa.xmlMode},juiceDocument,[qa])}),juiceDocument=function(Ra,qa){return juiceClient.juiceDocument(Ra,qa)};juiceClient.inlineContent=function(Ra,qa,Ja){return cheerio(Ra,{xmlMode:Ja&&Ja.xmlMode},juiceClient.inlineDocument,[qa,Ja])};var client=juiceClient;const juice=getDefaultExportFromCjs(client);var yu$1=Object.create,He$2=Object.defineProperty,Au$1=Object.getOwnPropertyDescriptor,Bu$1=Object.getOwnPropertyNames,wu$2=Object.getPrototypeOf,xu$1=Object.prototype.hasOwnProperty,sr$2=Ra=>{throw TypeError(Ra)},_u$2=(Ra,qa)=>()=>(Ra&&(qa=Ra(Ra=0)),qa),At$5=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),We$1=(Ra,qa)=>{for(var Ja in qa)He$2(Ra,Ja,{get:qa[Ja],enumerable:!0})},ar$2=(Ra,qa,Ja,ed)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let td of Bu$1(qa))!xu$1.call(Ra,td)&&td!==Ja&&He$2(Ra,td,{get:()=>qa[td],enumerable:!(ed=Au$1(qa,td))||ed.enumerable});return Ra},Me$5=(Ra,qa,Ja)=>(Ja=Ra!=null?yu$1(wu$2(Ra)):{},ar$2(He$2(Ja,"default",{value:Ra,enumerable:!0}),Ra)),vu$2=Ra=>ar$2(He$2({},"__esModule",{value:!0}),Ra),bu$1=(Ra,qa,Ja)=>qa.has(Ra)||sr$2("Cannot "+Ja),Dr$2=(Ra,qa,Ja)=>qa.has(Ra)?sr$2("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,Ja),pe$1=(Ra,qa,Ja)=>(bu$1(Ra,qa,"access private method"),Ja),it$2=At$5((Ra,qa)=>{var Ja=new Proxy(String,{get:()=>Ja});qa.exports=Ja}),Tn$3={};We$1(Tn$3,{default:()=>_o$1,shouldHighlight:()=>xo$3});var xo$3,_o$1,kn$1=_u$2(()=>{xo$3=()=>!1,_o$1=String}),Pn$4=At$5((Ra,qa)=>{var Ja=String,ed=function(){return{isColorSupported:!1,reset:Ja,bold:Ja,dim:Ja,italic:Ja,underline:Ja,inverse:Ja,hidden:Ja,strikethrough:Ja,black:Ja,red:Ja,green:Ja,yellow:Ja,blue:Ja,magenta:Ja,cyan:Ja,white:Ja,gray:Ja,bgBlack:Ja,bgRed:Ja,bgGreen:Ja,bgYellow:Ja,bgBlue:Ja,bgMagenta:Ja,bgCyan:Ja,bgWhite:Ja}};qa.exports=ed(),qa.exports.createColors=ed}),$n$4=At$5(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.codeFrameColumns=gd,Ra.default=Ed;var qa=(kn$1(),vu$2(Tn$3)),Ja=td(Pn$4(),!0);function ed(Td){if(typeof WeakMap!="function")return null;var kd=new WeakMap,Rd=new WeakMap;return(ed=function(Nd){return Nd?Rd:kd})(Td)}function td(Td,kd){if(Td===null||typeof Td!="object"&&typeof Td!="function")return{default:Td};var Rd=ed(kd);if(Rd&&Rd.has(Td))return Rd.get(Td);var Nd={__proto__:null},Id=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Md in Td)if(Md!=="default"&&{}.hasOwnProperty.call(Td,Md)){var Ld=Id?Object.getOwnPropertyDescriptor(Td,Md):null;Ld&&(Ld.get||Ld.set)?Object.defineProperty(Nd,Md,Ld):Nd[Md]=Td[Md]}return Nd.default=Td,Rd&&Rd.set(Td,Nd),Nd}var rd=Ja.default,sd=(Td,kd)=>Rd=>Td(kd(Rd)),od;function ld(Td){return Td?(od!=null||(od=(0,Ja.createColors)(!0)),od):rd}var cd=!1;function ud(Td){return{gutter:Td.gray,marker:sd(Td.red,Td.bold),message:sd(Td.red,Td.bold)}}var _d=/\r\n|[\n\r\u2028\u2029]/;function yd(Td,kd,Rd){let Nd=Object.assign({column:0,line:-1},Td.start),Id=Object.assign({},Nd,Td.end),{linesAbove:Md=2,linesBelow:Ld=3}=Rd||{},Pd=Nd.line,qd=Nd.column,Yd=Id.line,Ud=Id.column,Hd=Math.max(Pd-(Md+1),0),Vd=Math.min(kd.length,Yd+Ld);Pd===-1&&(Hd=0),Yd===-1&&(Vd=kd.length);let Jd=Yd-Pd,Zd={};if(Jd)for(let pf=0;pf<=Jd;pf++){let Xd=pf+Pd;if(!qd)Zd[Xd]=!0;else if(pf===0){let hf=kd[Xd-1].length;Zd[Xd]=[qd,hf-qd+1]}else if(pf===Jd)Zd[Xd]=[0,Ud];else{let hf=kd[Xd-pf].length;Zd[Xd]=[0,hf]}}else qd===Ud?qd?Zd[Pd]=[qd,0]:Zd[Pd]=!0:Zd[Pd]=[qd,Ud-qd];return{start:Hd,end:Vd,markerLines:Zd}}function gd(Td,kd,Rd={}){let Nd=(Rd.highlightCode||Rd.forceColor)&&(0,qa.shouldHighlight)(Rd),Id=ld(Rd.forceColor),Md=ud(Id),Ld=(Zd,pf)=>Nd?Zd(pf):pf,Pd=Td.split(_d),{start:qd,end:Yd,markerLines:Ud}=yd(kd,Pd,Rd),Hd=kd.start&&typeof kd.start.column=="number",Vd=String(Yd).length,Jd=(Nd?(0,qa.default)(Td,Rd):Td).split(_d,Yd).slice(qd,Yd).map((Zd,pf)=>{let Xd=qd+1+pf,hf=` ${` ${Xd}`.slice(-Vd)} |`,mf=Ud[Xd],xf=!Ud[Xd+1];if(mf){let Lf="";if(Array.isArray(mf)){let Wf=Zd.slice(0,Math.max(mf[0]-1,0)).rep
`,Ld(Md.gutter,hf.replace(/\d/g," "))," ",Wf,Ld(Md.marker,"^").repeat(Yf)].join(""),xf&&Rd.message&&(Lf+=" "+Ld(Md.message,Rd.message))}return[Ld(Md.marker,">"),Ld(Md.gutter,hf),Zd.length>0?` ${Zd}`:"",Lf].join("")}else return` ${Ld(Md.gutter,hf)}${Zd.length>0?` ${Zd}`:""}`}).join(`
`);return Rd.message&&!Hd&&(Jd=`${" ".repeat(Vd+1)}${Rd.message}
${Jd}`),Nd?Id.reset(Jd):Jd}function Ed(Td,kd,Rd,Nd={}){if(!cd){cd=!0;let Id="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let Md=new Error(Id);Md.name="DeprecationWarning",console.warn(new Error(Id))}}return Rd=Math.max(Rd,0),gd(Td,{start:{column:Rd,line:kd}},Nd)}}),ir$3={};We$1(ir$3,{__debug:()=>di$3,check:()=>fi$3,doc:()=>nr$2,format:()=>gu$1,formatWithCursor:()=>Cu$2,getSupportInfo:()=>pi$4,util:()=>or$2,version:()=>fu$1});var Ou$2=(Ra,qa,Ja,ed)=>{if(!(Ra&&qa==null))return qa.replaceAll?qa.replaceAll(Ja,ed):Ja.global?qa.replace(Ja,ed):qa.split(Ja).join(ed)},ne$3=Ou$2;function Z$1(){}Z$1.prototype={diff:function(Ra,qa){var Ja,ed=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},td=ed.callback;typeof ed=="function"&&(td=ed,ed={}),this.options=ed;var rd=this;function sd(Id){return td?(setTimeout(function(){td(void 0,Id)},0),!0):Id}Ra=this.castInput(Ra),qa=this.castInput(qa),Ra=this.removeEmpty(this.tokenize(Ra)),qa=this.removeEmpty(this.tokenize(qa));var od=qa.length,ld=Ra.length,cd=1,ud=od+ld;ed.maxEditLength&&(ud=Math.min(ud,ed.maxEditLength));var _d=(Ja=ed.timeout)!==null&&Ja!==void 0?Ja:1/0,yd=Date.now()+_d,gd=[{oldPos:-1,lastComponent:void 0}],Ed=this.extractCommon(gd[0],qa,Ra,0);if(gd[0].oldPos+1>=ld&&Ed+1>=od)return sd([{value:this.join(qa),count:qa.length}]);var Td=-1/0,kd=1/0;function Rd(){for(var Id=Math.max(Td,-cd);Id<=Math.min(kd,cd);Id+=2){var Md=void 0,Ld=gd[Id-1],Pd=gd[Id+1];Ld&&(gd[Id-1]=void 0);var qd=!1;if(Pd){var Yd=Pd.oldPos-Id;qd=Pd&&0<=Yd&&Yd<od}var Ud=Ld&&Ld.oldPos+1<ld;if(!qd&&!Ud){gd[Id]=void 0;continue}if(!Ud||qd&&Ld.oldPos+1<Pd.oldPos?Md=rd.addToPath(Pd,!0,void 0,0):Md=rd.addToPath(Ld,void 0,!0,1),Ed=rd.extractCommon(Md,qa,Ra,Id),Md.oldPos+1>=ld&&Ed+1>=od)return sd(Su$1(rd,Md.lastComponent,qa,Ra,rd.useLongestToken));gd[Id]=Md,Md.oldPos+1>=ld&&(kd=Math.min(kd,Id-1)),Ed+1>=od&&(Td=Math.max(Td,Id+1))}cd++}if(td)(function Id(){setTimeout(function(){if(cd>ud||Date.now()>yd)return td();Rd()||Id()},0)})();else for(;cd<=ud&&Date.now()<=yd;){var Nd=Rd();if(Nd)return Nd}},addToPath:function(Ra,qa,Ja,ed){var td=Ra.lastComponent;return td&&td.added===qa&&td.removed===Ja?{oldPos:Ra.oldPos+ed,lastComponent:{count:td.count+1,added:qa,removed:Ja,previousComponent:td.previousComponent}}:{oldPos:Ra.oldPos+ed,lastComponent:{count:1,added:qa,removed:Ja,previousComponent:td}}},extractCommon:function(Ra,qa,Ja,ed){for(var td=qa.length,rd=Ja.length,sd=Ra.oldPos,od=sd-ed,ld=0;od+1<td&&sd+1<rd&&this.equals(qa[od+1],Ja[sd+1]);)od++,sd++,ld++;return ld&&(Ra.lastComponent={count:ld,previousComponent:Ra.lastComponent}),Ra.oldPos=sd,od},equals:function(Ra,qa){return this.options.comparator?this.options.comparator(Ra,qa):Ra===qa||this.options.ignoreCase&&Ra.toLowerCase()===qa.toLowerCase()},removeEmpty:function(Ra){for(var qa=[],Ja=0;Ja<Ra.length;Ja++)Ra[Ja]&&qa.push(Ra[Ja]);return qa},castInput:function(Ra){return Ra},tokenize:function(Ra){return Ra.split("")},join:function(Ra){return Ra.join("")}};function Su$1(Ra,qa,Ja,ed,td){for(var rd=[],sd;qa;)rd.push(qa),sd=qa.previousComponent,delete qa.previousComponent,qa=sd;rd.reverse();for(var od=0,ld=rd.length,cd=0,ud=0;od<ld;od++){var _d=rd[od];if(_d.removed){if(_d.value=Ra.join(ed.slice(ud,ud+_d.count)),ud+=_d.count,od&&rd[od-1].added){var yd=rd[od-1];rd[od-1]=rd[od],rd[od]=yd}}else{if(!_d.added&&td){var gd=Ja.slice(cd,cd+_d.count);gd=gd.map(function(Td,kd){var Rd=ed[ud+kd];return Rd.length>Td.length?Rd:Td}),_d.value=Ra.join(gd)}else _d.value=Ra.join(Ja.slice(cd,cd+_d.count));cd+=_d.count,_d.added||(ud+=_d.count)}}var Ed=rd[ld-1];return ld>1&&typeof Ed.value=="string"&&(Ed.added||Ed.removed)&&Ra.equals("",Ed.value)&&(rd[ld-2].value+=Ed.value,rd.pop()),rd}var lr$1=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,cr$2=/\S/,fr$1=new Z$1;fr$1.equals=function(Ra,qa){return this.options.ignoreCase&&(Ra=Ra.toLowerCase(),qa=qa.toLowerCase()),Ra===qa||this.options.ignoreWhitespace&&!cr$2.test(Ra)&&!cr$2.test(qa)};fr$1.tokenize=function(Ra){for(var qa=Ra.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),Ja=0;Ja<qa.le
`));var qa=[],Ja=Ra.split(/(\n|\r\n)/);Ja[Ja.length-1]||Ja.pop();for(var ed=0;ed<Ja.length;ed++){var td=Ja[ed];ed%2&&!this.options.newlineIsToken?qa[qa.length-1]+=td:(this.options.ignoreWhitespace&&(td=td.trim()),qa.push(td))}return qa};var Nu$2=new Z$1;Nu$2.tokenize=function(Ra){return Ra.split(/(\S.+?[.!?])(?=\s+|$)/)};var Tu$2=new Z$1;Tu$2.tokenize=function(Ra){return Ra.split(/([{}:;,]|\s+)/)};function $e$3(Ra){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$e$3=function(qa){return typeof qa}:$e$3=function(qa){return qa&&typeof Symbol=="function"&&qa.constructor===Symbol&&qa!==Symbol.prototype?"symbol":typeof qa},$e$3(Ra)}var ku$1=Object.prototype.toString,Ae$2=new Z$1;Ae$2.useLongestToken=!0;Ae$2.tokenize=pr$2.tokenize;Ae$2.castInput=function(Ra){var qa=this.options,Ja=qa.undefinedReplacement,ed=qa.stringifyReplacer,td=ed===void 0?function(rd,sd){return typeof sd>"u"?Ja:sd}:ed;return typeof Ra=="string"?Ra:JSON.stringify(Bt$4(Ra,null,null,td),td," ")};Ae$2.equals=function(Ra,qa){return Z$1.prototype.equals.call(Ae$2,Ra.replace(/,([\r\n])/g,"$1"),qa.replace(/,([\r\n])/g,"$1"))};function Bt$4(Ra,qa,Ja,ed,td){qa=qa||[],Ja=Ja||[],ed&&(Ra=ed(td,Ra));var rd;for(rd=0;rd<qa.length;rd+=1)if(qa[rd]===Ra)return Ja[rd];var sd;if(ku$1.call(Ra)==="[object Array]"){for(qa.push(Ra),sd=new Array(Ra.length),Ja.push(sd),rd=0;rd<Ra.length;rd+=1)sd[rd]=Bt$4(Ra[rd],qa,Ja,ed,td);return qa.pop(),Ja.pop(),sd}if(Ra&&Ra.toJSON&&(Ra=Ra.toJSON()),$e$3(Ra)==="object"&&Ra!==null){qa.push(Ra),sd={},Ja.push(sd);var od=[],ld;for(ld in Ra)Ra.hasOwnProperty(ld)&&od.push(ld);for(od.sort(),rd=0;rd<od.length;rd+=1)ld=od[rd],sd[ld]=Bt$4(Ra[ld],qa,Ja,ed,ld);qa.pop(),Ja.pop()}else sd=Ra;return sd}var Ve$3=new Z$1;Ve$3.tokenize=function(Ra){return Ra.slice()};Ve$3.join=Ve$3.removeEmpty=function(Ra){return Ra};function dr$2(Ra,qa,Ja){return Ve$3.diff(Ra,qa,Ja)}function Fr$2(Ra){let qa=Ra.indexOf("\r");return qa>=0?Ra.charAt(qa+1)===`
`?"crlf":"cr":"lf"}function Be$4(Ra){switch(Ra){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function wt$2(Ra,qa){let Ja;switch(qa){case`
`:Ja=/\n/gu;break;case"\r":Ja=/\r/gu;break;case`\r
`:Ja=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(qa)}.`)}let ed=Ra.match(Ja);return ed?ed.length:0}function mr$2(Ra){return ne$3(!1,Ra,/\r\n?/gu,`
`)}var U$2="string",W$2="array",z$2="cursor",L$3="indent",P$2="align",I="trim",x$1="group",S="fill",_$2="if-break",R$2="indent-if-break",Y$2="line-suffix",j="line-suffix-boundary",B$1="line",N$3="label",b$1="break-parent",Ue$4=new Set([z$2,L$3,P$2,I,x$1,S,_$2,R$2,Y$2,j,B$1,N$3,b$1]);function Lu$1(Ra){if(typeof Ra=="string")return U$2;if(Array.isArray(Ra))return W$2;if(!Ra)return;let{type:qa}=Ra;if(Ue$4.has(qa))return qa}var G$3=Lu$1,Pu$1=Ra=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Ra);function Iu$2(Ra){let qa=Ra===null?"null":typeof Ra;if(qa!=="string"&&qa!=="object")return`Unexpected doc '${qa}',
Expected it to be 'string' or 'object'.`;if(G$3(Ra))throw new Error("doc is valid.");let Ja=Object.prototype.toString.call(Ra);if(Ja!=="[object Object]")return`Unexpected doc '${Ja}'.`;let ed=Pu$1([...Ue$4].map(td=>`'${td}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${ed}.`}var xt=class extends Error{constructor(qa){super(Iu$2(qa));n1(this,"name","InvalidDocError");this.doc=qa}},Q$3=xt,Er$2={};function Ru$2(Ra,qa,Ja,ed){let td=[Ra];for(;td.length>0;){let rd=td.pop();if(rd===Er$2){Ja(td.pop());continue}Ja&&td.push(rd,Er$2);let sd=G$3(rd);if(!sd)throw new Q$3(rd);if((qa==null?void 0:qa(rd))!==!1)switch(sd){case W$2:case S:{let od=sd===W$2?rd:rd.parts;for(let ld=od.length,cd=ld-1;cd>=0;--cd)td.push(od[cd]);break}case _$2:td.push(rd.flatContents,rd.breakContents);break;case x$1:if(ed&&rd.expandedStates)for(let od=rd.expandedStates.length,ld=od-1;ld>=0;--ld)td.push(rd.expandedStates[ld]);else td.push(rd.contents);break;case P$2:case L$3:case R$2:case N$3:case Y$2:td.push(rd.contents);break;case U$2:case z$2:case I:case j:case B$1:case b$1:break;default:throw new Q$3(rd)}}}var we$2=Ru$2,hr$1=()=>{},ze$3=hr$1;function De$2(Ra){return{type:L$3,contents:Ra}}function ae$2(Ra,qa){return{type:P$2,contents:qa,n:Ra}}function _t$2(Ra,qa={}){return ze$3(qa.expandedStates),{type:x$1,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function Cr$1(Ra){return ae$2(Number.NEGATIVE_INFINITY,Ra)}function gr$2(Ra){return ae$2({type:"root"},Ra)}function yr$2(Ra){return ae$2(-1,Ra)}function Ar$2(Ra,qa){return _t$2(Ra[0],{...qa,expandedStates:Ra})}function Ge$2(Ra){return{type:S,parts:Ra}}function Br$4(Ra,qa="",Ja={}){return{type:_$2,breakContents:Ra,flatContents:qa,groupId:Ja.groupId}}function wr$3(Ra,qa){return{type:R$2,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function xe$3(Ra){return{type:Y$2,contents:Ra}}var xr$3={type:j},de$2={type:b$1},_r$3={type:I},_e$4={type:B$1,hard:!0},vt$3={type:B$1,hard:!0,literal:!0},Ke$2={type:B$1},vr$2={type:B$1,soft:!0},q$2=[_e$4,de$2],qe$3=[vt$3,de$2],ve$3={type:z$2};function be$5(Ra,qa){let Ja=[];for(let ed=0;ed<qa.length;ed++)ed!==0&&Ja.push(Ra),Ja.push(qa[ed]);return Ja}function Je$2(Ra,qa,Ja){let ed=Ra;if(qa>0){for(let td=0;td<Math.floor(qa/Ja);++td)ed=De$2(ed);ed=ae$2(qa%Ja,ed),ed=ae$2(Number.NEGATIVE_INFINITY,ed)}return ed}function br$2(Ra,qa){return Ra?{type:N$3,label:Ra,contents:qa}:qa}function ee$2(Ra){var qa;if(!Ra)return"";if(Array.isArray(Ra)){let Ja=[];for(let ed of Ra)if(Array.isArray(ed))Ja.push(...ee$2(ed));else{let td=ee$2(ed);td!==""&&Ja.push(td)}return Ja}return Ra.type===_$2?{...Ra,breakContents:ee$2(Ra.breakContents),flatContents:ee$2(Ra.flatContents)}:Ra.type===x$1?{...Ra,contents:ee$2(Ra.contents),expandedStates:(qa=Ra.expandedStates)==null?void 0:qa.map(ee$2)}:Ra.type===S?{type:"fill",parts:Ra.parts.map(ee$2)}:Ra.contents?{...Ra,contents:ee$2(Ra.contents)}:Ra}function Or$3(Ra){let qa=Object.create(null),Ja=new Set;return ed(ee$2(Ra));function ed(rd,sd,od){var ld,cd;if(typeof rd=="string")return JSON.stringify(rd);if(Array.isArray(rd)){let ud=rd.map(ed).filter(Boolean);return ud.length===1?ud[0]:`[${ud.join(", ")}]`}if(rd.type===B$1){let ud=((ld=od==null?void 0:od[sd+1])==null?void 0:ld.type)===b$1;return rd.literal?ud?"literalline":"literallineWithoutBreakParent":rd.hard?ud?"hardline":"hardlineWithoutBreakParent":rd.soft?"softline":"line"}if(rd.type===b$1)return((cd=od==null?void 0:od[sd-1])==null?void 0:cd.type)===B$1&&od[sd-1].hard?void 0:"breakParent";if(rd.type===I)return"trim";if(rd.type===L$3)return"indent("+ed(rd.contents)+")";if(rd.type===P$2)return rd.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+ed(rd.contents)+")":rd.n<0?"dedent("+ed(rd.contents)+")":rd.n.type==="root"?"markAsRoot("+ed(rd.contents)+")":"align("+JSON.stringify(rd.n)+", "+ed(rd.contents)+")";if(rd.type===_$2)return"ifBreak("+ed(rd.breakContents)+(rd.flatContents?", "+ed(rd.flatContents):"")+(rd.groupId?(rd.flatContents?"":', ""')+`, { groupId: ${td(rd.groupId)} }`:"")+")";if(rd.type===R$2){let ud=[];rd.negate&&ud.push("negate: true"),rd.groupId&&ud.push(`groupId: ${td(rd.groupId)}`);let _d=ud.length>0?`, { ${ud.join(", ")} }`:"";return`indentIfBreak(${ed(rd.contents)}${_d})`}if(rd.type===x$1){let ud=[];rd.break&&rd.break!=="propagated"&&ud.push("shouldBreak: true"),rd.id&&ud.push(`id: ${td(rd.id)}`);let _d=ud.length>0?`, {
`)):Ja)}function Uu$3(Ra){if(Ra.type===B$1)return!0}function Hr$4(Ra){return Xe$2(Ra,Uu$3,!1)}function Qe$2(Ra,qa){return Ra.type===N$3?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}var H$2=Symbol("MODE_BREAK"),J$2=Symbol("MODE_FLAT"),Te$3=Symbol("cursor");function Wr$3(){return{value:"",length:0,queue:[]}}function zu$1(Ra,qa){return bt$3(Ra,{type:"indent"},qa)}function Gu$2(Ra,qa,Ja){return qa===Number.NEGATIVE_INFINITY?Ra.root||Wr$3():qa<0?bt$3(Ra,{type:"dedent"},Ja):qa?qa.type==="root"?{...Ra,root:Ra}:bt$3(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},Ja):Ra}function bt$3(Ra,qa,Ja){let ed=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],td="",rd=0,sd=0,od=0;for(let Ed of ed)switch(Ed.type){case"indent":ud(),Ja.useTabs?ld(1):cd(Ja.tabWidth);break;case"stringAlign":ud(),td+=Ed.n,rd+=Ed.n.length;break;case"numberAlign":sd+=1,od+=Ed.n;break;default:throw new Error(`Unexpected type '${Ed.type}'`)}return yd(),{...Ra,value:td,length:rd,queue:ed};function ld(Ed){td+=" ".repeat(Ed),rd+=Ja.tabWidth*Ed}function cd(Ed){td+=" ".repeat(Ed),rd+=Ed}function ud(){Ja.useTabs?_d():yd()}function _d(){sd>0&&ld(sd),gd()}function yd(){od>0&&cd(od),gd()}function gd(){sd=0,od=0}}function Ot$3(Ra){let qa=0,Ja=0,ed=Ra.length;e:for(;ed--;){let td=Ra[ed];if(td===Te$3){Ja++;continue}for(let rd=td.length-1;rd>=0;rd--){let sd=td[rd];if(sd===" "||sd===" ")qa++;else{Ra[ed]=td.slice(0,rd+1);break e}}}if(qa>0||Ja>0)for(Ra.length=ed+1;Ja-- >0;)Ra.push(Te$3);return qa}function et$2(Ra,qa,Ja,ed,td,rd){if(Ja===Number.POSITIVE_INFINITY)return!0;let sd=qa.length,od=[Ra],ld=[];for(;Ja>=0;){if(od.length===0){if(sd===0)return!0;od.push(qa[--sd]);continue}let{mode:cd,doc:ud}=od.pop(),_d=G$3(ud);switch(_d){case U$2:ld.push(ud),Ja-=Oe$4(ud);break;case W$2:case S:{let yd=_d===W$2?ud:ud.parts;for(let gd=yd.length-1;gd>=0;gd--)od.push({mode:cd,doc:yd[gd]});break}case L$3:case P$2:case R$2:case N$3:od.push({mode:cd,doc:ud.contents});break;case I:Ja+=Ot$3(ld);break;case x$1:{if(rd&&ud.break)return!1;let yd=ud.break?H$2:cd,gd=ud.expandedStates&&yd===H$2?y$1(!1,ud.expandedStates,-1):ud.contents;od.push({mode:yd,doc:gd});break}case _$2:{let yd=(ud.groupId?td[ud.groupId]||J$2:cd)===H$2?ud.breakContents:ud.flatContents;yd&&od.push({mode:cd,doc:yd});break}case B$1:if(cd===H$2||ud.hard)return!0;ud.soft||(ld.push(" "),Ja--);break;case Y$2:ed=!0;break;case j:if(ed)return!1;break}}return!1}function Fe$2(Ra,qa){let Ja={},ed=qa.printWidth,td=Be$4(qa.endOfLine),rd=0,sd=[{ind:Wr$3(),mode:H$2,doc:Ra}],od=[],ld=!1,cd=[],ud=0;for(Rr$2(Ra);sd.length>0;){let{ind:yd,mode:gd,doc:Ed}=sd.pop();switch(G$3(Ed)){case U$2:{let Td=td!==`
`?ne$3(!1,Ed,`
`,td):Ed;od.push(Td),sd.length>0&&(rd+=Oe$4(Td));break}case W$2:for(let Td=Ed.length-1;Td>=0;Td--)sd.push({ind:yd,mode:gd,doc:Ed[Td]});break;case z$2:if(ud>=2)throw new Error("There are too many 'cursor' in doc.");od.push(Te$3),ud++;break;case L$3:sd.push({ind:zu$1(yd,qa),mode:gd,doc:Ed.contents});break;case P$2:sd.push({ind:Gu$2(yd,Ed.n,qa),mode:gd,doc:Ed.contents});break;case I:rd-=Ot$3(od);break;case x$1:switch(gd){case J$2:if(!ld){sd.push({ind:yd,mode:Ed.break?H$2:J$2,doc:Ed.contents});break}case H$2:{ld=!1;let Td={ind:yd,mode:J$2,doc:Ed.contents},kd=ed-rd,Rd=cd.length>0;if(!Ed.break&&et$2(Td,sd,kd,Rd,Ja))sd.push(Td);else if(Ed.expandedStates){let Nd=y$1(!1,Ed.expandedStates,-1);if(Ed.break){sd.push({ind:yd,mode:H$2,doc:Nd});break}else for(let Id=1;Id<Ed.expandedStates.length+1;Id++)if(Id>=Ed.expandedStates.length){sd.push({ind:yd,mode:H$2,doc:Nd});break}else{let Md=Ed.expandedStates[Id],Ld={ind:yd,mode:J$2,doc:Md};if(et$2(Ld,sd,kd,Rd,Ja)){sd.push(Ld);break}}}else sd.push({ind:yd,mode:H$2,doc:Ed.contents});break}}Ed.id&&(Ja[Ed.id]=y$1(!1,sd,-1).mode);break;case S:{let Td=ed-rd,{parts:kd}=Ed;if(kd.length===0)break;let[Rd,Nd]=kd,Id={ind:yd,mode:J$2,doc:Rd},Md={ind:yd,mode:H$2,doc:Rd},Ld=et$2(Id,[],Td,cd.length>0,Ja,!0);if(kd.length===1){Ld?sd.push(Id):sd.push(Md);break}let Pd={ind:yd,mode:J$2,doc:Nd},qd={ind:yd,mode:H$2,doc:Nd};if(kd.length===2){Ld?sd.push(Pd,Id):sd.push(qd,Md);break}kd.splice(0,2);let Yd={ind:yd,mode:gd,doc:Ge$2(kd)},Ud=kd[0];et$2({ind:yd,mode:J$2,doc:[Rd,Nd,Ud]},[],Td,cd.length>0,Ja,!0)?sd.push(Yd,Pd,Id):Ld?sd.push(Yd,qd,Id):sd.push(Yd,qd,Md);break}case _$2:case R$2:{let Td=Ed.groupId?Ja[Ed.groupId]:gd;if(Td===H$2){let kd=Ed.type===_$2?Ed.breakContents:Ed.negate?Ed.contents:De$2(Ed.contents);kd&&sd.push({ind:yd,mode:gd,doc:kd})}if(Td===J$2){let kd=Ed.type===_$2?Ed.flatContents:Ed.negate?De$2(Ed.contents):Ed.contents;kd&&sd.push({ind:yd,mode:gd,doc:kd})}break}case Y$2:cd.push({ind:yd,mode:gd,doc:Ed.contents});break;case j:cd.length>0&&sd.push({ind:yd,mode:gd,doc:_e$4});break;case B$1:switch(gd){case J$2:if(Ed.hard)ld=!0;else{Ed.soft||(od.push(" "),rd+=1);break}case H$2:if(cd.length>0){sd.push({ind:yd,mode:gd,doc:Ed},...cd.reverse()),cd.length=0;break}Ed.literal?yd.root?(od.push(td,yd.root.value),rd=yd.root.length):(od.push(td),rd=0):(rd-=Ot$3(od),od.push(td+yd.value),rd=yd.length);break}break;case N$3:sd.push({ind:yd,mode:gd,doc:Ed.contents});break;case b$1:break;default:throw new Q$3(Ed)}sd.length===0&&cd.length>0&&(sd.push(...cd.reverse()),cd.length=0)}let _d=od.indexOf(Te$3);if(_d!==-1){let yd=od.indexOf(Te$3,_d+1),gd=od.slice(0,_d).join(""),Ed=od.slice(_d+1,yd).join(""),Td=od.slice(yd+1).join("");return{formatted:gd+Ed+Td,cursorNodeStart:gd.length,cursorNodeText:Ed}}return{formatted:od.join("")}}function Ku$3(Ra,qa,Ja=0){let ed=0;for(let td=Ja;td<Ra.length;++td)Ra[td]===" "?ed=ed+qa-ed%qa:ed++;return ed}var me$1=Ku$3,te$3,Nt$3,tt$2,St$3=class{constructor(qa){Dr$2(this,te$3),this.stack=[qa]}get key(){let{stack:qa,siblings:Ja}=this;return y$1(!1,qa,Ja===null?-2:-4)??null}get index(){return this.siblings===null?null:y$1(!1,this.stack,-2)}get node(){return y$1(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:qa}=this,Ja=y$1(!1,qa,-3);return Array.isArray(Ja)?Ja:null}get next(){let{siblings:qa}=this;return qa===null?null:qa[this.index+1]}get previous(){let{siblings:qa}=this;return qa===null?null:qa[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:qa,index:Ja}=this;return qa!==null&&Ja===qa.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...pe$1(this,te$3,tt$2).call(this)]}getName(){let{stack:qa}=this,{length:Ja}=qa;return Ja>1?y$1(!1,qa,-2):null}getValue(){return y$1(!1,this.stack,-1)}getNode(qa=0){let Ja=pe$1(this,te$3,Nt$3).call(this,qa);return Ja===-1?null:this.stack[Ja]}getParentNode(qa=0){return this.getNode(qa+1)}call(qa,...Ja){let{stack:ed}=this,{length:td}=ed,rd=y$1(!1,ed,-1);for(let sd of Ja)rd=r
`)return qa-2;if(td===`
`||td==="\r"||td==="\u2028"||td==="\u2029")return qa-1}else{if(td==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(td===`
`||td==="\r"||td==="\u2028"||td==="\u2029")return qa+1}return qa}var M$3=Ju$3;function Xu$3(Ra,qa,Ja={}){let ed=T$1(Ra,Ja.backwards?qa-1:qa,Ja),td=M$3(Ra,ed,Ja);return ed!==td}var V$4=Xu$3;function Zu$4(Ra){return Array.isArray(Ra)&&Ra.length>0}var kt$3=Zu$4,Gr$3=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Qu$2=Ra=>Object.keys(Ra).filter(qa=>!Gr$3.has(qa));function eo$1(Ra){return Ra?qa=>Ra(qa,Gr$3):Qu$2}var X$2=eo$1;function to$1(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",Ja=String(Ra.name||Ra.id&&(typeof Ra.id=="object"?Ra.id.name:Ra.id)||Ra.key&&(typeof Ra.key=="object"?Ra.key.name:Ra.key)||Ra.value&&(typeof Ra.value=="object"?"":String(Ra.value))||Ra.operator||"");return Ja.length>20&&(Ja=Ja.slice(0,19)+"…"),qa+(Ja?" "+Ja:"")}function Lt$2(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=to$1(Ra)}function ue$2(Ra,qa){qa.leading=!0,qa.trailing=!1,Lt$2(Ra,qa)}function re$4(Ra,qa,Ja){qa.leading=!1,qa.trailing=!1,Ja&&(qa.marker=Ja),Lt$2(Ra,qa)}function oe$3(Ra,qa){qa.leading=!1,qa.trailing=!0,Lt$2(Ra,qa)}var Pt$2=new WeakMap;function ut$1(Ra,qa){if(Pt$2.has(Ra))return Pt$2.get(Ra);let{printer:{getCommentChildNodes:Ja,canAttachComment:ed,getVisitorKeys:td},locStart:rd,locEnd:sd}=qa;if(!ed)return[];let od=((Ja==null?void 0:Ja(Ra,qa))??[...Tt$3(Ra,{getVisitorKeys:X$2(td)})]).flatMap(ld=>ed(ld)?[ld]:ut$1(ld,qa));return od.sort((ld,cd)=>rd(ld)-rd(cd)||sd(ld)-sd(cd)),Pt$2.set(Ra,od),od}function qr$3(Ra,qa,Ja,ed){let{locStart:td,locEnd:rd}=Ja,sd=td(qa),od=rd(qa),ld=ut$1(Ra,Ja),cd,ud,_d=0,yd=ld.length;for(;_d<yd;){let gd=_d+yd>>1,Ed=ld[gd],Td=td(Ed),kd=rd(Ed);if(Td<=sd&&od<=kd)return qr$3(Ed,qa,Ja,Ed);if(kd<=sd){cd=Ed,_d=gd+1;continue}if(od<=Td){ud=Ed,yd=gd;continue}throw new Error("Comment location overlaps with node location")}if((ed==null?void 0:ed.type)==="TemplateLiteral"){let{quasis:gd}=ed,Ed=Rt$4(gd,qa,Ja);cd&&Rt$4(gd,cd,Ja)!==Ed&&(cd=null),ud&&Rt$4(gd,ud,Ja)!==Ed&&(ud=null)}return{enclosingNode:ed,precedingNode:cd,followingNode:ud}}var It$3=()=>!1;function Jr$3(Ra,qa){let{comments:Ja}=Ra;if(delete Ra.comments,!kt$3(Ja)||!qa.printer.canAttachComment)return;let ed=[],{locStart:td,locEnd:rd,printer:{experimentalFeatures:{avoidAstMutation:sd=!1}={},handleComments:od={}},originalText:ld}=qa,{ownLine:cd=It$3,endOfLine:ud=It$3,remaining:_d=It$3}=od,yd=Ja.map((gd,Ed)=>({...qr$3(Ra,gd,qa),comment:gd,text:ld,options:qa,ast:Ra,isLastComment:Ja.length-1===Ed}));for(let[gd,Ed]of yd.entries()){let{comment:Td,precedingNode:kd,enclosingNode:Rd,followingNode:Nd,text:Id,options:Md,ast:Ld,isLastComment:Pd}=Ed;if(Md.parser==="json"||Md.parser==="json5"||Md.parser==="jsonc"||Md.parser==="__js_expression"||Md.parser==="__ts_expression"||Md.parser==="__vue_expression"||Md.parser==="__vue_ts_expression"){if(td(Td)-td(Ld)<=0){ue$2(Ld,Td);continue}if(rd(Td)-rd(Ld)>=0){oe$3(Ld,Td);continue}}let qd;if(sd?qd=[Ed]:(Td.enclosingNode=Rd,Td.precedingNode=kd,Td.followingNode=Nd,qd=[Td,Id,Md,Ld,Pd]),ro$1(Id,Md,yd,gd))Td.placement="ownLine",cd(...qd)||(Nd?ue$2(Nd,Td):kd?oe$3(kd,Td):re$4(Rd||Ld,Td));else if(no$2(Id,Md,yd,gd))Td.placement="endOfLine",ud(...qd)||(kd?oe$3(kd,Td):Nd?ue$2(Nd,Td):re$4(Rd||Ld,Td));else if(Td.placement="remaining",!_d(...qd))if(kd&&Nd){let Yd=ed.length;Yd>0&&ed[Yd-1].followingNode!==Nd&&Kr$4(ed,Md),ed.push(Ed)}else kd?oe$3(kd,Td):Nd?ue$2(Nd,Td):re$4(Rd||Ld,Td)}if(Kr$4(ed,qa),!sd)for(let gd of Ja)delete gd.precedingNode,delete gd.enclosingNode,delete gd.followingNode}var Xr$3=Ra=>!/[\S\n\u2028\u2029]/u.test(Ra);function ro$1(Ra,qa,Ja,ed){let{comment:td,precedingNode:rd}=Ja[ed],{locStart:sd,locEnd:od}=qa,ld=sd(td);if(rd)for(let cd=ed-1;cd>=0;cd--){let{comment:ud,precedingNode:_d}=Ja[cd];if(_d!==rd||!Xr$3(Ra.slice(od(ud),ld)))break;ld=sd(ud)}return V$4(Ra,ld,{backwards:!0})}function no$2(Ra,qa,Ja,ed){let{comment:td,followingNode:rd}=Ja[ed],{locStart:sd,locEnd:od}=qa,ld=od(td);if(rd)for(let cd=ed+1;cd<Ja.length;cd++){let{comment:ud,followingNode:_d}=Ja[cd];if(_d!==rd||!Xr$3(Ra.slice(ld,sd(ud))))break;ld=od(ud)}return V$4(Ra,ld)}function Kr$4(Ra,qa){var Ja
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:Ra=>typeof Ra=="string"||typeof Ra=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:Ra=>typeof Ra=="string"||typeof Ra=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function ot$1({plugins:Ra=[],showDeprecated:qa=!1}={}){let Ja=Ra.flatMap(td=>td.languages??[]),ed=[];for(let td of lo$3(Object.assign({},...Ra.map(({options:rd})=>rd),rn$2)))!qa&&td.deprecated||(Array.isArray(td.choices)&&(qa||(td.choices=td.choices.filter(rd=>!rd.deprecated)),td.name==="parser"&&(td.choices=[...td.choices,...Do$2(td.choices,Ja,Ra)])),td.pluginDefaults=Object.fromEntries(Ra.filter(rd=>{var sd;return((sd=rd.defaultOptions)==null?void 0:sd[td.name])!==void 0}).map(rd=>[rd.name,rd.defaultOptions[td.name]])),ed.push(td));return{languages:Ja,options:ed}}function*Do$2(Ra,qa,Ja){let ed=new Set(Ra.map(td=>td.value));for(let td of qa)if(td.parsers){for(let rd of td.parsers)if(!ed.has(rd)){ed.add(rd);let sd=Ja.find(ld=>ld.parsers&&Object.prototype.hasOwnProperty.call(ld.parsers,rd)),od=td.name;sd!=null&&sd.name&&(od+=` (plugin: ${sd.name})`),yield{value:rd,description:od}}}}function lo$3(Ra){let qa=[];for(let[Ja,ed]of Object.entries(Ra)){let td={name:Ja,...ed};Array.isArray(td.default)&&(td.default=y$1(!1,td.default,-1).value),qa.push(td)}return qa}var co$2=Ra=>String(Ra).split(/[/\\]/u).pop();function nn$2(Ra,qa){if(!qa)return;let Ja=co$2(qa).toLowerCase();return Ra.find(({filenames:ed})=>ed==null?void 0:ed.some(td=>td.toLowerCase()===Ja))??Ra.find(({extensions:ed})=>ed==null?void 0:ed.some(td=>Ja.endsWith(td)))}function fo$1(Ra,qa){if(qa)return Ra.find(({name:Ja})=>Ja.toLowerCase()===qa)??Ra.find(({aliases:Ja})=>Ja==null?void 0:Ja.includes(qa))??Ra.find(({extensions:Ja})=>Ja==null?void 0:Ja.includes(`.${qa}`))}function po$2(Ra,qa){let Ja=Ra.plugins.flatMap(td=>td.languages??[]),ed=fo$1(Ja,qa.language)??nn$2(Ja,qa.physicalFile)??nn$2(Ja,qa.file)??(qa.physicalFile,void 0);return ed==null?void 0:ed.parsers[0]}var un$2=po$2,ie$3={key:Ra=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(Ra)?Ra:JSON.stringify(Ra),value(Ra){if(Ra===null||typeof Ra!="object")return JSON.stringify(Ra);if(Array.isArray(Ra))return`[${Ra.map(Ja=>ie$3.value(Ja)).join(", ")}]`;let qa=Object.keys(Ra);return qa.length===0?"{}":`{ ${qa.map(Ja=>`${ie$3.key(Ja)}: ${ie$3.value(Ra[Ja])}`).join(", ")} }`},pair:({key:Ra,value:qa})=>ie$3.value({[Ra]:qa})},Yt$1=Me$5(it$2()),an$2=(Ra,qa,{descriptor:Ja})=>{let ed=[`${Yt$1.default.yellow(typeof Ra=="string"?Ja.key(Ra):Ja.pair(Ra))} is deprecated`];return qa&&ed.push(`we now treat it as ${Yt$1.default.blue(typeof qa=="string"?Ja.key(qa):Ja.pair(qa))}`),ed.join("; ")+"."},le$3=Me$5(it$2()),st$1=Symbol.for("vnopts.VALUE_NOT_EXIST"),he$2=Symbol.for("vnopts.VALUE_UNCHANGED"),Dn$3=" ".repeat(2),cn$3=(Ra,qa,Ja)=>{let{text:ed,list:td}=Ja.normalizeExpectedResult(Ja.schemas[Ra].expected(Ja)),rd=[];return ed&&rd.push(ln$2(Ra,qa,ed,Ja.descriptor)),td&&rd.push([ln$2(Ra,qa,td.title,Ja.descriptor)].concat(td.values.map(sd=>fn$2(sd,Ja.loggerPrintWidth))).join(`
`)),pn$2(rd,Ja.loggerPrintWidth)};function ln$2(Ra,qa,Ja,ed){return[`Invalid ${le$3.default.red(ed.key(Ra))} value.`,`Expected ${le$3.default.blue(Ja)},`,`but received ${qa===st$1?le$3.default.gray("nothing"):le$3.default.red(ed.value(qa))}.`].join(" ")}function fn$2({text:Ra,list:qa},Ja){let ed=[];return Ra&&ed.push(`- ${le$3.default.blue(Ra)}`),qa&&ed.push([`- ${le$3.default.blue(qa.title)}:`].concat(qa.values.map(td=>fn$2(td,Ja-Dn$3.length).replace(/^|\n/g,`$&${Dn$3}`))).join(`
`)),pn$2(ed,Ja)}function pn$2(Ra,qa){if(Ra.length===1)return Ra[0];let[Ja,ed]=Ra,[td,rd]=Ra.map(sd=>sd.split(`
`,1)[0].length);return td>qa&&td>rd?ed:Ja}var Wt$1=Me$5(it$2()),jt$2=[],dn$3=[];function Ht$2(Ra,qa){if(Ra===qa)return 0;let Ja=Ra;Ra.length>qa.length&&(Ra=qa,qa=Ja);let ed=Ra.length,td=qa.length;for(;ed>0&&Ra.charCodeAt(~-ed)===qa.charCodeAt(~-td);)ed--,td--;let rd=0;for(;rd<ed&&Ra.charCodeAt(rd)===qa.charCodeAt(rd);)rd++;if(ed-=rd,td-=rd,ed===0)return td;let sd,od,ld,cd,ud=0,_d=0;for(;ud<ed;)dn$3[ud]=Ra.charCodeAt(rd+ud),jt$2[ud]=++ud;for(;_d<td;)for(sd=qa.charCodeAt(rd+_d),ld=_d++,od=_d,ud=0;ud<ed;ud++)cd=sd===dn$3[ud]?ld:ld+1,ld=jt$2[ud],od=jt$2[ud]=ld>od?cd>od?od+1:cd:cd>ld?ld+1:cd;return od}var at$2=(Ra,qa,{descriptor:Ja,logger:ed,schemas:td})=>{let rd=[`Ignored unknown option ${Wt$1.default.yellow(Ja.pair({key:Ra,value:qa}))}.`],sd=Object.keys(td).sort().find(od=>Ht$2(Ra,od)<3);sd&&rd.push(`Did you mean ${Wt$1.default.blue(Ja.key(sd))}?`),ed.warn(rd.join(" "))},Fo$2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function mo$3(Ra,qa){let Ja=new Ra(qa),ed=Object.create(Ja);for(let td of Fo$2)td in qa&&(ed[td]=Eo$1(qa[td],Ja,O$2.prototype[td].length));return ed}var O$2=class{static create(qa){return mo$3(this,qa)}constructor(qa){this.name=qa.name}default(qa){}expected(qa){return"nothing"}validate(qa,Ja){return!1}deprecated(qa,Ja){return!1}forward(qa,Ja){}redirect(qa,Ja){}overlap(qa,Ja,ed){return qa}preprocess(qa,Ja){return qa}postprocess(qa,Ja){return he$2}};function Eo$1(Ra,qa,Ja){return typeof Ra=="function"?(...ed)=>Ra(...ed.slice(0,Ja-1),qa,...ed.slice(Ja-1)):()=>Ra}var Dt$4=class extends O$2{constructor(qa){super(qa),this._sourceName=qa.sourceName}expected(qa){return qa.schemas[this._sourceName].expected(qa)}validate(qa,Ja){return Ja.schemas[this._sourceName].validate(qa,Ja)}redirect(qa,Ja){return this._sourceName}},lt$2=class extends O$2{expected(){return"anything"}validate(){return!0}},ct$1=class extends O$2{constructor({valueSchema:qa,name:Ja=qa.name,...ed}){super({...ed,name:Ja}),this._valueSchema=qa}expected(qa){let{text:Ja,list:ed}=qa.normalizeExpectedResult(this._valueSchema.expected(qa));return{text:Ja&&`an array of ${Ja}`,list:ed&&{title:"an array of the following values",values:[{list:ed}]}}}validate(qa,Ja){if(!Array.isArray(qa))return!1;let ed=[];for(let td of qa){let rd=Ja.normalizeValidateResult(this._valueSchema.validate(td,Ja),td);rd!==!0&&ed.push(rd.value)}return ed.length===0?!0:{value:ed}}deprecated(qa,Ja){let ed=[];for(let td of qa){let rd=Ja.normalizeDeprecatedResult(this._valueSchema.deprecated(td,Ja),td);rd!==!1&&ed.push(...rd.map(({value:sd})=>({value:[sd]})))}return ed}forward(qa,Ja){let ed=[];for(let td of qa){let rd=Ja.normalizeForwardResult(this._valueSchema.forward(td,Ja),td);ed.push(...rd.map(Fn$2))}return ed}redirect(qa,Ja){let ed=[],td=[];for(let rd of qa){let sd=Ja.normalizeRedirectResult(this._valueSchema.redirect(rd,Ja),rd);"remain"in sd&&ed.push(sd.remain),td.push(...sd.redirect.map(Fn$2))}return ed.length===0?{redirect:td}:{redirect:td,remain:ed}}overlap(qa,Ja){return qa.concat(Ja)}};function Fn$2({from:Ra,to:qa}){return{from:[Ra],to:qa}}var ft$2=class extends O$2{expected(){return"true or false"}validate(qa){return typeof qa=="boolean"}};function En$2(Ra,qa){let Ja=Object.create(null);for(let ed of Ra){let td=ed[qa];if(Ja[td])throw new Error(`Duplicate ${qa} ${JSON.stringify(td)}`);Ja[td]=ed}return Ja}function hn$2(Ra,qa){let Ja=new Map;for(let ed of Ra){let td=ed[qa];if(Ja.has(td))throw new Error(`Duplicate ${qa} ${JSON.stringify(td)}`);Ja.set(td,ed)}return Ja}function Cn$3(){let Ra=Object.create(null);return qa=>{let Ja=JSON.stringify(qa);return Ra[Ja]?!0:(Ra[Ja]=!0,!1)}}function gn$3(Ra,qa){let Ja=[],ed=[];for(let td of Ra)qa(td)?Ja.push(td):ed.push(td);return[Ja,ed]}function yn$3(Ra){return Ra===Math.floor(Ra)}function An$2(Ra,qa){if(Ra===qa)return 0;let Ja=typeof Ra,ed=typeof qa,td=["undefined","object","boolean","number","string"];return Ja!==ed?td.indexOf(Ja)-td.indexOf(ed):Ja!=="string"?Number(Ra)-Number(qa):Ra.localeCompare(qa)}function Bn$3(Ra){return(...qa)=>{let Ja=Ra(...qa);return typeof Ja=="string"?new
`+ed,Ra.codeFrame=ed,Ra}throw Ra}var ce$3=ko$1;async function Un$3(Ra,qa,Ja,ed,td){let{embeddedLanguageFormatting:rd,printer:{embed:sd,hasPrettierIgnore:od=()=>!1,getVisitorKeys:ld}}=Ja;if(!sd||rd!=="auto")return;if(sd.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let cd=X$2(sd.getVisitorKeys??ld),ud=[];gd();let _d=Ra.stack;for(let{print:Ed,node:Td,pathStack:kd}of ud)try{Ra.stack=kd;let Rd=await Ed(yd,qa,Ra,Ja);Rd&&td.set(Td,Rd)}catch(Rd){if(globalThis.PRETTIER_DEBUG)throw Rd}Ra.stack=_d;function yd(Ed,Td){return Po$1(Ed,Td,Ja,ed)}function gd(){let{node:Ed}=Ra;if(Ed===null||typeof Ed!="object"||od(Ra))return;for(let kd of cd(Ed))Array.isArray(Ed[kd])?Ra.each(gd,kd):Ra.call(gd,kd);let Td=sd(Ra,Ja);if(Td){if(typeof Td=="function"){ud.push({print:Td,node:Ed,pathStack:[...Ra.stack]});return}td.set(Ed,Td)}}}async function Po$1(Ra,qa,Ja,ed){let td=await se$2({...Ja,...qa,parentParser:Ja.parser,originalText:Ra},{passThrough:!0}),{ast:rd}=await ce$3(Ra,td),sd=await ed(rd,td);return Ze$3(sd)}function Io$1(Ra,qa){let{originalText:Ja,[Symbol.for("comments")]:ed,locStart:td,locEnd:rd,[Symbol.for("printedComments")]:sd}=qa,{node:od}=Ra,ld=td(od),cd=rd(od);for(let ud of ed)td(ud)>=ld&&rd(ud)<=cd&&sd.add(ud);return Ja.slice(ld,cd)}var zn$3=Io$1;async function Ye$2(Ra,qa){({ast:Ra}=await Qt$2(Ra,qa));let Ja=new Map,ed=new Mr$3(Ra),td=new Map;await Un$3(ed,sd,qa,Ye$2,td);let rd=await Gn$4(ed,qa,sd,void 0,td);return en$2(qa),rd;function sd(ld,cd){return ld===void 0||ld===ed?od(cd):Array.isArray(ld)?ed.call(()=>od(cd),...ld):ed.call(()=>od(cd),ld)}function od(ld){let cd=ed.node;if(cd==null)return"";let ud=cd&&typeof cd=="object"&&ld===void 0;if(ud&&Ja.has(cd))return Ja.get(cd);let _d=Gn$4(ed,qa,sd,ld,td);return ud&&Ja.set(cd,_d),_d}}function Gn$4(Ra,qa,Ja,ed,td){var rd;let{node:sd}=Ra,{printer:od}=qa,ld;return(rd=od.hasPrettierIgnore)!=null&&rd.call(od,Ra)?ld=zn$3(Ra,qa):td.has(sd)?ld=td.get(sd):ld=od.print(Ra,qa,Ja,ed),sd===qa.cursorNode&&(ld=Qe$2(ld,cd=>[ve$3,cd,ve$3])),od.printComment&&(!od.willPrintOwnComments||!od.willPrintOwnComments(Ra,qa))&&(ld=Qr$4(Ra,ld,qa)),ld}async function Qt$2(Ra,qa){let Ja=Ra.comments??[];qa[Symbol.for("comments")]=Ja,qa[Symbol.for("tokens")]=Ra.tokens??[],qa[Symbol.for("printedComments")]=new Set,Jr$3(Ra,qa);let{printer:{preprocess:ed}}=qa;return Ra=ed?await ed(Ra,qa):Ra,{ast:Ra,comments:Ja}}function Ro$1(Ra,qa){let{cursorOffset:Ja,locStart:ed,locEnd:td}=qa,rd=X$2(qa.printer.getVisitorKeys),sd=ld=>ed(ld)<=Ja&&td(ld)>=Ja,od=Ra;for(let ld of Ur$3(Ra,{getVisitorKeys:rd,filter:sd}))od=ld;return od}var Kn$3=Ro$1;function Yo$1(Ra,qa){let{printer:{massageAstNode:Ja,getVisitorKeys:ed}}=qa;if(!Ja)return Ra;let td=X$2(ed),rd=Ja.ignoredProperties??new Set;return sd(Ra);function sd(od,ld){if(!(od!==null&&typeof od=="object"))return od;if(Array.isArray(od))return od.map(yd=>sd(yd,ld)).filter(Boolean);let cd={},ud=new Set(td(od));for(let yd in od)!Object.prototype.hasOwnProperty.call(od,yd)||rd.has(yd)||(ud.has(yd)?cd[yd]=sd(od[yd],od):cd[yd]=od[yd]);let _d=Ja(od,cd,ld);if(_d!==null)return _d??cd}}var qn$3=Yo$1,jo$2=(Ra,qa,Ja)=>{if(!(Ra&&qa==null)){if(qa.findLastIndex)return qa.findLastIndex(Ja);for(let ed=qa.length-1;ed>=0;ed--){let td=qa[ed];if(Ja(td,ed,qa))return ed}return-1}},Jn$4=jo$2,Ho$3=({parser:Ra})=>Ra==="json"||Ra==="json5"||Ra==="jsonc"||Ra==="json-stringify";function Wo$2(Ra,qa){let Ja=[Ra.node,...Ra.parentNodes],ed=new Set([qa.node,...qa.parentNodes]);return Ja.find(td=>Qn$4.has(td.type)&&ed.has(td))}function Xn$4(Ra){let qa=Jn$4(!1,Ra,Ja=>Ja.type!=="Program"&&Ja.type!=="File");return qa===-1?Ra:Ra.slice(0,qa+1)}function Mo$3(Ra,qa,{locStart:Ja,locEnd:ed}){let td=Ra.node,rd=qa.node;if(td===rd)return{startNode:td,endNode:rd};let sd=Ja(Ra.node);for(let ld of Xn$4(qa.parentNodes))if(Ja(ld)>=sd)rd=ld;else break;let od=ed(qa.node);for(let ld of Xn$4(Ra.parentNodes)){if(ed(ld)<=od)td=ld;else break;if(td===rd)break}return{startNode:td,endNode:rd}}function er$2(Ra,qa,Ja,ed,td=
`,td)+1),ld=ed.slice(od,td).match(/^\s*/u)[0],cd=me$1(ld,qa.tabWidth),ud=await ou$3(sd,{...qa,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:qa.cursorOffset>td&&qa.cursorOffset<=rd?qa.cursorOffset-td:-1,endOfLine:"lf"},cd),_d=ud.formatted.trimEnd(),{cursorOffset:yd}=qa;yd>rd?yd+=_d.length-sd.length:ud.cursorOffset>=0&&(yd=ud.cursorOffset+td);let gd=ed.slice(0,td)+_d+ed.slice(rd);if(qa.endOfLine!=="lf"){let Ed=Be$4(qa.endOfLine);yd>=0&&Ed===`\r
`&&(yd+=wt$2(gd.slice(0,yd),`
`)),gd=ne$3(!1,gd,`
`,Ed)}return{formatted:gd,cursorOffset:yd,comments:ud.comments}}function tr$2(Ra,qa,Ja){return typeof qa!="number"||Number.isNaN(qa)||qa<0||qa>Ra.length?Ja:qa}function ru$3(Ra,qa){let{cursorOffset:Ja,rangeStart:ed,rangeEnd:td}=qa;return Ja=tr$2(Ra,Ja,-1),ed=tr$2(Ra,ed,0),td=tr$2(Ra,td,Ra.length),{...qa,cursorOffset:Ja,rangeStart:ed,rangeEnd:td}}function iu$2(Ra,qa){let{cursorOffset:Ja,rangeStart:ed,rangeEnd:td,endOfLine:rd}=ru$3(Ra,qa),sd=Ra.charAt(0)===uu$4;if(sd&&(Ra=Ra.slice(1),Ja--,ed--,td--),rd==="auto"&&(rd=Fr$2(Ra)),Ra.includes("\r")){let od=ld=>wt$2(Ra.slice(0,Math.max(ld,0)),`\r
`);Ja-=od(Ja),ed-=od(ed),td-=od(td),Ra=mr$2(Ra)}return{hasBOM:sd,text:Ra,options:ru$3(Ra,{...qa,cursorOffset:Ja,rangeStart:ed,rangeEnd:td,endOfLine:rd})}}async function nu$4(Ra,qa){let Ja=await ht$3(qa);return!Ja.hasPragma||Ja.hasPragma(Ra)}async function rr$2(Ra,qa){let{hasBOM:Ja,text:ed,options:td}=iu$2(Ra,await se$2(qa));if(td.rangeStart>=td.rangeEnd&&ed!==""||td.requirePragma&&!await nu$4(ed,td))return{formatted:Ra,cursorOffset:qa.cursorOffset,comments:[]};let rd;return td.rangeStart>0||td.rangeEnd<ed.length?rd=await Uo$3(ed,td):(!td.requirePragma&&td.insertPragma&&td.printer.insertPragma&&!await nu$4(ed,td)&&(ed=td.printer.insertPragma(ed)),rd=await ou$3(ed,td)),Ja&&(rd.formatted=uu$4+rd.formatted,rd.cursorOffset>=0&&rd.cursorOffset++),rd}async function su$3(Ra,qa,Ja){let{text:ed,options:td}=iu$2(Ra,await se$2(qa)),rd=await ce$3(ed,td);return Ja&&(Ja.preprocessForPrint&&(rd.ast=await Qt$2(rd.ast,td)),Ja.massage&&(rd.ast=qn$3(rd.ast,td))),rd}async function au$3(Ra,qa){qa=await se$2(qa);let Ja=await Ye$2(Ra,qa);return Fe$2(Ja,qa)}async function Du$2(Ra,qa){let Ja=Or$3(Ra),{formatted:ed}=await rr$2(Ja,{...qa,parser:"__js_expression"});return ed}async function lu$3(Ra,qa){qa=await se$2(qa);let{ast:Ja}=await ce$3(Ra,qa);return Ye$2(Ja,qa)}async function cu$2(Ra,qa){return Fe$2(Ra,await se$2(qa))}var nr$2={};We$1(nr$2,{builders:()=>Go$1,printer:()=>Ko$2,utils:()=>qo$1});var Go$1={join:be$5,line:Ke$2,softline:vr$2,hardline:q$2,literalline:qe$3,group:_t$2,conditionalGroup:Ar$2,fill:Ge$2,lineSuffix:xe$3,lineSuffixBoundary:xr$3,cursor:ve$3,breakParent:de$2,ifBreak:Br$4,trim:_r$3,indent:De$2,indentIfBreak:wr$3,align:ae$2,addAlignmentToDoc:Je$2,markAsRoot:gr$2,dedentToRoot:Cr$1,dedent:yr$2,hardlineWithoutBreakParent:_e$4,literallineWithoutBreakParent:vt$3,label:br$2,concat:Ra=>Ra},Ko$2={printDocToString:Fe$2},qo$1={willBreak:Ir$3,traverseDoc:we$2,findInDoc:Xe$2,mapDoc:Ne$2,removeLines:Yr$4,stripTrailingHardline:Ze$3,replaceEndOfLine:jr$3,canBreak:Hr$4},fu$1="3.3.3",or$2={};We$1(or$2,{addDanglingComment:()=>re$4,addLeadingComment:()=>ue$2,addTrailingComment:()=>oe$3,getAlignmentSize:()=>me$1,getIndentSize:()=>pu$2,getMaxContinuousCount:()=>du$3,getNextNonSpaceNonCommentCharacter:()=>Fu$2,getNextNonSpaceNonCommentCharacterIndex:()=>si$4,getStringWidth:()=>Oe$4,hasNewline:()=>V$4,hasNewlineInRange:()=>mu$2,hasSpaces:()=>Eu$2,isNextLineEmpty:()=>ci$3,isNextLineEmptyAfterIndex:()=>gt$2,isPreviousLineEmpty:()=>Di$3,makeString:()=>hu$2,skip:()=>Ee$3,skipEverythingButNewLine:()=>nt$1,skipInlineComment:()=>Ce$2,skipNewline:()=>M$3,skipSpaces:()=>T$1,skipToLineEnd:()=>rt$2,skipTrailingComment:()=>ge$4,skipWhitespace:()=>zr$3});function Jo$2(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let Ja=qa+2;Ja<Ra.length;++Ja)if(Ra.charAt(Ja)==="*"&&Ra.charAt(Ja+1)==="/")return Ja+2}return qa}var Ce$2=Jo$2;function Xo$1(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?nt$1(Ra,qa):qa}var ge$4=Xo$1;function Zo$2(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=T$1(Ra,ed),ed=Ce$2(Ra,ed),ed=ge$4(Ra,ed),ed=M$3(Ra,ed);return ed}var je$4=Zo$2;function Qo$2(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=rt$2(Ra,ed),ed=Ce$2(Ra,ed),ed=T$1(Ra,ed);return ed=ge$4(Ra,ed),ed=M$3(Ra,ed),ed!==!1&&V$4(Ra,ed)}var gt$2=Qo$2;function ei$3(Ra,qa){let Ja=Ra.lastIndexOf(`
`);return Ja===-1?0:me$1(Ra.slice(Ja+1).match(/^[\t ]*/u)[0],qa)}var pu$2=ei$3;function ur$2(Ra){if(typeof Ra!="string")throw new TypeError("Expected a string");return Ra.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ti$4(Ra,qa){let Ja=Ra.match(new RegExp(`(${ur$2(qa)})+`,"gu"));return Ja===null?0:Ja.reduce((ed,td)=>Math.max(ed,td.length/qa.length),0)}var du$3=ti$4;function ri$4(Ra,qa){let Ja=je$4(Ra,qa);return Ja===!1?"":Ra.charAt(Ja)}var Fu$2=ri$4;function ni$4(Ra,qa,Ja){for(let ed=qa;ed<Ja;++ed)if(Ra.charAt(ed)===`
`)return!0;return!1}var mu$2=ni$4;function ui$3(Ra,qa,Ja={}){return T$1(Ra,Ja.backwards?qa-1:qa,Ja)!==qa}var Eu$2=ui$3;function oi$3(Ra,qa,Ja){let ed=qa==='"'?"'":'"',td=ne$3(!1,Ra,/\\(.)|(["'])/gsu,(rd,sd,od)=>sd===ed?sd:od===qa?"\\"+od:od||(Ja&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(sd)?sd:"\\"+sd));return qa+td+qa}var hu$2=oi$3;function ii$4(Ra,qa,Ja){return je$4(Ra,Ja(qa))}function si$4(Ra,qa){return arguments.length===2||typeof qa=="number"?je$4(Ra,qa):ii$4(...arguments)}function ai$4(Ra,qa,Ja){return Le$3(Ra,Ja(qa))}function Di$3(Ra,qa){return arguments.length===2||typeof qa=="number"?Le$3(Ra,qa):ai$4(...arguments)}function li$4(Ra,qa,Ja){return gt$2(Ra,Ja(qa))}function ci$3(Ra,qa){return arguments.length===2||typeof qa=="number"?gt$2(Ra,qa):li$4(...arguments)}function fe$3(Ra,qa=1){return async(...Ja)=>{let ed=Ja[qa]??{},td=ed.plugins??[];return Ja[qa]={...ed,plugins:Array.isArray(td)?td:Object.values(td)},Ra(...Ja)}}var Cu$2=fe$3(rr$2);async function gu$1(Ra,qa){let{formatted:Ja}=await Cu$2(Ra,{...qa,cursorOffset:-1});return Ja}async function fi$3(Ra,qa){return await gu$1(Ra,qa)===Ra}var pi$4=fe$3(ot$1,0),di$3={parse:fe$3(su$3),formatAST:fe$3(au$3),formatDoc:fe$3(Du$2),printToDoc:fe$3(lu$3),printDocToString:fe$3(cu$2)},el$2=Object.create,ft$1=Object.defineProperty,rl$2=Object.getOwnPropertyDescriptor,tl$2=Object.getOwnPropertyNames,nl$2=Object.getPrototypeOf,il$2=Object.prototype.hasOwnProperty,C=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Ln$3=(Ra,qa)=>{for(var Ja in qa)ft$1(Ra,Ja,{get:qa[Ja],enumerable:!0})},ul$2=(Ra,qa,Ja,ed)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let td of tl$2(qa))!il$2.call(Ra,td)&&td!==Ja&&ft$1(Ra,td,{get:()=>qa[td],enumerable:!(ed=rl$2(qa,td))||ed.enumerable});return Ra},Ue$3=(Ra,qa,Ja)=>(Ja=Ra!=null?el$2(nl$2(Ra)):{},ul$2(ft$1(Ja,"default",{value:Ra,enumerable:!0}),Ra)),xr$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){return String(ed).replace(/\s+/g," ")}}),Pi$2=C((Ra,qa)=>{qa.exports=Ed;var Ja=9,ed=10,td=32,rd=33,sd=58,od=91,ld=92,cd=93,ud=94,_d=96,yd=4,gd=1024;function Ed(Ld){var Pd=this.Parser,qd=this.Compiler;Td(Pd)&&Rd(Pd,Ld),kd(qd)&&Nd(qd)}function Td(Ld){return!!(Ld&&Ld.prototype&&Ld.prototype.blockTokenizers)}function kd(Ld){return!!(Ld&&Ld.prototype&&Ld.prototype.visitors)}function Rd(Ld,Pd){for(var qd=Pd||{},Yd=Ld.prototype,Ud=Yd.blockTokenizers,Hd=Yd.inlineTokenizers,Vd=Yd.blockMethods,Jd=Yd.inlineMethods,Zd=Ud.definition,pf=Hd.reference,Xd=[],hf=-1,mf=Vd.length,xf;++hf<mf;)xf=Vd[hf],!(xf==="newline"||xf==="indentedCode"||xf==="paragraph"||xf==="footnoteDefinition")&&Xd.push([xf]);Xd.push(["footnoteDefinition"]),qd.inlineNotes&&(Id(Jd,"reference","inlineNote"),Hd.inlineNote=Yf),Id(Vd,"definition","footnoteDefinition"),Id(Jd,"reference","footnoteCall"),Ud.definition=Sf,Ud.footnoteDefinition=Lf,Hd.footnoteCall=Wf,Hd.reference=If,Yd.interruptFootnoteDefinition=Xd,If.locator=pf.locator,Wf.locator=wf,Yf.locator=Kf;function Lf(qf,gf,_f){for(var $f=this,zf=$f.interruptFootnoteDefinition,hh=$f.offset,Vf=gf.length+1,kf=0,Jf=[],Ch,Gf,Tf,Af,Pf,gh,Nh,dh,jh,Dh,Fh,Zh,Wh;kf<Vf&&(Af=gf.charCodeAt(kf),!(Af!==Ja&&Af!==td));)kf++;if(gf.charCodeAt(kf++)===od&&gf.charCodeAt(kf++)===ud){for(Gf=kf;kf<Vf;){if(Af=gf.charCodeAt(kf),Af!==Af||Af===ed||Af===Ja||Af===td)return;if(Af===cd){Tf=kf,kf++;break}kf++}if(!(Tf===void 0||Gf===Tf||gf.charCodeAt(kf++)!==sd)){if(_f)return!0;for(Ch=gf.slice(Gf,Tf),Pf=qf.now(),jh=0,Dh=0,Fh=kf,Zh=[];kf<Vf;){if(Af=gf.charCodeAt(kf),Af!==Af||Af===ed)Wh={start:jh,contentStart:Fh||kf,contentEnd:kf,end:kf},Zh.push(Wh),Af===ed&&(jh=kf+1,Dh=0,Fh=void 0,Wh.end=jh);else if(Dh!==void 0)if(Af===td||Af===Ja)Dh+=Af===td?1:yd-Dh%yd,Dh>yd&&(Dh=void 0,Fh=kf);else{if(Dh<yd&&Wh&&(Wh.contentStart===Wh.contentEnd||Md(zf,Ud,$f,[qf,gf.slice(kf,gd),!0])))break;Dh=void 0,Fh=kf}kf++}for(kf=-1,Vf=Zh.length;Vf>0&&(Wh=Zh[Vf-1],Wh.contentStart===Wh.contentEnd);)Vf--;for(gh=qf(gf.slice(0,Wh.contentEnd));++kf<Vf;)Wh=Zh[kf],hh[Pf.line+kf]=(hh[Pf.line+kf]||0)+(Wh.contentStart-Wh.start),Jf.push(gf.slice(Wh.contentStart,Wh.end));return Nh=$f.enterBlock(),dh=$f.toke
`).split(`
`),Zd=0,pf=Jd.length,Xd;++Zd<pf;)Xd=Jd[Zd],Xd!==""&&(Jd[Zd]=qd+Xd);return"[^"+(Vd.label||Vd.identifier)+"]: "+Jd.join(`
`)}}function Id(Ld,Pd,qd){Ld.splice(Ld.indexOf(Pd),0,qd)}function Md(Ld,Pd,qd,Yd){for(var Ud=Ld.length,Hd=-1;++Hd<Ud;)if(Pd[Ld[Hd][0]].apply(qd,Yd))return!0;return!1}}),Bt$3=C(Ra=>{Ra.isRemarkParser=qa,Ra.isRemarkCompiler=Ja;function qa(ed){return!!(ed&&ed.prototype&&ed.prototype.blockTokenizers)}function Ja(ed){return!!(ed&&ed.prototype&&ed.prototype.visitors)}}),Mi$1=C((Ra,qa)=>{var Ja=Bt$3();qa.exports=_d;var ed=9,td=32,rd=36,sd=48,od=57,ld=92,cd=["math","math-inline"],ud="math-display";function _d(Ed){let Td=this.Parser,kd=this.Compiler;Ja.isRemarkParser(Td)&&yd(Td,Ed),Ja.isRemarkCompiler(kd)&&gd(kd)}function yd(Ed,Td){let kd=Ed.prototype,Rd=kd.inlineMethods;Id.locator=Nd,kd.inlineTokenizers.math=Id,Rd.splice(Rd.indexOf("text"),0,"math");function Nd(Md,Ld){return Md.indexOf("$",Ld)}function Id(Md,Ld,Pd){let qd=Ld.length,Yd=!1,Ud=!1,Hd=0,Vd,Jd,Zd,pf,Xd,hf,mf;if(Ld.charCodeAt(Hd)===ld&&(Ud=!0,Hd++),Ld.charCodeAt(Hd)===rd){if(Hd++,Ud)return Pd?!0:Md(Ld.slice(0,Hd))({type:"text",value:"$"});if(Ld.charCodeAt(Hd)===rd&&(Yd=!0,Hd++),Zd=Ld.charCodeAt(Hd),!(Zd===td||Zd===ed)){for(pf=Hd;Hd<qd;){if(Jd=Zd,Zd=Ld.charCodeAt(Hd+1),Jd===rd){if(Vd=Ld.charCodeAt(Hd-1),Vd!==td&&Vd!==ed&&(Zd!==Zd||Zd<sd||Zd>od)&&(!Yd||Zd===rd)){Xd=Hd-1,Hd++,Yd&&Hd++,hf=Hd;break}}else Jd===ld&&(Hd++,Zd=Ld.charCodeAt(Hd+1));Hd++}if(hf!==void 0)return Pd?!0:(mf=Ld.slice(pf,Xd+1),Md(Ld.slice(0,hf))({type:"inlineMath",value:mf,data:{hName:"span",hProperties:{className:cd.concat(Yd&&Td.inlineMathDouble?[ud]:[])},hChildren:[{type:"text",value:mf}]}}))}}}}function gd(Ed){let Td=Ed.prototype;Td.visitors.inlineMath=kd;function kd(Rd){let Nd="$";return(Rd.data&&Rd.data.hProperties&&Rd.data.hProperties.className||[]).includes(ud)&&(Nd="$$"),Nd+Rd.value+Nd}}}),$i$2=C((Ra,qa)=>{var Ja=Bt$3();qa.exports=ud;var ed=10,td=32,rd=36,sd=`
`,od="$",ld=2,cd=["math","math-display"];function ud(){let gd=this.Parser,Ed=this.Compiler;Ja.isRemarkParser(gd)&&_d(gd),Ja.isRemarkCompiler(Ed)&&yd(Ed)}function _d(gd){let Ed=gd.prototype,Td=Ed.blockMethods,kd=Ed.interruptParagraph,Rd=Ed.interruptList,Nd=Ed.interruptBlockquote;Ed.blockTokenizers.math=Id,Td.splice(Td.indexOf("fencedCode")+1,0,"math"),kd.splice(kd.indexOf("fencedCode")+1,0,["math"]),Rd.splice(Rd.indexOf("fencedCode")+1,0,["math"]),Nd.splice(Nd.indexOf("fencedCode")+1,0,["math"]);function Id(Md,Ld,Pd){var qd=Ld.length,Yd=0;let Ud,Hd,Vd,Jd,Zd,pf,Xd,hf,mf,xf,Lf;for(;Yd<qd&&Ld.charCodeAt(Yd)===td;)Yd++;for(Zd=Yd;Yd<qd&&Ld.charCodeAt(Yd)===rd;)Yd++;if(pf=Yd-Zd,!(pf<ld)){for(;Yd<qd&&Ld.charCodeAt(Yd)===td;)Yd++;for(Xd=Yd;Yd<qd;){if(Ud=Ld.charCodeAt(Yd),Ud===rd)return;if(Ud===ed)break;Yd++}if(Ld.charCodeAt(Yd)===ed){if(Pd)return!0;for(Hd=[],Xd!==Yd&&Hd.push(Ld.slice(Xd,Yd)),Yd++,Vd=Ld.indexOf(sd,Yd+1),Vd=Vd===-1?qd:Vd;Yd<qd;){for(hf=!1,xf=Yd,Lf=Vd,Jd=Vd,mf=0;Jd>xf&&Ld.charCodeAt(Jd-1)===td;)Jd--;for(;Jd>xf&&Ld.charCodeAt(Jd-1)===rd;)mf++,Jd--;for(pf<=mf&&Ld.indexOf(od,xf)===Jd&&(hf=!0,Lf=Jd);xf<=Lf&&xf-Yd<Zd&&Ld.charCodeAt(xf)===td;)xf++;if(hf)for(;Lf>xf&&Ld.charCodeAt(Lf-1)===td;)Lf--;if((!hf||xf!==Lf)&&Hd.push(Ld.slice(xf,Lf)),hf)break;Yd=Vd+1,Vd=Ld.indexOf(sd,Yd+1),Vd=Vd===-1?qd:Vd}return Hd=Hd.join(`
`),Md(Ld.slice(0,Vd))({type:"math",value:Hd,data:{hName:"div",hProperties:{className:cd.concat()},hChildren:[{type:"text",value:Hd}]}})}}}}function yd(gd){let Ed=gd.prototype;Ed.visitors.math=Td;function Td(kd){return`$$
`+kd.value+`
$$`}}}),Wi$1=C((Ra,qa)=>{var Ja=Mi$1(),ed=$i$2();qa.exports=td;function td(rd){var sd=rd||{};ed.call(this,sd),Ja.call(this,sd)}}),Ie$1=C((Ra,qa)=>{qa.exports=ed;var Ja=Object.prototype.hasOwnProperty;function ed(){for(var td={},rd=0;rd<arguments.length;rd++){var sd=arguments[rd];for(var od in sd)Ja.call(sd,od)&&(td[od]=sd[od])}return td}}),Ji$3=C((Ra,qa)=>{typeof Object.create=="function"?qa.exports=function(Ja,ed){ed&&(Ja.super_=ed,Ja.prototype=Object.create(ed.prototype,{constructor:{value:Ja,enumerable:!1,writable:!0,configurable:!0}}))}:qa.exports=function(Ja,ed){if(ed){Ja.super_=ed;var td=function(){};td.prototype=ed.prototype,Ja.prototype=new td,Ja.prototype.constructor=Ja}}}),Zi$1=C((Ra,qa)=>{var Ja=Ie$1(),ed=Ji$3();qa.exports=td;function td(rd){var sd,od,ld;ed(ud,rd),ed(cd,ud),sd=ud.prototype;for(od in sd)ld=sd[od],ld&&typeof ld=="object"&&(sd[od]="concat"in ld?ld.concat():Ja(ld));return ud;function cd(_d){return rd.apply(this,_d)}function ud(){return this instanceof ud?rd.apply(this,arguments):new cd(arguments)}}}),ru$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td,rd){return sd;function sd(){var od=rd||this,ld=od[ed];return od[ed]=!td,cd;function cd(){od[ed]=ld}}}}),nu$3=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){for(var td=String(ed),rd=[],sd=/\r?\n|\r/g;sd.exec(td);)rd.push(sd.lastIndex);return rd.push(td.length+1),{toPoint:od,toPosition:od,toOffset:ld};function od(cd){var ud=-1;if(cd>-1&&cd<rd[rd.length-1]){for(;++ud<rd.length;)if(rd[ud]>cd)return{line:ud+1,column:cd-(rd[ud-1]||0)+1,offset:cd}}return{}}function ld(cd){var ud=cd&&cd.line,_d=cd&&cd.column,yd;return!isNaN(ud)&&!isNaN(_d)&&ud-1 in rd&&(yd=(rd[ud-2]||0)+_d-1||0),yd>-1&&yd<rd[rd.length-1]?yd:-1}}}),uu$3=C((Ra,qa)=>{qa.exports=ed;var Ja="\\";function ed(td,rd){return sd;function sd(od){for(var ld=0,cd=od.indexOf(Ja),ud=td[rd],_d=[],yd;cd!==-1;)_d.push(od.slice(ld,cd)),ld=cd+1,yd=od.charAt(ld),(!yd||ud.indexOf(yd)===-1)&&_d.push(Ja),cd=od.indexOf(Ja,ld+1);return _d.push(od.slice(ld)),_d.join("")}}}),au$2=C((Ra,qa)=>{qa.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}),ou$2=C((Ra,qa)=>{qa.exports={0:"<22>",128:"€",130:"",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"",140:"Œ",142:"Ž",145:"",146:"",147:"“",148:"”",149:"•",150:"",151:"—",152:"˜",153:"™",154:"š",155:"",156:"œ",158:"ž",159:"Ÿ"}}),Ne$1=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){var td=typeof ed=="string"?ed.charCodeAt(0):ed;return td>=48&&td<=57}}),lu$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){var td=typeof ed=="string"?ed.charCodeAt(0):ed;return td>=97&&td<=102||td>=65&&td<=70||td>=48&&td<=57}}),Ve$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){var td=typeof ed=="string"?ed.charCodeAt(0):ed;return td>=97&&td<=122||td>=65&&td<=90}}),pu$1=C((Ra,qa)=>{var Ja=Ve$2(),ed=Ne$1();qa.exports=td;function td(rd){return Ja(rd)||ed(rd)}}),du$2=C((Ra,qa)=>{qa.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"",Popf:"",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"",ThinSpace:"",Tilde:"",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"
`);mf!==-1;)Td++,hf=mf,mf=Xd.indexOf(`
`,mf+1);hf===-1?kd+=Xd.length:kd=Xd.length-hf,Td in _d&&(hf!==-1?kd+=_d[Td]:kd<=_d[Td]&&(kd=_d[Td]+1))}function Yd(){var Xd=[],hf=Td+1;return function(){for(var mf=Td+1;hf<mf;)Xd.push((_d[hf]||0)+1),hf++;return Xd}}function Ud(){var Xd={line:Td,column:kd};return Xd.offset=ud.toOffset(Xd),Xd}function Hd(Xd){this.start=Xd,this.end=Ud()}function Vd(Xd){ld.slice(0,Xd.length)!==Xd&&ud.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),Ud())}function Jd(){var Xd=Ud();return hf;function hf(mf,xf){var Lf=mf.position,Wf=Lf?Lf.start:Xd,Yf=[],If=Lf&&Lf.end.line,Sf=Xd.line;if(mf.position=new Hd(Wf),Lf&&xf&&Lf.indent){if(Yf=Lf.indent,If<Sf){for(;++If<Sf;)Yf.push((_d[If]||0)+1);Yf.push(Xd.column)}xf=Yf.concat(xf)}return mf.position.indent=xf||[],mf}}function Zd(Xd,hf){var mf=hf?hf.children:yd,xf=mf[mf.length-1],Lf;return xf&&Xd.type===xf.type&&(Xd.type==="text"||Xd.type==="blockquote")&&ed(xf)&&ed(Xd)&&(Lf=Xd.type==="text"?td:rd,Xd=Lf.call(ud,xf,Xd)),Xd!==xf&&mf.push(Xd),ud.atStart&&yd.length!==0&&ud.exitStart(),Xd}function pf(Xd){var hf=Yd(),mf=Jd(),xf=Ud();return Vd(Xd),Lf.reset=Wf,Wf.test=Yf,Lf.test=Yf,ld=ld.slice(Xd.length),qd(Xd),hf=hf(),Lf;function Lf(If,Sf){return mf(Zd(mf(If),Sf),hf)}function Wf(){var If=Lf.apply(null,arguments);return Td=xf.line,kd=xf.column,ld=Xd+ld,If}function Yf(){var If=mf({});return Td=xf.line,kd=xf.column,ld=Xd+ld,If.position}}}}function ed(sd){var od,ld;return sd.type!=="text"||!sd.position?!0:(od=sd.position.start,ld=sd.position.end,od.line!==ld.line||ld.column-od.column===sd.value.length)}function td(sd,od){return sd.value+=od.value,sd}function rd(sd,od){return this.options.commonmark||this.options.gfm?od:(sd.children=sd.children.concat(od.children),sd)}}),Uu$2=C((Ra,qa)=>{qa.exports=rd;var Ja=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],ed=Ja.concat(["~","|"]),td=ed.concat([`
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);rd.default=Ja,rd.gfm=ed,rd.commonmark=td;function rd(sd){var od=sd||{};return od.commonmark?td:od.gfm?ed:Ja}}),Mu$1=C((Ra,qa)=>{qa.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","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}),Rt$3=C((Ra,qa)=>{qa.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Mu$1()}}),Vu$2=C((Ra,qa)=>{var Ja=Ie$1(),ed=Uu$2(),td=Rt$3();qa.exports=rd;function rd(sd){var od=this,ld=od.options,cd,ud;if(sd==null)sd={};else if(typeof sd=="object")sd=Ja(sd);else throw new Error("Invalid value `"+sd+"` for setting `options`");for(cd in td){if(ud=sd[cd],ud==null&&(ud=ld[cd]),cd!=="blocks"&&typeof ud!="boolean"||cd==="blocks"&&typeof ud!="object")throw new Error("Invalid value `"+ud+"` for setting `options."+cd+"`");sd[cd]=ud}return od.options=sd,od.escape=ed(sd),od}}),Hu$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(od){if(od==null)return sd;if(typeof od=="string")return rd(od);if(typeof od=="object")return"length"in od?td(od):ed(od);if(typeof od=="function")return od;throw new Error("Expected function, string, or object as test")}function ed(od){return ld;function ld(cd){var ud;for(ud in od)if(cd[ud]!==od[ud])return!1;return!0}}function td(od){for(var ld=[],cd=-1;++cd<od.length;)ld[cd]=Ja(od[cd]);return ud;function ud(){for(var _d=-1;++_d<ld.length;)if(ld[_d].apply(this,arguments))return!0;return!1}}function rd(od){return ld;function ld(cd){return!!(cd&&cd.type===od)}}function sd(){return!0}}),Ku$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){return ed}}),Zu$3=C((Ra,qa)=>{qa.exports=od;var Ja=Hu$2(),ed=Ku$2(),td=!0,rd="skip",sd=!1;od.CONTINUE=td,od.SKIP=rd,od.EXIT=sd;function od(cd,ud,_d,yd){var gd,Ed;typeof ud=="function"&&typeof _d!="function"&&(yd=_d,_d=ud,ud=null),Ed=Ja(ud),gd=yd?-1:1,Td(cd,null,[])();function Td(kd,Rd,Nd){var Id=typeof kd=="object"&&kd!==null?kd:{},Md;return typeof Id.type=="string"&&(Md=typeof Id.tagName=="string"?Id.tagName:typeof Id.name=="string"?Id.name:void 0,Ld.displayName="node ("+ed(Id.type+(Md?"<"+Md+">":""))+")"),Ld;function Ld(){var Pd=Nd.concat(kd),qd=[],Yd,Ud;if((!ud||Ed(kd,Rd,Nd[Nd.length-1]||null))&&(qd=ld(_d(kd,Nd)),qd[0]===sd))return qd;if(kd.children&&qd[0]!==rd)for(Ud=(yd?kd.children.length:-1)+gd;Ud>-1&&Ud<kd.children.length;){if(Yd=Td(kd.children[Ud],Ud,Pd)(),Yd[0]===sd)return Yd;Ud=typeof Yd[1]=="number"?Yd[1]:Ud+gd}return qd}}}function ld(cd){return cd!==null&&typeof cd=="object"&&"length"in cd?cd:typeof cd=="number"?[td,cd]:[cd]}}),ra$2=C((Ra,qa)=>{qa.exports=sd;var Ja=Zu$3(),ed=Ja.CONTINUE,td=Ja.SKIP,rd=Ja.EXIT;sd.CONTINUE=ed,sd.SKIP=td,sd.EXIT=rd;function sd(od,ld,cd,ud){typeof ld=="function"&&typeof cd!="function"&&(ud=cd,cd=ld,ld=null),Ja(od,ld,_d,ud);function _d(yd,gd){var Ed=gd[gd.length-1],Td=Ed?Ed.children.indexOf(yd):null;return cd(yd,Td,Ed)}}}),na$1=C((Ra,qa)=>{var Ja=ra$2();qa.exports=ed;function ed(sd,od){return Ja(sd,od?td:rd),sd}function td(sd){delete sd.position}function rd(sd){sd.position=void 0}}),aa$2=C((Ra,qa)=>{var Ja=Ie$1(),ed=na$1();qa.exports=sd;var td=`
`,rd=/\r\n|\r/g;function sd(){var od=this,ld=String(od.file),cd={line:1,column:1,offset:0},ud=Ja(cd),_d;return ld=ld.replace(rd,td),ld.charCodeAt(0)===65279&&(ld=ld.slice(1),ud.column++,ud.offset++),_d={type:"root",children:od.tokenizeBlock(ld,ud),position:{start:cd,end:od.eof||Ja(cd)}},od.options.position||ed(_d,!0),_d}}),sa$1=C((Ra,qa)=>{var Ja=/^[ \t]*(\n|$)/;qa.exports=ed;function ed(td,rd,sd){for(var od,ld="",cd=0,ud=rd.length;cd<ud&&(od=Ja.exec(rd.slice(cd)),od!=null);)cd+=od[0].length,ld+=od[0];if(ld!==""){if(sd)return!0;td(ld)}}}),Hr$3=C((Ra,qa)=>{var Ja="",ed;qa.exports=td;function td(rd,sd){if(typeof rd!="string")throw new TypeError("expected a string");if(sd===1)return rd;if(sd===2)return rd+rd;var od=rd.length*sd;if(ed!==rd||typeof ed>"u")ed=rd,Ja="";else if(Ja.length>=od)return Ja.substr(0,od);for(;od>Ja.length&&sd>1;)sd&1&&(Ja+=rd),sd>>=1,rd+=rd;return Ja+=rd,Ja=Ja.substr(0,od),Ja}}),Mt$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){return String(ed).replace(/\n+$/,"")}}),pa$1=C((Ra,qa)=>{var Ja=Hr$3(),ed=Mt$2();qa.exports=cd;var td=`
`,rd=" ",sd=" ",od=4,ld=Ja(sd,od);function cd(ud,_d,yd){for(var gd=-1,Ed=_d.length,Td="",kd="",Rd="",Nd="",Id,Md,Ld;++gd<Ed;)if(Id=_d.charAt(gd),Ld)if(Ld=!1,Td+=Rd,kd+=Nd,Rd="",Nd="",Id===td)Rd=Id,Nd=Id;else for(Td+=Id,kd+=Id;++gd<Ed;){if(Id=_d.charAt(gd),!Id||Id===td){Nd=Id,Rd=Id;break}Td+=Id,kd+=Id}else if(Id===sd&&_d.charAt(gd+1)===Id&&_d.charAt(gd+2)===Id&&_d.charAt(gd+3)===Id)Rd+=ld,gd+=3,Ld=!0;else if(Id===rd)Rd+=Id,Ld=!0;else{for(Md="";Id===rd||Id===sd;)Md+=Id,Id=_d.charAt(++gd);if(Id!==td)break;Rd+=Md+Id,Nd+=Id}if(kd)return yd?!0:ud(Td)({type:"code",lang:null,meta:null,value:ed(kd)})}}),ma$1=C((Ra,qa)=>{qa.exports=cd;var Ja=`
`,ed=" ",td=" ",rd="~",sd="`",od=3,ld=4;function cd(ud,_d,yd){var gd=this,Ed=gd.options.gfm,Td=_d.length+1,kd=0,Rd="",Nd,Id,Md,Ld,Pd,qd,Yd,Ud,Hd,Vd,Jd,Zd,pf;if(Ed){for(;kd<Td&&(Md=_d.charAt(kd),!(Md!==td&&Md!==ed));)Rd+=Md,kd++;if(Zd=kd,Md=_d.charAt(kd),!(Md!==rd&&Md!==sd)){for(kd++,Id=Md,Nd=1,Rd+=Md;kd<Td&&(Md=_d.charAt(kd),Md===Id);)Rd+=Md,Nd++,kd++;if(!(Nd<od)){for(;kd<Td&&(Md=_d.charAt(kd),!(Md!==td&&Md!==ed));)Rd+=Md,kd++;for(Ld="",Yd="";kd<Td&&(Md=_d.charAt(kd),!(Md===Ja||Id===sd&&Md===Id));)Md===td||Md===ed?Yd+=Md:(Ld+=Yd+Md,Yd=""),kd++;if(Md=_d.charAt(kd),!(Md&&Md!==Ja)){if(yd)return!0;pf=ud.now(),pf.column+=Rd.length,pf.offset+=Rd.length,Rd+=Ld,Ld=gd.decode.raw(gd.unescape(Ld),pf),Yd&&(Rd+=Yd),Yd="",Vd="",Jd="",Ud="",Hd="";for(var Xd=!0;kd<Td;){if(Md=_d.charAt(kd),Ud+=Vd,Hd+=Jd,Vd="",Jd="",Md!==Ja){Ud+=Md,Jd+=Md,kd++;continue}for(Xd?(Rd+=Md,Xd=!1):(Vd+=Md,Jd+=Md),Yd="",kd++;kd<Td&&(Md=_d.charAt(kd),Md===td);)Yd+=Md,kd++;if(Vd+=Yd,Jd+=Yd.slice(Zd),!(Yd.length>=ld)){for(Yd="";kd<Td&&(Md=_d.charAt(kd),Md===Id);)Yd+=Md,kd++;if(Vd+=Yd,Jd+=Yd,!(Yd.length<Nd)){for(Yd="";kd<Td&&(Md=_d.charAt(kd),!(Md!==td&&Md!==ed));)Vd+=Md,Jd+=Md,kd++;if(!Md||Md===Ja)break}}}for(Rd+=Ud+Vd,kd=-1,Td=Ld.length;++kd<Td;)if(Md=Ld.charAt(kd),Md===td||Md===ed)Pd||(Pd=Ld.slice(0,kd));else if(Pd){qd=Ld.slice(kd);break}return ud(Rd)({type:"code",lang:Pd||Ld||null,meta:qd||null,value:Hd})}}}}}}),Re$4=C((Ra,qa)=>{Ra=qa.exports=Ja;function Ja(ed){return ed.trim?ed.trim():Ra.right(Ra.left(ed))}Ra.left=function(ed){return ed.trimLeft?ed.trimLeft():ed.replace(/^\s\s*/,"")},Ra.right=function(ed){if(ed.trimRight)return ed.trimRight();for(var td=/\s/,rd=ed.length;td.test(ed.charAt(--rd)););return ed.slice(0,rd+1)}}),Kr$3=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td,rd,sd){for(var od=ed.length,ld=-1,cd,ud;++ld<od;)if(cd=ed[ld],ud=cd[1]||{},!(ud.pedantic!==void 0&&ud.pedantic!==rd.options.pedantic)&&!(ud.commonmark!==void 0&&ud.commonmark!==rd.options.commonmark)&&td[cd[0]].apply(rd,sd))return!0;return!1}}),ba$2=C((Ra,qa)=>{var Ja=Re$4(),ed=Kr$3();qa.exports=ld;var td=`
`,rd=" ",sd=" ",od=">";function ld(cd,ud,_d){for(var yd=this,gd=yd.offset,Ed=yd.blockTokenizers,Td=yd.interruptBlockquote,kd=cd.now(),Rd=kd.line,Nd=ud.length,Id=[],Md=[],Ld=[],Pd,qd=0,Yd,Ud,Hd,Vd,Jd,Zd,pf,Xd;qd<Nd&&(Yd=ud.charAt(qd),!(Yd!==sd&&Yd!==rd));)qd++;if(ud.charAt(qd)===od){if(_d)return!0;for(qd=0;qd<Nd;){for(Hd=ud.indexOf(td,qd),Zd=qd,pf=!1,Hd===-1&&(Hd=Nd);qd<Nd&&(Yd=ud.charAt(qd),!(Yd!==sd&&Yd!==rd));)qd++;if(ud.charAt(qd)===od?(qd++,pf=!0,ud.charAt(qd)===sd&&qd++):qd=Zd,Vd=ud.slice(qd,Hd),!pf&&!Ja(Vd)){qd=Zd;break}if(!pf&&(Ud=ud.slice(qd),ed(Td,Ed,yd,[cd,Ud,!0])))break;Jd=Zd===qd?Vd:ud.slice(Zd,Hd),Ld.push(qd-Zd),Id.push(Jd),Md.push(Vd),qd=Hd+1}for(qd=-1,Nd=Ld.length,Pd=cd(Id.join(td));++qd<Nd;)gd[Rd]=(gd[Rd]||0)+Ld[qd],Rd++;return Xd=yd.enterBlock(),Md=yd.tokenizeBlock(Md.join(td),kd),Xd(),Pd({type:"blockquote",children:Md})}}}),xa$2=C((Ra,qa)=>{qa.exports=od;var Ja=`
`,ed=" ",td=" ",rd="#",sd=6;function od(ld,cd,ud){for(var _d=this,yd=_d.options.pedantic,gd=cd.length+1,Ed=-1,Td=ld.now(),kd="",Rd="",Nd,Id,Md;++Ed<gd;){if(Nd=cd.charAt(Ed),Nd!==td&&Nd!==ed){Ed--;break}kd+=Nd}for(Md=0;++Ed<=gd;){if(Nd=cd.charAt(Ed),Nd!==rd){Ed--;break}kd+=Nd,Md++}if(!(Md>sd)&&!(!Md||!yd&&cd.charAt(Ed+1)===rd)){for(gd=cd.length+1,Id="";++Ed<gd;){if(Nd=cd.charAt(Ed),Nd!==td&&Nd!==ed){Ed--;break}Id+=Nd}if(!(!yd&&Id.length===0&&Nd&&Nd!==Ja)){if(ud)return!0;for(kd+=Id,Id="",Rd="";++Ed<gd&&(Nd=cd.charAt(Ed),!(!Nd||Nd===Ja));){if(Nd!==td&&Nd!==ed&&Nd!==rd){Rd+=Id+Nd,Id="";continue}for(;Nd===td||Nd===ed;)Id+=Nd,Nd=cd.charAt(++Ed);if(!yd&&Rd&&!Id&&Nd===rd){Rd+=Nd;continue}for(;Nd===rd;)Id+=Nd,Nd=cd.charAt(++Ed);for(;Nd===td||Nd===ed;)Id+=Nd,Nd=cd.charAt(++Ed);Ed--}return Td.column+=kd.length,Td.offset+=kd.length,kd+=Rd+Id,ld(kd)({type:"heading",depth:Md,children:_d.tokenizeInline(Rd,Td)})}}}}),Ba$1=C((Ra,qa)=>{qa.exports=cd;var Ja=" ",ed=`
`,td=" ",rd="*",sd="-",od="_",ld=3;function cd(ud,_d,yd){for(var gd=-1,Ed=_d.length+1,Td="",kd,Rd,Nd,Id;++gd<Ed&&(kd=_d.charAt(gd),!(kd!==Ja&&kd!==td));)Td+=kd;if(!(kd!==rd&&kd!==sd&&kd!==od))for(Rd=kd,Td+=kd,Nd=1,Id="";++gd<Ed;)if(kd=_d.charAt(gd),kd===Rd)Nd++,Td+=Id+Rd,Id="";else if(kd===td)Id+=kd;else return Nd>=ld&&(!kd||kd===ed)?(Td+=Id,yd?!0:ud(Td)({type:"thematicBreak"})):void 0}}),$t$2=C((Ra,qa)=>{qa.exports=sd;var Ja=" ",ed=" ",td=1,rd=4;function sd(od){for(var ld=0,cd=0,ud=od.charAt(ld),_d={},yd,gd=0;ud===Ja||ud===ed;){for(yd=ud===Ja?rd:td,cd+=yd,yd>1&&(cd=Math.floor(cd/yd)*yd);gd<cd;)_d[++gd]=ld;ud=od.charAt(++ld)}return{indent:cd,stops:_d}}}),Oa$3=C((Ra,qa)=>{var Ja=Re$4(),ed=Hr$3(),td=$t$2();qa.exports=ld;var rd=`
`,sd=" ",od="!";function ld(cd,ud){var _d=cd.split(rd),yd=_d.length+1,gd=1/0,Ed=[],Td,kd,Rd;for(_d.unshift(ed(sd,ud)+od);yd--;)if(kd=td(_d[yd]),Ed[yd]=kd.stops,Ja(_d[yd]).length!==0)if(kd.indent)kd.indent>0&&kd.indent<gd&&(gd=kd.indent);else{gd=1/0;break}if(gd!==1/0)for(yd=_d.length;yd--;){for(Rd=Ed[yd],Td=gd;Td&&!(Td in Rd);)Td--;_d[yd]=_d[yd].slice(Rd[Td]+1)}return _d.shift(),_d.join(rd)}}),Ua$3=C((Ra,qa)=>{var Ja=Re$4(),ed=Hr$3(),td=Ne$1(),rd=$t$2(),sd=Oa$3(),od=Kr$3();qa.exports=Yd;var ld="*",cd="_",ud="+",_d="-",yd=".",gd=" ",Ed=`
`,Td=" ",kd=")",Rd="x",Nd=4,Id=/\n\n(?!\s*$)/,Md=/^\[([ X\tx])][ \t]/,Ld=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Pd=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,qd=/^( {1,4}|\t)?/gm;function Yd(Jd,Zd,pf){for(var Xd=this,hf=Xd.options.commonmark,mf=Xd.options.pedantic,xf=Xd.blockTokenizers,Lf=Xd.interruptList,Wf=0,Yf=Zd.length,If=null,Sf,wf,Kf,qf,gf,_f,$f,zf,hh,Vf,kf,Jf,Ch,Gf,Tf,Af,Pf,gh,Nh,dh=!1,jh,Dh,Fh,Zh;Wf<Yf&&(qf=Zd.charAt(Wf),!(qf!==Td&&qf!==gd));)Wf++;if(qf=Zd.charAt(Wf),qf===ld||qf===ud||qf===_d)gf=qf,Kf=!1;else{for(Kf=!0,wf="";Wf<Yf&&(qf=Zd.charAt(Wf),!!td(qf));)wf+=qf,Wf++;if(qf=Zd.charAt(Wf),!wf||!(qf===yd||hf&&qf===kd)||pf&&wf!=="1")return;If=parseInt(wf,10),gf=qf}if(qf=Zd.charAt(++Wf),!(qf!==gd&&qf!==Td&&(mf||qf!==Ed&&qf!==""))){if(pf)return!0;for(Wf=0,Gf=[],Tf=[],Af=[];Wf<Yf;){for(_f=Zd.indexOf(Ed,Wf),$f=Wf,zf=!1,Zh=!1,_f===-1&&(_f=Yf),Sf=0;Wf<Yf;){if(qf=Zd.charAt(Wf),qf===Td)Sf+=Nd-Sf%Nd;else if(qf===gd)Sf++;else break;Wf++}if(Pf&&Sf>=Pf.indent&&(Zh=!0),qf=Zd.charAt(Wf),hh=null,!Zh){if(qf===ld||qf===ud||qf===_d)hh=qf,Wf++,Sf++;else{for(wf="";Wf<Yf&&(qf=Zd.charAt(Wf),!!td(qf));)wf+=qf,Wf++;qf=Zd.charAt(Wf),Wf++,wf&&(qf===yd||hf&&qf===kd)&&(hh=qf,Sf+=wf.length+1)}if(hh)if(qf=Zd.charAt(Wf),qf===Td)Sf+=Nd-Sf%Nd,Wf++;else if(qf===gd){for(Fh=Wf+Nd;Wf<Fh&&Zd.charAt(Wf)===gd;)Wf++,Sf++;Wf===Fh&&Zd.charAt(Wf)===gd&&(Wf-=Nd-1,Sf-=Nd-1)}else qf!==Ed&&qf!==""&&(hh=null)}if(hh){if(!mf&&gf!==hh)break;zf=!0}else!hf&&!Zh&&Zd.charAt($f)===gd?Zh=!0:hf&&Pf&&(Zh=Sf>=Pf.indent||Sf>Nd),zf=!1,Wf=$f;if(kf=Zd.slice($f,_f),Vf=$f===Wf?kf:Zd.slice(Wf,_f),(hh===ld||hh===cd||hh===_d)&&xf.thematicBreak.call(Xd,Jd,kf,!0))break;if(Jf=Ch,Ch=!zf&&!Ja(Vf).length,Zh&&Pf)Pf.value=Pf.value.concat(Af,kf),Tf=Tf.concat(Af,kf),Af=[];else if(zf)Af.length!==0&&(dh=!0,Pf.value.push(""),Pf.trail=Af.concat()),Pf={value:[kf],indent:Sf,trail:[]},Gf.push(Pf),Tf=Tf.concat(Af,kf),Af=[];else if(Ch){if(Jf&&!hf)break;Af.push(kf)}else{if(Jf||od(Lf,xf,Xd,[Jd,kf,!0]))break;Pf.value=Pf.value.concat(Af,kf),Tf=Tf.concat(Af,kf),Af=[]}Wf=_f+1}for(jh=Jd(Tf.join(Ed)).reset({type:"list",ordered:Kf,start:If,spread:dh,children:[]}),gh=Xd.enterList(),Nh=Xd.enterBlock(),Wf=-1,Yf=Gf.length;++Wf<Yf;)Pf=Gf[Wf].value.join(Ed),Dh=Jd.now(),Jd(Pf)(Ud(Xd,Pf,Dh),jh),Pf=Gf[Wf].trail.join(Ed),Wf!==Yf-1&&(Pf+=Ed),Jd(Pf);return gh(),Nh(),jh}}function Ud(Jd,Zd,pf){var Xd=Jd.offset,hf=Jd.options.pedantic?Hd:Vd,mf=null,xf,Lf;return Zd=hf.apply(null,arguments),Jd.options.gfm&&(xf=Zd.match(Md),xf&&(Lf=xf[0].length,mf=xf[1].toLowerCase()===Rd,Xd[pf.line]+=Lf,Zd=Zd.slice(Lf))),{type:"listItem",spread:Id.test(Zd),checked:mf,children:Jd.tokenizeBlock(Zd,pf)}}function Hd(Jd,Zd,pf){var Xd=Jd.offset,hf=pf.line;return Zd=Zd.replace(Pd,mf),hf=pf.line,Zd.replace(qd,mf);function mf(xf){return Xd[hf]=(Xd[hf]||0)+xf.length,hf++,""}}function Vd(Jd,Zd,pf){var Xd=Jd.offset,hf=pf.line,mf,xf,Lf,Wf,Yf,If,Sf;for(Zd=Zd.replace(Ld,wf),Wf=Zd.split(Ed),Yf=sd(Zd,rd(mf).indent).split(Ed),Yf[0]=Lf,Xd[hf]=(Xd[hf]||0)+xf.length,hf++,If=0,Sf=Wf.length;++If<Sf;)Xd[hf]=(Xd[hf]||0)+Wf[If].length-Yf[If].length,hf++;return Yf.join(Ed);function wf(Kf,qf,gf,_f,$f){return xf=qf+gf+_f,Lf=$f,Number(gf)<10&&xf.length%2===1&&(gf=gd+gf),mf=qf+ed(gd,gf.length)+_f,mf+Lf}}}),Ga$2=C((Ra,qa)=>{qa.exports=ud;var Ja=`
`,ed=" ",td=" ",rd="=",sd="-",od=3,ld=1,cd=2;function ud(_d,yd,gd){for(var Ed=this,Td=_d.now(),kd=yd.length,Rd=-1,Nd="",Id,Md,Ld,Pd,qd;++Rd<kd;){if(Ld=yd.charAt(Rd),Ld!==td||Rd>=od){Rd--;break}Nd+=Ld}for(Id="",Md="";++Rd<kd;){if(Ld=yd.charAt(Rd),Ld===Ja){Rd--;break}Ld===td||Ld===ed?Md+=Ld:(Id+=Md+Ld,Md="")}if(Td.column+=Nd.length,Td.offset+=Nd.length,Nd+=Id+Md,Ld=yd.charAt(++Rd),Pd=yd.charAt(++Rd),!(Ld!==Ja||Pd!==rd&&Pd!==sd)){for(Nd+=Ld,Md=Pd,qd=Pd===rd?ld:cd;++Rd<kd;){if(Ld=yd.charAt(Rd),Ld!==Pd){if(Ld!==Ja)return;Rd--;break}Md+=Ld}return gd?!0:_d(Nd+Md)({type:"heading",depth:qd,children:Ed.tokenizeInline(Id,Td)})}}}),Xt$2=C(Ra=>{var qa="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ja="[^\"'=<>`\\u0000-\\u0020]+",ed="'[^']*'",td='"[^"]*"',rd="(?:"+Ja+"|"+ed+"|"+td+")",sd="(?:\\s+"+qa+"(?:\\s*=\\s*"+rd+")?)",od="<[A-Za-z][A-Za-z0-9\\-]*"+sd+"*\\s*\\/?>",ld="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",cd="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",ud="<[?].*?[?]>",_d="<![A-Za-z]+\\s+[^>]*>",yd="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";Ra.openCloseTag=new RegExp("^(?:"+od+"|"+ld+")"),Ra.tag=new RegExp("^(?:"+od+"|"+ld+"|"+cd+"|"+ud+"|"+_d+"|"+yd+")")}),Ka$1=C((Ra,qa)=>{var Ja=Xt$2().openCloseTag;qa.exports=Id;var ed=" ",td=" ",rd=`
`,sd="<",od=/^<(script|pre|style)(?=(\s|>|$))/i,ld=/<\/(script|pre|style)>/i,cd=/^<!--/,ud=/-->/,_d=/^<\?/,yd=/\?>/,gd=/^<![A-Za-z]/,Ed=/>/,Td=/^<!\[CDATA\[/,kd=/]]>/,Rd=/^$/,Nd=new RegExp(Ja.source+"\\s*$");function Id(Md,Ld,Pd){for(var qd=this,Yd=qd.options.blocks.join("|"),Ud=new RegExp("^</?("+Yd+")(?=(\\s|/?>|$))","i"),Hd=Ld.length,Vd=0,Jd,Zd,pf,Xd,hf,mf,xf,Lf=[[od,ld,!0],[cd,ud,!0],[_d,yd,!0],[gd,Ed,!0],[Td,kd,!0],[Ud,Rd,!0],[Nd,Rd,!1]];Vd<Hd&&(Xd=Ld.charAt(Vd),!(Xd!==ed&&Xd!==td));)Vd++;if(Ld.charAt(Vd)===sd){for(Jd=Ld.indexOf(rd,Vd+1),Jd=Jd===-1?Hd:Jd,Zd=Ld.slice(Vd,Jd),pf=-1,hf=Lf.length;++pf<hf;)if(Lf[pf][0].test(Zd)){mf=Lf[pf];break}if(mf){if(Pd)return mf[2];if(Vd=Jd,!mf[1].test(Zd))for(;Vd<Hd;){if(Jd=Ld.indexOf(rd,Vd+1),Jd=Jd===-1?Hd:Jd,Zd=Ld.slice(Vd+1,Jd),mf[1].test(Zd)){Zd&&(Vd=Jd);break}Vd=Jd}return xf=Ld.slice(0,Vd),Md(xf)({type:"html",value:xf})}}}}),ue$1=C((Ra,qa)=>{qa.exports=td;var Ja=String.fromCharCode,ed=/\s/;function td(rd){return ed.test(typeof rd=="number"?Ja(rd):rd.charAt(0))}}),Qt$1=C((Ra,qa)=>{var Ja=xr$2();qa.exports=ed;function ed(td){return Ja(td).toLowerCase()}}),io$1=C((Ra,qa)=>{var Ja=ue$1(),ed=Qt$1();qa.exports=Rd;var td='"',rd="'",sd="\\",od=`
`,ld=" ",cd=" ",ud="[",_d="]",yd="(",gd=")",Ed=":",Td="<",kd=">";function Rd(Md,Ld,Pd){for(var qd=this,Yd=qd.options.commonmark,Ud=0,Hd=Ld.length,Vd="",Jd,Zd,pf,Xd,hf,mf,xf,Lf;Ud<Hd&&(Xd=Ld.charAt(Ud),!(Xd!==cd&&Xd!==ld));)Vd+=Xd,Ud++;if(Xd=Ld.charAt(Ud),Xd===ud){for(Ud++,Vd+=Xd,pf="";Ud<Hd&&(Xd=Ld.charAt(Ud),Xd!==_d);)Xd===sd&&(pf+=Xd,Ud++,Xd=Ld.charAt(Ud)),pf+=Xd,Ud++;if(!(!pf||Ld.charAt(Ud)!==_d||Ld.charAt(Ud+1)!==Ed)){for(mf=pf,Vd+=pf+_d+Ed,Ud=Vd.length,pf="";Ud<Hd&&(Xd=Ld.charAt(Ud),!(Xd!==ld&&Xd!==cd&&Xd!==od));)Vd+=Xd,Ud++;if(Xd=Ld.charAt(Ud),pf="",Jd=Vd,Xd===Td){for(Ud++;Ud<Hd&&(Xd=Ld.charAt(Ud),!!Nd(Xd));)pf+=Xd,Ud++;if(Xd=Ld.charAt(Ud),Xd===Nd.delimiter)Vd+=Td+pf+Xd,Ud++;else{if(Yd)return;Ud-=pf.length+1,pf=""}}if(!pf){for(;Ud<Hd&&(Xd=Ld.charAt(Ud),!!Id(Xd));)pf+=Xd,Ud++;Vd+=pf}if(pf){for(xf=pf,pf="";Ud<Hd&&(Xd=Ld.charAt(Ud),!(Xd!==ld&&Xd!==cd&&Xd!==od));)pf+=Xd,Ud++;if(Xd=Ld.charAt(Ud),hf=null,Xd===td?hf=td:Xd===rd?hf=rd:Xd===yd&&(hf=gd),!hf)pf="",Ud=Vd.length;else if(pf){for(Vd+=pf+Xd,Ud=Vd.length,pf="";Ud<Hd&&(Xd=Ld.charAt(Ud),Xd!==hf);){if(Xd===od){if(Ud++,Xd=Ld.charAt(Ud),Xd===od||Xd===hf)return;pf+=od}pf+=Xd,Ud++}if(Xd=Ld.charAt(Ud),Xd!==hf)return;Zd=Vd,Vd+=pf+Xd,Ud++,Lf=pf,pf=""}else return;for(;Ud<Hd&&(Xd=Ld.charAt(Ud),!(Xd!==ld&&Xd!==cd));)Vd+=Xd,Ud++;if(Xd=Ld.charAt(Ud),!Xd||Xd===od)return Pd?!0:(Jd=Md(Jd).test().end,xf=qd.decode.raw(qd.unescape(xf),Jd,{nonTerminated:!1}),Lf&&(Zd=Md(Zd).test().end,Lf=qd.decode.raw(qd.unescape(Lf),Zd)),Md(Vd)({type:"definition",identifier:ed(mf),label:mf,title:Lf||null,url:xf}))}}}}function Nd(Md){return Md!==kd&&Md!==ud&&Md!==_d}Nd.delimiter=kd;function Id(Md){return Md!==ud&&Md!==_d&&!Ja(Md)}}),oo$3=C((Ra,qa)=>{var Ja=ue$1();qa.exports=Td;var ed=" ",td=`
`,rd=" ",sd="-",od=":",ld="\\",cd="|",ud=1,_d=2,yd="left",gd="center",Ed="right";function Td(kd,Rd,Nd){var Id=this,Md,Ld,Pd,qd,Yd,Ud,Hd,Vd,Jd,Zd,pf,Xd,hf,mf,xf,Lf,Wf,Yf,If,Sf,wf,Kf;if(Id.options.gfm){for(Md=0,Lf=0,Ud=Rd.length+1,Hd=[];Md<Ud;){if(Sf=Rd.indexOf(td,Md),wf=Rd.indexOf(cd,Md+1),Sf===-1&&(Sf=Rd.length),wf===-1||wf>Sf){if(Lf<_d)return;break}Hd.push(Rd.slice(Md,Sf)),Lf++,Md=Sf+1}for(qd=Hd.join(td),Ld=Hd.splice(1,1)[0]||[],Md=0,Ud=Ld.length,Lf--,Pd=!1,pf=[];Md<Ud;){if(Jd=Ld.charAt(Md),Jd===cd){if(Zd=null,Pd===!1){if(Kf===!1)return}else pf.push(Pd),Pd=!1;Kf=!1}else if(Jd===sd)Zd=!0,Pd=Pd||null;else if(Jd===od)Pd===yd?Pd=gd:Zd&&Pd===null?Pd=Ed:Pd=yd;else if(!Ja(Jd))return;Md++}if(Pd!==!1&&pf.push(Pd),!(pf.length<ud)){if(Nd)return!0;for(xf=-1,Yf=[],If=kd(qd).reset({type:"table",align:pf,children:Yf});++xf<Lf;){for(Wf=Hd[xf],Yd={type:"tableRow",children:[]},xf&&kd(td),kd(Wf).reset(Yd,If),Ud=Wf.length+1,Md=0,Vd="",Xd="",hf=!0;Md<Ud;){if(Jd=Wf.charAt(Md),Jd===ed||Jd===rd){Xd?Vd+=Jd:kd(Jd),Md++;continue}Jd===""||Jd===cd?hf?kd(Jd):((Xd||Jd)&&!hf&&(qd=Xd,Vd.length>1&&(Jd?(qd+=Vd.slice(0,-1),Vd=Vd.charAt(Vd.length-1)):(qd+=Vd,Vd="")),mf=kd.now(),kd(qd)({type:"tableCell",children:Id.tokenizeInline(Xd,mf)},Yd)),kd(Vd+Jd),Vd="",Xd=""):(Vd&&(Xd+=Vd,Vd=""),Xd+=Jd,Jd===ld&&Md!==Ud-2&&(Xd+=Wf.charAt(Md+1),Md++)),hf=!1,Md++}xf||kd(td+Ld)}return If}}}}),lo$2=C((Ra,qa)=>{var Ja=Re$4(),ed=Mt$2(),td=Kr$3();qa.exports=cd;var rd=" ",sd=`
`,od=" ",ld=4;function cd(ud,_d,yd){for(var gd=this,Ed=gd.options,Td=Ed.commonmark,kd=gd.blockTokenizers,Rd=gd.interruptParagraph,Nd=_d.indexOf(sd),Id=_d.length,Md,Ld,Pd,qd,Yd;Nd<Id;){if(Nd===-1){Nd=Id;break}if(_d.charAt(Nd+1)===sd)break;if(Td){for(qd=0,Md=Nd+1;Md<Id;){if(Pd=_d.charAt(Md),Pd===rd){qd=ld;break}else if(Pd===od)qd++;else break;Md++}if(qd>=ld&&Pd!==sd){Nd=_d.indexOf(sd,Nd+1);continue}}if(Ld=_d.slice(Nd+1),td(Rd,kd,gd,[ud,Ld,!0]))break;if(Md=Nd,Nd=_d.indexOf(sd,Nd+1),Nd!==-1&&Ja(_d.slice(Md,Nd))===""){Nd=Md;break}}return Ld=_d.slice(0,Nd),yd?!0:(Yd=ud.now(),Ld=ed(Ld),ud(Ld)({type:"paragraph",children:gd.tokenizeInline(Ld,Yd)}))}}),Do$1=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td){return ed.indexOf("\\",td)}}),Fo$1=C((Ra,qa)=>{var Ja=Do$1();qa.exports=rd,rd.locator=Ja;var ed=`
`,td="\\";function rd(sd,od,ld){var cd=this,ud,_d;if(od.charAt(0)===td&&(ud=od.charAt(1),cd.escape.indexOf(ud)!==-1))return ld?!0:(ud===ed?_d={type:"break"}:_d={type:"text",value:ud},sd(td+ud)(_d))}}),tn$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td){return ed.indexOf("<",td)}}),yo$2=C((Ra,qa)=>{var Ja=ue$1(),ed=pr$1(),td=tn$2();qa.exports=_d,_d.locator=td,_d.notInLink=!0;var rd="<",sd=">",od="@",ld="/",cd="mailto:",ud=cd.length;function _d(yd,gd,Ed){var Td=this,kd="",Rd=gd.length,Nd=0,Id="",Md=!1,Ld="",Pd,qd,Yd,Ud,Hd;if(gd.charAt(0)===rd){for(Nd++,kd=rd;Nd<Rd&&(Pd=gd.charAt(Nd),!(Ja(Pd)||Pd===sd||Pd===od||Pd===":"&&gd.charAt(Nd+1)===ld));)Id+=Pd,Nd++;if(Id){if(Ld+=Id,Id="",Pd=gd.charAt(Nd),Ld+=Pd,Nd++,Pd===od)Md=!0;else{if(Pd!==":"||gd.charAt(Nd+1)!==ld)return;Ld+=ld,Nd++}for(;Nd<Rd&&(Pd=gd.charAt(Nd),!(Ja(Pd)||Pd===sd));)Id+=Pd,Nd++;if(Pd=gd.charAt(Nd),!(!Id||Pd!==sd))return Ed?!0:(Ld+=Id,Yd=Ld,kd+=Ld+Pd,qd=yd.now(),qd.column++,qd.offset++,Md&&(Ld.slice(0,ud).toLowerCase()===cd?(Yd=Yd.slice(ud),qd.column+=ud,qd.offset+=ud):Ld=cd+Ld),Ud=Td.inlineTokenizers,Td.inlineTokenizers={text:Ud.text},Hd=Td.enterLink(),Yd=Td.tokenizeInline(Yd,qd),Td.inlineTokenizers=Ud,Hd(),yd(kd)({type:"link",title:null,url:ed(Ld,{nonTerminated:!1}),children:Yd}))}}}}),xo$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td){var rd=String(ed),sd=0,od;if(typeof td!="string")throw new Error("Expected character");for(od=rd.indexOf(td);od!==-1;)sd++,od=rd.indexOf(td,od+td.length);return sd}}),Bo$1=C((Ra,qa)=>{qa.exports=ed;var Ja=["www.","http://","https://"];function ed(td,rd){var sd=-1,od,ld,cd;if(!this.options.gfm)return sd;for(ld=Ja.length,od=-1;++od<ld;)cd=td.indexOf(Ja[od],rd),cd!==-1&&(sd===-1||cd<sd)&&(sd=cd);return sd}}),Oo$1=C((Ra,qa)=>{var Ja=xo$2(),ed=pr$1(),td=Ne$1(),rd=Ve$2(),sd=ue$1(),od=Bo$1();qa.exports=qd,qd.locator=od,qd.notInLink=!0;var ld=33,cd=38,ud=41,_d=42,yd=44,gd=45,Ed=46,Td=58,kd=59,Rd=63,Nd=60,Id=95,Md=126,Ld="(",Pd=")";function qd(Yd,Ud,Hd){var Vd=this,Jd=Vd.options.gfm,Zd=Vd.inlineTokenizers,pf=Ud.length,Xd=-1,hf=!1,mf,xf,Lf,Wf,Yf,If,Sf,wf,Kf,qf,gf,_f,$f,zf;if(Jd){if(Ud.slice(0,4)==="www.")hf=!0,Wf=4;else if(Ud.slice(0,7).toLowerCase()==="http://")Wf=7;else if(Ud.slice(0,8).toLowerCase()==="https://")Wf=8;else return;for(Xd=Wf-1,Lf=Wf,mf=[];Wf<pf;){if(Sf=Ud.charCodeAt(Wf),Sf===Ed){if(Xd===Wf-1)break;mf.push(Wf),Xd=Wf,Wf++;continue}if(td(Sf)||rd(Sf)||Sf===gd||Sf===Id){Wf++;continue}break}if(Sf===Ed&&(mf.pop(),Wf--),mf[0]!==void 0&&(xf=mf.length<2?Lf:mf[mf.length-2]+1,Ud.slice(xf,Wf).indexOf("_")===-1)){if(Hd)return!0;for(wf=Wf,Yf=Wf;Wf<pf&&(Sf=Ud.charCodeAt(Wf),!(sd(Sf)||Sf===Nd));)Wf++,Sf===ld||Sf===_d||Sf===yd||Sf===Ed||Sf===Td||Sf===Rd||Sf===Id||Sf===Md||(wf=Wf);if(Wf=wf,Ud.charCodeAt(Wf-1)===ud)for(If=Ud.slice(Yf,Wf),Kf=Ja(If,Ld),qf=Ja(If,Pd);qf>Kf;)Wf=Yf+If.lastIndexOf(Pd),If=Ud.slice(Yf,Wf),qf--;if(Ud.charCodeAt(Wf-1)===kd&&(Wf--,rd(Ud.charCodeAt(Wf-1)))){for(wf=Wf-2;rd(Ud.charCodeAt(wf));)wf--;Ud.charCodeAt(wf)===cd&&(Wf=wf)}return gf=Ud.slice(0,Wf),$f=ed(gf,{nonTerminated:!1}),hf&&($f="http://"+$f),zf=Vd.enterLink(),Vd.inlineTokenizers={text:Zd.text},_f=Vd.tokenizeInline(gf,Yd.now()),Vd.inlineTokenizers=Zd,zf(),Yd(gf)({type:"link",title:null,url:$f,children:_f})}}}}),No$1=C((Ra,qa)=>{var Ja=Ne$1(),ed=Ve$2(),td=43,rd=45,sd=46,od=95;qa.exports=ld;function ld(ud,_d){var yd=this,gd,Ed;if(!this.options.gfm||(gd=ud.indexOf("@",_d),gd===-1))return-1;if(Ed=gd,Ed===_d||!cd(ud.charCodeAt(Ed-1)))return ld.call(yd,ud,gd+1);for(;Ed>_d&&cd(ud.charCodeAt(Ed-1));)Ed--;return Ed}function cd(ud){return Ja(ud)||ed(ud)||ud===td||ud===rd||ud===sd||ud===od}}),Mo$2=C((Ra,qa)=>{var Ja=pr$1(),ed=Ne$1(),td=Ve$2(),rd=No$1();qa.exports=_d,_d.locator=rd,_d.notInLink=!0;var sd=43,od=45,ld=46,cd=64,ud=95;function _d(yd,gd,Ed){var Td=this,kd=Td.options.gfm,Rd=Td.inlineTokenizers,Nd=0,Id=gd.length,Md=-1,Ld,Pd,qd,Yd;if(kd){for(Ld=gd.charCodeAt(Nd);ed(Ld)||td(Ld)||Ld===sd||Ld===od||Ld===ld||Ld===ud;)Ld=gd.charCodeAt(++Nd);if(Nd!==0&&Ld===cd){for(Nd++;Nd<Id;){if(Ld=gd.charCodeAt(Nd),ed(Ld)||td(Ld)||Ld===od||Ld===ld||Ld===ud){Nd++,Md===-1&&Ld===ld&&(Md=Nd)
`,rd="!",sd='"',od="'",ld="(",cd=")",ud="<",_d=">",yd="[",gd="\\",Ed="]",Td="`";function kd(Rd,Nd,Id){var Md=this,Ld="",Pd=0,qd=Nd.charAt(0),Yd=Md.options.pedantic,Ud=Md.options.commonmark,Hd=Md.options.gfm,Vd,Jd,Zd,pf,Xd,hf,mf,xf,Lf,Wf,Yf,If,Sf,wf,Kf,qf,gf,_f;if(qd===rd&&(xf=!0,Ld=qd,qd=Nd.charAt(++Pd)),qd===yd&&!(!xf&&Md.inLink)){for(Ld+=qd,wf="",Pd++,Yf=Nd.length,qf=Rd.now(),Sf=0,qf.column+=Pd,qf.offset+=Pd;Pd<Yf;){if(qd=Nd.charAt(Pd),hf=qd,qd===Td){for(Jd=1;Nd.charAt(Pd+1)===Td;)hf+=qd,Pd++,Jd++;Zd?Jd>=Zd&&(Zd=0):Zd=Jd}else if(qd===gd)Pd++,hf+=Nd.charAt(Pd);else if((!Zd||Hd)&&qd===yd)Sf++;else if((!Zd||Hd)&&qd===Ed)if(Sf)Sf--;else{if(Nd.charAt(Pd+1)!==ld)return;hf+=ld,Vd=!0,Pd++;break}wf+=hf,hf="",Pd++}if(Vd){for(Lf=wf,Ld+=wf+hf,Pd++;Pd<Yf&&(qd=Nd.charAt(Pd),!!Ja(qd));)Ld+=qd,Pd++;if(qd=Nd.charAt(Pd),wf="",pf=Ld,qd===ud){for(Pd++,pf+=ud;Pd<Yf&&(qd=Nd.charAt(Pd),qd!==_d);){if(Ud&&qd===td)return;wf+=qd,Pd++}if(Nd.charAt(Pd)!==_d)return;Ld+=ud+wf+_d,Kf=wf,Pd++}else{for(qd=null,hf="";Pd<Yf&&(qd=Nd.charAt(Pd),!(hf&&(qd===sd||qd===od||Ud&&qd===ld)));){if(Ja(qd)){if(!Yd)break;hf+=qd}else{if(qd===ld)Sf++;else if(qd===cd){if(Sf===0)break;Sf--}wf+=hf,hf="",qd===gd&&(wf+=gd,qd=Nd.charAt(++Pd)),wf+=qd}Pd++}Ld+=wf,Kf=wf,Pd=Ld.length}for(wf="";Pd<Yf&&(qd=Nd.charAt(Pd),!!Ja(qd));)wf+=qd,Pd++;if(qd=Nd.charAt(Pd),Ld+=wf,wf&&(qd===sd||qd===od||Ud&&qd===ld))if(Pd++,Ld+=qd,wf="",Wf=qd===ld?cd:qd,Xd=Ld,Ud){for(;Pd<Yf&&(qd=Nd.charAt(Pd),qd!==Wf);)qd===gd&&(wf+=gd,qd=Nd.charAt(++Pd)),Pd++,wf+=qd;if(qd=Nd.charAt(Pd),qd!==Wf)return;for(If=wf,Ld+=wf+qd,Pd++;Pd<Yf&&(qd=Nd.charAt(Pd),!!Ja(qd));)Ld+=qd,Pd++}else for(hf="";Pd<Yf;){if(qd=Nd.charAt(Pd),qd===Wf)mf&&(wf+=Wf+hf,hf=""),mf=!0;else if(!mf)wf+=qd;else if(qd===cd){Ld+=wf+Wf+hf,If=wf;break}else Ja(qd)?hf+=qd:(wf+=Wf+hf+qd,hf="",mf=!1);Pd++}if(Nd.charAt(Pd)===cd)return Id?!0:(Ld+=cd,Kf=Md.decode.raw(Md.unescape(Kf),Rd(pf).test().end,{nonTerminated:!1}),If&&(Xd=Rd(Xd).test().end,If=Md.decode.raw(Md.unescape(If),Xd)),_f={type:xf?"image":"link",title:If||null,url:Kf},xf?_f.alt=Md.decode.raw(Md.unescape(Lf),qf)||null:(gf=Md.enterLink(),_f.children=Md.tokenizeInline(Lf,qf),gf()),Rd(Ld)(_f))}}}}),rs$1=C((Ra,qa)=>{var Ja=ue$1(),ed=dn$2(),td=Qt$1();qa.exports=Ed,Ed.locator=ed;var rd="link",sd="image",od="shortcut",ld="collapsed",cd="full",ud="!",_d="[",yd="\\",gd="]";function Ed(Td,kd,Rd){var Nd=this,Id=Nd.options.commonmark,Md=kd.charAt(0),Ld=0,Pd=kd.length,qd="",Yd="",Ud=rd,Hd=od,Vd,Jd,Zd,pf,Xd,hf,mf,xf;if(Md===ud&&(Ud=sd,Yd=Md,Md=kd.charAt(++Ld)),Md===_d){for(Ld++,Yd+=Md,hf="",xf=0;Ld<Pd;){if(Md=kd.charAt(Ld),Md===_d)mf=!0,xf++;else if(Md===gd){if(!xf)break;xf--}Md===yd&&(hf+=yd,Md=kd.charAt(++Ld)),hf+=Md,Ld++}if(qd=hf,Vd=hf,Md=kd.charAt(Ld),Md===gd){if(Ld++,qd+=Md,hf="",!Id)for(;Ld<Pd&&(Md=kd.charAt(Ld),!!Ja(Md));)hf+=Md,Ld++;if(Md=kd.charAt(Ld),Md===_d){for(Jd="",hf+=Md,Ld++;Ld<Pd&&(Md=kd.charAt(Ld),!(Md===_d||Md===gd));)Md===yd&&(Jd+=yd,Md=kd.charAt(++Ld)),Jd+=Md,Ld++;Md=kd.charAt(Ld),Md===gd?(Hd=Jd?cd:ld,hf+=Jd+Md,Ld++):Jd="",qd+=hf,hf=""}else{if(!Vd)return;Jd=Vd}if(!(Hd!==cd&&mf))return qd=Yd+qd,Ud===rd&&Nd.inLink?null:Rd?!0:(Zd=Td.now(),Zd.column+=Yd.length,Zd.offset+=Yd.length,Jd=Hd===cd?Jd:Vd,pf={type:Ud+"Reference",identifier:td(Jd),label:Jd,referenceType:Hd},Ud===rd?(Xd=Nd.enterLink(),pf.children=Nd.tokenizeInline(Vd,Zd),Xd()):pf.alt=Nd.decode.raw(Nd.unescape(Vd),Zd)||null,Td(qd)(pf))}}}}),ns$1=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td){var rd=ed.indexOf("**",td),sd=ed.indexOf("__",td);return sd===-1?rd:rd===-1||sd<rd?sd:rd}}),os$1=C((Ra,qa)=>{var Ja=Re$4(),ed=ue$1(),td=ns$1();qa.exports=ld,ld.locator=td;var rd="\\",sd="*",od="_";function ld(cd,ud,_d){var yd=this,gd=0,Ed=ud.charAt(gd),Td,kd,Rd,Nd,Id,Md,Ld;if(!(Ed!==sd&&Ed!==od||ud.charAt(++gd)!==Ed)&&(kd=yd.options.pedantic,Rd=Ed,Id=Rd+Rd,Md=ud.length,gd++,Nd="",Ed="",!(kd&&ed(ud.charAt(gd)))))for(;gd<Md;){if(Ld=Ed,Ed=ud.charAt(gd),Ed===Rd&&ud.charAt(gd+1)===Rd&&(!kd||!ed(Ld))&&(Ed=ud.charAt(gd+2),Ed!==Rd))return Ja(Nd)?_d?!0:(Td=cd.now(),Td.column+=2,Td.offset+=2,cd(Id+Nd+Id)({type:"strong",children:yd.tokenizeInline(Nd,Td)})):void
`,td);rd>td&&ed.charAt(rd-1)===" ";)rd--;return rd}}),Os$3=C((Ra,qa)=>{var Ja=Ts$2();qa.exports=sd,sd.locator=Ja;var ed=" ",td=`
`,rd=2;function sd(od,ld,cd){for(var ud=ld.length,_d=-1,yd="",gd;++_d<ud;){if(gd=ld.charAt(_d),gd===td)return _d<rd?void 0:cd?!0:(yd+=gd,od(yd)({type:"break"}));if(gd!==ed)return;yd+=gd}}}),Ls$3=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td,rd){var sd=this,od,ld,cd,ud,_d,yd,gd,Ed,Td,kd;if(rd)return!0;for(od=sd.inlineMethods,ud=od.length,ld=sd.inlineTokenizers,cd=-1,Td=td.length;++cd<ud;)Ed=od[cd],!(Ed==="text"||!ld[Ed])&&(gd=ld[Ed].locator,gd||ed.file.fail("Missing locator: `"+Ed+"`"),yd=gd.call(sd,td,1),yd!==-1&&yd<Td&&(Td=yd));_d=td.slice(0,Td),kd=ed.now(),sd.decode(_d,kd,Rd);function Rd(Nd,Id,Md){ed(Md||Nd)({type:"text",value:Nd})}}}),Us$2=C((Ra,qa)=>{var Ja=Ie$1(),ed=ru$2(),td=nu$3(),rd=uu$3(),sd=Ou$1(),od=Iu$1();qa.exports=ld;function ld(_d,yd){this.file=yd,this.offset={},this.options=Ja(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=td(yd).toOffset,this.unescape=rd(this,"escape"),this.decode=sd(this)}var cd=ld.prototype;cd.setOptions=Vu$2(),cd.parse=aa$2(),cd.options=Rt$3(),cd.exitStart=ed("atStart",!0),cd.enterList=ed("inList",!1),cd.enterLink=ed("inLink",!1),cd.enterBlock=ed("inBlock",!1),cd.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],cd.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],cd.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]],cd.blockTokenizers={blankLine:sa$1(),indentedCode:pa$1(),fencedCode:ma$1(),blockquote:ba$2(),atxHeading:xa$2(),thematicBreak:Ba$1(),list:Ua$3(),setextHeading:Ga$2(),html:Ka$1(),definition:io$1(),table:oo$3(),paragraph:lo$2()},cd.inlineTokenizers={escape:Fo$1(),autoLink:yo$2(),url:Oo$1(),email:Mo$2(),html:Vo$1(),link:Qo$1(),reference:rs$1(),strong:os$1(),emphasis:ms$2(),deletion:ys$2(),code:Bs$2(),break:Os$3(),text:Ls$3()},cd.blockMethods=ud(cd.blockTokenizers),cd.inlineMethods=ud(cd.inlineTokenizers),cd.tokenizeBlock=od("block"),cd.tokenizeInline=od("inline"),cd.tokenizeFactory=od;function ud(_d){var yd=[],gd;for(gd in _d)yd.push(gd);return yd}}),Gs$1=C((Ra,qa)=>{var Ja=Zi$1(),ed=Ie$1(),td=Us$2();qa.exports=rd,rd.Parser=td;function rd(sd){var od=this.data("settings"),ld=Ja(td);ld.prototype.options=ed(ld.prototype.options,od,sd),this.Parser=ld}}),js$2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){if(ed)throw ed}}),yn$2=C((Ra,qa)=>{qa.exports=function(Ja){return Ja!=null&&Ja.constructor!=null&&typeof Ja.constructor.isBuffer=="function"&&Ja.constructor.isBuffer(Ja)}}),rc$2=C((Ra,qa)=>{var Ja=Object.prototype.hasOwnProperty,ed=Object.prototype.toString,td=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,sd=function(ud){return typeof Array.isArray=="function"?Array.isArray(ud):ed.call(ud)==="[object Array]"},od=function(ud){if(!ud||ed.call(ud)!=="[object Object]")return!1;var _d=Ja.call(ud,"constructor"),yd=ud.constructor&&ud.constructor.prototype&&Ja.call(ud.constructor.prototype,"isPrototypeOf");if(ud.constructor&&!_d&&!yd)return!1;var gd;for(gd in ud);return typeof gd>"u"||Ja.call(ud,gd)},ld=function(ud,_d){td&&_d.name==="__proto__"?td(ud,_d.name,{enumerable:!0,configurable:!0,value:_d.newValue,writable:!0}):ud[_d.name]=_d.newValue},cd=function(ud,_d){if(_d==="__proto__")if(Ja.call(ud,_d)){if(rd)return rd(ud,_d).value}else return;return ud[_d]};qa.exports=function ud(){var _d,yd,gd,Ed,Td,kd,Rd=arguments[0],Nd=1,Id=arguments.length,Md=!1;for(typeof Rd=="boolean"&&(Md=Rd,Rd=arguments[1]||{},Nd=2),(Rd==null||typeof Rd!="object"&&typeof Rd!="function")&&(Rd={});Nd<Id;++Nd)if(_d=arguments[Nd],_d!=null)for(yd in _d)gd=cd(Rd,yd),Ed=cd(_d,yd),Rd!==Ed&&(Md&&Ed&&(od(Ed)||(Td=sd(Ed)))?(Td?(Td=!1,kd=gd&&sd(gd)?gd:[]):kd=gd&&od(gd)?gd:{},ld(Rd,{name:yd,newValue:ud(Md,kd,Ed)})):typeof Ed<"u"&&ld(Rd,{name:yd,newV
Expected it to be 'string' or 'object'.`;if(Y$1(Ra))throw new Error("doc is valid.");let Ja=Object.prototype.toString.call(Ra);if(Ja!=="[object Object]")return`Unexpected doc '${Ja}'.`;let ed=ll$2([...wr$2].map(td=>`'${td}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${ed}.`}var Dt$3=class extends Error{constructor(Ja){super(fl$2(Ja));n1(this,"name","InvalidDocError");this.doc=Ja}},qe$2=Dt$3,Nn$2={};function Dl$2(Ra,qa,Ja,ed){let td=[Ra];for(;td.length>0;){let rd=td.pop();if(rd===Nn$2){Ja(td.pop());continue}Ja&&td.push(rd,Nn$2);let sd=Y$1(rd);if(!sd)throw new qe$2(rd);if((qa==null?void 0:qa(rd))!==!1)switch(sd){case H$1:case J$1:{let od=sd===H$1?rd:rd.parts;for(let ld=od.length,cd=ld-1;cd>=0;--cd)td.push(od[cd]);break}case X$1:td.push(rd.flatContents,rd.breakContents);break;case K$2:if(ed&&rd.expandedStates)for(let od=rd.expandedStates.length,ld=od-1;ld>=0;--ld)td.push(rd.expandedStates[ld]);else td.push(rd.contents);break;case re$3:case ee$1:case se$1:case fe$2:case ce$2:td.push(rd.contents);break;case $$1:case ge$3:case oe$2:case le$2:case W$1:case te$2:break;default:throw new qe$2(rd)}}}var Rn$2=Dl$2,Un$2=()=>{},kr$2=Un$2;function Ze$2(Ra){return{type:ee$1,contents:Ra}}function ve$2(Ra,qa){return{type:re$3,contents:qa,n:Ra}}function ze$2(Ra,qa={}){return kr$2(qa.expandedStates),{type:K$2,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function _e$3(Ra){return ve$2({type:"root"},Ra)}function Ee$2(Ra){return{type:J$1,parts:Ra}}function zn$2(Ra,qa="",Ja={}){return{type:X$1,breakContents:Ra,flatContents:qa,groupId:Ja.groupId}}var er$1={type:te$2},rr$1={type:W$1,hard:!0},pl$2={type:W$1,hard:!0,literal:!0},Br$3={type:W$1},qr$2={type:W$1,soft:!0},L$2=[rr$1,er$1],tr$1=[pl$2,er$1];function Tr$2(Ra,qa){let Ja=[];for(let ed=0;ed<qa.length;ed++)ed!==0&&Ja.push(Ra),Ja.push(qa[ed]);return Ja}function dl$2(Ra,qa){if(typeof Ra=="string")return qa(Ra);let Ja=new Map;return ed(Ra);function ed(rd){if(Ja.has(rd))return Ja.get(rd);let sd=td(rd);return Ja.set(rd,sd),sd}function td(rd){switch(Y$1(rd)){case H$1:return qa(rd.map(ed));case J$1:return qa({...rd,parts:rd.parts.map(ed)});case X$1:return qa({...rd,breakContents:ed(rd.breakContents),flatContents:ed(rd.flatContents)});case K$2:{let{expandedStates:sd,contents:od}=rd;return sd?(sd=sd.map(ed),od=sd[0]):od=ed(od),qa({...rd,contents:od,expandedStates:sd})}case re$3:case ee$1:case se$1:case fe$2:case ce$2:return qa({...rd,contents:ed(rd.contents)});case $$1:case ge$3:case oe$2:case le$2:case W$1:case te$2:return qa(rd);default:throw new qe$2(rd)}}}function Mn$2(Ra){if(Ra.length>0){let qa=M$2(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Yn$3(Ra){let qa=new Set,Ja=[];function ed(rd){if(rd.type===te$2&&Mn$2(Ja),rd.type===K$2){if(Ja.push(rd),qa.has(rd))return!1;qa.add(rd)}}function td(rd){rd.type===K$2&&Ja.pop().break&&Mn$2(Ja)}Rn$2(Ra,ed,td,!0)}function Ce$1(Ra,qa=tr$1){return dl$2(Ra,Ja=>typeof Ja=="string"?Tr$2(qa,Ja.split(`
`)):Ja)}function hl$2(Ra,qa){let Ja=Ra.match(new RegExp(`(${Be$3(qa)})+`,"gu"));return Ja===null?0:Ja.reduce((ed,td)=>Math.max(ed,td.length/qa.length),0)}var _r$2=hl$2;function ml$2(Ra,qa){let Ja=Ra.match(new RegExp(`(${Be$3(qa)})+`,"gu"));if(Ja===null)return 0;let ed=new Map,td=0;for(let rd of Ja){let sd=rd.length/qa.length;ed.set(sd,!0),sd>td&&(td=sd)}for(let rd=1;rd<td;rd++)if(!ed.get(rd))return rd;return td+1}var Gn$3=ml$2,Sr$2="'",Vn$2='"';function Fl$3(Ra,qa){let Ja=qa===!0||qa===Sr$2?Sr$2:Vn$2,ed=Ja===Sr$2?Vn$2:Sr$2,td=0,rd=0;for(let sd of Ra)sd===Ja?td++:sd===ed&&rd++;return td>rd?ed:Ja}var jn$3=Fl$3,pt$2=class extends Error{constructor(Ja,ed,td="type"){super(`Unexpected ${ed} node ${td}: ${JSON.stringify(Ja[td])}.`);n1(this,"name","UnexpectedNodeError");this.node=Ja}},$n$3=pt$2,Xn$3=Ue$3(xr$2());function gl$2(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var Hn$2=gl$2,nr$1=3;function vl$2(Ra){let qa=Ra.slice(0,nr$1);if(qa!=="---"&&qa!=="+++")return;let Ja=Ra.indexOf(`
`,nr$1);if(Ja===-1)return;let ed=Ra.slice(nr$1,Ja).trim(),td=Ra.indexOf(`
${qa}`,Ja),rd=ed;if(rd||(rd=qa==="+++"?"toml":"yaml"),td===-1&&qa==="---"&&rd==="yaml"&&(td=Ra.indexOf(`
...`,Ja)),td===-1)return;let sd=td+1+nr$1,od=Ra.charAt(sd+1);if(!/\s?/u.test(od))return;let ld=Ra.slice(0,sd);return{type:"front-matter",language:rd,explicitLanguage:ed,value:Ra.slice(Ja+1,td),startDelimiter:qa,endDelimiter:ld.slice(-nr$1),raw:ld}}function El$3(Ra){let qa=vl$2(Ra);if(!qa)return{content:Ra};let{raw:Ja}=qa;return{frontMatter:qa,content:N$2(!1,Ja,/[^\n]/gu," ")+Ra.slice(Ja.length)}}var ir$2=El$3,Wn$2=["format","prettier"];function dt$2(Ra){let qa=`@(${Wn$2.join("|")})`,Ja=new RegExp([`<!--\\s*${qa}\\s*-->`,`\\{\\s*\\/\\*\\s*${qa}\\s*\\*\\/\\s*\\}`,`<!--.*\r?
[\\s\\S]*(^|
)[^\\S
]*${qa}[^\\S
]*($|
)[\\s\\S]*
.*-->`].join("|"),"mu"),ed=Ra.match(Ja);return(ed==null?void 0:ed.index)===0}var Kn$2=Ra=>dt$2(ir$2(Ra).content.trimStart()),Jn$3=Ra=>{let qa=ir$2(Ra),Ja=`<!-- @${Wn$2[0]} -->`;return qa.frontMatter?`${qa.frontMatter.raw}
${Ja}
${qa.content}`:`${Ja}
${qa.content}`},Cl$2=new Set(["position","raw"]);function Qn$3(Ra,qa,Ja){if((Ra.type==="front-matter"||Ra.type==="code"||Ra.type==="yaml"||Ra.type==="import"||Ra.type==="export"||Ra.type==="jsx")&&delete qa.value,Ra.type==="list"&&delete qa.isAligned,(Ra.type==="list"||Ra.type==="listItem")&&delete qa.spread,Ra.type==="text")return null;if(Ra.type==="inlineCode"&&(qa.value=N$2(!1,Ra.value,`
`," ")),Ra.type==="wikiLink"&&(qa.value=N$2(!1,Ra.value.trim(),/[\t\n]+/gu," ")),(Ra.type==="definition"||Ra.type==="linkReference"||Ra.type==="imageReference")&&(qa.label=(0,Xn$3.default)(Ra.label)),(Ra.type==="link"||Ra.type==="image")&&Ra.url&&Ra.url.includes("("))for(let ed of"<>")qa.url=N$2(!1,Ra.url,ed,encodeURIComponent(ed));if((Ra.type==="definition"||Ra.type==="link"||Ra.type==="image")&&Ra.title&&(qa.title=N$2(!1,Ra.title,/\\(?=["')])/gu,"")),(Ja==null?void 0:Ja.type)==="root"&&Ja.children.length>0&&(Ja.children[0]===Ra||Hn$2(Ja.children[0])&&Ja.children[1]===Ra)&&Ra.type==="html"&&dt$2(Ra.value))return null}Qn$3.ignoredProperties=Cl$2;var Zn$2=Qn$3,ei$2=/(?:[\u02ea-\u02eb\u1100-\u11ff\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u303f\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u3190-\u4dbf\u4e00-\u9fff\ua700-\ua707\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufe10-\ufe1f\ufe30-\ufe6f\uff00-\uffef]|[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872\ud874-\ud879\ud880-\ud883\ud885-\ud887][\udc00-\udfff]|\ud81b[\udfe3]|\ud82b[\udff0-\udff3\udff5-\udffb\udffd-\udffe]|\ud82c[\udc00-\udd22\udd32\udd50-\udd52\udd55\udd64-\udd67]|\ud83c[\ude00\ude50-\ude51]|\ud869[\udc00-\udedf\udf00-\udfff]|\ud86d[\udc00-\udf39\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\ud884[\udc00-\udf4a\udf50-\udfff]|\ud888[\udc00-\udfaf])(?:[\ufe00-\ufe0f]|\udb40[\udd00-\uddef])?/u,Se$2=new RegExp("(?:[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e]|\\p{General_Category=Connector_Punctuation}|\\p{General_Category=Dash_Punctuation}|\\p{General_Category=Close_Punctuation}|\\p{General_Category=Final_Punctuation}|\\p{General_Category=Initial_Punctuation}|\\p{General_Category=Other_Punctuation}|\\p{General_Category=Open_Punctuation})","u");async function bl$2(Ra,qa){if(Ra.language==="yaml"){let Ja=Ra.value.trim(),ed=Ja?await qa(Ja,{parser:"yaml"}):"";return _e$3([Ra.startDelimiter,Ra.explicitLanguage,L$2,ed,ed?L$2:"",Ra.endDelimiter])}}var ri$3=bl$2,yl$2=Ra=>String(Ra).split(/[/\\]/u).pop();function ti$3(Ra,qa){if(!qa)return;let Ja=yl$2(qa).toLowerCase();return Ra.find(({filenames:ed})=>ed==null?void 0:ed.some(td=>td.toLowerCase()===Ja))??Ra.find(({extensions:ed})=>ed==null?void 0:ed.some(td=>Ja.endsWith(td)))}function Al$3(Ra,qa){if(qa)return Ra.find(({name:Ja})=>Ja.toLowerCase()===qa)??Ra.find(({aliases:Ja})=>Ja==null?void 0:Ja.includes(qa))??Ra.find(({extensions:Ja})=>Ja==null?void 0:Ja.includes(`.${qa}`))}function xl$3(Ra,qa){let Ja=Ra.plugins.flatMap(td=>td.languages??[]),ed=Al$3(Ja,qa.language)??ti$3(Ja,qa.physicalFile)??ti$3(Ja,qa.file)??(qa.physicalFile,void 0);return ed==null?void 0:ed.parsers[0]}var ni$3=xl$3,wl$3=new Proxy(()=>{},{get:()=>wl$3});function Oe$3(Ra){return Ra.position.start.offset}function Pe$3(Ra){return Ra.position.end.offset}var ht$2=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Or$2=new Set([...ht$2,"tableCell","paragraph","heading"]),Le$2="non-cjk",De$1="cj-letter",be$4="k-letter",ur$1="cjk-punctuation",kl$2=new RegExp("\\p{Script_Extensions=Hangul}","u");function Pr$2(Ra){let qa=[],Ja=Ra.split(/([\t\n ]+)/u);for(let[td,rd]of Ja.entries()){if(td%2===1){qa.push({type:"whitespace",value:/\n/u.test(rd)?`
`:" "});continue}if((td===0||td===Ja.length-1)&&rd==="")continue;let sd=rd.split(new RegExp(`(${ei$2.source})`,"u"));for(let[od,ld]of sd.entries())if(!((od===0||od===sd.length-1)&&ld==="")){if(od%2===0){ld!==""&&ed({type:"word",value:ld,kind:Le$2,hasLeadingPunctuation:Se$2.test(ld[0]),hasTrailingPunctuation:Se$2.test(M$2(!1,ld,-1))});continue}ed(Se$2.test(ld)?{type:"word",value:ld,kind:ur$1,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:ld,kind:kl$2.test(ld)?be$4:De$1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return qa;function ed(td){let rd=M$2(!1,qa,-1);(rd==null?void 0:rd.type)==="word"&&!sd(Le$2,ur$1)&&![rd.value,td.value].some(od=>/\u3000/u.test(od))&&qa.push({type:"whitespace",value:""}),qa.push(td);function sd(od,ld){return rd.kind===od&&td.kind===ld||rd.kind===ld&&td.kind===od}}}function Me$4(Ra,qa){let Ja=qa.originalText.slice(Ra.position.start.offset,Ra.position.end.offset),{numberText:ed,leadingSpaces:td}=Ja.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(ed),leadingSpaces:td}}function ii$3(Ra,qa){return!Ra.ordered||Ra.children.length<2||Me$4(Ra.children[1],qa).number!==1?!1:Me$4(Ra.children[0],qa).number!==0?!0:Ra.children.length>2&&Me$4(Ra.children[2],qa).number===1}function Lr$2(Ra,qa){let{value:Ja}=Ra;return Ra.position.end.offset===qa.length&&Ja.endsWith(`
`)&&qa.endsWith(`
`)?Ja.slice(0,-1):Ja}function ye$2(Ra,qa){return function Ja(ed,td,rd){let sd={...qa(ed,td,rd)};return sd.children&&(sd.children=sd.children.map((od,ld)=>Ja(od,ld,[sd,...rd]))),sd}(Ra,null,[])}function mt$2(Ra){if((Ra==null?void 0:Ra.type)!=="link"||Ra.children.length!==1)return!1;let[qa]=Ra.children;return Oe$3(Ra)===Oe$3(qa)&&Pe$3(Ra)===Pe$3(qa)}function Bl$2(Ra,qa){let{node:Ja}=Ra;if(Ja.type==="code"&&Ja.lang!==null){let ed=ni$3(qa,{language:Ja.lang});if(ed)return async td=>{let rd=qa.__inJsTemplate?"~":"`",sd=rd.repeat(Math.max(3,_r$2(Ja.value,rd)+1)),od={parser:ed};Ja.lang==="ts"||Ja.lang==="typescript"?od.filepath="dummy.ts":Ja.lang==="tsx"&&(od.filepath="dummy.tsx");let ld=await td(Lr$2(Ja,qa.originalText),od);return _e$3([sd,Ja.lang,Ja.meta?" "+Ja.meta:"",L$2,Ce$1(ld),L$2,sd])}}switch(Ja.type){case"front-matter":return ed=>ri$3(Ja,ed);case"import":case"export":return ed=>ed(Ja.value,{parser:"babel"});case"jsx":return ed=>ed(`<$>${Ja.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var ui$2=Bl$2,ar$1=null;function or$1(Ra){if(ar$1!==null&&typeof ar$1.property){let qa=ar$1;return ar$1=or$1.prototype=null,qa}return ar$1=or$1.prototype=Ra??Object.create(null),new or$1}var ql$3=10;for(let Ra=0;Ra<=ql$3;Ra++)or$1();function Ft$3(Ra){return or$1(Ra)}function Tl$3(Ra,qa="type"){Ft$3(Ra);function Ja(ed){let td=ed[qa],rd=Ra[td];if(!Array.isArray(rd))throw Object.assign(new Error(`Missing visitor keys for '${td}'.`),{node:ed});return rd}return Ja}var ai$3=Tl$3,_l$2={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},oi$2=_l$2,Sl$3=ai$3(oi$2),si$3=Sl$3;function ci$2(Ra){switch(Ra){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}var li$3=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\u
`?N$2(!1,Ed,`
`,td):Ed;od.push(Td),sd.length>0&&(rd+=sr$1(Td));break}case H$1:for(let Td=Ed.length-1;Td>=0;Td--)sd.push({ind:yd,mode:gd,doc:Ed[Td]});break;case ge$3:if(ud>=2)throw new Error("There are too many 'cursor' in doc.");od.push(cr$1),ud++;break;case ee$1:sd.push({ind:Ll$3(yd,qa),mode:gd,doc:Ed.contents});break;case re$3:sd.push({ind:Il$3(yd,Ed.n,qa),mode:gd,doc:Ed.contents});break;case oe$2:rd-=vt$2(od);break;case K$2:switch(gd){case ne$2:if(!ld){sd.push({ind:yd,mode:Ed.break?G$2:ne$2,doc:Ed.contents});break}case G$2:{ld=!1;let Td={ind:yd,mode:ne$2,doc:Ed.contents},kd=ed-rd,Rd=cd.length>0;if(!Ed.break&&Ir$2(Td,sd,kd,Rd,Ja))sd.push(Td);else if(Ed.expandedStates){let Nd=M$2(!1,Ed.expandedStates,-1);if(Ed.break){sd.push({ind:yd,mode:G$2,doc:Nd});break}else for(let Id=1;Id<Ed.expandedStates.length+1;Id++)if(Id>=Ed.expandedStates.length){sd.push({ind:yd,mode:G$2,doc:Nd});break}else{let Md=Ed.expandedStates[Id],Ld={ind:yd,mode:ne$2,doc:Md};if(Ir$2(Ld,sd,kd,Rd,Ja)){sd.push(Ld);break}}}else sd.push({ind:yd,mode:G$2,doc:Ed.contents});break}}Ed.id&&(Ja[Ed.id]=M$2(!1,sd,-1).mode);break;case J$1:{let Td=ed-rd,{parts:kd}=Ed;if(kd.length===0)break;let[Rd,Nd]=kd,Id={ind:yd,mode:ne$2,doc:Rd},Md={ind:yd,mode:G$2,doc:Rd},Ld=Ir$2(Id,[],Td,cd.length>0,Ja,!0);if(kd.length===1){Ld?sd.push(Id):sd.push(Md);break}let Pd={ind:yd,mode:ne$2,doc:Nd},qd={ind:yd,mode:G$2,doc:Nd};if(kd.length===2){Ld?sd.push(Pd,Id):sd.push(qd,Md);break}kd.splice(0,2);let Yd={ind:yd,mode:gd,doc:Ee$2(kd)},Ud=kd[0];Ir$2({ind:yd,mode:ne$2,doc:[Rd,Nd,Ud]},[],Td,cd.length>0,Ja,!0)?sd.push(Yd,Pd,Id):Ld?sd.push(Yd,qd,Id):sd.push(Yd,qd,Md);break}case X$1:case se$1:{let Td=Ed.groupId?Ja[Ed.groupId]:gd;if(Td===G$2){let kd=Ed.type===X$1?Ed.breakContents:Ed.negate?Ed.contents:Ze$2(Ed.contents);kd&&sd.push({ind:yd,mode:gd,doc:kd})}if(Td===ne$2){let kd=Ed.type===X$1?Ed.flatContents:Ed.negate?Ze$2(Ed.contents):Ed.contents;kd&&sd.push({ind:yd,mode:gd,doc:kd})}break}case ce$2:cd.push({ind:yd,mode:gd,doc:Ed.contents});break;case le$2:cd.length>0&&sd.push({ind:yd,mode:gd,doc:rr$1});break;case W$1:switch(gd){case ne$2:if(Ed.hard)ld=!0;else{Ed.soft||(od.push(" "),rd+=1);break}case G$2:if(cd.length>0){sd.push({ind:yd,mode:gd,doc:Ed},...cd.reverse()),cd.length=0;break}Ed.literal?yd.root?(od.push(td,yd.root.value),rd=yd.root.length):(od.push(td),rd=0):(rd-=vt$2(od),od.push(td+yd.value),rd=yd.length);break}break;case fe$2:sd.push({ind:yd,mode:gd,doc:Ed.contents});break;case te$2:break;default:throw new qe$2(Ed)}sd.length===0&&cd.length>0&&(sd.push(...cd.reverse()),cd.length=0)}let _d=od.indexOf(cr$1);if(_d!==-1){let yd=od.indexOf(cr$1,_d+1),gd=od.slice(0,_d).join(""),Ed=od.slice(_d+1,yd).join(""),Td=od.slice(yd+1).join("");return{formatted:gd+Ed+Td,cursorNodeStart:gd.length,cursorNodeText:Ed}}return{formatted:od.join("")}}function mi$1(Ra,qa,Ja){let{node:ed}=Ra,td=[],rd=Ra.map(()=>Ra.map(({index:_d})=>{let yd=hi$2(Ja(),qa).formatted,gd=sr$1(yd);return td[_d]=Math.max(td[_d]??3,gd),{text:yd,width:gd}},"children"),"children"),sd=ld(!1);if(qa.proseWrap!=="never")return[er$1,sd];let od=ld(!0);return[er$1,ze$2(zn$2(od,sd))];function ld(_d){return Tr$2(rr$1,[ud(rd[0],_d),cd(_d),...rd.slice(1).map(yd=>ud(yd,_d))].map(yd=>`| ${yd.join(" | ")} |`))}function cd(_d){return td.map((yd,gd)=>{let Ed=ed.align[gd],Td=Ed==="center"||Ed==="left"?":":"-",kd=Ed==="center"||Ed==="right"?":":"-",Rd=_d?"-":"-".repeat(yd-2);return`${Td}${Rd}${kd}`})}function ud(_d,yd){return _d.map(({text:gd,width:Ed},Td)=>{if(yd)return gd;let kd=td[Td]-Ed,Rd=ed.align[Td],Nd=0;Rd==="right"?Nd=kd:Rd==="center"&&(Nd=Math.floor(kd/2));let Id=kd-Nd;return`${" ".repeat(Nd)}${gd}${" ".repeat(Id)}`})}}function Fi$1(Ra,qa,Ja){let ed=Ra.map(Ja,"children");return Nl$3(ed)}function Nl$3(Ra){let qa=[""];return function Ja(ed){for(let td of ed){let rd=Y$1(td);if(rd===H$1){Ja(td);continue}let sd=td,od=[];rd===J$1&&([sd,...od]=td.parts),qa.push([qa.pop(),sd],...od)}}(Ra),Ee$2(qa)}var Rl$3=/^.$/su;function Ul$2(Ra,qa){return Ra=zl$3(Ra,qa),Ra=Yl$2(Ra),Ra=Vl$2(Ra,qa),Ra=jl$2(Ra,qa),Ra=Gl$3(Ra),Ra}function zl$3(Ra,qa){return ye$2(Ra,Ja=>Ja.type!=="text"||J
`)return L$2;let td=qa===" "||qa===`
`&&Jl$3(Ra,ed);return Xl$3(Ra,qa,Ja,ed,td)?td?Br$3:qr$2:td?" ":""}var Ql$3=new Set(["listItem","definition"]);function Zl$2(Ra,qa,Ja){var ed,td;let{node:rd}=Ra;if(af(Ra)){let sd=[""],od=Pr$2(qa.originalText.slice(rd.position.start.offset,rd.position.end.offset));for(let ld of od){if(ld.type==="word"){sd.push([sd.pop(),ld.value]);continue}let cd=Et$3(Ra,ld.value,qa.proseWrap,!0);if(Y$1(cd)===$$1){sd.push([sd.pop(),cd]);continue}sd.push(cd)}return Ee$2(sd)}switch(rd.type){case"front-matter":return qa.originalText.slice(rd.position.start.offset,rd.position.end.offset);case"root":return rd.children.length===0?"":[tf(Ra,qa,Ja),L$2];case"paragraph":return Fi$1(Ra,qa,Ja);case"sentence":return vi$2(Ra,Ja);case"word":{let sd=N$2(!1,N$2(!1,rd.value,"*",String.raw`\*`),new RegExp([`(^|${Se$2.source})(_+)`,`(_+)(${Se$2.source}|$)`].join("|"),"gu"),(cd,ud,_d,yd,gd)=>N$2(!1,_d?`${ud}${_d}`:`${yd}${gd}`,"_",String.raw`\_`)),od=(cd,ud,_d)=>cd.type==="sentence"&&_d===0,ld=(cd,ud,_d)=>mt$2(cd.children[_d-1]);return sd!==rd.value&&(Ra.match(void 0,od,ld)||Ra.match(void 0,od,(cd,ud,_d)=>cd.type==="emphasis"&&_d===0,ld))&&(sd=sd.replace(/^(\\?[*_])+/u,cd=>N$2(!1,cd,"\\",""))),sd}case"whitespace":{let{next:sd}=Ra,od=sd&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(sd.value)?"never":qa.proseWrap;return Et$3(Ra,rd.value,od)}case"emphasis":{let sd;if(mt$2(rd.children[0]))sd=qa.originalText[rd.position.start.offset];else{let{previous:od,next:ld}=Ra;sd=(od==null?void 0:od.type)==="sentence"&&((ed=M$2(!1,od.children,-1))==null?void 0:ed.type)==="word"&&!M$2(!1,od.children,-1).hasTrailingPunctuation||(ld==null?void 0:ld.type)==="sentence"&&((td=ld.children[0])==null?void 0:td.type)==="word"&&!ld.children[0].hasLeadingPunctuation||Ra.hasAncestor(cd=>cd.type==="emphasis")?"*":"_"}return[sd,V$3(Ra,qa,Ja),sd]}case"strong":return["**",V$3(Ra,qa,Ja),"**"];case"delete":return["~~",V$3(Ra,qa,Ja),"~~"];case"inlineCode":{let sd=qa.proseWrap==="preserve"?rd.value:N$2(!1,rd.value,`
`," "),od=Gn$3(sd,"`"),ld="`".repeat(od||1),cd=sd.startsWith("`")||sd.endsWith("`")||/^[\n ]/u.test(sd)&&/[\n ]$/u.test(sd)&&/[^\n ]/u.test(sd)?" ":"";return[ld,cd,sd,cd,ld]}case"wikiLink":{let sd="";return qa.proseWrap==="preserve"?sd=rd.value:sd=N$2(!1,rd.value,/[\t\n]+/gu," "),["[[",sd,"]]"]}case"link":switch(qa.originalText[rd.position.start.offset]){case"<":{let sd="mailto:";return["<",rd.url.startsWith(sd)&&qa.originalText.slice(rd.position.start.offset+1,rd.position.start.offset+1+sd.length)!==sd?rd.url.slice(sd.length):rd.url,">"]}case"[":return["[",V$3(Ra,qa,Ja),"](",Ct$3(rd.url,")"),Nr$2(rd.title,qa),")"];default:return qa.originalText.slice(rd.position.start.offset,rd.position.end.offset)}case"image":return["![",rd.alt||"","](",Ct$3(rd.url,")"),Nr$2(rd.title,qa),")"];case"blockquote":return["> ",ve$2("> ",V$3(Ra,qa,Ja))];case"heading":return["#".repeat(rd.depth)+" ",V$3(Ra,qa,Ja)];case"code":{if(rd.isIndented){let ld=" ".repeat(4);return ve$2(ld,[ld,Ce$1(rd.value,L$2)])}let sd=qa.__inJsTemplate?"~":"`",od=sd.repeat(Math.max(3,_r$2(rd.value,sd)+1));return[od,rd.lang||"",rd.meta?" "+rd.meta:"",L$2,Ce$1(Lr$2(rd,qa.originalText),L$2),L$2,od]}case"html":{let{parent:sd,isLast:od}=Ra,ld=sd.type==="root"&&od?rd.value.trimEnd():rd.value,cd=/^<!--.*-->$/su.test(ld);return Ce$1(ld,cd?L$2:_e$3(tr$1))}case"list":{let sd=Ai$2(rd,Ra.parent),od=ii$3(rd,qa);return V$3(Ra,qa,Ja,{processor(ld){let cd=_d(),ud=ld.node;if(ud.children.length===2&&ud.children[1].type==="html"&&ud.children[0].position.start.column!==ud.children[1].position.start.column)return[cd,yi$3(ld,qa,Ja,cd)];return[cd,ve$2(" ".repeat(cd.length),yi$3(ld,qa,Ja,cd))];function _d(){let yd=rd.ordered?(ld.isFirst?rd.start:od?1:rd.start+ld.index)+(sd%2===0?". ":") "):sd%2===0?"- ":"* ";return rd.isAligned||rd.hasIndentedCodeblock?ef(yd,qa):yd}}})}case"thematicBreak":{let{ancestors:sd}=Ra,od=sd.findIndex(ld=>ld.type==="list");return od===-1?"---":Ai$2(sd[od],sd[od+1])%2===0?"***":"---"}case"linkReference":return["[",V$3(Ra,qa,Ja),"]",rd.referenceType==="full"?bt$2(rd):rd.referenceType==="collapsed"?"[]":""];case"imageReference":switch(rd.referenceType){case"full":return["![",rd.alt||"","]",bt$2(rd)];default:return["![",rd.alt,"]",rd.referenceType==="collapsed"?"[]":""]}case"definition":{let sd=qa.proseWrap==="always"?Br$3:" ";return ze$2([bt$2(rd),":",Ze$2([sd,Ct$3(rd.url),rd.title===null?"":[sd,Nr$2(rd.title,qa,!1)]])])}case"footnote":return["[^",V$3(Ra,qa,Ja),"]"];case"footnoteReference":return Bi$2(rd);case"footnoteDefinition":{let sd=rd.children.length===1&&rd.children[0].type==="paragraph"&&(qa.proseWrap==="never"||qa.proseWrap==="preserve"&&rd.children[0].position.start.line===rd.children[0].position.end.line);return[Bi$2(rd),": ",sd?V$3(Ra,qa,Ja):ze$2([ve$2(" ".repeat(4),V$3(Ra,qa,Ja,{processor:({isFirst:od})=>od?ze$2([qr$2,Ja()]):Ja()}))])]}case"table":return mi$1(Ra,qa,Ja);case"tableCell":return V$3(Ra,qa,Ja);case"break":return/\s/u.test(qa.originalText[rd.position.start.offset])?[" ",_e$3(tr$1)]:["\\",L$2];case"liquidNode":return Ce$1(rd.value,L$2);case"import":case"export":case"jsx":return rd.value;case"esComment":return["{/* ",rd.value," */}"];case"math":return["$$",L$2,rd.value?[Ce$1(rd.value,L$2),L$2]:"","$$"];case"inlineMath":return qa.originalText.slice(Oe$3(rd),Pe$3(rd));case"tableRow":case"listItem":case"text":default:throw new $n$3(rd,"Markdown")}}function yi$3(Ra,qa,Ja,ed){let{node:td}=Ra,rd=td.checked===null?"":td.checked?"[x] ":"[ ] ";return[rd,V$3(Ra,qa,Ja,{processor({node:sd,isFirst:od}){if(od&&sd.type!=="list")return ve$2(" ".repeat(rd.length),Ja());let ld=" ".repeat(sf(qa.tabWidth-ed.length,0,3));return[ld,ve$2(ld,Ja())]}})]}function ef(Ra,qa){let Ja=ed();return Ra+" ".repeat(Ja>=4?0:Ja);function ed(){let td=Ra.length%qa.tabWidth;return td===0?0:qa.tabWidth-td}}function Ai$2(Ra,qa){return rf(Ra,qa,Ja=>Ja.ordered===Ra.ordered)}function rf(Ra,qa,Ja){let ed=-1;for(let td of qa.children)if(td.type===Ra.type&&Ja(td)?ed++:ed=-1,td===Ra)return ed}function tf(Ra,qa,Ja){let ed=[],td=null,{children:rd}=Ra.node;for(let[sd,od]of rd.entries())switch(yt$2(
`)}function uf({node:Ra,previous:qa,parent:Ja},ed){if(wi$2(qa,ed))return!0;let td=qa.type===Ra.type&&Ql$3.has(Ra.type),rd=Ja.type==="listItem"&&!wi$2(Ja,ed),sd=yt$2(qa)==="next",od=Ra.type==="html"&&qa.type==="html"&&qa.position.end.line+1===Ra.position.start.line,ld=Ra.type==="html"&&Ja.type==="listItem"&&qa.type==="paragraph"&&qa.position.end.line+1===Ra.position.start.line;return!(td||rd||sd||od||ld)}function ki$2({node:Ra,previous:qa}){let Ja=qa.type==="list",ed=Ra.type==="code"&&Ra.isIndented;return Ja&&ed}function af(Ra){let qa=Ra.findAncestor(Ja=>Ja.type==="linkReference"||Ja.type==="imageReference");return qa&&(qa.type!=="linkReference"||qa.referenceType!=="full")}var of=(Ra,qa)=>{for(let Ja of qa)Ra=N$2(!1,Ra,Ja,encodeURIComponent(Ja));return Ra};function Ct$3(Ra,qa=[]){let Ja=[" ",...Array.isArray(qa)?qa:[qa]];return new RegExp(Ja.map(ed=>Be$3(ed)).join("|"),"u").test(Ra)?`<${of(Ra,"<>")}>`:Ra}function Nr$2(Ra,qa,Ja=!0){if(!Ra)return"";if(Ja)return" "+Nr$2(Ra,qa,!1);if(Ra=N$2(!1,Ra,/\\(?=["')])/gu,""),Ra.includes('"')&&Ra.includes("'")&&!Ra.includes(")"))return`(${Ra})`;let ed=jn$3(Ra,qa.singleQuote);return Ra=N$2(!1,Ra,"\\","\\\\"),Ra=N$2(!1,Ra,ed,`\\${ed}`),`${ed}${Ra}${ed}`}function sf(Ra,qa,Ja){return Ra<qa?qa:Ra>Ja?Ja:Ra}function cf(Ra){return Ra.index>0&&yt$2(Ra.previous)==="next"}function bt$2(Ra){return`[${(0,qi$1.default)(Ra.label)}]`}function Bi$2(Ra){return`[^${Ra.label}]`}var lf={preprocess:gi$2,print:Zl$2,embed:ui$2,massageAstNode:Zn$2,hasPrettierIgnore:cf,insertPragma:Jn$3,getVisitorKeys:si$3},Ti$2=lf,_i$2=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],At$4={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ff={proseWrap:At$4.proseWrap,singleQuote:At$4.singleQuote},Si$2=ff,On$2={};Ln$3(On$2,{markdown:()=>km,mdx:()=>Bm,remark:()=>km});var Wc$1=Ue$3(Pi$2()),Kc$1=Ue$3(Wi$1()),Jc$1=Ue$3(Gs$1()),Xc$1=Ue$3(Ic$1()),vm=/^import\s/u,Em=/^export\s/u,Nc$1=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Rc$1=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,Cm=/^\{\s*\/\*(.*)\*\/\s*\}/u,bm$1=`
`,Uc$1=Ra=>vm.test(Ra),Sn$2=Ra=>Em.test(Ra),zc$1=(Ra,qa)=>{let Ja=qa.indexOf(bm$1),ed=qa.slice(0,Ja);if(Sn$2(ed)||Uc$1(ed))return Ra(ed)({type:Sn$2(ed)?"export":"import",value:ed})},Mc$1=(Ra,qa)=>{let Ja=Cm.exec(qa);if(Ja)return Ra(Ja[0])({type:"esComment",value:Ja[1].trim()})};zc$1.locator=Ra=>Sn$2(Ra)||Uc$1(Ra)?-1:1;Mc$1.locator=(Ra,qa)=>Ra.indexOf("{",qa);var Yc$1=function(){let{Parser:Ra}=this,{blockTokenizers:qa,blockMethods:Ja,inlineTokenizers:ed,inlineMethods:td}=Ra.prototype;qa.esSyntax=zc$1,ed.esComment=Mc$1,Ja.splice(Ja.indexOf("paragraph"),0,"esSyntax"),td.splice(td.indexOf("text"),0,"esComment")},ym=function(){let Ra=this.Parser.prototype;Ra.blockMethods=["frontMatter",...Ra.blockMethods],Ra.blockTokenizers.frontMatter=qa;function qa(Ja,ed){let td=ir$2(ed);if(td.frontMatter)return Ja(td.frontMatter.raw)(td.frontMatter)}qa.onlyAtStart=!0},Gc$1=ym;function Am(){return Ra=>ye$2(Ra,(qa,Ja,[ed])=>qa.type!=="html"||Rc$1.test(qa.value)||Or$2.has(ed.type)?qa:{...qa,type:"jsx"})}var Vc$1=Am,xm=function(){let Ra=this.Parser.prototype,qa=Ra.inlineMethods;qa.splice(qa.indexOf("text"),0,"liquid"),Ra.inlineTokenizers.liquid=Ja;function Ja(ed,td){let rd=td.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(rd)return ed(rd[0])({type:"liquidNode",value:rd[0]})}Ja.locator=function(ed,td){return ed.indexOf("{",td)}},jc$1=xm,wm=function(){let Ra="wikiLink",qa=/^\[\[(?<linkContents>.+?)\]\]/su,Ja=this.Parser.prototype,ed=Ja.inlineMethods;ed.splice(ed.indexOf("link"),0,Ra),Ja.inlineTokenizers.wikiLink=td;function td(rd,sd){let od=qa.exec(sd);if(od){let ld=od.groups.linkContents.trim();return rd(od[0])({type:Ra,value:ld})}}td.locator=function(rd,sd){return rd.indexOf("[",sd)}},$c$1=wm;function Qc$1({isMDX:Ra}){return qa=>{let Ja=(0,Xc$1.default)().use(Jc$1.default,{commonmark:!0,...Ra&&{blocks:[Nc$1]}}).use(Wc$1.default).use(Gc$1).use(Kc$1.default).use(Ra?Yc$1:Hc$1).use(jc$1).use(Ra?Vc$1:Hc$1).use($c$1);return Ja.run(Ja.parse(qa))}}function Hc$1(){}var Zc$1={astFormat:"mdast",hasPragma:Kn$2,locStart:Oe$3,locEnd:Pe$3},km={...Zc$1,parse:Qc$1({isMDX:!1})},Bm={...Zc$1,parse:Qc$1({isMDX:!0})},qm={mdast:Ti$2},fC=Pn$3;const prettierPluginMarkdown=Object.freeze(Object.defineProperty({__proto__:null,default:fC,languages:_i$2,options:Si$2,parsers:On$2,printers:qm},Symbol.toStringTag,{value:"Module"}));var $s$1=Object.create,je$3=Object.defineProperty,Vs$1=Object.getOwnPropertyDescriptor,qs$2=Object.getOwnPropertyNames,zs$1=Object.getPrototypeOf,Ks$2=Object.prototype.hasOwnProperty,Hs$2=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Ws$1=(Ra,qa)=>{for(var Ja in qa)je$3(Ra,Ja,{get:qa[Ja],enumerable:!0})},Js$1=(Ra,qa,Ja,ed)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let td of qs$2(qa))!Ks$2.call(Ra,td)&&td!==Ja&&je$3(Ra,td,{get:()=>qa[td],enumerable:!(ed=Vs$1(qa,td))||ed.enumerable});return Ra},vt$1=(Ra,qa,Ja)=>(Ja=Ra!=null?$s$1(zs$1(Ra)):{},Js$1(je$3(Ja,"default",{value:Ra,enumerable:!0}),Ra)),At$3=Hs$2(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(jd,Od){if(jd==null)return{};var Gd={},df=Object.keys(jd),Nf,Xf;for(Xf=0;Xf<df.length;Xf++)Nf=df[Xf],!(Od.indexOf(Nf)>=0)&&(Gd[Nf]=jd[Nf]);return Gd}var Ja=class{constructor(jd,Od,Gd){this.line=void 0,this.column=void 0,this.index=void 0,this.line=jd,this.column=Od,this.index=Gd}},ed=class{constructor(jd,Od){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=jd,this.end=Od}};function td(jd,Od){let{line:Gd,column:df,index:Nf}=jd;return new Ja(Gd,df+Od,Nf+Od)}var rd="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",sd={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:rd},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:rd}},od={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-
- Did you mean \`export { '${jd}' as '${Od}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:jd})=>`'${jd==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:jd})=>`Unsyntactic ${jd==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:jd})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${jd}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:jd})=>`\`import()\` requires exactly ${jd===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:jd})=>`Expected number in radix ${jd}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:jd})=>`Escape sequence in keyword ${jd}.`,InvalidIdentifier:({identifierName:jd})=>`Invalid identifier ${jd}.`,InvalidLhs:({ancestor:jd})=>`Invalid left-hand side in ${ld(jd)}.`,InvalidLhsBinding:({ancestor:jd})=>`Binding invalid left-hand side in ${ld(jd)}.`,InvalidLhsOptionalChaining:({ancestor:jd})=>`Invalid optional chaining in the left-hand side of ${ld(jd)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:jd})=>`Unexpected character '${jd}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:jd})=>`Private name #${jd} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:jd})=>`Label '${jd}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:jd})=>`This experimental syntax requires enabling the parser plugin: ${jd.map(Od=>JSON.stringify(Od)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:jd})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${jd.map(Od=>JSON.stringify(Od)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:jd})=>`Duplicate key "${jd}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:jd})=>`An export name cannot include a lone surrogate, found '\\u${jd.toString(16)}'.`,ModuleExportUndefined:({localName:jd})=>`Export '${jd}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals ar
`,++Gd,r1===13&&Od.charCodeAt(Gd)===10&&++Gd,++Nf,Wm=df=Gd):Xf.unterminated(Th,Ih,zh):++Gd}return{pos:Gd,str:Uh,firstInvalidLoc:Sm,lineStart:df,curLine:Nf,containsInvalid:!!Sm}}function m1(jd,Od,Gd,df){return jd==="template"?Od===96||Od===36&&Gd.charCodeAt(df+1)===123:Od===(jd==="double"?34:39)}function f1(jd,Od,Gd,df,Nf,Xf){let Th=!Nf;Od++;let Ih=Uh=>({pos:Od,ch:Uh,lineStart:Gd,curLine:df}),zh=jd.charCodeAt(Od++);switch(zh){case 110:return Ih(`
`);case 114:return Ih("\r");case 120:{let Uh;return{code:Uh,pos:Od}=a1(jd,Od,Gd,df,2,!1,Th,Xf),Ih(Uh===null?null:String.fromCharCode(Uh))}case 117:{let Uh;return{code:Uh,pos:Od}=v1(jd,Od,Gd,df,Th,Xf),Ih(Uh===null?null:String.fromCodePoint(Uh))}case 116:return Ih(" ");case 98:return Ih("\b");case 118:return Ih("\v");case 102:return Ih("\f");case 13:jd.charCodeAt(Od)===10&&++Od;case 10:Gd=Od,++df;case 8232:case 8233:return Ih("");case 56:case 57:if(Nf)return Ih(null);Xf.strictNumericEscape(Od-1,Gd,df);default:if(zh>=48&&zh<=55){let Uh=Od-1,Sm=/^[0-7]+/.exec(jd.slice(Uh,Od+2))[0],Wm=parseInt(Sm,8);Wm>255&&(Sm=Sm.slice(0,-1),Wm=parseInt(Sm,8)),Od+=Sm.length-1;let Zm=jd.charCodeAt(Od);if(Sm!=="0"||Zm===56||Zm===57){if(Nf)return Ih(null);Xf.strictNumericEscape(Uh,Gd,df)}return Ih(String.fromCharCode(Wm))}return Ih(String.fromCharCode(zh))}}function a1(jd,Od,Gd,df,Nf,Xf,Th,Ih){let zh=Od,Uh;return{n:Uh,pos:Od}=Dm(jd,Od,Gd,df,16,Nf,Xf,!1,Ih,!Th),Uh===null&&(Th?Ih.invalidEscapeSequence(zh,Gd,df):Od=zh-1),{code:Uh,pos:Od}}function Dm(jd,Od,Gd,df,Nf,Xf,Th,Ih,zh,Uh){let Sm=Od,Wm=Nf===16?_m.hex:_m.decBinOct,Zm=Nf===16?Ff.hex:Nf===10?Ff.dec:Nf===8?Ff.oct:Ff.bin,r1=!1,C1=0;for(let f0=0,P1=Xf??1/0;f0<P1;++f0){let Y1=jd.charCodeAt(Od),O0;if(Y1===95&&Ih!=="bail"){let Yg=jd.charCodeAt(Od-1),Sb=jd.charCodeAt(Od+1);if(Ih){if(Number.isNaN(Sb)||!Zm(Sb)||Wm.has(Yg)||Wm.has(Sb)){if(Uh)return{n:null,pos:Od};zh.unexpectedNumericSeparator(Od,Gd,df)}}else{if(Uh)return{n:null,pos:Od};zh.numericSeparatorInEscapeSequence(Od,Gd,df)}++Od;continue}if(Y1>=97?O0=Y1-97+10:Y1>=65?O0=Y1-65+10:um(Y1)?O0=Y1-48:O0=1/0,O0>=Nf){if(O0<=9&&Uh)return{n:null,pos:Od};if(O0<=9&&zh.invalidDigit(Od,Gd,df,Nf))O0=0;else if(Th)O0=0,r1=!0;else break}++Od,C1=C1*Nf+O0}return Od===Sm||Xf!=null&&Od-Sm!==Xf||r1?{n:null,pos:Od}:{n:C1,pos:Od}}function v1(jd,Od,Gd,df,Nf,Xf){let Th=jd.charCodeAt(Od),Ih;if(Th===123){if(++Od,{code:Ih,pos:Od}=a1(jd,Od,Gd,df,jd.indexOf("}",Od)-Od,!0,Nf,Xf),++Od,Ih!==null&&Ih>1114111)if(Nf)Xf.invalidCodePoint(Od,Gd,df);else return{code:null,pos:Od}}else({code:Ih,pos:Od}=a1(jd,Od,Gd,df,4,!1,Nf,Xf));return{code:Ih,pos:Od}}function u1(jd,Od,Gd){return new Ja(Gd,jd-Od,jd)}var o1=new Set([103,109,115,105,121,117,100,118]),oh=class{constructor(jd){this.type=jd.type,this.value=jd.value,this.start=jd.start,this.end=jd.end,this.loc=new ed(jd.startLoc,jd.endLoc)}},Oh=class extends ph{constructor(jd,Od){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Gd,df,Nf,Xf)=>this.options.errorRecovery?(this.raise(Nd.InvalidDigit,u1(Gd,df,Nf),{radix:Xf}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Nd.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Nd.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Nd.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Nd.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(Gd,df,Nf)=>{this.recordStrictModeErrors(Nd.StrictNumericEscape,u1(Gd,df,Nf))},unterminated:(Gd,df,Nf)=>{throw this.raise(Nd.UnterminatedString,u1(Gd-1,df,Nf))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Nd.StrictNumericEscape),unterminated:(Gd,df,Nf)=>{throw this.raise(Nd.UnterminatedTemplate,u1(Gd,df,Nf))}}),this.state=new cm,this.state.init(jd),this.input=Od,this.length=Od.length,this.comments=[],this.isLookahead=!1}pushToken(jd){this.tokens.length=this.state.tokensLength,this.tokens.push(jd),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new oh(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(jd){return this.match(jd)?(this.next(),!0):!1}match(jd){return this.state.type===jd}createLookaheadState(jd){return{pos:jd.pos,value:null,type:jd.type,start:jd.start,end:jd.end,context:[this.curContext
`:`\r
`):df=String.fromCharCode(Gd),++this.state.curLine,this.state.lineStart=this.state.pos,df}jsxReadString(Od){let Gd="",df=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Nd.UnterminatedString,this.state.startLoc);let Nf=this.input.charCodeAt(this.state.pos);if(Nf===Od)break;Nf===38?(Gd+=this.input.slice(df,this.state.pos),Gd+=this.jsxReadEntity(),df=this.state.pos):Lh(Nf)?(Gd+=this.input.slice(df,this.state.pos),Gd+=this.jsxReadNewLine(!1),df=this.state.pos):++this.state.pos}Gd+=this.input.slice(df,this.state.pos++),this.finishToken(133,Gd)}jsxReadEntity(){let Od=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Gd=10;this.codePointAtPos(this.state.pos)===120&&(Gd=16,++this.state.pos);let df=this.readInt(Gd,void 0,!1,"bail");if(df!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(df)}else{let Gd=0,df=!1;for(;Gd++<10&&this.state.pos<this.length&&!(df=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(df){this.input.slice(Od,this.state.pos);let Nf;++this.state.pos}}return this.state.pos=Od,"&"}jsxReadWord(){let Od,Gd=this.state.pos;do Od=this.input.charCodeAt(++this.state.pos);while(Xh(Od)||Od===45);this.finishToken(140,this.input.slice(Gd,this.state.pos))}jsxParseIdentifier(){let Od=this.startNode();return this.match(140)?Od.name=this.state.value:Af(this.state.type)?Od.name=Dh(this.state.type):this.unexpected(),this.next(),this.finishNode(Od,"JSXIdentifier")}jsxParseNamespacedName(){let Od=this.state.startLoc,Gd=this.jsxParseIdentifier();if(!this.eat(14))return Gd;let df=this.startNodeAt(Od);return df.namespace=Gd,df.name=this.jsxParseIdentifier(),this.finishNode(df,"JSXNamespacedName")}jsxParseElementName(){let Od=this.state.startLoc,Gd=this.jsxParseNamespacedName();if(Gd.type==="JSXNamespacedName")return Gd;for(;this.eat(16);){let df=this.startNodeAt(Od);df.object=Gd,df.property=this.jsxParseIdentifier(),Gd=this.finishNode(df,"JSXMemberExpression")}return Gd}jsxParseAttributeValue(){let Od;switch(this.state.type){case 5:return Od=this.startNode(),this.setContext(Yd.brace),this.next(),Od=this.jsxParseExpressionContainer(Od,Yd.j_oTag),Od.expression.type==="JSXEmptyExpression"&&this.raise(p0.AttributeIsEmpty,Od),Od;case 142:case 133:return this.parseExprAtom();default:throw this.raise(p0.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let Od=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(Od,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(Od){return this.next(),Od.expression=this.parseExpression(),this.setContext(Yd.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Od,"JSXSpreadChild")}jsxParseExpressionContainer(Od,Gd){if(this.match(8))Od.expression=this.jsxParseEmptyExpression();else{let df=this.parseExpression();Od.expression=df}return this.setContext(Gd),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Od,"JSXExpressionContainer")}jsxParseAttribute(){let Od=this.startNode();return this.match(5)?(this.setContext(Yd.brace),this.next(),this.expect(21),Od.argument=this.parseMaybeAssignAllowIn(),this.setContext(Yd.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Od,"JSXSpreadAttribute")):(Od.name=this.jsxParseNamespacedName(),Od.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(Od,"JSXAttribute"))}jsxParseOpeningElementAt(Od){let Gd=this.startNodeAt(Od);return this.eat(143)?this.finishNode(Gd,"JSXOpeningFragment"):(Gd.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Gd))}jsxParseOpeningElementAfterName(Od){let Gd=[];for(;!this.match(56)&&!this.match(143);)Gd.push(this.jsxParseAttribute());return Od.attributes=Gd,Od.selfClosing=this.eat(56),this.expect(143),this.finishNode(Od,"JSXOpeningElement")}jsxParseClosingElementAt(Od){let Gd=this.startNodeAt(Od);return this.eat(143)?this.finishNode(Gd,"JSXClosingFragment"):(Gd.name=this.jsxParseElementName(),this.expect(143),this.finishNode(Gd,"JSXClosingElement"))}jsxParseElementAt(Od){let Gd=this.startNodeAt(Od),df=[],Nf
`),cooked:Nf===null?null:Nf.slice(1,zh)},Th.tail=Ih,this.next();let Sm=this.finishNode(Th,"TemplateElement");return this.resetEndLocation(Sm,td(this.state.lastTokEndLoc,zh)),Sm}parseTemplate(jd){let Od=this.startNode(),Gd=this.parseTemplateElement(jd),df=[Gd],Nf=[];for(;!Gd.tail;)Nf.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),df.push(Gd=this.parseTemplateElement(jd));return Od.expressions=Nf,Od.quasis=df,this.finishNode(Od,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(jd,Od,Gd,df){Gd&&this.expectPlugin("recordAndTuple");let Nf=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Xf=Object.create(null),Th=!0,Ih=this.startNode();for(Ih.properties=[],this.next();!this.match(jd);){if(Th)Th=!1;else if(this.expect(12),this.match(jd)){this.addTrailingCommaExtraToNode(Ih);break}let Uh;Od?Uh=this.parseBindingProperty():(Uh=this.parsePropertyDefinition(df),this.checkProto(Uh,Gd,Xf,df)),Gd&&!this.isObjectProperty(Uh)&&Uh.type!=="SpreadElement"&&this.raise(Nd.InvalidRecordProperty,Uh),Uh.shorthand&&this.addExtra(Uh,"shorthand",!0),Ih.properties.push(Uh)}this.next(),this.state.inFSharpPipelineDirectBody=Nf;let zh="ObjectExpression";return Od?zh="ObjectPattern":Gd&&(zh="RecordExpression"),this.finishNode(Ih,zh)}addTrailingCommaExtraToNode(jd){this.addExtra(jd,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(jd,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(jd){return!jd.computed&&jd.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(jd){let Od=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Nd.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)Od.push(this.parseDecorator());let Gd=this.startNode(),df=!1,Nf=!1,Xf;if(this.match(21))return Od.length&&this.unexpected(),this.parseSpread();Od.length&&(Gd.decorators=Od,Od=[]),Gd.method=!1,jd&&(Xf=this.state.startLoc);let Th=this.eat(55);this.parsePropertyNamePrefixOperator(Gd);let Ih=this.state.containsEsc;if(this.parsePropertyName(Gd,jd),!Th&&!Ih&&this.maybeAsyncOrAccessorProp(Gd)){let{key:zh}=Gd,Uh=zh.name;Uh==="async"&&!this.hasPrecedingLineBreak()&&(df=!0,this.resetPreviousNodeTrailingComments(zh),Th=this.eat(55),this.parsePropertyName(Gd)),(Uh==="get"||Uh==="set")&&(Nf=!0,this.resetPreviousNodeTrailingComments(zh),Gd.kind=Uh,this.match(55)&&(Th=!0,this.raise(Nd.AccessorIsGenerator,this.state.curPosition(),{kind:Uh}),this.next()),this.parsePropertyName(Gd))}return this.parseObjPropValue(Gd,Xf,Th,df,!1,Nf,jd)}getGetterSetterExpectedParamCount(jd){return jd.kind==="get"?0:1}getObjectOrClassMethodParams(jd){return jd.params}checkGetterSetterParams(jd){var Od;let Gd=this.getGetterSetterExpectedParamCount(jd),df=this.getObjectOrClassMethodParams(jd);df.length!==Gd&&this.raise(jd.kind==="get"?Nd.BadGetterArity:Nd.BadSetterArity,jd),jd.kind==="set"&&((Od=df[df.length-1])==null?void 0:Od.type)==="RestElement"&&this.raise(Nd.BadSetterRestParameter,jd)}parseObjectMethod(jd,Od,Gd,df,Nf){if(Nf){let Xf=this.parseMethod(jd,Od,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(Xf),Xf}if(Gd||Od||this.match(10))return df&&this.unexpected(),jd.kind="method",jd.method=!0,this.parseMethod(jd,Od,Gd,!1,!1,"ObjectMethod")}parseObjectProperty(jd,Od,Gd,df){if(jd.shorthand=!1,this.eat(14))return jd.value=Gd?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(df),this.finishNode(jd,"ObjectProperty");if(!jd.computed&&jd.key.type==="Identifier"){if(this.checkReservedWord(jd.key.name,jd.key.loc.start,!0,!1),Gd)jd.value=this.parseMaybeDefault(Od,T0(jd.key));else if(this.match(29)){let Nf=this.state.startLoc;df!=null?df.shorthandAssignLoc===null&&(df.shorthandAssignLoc=Nf):this.raise(Nd.InvalidCoverInitializedName,Nf),jd.value=this.parseMaybeDefault(Od,T0(jd.key))}else jd.value=T0(jd.key);return jd.shorthand=!0,this.finishNode(jd,"ObjectProperty")}}parseObjPropValue(jd,Od,Gd,df,Nf,Xf,Th){let Ih=this.parseObjectMethod(jd,Gd,df,Nf,Xf)||this.parseObjectPr
`)return qa-2;if(td===`
`||td==="\r"||td==="\u2028"||td==="\u2029")return qa-1}else{if(td==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(td===`
`||td==="\r"||td==="\u2028"||td==="\u2029")return qa+1}return qa}var us$2=mr$1;function yr$1(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?cs$2(Ra,qa):qa}var fs$1=yr$1;function xr$1(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=ls$2(Ra,ed),ed=ps$1(Ra,ed),ed=fs$1(Ra,ed),ed=us$2(Ra,ed);return ed}var ds$1=xr$1;function Pr$1(Ra){let qa=[];for(let Ja of Ra)try{return Ja()}catch(ed){qa.push(ed)}throw Object.assign(new Error("All combinations failed"),{errors:qa})}var ms$1=Pr$1;function gr$1(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var Oe$2=gr$1,Tr$1=(Ra,qa,Ja)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[Ja<0?qa.length+Ja:Ja]:qa.at(Ja)},St$2=Tr$1;function br$1(Ra){return Array.isArray(Ra)&&Ra.length>0}var Pe$2=br$1;function D$1(Ra){var qa,Ja,ed;let td=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,rd=(ed=((Ja=Ra.declaration)==null?void 0:Ja.decorators)??Ra.decorators)==null?void 0:ed[0];return rd?Math.min(D$1(rd),td):td}function B(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function Ar$1(Ra){let qa=new Set(Ra);return Ja=>qa.has(Ja==null?void 0:Ja.type)}var ys$1=Ar$1,Sr$1=ys$1(["Block","CommentBlock","MultiLine"]),ge$2=Sr$1;function wr$1(Ra){let qa=`*${Ra.value}*`.split(`
`);return qa.length>1&&qa.every(Ja=>Ja.trimStart()[0]==="*")}var wt$1=wr$1;function Cr(Ra){return ge$2(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(Ra.value)}var xs$1=Cr,Te$2=null;function be$3(Ra){if(Te$2!==null&&typeof Te$2.property){let qa=Te$2;return Te$2=be$3.prototype=null,qa}return Te$2=be$3.prototype=Ra??Object.create(null),new be$3}var Er$1=10;for(let Ra=0;Ra<=Er$1;Ra++)be$3();function Ct$2(Ra){return be$3(Ra)}function Ir$1(Ra,qa="type"){Ct$2(Ra);function Ja(ed){let td=ed[qa],rd=Ra[td];if(!Array.isArray(rd))throw Object.assign(new Error(`Missing visitor keys for '${td}'.`),{node:ed});return rd}return Ja}var Ps$1=Ir$1,gs$2={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance
`;Ra=ie$2(!1,Ra.replace(Or$1,"").replace(Mr$2,""),Ur$2,"$1");let Ja="";for(;Ja!==Ra;)Ja=Ra,Ra=ie$2(!1,Ra,Rr$1,`${qa}$1 $2${qa}`);Ra=Ra.replace(Ss$1,"").trimEnd();let ed=Object.create(null),td=ie$2(!1,Ra,ws$2,"").replace(Ss$1,"").trimEnd(),rd;for(;rd=ws$2.exec(Ra);){let sd=ie$2(!1,rd[2],Br$2,"");if(typeof ed[rd[1]]=="string"||Array.isArray(ed[rd[1]])){let od=ed[rd[1]];ed[rd[1]]=[..._r$1,...Array.isArray(od)?od:[od],sd]}else ed[rd[1]]=sd}return{comments:td,pragmas:ed}}function jr$2(Ra){let qa=Oe$2(Ra);qa&&(Ra=Ra.slice(qa.length+1));let Ja=Cs$1(Ra),{pragmas:ed,comments:td}=Es$1(Ja);return{shebang:qa,text:Ra,pragmas:ed,comments:td}}function Is$2(Ra){let{pragmas:qa}=jr$2(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function $r$2(Ra){return Ra=typeof Ra=="function"?{parse:Ra}:Ra,{astFormat:"estree",hasPragma:Is$2,locStart:D$1,locEnd:B,...Ra}}var G$1=$r$2;function Vr$2(Ra){let{filepath:qa}=Ra;if(qa){if(qa=qa.toLowerCase(),qa.endsWith(".cjs"))return"script";if(qa.endsWith(".mjs"))return"module"}}var Ns$1=Vr$2;function qr$1(Ra,qa){let{type:Ja="JsExpressionRoot",rootMarker:ed,text:td}=qa,{tokens:rd,comments:sd}=Ra;return delete Ra.tokens,delete Ra.comments,{tokens:rd,comments:sd,type:Ja,node:Ra,range:[0,td.length],rootMarker:ed}}var Ue$2=qr$1,re$2=Ra=>G$1(Jr$2(Ra)),zr$2={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}],"sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ks$1="v8intrinsic",vs$1=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],V$2=(Ra,qa=zr$2)=>({...qa,plugins:[...qa.plugins,...Ra]}),Kr$2=/@(?:no)?flow\b/u;function Hr$2(Ra,qa){var Ja;if((Ja=qa.filepath)!=null&&Ja.endsWith(".js.flow"))return!0;let ed=Oe$2(Ra);ed&&(Ra=Ra.slice(ed.length));let td=ds$1(Ra,0);return td!==!1&&(Ra=Ra.slice(0,td)),Kr$2.test(Ra)}function Wr$2(Ra,qa,Ja){let ed=Ra(qa,Ja),td=ed.errors.find(rd=>!Xr$2.has(rd.reasonCode));if(td)throw td;return ed}function Jr$2({isExpression:Ra=!1,optionsCombinations:qa}){return(Ja,ed={})=>{if((ed.parser==="babel"||ed.parser==="__babel_estree")&&Hr$2(Ja,ed))return ed.parser="babel-flow",Bs$1.parse(Ja,ed);let td=qa;(ed.__babelSourceType??Ns$1(ed))==="script"&&(td=td.map(ld=>({...ld,sourceType:"script"})));let rd=/%[A-Z]/u.test(Ja);Ja.includes("|>")?td=(rd?[...vs$1,ks$1]:vs$1).flatMap(ld=>td.map(cd=>V$2([ld],cd))):rd&&(td=td.map(ld=>V$2([ks$1],ld)));let sd=Ra?_e$2.parseExpression:_e$2.parse,od;try{od=ms$1(td.map(ld=>()=>Wr$2(sd,Ja,ld)))}catch({errors:[ld]}){throw Re$3(ld)}return Ra&&(od=Ue$2(od,{text:Ja,rootMarker:ed.rootMarker})),As$2(od,{parser:"babel",text:Ja})}}var Xr$2=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Fs$1
`)return qa-2;if(td===`
`||td==="\r"||td==="\u2028"||td==="\u2029")return qa-1}else{if(td==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(td===`
`||td==="\r"||td==="\u2028"||td==="\u2029")return qa+1}return qa}var Ue$1=$a$2;function Ka(Ra,qa,Ja={}){let ed=Ge$1(Ra,Ja.backwards?qa-1:qa,Ja),td=Ue$1(Ra,ed,Ja);return ed!==td}var te$1=Ka;function za(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let Ja=qa+2;Ja<Ra.length;++Ja)if(Ra.charAt(Ja)==="*"&&Ra.charAt(Ja+1)==="/")return Ja+2}return qa}var Lt$1=za;function Qa(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?zs(Ra,qa):qa}var wt=Qa;function Za$1(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=Ks$1(Ra,ed),ed=Lt$1(Ra,ed),ed=Ge$1(Ra,ed);return ed=wt(Ra,ed),ed=Ue$1(Ra,ed),ed!==!1&&te$1(Ra,ed)}var Ot$2=Za$1;function eo(Ra){return Array.isArray(Ra)&&Ra.length>0}var w=eo,dr="'",Qs$1='"';function to(Ra,qa){let Ja=qa===!0||qa===dr?dr:Qs$1,ed=Ja===dr?Qs$1:dr,td=0,rd=0;for(let sd of Ra)sd===Ja?td++:sd===ed&&rd++;return td>rd?ed:Ja}var xr=to;function ro(Ra,qa,Ja){let ed=qa==='"'?"'":'"',td=N$1(!1,Ra,/\\(.)|(["'])/gsu,(rd,sd,od)=>sd===ed?sd:od===qa?"\\"+od:od||(Ja&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(sd)?sd:"\\"+sd));return qa+td+qa}var Zs$1=ro;function no$1(Ra,qa){let Ja=Ra.slice(1,-1),ed=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":xr(Ja,qa.singleQuote);return Zs$1(Ja,ed,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var tt$1=no$1;function R$1(Ra){var qa,Ja,ed;let td=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,rd=(ed=((Ja=Ra.declaration)==null?void 0:Ja.decorators)??Ra.decorators)==null?void 0:ed[0];return rd?Math.min(R$1(rd),td):td}function k(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function ht$1(Ra,qa){let Ja=R$1(Ra);return Number.isInteger(Ja)&&Ja===R$1(qa)}function so$1(Ra,qa){let Ja=k(Ra);return Number.isInteger(Ja)&&Ja===k(qa)}function eu$1(Ra,qa){return ht$1(Ra,qa)&&so$1(Ra,qa)}var Qt=null;function Zt$2(Ra){if(Qt!==null&&typeof Qt.property){let qa=Qt;return Qt=Zt$2.prototype=null,qa}return Qt=Zt$2.prototype=Ra??Object.create(null),new Zt$2}var uo$2=10;for(let Ra=0;Ra<=uo$2;Ra++)Zt$2();function In$1(Ra){return Zt$2(Ra)}function io(Ra,qa="type"){In$1(Ra);function Ja(ed){let td=ed[qa],rd=Ra[td];if(!Array.isArray(rd))throw Object.assign(new Error(`Missing visitor keys for '${td}'.`),{node:ed});return rd}return Ja}var hr=io,tu$2={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["decla
`):Ra.type==="UnaryExpression"?rr(Ra.argument,{printWidth:Ja}):Ra.type==="CallExpression"&&Ra.arguments.length===0&&Ra.callee.type==="Identifier"?Ra.callee.name.length<=ed-2:kr(Ra)}function Oe$1(Ra,qa){return X(qa)?Bt$2(qa):d(qa,g$2.Leading,Ja=>te$1(Ra,k(Ja)))}function nu$2(Ra){return Ra.quasis.some(qa=>qa.value.raw.includes(`
`))}function Lr(Ra,qa){return(Ra.type==="TemplateLiteral"&&nu$2(Ra)||Ra.type==="TaggedTemplateExpression"&&nu$2(Ra.quasi))&&!te$1(qa,R$1(Ra),{backwards:!0})}function wr(Ra){if(!d(Ra))return!1;let qa=O$1(!1,ct(Ra,g$2.Dangling),-1);return qa&&!re$1(qa)}function lu$1(Ra){if(Ra.length<=1)return!1;let qa=0;for(let Ja of Ra)if(_t$1(Ja)){if(qa+=1,qa>1)return!0}else if(L$1(Ja)){for(let ed of oe$1(Ja))if(_t$1(ed))return!0}return!1}function Or(Ra){let{node:qa,parent:Ja,key:ed}=Ra;return ed==="callee"&&L$1(qa)&&L$1(Ja)&&Ja.arguments.length>0&&qa.arguments.length>Ja.arguments.length}var xo$1=new Set(["!","-","+","~"]);function be$2(Ra,qa=2){if(qa<=0)return!1;if(Ra.type==="ChainExpression"||Ra.type==="TSNonNullExpression")return be$2(Ra.expression,qa);let Ja=ed=>be$2(ed,qa-1);if(vn$1(Ra))return et$1(Ra.pattern??Ra.regex.pattern)<=5;if(kr(Ra)||Do(Ra)||Ra.type==="ArgumentPlaceholder")return!0;if(Ra.type==="TemplateLiteral")return Ra.quasis.every(ed=>!ed.value.raw.includes(`
`))&&Ra.expressions.every(Ja);if(se(Ra))return Ra.properties.every(ed=>!ed.computed&&(ed.shorthand||ed.value&&Ja(ed.value)));if(U$1(Ra))return Ra.elements.every(ed=>ed===null||Ja(ed));if(lt$1(Ra)){if(Ra.type==="ImportExpression"||be$2(Ra.callee,qa)){let ed=oe$1(Ra);return ed.length<=qa&&ed.every(Ja)}return!1}return q$1(Ra)?be$2(Ra.object,qa)&&be$2(Ra.property,qa):Ra.type==="UnaryExpression"&&xo$1.has(Ra.operator)||Ra.type==="UpdateExpression"?be$2(Ra.argument,qa):!1}function fe$1(Ra){var qa;return((qa=Ra.extra)==null?void 0:qa.raw)??Ra.raw}function mu$1(Ra){return Ra}function ae(Ra,qa="es5"){return Ra.trailingComma==="es5"&&qa==="es5"||Ra.trailingComma==="all"&&(qa==="all"||qa==="es5")}function ie$1(Ra,qa){switch(Ra.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie$1(Ra.left,qa);case"MemberExpression":case"OptionalMemberExpression":return ie$1(Ra.object,qa);case"TaggedTemplateExpression":return Ra.tag.type==="FunctionExpression"?!1:ie$1(Ra.tag,qa);case"CallExpression":case"OptionalCallExpression":return Ra.callee.type==="FunctionExpression"?!1:ie$1(Ra.callee,qa);case"ConditionalExpression":return ie$1(Ra.test,qa);case"UpdateExpression":return!Ra.prefix&&ie$1(Ra.argument,qa);case"BindExpression":return Ra.object&&ie$1(Ra.object,qa);case"SequenceExpression":return ie$1(Ra.expressions[0],qa);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie$1(Ra.expression,qa);default:return qa(Ra)}}var su$2={"==":!0,"!=":!0,"===":!0,"!==":!0},br={"*":!0,"/":!0,"%":!0},_n$2={">>":!0,">>>":!0,"<<":!0};function nr(Ra,qa){return!(er(qa)!==er(Ra)||Ra==="**"||su$2[Ra]&&su$2[qa]||qa==="%"&&br[Ra]||Ra==="%"&&br[qa]||qa!==Ra&&br[qa]&&br[Ra]||_n$2[Ra]&&_n$2[qa])}var ho$1=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((Ra,qa)=>Ra.map(Ja=>[Ja,qa])));function er(Ra){return ho$1.get(Ra)}function yu(Ra){return!!_n$2[Ra]||Ra==="|"||Ra==="^"||Ra==="&"}function Du$1(Ra){var qa;if(Ra.rest)return!0;let Ja=K$1(Ra);return((qa=O$1(!1,Ja,-1))==null?void 0:qa.type)==="RestElement"}var wn$2=new WeakMap;function K$1(Ra){if(wn$2.has(Ra))return wn$2.get(Ra);let qa=[];return Ra.this&&qa.push(Ra.this),Array.isArray(Ra.parameters)?qa.push(...Ra.parameters):Array.isArray(Ra.params)&&qa.push(...Ra.params),Ra.rest&&qa.push(Ra.rest),wn$2.set(Ra,qa),qa}function fu(Ra,qa){let{node:Ja}=Ra,ed=0,td=rd=>qa(rd,ed++);Ja.this&&Ra.call(td,"this"),Array.isArray(Ja.parameters)?Ra.each(td,"parameters"):Array.isArray(Ja.params)&&Ra.each(td,"params"),Ja.rest&&Ra.call(td,"rest")}var On$1=new WeakMap;function oe$1(Ra){if(On$1.has(Ra))return On$1.get(Ra);if(Ra.type==="ChainExpression")return oe$1(Ra.expression);let qa=Ra.arguments;return Ra.type==="ImportExpression"&&(qa=[Ra.source],Ra.attributes&&qa.push(Ra.attributes),Ra.options&&qa.push(Ra.options)),On$1.set(Ra,qa),qa}function Rt$2(Ra,qa){let{node:Ja}=Ra;if(Ja.type==="ChainExpression")return Ra.call(()=>Rt$2(Ra,qa),"expression");Ja.type==="ImportExpression"?(Ra.call(ed=>qa(ed,0),"source"),Ja.attributes&&Ra.call(ed=>qa(ed,1),"attributes"),Ja.options&&Ra.call(ed=>qa(ed,1),"options")):Ra.each(qa,"arguments")}function Rn$1(Ra,qa){let Ja=[];if(Ra.type==="ChainExpression"&&(Ra=Ra.expression,Ja.push("expression")),Ra.type==="ImportExpression"){if(qa===0||qa===(Ra.attributes||Ra.options?-2:-1))return[...Ja,"source"];if(Ra.attributes&&(qa===1||qa===-1))return[...Ja,"attributes"];if(Ra.options&&(qa===1||qa===-1))return[...Ja,"options"];throw new RangeError("Invalid argument index")}if(qa<0&&(qa=Ra.arguments.length+qa),qa<0||qa>=Ra.arguments.length)throw new RangeError("Invalid argument index");return[...Ja,"arguments",qa]}function sr(Ra){return Ra.value.trim()==="prettier-ignore"&&!Ra.unignore}function Bt$2(Ra){return(Ra==null?void 0:Ra.prettierIgnore)||d(Ra,g$2.PrettierIgnore)}var g$2={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,Pr
Expected it to be 'string' or 'object'.`;if(ut(Ra))throw new Error("doc is valid.");let Ja=Object.prototype.toString.call(Ra);if(Ja!=="[object Object]")return`Unexpected doc '${Ja}'.`;let ed=Bo([...jr$1].map(td=>`'${td}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${ed}.`}var Jn$2=class extends Error{constructor(Ja){super(bo$1(Ja));n1(this,"name","InvalidDocError");this.doc=Ja}},Ct$1=Jn$2,Au={};function Po(Ra,qa,Ja,ed){let td=[Ra];for(;td.length>0;){let rd=td.pop();if(rd===Au){Ja(td.pop());continue}Ja&&td.push(rd,Au);let sd=ut(rd);if(!sd)throw new Ct$1(rd);if((qa==null?void 0:qa(rd))!==!1)switch(sd){case _e$1:case Pe$1:{let od=sd===_e$1?rd:rd.parts;for(let ld=od.length,cd=ld-1;cd>=0;--cd)td.push(od[cd]);break}case xe$2:td.push(rd.flatContents,rd.breakContents);break;case le$1:if(ed&&rd.expandedStates)for(let od=rd.expandedStates.length,ld=od-1;ld>=0;--ld)td.push(rd.expandedStates[ld]);else td.push(rd.contents);break;case Ye$1:case Xe$1:case He$1:case je$2:case Ve$1:td.push(rd.contents);break;case rt$1:case nt:case st:case $e$2:case me:case ve$1:break;default:throw new Ct$1(rd)}}}var qn$2=Po,Tu$1=()=>{},vr=Tu$1;function f(Ra){return{type:Xe$1,contents:Ra}}function he$1(Ra,qa){return{type:Ye$1,contents:qa,n:Ra}}function l(Ra,qa={}){return vr(qa.expandedStates),{type:le$1,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function du$1(Ra){return he$1(Number.NEGATIVE_INFINITY,Ra)}function Mr$1(Ra){return he$1(-1,Ra)}function ze$1(Ra,qa){return l(Ra[0],{...qa,expandedStates:Ra})}function qt$1(Ra){return{type:Pe$1,parts:Ra}}function b(Ra,qa="",Ja={}){return{type:xe$2,breakContents:Ra,flatContents:qa,groupId:Ja.groupId}}function At$2(Ra,qa){return{type:He$1,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function Wn$1(Ra){return{type:Ve$1,contents:Ra}}var ke$2={type:$e$2},Ee$1={type:ve$1},Gn$2={type:me,hard:!0},ko={type:me,hard:!0,literal:!0},x={type:me},E$1={type:me,soft:!0},F=[Gn$2,Ee$1],Rr=[ko,Ee$1],Un$1={type:nt};function P$1(Ra,qa){let Ja=[];for(let ed=0;ed<qa.length;ed++)ed!==0&&Ja.push(Ra),Ja.push(qa[ed]);return Ja}function xu(Ra,qa,Ja){let ed=Ra;if(qa>0){for(let td=0;td<Math.floor(qa/Ja);++td)ed=f(ed);ed=he$1(qa%Ja,ed),ed=he$1(Number.NEGATIVE_INFINITY,ed)}return ed}function it$1(Ra,qa){return Ra?{type:je$2,label:Ra,contents:qa}:qa}function mt$1(Ra,qa){if(typeof Ra=="string")return qa(Ra);let Ja=new Map;return ed(Ra);function ed(rd){if(Ja.has(rd))return Ja.get(rd);let sd=td(rd);return Ja.set(rd,sd),sd}function td(rd){switch(ut(rd)){case _e$1:return qa(rd.map(ed));case Pe$1:return qa({...rd,parts:rd.parts.map(ed)});case xe$2:return qa({...rd,breakContents:ed(rd.breakContents),flatContents:ed(rd.flatContents)});case le$1:{let{expandedStates:sd,contents:od}=rd;return sd?(sd=sd.map(ed),od=sd[0]):od=ed(od),qa({...rd,contents:od,expandedStates:sd})}case Ye$1:case Xe$1:case He$1:case je$2:case Ve$1:return qa({...rd,contents:ed(rd.contents)});case rt$1:case nt:case st:case $e$2:case me:case ve$1:return qa(rd);default:throw new Ct$1(rd)}}}function gu(Ra,qa,Ja){let ed=Ja,td=!1;function rd(sd){if(td)return!1;let od=qa(sd);od!==void 0&&(td=!0,ed=od)}return qn$2(Ra,rd),ed}function Io(Ra){if(Ra.type===le$1&&Ra.break||Ra.type===me&&Ra.hard||Ra.type===ve$1)return!0}function ne$1(Ra){return gu(Ra,Io,!1)}function hu$1(Ra){if(Ra.length>0){let qa=O$1(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Su(Ra){let qa=new Set,Ja=[];function ed(rd){if(rd.type===ve$1&&hu$1(Ja),rd.type===le$1){if(Ja.push(rd),qa.has(rd))return!1;qa.add(rd)}}function td(rd){rd.type===le$1&&Ja.pop().break&&hu$1(Ja)}qn$2(Ra,ed,td,!0)}function Lo$2(Ra){return Ra.type===me&&!Ra.hard?Ra.soft?"":" ":Ra.type===xe$2?Ra.flatContents:Ra}function ur(Ra){return mt$1(Ra,Lo$2)}function wo$1(Ra){switch(ut(Ra)){case Pe$1:if(Ra.parts.every(qa=>qa===""))return"";break;case le$1:if(!Ra.contents&&!Ra.id&&!Ra.break&&!Ra.expandedStates)return"";if(Ra.contents.type===le$1&&Ra.contents.id===Ra.id&&Ra.contents.break===Ra.break&&Ra.contents.expandedStates===Ra.expandedStates)return Ra.contents;break;case Ye$1:case Xe$1:case He$1:case Ve$1:if(!Ra.contents)return"";break;case xe$2:if(!Ra.flatContents&&!Ra.breakContents)return"";break;case _e$1:{let qa=[];for(let Ja of Ra){if(!Ja)continue;let[ed,...td]=Array.isArray(Ja)?Ja:[Ja];typeof ed=="string"&&typeof O$1(!1,qa,-1)=="s
`)):Ja)}function Oo(Ra){if(Ra.type===me)return!0}function Bu(Ra){return gu(Ra,Oo,!1)}function ir$1(Ra,qa){return Ra.type===je$2?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}function _o(Ra){let qa=`*${Ra.value}*`.split(`
`);return qa.length>1&&qa.every(Ja=>Ja.trimStart()[0]==="*")}var bu=_o;function Pu(Ra,qa){let Ja=Ra.node;if(vt(Ja))return qa.originalText.slice(R$1(Ja),k(Ja)).trimEnd();if(re$1(Ja))return bu(Ja)?jo$1(Ja):["/*",Ie(Ja.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(Ja))}function jo$1(Ra){let qa=Ra.value.split(`
`);return["/*",P$1(F,qa.map((Ja,ed)=>ed===0?Ja.trimEnd():" "+(ed<qa.length-1?Ja.trim():Ja.trimStart()))),"*/"]}var Kn$1={};Ar(Kn$1,{endOfLine:()=>Go,ownLine:()=>Wo$1,remaining:()=>Uo$2});function vo(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",Ja=String(Ra.name||Ra.id&&(typeof Ra.id=="object"?Ra.id.name:Ra.id)||Ra.key&&(typeof Ra.key=="object"?Ra.key.name:Ra.key)||Ra.value&&(typeof Ra.value=="object"?"":String(Ra.value))||Ra.operator||"");return Ja.length>20&&(Ja=Ja.slice(0,19)+"…"),qa+(Ja?" "+Ja:"")}function Nn$1(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=vo(Ra)}function ce$1(Ra,qa){qa.leading=!0,qa.trailing=!1,Nn$1(Ra,qa)}function Le$1(Ra,qa,Ja){qa.leading=!1,qa.trailing=!1,Ja&&(qa.marker=Ja),Nn$1(Ra,qa)}function z$1(Ra,qa){qa.leading=!1,qa.trailing=!0,Nn$1(Ra,qa)}function Mo$1(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=Ge$1(Ra,ed),ed=Lt$1(Ra,ed),ed=wt(Ra,ed),ed=Ue$1(Ra,ed);return ed}var yt$1=Mo$1;function Ro(Ra,qa){let Ja=yt$1(Ra,qa);return Ja===!1?"":Ra.charAt(Ja)}var ge$1=Ro;function Jo$1(Ra,qa,Ja){for(let ed=qa;ed<Ja;++ed)if(Ra.charAt(ed)===`
`)return!0;return!1}var de$1=Jo$1;function qo(Ra){return re$1(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(Ra.value)}var ku=qo;function Wo$1(Ra){return[Mu,Lu,_u$1,ep,Xo,Yn$2,Hn$1,Iu,wu$1,sp,rp,$n$2,vu$1,up,Ou,ju$1,Vn$1,Yo,yp].some(qa=>qa(Ra))}function Go(Ra){return[No,_u$1,Lu,vu$1,Yn$2,Hn$1,Iu,wu$1,ju$1,tp,np,$n$2,op$1,Vn$1,lp,mp].some(qa=>qa(Ra))}function Uo$2(Ra){return[Mu,Yn$2,Hn$1,Ho$2,Zo$1,Ou,$n$2,Qo,zo$1,cp,Vn$1,pp].some(qa=>qa(Ra))}function bt$1(Ra,qa){let Ja=(Ra.body||Ra.properties).find(({type:ed})=>ed!=="EmptyStatement");Ja?ce$1(Ja,qa):Le$1(Ra,qa)}function Xn$2(Ra,qa){Ra.type==="BlockStatement"?bt$1(Ra,qa):ce$1(Ra,qa)}function No({comment:Ra,followingNode:qa}){return qa&&ku(Ra)?(ce$1(qa,Ra),!0):!1}function Yn$2({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed,text:td}){if((Ja==null?void 0:Ja.type)!=="IfStatement"||!ed)return!1;if(ge$1(td,k(Ra))===")")return z$1(qa,Ra),!0;if(qa===Ja.consequent&&ed===Ja.alternate){if(qa.type==="BlockStatement")z$1(qa,Ra);else{let rd=vt(Ra)||Ra.loc.start.line===Ra.loc.end.line,sd=Ra.loc.start.line===qa.loc.start.line;rd&&sd?z$1(qa,Ra):Le$1(Ja,Ra)}return!0}return ed.type==="BlockStatement"?(bt$1(ed,Ra),!0):ed.type==="IfStatement"?(Xn$2(ed.consequent,Ra),!0):Ja.consequent===ed?(ce$1(ed,Ra),!0):!1}function Hn$1({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed,text:td}){return(Ja==null?void 0:Ja.type)!=="WhileStatement"||!ed?!1:ge$1(td,k(Ra))===")"?(z$1(qa,Ra),!0):ed.type==="BlockStatement"?(bt$1(ed,Ra),!0):Ja.body===ed?(ce$1(ed,Ra),!0):!1}function Iu({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed}){return(Ja==null?void 0:Ja.type)!=="TryStatement"&&(Ja==null?void 0:Ja.type)!=="CatchClause"||!ed?!1:Ja.type==="CatchClause"&&qa?(z$1(qa,Ra),!0):ed.type==="BlockStatement"?(bt$1(ed,Ra),!0):ed.type==="TryStatement"?(Xn$2(ed.finalizer,Ra),!0):ed.type==="CatchClause"?(Xn$2(ed.body,Ra),!0):!1}function Xo({comment:Ra,enclosingNode:qa,followingNode:Ja}){return q$1(qa)&&(Ja==null?void 0:Ja.type)==="Identifier"?(ce$1(qa,Ra),!0):!1}function Yo({comment:Ra,enclosingNode:qa,followingNode:Ja,options:ed}){return!ed.experimentalTernaries||!((qa==null?void 0:qa.type)==="ConditionalExpression"||(qa==null?void 0:qa.type)==="ConditionalTypeAnnotation"||(qa==null?void 0:qa.type)==="TSConditionalType")?!1:(Ja==null?void 0:Ja.type)==="ConditionalExpression"||(Ja==null?void 0:Ja.type)==="ConditionalTypeAnnotation"||(Ja==null?void 0:Ja.type)==="TSConditionalType"?(Le$1(qa,Ra),!0):!1}function Lu({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed,text:td,options:rd}){let sd=qa&&!de$1(td,k(qa),R$1(Ra));return(!qa||!sd)&&((Ja==null?void 0:Ja.type)==="ConditionalExpression"||(Ja==null?void 0:Ja.type)==="ConditionalTypeAnnotation"||(Ja==null?void 0:Ja.type)==="TSConditionalType")&&ed?rd.experimentalTernaries&&Ja.alternate===ed&&!(re$1(Ra)&&!de$1(rd.originalText,R$1(Ra),k(Ra)))?(Le$1(Ja,Ra),!0):(ce$1(ed,Ra),!0):!1}function Ho$2({comment:Ra,precedingNode:qa,enclosingNode:Ja}){return Ae$1(Ja)&&Ja.shorthand&&Ja.key===qa&&Ja.value.type==="AssignmentPattern"?(z$1(Ja.value.left,Ra),!0):!1}var Vo=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu$1({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed}){if(Vo.has(Ja==null?void 0:Ja.type)){if(w(Ja.decorators)&&(ed==null?void 0:ed.type)!=="Decorator")return z$1(O$1(!1,Ja.decorators,-1),Ra),!0;if(Ja.body&&ed===Ja.body)return bt$1(Ja.body,Ra),!0;if(ed){if(Ja.superClass&&ed===Ja.superClass&&qa&&(qa===Ja.id||qa===Ja.typeParameters))return z$1(qa,Ra),!0;for(let td of["implements","extends","mixins"])if(Ja[td]&&ed===Ja[td][0])return qa&&(qa===Ja.id||qa===Ja.typeParameters||qa===Ja.superClass)?z$1(qa,Ra):Le$1(Ja,Ra,td),!0}}return!1}var $o=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Ou({comment:Ra,precedingNode:qa,enclosingNode:Ja,
`;default:return`
`}}var Se$1=Symbol("MODE_BREAK"),at$1=Symbol("MODE_FLAT"),ar=Symbol("cursor");function qu$2(){return{value:"",length:0,queue:[]}}function Cp(Ra,qa){return Qn$2(Ra,{type:"indent"},qa)}function Ap(Ra,qa,Ja){return qa===Number.NEGATIVE_INFINITY?Ra.root||qu$2():qa<0?Qn$2(Ra,{type:"dedent"},Ja):qa?qa.type==="root"?{...Ra,root:Ra}:Qn$2(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},Ja):Ra}function Qn$2(Ra,qa,Ja){let ed=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],td="",rd=0,sd=0,od=0;for(let Ed of ed)switch(Ed.type){case"indent":ud(),Ja.useTabs?ld(1):cd(Ja.tabWidth);break;case"stringAlign":ud(),td+=Ed.n,rd+=Ed.n.length;break;case"numberAlign":sd+=1,od+=Ed.n;break;default:throw new Error(`Unexpected type '${Ed.type}'`)}return yd(),{...Ra,value:td,length:rd,queue:ed};function ld(Ed){td+=" ".repeat(Ed),rd+=Ja.tabWidth*Ed}function cd(Ed){td+=" ".repeat(Ed),rd+=Ed}function ud(){Ja.useTabs?_d():yd()}function _d(){sd>0&&ld(sd),gd()}function yd(){od>0&&cd(od),gd()}function gd(){sd=0,od=0}}function Zn$1(Ra){let qa=0,Ja=0,ed=Ra.length;e:for(;ed--;){let td=Ra[ed];if(td===ar){Ja++;continue}for(let rd=td.length-1;rd>=0;rd--){let sd=td[rd];if(sd===" "||sd===" ")qa++;else{Ra[ed]=td.slice(0,rd+1);break e}}}if(qa>0||Ja>0)for(Ra.length=ed+1;Ja-- >0;)Ra.push(ar);return qa}function Jr$1(Ra,qa,Ja,ed,td,rd){if(Ja===Number.POSITIVE_INFINITY)return!0;let sd=qa.length,od=[Ra],ld=[];for(;Ja>=0;){if(od.length===0){if(sd===0)return!0;od.push(qa[--sd]);continue}let{mode:cd,doc:ud}=od.pop(),_d=ut(ud);switch(_d){case rt$1:ld.push(ud),Ja-=et$1(ud);break;case _e$1:case Pe$1:{let yd=_d===_e$1?ud:ud.parts;for(let gd=yd.length-1;gd>=0;gd--)od.push({mode:cd,doc:yd[gd]});break}case Xe$1:case Ye$1:case He$1:case je$2:od.push({mode:cd,doc:ud.contents});break;case st:Ja+=Zn$1(ld);break;case le$1:{if(rd&&ud.break)return!1;let yd=ud.break?Se$1:cd,gd=ud.expandedStates&&yd===Se$1?O$1(!1,ud.expandedStates,-1):ud.contents;od.push({mode:yd,doc:gd});break}case xe$2:{let yd=(ud.groupId?td[ud.groupId]||at$1:cd)===Se$1?ud.breakContents:ud.flatContents;yd&&od.push({mode:cd,doc:yd});break}case me:if(cd===Se$1||ud.hard)return!0;ud.soft||(ld.push(" "),Ja--);break;case Ve$1:ed=!0;break;case $e$2:if(ed)return!1;break}}return!1}function es$1(Ra,qa){let Ja={},ed=qa.printWidth,td=Ju$2(qa.endOfLine),rd=0,sd=[{ind:qu$2(),mode:Se$1,doc:Ra}],od=[],ld=!1,cd=[],ud=0;for(Su(Ra);sd.length>0;){let{ind:yd,mode:gd,doc:Ed}=sd.pop();switch(ut(Ed)){case rt$1:{let Td=td!==`
`?N$1(!1,Ed,`
`,td):Ed;od.push(Td),sd.length>0&&(rd+=et$1(Td));break}case _e$1:for(let Td=Ed.length-1;Td>=0;Td--)sd.push({ind:yd,mode:gd,doc:Ed[Td]});break;case nt:if(ud>=2)throw new Error("There are too many 'cursor' in doc.");od.push(ar),ud++;break;case Xe$1:sd.push({ind:Cp(yd,qa),mode:gd,doc:Ed.contents});break;case Ye$1:sd.push({ind:Ap(yd,Ed.n,qa),mode:gd,doc:Ed.contents});break;case st:rd-=Zn$1(od);break;case le$1:switch(gd){case at$1:if(!ld){sd.push({ind:yd,mode:Ed.break?Se$1:at$1,doc:Ed.contents});break}case Se$1:{ld=!1;let Td={ind:yd,mode:at$1,doc:Ed.contents},kd=ed-rd,Rd=cd.length>0;if(!Ed.break&&Jr$1(Td,sd,kd,Rd,Ja))sd.push(Td);else if(Ed.expandedStates){let Nd=O$1(!1,Ed.expandedStates,-1);if(Ed.break){sd.push({ind:yd,mode:Se$1,doc:Nd});break}else for(let Id=1;Id<Ed.expandedStates.length+1;Id++)if(Id>=Ed.expandedStates.length){sd.push({ind:yd,mode:Se$1,doc:Nd});break}else{let Md=Ed.expandedStates[Id],Ld={ind:yd,mode:at$1,doc:Md};if(Jr$1(Ld,sd,kd,Rd,Ja)){sd.push(Ld);break}}}else sd.push({ind:yd,mode:Se$1,doc:Ed.contents});break}}Ed.id&&(Ja[Ed.id]=O$1(!1,sd,-1).mode);break;case Pe$1:{let Td=ed-rd,{parts:kd}=Ed;if(kd.length===0)break;let[Rd,Nd]=kd,Id={ind:yd,mode:at$1,doc:Rd},Md={ind:yd,mode:Se$1,doc:Rd},Ld=Jr$1(Id,[],Td,cd.length>0,Ja,!0);if(kd.length===1){Ld?sd.push(Id):sd.push(Md);break}let Pd={ind:yd,mode:at$1,doc:Nd},qd={ind:yd,mode:Se$1,doc:Nd};if(kd.length===2){Ld?sd.push(Pd,Id):sd.push(qd,Md);break}kd.splice(0,2);let Yd={ind:yd,mode:gd,doc:qt$1(kd)},Ud=kd[0];Jr$1({ind:yd,mode:at$1,doc:[Rd,Nd,Ud]},[],Td,cd.length>0,Ja,!0)?sd.push(Yd,Pd,Id):Ld?sd.push(Yd,qd,Id):sd.push(Yd,qd,Md);break}case xe$2:case He$1:{let Td=Ed.groupId?Ja[Ed.groupId]:gd;if(Td===Se$1){let kd=Ed.type===xe$2?Ed.breakContents:Ed.negate?Ed.contents:f(Ed.contents);kd&&sd.push({ind:yd,mode:gd,doc:kd})}if(Td===at$1){let kd=Ed.type===xe$2?Ed.flatContents:Ed.negate?f(Ed.contents):Ed.contents;kd&&sd.push({ind:yd,mode:gd,doc:kd})}break}case Ve$1:cd.push({ind:yd,mode:gd,doc:Ed.contents});break;case $e$2:cd.length>0&&sd.push({ind:yd,mode:gd,doc:Gn$2});break;case me:switch(gd){case at$1:if(Ed.hard)ld=!0;else{Ed.soft||(od.push(" "),rd+=1);break}case Se$1:if(cd.length>0){sd.push({ind:yd,mode:gd,doc:Ed},...cd.reverse()),cd.length=0;break}Ed.literal?yd.root?(od.push(td,yd.root.value),rd=yd.root.length):(od.push(td),rd=0):(rd-=Zn$1(od),od.push(td+yd.value),rd=yd.length);break}break;case je$2:sd.push({ind:yd,mode:gd,doc:Ed.contents});break;case ve$1:break;default:throw new Ct$1(Ed)}sd.length===0&&cd.length>0&&(sd.push(...cd.reverse()),cd.length=0)}let _d=od.indexOf(ar);if(_d!==-1){let yd=od.indexOf(ar,_d+1),gd=od.slice(0,_d).join(""),Ed=od.slice(_d+1,yd).join(""),Td=od.slice(yd+1).join("");return{formatted:gd+Ed+Td,cursorNodeStart:gd.length,cursorNodeText:Ed}}return{formatted:od.join("")}}function Tp(Ra,qa,Ja=0){let ed=0;for(let td=Ja;td<Ra.length;++td)Ra[td]===" "?ed=ed+qa-ed%qa:ed++;return ed}var Wu=Tp;function dp(Ra,qa){let Ja=Ra.lastIndexOf(`
`);return Ja===-1?0:Wu(Ra.slice(Ja+1).match(/^[\t ]*/u)[0],qa)}var Gu$1=dp;function qr(Ra,qa,Ja){let{node:ed}=Ra;if(ed.type==="TemplateLiteral"&&gp(Ra)){let ld=xp(Ra,Ja,qa);if(ld)return ld}let td="expressions";ed.type==="TSTemplateLiteralType"&&(td="types");let rd=[],sd=Ra.map(qa,td);rd.push(ke$2,"`");let od=0;return Ra.each(({index:ld,node:cd})=>{if(rd.push(qa()),cd.tail)return;let{tabWidth:ud}=Ja,_d=cd.value.raw,yd=_d.includes(`
`)?Gu$1(_d,ud):od;od=yd;let gd=sd[ld],Ed=ed[td][ld],Td=de$1(Ja.originalText,k(cd),R$1(ed.quasis[ld+1]));if(!Td){let Rd=es$1(gd,{...Ja,printWidth:Number.POSITIVE_INFINITY}).formatted;Rd.includes(`
`)?Td=!0:gd=Rd}Td&&(d(Ed)||Ed.type==="Identifier"||q$1(Ed)||Ed.type==="ConditionalExpression"||Ed.type==="SequenceExpression"||Te$1(Ed)||De(Ed))&&(gd=[f([E$1,gd]),E$1]);let kd=yd===0&&_d.endsWith(`
`)?he$1(Number.NEGATIVE_INFINITY,gd):xu(gd,yd,ud);rd.push(l(["${",kd,ke$2,"}"]))},"quasis"),rd.push("`"),rd}function Uu$1(Ra,qa){let Ja=qa("quasi");return it$1(Ja.label&&{tagged:!0,...Ja.label},[qa("tag"),qa(Ra.node.typeArguments?"typeArguments":"typeParameters"),ke$2,Ja])}function xp(Ra,qa,Ja){let{node:ed}=Ra,td=ed.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(td.length>1||td.some(rd=>rd.length>0)){qa.__inJestEach=!0;let rd=Ra.map(Ja,"expressions");qa.__inJestEach=!1;let sd=[],od=rd.map(yd=>"${"+es$1(yd,{...qa,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),ld=[{hasLineBreak:!1,cells:[]}];for(let yd=1;yd<ed.quasis.length;yd++){let gd=O$1(!1,ld,-1),Ed=od[yd-1];gd.cells.push(Ed),Ed.includes(`
`)&&(gd.hasLineBreak=!0),ed.quasis[yd].value.raw.includes(`
`)&&ld.push({hasLineBreak:!1,cells:[]})}let cd=Math.max(td.length,...ld.map(yd=>yd.cells.length)),ud=Array.from({length:cd}).fill(0),_d=[{cells:td},...ld.filter(yd=>yd.cells.length>0)];for(let{cells:yd}of _d.filter(gd=>!gd.hasLineBreak))for(let[gd,Ed]of yd.entries())ud[gd]=Math.max(ud[gd],et$1(Ed));return sd.push(ke$2,"`",f([F,P$1(F,_d.map(yd=>P$1(" | ",yd.cells.map((gd,Ed)=>yd.hasLineBreak?gd:gd+" ".repeat(ud[Ed]-et$1(gd))))))]),F,"`"),sd}}function hp(Ra,qa){let{node:Ja}=Ra,ed=qa();return d(Ja)&&(ed=l([f([E$1,ed]),E$1])),["${",ed,ke$2,"}"]}function Gt$2(Ra,qa){return Ra.map(Ja=>hp(Ja,qa),"expressions")}function Wr$1(Ra,qa){return mt$1(Ra,Ja=>typeof Ja=="string"?qa?N$1(!1,Ja,/(\\*)`/gu,"$1$1\\`"):ts$1(Ja):Ja)}function ts$1(Ra){return N$1(!1,Ra,/([\\`]|\$\{)/gu,String.raw`\$1`)}function gp({node:Ra,parent:qa}){let Ja=/^[fx]?(?:describe|it|test)$/u;return qa.type==="TaggedTemplateExpression"&&qa.quasi===Ra&&qa.tag.type==="MemberExpression"&&qa.tag.property.type==="Identifier"&&qa.tag.property.name==="each"&&(qa.tag.object.type==="Identifier"&&Ja.test(qa.tag.object.name)||qa.tag.object.type==="MemberExpression"&&qa.tag.object.property.type==="Identifier"&&(qa.tag.object.property.name==="only"||qa.tag.object.property.name==="skip")&&qa.tag.object.object.type==="Identifier"&&Ja.test(qa.tag.object.object.name))}var ns=[(Ra,qa)=>Ra.type==="ObjectExpression"&&qa==="properties",(Ra,qa)=>Ra.type==="CallExpression"&&Ra.callee.type==="Identifier"&&Ra.callee.name==="Component"&&qa==="arguments",(Ra,qa)=>Ra.type==="Decorator"&&qa==="expression"];function Nu$1(Ra){let qa=ed=>ed.type==="TemplateLiteral",Ja=(ed,td)=>Ae$1(ed)&&!ed.computed&&ed.key.type==="Identifier"&&ed.key.name==="styles"&&td==="value";return Ra.match(qa,(ed,td)=>U$1(ed)&&td==="elements",Ja,...ns)||Ra.match(qa,Ja,...ns)}function Xu$2(Ra){return Ra.match(qa=>qa.type==="TemplateLiteral",(qa,Ja)=>Ae$1(qa)&&!qa.computed&&qa.key.type==="Identifier"&&qa.key.name==="template"&&Ja==="value",...ns)}function rs(Ra,qa){return d(Ra,g$2.Block|g$2.Leading,({value:Ja})=>Ja===` ${qa} `)}function Gr$1({node:Ra,parent:qa},Ja){return rs(Ra,Ja)||Sp(qa)&&rs(qa,Ja)||qa.type==="ExpressionStatement"&&rs(qa,Ja)}function Sp(Ra){return Ra.type==="AsConstExpression"||Ra.type==="TSAsExpression"&&Ra.typeAnnotation.type==="TSTypeReference"&&Ra.typeAnnotation.typeName.type==="Identifier"&&Ra.typeAnnotation.typeName.name==="const"}async function Bp(Ra,qa,Ja){let{node:ed}=Ja,td=ed.quasis.map(ud=>ud.value.raw),rd=0,sd=td.reduce((ud,_d,yd)=>yd===0?_d:ud+"@prettier-placeholder-"+rd+++"-id"+_d,""),od=await Ra(sd,{parser:"scss"}),ld=Gt$2(Ja,qa),cd=bp(od,ld);if(!cd)throw new Error("Couldn't insert all the expressions");return["`",f([F,cd]),E$1,"`"]}function bp(Ra,qa){if(!w(qa))return Ra;let Ja=0,ed=mt$1(Wt(Ra),td=>typeof td!="string"||!td.includes("@prettier-placeholder")?td:td.split(/@prettier-placeholder-(\d+)-id/u).map((rd,sd)=>sd%2===0?Ie(rd):(Ja++,qa[rd])));return qa.length===Ja?ed:null}function Pp({node:Ra,parent:qa,grandparent:Ja}){return Ja&&Ra.quasis&&qa.type==="JSXExpressionContainer"&&Ja.type==="JSXElement"&&Ja.openingElement.name.name==="style"&&Ja.openingElement.attributes.some(ed=>ed.type==="JSXAttribute"&&ed.name.name==="jsx")||(qa==null?void 0:qa.type)==="TaggedTemplateExpression"&&qa.tag.type==="Identifier"&&qa.tag.name==="css"||(qa==null?void 0:qa.type)==="TaggedTemplateExpression"&&qa.tag.type==="MemberExpression"&&qa.tag.object.name==="css"&&(qa.tag.property.name==="global"||qa.tag.property.name==="resolve")}function Ur$1(Ra){return Ra.type==="Identifier"&&Ra.name==="styled"}function Yu$1(Ra){return/^[A-Z]/u.test(Ra.object.name)&&Ra.property.name==="extend"}function kp({parent:Ra}){if(!Ra||Ra.type!=="TaggedTemplateExpression")return!1;let qa=Ra.tag.type==="ParenthesizedExpression"?Ra.tag.expression:Ra.tag;switch(qa.type){case"MemberExpression":return Ur$1(qa.object)||Yu$1(qa);case"CallExpression":return Ur$1(qa.callee)||qa.callee.type==="MemberExpression"&&(qa.callee.object.type==="MemberExpression"&&(Ur$1(qa.callee.object.object)||Yu$1(qa.callee.object))||qa.callee.object.type==="CallExp
`),gd=yd.length,Ed=rd[od],Td=gd>2&&yd[0].trim()===""&&yd[1].trim()==="",kd=gd>2&&yd[gd-1].trim()===""&&yd[gd-2].trim()==="",Rd=yd.every(Id=>/^\s*(?:#[^\n\r]*)?$/u.test(Id));if(!ud&&/#[^\n\r]*$/u.test(yd[gd-1]))return null;let Nd=null;Rd?Nd=Op(yd):Nd=await Ra(_d,{parser:"graphql"}),Nd?(Nd=Wr$1(Nd,!1),!cd&&Td&&sd.push(""),sd.push(Nd),!ud&&kd&&sd.push("")):!cd&&!ud&&Td&&sd.push(""),Ed&&sd.push(Ed)}return["`",f([F,P$1(F,sd)]),F,"`"]}function Op(Ra){let qa=[],Ja=!1,ed=Ra.map(td=>td.trim());for(let[td,rd]of ed.entries())rd!==""&&(ed[td-1]===""&&Ja?qa.push([F,rd]):qa.push(rd),Ja=!0);return qa.length===0?null:P$1(F,qa)}function _p({node:Ra,parent:qa}){return Gr$1({node:Ra,parent:qa},"GraphQL")||qa&&(qa.type==="TaggedTemplateExpression"&&(qa.tag.type==="MemberExpression"&&qa.tag.object.name==="graphql"&&qa.tag.property.name==="experimental"||qa.tag.type==="Identifier"&&(qa.tag.name==="gql"||qa.tag.name==="graphql"))||qa.type==="CallExpression"&&qa.callee.type==="Identifier"&&qa.callee.name==="graphql")}function jp(Ra){if(_p(Ra))return wp}var Vu$1=jp,ss$1=0;async function $u$1(Ra,qa,Ja,ed,td){let{node:rd}=ed,sd=ss$1;ss$1=ss$1+1>>>0;let od=Rd=>`PRETTIER_HTML_PLACEHOLDER_${Rd}_${sd}_IN_JS`,ld=rd.quasis.map((Rd,Nd,Id)=>Nd===Id.length-1?Rd.value.cooked:Rd.value.cooked+od(Nd)).join(""),cd=Gt$2(ed,Ja),ud=new RegExp(od(String.raw`(\d+)`),"gu"),_d=0,yd=await qa(ld,{parser:Ra,__onHtmlRoot(Rd){_d=Rd.children.length}}),gd=mt$1(yd,Rd=>{if(typeof Rd!="string")return Rd;let Nd=[],Id=Rd.split(ud);for(let Md=0;Md<Id.length;Md++){let Ld=Id[Md];if(Md%2===0){Ld&&(Ld=ts$1(Ld),td.__embeddedInHtml&&(Ld=N$1(!1,Ld,/<\/(?=script\b)/giu,String.raw`<\/`)),Nd.push(Ld));continue}let Pd=Number(Ld);Nd.push(cd[Pd])}return Nd}),Ed=/^\s/u.test(ld)?" ":"",Td=/\s$/u.test(ld)?" ":"",kd=td.htmlWhitespaceSensitivity==="ignore"?F:Ed&&Td?x:null;return kd?l(["`",f([kd,l(gd)]),kd,"`"]):it$1({hug:!1},l(["`",Ed,_d>1?f(l(gd)):l(gd),Td,"`"]))}function vp(Ra){return Gr$1(Ra,"HTML")||Ra.match(qa=>qa.type==="TemplateLiteral",(qa,Ja)=>qa.type==="TaggedTemplateExpression"&&qa.tag.type==="Identifier"&&qa.tag.name==="html"&&Ja==="quasi")}var Mp=$u$1.bind(void 0,"html"),Rp=$u$1.bind(void 0,"angular");function Jp(Ra){if(vp(Ra))return Mp;if(Xu$2(Ra))return Rp}var Ku$1=Jp;async function qp(Ra,qa,Ja){let{node:ed}=Ja,td=N$1(!1,ed.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(ld,cd)=>"\\".repeat(cd.length/2)+"`"),rd=Wp(td),sd=rd!=="";sd&&(td=N$1(!1,td,new RegExp(`^${rd}`,"gmu"),""));let od=Wr$1(await Ra(td,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",sd?f([E$1,od]):[Rr,du$1(od)],E$1,"`"]}function Wp(Ra){let qa=Ra.match(/^([^\S\n]*)\S/mu);return qa===null?"":qa[1]}function Gp(Ra){if(Up(Ra))return qp}function Up({node:Ra,parent:qa}){return(qa==null?void 0:qa.type)==="TaggedTemplateExpression"&&Ra.quasis.length===1&&qa.tag.type==="Identifier"&&(qa.tag.name==="md"||qa.tag.name==="markdown")}var zu=Gp;function Np(Ra){let{node:qa}=Ra;if(qa.type!=="TemplateLiteral"||Xp(qa))return;let Ja;for(let ed of[Hu$1,Vu$1,Ku$1,zu])if(Ja=ed(Ra),!!Ja)return qa.quasis.length===1&&qa.quasis[0].value.raw.trim()===""?"``":async(...td)=>{let rd=await Ja(...td);return rd&&it$1({embed:!0,...rd.label},rd)}}function Xp({quasis:Ra}){return Ra.some(({value:{cooked:qa}})=>qa===null)}var Qu$1=Np,Yp=/\*\/$/,Hp=/^\/\*\*?/,ri$2=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Vp=/(^|\s+)\/\/([^\n\r]*)/g,Zu$2=/^(\r?\n)+/,$p=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei$1=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Kp=/(\r?\n|^) *\* ?/g,ni$2=[];function si$2(Ra){let qa=Ra.match(ri$2);return qa?qa[0].trimStart():""}function ui$1(Ra){let qa=Ra.match(ri$2),Ja=qa==null?void 0:qa[0];return Ja==null?Ra:Ra.slice(Ja.length)}function ii$2(Ra){let qa=`
`;Ra=N$1(!1,Ra.replace(Hp,"").replace(Yp,""),Kp,"$1");let Ja="";for(;Ja!==Ra;)Ja=Ra,Ra=N$1(!1,Ra,$p,`${qa}$1 $2${qa}`);Ra=Ra.replace(Zu$2,"").trimEnd();let ed=Object.create(null),td=N$1(!1,Ra,ei$1,"").replace(Zu$2,"").trimEnd(),rd;for(;rd=ei$1.exec(Ra);){let sd=N$1(!1,rd[2],Vp,"");if(typeof ed[rd[1]]=="string"||Array.isArray(ed[rd[1]])){let od=ed[rd[1]];ed[rd[1]]=[...ni$2,...Array.isArray(od)?od:[od],sd]}else ed[rd[1]]=sd}return{comments:td,pragmas:ed}}function ai$2({comments:Ra="",pragmas:qa={}}){let Ja=`
`,ed="/**",td=" *",rd=" */",sd=Object.keys(qa),od=sd.flatMap(cd=>ti$2(cd,qa[cd])).map(cd=>`${td} ${cd}${Ja}`).join("");if(!Ra){if(sd.length===0)return"";if(sd.length===1&&!Array.isArray(qa[sd[0]])){let cd=qa[sd[0]];return`${ed} ${ti$2(sd[0],cd)[0]}${rd}`}}let ld=Ra.split(Ja).map(cd=>`${td} ${cd}`).join(Ja)+Ja;return ed+Ja+(Ra?ld:"")+(Ra&&sd.length>0?td+Ja:"")+od+rd}function ti$2(Ra,qa){return[...ni$2,...Array.isArray(qa)?qa:[qa]].map(Ja=>`@${Ra} ${Ja}`.trim())}function zp(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var oi$1=zp;function Qp(Ra){let qa=oi$1(Ra);qa&&(Ra=Ra.slice(qa.length+1));let Ja=si$2(Ra),{pragmas:ed,comments:td}=ii$2(Ja);return{shebang:qa,text:Ra,pragmas:ed,comments:td}}function pi$2(Ra){let{shebang:qa,text:Ja,pragmas:ed,comments:td}=Qp(Ra),rd=ui$1(Ja),sd=ai$2({pragmas:{format:"",...ed},comments:td.trimStart()});return(qa?`${qa}
`:"")+sd+(rd.startsWith(`
`)?`
`:`
`)+rd}function Zp(Ra,qa){let{originalText:Ja,[Symbol.for("comments")]:ed,locStart:td,locEnd:rd,[Symbol.for("printedComments")]:sd}=qa,{node:od}=Ra,ld=td(od),cd=rd(od);for(let ud of ed)td(ud)>=ld&&rd(ud)<=cd&&sd.add(ud);return Ja.slice(ld,cd)}var ci$1=Zp;function us$1(Ra,qa){var Ja,ed,td,rd,sd,od,ld,cd,ud;if(Ra.isRoot)return!1;let{node:_d,key:yd,parent:gd}=Ra;if(qa.__isInHtmlInterpolation&&!qa.bracketSpacing&&nc$2(_d)&&or(Ra))return!0;if(ec$2(_d))return!1;if(_d.type==="Identifier"){if((Ja=_d.extra)!=null&&Ja.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(_d.name)||yd==="left"&&(_d.name==="async"&&!gd.await||_d.name==="let")&&gd.type==="ForOfStatement")return!0;if(_d.name==="let"){let Ed=(ed=Ra.findAncestor(Td=>Td.type==="ForOfStatement"))==null?void 0:ed.left;if(Ed&&ie$1(Ed,Td=>Td===_d))return!0}if(yd==="object"&&_d.name==="let"&&gd.type==="MemberExpression"&&gd.computed&&!gd.optional){let Ed=Ra.findAncestor(kd=>kd.type==="ExpressionStatement"||kd.type==="ForStatement"||kd.type==="ForInStatement"),Td=Ed?Ed.type==="ExpressionStatement"?Ed.expression:Ed.type==="ForStatement"?Ed.init:Ed.left:void 0;if(Td&&ie$1(Td,kd=>kd===_d))return!0}if(yd==="expression")switch(_d.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let Ed=Ra.findAncestor(Td=>!Te$1(Td));if(Ed!==gd&&Ed.type==="ExpressionStatement")return!0}}return!1}if(_d.type==="ObjectExpression"||_d.type==="FunctionExpression"||_d.type==="ClassExpression"||_d.type==="DoExpression"){let Ed=(td=Ra.findAncestor(Td=>Td.type==="ExpressionStatement"))==null?void 0:td.expression;if(Ed&&ie$1(Ed,Td=>Td===_d))return!0}if(_d.type==="ObjectExpression"){let Ed=(rd=Ra.findAncestor(Td=>Td.type==="ArrowFunctionExpression"))==null?void 0:rd.body;if(Ed&&Ed.type!=="SequenceExpression"&&Ed.type!=="AssignmentExpression"&&ie$1(Ed,Td=>Td===_d))return!0}switch(gd.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(yd==="superClass"&&(_d.type==="ArrowFunctionExpression"||_d.type==="AssignmentExpression"||_d.type==="AwaitExpression"||_d.type==="BinaryExpression"||_d.type==="ConditionalExpression"||_d.type==="LogicalExpression"||_d.type==="NewExpression"||_d.type==="ObjectExpression"||_d.type==="SequenceExpression"||_d.type==="TaggedTemplateExpression"||_d.type==="UnaryExpression"||_d.type==="UpdateExpression"||_d.type==="YieldExpression"||_d.type==="TSNonNullExpression"||_d.type==="ClassExpression"&&w(_d.decorators)))return!0;break;case"ExportDefaultDeclaration":return li$2(Ra,qa)||_d.type==="SequenceExpression";case"Decorator":if(yd==="expression"&&!uc$1(_d))return!0;break;case"TypeAnnotation":if(Ra.match(void 0,void 0,(Ed,Td)=>Td==="returnType"&&Ed.type==="ArrowFunctionExpression")&&rc$1(_d))return!0;break;case"BinaryExpression":if(yd==="left"&&(gd.operator==="in"||gd.operator==="instanceof")&&_d.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(yd==="init"&&Ra.match(void 0,void 0,(Ed,Td)=>Td==="declarations"&&Ed.type==="VariableDeclaration",(Ed,Td)=>Td==="left"&&Ed.type==="ForInStatement"))return!0;break}switch(_d.type){case"UpdateExpression":if(gd.type==="UnaryExpression")return _d.prefix&&(_d.operator==="++"&&gd.operator==="+"||_d.operator==="--"&&gd.operator==="-");case"UnaryExpression":switch(gd.type){case"UnaryExpression":return _d.operator===gd.operator&&(_d.operator==="+"||_d.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return yd==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return yd==="callee";case"BinaryExpression":return yd==="left"&&gd.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(gd.type==="UpdateExpression"||_d.operator==="in"&&tc$1(Ra))return!0;if(_d.operator==="|>"&&(sd=_d.extra)!=null&&sd.parenthesized){let Ed=Ra.grandparent;if(Ed.type==="BinaryExpression"&&Ed.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"As
\r `),ms=Ra=>Ra===""||Ra===x||Ra===F||Ra===E$1;function cc(Ra,qa,Ja){var ed,td,rd;let{node:sd}=Ra;if(sd.type==="JSXElement"&&gc(sd))return[Ja("openingElement"),Ja("closingElement")];let od=sd.type==="JSXElement"?Ja("openingElement"):Ja("openingFragment"),ld=sd.type==="JSXElement"?Ja("closingElement"):Ja("closingFragment");if(sd.children.length===1&&sd.children[0].type==="JSXExpressionContainer"&&(sd.children[0].expression.type==="TemplateLiteral"||sd.children[0].expression.type==="TaggedTemplateExpression"))return[od,...Ra.map(Ja,"children"),ld];sd.children=sd.children.map(Pd=>Sc(Pd)?{type:"JSXText",value:" ",raw:" "}:Pd);let cd=sd.children.some(X),ud=sd.children.filter(Pd=>Pd.type==="JSXExpressionContainer").length>1,_d=sd.type==="JSXElement"&&sd.openingElement.attributes.length>1,yd=ne$1(od)||cd||_d||ud,gd=Ra.parent.rootMarker==="mdx",Ed=qa.singleQuote?"{' '}":'{" "}',Td=gd?" ":b([Ed,E$1]," "),kd=((td=(ed=sd.openingElement)==null?void 0:ed.name)==null?void 0:td.name)==="fbt",Rd=lc$1(Ra,qa,Ja,Td,kd),Nd=sd.children.some(Pd=>pr(Pd));for(let Pd=Rd.length-2;Pd>=0;Pd--){let qd=Rd[Pd]===""&&Rd[Pd+1]==="",Yd=Rd[Pd]===F&&Rd[Pd+1]===""&&Rd[Pd+2]===F,Ud=(Rd[Pd]===E$1||Rd[Pd]===F)&&Rd[Pd+1]===""&&Rd[Pd+2]===Td,Hd=Rd[Pd]===Td&&Rd[Pd+1]===""&&(Rd[Pd+2]===E$1||Rd[Pd+2]===F),Vd=Rd[Pd]===Td&&Rd[Pd+1]===""&&Rd[Pd+2]===Td,Jd=Rd[Pd]===E$1&&Rd[Pd+1]===""&&Rd[Pd+2]===F||Rd[Pd]===F&&Rd[Pd+1]===""&&Rd[Pd+2]===E$1;Yd&&Nd||qd||Ud||Vd||Jd?Rd.splice(Pd,2):Hd&&Rd.splice(Pd+1,2)}for(;Rd.length>0&&ms(O$1(!1,Rd,-1));)Rd.pop();for(;Rd.length>1&&ms(Rd[0])&&ms(Rd[1]);)Rd.shift(),Rd.shift();let Id=[];for(let[Pd,qd]of Rd.entries()){if(qd===Td){if(Pd===1&&Rd[Pd-1]===""){if(Rd.length===2){Id.push(Ed);continue}Id.push([Ed,F]);continue}else if(Pd===Rd.length-1){Id.push(Ed);continue}else if(Rd[Pd-1]===""&&Rd[Pd-2]===F){Id.push(Ed);continue}}Id.push(qd),ne$1(qd)&&(yd=!0)}let Md=Nd?qt$1(Id):l(Id,{shouldBreak:!0});if(((rd=qa.cursorNode)==null?void 0:rd.type)==="JSXText"&&sd.children.includes(qa.cursorNode)&&(Md=[Un$1,Md,Un$1]),gd)return Md;let Ld=l([od,f([F,Md]),F,ld]);return yd?Ld:ze$1([l([od,...Rd,ld]),Ld])}function lc$1(Ra,qa,Ja,ed,td){let rd=[];return Ra.each(({node:sd,next:od})=>{if(sd.type==="JSXText"){let ld=fe$1(sd);if(pr(sd)){let cd=Nr.split(ld,!0);cd[0]===""&&(rd.push(""),cd.shift(),/\n/u.test(cd[0])?rd.push(fi$1(td,cd[1],sd,od)):rd.push(ed),cd.shift());let ud;if(O$1(!1,cd,-1)===""&&(cd.pop(),ud=cd.pop()),cd.length===0)return;for(let[_d,yd]of cd.entries())_d%2===1?rd.push(x):rd.push(yd);ud!==void 0?/\n/u.test(ud)?rd.push(fi$1(td,O$1(!1,rd,-1),sd,od)):rd.push(ed):rd.push(Di$1(td,O$1(!1,rd,-1),sd,od))}else/\n/u.test(ld)?ld.match(/\n/gu).length>1&&rd.push("",F):rd.push("",ed)}else{let ld=Ja();if(rd.push(ld),od&&pr(od)){let cd=Nr.trim(fe$1(od)),[ud]=Nr.split(cd);rd.push(Di$1(td,ud,sd,od))}else rd.push(F)}},"children"),rd}function Di$1(Ra,qa,Ja,ed){return Ra?"":Ja.type==="JSXElement"&&!Ja.closingElement||(ed==null?void 0:ed.type)==="JSXElement"&&!ed.closingElement?qa.length===1?E$1:F:E$1}function fi$1(Ra,qa,Ja,ed){return Ra?F:qa.length===1?Ja.type==="JSXElement"&&!Ja.closingElement||(ed==null?void 0:ed.type)==="JSXElement"&&!ed.closingElement?F:E$1:F}var mc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function yc(Ra,qa,Ja){let{parent:ed}=Ra;if(mc.has(ed.type))return qa;let td=Ra.match(void 0,sd=>sd.type==="ArrowFunctionExpression",L$1,sd=>sd.type==="JSXExpressionContainer"),rd=Be$1(Ra,Ja);return l([rd?"":b("("),f([E$1,qa]),E$1,rd?"":b(")")],{shouldBreak:td})}function Dc(Ra,qa,Ja){let{node:ed}=Ra,td=[];if(td.push(Ja("name")),ed.value){let rd;if(Q$2(ed.value)){let sd=fe$1(ed.value),od=N$1(!1,N$1(!1,sd.slice(1,-1),"&apos;","'"),"&quot;",'"'),ld=xr(od,qa.jsxSingleQuote);od=ld==='"'?N$1(!1,od,'"',"&quot;"):N$1(!1,od,"'","&apos;"),rd=Ra.call(()=>ye$1(Ra,Ie(ld+od+ld),qa),"value")}else rd=Ja("value");td.push("=",rd)}return td}function fc(Ra,qa,Ja){let{node:ed}=Ra,td=(rd,sd)=>rd.type==="JSXEmp
`)&&!sd&&!d(rd.attributes[0]))return l(["<",Ja("name"),rd.typeArguments?Ja("typeArguments"):Ja("typeParameters")," ",...Ra.map(Ja,"attributes"),rd.selfClosing?" />":">"]);let od=(td=rd.attributes)==null?void 0:td.some(cd=>Q$2(cd.value)&&cd.value.value.includes(`
`)),ld=qa.singleAttributePerLine&&rd.attributes.length>1?F:x;return l(["<",Ja("name"),rd.typeArguments?Ja("typeArguments"):Ja("typeParameters"),f(Ra.map(()=>[ld,Ja()],"attributes")),...Fc(rd,qa,sd)],{shouldBreak:od})}function Fc(Ra,qa,Ja){return Ra.selfClosing?[x,"/>"]:Cc(Ra,qa,Ja)?[">"]:[E$1,">"]}function Cc(Ra,qa,Ja){let ed=Ra.attributes.length>0&&d(O$1(!1,Ra.attributes,-1),g$2.Trailing);return Ra.attributes.length===0&&!Ja||(qa.bracketSameLine||qa.jsxBracketSameLine)&&(!Ja||Ra.attributes.length>0)&&!ed}function Ac(Ra,qa,Ja){let{node:ed}=Ra,td=[];td.push("</");let rd=Ja("name");return d(ed.name,g$2.Leading|g$2.Line)?td.push(f([F,rd]),F):d(ed.name,g$2.Leading|g$2.Block)?td.push(" ",rd):td.push(rd),td.push(">"),td}function Tc(Ra,qa){let{node:Ja}=Ra,ed=d(Ja),td=d(Ja,g$2.Line),rd=Ja.type==="JSXOpeningFragment";return[rd?"<":"</",f([td?F:ed&&!rd?" ":"",M$1(Ra,qa)]),td?F:"",">"]}function dc(Ra,qa,Ja){let ed=ye$1(Ra,cc(Ra,qa,Ja),qa);return yc(Ra,ed,qa)}function xc(Ra,qa){let{node:Ja}=Ra,ed=d(Ja,g$2.Line);return[M$1(Ra,qa,{indent:ed}),ed?F:""]}function hc(Ra,qa,Ja){let{node:ed}=Ra;return["{",Ra.call(({node:td})=>{let rd=["...",Ja()];return!d(td)||!zn$1(Ra)?rd:[f([E$1,ye$1(Ra,rd,qa)]),E$1]},ed.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ei$1(Ra,qa,Ja){let{node:ed}=Ra;if(ed.type.startsWith("JSX"))switch(ed.type){case"JSXAttribute":return Dc(Ra,qa,Ja);case"JSXIdentifier":return ed.name;case"JSXNamespacedName":return P$1(":",[Ja("namespace"),Ja("name")]);case"JSXMemberExpression":return P$1(".",[Ja("object"),Ja("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hc(Ra,qa,Ja);case"JSXExpressionContainer":return fc(Ra,qa,Ja);case"JSXFragment":case"JSXElement":return dc(Ra,qa,Ja);case"JSXOpeningElement":return Ec(Ra,qa,Ja);case"JSXClosingElement":return Ac(Ra,qa,Ja);case"JSXOpeningFragment":case"JSXClosingFragment":return Tc(Ra,qa);case"JSXEmptyExpression":return xc(Ra,qa);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me$2(ed,"JSX")}}function gc(Ra){if(Ra.children.length===0)return!0;if(Ra.children.length>1)return!1;let qa=Ra.children[0];return qa.type==="JSXText"&&!pr(qa)}function pr(Ra){return Ra.type==="JSXText"&&(Nr.hasNonWhitespaceCharacter(fe$1(Ra))||!/\n/u.test(fe$1(Ra)))}function Sc(Ra){return Ra.type==="JSXExpressionContainer"&&Q$2(Ra.expression)&&Ra.expression.value===" "&&!d(Ra.expression)}function Fi(Ra){let{node:qa,parent:Ja}=Ra;if(!X(qa)||!X(Ja))return!1;let{index:ed,siblings:td}=Ra,rd;for(let sd=ed;sd>0;sd--){let od=td[sd-1];if(!(od.type==="JSXText"&&!pr(od))){rd=od;break}}return(rd==null?void 0:rd.type)==="JSXExpressionContainer"&&rd.expression.type==="JSXEmptyExpression"&&Bt$2(rd.expression)}function Bc(Ra){return Bt$2(Ra.node)||Fi(Ra)}var Xr$1=Bc,bc=0;function Yr$2(Ra,qa,Ja){var ed;let{node:td,parent:rd,grandparent:sd,key:od}=Ra,ld=od!=="body"&&(rd.type==="IfStatement"||rd.type==="WhileStatement"||rd.type==="SwitchStatement"||rd.type==="DoWhileStatement"),cd=td.operator==="|>"&&((ed=Ra.root.extra)==null?void 0:ed.__isUsingHackPipeline),ud=ys(Ra,Ja,qa,!1,ld);if(ld)return ud;if(cd)return l(ud);if(L$1(rd)&&rd.callee===td||rd.type==="UnaryExpression"||q$1(rd)&&!rd.computed)return l([f([E$1,...ud]),E$1]);let _d=rd.type==="ReturnStatement"||rd.type==="ThrowStatement"||rd.type==="JSXExpressionContainer"&&sd.type==="JSXAttribute"||td.operator!=="|"&&rd.type==="JsExpressionRoot"||td.type!=="NGPipeExpression"&&(rd.type==="NGRoot"&&qa.parser==="__ng_binding"||rd.type==="NGMicrosyntaxExpression"&&sd.type==="NGMicrosyntax"&&sd.body.length===1)||td===rd.body&&rd.type==="ArrowFunctionExpression"||td!==rd.body&&rd.type==="ForStatement"||rd.type==="ConditionalExpression"&&sd.type!=="ReturnStatement"&&sd.type!=="ThrowStatement"&&!L$1(sd)||rd.type==="TemplateLiteral",yd=rd.type==="AssignmentExpression"||rd.type==="VariableDeclarator"||rd.type==="ClassProperty"||rd.type==="PropertyDefinition"||rd.type==="TSAbstractPropertyDefinition"||rd.type==="ClassPrivateProperty"||Ae$1(rd),gd=De(td.left)&&nr(td.operator,td.left.operator);if(_d||Ut$1(td)&&!gd||!Ut$1(
`+Nd+yd("^")}return" "+gd(Rd)+Ed}).join(`
`)}toString(){let sd=this.showSourceCode();return sd&&(sd=`
`+sd+`
`),this.name+": "+this.message+sd}};qa.exports=td,td.default=td}),$t$1=y((Ra,qa)=>{var Ja={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ed(rd){return rd[0].toUpperCase()+rd.slice(1)}var td=class{constructor(rd){this.builder=rd}atrule(rd,sd){let od="@"+rd.name,ld=rd.params?this.rawValue(rd,"params"):"";if(typeof rd.raws.afterName<"u"?od+=rd.raws.afterName:ld&&(od+=" "),rd.nodes)this.block(rd,od+ld);else{let cd=(rd.raws.between||"")+(sd?";":"");this.builder(od+ld+cd,rd)}}beforeAfter(rd,sd){let od;rd.type==="decl"?od=this.raw(rd,null,"beforeDecl"):rd.type==="comment"?od=this.raw(rd,null,"beforeComment"):sd==="before"?od=this.raw(rd,null,"beforeRule"):od=this.raw(rd,null,"beforeClose");let ld=rd.parent,cd=0;for(;ld&&ld.type!=="root";)cd+=1,ld=ld.parent;if(od.includes(`
`)){let ud=this.raw(rd,null,"indent");if(ud.length)for(let _d=0;_d<cd;_d++)od+=ud}return od}block(rd,sd){let od=this.raw(rd,"between","beforeOpen");this.builder(sd+od+"{",rd,"start");let ld;rd.nodes&&rd.nodes.length?(this.body(rd),ld=this.raw(rd,"after")):ld=this.raw(rd,"after","emptyBody"),ld&&this.builder(ld),this.builder("}",rd,"end")}body(rd){let sd=rd.nodes.length-1;for(;sd>0&&rd.nodes[sd].type==="comment";)sd-=1;let od=this.raw(rd,"semicolon");for(let ld=0;ld<rd.nodes.length;ld++){let cd=rd.nodes[ld],ud=this.raw(cd,"before");ud&&this.builder(ud),this.stringify(cd,sd!==ld||od)}}comment(rd){let sd=this.raw(rd,"left","commentLeft"),od=this.raw(rd,"right","commentRight");this.builder("/*"+sd+rd.text+od+"*/",rd)}decl(rd,sd){let od=this.raw(rd,"between","colon"),ld=rd.prop+od+this.rawValue(rd,"value");rd.important&&(ld+=rd.raws.important||" !important"),sd&&(ld+=";"),this.builder(ld,rd)}document(rd){this.body(rd)}raw(rd,sd,od){let ld;if(od||(od=sd),sd&&(ld=rd.raws[sd],typeof ld<"u"))return ld;let cd=rd.parent;if(od==="before"&&(!cd||cd.type==="root"&&cd.first===rd||cd&&cd.type==="document"))return"";if(!cd)return Ja[od];let ud=rd.root();if(ud.rawCache||(ud.rawCache={}),typeof ud.rawCache[od]<"u")return ud.rawCache[od];if(od==="before"||od==="after")return this.beforeAfter(rd,od);{let _d="raw"+ed(od);this[_d]?ld=this[_d](ud,rd):ud.walk(yd=>{if(ld=yd.raws[sd],typeof ld<"u")return!1})}return typeof ld>"u"&&(ld=Ja[od]),ud.rawCache[od]=ld,ld}rawBeforeClose(rd){let sd;return rd.walk(od=>{if(od.nodes&&od.nodes.length>0&&typeof od.raws.after<"u")return sd=od.raws.after,sd.includes(`
`)&&(sd=sd.replace(/[^\n]+$/,"")),!1}),sd&&(sd=sd.replace(/\S/g,"")),sd}rawBeforeComment(rd,sd){let od;return rd.walkComments(ld=>{if(typeof ld.raws.before<"u")return od=ld.raws.before,od.includes(`
`)&&(od=od.replace(/[^\n]+$/,"")),!1}),typeof od>"u"?od=this.raw(sd,null,"beforeDecl"):od&&(od=od.replace(/\S/g,"")),od}rawBeforeDecl(rd,sd){let od;return rd.walkDecls(ld=>{if(typeof ld.raws.before<"u")return od=ld.raws.before,od.includes(`
`)&&(od=od.replace(/[^\n]+$/,"")),!1}),typeof od>"u"?od=this.raw(sd,null,"beforeRule"):od&&(od=od.replace(/\S/g,"")),od}rawBeforeOpen(rd){let sd;return rd.walk(od=>{if(od.type!=="decl"&&(sd=od.raws.between,typeof sd<"u"))return!1}),sd}rawBeforeRule(rd){let sd;return rd.walk(od=>{if(od.nodes&&(od.parent!==rd||rd.first!==od)&&typeof od.raws.before<"u")return sd=od.raws.before,sd.includes(`
`)&&(sd=sd.replace(/[^\n]+$/,"")),!1}),sd&&(sd=sd.replace(/\S/g,"")),sd}rawColon(rd){let sd;return rd.walkDecls(od=>{if(typeof od.raws.between<"u")return sd=od.raws.between.replace(/[^\s:]/g,""),!1}),sd}rawEmptyBody(rd){let sd;return rd.walk(od=>{if(od.nodes&&od.nodes.length===0&&(sd=od.raws.after,typeof sd<"u"))return!1}),sd}rawIndent(rd){if(rd.raws.indent)return rd.raws.indent;let sd;return rd.walk(od=>{let ld=od.parent;if(ld&&ld!==rd&&ld.parent&&ld.parent===rd&&typeof od.raws.before<"u"){let cd=od.raws.before.split(`
`);return sd=cd[cd.length-1],sd=sd.replace(/\S/g,""),!1}}),sd}rawSemicolon(rd){let sd;return rd.walk(od=>{if(od.nodes&&od.nodes.length&&od.last.type==="decl"&&(sd=od.raws.semicolon,typeof sd<"u"))return!1}),sd}rawValue(rd,sd){let od=rd[sd],ld=rd.raws[sd];return ld&&ld.value===od?ld.raw:od}root(rd){this.body(rd),rd.raws.after&&this.builder(rd.raws.after)}rule(rd){this.block(rd,this.rawValue(rd,"selector")),rd.raws.ownSemicolon&&this.builder(rd.raws.ownSemicolon,rd,"end")}stringify(rd,sd){if(!this[rd.type])throw new Error("Unknown AST node type "+rd.type+". Maybe you need to change PostCSS stringifier.");this[rd.type](rd,sd)}};qa.exports=td,td.default=td}),it=y((Ra,qa)=>{var Ja=$t$1();function ed(td,rd){new Ja(rd).stringify(td)}qa.exports=ed,ed.default=ed}),at=y((Ra,qa)=>{var{isClean:Ja,my:ed}=Ut(),td=Ft$1(),rd=$t$1(),sd=it();function od(cd,ud){let _d=new cd.constructor;for(let yd in cd){if(!Object.prototype.hasOwnProperty.call(cd,yd)||yd==="proxyCache")continue;let gd=cd[yd],Ed=typeof gd;yd==="parent"&&Ed==="object"?ud&&(_d[yd]=ud):yd==="source"?_d[yd]=gd:Array.isArray(gd)?_d[yd]=gd.map(Td=>od(Td,_d)):(Ed==="object"&&gd!==null&&(gd=od(gd)),_d[yd]=gd)}return _d}var ld=class{constructor(cd={}){this.raws={},this[Ja]=!1,this[ed]=!0;for(let ud in cd)if(ud==="nodes"){this.nodes=[];for(let _d of cd[ud])typeof _d.clone=="function"?this.append(_d.clone()):this.append(_d)}else this[ud]=cd[ud]}addToError(cd){if(cd.postcssNode=this,cd.stack&&this.source&&/\n\s{4}at /.test(cd.stack)){let ud=this.source;cd.stack=cd.stack.replace(/\n\s{4}at /,`$&${ud.input.from}:${ud.start.line}:${ud.start.column}$&`)}return cd}after(cd){return this.parent.insertAfter(this,cd),this}assign(cd={}){for(let ud in cd)this[ud]=cd[ud];return this}before(cd){return this.parent.insertBefore(this,cd),this}cleanRaws(cd){delete this.raws.before,delete this.raws.after,cd||delete this.raws.between}clone(cd={}){let ud=od(this);for(let _d in cd)ud[_d]=cd[_d];return ud}cloneAfter(cd={}){let ud=this.clone(cd);return this.parent.insertAfter(this,ud),ud}cloneBefore(cd={}){let ud=this.clone(cd);return this.parent.insertBefore(this,ud),ud}error(cd,ud={}){if(this.source){let{end:_d,start:yd}=this.rangeBy(ud);return this.source.input.error(cd,{column:yd.column,line:yd.line},{column:_d.column,line:_d.line},ud)}return new td(cd)}getProxyProcessor(){return{get(cd,ud){return ud==="proxyOf"?cd:ud==="root"?()=>cd.root().toProxy():cd[ud]},set(cd,ud,_d){return cd[ud]===_d||(cd[ud]=_d,(ud==="prop"||ud==="value"||ud==="name"||ud==="params"||ud==="important"||ud==="text")&&cd.markDirty()),!0}}}markDirty(){if(this[Ja]){this[Ja]=!1;let cd=this;for(;cd=cd.parent;)cd[Ja]=!1}}next(){if(!this.parent)return;let cd=this.parent.index(this);return this.parent.nodes[cd+1]}positionBy(cd,ud){let _d=this.source.start;if(cd.index)_d=this.positionInside(cd.index,ud);else if(cd.word){ud=this.toString();let yd=ud.indexOf(cd.word);yd!==-1&&(_d=this.positionInside(yd,ud))}return _d}positionInside(cd,ud){let _d=ud||this.toString(),yd=this.source.start.column,gd=this.source.start.line;for(let Ed=0;Ed<cd;Ed++)_d[Ed]===`
`?(yd=1,gd+=1):yd+=1;return{column:yd,line:gd}}prev(){if(!this.parent)return;let cd=this.parent.index(this);return this.parent.nodes[cd-1]}rangeBy(cd){let ud={column:this.source.start.column,line:this.source.start.line},_d=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:ud.column+1,line:ud.line};if(cd.word){let yd=this.toString(),gd=yd.indexOf(cd.word);gd!==-1&&(ud=this.positionInside(gd,yd),_d=this.positionInside(gd+cd.word.length,yd))}else cd.start?ud={column:cd.start.column,line:cd.start.line}:cd.index&&(ud=this.positionInside(cd.index)),cd.end?_d={column:cd.end.column,line:cd.end.line}:typeof cd.endIndex=="number"?_d=this.positionInside(cd.endIndex):cd.index&&(_d=this.positionInside(cd.index+1));return(_d.line<ud.line||_d.line===ud.line&&_d.column<=ud.column)&&(_d={column:ud.column+1,line:ud.line}),{end:_d,start:ud}}raw(cd,ud){return new rd().raw(this,cd,ud)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...cd){if(this.parent){let ud=this,_d=!1;for(let yd of cd)yd===this?_d=!0:_d?(this.parent.insertAfter(ud,yd),ud=yd):this.parent.insertBefore(ud,yd);_d||this.remove()}return this}root(){let cd=this;for(;cd.parent&&cd.parent.type!=="document";)cd=cd.parent;return cd}toJSON(cd,ud){let _d={},yd=ud==null;ud=ud||new Map;let gd=0;for(let Ed in this){if(!Object.prototype.hasOwnProperty.call(this,Ed)||Ed==="parent"||Ed==="proxyCache")continue;let Td=this[Ed];if(Array.isArray(Td))_d[Ed]=Td.map(kd=>typeof kd=="object"&&kd.toJSON?kd.toJSON(null,ud):kd);else if(typeof Td=="object"&&Td.toJSON)_d[Ed]=Td.toJSON(null,ud);else if(Ed==="source"){let kd=ud.get(Td.input);kd==null&&(kd=gd,ud.set(Td.input,gd),gd++),_d[Ed]={end:Td.end,inputId:kd,start:Td.start}}else _d[Ed]=Td}return yd&&(_d.inputs=[...ud.keys()].map(Ed=>Ed.toJSON())),_d}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(cd=sd){cd.stringify&&(cd=cd.stringify);let ud="";return cd(this,_d=>{ud+=_d}),ud}warn(cd,ud,_d){let yd={node:this};for(let gd in _d)yd[gd]=_d[gd];return cd.warn(ud,yd)}get proxyOf(){return this}};qa.exports=ld,ld.default=ld}),lt=y((Ra,qa)=>{var Ja=at(),ed=class extends Ja{constructor(td){td&&typeof td.value<"u"&&typeof td.value!="string"&&(td={...td,value:String(td.value)}),super(td),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};qa.exports=ed,ed.default=ed}),Oe=y((Ra,qa)=>{var Ja=at(),ed=class extends Ja{constructor(td){super(td),this.type="comment"}};qa.exports=ed,ed.default=ed}),re=y((Ra,qa)=>{var{isClean:Ja,my:ed}=Ut(),td=lt(),rd=Oe(),sd=at(),od,ld,cd,ud;function _d(Ed){return Ed.map(Td=>(Td.nodes&&(Td.nodes=_d(Td.nodes)),delete Td.source,Td))}function yd(Ed){if(Ed[Ja]=!1,Ed.proxyOf.nodes)for(let Td of Ed.proxyOf.nodes)yd(Td)}var gd=class rS extends sd{append(...Td){for(let kd of Td){let Rd=this.normalize(kd,this.last);for(let Nd of Rd)this.proxyOf.nodes.push(Nd)}return this.markDirty(),this}cleanRaws(Td){if(super.cleanRaws(Td),this.nodes)for(let kd of this.nodes)kd.cleanRaws(Td)}each(Td){if(!this.proxyOf.nodes)return;let kd=this.getIterator(),Rd,Nd;for(;this.indexes[kd]<this.proxyOf.nodes.length&&(Rd=this.indexes[kd],Nd=Td(this.proxyOf.nodes[Rd],Rd),Nd!==!1);)this.indexes[kd]+=1;return delete this.indexes[kd],Nd}every(Td){return this.nodes.every(Td)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let Td=this.lastEach;return this.indexes[Td]=0,Td}getProxyProcessor(){return{get(Td,kd){return kd==="proxyOf"?Td:Td[kd]?kd==="each"||typeof kd=="string"&&kd.startsWith("walk")?(...Rd)=>Td[kd](...Rd.map(Nd=>typeof Nd=="function"?(Id,Md)=>Nd(Id.toProxy(),Md):Nd)):kd==="every"||kd==="some"?Rd=>Td[kd]((Nd,...Id)=>Rd(Nd.toProxy(),...Id)):kd==="root"?()=>Td.root().toProxy():kd==="nodes"?Td.nodes.map(Rd=>Rd.toProxy()):kd==="first"||kd==="last"?Td[kd].toProxy():Td[kd]:Td[kd]},set(Td,kd,Rd){return Td[kd]===Rd||(Td[kd]=Rd,(kd==="name"||kd==="params"||kd==="selector")&&Td.markDirty()),!0}}}index(Td){return typeof Td=="number"?Td:(Td.pr
`," "];return Ja.split(ed,td)},split(ed,td,rd){let sd=[],od="",ld=!1,cd=0,ud=!1,_d="",yd=!1;for(let gd of ed)yd?yd=!1:gd==="\\"?yd=!0:ud?gd===_d&&(ud=!1):gd==='"'||gd==="'"?(ud=!0,_d=gd):gd==="("?cd+=1:gd===")"?cd>0&&(cd-=1):cd===0&&td.includes(gd)&&(ld=!0),ld?(od!==""&&sd.push(od.trim()),od="",ld=!1):od+=gd;return(rd||od!=="")&&sd.push(od.trim()),sd}};qa.exports=Ja,Ja.default=Ja}),jt=y((Ra,qa)=>{var Ja=re(),ed=us(),td=class extends Ja{constructor(rd){super(rd),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ed.comma(this.selector)}set selectors(rd){let sd=this.selector?this.selector.match(/,\s*/):null,od=sd?sd[0]:","+this.raw("between","beforeOpen");this.selector=rd.join(od)}};qa.exports=td,td.default=td,Ja.registerRule(td)}),Ht=y((Ra,qa)=>{var Ja=lt(),ed=Vt(),td=Oe(),rd=Gt$1(),sd=Ae(),od=jt(),ld={empty:!0,space:!0};function cd(_d){for(let yd=_d.length-1;yd>=0;yd--){let gd=_d[yd],Ed=gd[3]||gd[2];if(Ed)return Ed}}var ud=class{constructor(_d){this.input=_d,this.root=new sd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:_d,start:{column:1,line:1,offset:0}}}atrule(_d){let yd=new rd;yd.name=_d[1].slice(1),yd.name===""&&this.unnamedAtrule(yd,_d),this.init(yd,_d[2]);let gd,Ed,Td,kd=!1,Rd=!1,Nd=[],Id=[];for(;!this.tokenizer.endOfFile();){if(_d=this.tokenizer.nextToken(),gd=_d[0],gd==="("||gd==="["?Id.push(gd==="("?")":"]"):gd==="{"&&Id.length>0?Id.push("}"):gd===Id[Id.length-1]&&Id.pop(),Id.length===0)if(gd===";"){yd.source.end=this.getPosition(_d[2]),yd.source.end.offset++,this.semicolon=!0;break}else if(gd==="{"){Rd=!0;break}else if(gd==="}"){if(Nd.length>0){for(Td=Nd.length-1,Ed=Nd[Td];Ed&&Ed[0]==="space";)Ed=Nd[--Td];Ed&&(yd.source.end=this.getPosition(Ed[3]||Ed[2]),yd.source.end.offset++)}this.end(_d);break}else Nd.push(_d);else Nd.push(_d);if(this.tokenizer.endOfFile()){kd=!0;break}}yd.raws.between=this.spacesAndCommentsFromEnd(Nd),Nd.length?(yd.raws.afterName=this.spacesAndCommentsFromStart(Nd),this.raw(yd,"params",Nd),kd&&(_d=Nd[Nd.length-1],yd.source.end=this.getPosition(_d[3]||_d[2]),yd.source.end.offset++,this.spaces=yd.raws.between,yd.raws.between="")):(yd.raws.afterName="",yd.params=""),Rd&&(yd.nodes=[],this.current=yd)}checkMissedSemicolon(_d){let yd=this.colon(_d);if(yd===!1)return;let gd=0,Ed;for(let Td=yd-1;Td>=0&&(Ed=_d[Td],!(Ed[0]!=="space"&&(gd+=1,gd===2)));Td--);throw this.input.error("Missed semicolon",Ed[0]==="word"?Ed[3]+1:Ed[2])}colon(_d){let yd=0,gd,Ed,Td;for(let[kd,Rd]of _d.entries()){if(gd=Rd,Ed=gd[0],Ed==="("&&(yd+=1),Ed===")"&&(yd-=1),yd===0&&Ed===":")if(!Td)this.doubleColon(gd);else{if(Td[0]==="word"&&Td[1]==="progid")continue;return kd}Td=gd}return!1}comment(_d){let yd=new td;this.init(yd,_d[2]),yd.source.end=this.getPosition(_d[3]||_d[2]),yd.source.end.offset++;let gd=_d[1].slice(2,-2);if(/^\s*$/.test(gd))yd.text="",yd.raws.left=gd,yd.raws.right="";else{let Ed=gd.match(/^(\s*)([^]*\S)(\s*)$/);yd.text=Ed[2],yd.raws.left=Ed[1],yd.raws.right=Ed[3]}}createTokenizer(){this.tokenizer=ed(this.input)}decl(_d,yd){let gd=new Ja;this.init(gd,_d[0][2]);let Ed=_d[_d.length-1];for(Ed[0]===";"&&(this.semicolon=!0,_d.pop()),gd.source.end=this.getPosition(Ed[3]||Ed[2]||cd(_d)),gd.source.end.offset++;_d[0][0]!=="word";)_d.length===1&&this.unknownWord(_d),gd.raws.before+=_d.shift()[1];for(gd.source.start=this.getPosition(_d[0][2]),gd.prop="";_d.length;){let Nd=_d[0][0];if(Nd===":"||Nd==="space"||Nd==="comment")break;gd.prop+=_d.shift()[1]}gd.raws.between="";let Td;for(;_d.length;)if(Td=_d.shift(),Td[0]===":"){gd.raws.between+=Td[1];break}else Td[0]==="word"&&/\w/.test(Td[1])&&this.unknownWord([Td]),gd.raws.between+=Td[1];(gd.prop[0]==="_"||gd.prop[0]==="*")&&(gd.raws.before+=gd.prop[0],gd.prop=gd.prop.slice(1));let kd=[],Rd;for(;_d.length&&(Rd=_d[0][0],!(Rd!=="space"&&Rd!=="comment"));)kd.push(_d.shift());this.precheckMissedSemicolon(_d);for(let Nd=_d.length-1;Nd>=0;Nd--){if(Td=_d[Nd],Td[1].toLowerCase()==="!important"){gd.important=!0;let Id=this.stringFrom(_d,Nd);Id=this.spacesFromEnd(_d)+Id,Id!==" !important"&&(gd.raws.important=Id);br
`);Nd=new Array(Md.length);let Ld=0;for(let Pd=0,qd=Md.length;Pd<qd;Pd++)Nd[Pd]=Ld,Ld+=Md[Pd].length+1;this[yd]=Nd}Rd=Nd[Nd.length-1];let Id=0;if(kd>=Rd)Id=Nd.length-1;else{let Md=Nd.length-2,Ld;for(;Id<Md;)if(Ld=Id+(Md-Id>>1),kd<Nd[Ld])Md=Ld-1;else if(kd>=Nd[Ld+1])Id=Ld+1;else{Id=Ld;break}}return{col:kd-Nd[Id]+1,line:Id+1}}mapResolve(kd){return/^\w+:\/\//.test(kd)?kd:od(this.map.consumer().sourceRoot||this.map.root||".",kd)}origin(kd,Rd,Nd,Id){if(!this.map)return!1;let Md=this.map.consumer(),Ld=Md.originalPositionFor({column:Rd,line:kd});if(!Ld.source)return!1;let Pd;typeof Nd=="number"&&(Pd=Md.originalPositionFor({column:Id,line:Nd}));let qd;sd(Ld.source)?qd=rd(Ld.source):qd=new URL(Ld.source,this.map.consumer().sourceRoot||rd(this.map.mapFile));let Yd={column:Ld.column,endColumn:Pd&&Pd.column,endLine:Pd&&Pd.line,line:Ld.line,url:qd.toString()};if(qd.protocol==="file:")if(td)Yd.file=td(qd);else throw new Error("file: protocol is not available in this PostCSS build");let Ud=Md.sourceContentFor(Ld.source);return Ud&&(Yd.source=Ud),Yd}toJSON(){let kd={};for(let Rd of["hasBOM","css","file","id"])this[Rd]!=null&&(kd[Rd]=this[Rd]);return this.map&&(kd.map={...this.map},kd.map.consumerCache&&(kd.map.consumerCache=void 0)),kd}get from(){return this.file||this.id}};qa.exports=Td,Td.default=Td,cd&&cd.registerInput&&cd.registerInput(Td)}),pt=y((Ra,qa)=>{var Ja=re(),ed=Ht(),td=Re$1();function rd(sd,od){let ld=new td(sd,od),cd=new ed(ld);try{cd.parse()}catch(ud){throw ud}return cd.root}qa.exports=rd,rd.default=rd,Ja.registerParse(rd)}),no=y((Ra,qa)=>{var Ja=Vt(),ed=Re$1();qa.exports={isInlineComment(td){if(td[0]==="word"&&td[1].slice(0,2)==="//"){let rd=td,sd=[],od,ld;for(;td;){if(/\r?\n/.test(td[1])){if(/['"].*\r?\n/.test(td[1])){sd.push(td[1].substring(0,td[1].indexOf(`
`))),ld=td[1].substring(td[1].indexOf(`
`));let ud=this.input.css.valueOf().substring(this.tokenizer.position());ld+=ud,od=td[3]+ud.length-ld.length}else this.tokenizer.back(td);break}sd.push(td[1]),od=td[2],td=this.tokenizer.nextToken({ignoreUnclosed:!0})}let cd=["comment",sd.join(""),rd[2],od];return this.inlineComment(cd),ld&&(this.input=new ed(ld),this.tokenizer=Ja(this.input)),!0}else if(td[1]==="/"){let rd=this.tokenizer.nextToken({ignoreUnclosed:!0});if(rd[0]==="comment"&&/^\/\*/.test(rd[1]))return rd[0]="word",rd[1]=rd[1].slice(1),td[1]="//",this.tokenizer.back(rd),qa.exports.isInlineComment.bind(this)(td)}return!1}}}),oo$1=y((Ra,qa)=>{qa.exports={interpolation(Ja){let ed=[Ja,this.tokenizer.nextToken()],td=["word","}"];if(ed[0][1].length>1||ed[1][0]!=="{")return this.tokenizer.back(ed[1]),!1;for(Ja=this.tokenizer.nextToken();Ja&&td.includes(Ja[0]);)ed.push(Ja),Ja=this.tokenizer.nextToken();let rd=ed.map(cd=>cd[1]),[sd]=ed,od=ed.pop(),ld=["word",rd.join(""),sd[2],od[2]];return this.tokenizer.back(Ja),this.tokenizer.back(ld),!0}}}),uo$1=y((Ra,qa)=>{var Ja=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,ed=/\.[0-9]/,td=rd=>{let[,sd]=rd,[od]=sd;return(od==="."||od==="#")&&Ja.test(sd)===!1&&ed.test(sd)===!1};qa.exports={isMixinToken:td}}),co=y((Ra,qa)=>{var Ja=Vt(),ed=/^url\((.+)\)/;qa.exports=td=>{let{name:rd,params:sd=""}=td;if(rd==="import"&&sd.length){td.import=!0;let od=Ja({css:sd});for(td.filename=sd.replace(ed,"$1");!od.endOfFile();){let[ld,cd]=od.nextToken();if(ld==="word"&&cd==="url")return;if(ld==="brackets"){td.options=cd,td.filename=sd.replace(cd,"").trim();break}}}}}),mo$1=y((Ra,qa)=>{var Ja=/:$/,ed=/^:(\s+)?/;qa.exports=td=>{let{name:rd,params:sd=""}=td;if(td.name.slice(-1)===":"){if(Ja.test(rd)){let[od]=rd.match(Ja);td.name=rd.replace(od,""),td.raws.afterName=od+(td.raws.afterName||""),td.variable=!0,td.value=td.params}if(ed.test(sd)){let[od]=sd.match(ed);td.value=sd.replace(od,""),td.raws.afterName=(td.raws.afterName||"")+od,td.variable=!0}}}}),go$1=y((Ra,qa)=>{var Ja=Oe(),ed=Ht(),{isInlineComment:td}=no(),{interpolation:rd}=oo$1(),{isMixinToken:sd}=uo$1(),od=co(),ld=mo$1(),cd=/(!\s*important)$/i;qa.exports=class extends ed{constructor(...ud){super(...ud),this.lastNode=null}atrule(ud){rd.bind(this)(ud)||(super.atrule(ud),od(this.lastNode),ld(this.lastNode))}decl(...ud){super.decl(...ud),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(ud){ud[0][1]=` ${ud[0][1]}`;let _d=ud.findIndex(Td=>Td[0]==="("),yd=ud.reverse().find(Td=>Td[0]===")"),gd=ud.reverse().indexOf(yd),Ed=ud.splice(_d,gd).map(Td=>Td[1]).join("");for(let Td of ud.reverse())this.tokenizer.back(Td);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=Ed}init(ud,_d,yd){super.init(ud,_d,yd),this.lastNode=ud}inlineComment(ud){let _d=new Ja,yd=ud[1].slice(2);if(this.init(_d,ud[2]),_d.source.end=this.getPosition(ud[3]||ud[2]),_d.inline=!0,_d.raws.begin="//",/^\s*$/.test(yd))_d.text="",_d.raws.left=yd,_d.raws.right="";else{let gd=yd.match(/^(\s*)([^]*[^\s])(\s*)$/);[,_d.raws.left,_d.text,_d.raws.right]=gd}}mixin(ud){let[_d]=ud,yd=_d[1].slice(0,1),gd=ud.findIndex(Nd=>Nd[0]==="brackets"),Ed=ud.findIndex(Nd=>Nd[0]==="("),Td="";if((gd<0||gd>3)&&Ed>0){let Nd=ud.reduce((Vd,Jd,Zd)=>Jd[0]===")"?Zd:Vd),Id=ud.slice(Ed,Nd+Ed).map(Vd=>Vd[1]).join(""),[Md]=ud.slice(Ed),Ld=[Md[2],Md[3]],[Pd]=ud.slice(Nd,Nd+1),qd=[Pd[2],Pd[3]],Yd=["brackets",Id].concat(Ld,qd),Ud=ud.slice(0,Ed),Hd=ud.slice(Nd+1);ud=Ud,ud.push(Yd),ud=ud.concat(Hd)}let kd=[];for(let Nd of ud)if((Nd[1]==="!"||kd.length)&&kd.push(Nd),Nd[1]==="important")break;if(kd.length){let[Nd]=kd,Id=ud.indexOf(Nd),Md=kd[kd.length-1],Ld=[Nd[2],Nd[3]],Pd=[Md[4],Md[5]],qd=["word",kd.map(Yd=>Yd[1]).join("")].concat(Ld,Pd);ud.splice(Id,kd.length,qd)}let Rd=ud.findIndex(Nd=>cd.test(Nd[1]));Rd>0&&([,Td]=ud[Rd],ud.splice(Rd,1));for(let Nd of ud.reverse())this.tokenizer.back(Nd);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=yd,Td&&(this.lastNode.important=!0,this.lastNode.raws.important=Td)}other(ud){td.bind(this)(ud)||super.other(ud)}rule(ud){let _d=ud[ud.length-1],yd
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let Vd=Pd(...Hd);return Vd.postcssPlugin=Ld,Vd.postcssVersion=new sd().version,Vd}let Ud;return Object.defineProperty(Yd,"postcss",{get(){return Ud||(Ud=Yd()),Ud}}),Yd.process=function(Hd,Vd,Jd){return Md([Yd(Jd)]).process(Hd,Vd)},Yd},Md.stringify=od,Md.parse=Td,Md.fromJSON=ld,Md.list=kd,Md.comment=Ld=>new _d(Ld),Md.atRule=Ld=>new yd(Ld),Md.decl=Ld=>new ed(Ld),Md.rule=Ld=>new Rd(Ld),Md.root=Ld=>new Nd(Ld),Md.document=Ld=>new cd(Ld),Md.CssSyntaxError=Ja,Md.Declaration=ed,Md.Container=rd,Md.Processor=sd,Md.Document=cd,Md.Comment=_d,Md.Warning=ud,Md.AtRule=yd,Md.Result=gd,Md.Input=Ed,Md.Rule=Rd,Md.Root=Nd,Md.Node=Id,td.registerPostcss(Md),qa.exports=Md,Md.default=Md}),Ho$1=y((Ra,qa)=>{var{Container:Ja}=Zt$1(),ed=class extends Ja{constructor(td){super(td),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};qa.exports=ed}),Jo=y((Ra,qa)=>{var Ja=/[\t\n\f\r "#'()/;[\\\]{}]/g,ed=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,td=/.[\r\n"'(/\\]/,rd=/[\da-f]/i,sd=/[\n\f\r]/g;qa.exports=function(od,ld={}){let cd=od.css.valueOf(),ud=ld.ignoreErrors,_d,yd,gd,Ed,Td,kd,Rd,Nd,Id,Md=cd.length,Ld=0,Pd=[],qd=[],Yd;function Ud(){return Ld}function Hd(Xd){throw od.error("Unclosed "+Xd,Ld)}function Vd(){return qd.length===0&&Ld>=Md}function Jd(){let Xd=1,hf=!1,mf=!1;for(;Xd>0;)yd+=1,cd.length<=yd&&Hd("interpolation"),_d=cd.charCodeAt(yd),Nd=cd.charCodeAt(yd+1),hf?!mf&&_d===hf?(hf=!1,mf=!1):_d===92?mf=!mf:mf&&(mf=!1):_d===39||_d===34?hf=_d:_d===125?Xd-=1:_d===35&&Nd===123&&(Xd+=1)}function Zd(Xd){if(qd.length)return qd.pop();if(Ld>=Md)return;let hf=Xd?Xd.ignoreUnclosed:!1;switch(_d=cd.charCodeAt(Ld),_d){case 10:case 32:case 9:case 13:case 12:{yd=Ld;do yd+=1,_d=cd.charCodeAt(yd);while(_d===32||_d===10||_d===9||_d===13||_d===12);Id=["space",cd.slice(Ld,yd)],Ld=yd-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let mf=String.fromCharCode(_d);Id=[mf,mf,Ld];break}case 44:{Id=["word",",",Ld,Ld+1];break}case 40:{if(Rd=Pd.length?Pd.pop()[1]:"",Nd=cd.charCodeAt(Ld+1),Rd==="url"&&Nd!==39&&Nd!==34){for(Yd=1,kd=!1,yd=Ld+1;yd<=cd.length-1;){if(Nd=cd.charCodeAt(yd),Nd===92)kd=!kd;else if(Nd===40)Yd+=1;else if(Nd===41&&(Yd-=1,Yd===0))break;yd+=1}Ed=cd.slice(Ld,yd+1),Id=["brackets",Ed,Ld,yd],Ld=yd}else yd=cd.indexOf(")",Ld+1),Ed=cd.slice(Ld,yd+1),yd===-1||td.test(Ed)?Id=["(","(",Ld]:(Id=["brackets",Ed,Ld,yd],Ld=yd);break}case 39:case 34:{for(gd=_d,yd=Ld,kd=!1;yd<Md&&(yd++,yd===Md&&Hd("string"),_d=cd.charCodeAt(yd),Nd=cd.charCodeAt(yd+1),!(!kd&&_d===gd));)_d===92?kd=!kd:kd?kd=!1:_d===35&&Nd===123&&Jd();Id=["string",cd.slice(Ld,yd+1),Ld,yd],Ld=yd;break}case 64:{Ja.lastIndex=Ld+1,Ja.test(cd),Ja.lastIndex===0?yd=cd.length-1:yd=Ja.lastIndex-2,Id=["at-word",cd.slice(Ld,yd+1),Ld,yd],Ld=yd;break}case 92:{for(yd=Ld,Td=!0;cd.charCodeAt(yd+1)===92;)yd+=1,Td=!Td;if(_d=cd.charCodeAt(yd+1),Td&&_d!==47&&_d!==32&&_d!==10&&_d!==9&&_d!==13&&_d!==12&&(yd+=1,rd.test(cd.charAt(yd)))){for(;rd.test(cd.charAt(yd+1));)yd+=1;cd.charCodeAt(yd+1)===32&&(yd+=1)}Id=["word",cd.slice(Ld,yd+1),Ld,yd],Ld=yd;break}default:Nd=cd.charCodeAt(Ld+1),_d===35&&Nd===123?(yd=Ld,Jd(),Ed=cd.slice(Ld,yd+1),Id=["word",Ed,Ld,yd],Ld=yd):_d===47&&Nd===42?(yd=cd.indexOf("*/",Ld+2)+1,yd===0&&(ud||hf?yd=cd.length:Hd("comment")),Id=["comment",cd.slice(Ld,yd+1),Ld,yd],Ld=yd):_d===47&&Nd===47?(sd.lastIndex=Ld+1,sd.test(cd),sd.lastIndex===0?yd=cd.length-1:yd=sd.lastIndex-2,Ed=cd.slice(Ld,yd+1),Id=["comment",Ed,Ld,yd,"inline"],Ld=yd):(ed.lastIndex=Ld+1,ed.test(cd),ed.lastIndex===0?yd=cd.length-1:yd=ed.lastIndex-2,Id=["word",cd.slice(Ld,yd+1),Ld,yd],Pd.push(Id),Ld=yd);break}return Ld++,Id}function pf(Xd){qd.push(Xd)}return{back:pf,endOfFile:Vd,nextToken:Zd,position:Ud}}}),Zo=y((Ra,qa)=>{var{Comment:Ja}=Zt$1(),ed=Ht(),td=Ho$1(),rd=Jo(),sd=class extends ed{atrule(od){let ld=od[1],cd=od;for(;!this.tokenizer.endOfFile();){let ud=this.tokenizer.nextToken();if(ud[0]==="word"&&ud[2]===cd[3]+1)ld+=ud[1],cd=ud;else{this.tokenizer.back(ud);break}}super.atrule(["at-word",ld,od[2],cd[3]])}comment(od){if(od[4]==="inline"){let ld=new Ja;this.
`))break;_d[0]==="("?cd+=1:_d[0]===")"?cd-=1:cd===0&&_d[0]===":"&&(ld=!0)}if(!ld||ud.trim()===""||/^[#:A-Za-z-]/.test(ud))super.rule(od);else{od.pop();let _d=new td;this.init(_d,od[0][2]);let yd;for(let Ed=od.length-1;Ed>=0;Ed--)if(od[Ed][0]!=="space"){yd=od[Ed];break}if(yd[3]){let Ed=this.input.fromOffset(yd[3]);_d.source.end={column:Ed.col,line:Ed.line,offset:yd[3]+1}}else{let Ed=this.input.fromOffset(yd[2]);_d.source.end={column:Ed.col,line:Ed.line,offset:yd[2]+1}}for(;od[0][0]!=="word";)_d.raws.before+=od.shift()[1];if(od[0][2]){let Ed=this.input.fromOffset(od[0][2]);_d.source.start={column:Ed.col,line:Ed.line,offset:od[0][2]}}for(_d.prop="";od.length;){let Ed=od[0][0];if(Ed===":"||Ed==="space"||Ed==="comment")break;_d.prop+=od.shift()[1]}_d.raws.between="";let gd;for(;od.length;)if(gd=od.shift(),gd[0]===":"){_d.raws.between+=gd[1];break}else _d.raws.between+=gd[1];(_d.prop[0]==="_"||_d.prop[0]==="*")&&(_d.raws.before+=_d.prop[0],_d.prop=_d.prop.slice(1)),_d.raws.between+=this.spacesAndCommentsFromStart(od),this.precheckMissedSemicolon(od);for(let Ed=od.length-1;Ed>0;Ed--){if(gd=od[Ed],gd[1]==="!important"){_d.important=!0;let Td=this.stringFrom(od,Ed);Td=this.spacesFromEnd(od)+Td,Td!==" !important"&&(_d.raws.important=Td);break}else if(gd[1]==="important"){let Td=od.slice(0),kd="";for(let Rd=Ed;Rd>0;Rd--){let Nd=Td[Rd][0];if(kd.trim().indexOf("!")===0&&Nd!=="space")break;kd=Td.pop()[1]+kd}kd.trim().indexOf("!")===0&&(_d.important=!0,_d.raws.important=kd,od=Td)}if(gd[0]!=="space"&&gd[0]!=="comment")break}this.raw(_d,"value",od),_d.value.includes(":")&&this.checkMissedSemicolon(od),this.current=_d}}};qa.exports=sd}),ta=y((Ra,qa)=>{var{Input:Ja}=Zt$1(),ed=Zo();qa.exports=function(td,rd){let sd=new Ja(td,rd),od=new ed(sd);return od.parse(),od.root}}),Os=y(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(Ja){this.after=Ja.after,this.before=Ja.before,this.type=Ja.type,this.value=Ja.value,this.sourceIndex=Ja.sourceIndex}Ra.default=qa}),As=y(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});var qa=Os(),Ja=ed(qa);function ed(rd){return rd&&rd.__esModule?rd:{default:rd}}function td(rd){var sd=this;this.constructor(rd),this.nodes=rd.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(od){od.parent=sd})}td.prototype=Object.create(Ja.default.prototype),td.constructor=Ja.default,td.prototype.walk=function(rd,sd){for(var od=typeof rd=="string"||rd instanceof RegExp,ld=od?sd:rd,cd=typeof rd=="string"?new RegExp(rd):rd,ud=0;ud<this.nodes.length;ud++){var _d=this.nodes[ud],yd=od?cd.test(_d.type):!0;if(yd&&ld&&ld(_d,ud,this.nodes)===!1||_d.nodes&&_d.walk(rd,sd)===!1)return!1}return!0},td.prototype.each=function(){for(var rd=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],sd=0;sd<this.nodes.length;sd++){var od=this.nodes[sd];if(rd(od,sd,this.nodes)===!1)return!1}return!0},Ra.default=td}),aa=y(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.parseMediaFeature=sd,Ra.parseMediaQuery=od,Ra.parseMediaList=ld;var qa=Os(),Ja=rd(qa),ed=As(),td=rd(ed);function rd(cd){return cd&&cd.__esModule?cd:{default:cd}}function sd(cd){var ud=arguments.length<=1||arguments[1]===void 0?0:arguments[1],_d=[{mode:"normal",character:null}],yd=[],gd=0,Ed="",Td=null,kd=null,Rd=ud,Nd=cd;cd[0]==="("&&cd[cd.length-1]===")"&&(Nd=cd.substring(1,cd.length-1),Rd++);for(var Id=0;Id<Nd.length;Id++){var Md=Nd[Id];if((Md==="'"||Md==='"')&&(_d[gd].isCalculationEnabled===!0?(_d.push({mode:"string",isCalculationEnabled:!1,character:Md}),gd++):_d[gd].mode==="string"&&_d[gd].character===Md&&Nd[Id-1]!=="\\"&&(_d.pop(),gd--)),Md==="{"?(_d.push({mode:"interpolation",isCalculationEnabled:!0}),gd++):Md==="}"&&(_d.pop(),gd--),_d[gd].mode==="normal"&&Md===":"){var Ld=Nd.substring(Id+1);kd={type:"value",before:/^(\s*)/.exec(Ld)[1],after:/(\s*)$/.exec(Ld)[1],value:Ld.trim()},kd.sourceIndex=kd.before.length+Id+1+Rd,Td=
`),Lf=xf.length-1,Lf>0?(If=_f+Lf,Sf=hf-xf[Lf].length):(If=_f,Sf=gf),Zd.push(["comment",Wf,_f,$f-gf,If,hf-Sf,$f]),gf=Sf,_f=If,$f=hf):(Hd.lastIndex=$f+1,Hd.test(pf),Hd.lastIndex===0?hf=pf.length-1:hf=Hd.lastIndex-2,Zd.push(["word",pf.slice($f,hf+1),_f,$f-gf,_f,hf-gf,$f]),$f=hf);break}$f++}return Zd}qa.exports=Ra.default}),tu$1=y((Ra,qa)=>{Ra.__esModule=!0;var Ja=function(){function gf(_f,$f){for(var zf=0;zf<$f.length;zf++){var hh=$f[zf];hh.enumerable=hh.enumerable||!1,hh.configurable=!0,"value"in hh&&(hh.writable=!0),Object.defineProperty(_f,hh.key,hh)}}return function(_f,$f,zf){return $f&&gf(_f.prototype,$f),zf&&gf(_f,zf),_f}}(),ed=qs(),td=wf(ed),rd=Ls(),sd=wf(rd),od=Ds(),ld=wf(od),cd=ga$1(),ud=wf(cd),_d=xa(),yd=wf(_d),gd=ka(),Ed=wf(gd),Td=Sa(),kd=wf(Td),Rd=Oa$1(),Nd=wf(Rd),Id=Aa(),Md=wf(Id),Ld=Pa$1(),Pd=wf(Ld),qd=Ia(),Yd=wf(qd),Ud=La(),Hd=wf(Ud),Vd=Ma(),Jd=wf(Vd),Zd=Ua$1(),pf=wf(Zd),Xd=$a$1(),hf=wf(Xd),mf=Ya$1(),xf=wf(mf),Lf=Xa(),Wf=wf(Lf),Yf=D(),If=Sf(Yf);function Sf(gf){if(gf&&gf.__esModule)return gf;var _f={};if(gf!=null)for(var $f in gf)Object.prototype.hasOwnProperty.call(gf,$f)&&(_f[$f]=gf[$f]);return _f.default=gf,_f}function wf(gf){return gf&&gf.__esModule?gf:{default:gf}}function Kf(gf,_f){if(!(gf instanceof _f))throw new TypeError("Cannot call a class as a function")}var qf=function(){function gf(_f){Kf(this,gf),this.input=_f,this.lossy=_f.options.lossless===!1,this.position=0,this.root=new ud.default;var $f=new yd.default;return this.root.append($f),this.current=$f,this.lossy?this.tokens=(0,Wf.default)({safe:_f.safe,css:_f.css.trim()}):this.tokens=(0,Wf.default)(_f),this.loop()}return gf.prototype.attribute=function(){var _f="",$f=void 0,zf=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)_f+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~_f.indexOf("]")&&this.error("Expected a closing square bracket.");var hh=_f.split(/((?:[*~^$|]?=))([^]*)/),Vf=hh[0].split(/(\|)/g),kf={operator:hh[1],value:hh[2],source:{start:{line:zf[2],column:zf[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:zf[4]};if(Vf.length>1?(Vf[0]===""&&(Vf[0]=!0),kf.attribute=this.parseValue(Vf[2]),kf.namespace=this.parseNamespace(Vf[0])):kf.attribute=this.parseValue(hh[0]),$f=new Hd.default(kf),hh[2]){var Jf=hh[2].split(/(\s+i\s*?)$/),Ch=Jf[0].trim();$f.value=this.lossy?Ch:Jf[0],Jf[1]&&($f.insensitive=!0,this.lossy||($f.raws.insensitive=Jf[1])),$f.quoted=Ch[0]==="'"||Ch[0]==='"',$f.raws.unquoted=$f.quoted?Ch.slice(1,-1):Ch}this.newNode($f),this.position++},gf.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var _f=new pf.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(_f.spaces.before=this.parseSpace(this.currToken[1]),_f.source.start.line=this.nextToken[2],_f.source.start.column=this.nextToken[3],_f.source.end.column=this.nextToken[3],_f.source.end.line=this.nextToken[2],_f.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?_f.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?_f.value=this.currToken[1]:this.currToken[0]==="space"&&(_f.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(_f)},gf.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var _f=new yd.default;this.current.parent.append(_f),this.current=_f,this.position++},gf.prototype.comment=function(){var _f=new kd.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(_f),this.position++},gf.prototype.error=function(_f){throw new this.input.error(_f)},gf.prototype.missingB
`?(rd=1,sd+=1):rd+=1;return{line:sd,column:rd}}positionBy(ed){let td=this.source.start;if(Object(ed).index)td=this.positionInside(ed.index);else if(Object(ed).word){let rd=this.toString().indexOf(ed.word);rd!==-1&&(td=this.positionInside(rd))}return td}}}),U=y((Ra,qa)=>{var Ja=z(),ed=class extends Ja{constructor(td){super(td),this.nodes||(this.nodes=[])}push(td){return td.parent=this,this.nodes.push(td),this}each(td){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let rd=this.lastEach,sd,od;if(this.indexes[rd]=0,!!this.nodes){for(;this.indexes[rd]<this.nodes.length&&(sd=this.indexes[rd],od=td(this.nodes[sd],sd),od!==!1);)this.indexes[rd]+=1;return delete this.indexes[rd],od}}walk(td){return this.each((rd,sd)=>{let od=td(rd,sd);return od!==!1&&rd.walk&&(od=rd.walk(td)),od})}walkType(td,rd){if(!td||!rd)throw new Error("Parameters {type} and {callback} are required.");let sd=typeof td=="function";return this.walk((od,ld)=>{if(sd&&od instanceof td||!sd&&od.type===td)return rd.call(this,od,ld)})}append(td){return td.parent=this,this.nodes.push(td),this}prepend(td){return td.parent=this,this.nodes.unshift(td),this}cleanRaws(td){if(super.cleanRaws(td),this.nodes)for(let rd of this.nodes)rd.cleanRaws(td)}insertAfter(td,rd){let sd=this.index(td),od;this.nodes.splice(sd+1,0,rd);for(let ld in this.indexes)od=this.indexes[ld],sd<=od&&(this.indexes[ld]=od+this.nodes.length);return this}insertBefore(td,rd){let sd=this.index(td),od;this.nodes.splice(sd,0,rd);for(let ld in this.indexes)od=this.indexes[ld],sd<=od&&(this.indexes[ld]=od+this.nodes.length);return this}removeChild(td){td=this.index(td),this.nodes[td].parent=void 0,this.nodes.splice(td,1);let rd;for(let sd in this.indexes)rd=this.indexes[sd],rd>=td&&(this.indexes[sd]=rd-1);return this}removeAll(){for(let td of this.nodes)td.parent=void 0;return this.nodes=[],this}every(td){return this.nodes.every(td)}some(td){return this.nodes.some(td)}index(td){return typeof td=="number"?td:this.nodes.indexOf(td)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let td=this.nodes.map(String).join("");return this.value&&(td=this.value+td),this.raws.before&&(td=this.raws.before+td),this.raws.after&&(td+=this.raws.after),td}};ed.registerWalker=td=>{let rd="walk"+td.name;rd.lastIndexOf("s")!==rd.length-1&&(rd+="s"),!ed.prototype[rd]&&(ed.prototype[rd]=function(sd){return this.walkType(td,sd)})},qa.exports=ed}),uu$1=y((Ra,qa)=>{var Ja=U();qa.exports=class extends Ja{constructor(ed){super(ed),this.type="root"}}}),cu=y((Ra,qa)=>{var Ja=U();qa.exports=class extends Ja{constructor(ed){super(ed),this.type="value",this.unbalanced=0}}}),hu=y((Ra,qa)=>{var Ja=U(),ed=class extends Ja{constructor(td){super(td),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Ja.registerWalker(ed),qa.exports=ed}),mu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="colon"}};Ja.registerWalker(td),qa.exports=td}),wu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="comma"}};Ja.registerWalker(td),qa.exports=td}),vu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="comment",this.inline=Object(rd).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Ja.registerWalker(td),qa.exports=td}),_u=y((Ra,qa)=>{var Ja=U(),ed=class extends Ja{constructor(td){super(td),this.type="func",this.unbalanced=-1}};Ja.registerWalker(ed),qa.exports=ed}),Eu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="number",this.unit=Object(rd).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Ja.registerWalker(td),qa.exports=td}),Tu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="operator"}};Ja.registerWalker(td),qa.exports=td}),Cu=y
`,Td+2);Id=pf!==-1?pf-1:yd}qd=_d.slice(Td,Id+1),Ld=qd.split(`
`),Pd=Ld.length-1,Pd>0?(Yd=Ed+Pd,Ud=Id-Ld[Pd].length):(Yd=Ed,Ud=gd),ud.push(["comment",qd,Ed,Td-gd,Yd,Id-Ud,Td]),gd=Ud,Ed=Yd,Td=Id}else if(Nd===35&&!rd.test(_d.slice(Td+1,Td+2)))Id=Td+1,ud.push(["#",_d.slice(Td,Id),Ed,Td-gd,Ed,Id-gd,Td]),Td=Id-1;else if((Nd===117||Nd===85)&&_d.charCodeAt(Td+1)===43){Id=Td+2;do Id+=1,Nd=_d.charCodeAt(Id);while(Id<yd&&sd.test(_d.slice(Id,Id+1)));ud.push(["unicoderange",_d.slice(Td,Id),Ed,Td-gd,Ed,Id-gd,Td]),Td=Id-1}else if(Nd===47)Id=Td+1,ud.push(["operator",_d.slice(Td,Id),Ed,Td-gd,Ed,Id-gd,Td]),Td=Id-1;else{let pf=ed;if(Nd>=48&&Nd<=57&&(pf=td),pf.lastIndex=Td+1,pf.test(_d),pf.lastIndex===0?Id=_d.length-1:Id=pf.lastIndex-2,pf===td||Nd===46){let Xd=_d.charCodeAt(Id),hf=_d.charCodeAt(Id+1),mf=_d.charCodeAt(Id+2);(Xd===101||Xd===69)&&(hf===45||hf===43)&&mf>=48&&mf<=57&&(td.lastIndex=Id+2,td.test(_d),td.lastIndex===0?Id=_d.length-1:Id=td.lastIndex-2)}ud.push(["word",_d.slice(Td,Id+1),Ed,Td-gd,Ed,Id-gd,Td]),Td=Id}break}Td++}return ud}}),$u=y((Ra,qa)=>{var Ja=class extends Error{constructor(ed){super(ed),this.name=this.constructor.name,this.message=ed||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(ed).stack}};qa.exports=Ja}),Vu=y((Ra,qa)=>{var Ja=uu$1(),ed=cu(),td=hu(),rd=mu(),sd=wu(),od=vu(),ld=_u(),cd=Eu(),ud=Tu(),_d=Cu(),yd=Nu(),gd=Ru(),Ed=qu$1(),Td=Uu(),kd=qs(),Rd=Ls(),Nd=Ds(),Id=$u();function Md(Ld){return Ld.sort((Pd,qd)=>Pd-qd)}qa.exports=class{constructor(Ld,Pd){let qd={loose:!1};this.cache=[],this.input=Ld,this.options=Object.assign({},qd,Pd),this.position=0,this.unbalanced=0,this.root=new Ja;let Yd=new ed;this.root.append(Yd),this.current=Yd,this.tokens=Td(Ld,this.options)}parse(){return this.loop()}colon(){let Ld=this.currToken;this.newNode(new rd({value:Ld[1],source:{start:{line:Ld[2],column:Ld[3]},end:{line:Ld[4],column:Ld[5]}},sourceIndex:Ld[6]})),this.position++}comma(){let Ld=this.currToken;this.newNode(new sd({value:Ld[1],source:{start:{line:Ld[2],column:Ld[3]},end:{line:Ld[4],column:Ld[5]}},sourceIndex:Ld[6]})),this.position++}comment(){let Ld=!1,Pd=this.currToken[1].replace(/\/\*|\*\//g,""),qd;this.options.loose&&Pd.startsWith("//")&&(Pd=Pd.substring(2),Ld=!0),qd=new od({value:Pd,inline:Ld,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(qd),this.position++}error(Ld,Pd){throw new Id(Ld+` at line: ${Pd[2]}, column ${Pd[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let Ld=this.currToken[1],Pd;if(Ld==="+"||Ld==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return Pd=new ud({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(Pd)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operato
Expected it to be 'string' or 'object'.`;if(Ve(Ra))throw new Error("doc is valid.");let Ja=Object.prototype.toString.call(Ra);if(Ja!=="[object Object]")return`Unexpected doc '${Ja}'.`;let ed=ml([...bt].map(td=>`'${td}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${ed}.`}var Fr=class extends Error{constructor(qa){super(yl(qa));n1(this,"name","InvalidDocError");this.doc=qa}},$r=Fr,Zs=()=>{},_t=Zs;function q(Ra){return{type:we,contents:Ra}}function en(Ra,qa){return{type:ge,contents:qa,n:Ra}}function L(Ra,qa={}){return _t(qa.expandedStates),{type:ve,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function tn(Ra){return en({type:"root"},Ra)}function ue(Ra){return en(-1,Ra)}function Ge(Ra){return{type:xe$1,parts:Ra}}function kt(Ra,qa="",Ja={}){return{type:oe,breakContents:Ra,flatContents:qa,groupId:Ja.groupId}}var je$1={type:be$1},wl$1={type:K,hard:!0},A={type:K},M={type:K,soft:!0},E=[wl$1,je$1];function V(Ra,qa){let Ja=[];for(let ed=0;ed<qa.length;ed++)ed!==0&&Ja.push(Ra),Ja.push(qa[ed]);return Ja}var gl=(Ra,qa,Ja)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[Ja<0?qa.length+Ja:Ja]:qa.at(Ja)},G=gl;function vl(Ra,qa){if(typeof Ra=="string")return qa(Ra);let Ja=new Map;return ed(Ra);function ed(rd){if(Ja.has(rd))return Ja.get(rd);let sd=td(rd);return Ja.set(rd,sd),sd}function td(rd){switch(Ve(rd)){case Be:return qa(rd.map(ed));case xe$1:return qa({...rd,parts:rd.parts.map(ed)});case oe:return qa({...rd,breakContents:ed(rd.breakContents),flatContents:ed(rd.flatContents)});case ve:{let{expandedStates:sd,contents:od}=rd;return sd?(sd=sd.map(ed),od=sd[0]):od=ed(od),qa({...rd,contents:od,expandedStates:sd})}case ge:case we:case $e$1:case ze:case We:return qa({...rd,contents:ed(rd.contents)});case Me$1:case Ue:case Fe:case Ye:case K:case be$1:return qa(rd);default:throw new $r(rd)}}}function xl$1(Ra){return Ra.type===K&&!Ra.hard?Ra.soft?"":" ":Ra.type===oe?Ra.flatContents:Ra}function rn(Ra){return vl(Ra,xl$1)}function bl(Ra){return Array.isArray(Ra)&&Ra.length>0}var ee=bl,Et="'",sn='"';function _l(Ra,qa){let Ja=qa===!0||qa===Et?Et:sn,ed=Ja===Et?sn:Et,td=0,rd=0;for(let sd of Ra)sd===Ja?td++:sd===ed&&rd++;return td>rd?ed:Ja}var nn=_l;function kl(Ra,qa,Ja){let ed=qa==='"'?"'":'"',td=_$1(!1,Ra,/\\(.)|(["'])/gsu,(rd,sd,od)=>sd===ed?sd:od===qa?"\\"+od:od||(Ja&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(sd)?sd:"\\"+sd));return qa+td+qa}var on=kl;function El$1(Ra,qa){let Ja=Ra.slice(1,-1),ed=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":nn(Ja,qa.singleQuote);return on(Ja,ed,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var St=El$1,Wr=class extends Error{constructor(qa,Ja,ed="type"){super(`Unexpected ${Ja} node ${ed}: ${JSON.stringify(qa[ed])}.`);n1(this,"name","UnexpectedNodeError");this.node=qa}},an=Wr;function Sl$1(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var _e=Sl$1,Tl$1=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function un(Ra,qa,Ja){if(_e(Ra)&&Ra.language==="yaml"&&delete qa.value,Ra.type==="css-comment"&&Ja.type==="css-root"&&Ja.nodes.length>0&&((Ja.nodes[0]===Ra||_e(Ja.nodes[0])&&Ja.nodes[1]===Ra)&&(delete qa.text,/^\*\s*@(?:format|prettier)\s*$/u.test(Ra.text))||Ja.type==="css-root"&&G(!1,Ja.nodes,-1)===Ra))return null;if(Ra.type==="value-root"&&delete qa.text,(Ra.type==="media-query"||Ra.type==="media-query-list"||Ra.type==="media-feature-expression")&&delete qa.value,Ra.type==="css-rule"&&delete qa.params,(Ra.type==="media-feature"||Ra.type==="media-keyword"||Ra.type==="media-type"||Ra.type==="media-unknown"||Ra.type==="media-url"||Ra.type==="media-value"||Ra.type==="selector-attribute"||Ra.type==="selector-string"||Ra.type==="selector-class"||Ra.type==="selector-combinator"||Ra.type==="value-string")&&Ra.value&&(qa.value=Ol$1(Ra.value)),Ra.type==="selector-combinator"&&(qa.value=_$1(!1,qa.value,/\s+/gu," ")),Ra.type==="media-feature"&&(qa.value=_$1(!1,qa.value," ","")),(Ra.type==="value-word"&&(Ra.isColor&&Ra.isHex||["initial","inherit","unset","revert"].includes(Ra.value.toLowerCase()))||Ra.type==="media-feature"||Ra.type==="selector-root-invalid"||Ra.type==="selector-pseudo")&&(qa.value=qa.value.toLowerCase()),Ra.type==="css-decl"
`,Ja)+1;return Ja+Ra.column}var zr=Il$1;function Tt$1(Ra){return(qa,Ja,ed)=>{let td=!!(ed!=null&&ed.backwards);if(Ja===!1)return!1;let{length:rd}=qa,sd=Ja;for(;sd>=0&&sd<rd;){let od=qa.charAt(sd);if(Ra instanceof RegExp){if(!Ra.test(od))return sd}else if(!Ra.includes(od))return sd;td?sd--:sd++}return sd===-1||sd===rd?sd:!1}}var Ot$1=Tt$1(" "),yn=Tt$1(",; "),Ct=Tt$1(/[^\n\r]/u);function wn$1(Ra,qa){var Ja,ed,td;if(typeof((ed=(Ja=Ra.source)==null?void 0:Ja.start)==null?void 0:ed.offset)=="number")return Ra.source.start.offset;if(typeof Ra.sourceIndex=="number")return Ra.sourceIndex;if((td=Ra.source)!=null&&td.start)return zr(Ra.source.start,qa);throw Object.assign(new Error("Can not locate node."),{node:Ra})}function Vr(Ra,qa){var Ja,ed;if(Ra.type==="css-comment"&&Ra.inline)return Ct(qa,Ra.source.startOffset);if(typeof((ed=(Ja=Ra.source)==null?void 0:Ja.end)==null?void 0:ed.offset)=="number")return Ra.source.end.offset;if(Ra.source){if(Ra.source.end)return zr(Ra.source.end,qa);if(ee(Ra.nodes))return Vr(G(!1,Ra.nodes,-1),qa)}return null}function Gr(Ra,qa){Ra.source&&(Ra.source.startOffset=wn$1(Ra,qa),Ra.source.endOffset=Vr(Ra,qa));for(let Ja in Ra){let ed=Ra[Ja];Ja==="source"||!ed||typeof ed!="object"||(ed.type==="value-root"||ed.type==="value-unknown"?gn$1(ed,ql$1(Ra),ed.text||ed.value):Gr(ed,qa))}}function gn$1(Ra,qa,Ja){Ra.source&&(Ra.source.startOffset=wn$1(Ra,Ja)+qa,Ra.source.endOffset=Vr(Ra,Ja)+qa);for(let ed in Ra){let td=Ra[ed];ed==="source"||!td||typeof td!="object"||gn$1(td,qa,Ja)}}function ql$1(Ra){var qa;let Ja=Ra.source.startOffset;return typeof Ra.prop=="string"&&(Ja+=Ra.prop.length),Ra.type==="css-atrule"&&typeof Ra.name=="string"&&(Ja+=1+Ra.name.length+Ra.raws.afterName.match(/^\s*:?\s*/u)[0].length),Ra.type!=="css-atrule"&&typeof((qa=Ra.raws)==null?void 0:qa.between)=="string"&&(Ja+=Ra.raws.between.length),Ja}function vn(Ra){let qa="initial",Ja="initial",ed,td=!1,rd=[];for(let sd=0;sd<Ra.length;sd++){let od=Ra[sd];switch(qa){case"initial":if(od==="'"){qa="single-quotes";continue}if(od==='"'){qa="double-quotes";continue}if((od==="u"||od==="U")&&Ra.slice(sd,sd+4).toLowerCase()==="url("){qa="url",sd+=3;continue}if(od==="*"&&Ra[sd-1]==="/"){qa="comment-block";continue}if(od==="/"&&Ra[sd-1]==="/"){qa="comment-inline",ed=sd-1;continue}continue;case"single-quotes":if(od==="'"&&Ra[sd-1]!=="\\"&&(qa=Ja,Ja="initial"),od===`
`||od==="\r")return Ra;continue;case"double-quotes":if(od==='"'&&Ra[sd-1]!=="\\"&&(qa=Ja,Ja="initial"),od===`
`||od==="\r")return Ra;continue;case"url":if(od===")"&&(qa="initial"),od===`
`||od==="\r")return Ra;if(od==="'"){qa="single-quotes",Ja="url";continue}if(od==='"'){qa="double-quotes",Ja="url";continue}continue;case"comment-block":od==="/"&&Ra[sd-1]==="*"&&(qa="initial");continue;case"comment-inline":(od==='"'||od==="'"||od==="*")&&(td=!0),(od===`
`||od==="\r")&&(td&&rd.push([ed,sd]),qa="initial",td=!1);continue}}for(let[sd,od]of rd)Ra=Ra.slice(0,sd)+_$1(!1,Ra.slice(sd,od),/["'*]/gu," ")+Ra.slice(od);return Ra}function N(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.startOffset}function P(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.endOffset}var Ll$1=/\*\/$/,Dl=/^\/\*\*?/,kn=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ml=/(^|\s+)\/\/([^\n\r]*)/g,xn=/^(\r?\n)+/,Bl=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,bn$1=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Ul=/(\r?\n|^) *\* ?/g,En=[];function Sn(Ra){let qa=Ra.match(kn);return qa?qa[0].trimStart():""}function Tn$1(Ra){let qa=Ra.match(kn),Ja=qa==null?void 0:qa[0];return Ja==null?Ra:Ra.slice(Ja.length)}function On(Ra){let qa=`
`;Ra=_$1(!1,Ra.replace(Dl,"").replace(Ll$1,""),Ul,"$1");let Ja="";for(;Ja!==Ra;)Ja=Ra,Ra=_$1(!1,Ra,Bl,`${qa}$1 $2${qa}`);Ra=Ra.replace(xn,"").trimEnd();let ed=Object.create(null),td=_$1(!1,Ra,bn$1,"").replace(xn,"").trimEnd(),rd;for(;rd=bn$1.exec(Ra);){let sd=_$1(!1,rd[2],Ml,"");if(typeof ed[rd[1]]=="string"||Array.isArray(ed[rd[1]])){let od=ed[rd[1]];ed[rd[1]]=[...En,...Array.isArray(od)?od:[od],sd]}else ed[rd[1]]=sd}return{comments:td,pragmas:ed}}function Cn$1({comments:Ra="",pragmas:qa={}}){let Ja=`
`,ed="/**",td=" *",rd=" */",sd=Object.keys(qa),od=sd.flatMap(cd=>_n$1(cd,qa[cd])).map(cd=>`${td} ${cd}${Ja}`).join("");if(!Ra){if(sd.length===0)return"";if(sd.length===1&&!Array.isArray(qa[sd[0]])){let cd=qa[sd[0]];return`${ed} ${_n$1(sd[0],cd)[0]}${rd}`}}let ld=Ra.split(Ja).map(cd=>`${td} ${cd}`).join(Ja)+Ja;return ed+Ja+(Ra?ld:"")+(Ra&&sd.length>0?td+Ja:"")+od+rd}function _n$1(Ra,qa){return[...En,...Array.isArray(qa)?qa:[qa]].map(Ja=>`@${Ra} ${Ja}`.trim())}function Fl$1(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var An=Fl$1;function Nn(Ra){let qa=An(Ra);qa&&(Ra=Ra.slice(qa.length+1));let Ja=Sn(Ra),{pragmas:ed,comments:td}=On(Ja);return{shebang:qa,text:Ra,pragmas:ed,comments:td}}function Pn$1(Ra){let{pragmas:qa}=Nn(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function Rn(Ra){let{shebang:qa,text:Ja,pragmas:ed,comments:td}=Nn(Ra),rd=Tn$1(Ja),sd=Cn$1({pragmas:{format:"",...ed},comments:td.trimStart()});return(qa?`${qa}
`:"")+sd+(rd.startsWith(`
`)?`
`:`
`)+rd}var Qe=3;function $l(Ra){let qa=Ra.slice(0,Qe);if(qa!=="---"&&qa!=="+++")return;let Ja=Ra.indexOf(`
`,Qe);if(Ja===-1)return;let ed=Ra.slice(Qe,Ja).trim(),td=Ra.indexOf(`
${qa}`,Ja),rd=ed;if(rd||(rd=qa==="+++"?"toml":"yaml"),td===-1&&qa==="---"&&rd==="yaml"&&(td=Ra.indexOf(`
...`,Ja)),td===-1)return;let sd=td+1+Qe,od=Ra.charAt(sd+1);if(!/\s?/u.test(od))return;let ld=Ra.slice(0,sd);return{type:"front-matter",language:rd,explicitLanguage:ed,value:Ra.slice(Ja+1,td),startDelimiter:qa,endDelimiter:ld.slice(-Qe),raw:ld}}function Wl(Ra){let qa=$l(Ra);if(!qa)return{content:Ra};let{raw:Ja}=qa;return{frontMatter:qa,content:_$1(!1,Ja,/[^\n]/gu," ")+Ra.slice(Ja.length)}}var Je=Wl;function In(Ra){return Pn$1(Je(Ra).content)}function qn$1(Ra){let{frontMatter:qa,content:Ja}=Je(Ra);return(qa?qa.raw+`
`:"")+Rn(Ja)}var Yl=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Ln(Ra){var qa,Ja;return(Ja=(qa=Ra.findAncestor(ed=>ed.type==="css-decl"))==null?void 0:qa.prop)==null?void 0:Ja.toLowerCase()}var zl$1=new Set(["initial","inherit","unset","revert"]);function Dn$1(Ra){return zl$1.has(Ra.toLowerCase())}function Mn(Ra,qa){var Ja;let ed=Ra.findAncestor(td=>td.type==="css-atrule");return((Ja=ed==null?void 0:ed.name)==null?void 0:Ja.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(qa.toLowerCase())}function te(Ra){return Ra.includes("$")||Ra.includes("@")||Ra.includes("#")||Ra.startsWith("%")||Ra.startsWith("--")||Ra.startsWith(":--")||Ra.includes("(")&&Ra.includes(")")?Ra:Ra.toLowerCase()}function ke$1(Ra,qa){var Ja;let ed=Ra.findAncestor(td=>td.type==="value-func");return((Ja=ed==null?void 0:ed.value)==null?void 0:Ja.toLowerCase())===qa}function Bn$1(Ra){var qa;let Ja=Ra.findAncestor(td=>td.type==="css-rule"),ed=(qa=Ja==null?void 0:Ja.raws)==null?void 0:qa.selector;return ed&&(ed.startsWith(":import")||ed.startsWith(":export"))}function Ee(Ra,qa){let Ja=Array.isArray(qa)?qa:[qa],ed=Ra.findAncestor(td=>td.type==="css-atrule");return ed&&Ja.includes(ed.name.toLowerCase())}function Un(Ra){var qa;let{node:Ja}=Ra;return Ja.groups[0].value==="url"&&Ja.groups.length===2&&((qa=Ra.findAncestor(ed=>ed.type==="css-atrule"))==null?void 0:qa.name)==="import"}function Fn(Ra){return Ra.type==="value-func"&&Ra.value.toLowerCase()==="url"}function $n$1(Ra){return Ra.type==="value-func"&&Ra.value.toLowerCase()==="var"}function Wn(Ra){let{selector:qa}=Ra;return qa?typeof qa=="string"&&/^@.+:.*$/u.test(qa)||qa.value&&/^@.+:.*$/u.test(qa.value):!1}function Yn$1(Ra){return Ra.type==="value-word"&&["from","through","end"].includes(Ra.value)}function zn(Ra){return Ra.type==="value-word"&&["and","or","not"].includes(Ra.value)}function Vn(Ra){return Ra.type==="value-word"&&Ra.value==="in"}function At$1(Ra){return Ra.type==="value-operator"&&Ra.value==="*"}function Xe(Ra){return Ra.type==="value-operator"&&Ra.value==="/"}function Q$1(Ra){return Ra.type==="value-operator"&&Ra.value==="+"}function le(Ra){return Ra.type==="value-operator"&&Ra.value==="-"}function Vl(Ra){return Ra.type==="value-operator"&&Ra.value==="%"}function Nt(Ra){return At$1(Ra)||Xe(Ra)||Q$1(Ra)||le(Ra)||Vl(Ra)}function Gn$1(Ra){return Ra.type==="value-word"&&["==","!="].includes(Ra.value)}function jn$1(Ra){return Ra.type==="value-word"&&["<",">","<=",">="].includes(Ra.value)}function Ze(Ra,qa){return qa.parser==="scss"&&Ra.type==="css-atrule"&&["if","else","for","each","while"].includes(Ra.name)}function Hr(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.params)&&/^\(\s*\)$/u.test(Ra.raws.params)}function Pt(Ra){return Ra.name.startsWith("prettier-placeholder")}function Hn(Ra){return Ra.prop.startsWith("@prettier-placeholder")}function Kn(Ra,qa){return Ra.value==="$$"&&Ra.type==="value-func"&&(qa==null?void 0:qa.type)==="value-word"&&!qa.raws.before}function Qn$1(Ra){var qa,Ja;return((qa=Ra.value)==null?void 0:qa.type)==="value-root"&&((Ja=Ra.value.group)==null?void 0:Ja.type)==="value-value"&&Ra.prop.toLowerCase()==="composes"}function Jn$1(Ra){var qa,Ja,ed;return((ed=(Ja=(qa=Ra.value)==null?void 0:qa.group)==null?void 0:Ja.group)==null?void 0:ed.type)==="value-paren_group"&&Ra.value.group.group.open!==null&&Ra.value.group.group.close!==null}function ce(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.before)===""}function Rt$1(Ra){var qa,Ja;return Ra.type==="value-comma_group"&&((Ja=(qa=Ra.groups)==null?void 0:qa[1])==null?void 0:Ja.type)==="value-colon"}function jr(Ra){var qa;return Ra.type==="value-paren_group"&&((qa=Ra.groups)==null?void 0:qa[0])&&Rt$1(Ra.groups[0])}function Kr(Ra,qa){var Ja;if(qa.parser!=="scss")return!1;let{node:ed}=Ra;if(ed.groups.length===0)return!1;let td=Ra.grandparent;if(!jr(ed)&&!(td&&jr(td)))return!1;let rd=Ra.findAncestor(sd=>sd.type==="css-decl");return!!((Ja=rd==null?void 0:rd.prop)!=n
`)return qa-2;if(td===`
`||td==="\r"||td==="\u2028"||td==="\u2029")return qa-1}else{if(td==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(td===`
`||td==="\r"||td==="\u2028"||td==="\u2029")return qa+1}return qa}var Dt$1=Xl$1;function Zl(Ra,qa,Ja={}){let ed=Ot$1(Ra,Ja.backwards?qa-1:qa,Ja),td=Dt$1(Ra,ed,Ja);return ed!==td}var Mt=Zl;function ec$1(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let Ja=qa+2;Ja<Ra.length;++Ja)if(Ra.charAt(Ja)==="*"&&Ra.charAt(Ja+1)==="/")return Ja+2}return qa}var ui=ec$1;function tc(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?Ct(Ra,qa):qa}var li$1=tc;function rc(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=yn(Ra,ed),ed=ui(Ra,ed),ed=Ot$1(Ra,ed);return ed=li$1(Ra,ed),ed=Dt$1(Ra,ed),ed!==!1&&Mt(Ra,ed)}var Bt$1=rc;function sc({node:Ra,parent:qa},Ja){return!!(Ra.source&&Ja.originalText.slice(N(Ra),N(qa.close)).trimEnd().endsWith(","))}function nc$1(Ra,qa){return $n$1(Ra.grandparent)&&sc(Ra,qa)?",":Ra.node.type!=="value-comment"&&!(Ra.node.type==="value-comma_group"&&Ra.node.groups.every(Ja=>Ja.type==="value-comment"))&&ai$1(qa)&&Ra.callParent(()=>Kr(Ra,qa))?kt(","):""}function ci(Ra,qa,Ja){let{node:ed,parent:td}=Ra,rd=Ra.map(({node:gd})=>typeof gd=="string"?gd:Ja(),"groups");if(td&&Fn(td)&&(ed.groups.length===1||ed.groups.length>0&&ed.groups[0].type==="value-comma_group"&&ed.groups[0].groups.length>0&&ed.groups[0].groups[0].type==="value-word"&&ed.groups[0].groups[0].value.startsWith("data:")))return[ed.open?Ja("open"):"",V(",",rd),ed.close?Ja("close"):""];if(!ed.open){let gd=es(Ra),Ed=V([",",gd?E:A],rd);return q(gd?[E,Ed]:L(Ge(Ed)))}let sd=Ra.map(({node:gd,isLast:Ed,index:Td})=>{var kd;let Rd=rd[Td];if(Rt$1(gd)&&gd.type==="value-comma_group"&&gd.groups&&gd.groups[0].type!=="value-paren_group"&&((kd=gd.groups[2])==null?void 0:kd.type)==="value-paren_group"){let{parts:Id}=Rd.contents.contents;Id[1]=L(Id[1]),Rd=L(ue(Rd))}let Nd=[Rd,Ed?nc$1(Ra,qa):","];if(!Ed&&gd.type==="value-comma_group"&&ee(gd.groups)){let Id=G(!1,gd.groups,-1);!Id.source&&Id.close&&(Id=Id.close),Id.source&&Bt$1(qa.originalText,P(Id))&&Nd.push(E)}return Nd},"groups"),od=Xn$1(ed,td),ld=ti$1(ed,td),cd=Kr(Ra,qa),ud=ld||cd&&!od,_d=ld||od,yd=L([ed.open?Ja("open"):"",q([M,V(A,sd)]),M,ed.close?Ja("close"):""],{shouldBreak:ud});return _d?ue(yd):yd}function es(Ra){return Ra.match(qa=>qa.type==="value-paren_group"&&!qa.open&&qa.groups.some(Ja=>Ja.type==="value-comma_group"),(qa,Ja)=>Ja==="group"&&qa.type==="value-value",(qa,Ja)=>Ja==="group"&&qa.type==="value-root",(qa,Ja)=>Ja==="value"&&(qa.type==="css-decl"&&!qa.prop.startsWith("--")||qa.type==="css-atrule"&&qa.variable))}function ic(Ra,qa,Ja){let ed=[];return Ra.each(()=>{let{node:td,previous:rd}=Ra;if((rd==null?void 0:rd.type)==="css-comment"&&rd.text.trim()==="prettier-ignore"?ed.push(qa.originalText.slice(N(td),P(td))):ed.push(Ja()),Ra.isLast)return;let{next:sd}=Ra;sd.type==="css-comment"&&!Mt(qa.originalText,N(sd),{backwards:!0})&&!_e(td)||sd.type==="css-atrule"&&sd.name==="else"&&td.type!=="css-comment"?ed.push(" "):(ed.push(qa.__isHTMLStyleAttribute?A:E),Bt$1(qa.originalText,P(td))&&!_e(td)&&ed.push(E))},"nodes"),ed}var Te=ic;function oc$1(Ra,qa,Ja){var ed,td,rd,sd,od,ld;let{node:cd}=Ra;switch(cd.type){case"front-matter":return[cd.raw,E];case"css-root":{let ud=Te(Ra,qa,Ja),_d=cd.raws.after.trim();return _d.startsWith(";")&&(_d=_d.slice(1).trim()),[cd.frontMatter?[Ja("frontMatter"),E]:"",ud,_d?` ${_d}`:"",cd.nodes.length>0?E:""]}case"css-comment":{let ud=cd.inline||cd.raws.inline,_d=qa.originalText.slice(N(cd),P(cd));return ud?_d.trimEnd():_d}case"css-rule":return[Ja("selector"),cd.important?" !important":"",cd.nodes?[((ed=cd.selector)==null?void 0:ed.type)==="selector-unknown"&&Se(cd.selector.value)?A:cd.selector?" ":"","{",cd.nodes.length>0?q([E,Te(Ra,qa,Ja)]):"",E,"}",Wn(cd)?";":""]:";"];case"css-decl":{let ud=Ra.parent,{between:_d}=cd.raws,yd=_d.trim(),gd=yd===":",Ed=typeof cd.value=="string"&&/^ *$/u.test(cd.value),Td=typeof cd.value=="string"?cd.value:Ja("value");return Td=Qn$1(cd)?rn(Td):Td,!gd&&Se(yd)&&!((rd=(td=cd.value)==null?void 0:td.group)!=null&&rd.group&&Ra.call(()=>es(Ra),"value","group","group"))&&(Td=q([E,ue(Td)])),[_$1(!1,cd.raws.before,/[\s;]/gu,"")
`}return ed}function toBase64(Ra){return new Promise((qa,Ja)=>{const ed=new FileReader;ed.readAsDataURL(Ra),ed.onload=()=>qa(ed.result.split(",").pop()),ed.onerror=td=>Ja(td)})}function checkImage(Ra){if(!/\.(?:gif|jpe?g|png)$/i.test(Ra.name))return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const Ja=10;return Ra.size>Ja*1024*1024?{ok:!1,msg:`由于公众号限制图片大小不能超过 ${Ja}M`}:{ok:!0}}function removeLeft(Ra){const qa=Ra.split(`
`),Ja=qa.filter(ed=>ed.trim()).map(ed=>ed.match(/(^\s+)?/)[0].length).sort((ed,td)=>ed-td)[0];return qa.map(ed=>ed.slice(Ja)).join(`
`)}function solveWeChatImage(){const qa=document.getElementById("output").getElementsByTagName("img");for(let Ja=0;Ja<qa.length;Ja++){const ed=qa[Ja],td=ed.getAttribute("width"),rd=ed.getAttribute("height");ed.removeAttribute("width"),ed.removeAttribute("height"),ed.style.width=td,ed.style.height=rd}}function mergeCss(Ra){return juice(Ra,{inlinePseudoElements:!0,preserveImportant:!0})}const useStore=defineStore("store",()=>{const Ra=useDark(),qa=useToggle(Ra),Ja=useStorage("isMacCodeBlock",!0),ed=useToggle(Ja),td=useStorage("isEditOnLeft",!0),rd=useToggle(td),sd=useStorage("isCiteStatus",!1),od=useToggle(sd),ld=ref$1(""),cd=useStorage(addPrefix("theme"),themeOptions[0].value),ud=useStorage("fonts",fontFamilyOptions[0].value),_d=useStorage("size",fontSizeOptions[2].value),yd=useStorage("color",colorOptions[0].value),gd=useStorage("codeBlockTheme",codeBlockThemeOptions[23].value),Ed=useStorage("legend",legendOptions[3].value),Td=_d.value.replace("px",""),kd=initRenderer({theme:customizeTheme(themeMap[cd.value],{fontSize:Td,color:yd.value}),fonts:ud.value,size:_d.value}),Rd=ref$1(null),Nd=useStorage("__editor_content",DEFAULT_CONTENT),Id=()=>{formatDoc(Rd.value.getValue()).then(Tf=>{Nd.value=Tf,Rd.value.setValue(Tf)})},Md=()=>{const Tf=gd.value,Af=document.querySelector("#hljs");if(Af)Af.setAttribute("href",Tf);else{const Pf=document.createElement("link");Pf.setAttribute("type","text/css"),Pf.setAttribute("rel","stylesheet"),Pf.setAttribute("href",Tf),Pf.setAttribute("id","hljs"),document.head.appendChild(Pf)}},Ld=()=>{Md(),kd.reset({status:sd.value,legend:Ed.value});let Tf=marked$1.parse(Rd.value.getValue(0));Tf=Tf.replace(/(style=".*?)"/,'$1;margin-top: 0"'),sd.value&&(Tf+=kd.buildFootnotes(),Tf+=kd.buildAddition()),Ja.value&&(Tf+=`
<style>
.hljs.code__pre::before {
position: initial;
padding: initial;
content: '';
display: block;
height: 25px;
background-color: transparent;
background-image: url("https://doocs.oss-cn-shenzhen.aliyuncs.com/img/123.svg");
background-position: 14px 10px!important;
background-repeat: no-repeat;
background-size: 40px!important;
}
.hljs.code__pre {
padding: 0!important;
}
.hljs.code__pre code {
display: -webkit-box;
padding: 0.5em 1em 1em;
overflow-x: auto;
text-indent: 0;
}
</style>
`),ld.value=Tf},Pd=ref$1(null),qd=Tf=>{Pd.value.setValue(Tf)},Yd=useStorage("__css_content",DEFAULT_CSS_CONTENT),Ud=useStorage(addPrefix("css_content_config"),{active:"方案1",tabs:[{title:"方案1",name:"方案1",content:Yd.value||DEFAULT_CSS_CONTENT}]});onMounted(()=>{Yd.value=""});const Hd=()=>Ud.value.tabs.find(Tf=>Tf.name===Ud.value.active),Vd=Tf=>{Ud.value.active=Tf;const Af=Ud.value.tabs.find(Pf=>Pf.name===Tf).content;qd(Af)},Jd=Tf=>{const Af=Hd();Af.title=Tf,Af.name=Tf,Ud.value.active=Tf},Zd=Tf=>{Ud.value.tabs.push({name:Tf,title:Tf,content:DEFAULT_CSS_CONTENT}),Ud.value.active=Tf,qd(DEFAULT_CSS_CONTENT)},pf=Tf=>Ud.value.tabs.every(({name:Af})=>Af!==Tf),Xd=()=>{const Tf=css2json(Pd.value.getValue()),Af=customCssWithTemplate(Tf,yd.value,customizeTheme(themeMap[cd.value],{fontSize:Td,color:yd.value}));kd.setOptions({theme:Af}),Ld()};onMounted(()=>{const Tf=document.querySelector("#cssEditor");Tf.value=Hd().content,Pd.value=markRaw(CodeMirror.fromTextArea(Tf,{mode:"css",theme:"style-mirror",lineNumbers:!1,lineWrapping:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Pf){formatDoc(Pf.getValue(),"css").then(gh=>{Hd().content=gh,Pf.setValue(gh)})}}})),Pd.value.on("keyup",(Af,Pf)=>{(Pf.keyCode>=65&&Pf.keyCode<=90||Pf.keyCode===189)&&Af.showHint(Pf)}),Pd.value.on("update",()=>{Xd(),Hd().content=Pd.value.getValue()})});const hf=()=>{sd.value=!1,Ja.value=!0,cd.value=themeOptions[0].value,ud.value=fontFamilyOptions[0].value,ud.value=fontFamilyOptions[0].value,_d.value=fontSizeOptions[2].value,yd.value=colorOptions[0].value,gd.value=codeBlockThemeOptions[2].value,Ed.value=legendOptions[3].value,Ud.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Yd.value||DEFAULT_CSS_CONTENT}]},Pd.value.setValue(DEFAULT_CSS_CONTENT),Xd(),Ld()},mf=Tf=>(...Af)=>{Tf(...Af),Ld()},xf=(Tf,Af)=>{const Pf=themeMap[cd.value],gh=Tf.replace("px","");return customizeTheme(Pf,{fontSize:gh,color:Af})},Lf=mf(Tf=>{kd.setOptions({theme:customizeTheme(themeMap[Tf],{fontSize:Td,color:yd.value})}),cd.value=Tf}),Wf=mf(Tf=>{kd.setOptions({fonts:Tf}),ud.value=Tf}),Yf=mf(Tf=>{const Af=xf(Tf,yd.value);kd.setOptions({size:Tf,theme:Af}),_d.value=Tf}),If=mf(Tf=>{const Af=xf(_d.value,Tf);kd.setOptions({theme:Af}),yd.value=Tf}),Sf=mf(Tf=>{gd.value=Tf}),wf=mf(Tf=>{Ed.value=Tf}),Kf=mf(()=>{ed()}),qf=mf(()=>{od()}),gf=()=>{exportHTML(),document.querySelector("#output").innerHTML=ld.value},_f=()=>{downloadMD(Rd.value.getValue())},$f=()=>{const Tf=document.body,Af=document.createElement("input");Af.type="file",Af.name="filename",Af.accept=".md",Af.onchange=()=>{const Pf=Af.files[0];if(!Pf)return;const gh=new FileReader;gh.readAsText(Pf),gh.onload=Nh=>{Rd.value.setValue(Nh.target.result),ElMessage.success("文档导入成功")}},Tf.appendChild(Af),Af.click(),Tf.removeChild(Af)},zf=()=>{ElMessageBox.confirm("此操作将丢失本地自定义样式,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{hf(),ElMessage({type:"success",message:"样式重置成功~"})}).catch(()=>{Rd.value.focus()})},hh=ref$1(!1),Vf=useToggle(hh),kf=ref$1(!1),Jf=useToggle(kf),Ch=ref$1(!1),Gf=useToggle(Ch);return{isShowCssEditor:hh,toggleShowCssEditor:Vf,isShowInsertFormDialog:kf,toggleShowInsertFormDialog:Jf,isShowUploadImgDialog:Ch,toggleShowUploadImgDialog:Gf,isDark:Ra,toggleDark:qa,isEditOnLeft:td,toggleEditOnLeft:rd,isMacCodeBlock:Ja,isCiteStatus:sd,citeStatusChanged:qf,output:ld,editor:Rd,cssEditor:Pd,theme:cd,fontFamily:ud,fontSize:_d,fontColor:yd,codeBlockTheme:gd,legend:Ed,editorRefresh:Ld,themeChanged:Lf,fontChanged:Wf,sizeChanged:Yf,colorChanged:If,codeBlockThemeChanged:Sf,legendChanged:wf,macCodeBlockChanged:Kf,formatContent:Id,exportEditorContent2HTML:gf,exportEditorContent2MD:_f,importMarkdownContent:$f,resetStyleConfirm:zf,editorContent:Nd,cssContentConfig:Ud,addCssContentTab:Zd,validatorTabName:pf,setCssEditorValue:qd,tabChanged:Vd,renameTab:Jd}}),Store=createPinia(),ElementPlus={install(Ra){Ra.config.globalProperties.$loading=ElLoading.service,Ra.config.glob
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(ed){var td=Ja,rd=td.lib,sd=rd.WordArray,od=rd.Hasher,ld=td.algo,cd=sd.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),ud=sd.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),_d=sd.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),yd=sd.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),gd=sd.create([0,1518500249,1859775393,2400959708,2840853838]),Ed=sd.create([1352829926,1548603684,1836072691,2053994217,0]),Td=ld.RIPEMD160=od.extend({_doReset:function(){this._hash=sd.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Pd,qd){for(var Yd=0;Yd<16;Yd++){var Ud=qd+Yd,Hd=Pd[Ud];Pd[Ud]=(Hd<<8|Hd>>>24)&16711935|(Hd<<24|Hd>>>8)&4278255360}var Vd=this._hash.words,Jd=gd.words,Zd=Ed.words,pf=cd.words,Xd=ud.words,hf=_d.words,mf=yd.words,xf,Lf,Wf,Yf,If,Sf,wf,Kf,qf,gf;Sf=xf=Vd[0],wf=Lf=Vd[1],Kf=Wf=Vd[2],qf=Yf=Vd[3],gf=If=Vd[4];for(var _f,Yd=0;Yd<80;Yd+=1)_f=xf+Pd[qd+pf[Yd]]|0,Yd<16?_f+=kd(Lf,Wf,Yf)+Jd[0]:Yd<32?_f+=Rd(Lf,Wf,Yf)+Jd[1]:Yd<48?_f+=Nd(Lf,Wf,Yf)+Jd[2]:Yd<64?_f+=Id(Lf,Wf,Yf)+Jd[3]:_f+=Md(Lf,Wf,Yf)+Jd[4],_f=_f|0,_f=Ld(_f,hf[Yd]),_f=_f+If|0,xf=If,If=Yf,Yf=Ld(Wf,10),Wf=Lf,Lf=_f,_f=Sf+Pd[qd+Xd[Yd]]|0,Yd<16?_f+=Md(wf,Kf,qf)+Zd[0]:Yd<32?_f+=Id(wf,Kf,qf)+Zd[1]:Yd<48?_f+=Nd(wf,Kf,qf)+Zd[2]:Yd<64?_f+=Rd(wf,Kf,qf)+Zd[3]:_f+=kd(wf,Kf,qf)+Zd[4],_f=_f|0,_f=Ld(_f,mf[Yd]),_f=_f+gf|0,Sf=gf,gf=qf,qf=Ld(Kf,10),Kf=wf,wf=_f;_f=Vd[1]+Wf+qf|0,Vd[1]=Vd[2]+Yf+gf|0,Vd[2]=Vd[3]+If+Sf|0,Vd[3]=Vd[4]+xf+wf|0,Vd[4]=Vd[0]+Lf+Kf|0,Vd[0]=_f},_doFinalize:function(){var Pd=this._data,qd=Pd.words,Yd=this._nDataBytes*8,Ud=Pd.sigBytes*8;qd[Ud>>>5]|=128<<24-Ud%32,qd[(Ud+64>>>9<<4)+14]=(Yd<<8|Yd>>>24)&16711935|(Yd<<24|Yd>>>8)&4278255360,Pd.sigBytes=(qd.length+1)*4,this._process();for(var Hd=this._hash,Vd=Hd.words,Jd=0;Jd<5;Jd++){var Zd=Vd[Jd];Vd[Jd]=(Zd<<8|Zd>>>24)&16711935|(Zd<<24|Zd>>>8)&4278255360}return Hd},clone:function(){var Pd=od.clone.call(this);return Pd._hash=this._hash.clone(),Pd}});function kd(Pd,qd,Yd){return Pd^qd^Yd}function Rd(Pd,qd,Yd){return Pd&qd|~Pd&Yd}function Nd(Pd,qd,Yd){return(Pd|~qd)^Yd}function Id(Pd,qd,Yd){return Pd&Yd|qd&~Yd}function Md(Pd,qd,Yd){return Pd^(qd|~Yd)}function Ld(Pd,qd){return Pd<<qd|Pd>>>32-qd}td.RIPEMD160=od._createHelper(Td),td.HmacRIPEMD160=od._createHmacHelper(Td)}(),Ja.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(Ra,qa){(function(Ja,ed){Ra.exports=ed(requireCore())})(commonjsGlobal,function(Ja){(function(){var ed=Ja,td=ed.lib,rd=td.Base,sd=ed.enc,od=sd.Utf8,ld=ed.algo;ld.HMAC=rd.extend({init:function(cd,ud){cd=this._hasher=new cd.init,typeof ud=="string"&&(ud=od.parse(ud));var _d=cd.blockSize,yd=_d*4;ud.sigBytes>yd&&(ud=cd.finalize(ud)),ud.clamp();for(var gd=this._oKey=ud.clone(),Ed=this._iKey=ud.clone(),Td=gd.words,kd=Ed.words,Rd=0;Rd<_d;Rd++)Td[Rd]^=1549556828,kd[Rd]^=909522486;gd.sigBytes=Ed.sigBytes=yd,this.reset()},reset:function(){var cd=this._hasher;cd.reset(),cd.update(this._iKey)},update:function(cd){return this._hasher.update(cd),this},finalize:function(cd){var ud=this._hasher,_d=ud.finalize(cd);ud.reset();var yd=ud.finalize(this._oKey.clone().concat(_d));return yd}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(Ra,qa){(function(Ja,ed,td){Ra.exports=ed(requireCore(),requireSha256(),requireHmac())})(commonjsGlobal,function(Ja){retu
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return Ja.mode.CTRGladman=function(){var ed=Ja.lib.BlockCipherMode.extend();function td(od){if((od>>24&255)===255){var ld=od>>16&255,cd=od>>8&255,ud=od&255;ld===255?(ld=0,cd===255?(cd=0,ud===255?ud=0:++ud):++cd):++ld,od=0,od+=ld<<16,od+=cd<<8,od+=ud}else od+=1<<24;return od}function rd(od){return(od[0]=td(od[0]))===0&&(od[1]=td(od[1])),od}var sd=ed.Encryptor=ed.extend({processBlock:function(od,ld){var cd=this._cipher,ud=cd.blockSize,_d=this._iv,yd=this._counter;_d&&(yd=this._counter=_d.slice(0),this._iv=void 0),rd(yd);var gd=yd.slice(0);cd.encryptBlock(gd,0);for(var Ed=0;Ed<ud;Ed++)od[ld+Ed]^=gd[Ed]}});return ed.Decryptor=sd,ed}(),Ja.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(Ra,qa){(function(Ja,ed,td){Ra.exports=ed(requireCore(),requireCipherCore())})(commonjsGlobal,function(Ja){return Ja.mode.OFB=function(){var ed=Ja.lib.BlockCipherMode.extend(),td=ed.Encryptor=ed.extend({processBlock:function(rd,sd){var od=this._cipher,ld=od.blockSize,cd=this._iv,ud=this._keystream;cd&&(ud=this._keystream=cd.slice(0),this._iv=void 0),od.encryptBlock(ud,0);for(var _d=0;_d<ld;_d++)rd[sd+_d]^=ud[_d]}});return ed.Decryptor=td,ed}(),Ja.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(Ra,qa){(function(Ja,ed,td){Ra.exports=ed(requireCore(),requireCipherCore())})(commonjsGlobal,function(Ja){return Ja.mode.ECB=function(){var ed=Ja.lib.BlockCipherMode.extend();return ed.Encryptor=ed.extend({processBlock:function(td,rd){this._cipher.encryptBlock(td,rd)}}),ed.Decryptor=ed.extend({processBlock:function(td,rd){this._cipher.decryptBlock(td,rd)}}),ed}(),Ja.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(Ra,qa){(function(Ja,ed,td){Ra.exports=ed(requireCore(),requireCipherCore())})(commonjsGlobal,function(Ja){return Ja.pad.AnsiX923={pad:function(ed,td){var rd=ed.sigBytes,sd=td*4,od=sd-rd%sd,ld=rd+od-1;ed.clamp(),ed.words[ld>>>2]|=od<<24-ld%4*8,ed.sigBytes+=od},unpad:function(ed){var td=ed.words[ed.sigBytes-1>>>2]&255;ed.sigBytes-=td}},Ja.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(Ra,qa){(function(Ja,ed,td){Ra.exports=ed(requireCore(),requireCipherCore())})(commonjsGlobal,function(Ja){return Ja.pad.Iso10126={pad:function(ed,td){var rd=td*4,sd=rd-ed.sigBytes%rd;ed.concat(Ja.lib.WordArray.random(sd-1)).concat(Ja.lib.WordArray.create([sd<<24],1))},unpad:function(ed){var td=ed.words[ed.sigBytes-1>>>2]&255;ed.sigBytes-=td}},Ja.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(Ra,qa){(function(Ja,ed,td){Ra.exports=ed(requireCore(),requireCipherCore())})(commonjsGlobal,function(Ja){return Ja.pad.Iso97971={pad:function(ed,td){ed.concat(Ja.lib.WordArray.create([2147483648],1)),Ja.pad.ZeroPadding.pad(ed,td)},unpad:function(ed){Ja.pad.ZeroPadding.unpad(ed),ed.sigBytes--}},Ja.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(Ra,qa){(function(Ja,ed,td){Ra.exports=ed(requireCore(),requireCipherCore())})(commonjsGlobal,function(Ja){return Ja.pad.ZeroPadding={pad:function(ed,td){var rd=td*4;ed.clamp(),ed.sigBytes+=rd-(ed.sigBytes%rd||rd)},unpad:function(ed){for(var td=ed.words,rd=ed.sigBytes-1,rd=ed.sigBytes-1;rd>=0;rd--)if(td[rd>>>2]>>>24-rd%4*8&255){ed.sigBytes=rd+1;break}}},Ja.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopaddi
object-assign
(c) Sindre Sorhus
@license MIT
*/var objectAssign,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var Ra=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable;function ed(rd){if(rd==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(rd)}function td(){try{if(!Object.assign)return!1;var rd=new String("abc");if(rd[5]="de",Object.getOwnPropertyNames(rd)[0]==="5")return!1;for(var sd={},od=0;od<10;od++)sd["_"+String.fromCharCode(od)]=od;var ld=Object.getOwnPropertyNames(sd).map(function(ud){return sd[ud]});if(ld.join("")!=="0123456789")return!1;var cd={};return"abcdefghijklmnopqrst".split("").forEach(function(ud){cd[ud]=ud}),Object.keys(Object.assign({},cd)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=td()?Object.assign:function(rd,sd){for(var od,ld=ed(rd),cd,ud=1;ud<arguments.length;ud++){od=Object(arguments[ud]);for(var _d in od)qa.call(od,_d)&&(ld[_d]=od[_d]);if(Ra){cd=Ra(od);for(var yd=0;yd<cd.length;yd++)Ja.call(od,cd[yd])&&(ld[cd[yd]]=od[cd[yd]])}}return ld},objectAssign}var ajax={},hasRequiredAjax;function requireAjax(){return hasRequiredAjax||(hasRequiredAjax=1,function(Ra){Ra.__esModule=!0,Ra.default=qa;function qa(Ja,ed){return ed===void 0&&(ed={}),new Promise(function(td,rd){var sd=ed,od=sd.async,ld=od===void 0?!0:od,cd=sd.data,ud=cd===void 0?null:cd,_d=sd.headers,yd=_d===void 0?{}:_d,gd=sd.method,Ed=gd===void 0?"get":gd,Td=sd.timeout,kd=Td===void 0?0:Td,Rd=sd.onprogress,Nd=new XMLHttpRequest,Id;kd&&(Id=setTimeout(function(){rd(new Error("the request timeout "+kd+"ms"))},kd)),Nd.onerror=function(){rd(new Error("unknown error"))},Nd.upload&&(Nd.upload.onprogress=Rd),Nd.onreadystatechange=function(){if(Nd.readyState===4)if(kd&&clearTimeout(Id),Nd.status>=200&&Nd.status<300)td(Nd.response,Nd);else{var Md=new Error("the request is error");rd(Md)}},Nd.open(Ed,Ja,ld),Object.keys(yd).forEach(function(Md){Nd.setRequestHeader(Md,yd[Md])});try{Nd.send(ud)}catch(Md){rd(Md)}})}}(ajax)),ajax}var utils$2={},md5={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,function(){var Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qa={rotl:function(Ja,ed){return Ja<<ed|Ja>>>32-ed},rotr:function(Ja,ed){return Ja<<32-ed|Ja>>>ed},endian:function(Ja){if(Ja.constructor==Number)return qa.rotl(Ja,8)&16711935|qa.rotl(Ja,24)&4278255360;for(var ed=0;ed<Ja.length;ed++)Ja[ed]=qa.endian(Ja[ed]);return Ja},randomBytes:function(Ja){for(var ed=[];Ja>0;Ja--)ed.push(Math.floor(Math.random()*256));return ed},bytesToWords:function(Ja){for(var ed=[],td=0,rd=0;td<Ja.length;td++,rd+=8)ed[rd>>>5]|=Ja[td]<<24-rd%32;return ed},wordsToBytes:function(Ja){for(var ed=[],td=0;td<Ja.length*32;td+=8)ed.push(Ja[td>>>5]>>>24-td%32&255);return ed},bytesToHex:function(Ja){for(var ed=[],td=0;td<Ja.length;td++)ed.push((Ja[td]>>>4).toString(16)),ed.push((Ja[td]&15).toString(16));return ed.join("")},hexToBytes:function(Ja){for(var ed=[],td=0;td<Ja.length;td+=2)ed.push(parseInt(Ja.substr(td,2),16));return ed},bytesToBase64:function(Ja){for(var ed=[],td=0;td<Ja.length;td+=3)for(var rd=Ja[td]<<16|Ja[td+1]<<8|Ja[td+2],sd=0;sd<4;sd++)td*8+sd*6<=Ja.length*8?ed.push(Ra.charAt(rd>>>6*(3-sd)&63)):ed.push("=");return ed.join("")},base64ToBytes:function(Ja){Ja=Ja.replace(/[^A-Z0-9+\/]/ig,"");for(var ed=[],td=0,rd=0;td<Ja.length;rd=++td%4)rd!=0&&ed.push((Ra.indexOf(Ja.charAt(td-1))&Math.pow(2,-2*rd+8)-1)<<rd*2|Ra.indexOf(Ja.charAt(td))>>>6-rd*2);return ed}};crypt.exports=qa}()),crypt.exports}var charenc_1,hasRequiredCharenc;function requireCharenc(){if(hasRequiredCharenc)return charenc_1;hasRequiredCharenc=1;var Ra={utf8:{stringToBytes:function(qa){return Ra.bin.stringToBytes(unescape(encodeURIComponent(qa)))},bytesToString:function(qa){return decodeURIComponent(escape(Ra.bin.bytesToString(qa)))}},bin:{stringToBytes:function(qa){for(var Ja=[],ed=0;ed<qa.length;ed++)Ja.push(qa.charCodeAt(ed)&255);return Ja},bytesToString:function(qa){
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var isBuffer_1,hasRequiredIsBuffer;function requireIsBuffer(){if(hasRequiredIsBuffer)return isBuffer_1;hasRequiredIsBuffer=1,isBuffer_1=function(Ja){return Ja!=null&&(Ra(Ja)||qa(Ja)||!!Ja._isBuffer)};function Ra(Ja){return!!Ja.constructor&&typeof Ja.constructor.isBuffer=="function"&&Ja.constructor.isBuffer(Ja)}function qa(Ja){return typeof Ja.readFloatLE=="function"&&typeof Ja.slice=="function"&&Ra(Ja.slice(0,0))}return isBuffer_1}var hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(){var Ra=requireCrypt(),qa=requireCharenc().utf8,Ja=requireIsBuffer(),ed=requireCharenc().bin,td=function(rd,sd){rd.constructor==String?sd&&sd.encoding==="binary"?rd=ed.stringToBytes(rd):rd=qa.stringToBytes(rd):Ja(rd)?rd=Array.prototype.slice.call(rd,0):!Array.isArray(rd)&&rd.constructor!==Uint8Array&&(rd=rd.toString());for(var od=Ra.bytesToWords(rd),ld=rd.length*8,cd=1732584193,ud=-271733879,_d=-1732584194,yd=271733878,gd=0;gd<od.length;gd++)od[gd]=(od[gd]<<8|od[gd]>>>24)&16711935|(od[gd]<<24|od[gd]>>>8)&4278255360;od[ld>>>5]|=128<<ld%32,od[(ld+64>>>9<<4)+14]=ld;for(var Ed=td._ff,Td=td._gg,kd=td._hh,Rd=td._ii,gd=0;gd<od.length;gd+=16){var Nd=cd,Id=ud,Md=_d,Ld=yd;cd=Ed(cd,ud,_d,yd,od[gd+0],7,-680876936),yd=Ed(yd,cd,ud,_d,od[gd+1],12,-389564586),_d=Ed(_d,yd,cd,ud,od[gd+2],17,606105819),ud=Ed(ud,_d,yd,cd,od[gd+3],22,-1044525330),cd=Ed(cd,ud,_d,yd,od[gd+4],7,-176418897),yd=Ed(yd,cd,ud,_d,od[gd+5],12,1200080426),_d=Ed(_d,yd,cd,ud,od[gd+6],17,-1473231341),ud=Ed(ud,_d,yd,cd,od[gd+7],22,-45705983),cd=Ed(cd,ud,_d,yd,od[gd+8],7,1770035416),yd=Ed(yd,cd,ud,_d,od[gd+9],12,-1958414417),_d=Ed(_d,yd,cd,ud,od[gd+10],17,-42063),ud=Ed(ud,_d,yd,cd,od[gd+11],22,-1990404162),cd=Ed(cd,ud,_d,yd,od[gd+12],7,1804603682),yd=Ed(yd,cd,ud,_d,od[gd+13],12,-40341101),_d=Ed(_d,yd,cd,ud,od[gd+14],17,-1502002290),ud=Ed(ud,_d,yd,cd,od[gd+15],22,1236535329),cd=Td(cd,ud,_d,yd,od[gd+1],5,-165796510),yd=Td(yd,cd,ud,_d,od[gd+6],9,-1069501632),_d=Td(_d,yd,cd,ud,od[gd+11],14,643717713),ud=Td(ud,_d,yd,cd,od[gd+0],20,-373897302),cd=Td(cd,ud,_d,yd,od[gd+5],5,-701558691),yd=Td(yd,cd,ud,_d,od[gd+10],9,38016083),_d=Td(_d,yd,cd,ud,od[gd+15],14,-660478335),ud=Td(ud,_d,yd,cd,od[gd+4],20,-405537848),cd=Td(cd,ud,_d,yd,od[gd+9],5,568446438),yd=Td(yd,cd,ud,_d,od[gd+14],9,-1019803690),_d=Td(_d,yd,cd,ud,od[gd+3],14,-187363961),ud=Td(ud,_d,yd,cd,od[gd+8],20,1163531501),cd=Td(cd,ud,_d,yd,od[gd+13],5,-1444681467),yd=Td(yd,cd,ud,_d,od[gd+2],9,-51403784),_d=Td(_d,yd,cd,ud,od[gd+7],14,1735328473),ud=Td(ud,_d,yd,cd,od[gd+12],20,-1926607734),cd=kd(cd,ud,_d,yd,od[gd+5],4,-378558),yd=kd(yd,cd,ud,_d,od[gd+8],11,-2022574463),_d=kd(_d,yd,cd,ud,od[gd+11],16,1839030562),ud=kd(ud,_d,yd,cd,od[gd+14],23,-35309556),cd=kd(cd,ud,_d,yd,od[gd+1],4,-1530992060),yd=kd(yd,cd,ud,_d,od[gd+4],11,1272893353),_d=kd(_d,yd,cd,ud,od[gd+7],16,-155497632),ud=kd(ud,_d,yd,cd,od[gd+10],23,-1094730640),cd=kd(cd,ud,_d,yd,od[gd+13],4,681279174),yd=kd(yd,cd,ud,_d,od[gd+0],11,-358537222),_d=kd(_d,yd,cd,ud,od[gd+3],16,-722521979),ud=kd(ud,_d,yd,cd,od[gd+6],23,76029189),cd=kd(cd,ud,_d,yd,od[gd+9],4,-640364487),yd=kd(yd,cd,ud,_d,od[gd+12],11,-421815835),_d=kd(_d,yd,cd,ud,od[gd+15],16,530742520),ud=kd(ud,_d,yd,cd,od[gd+2],23,-995338651),cd=Rd(cd,ud,_d,yd,od[gd+0],6,-198630844),yd=Rd(yd,cd,ud,_d,od[gd+7],10,1126891415),_d=Rd(_d,yd,cd,ud,od[gd+14],15,-1416354905),ud=Rd(ud,_d,yd,cd,od[gd+5],21,-57434055),cd=Rd(cd,ud,_d,yd,od[gd+12],6,1700485571),yd=Rd(yd,cd,ud,_d,od[gd+3],10,-1894986606),_d=Rd(_d,yd,cd,ud,od[gd+10],15,-1051523),ud=Rd(ud,_d,yd,cd,od[gd+1],21,-2054922799),cd=Rd(cd,ud,_d,yd,od[gd+8],6,1873313359),yd=Rd(yd,cd,ud,_d,od[gd+15],10,-30611744),_d=Rd(_d,yd,cd,ud,od[gd+6],15,-1560198380),ud=Rd(ud,_d,yd,cd,od[gd+13],21,1309151649),cd=Rd(cd,ud,_d,yd,od[gd+4],6,-145523070),yd=Rd(yd,cd,ud,_d,od[gd+11],10,-1120210379),_d=Rd(_d,yd,cd,ud,od[gd+2],15,718787259),ud=Rd(ud,_d,yd,cd,od[gd+9],21,-343485551),cd=cd+Nd>>>0,ud=ud+Id>>>0,_d=_d+Md>>>0,yd=yd+Ld>>>0}return Ra.endian([cd,ud,_d,yd])};td._ff=function(rd,sd,od,ld,cd,ud,_d){var yd=rd+(sd&od|~sd&ld)+(cd>>>0)+_d;return(yd<<ud|yd>>>32-ud)+sd},td._gg=function(rd,s
*!
*! Copyright 2011-2012, 2014 Jean-Christophe Sirot <sirot@chelonix.com>
*!
*! This file is part of digest.js
*!
*! digest.js is free software: you can redistribute it and/or modify it under
*! the terms of the GNU General Public License as published by the Free Software
*! Foundation, either version 3 of the License, or (at your option) any later
*! version.
*!
*! digest.js is distributed in the hope that it will be useful, but
*! WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
*! or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
*! more details.
*!
*! You should have received a copy of the GNU General Public License along with
*! digest.js. If not, see http://www.gnu.org/licenses/.
*!
*! ***** END LICENSE BLOCK ***** */var hasRequiredDigest;function requireDigest(){return hasRequiredDigest||(hasRequiredDigest=1,function(Ra,qa){(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(Ja,ed){var td,rd=new Uint8Array(this);ed===void 0&&(ed=rd.length);var sd=new ArrayBuffer(ed-Ja),od=new Uint8Array(sd);for(td=0;td<od.length;td++)od[td]=rd[td+Ja];return sd})})(),function(Ja){function ed(){}ed.prototype.processBlock=function(ud){var _d=this.current[0],yd=this.current[1],gd=this.current[2],Ed=this.current[3],Td=this.current[4],kd=[ud[0]<<24|ud[1]<<16|ud[2]<<8|ud[3],ud[4]<<24|ud[5]<<16|ud[6]<<8|ud[7],ud[8]<<24|ud[9]<<16|ud[10]<<8|ud[11],ud[12]<<24|ud[13]<<16|ud[14]<<8|ud[15],ud[16]<<24|ud[17]<<16|ud[18]<<8|ud[19],ud[20]<<24|ud[21]<<16|ud[22]<<8|ud[23],ud[24]<<24|ud[25]<<16|ud[26]<<8|ud[27],ud[28]<<24|ud[29]<<16|ud[30]<<8|ud[31],ud[32]<<24|ud[33]<<16|ud[34]<<8|ud[35],ud[36]<<24|ud[37]<<16|ud[38]<<8|ud[39],ud[40]<<24|ud[41]<<16|ud[42]<<8|ud[43],ud[44]<<24|ud[45]<<16|ud[46]<<8|ud[47],ud[48]<<24|ud[49]<<16|ud[50]<<8|ud[51],ud[52]<<24|ud[53]<<16|ud[54]<<8|ud[55],ud[56]<<24|ud[57]<<16|ud[58]<<8|ud[59],ud[60]<<24|ud[61]<<16|ud[62]<<8|ud[63]],Rd,Nd;for(Nd=16;Nd<80;Nd++)kd.push((kd[Nd-3]^kd[Nd-8]^kd[Nd-14]^kd[Nd-16])<<1|(kd[Nd-3]^kd[Nd-8]^kd[Nd-14]^kd[Nd-16])>>>31);for(Nd=0;Nd<80;Nd++)Rd=(_d<<5|_d>>>27)+Td+kd[Nd],Nd<20?Rd+=(yd&gd|~yd&Ed)+1518500249|0:Nd<40?Rd+=(yd^gd^Ed)+1859775393|0:Nd<60?Rd+=(yd&gd|yd&Ed|gd&Ed)+2400959708|0:Rd+=(yd^gd^Ed)+3395469782|0,Td=Ed,Ed=gd,gd=yd<<30|yd>>>2,yd=_d,_d=Rd;this.current[0]+=_d,this.current[1]+=yd,this.current[2]+=gd,this.current[3]+=Ed,this.current[4]+=Td,this.currentLen+=64},ed.prototype.doPadding=function(){var ud=(this.inLen+this.currentLen)*8,_d=0,yd=ud&4294967295,gd=this.inLen<=55?55-this.inLen:119-this.inLen,Ed=new Uint8Array(new ArrayBuffer(gd+1+8));return Ed[0]=128,Ed[Ed.length-1]=yd&255,Ed[Ed.length-2]=yd>>>8&255,Ed[Ed.length-3]=yd>>>16&255,Ed[Ed.length-4]=yd>>>24&255,Ed[Ed.length-5]=_d&255,Ed[Ed.length-6]=_d>>>8&255,Ed[Ed.length-7]=_d>>>16&255,Ed[Ed.length-8]=_d>>>24&255,Ed},ed.prototype.getDigest=function(){var ud=new Uint8Array(new ArrayBuffer(20));return ud[3]=this.current[0]&255,ud[2]=this.current[0]>>>8&255,ud[1]=this.current[0]>>>16&255,ud[0]=this.current[0]>>>24&255,ud[7]=this.current[1]&255,ud[6]=this.current[1]>>>8&255,ud[5]=this.current[1]>>>16&255,ud[4]=this.current[1]>>>24&255,ud[11]=this.current[2]&255,ud[10]=this.current[2]>>>8&255,ud[9]=this.current[2]>>>16&255,ud[8]=this.current[2]>>>24&255,ud[15]=this.current[3]&255,ud[14]=this.current[3]>>>8&255,ud[13]=this.current[3]>>>16&255,ud[12]=this.current[3]>>>24&255,ud[19]=this.current[4]&255,ud[18]=this.current[4]>>>8&255,ud[17]=this.current[4]>>>16&255,ud[16]=this.current[4]>>>24&255,ud.buffer},ed.prototype.reset=function(){this.currentLen=0,this.inLen=0,this.current=new Uint32Array(new ArrayBuffer(20)),this.current[0]=1732584193,this.current[1]=4023233417,this.current[2]=2562383102,this.current[3]=271733878,this.current[4]=3285377520},ed.prototype.blockLen=64,ed.prototype.digestLen=20;var td=function(ud){var _d=new ArrayBuffer(ud.length),yd=new Uint8Array(_d),gd;for(gd=0;gd<ud.length;gd++)yd[gd]=ud.charCodeAt(gd);return yd},rd=function(ud){var _d=new ArrayBuffer(1),yd=new Uint8Array(_d);return yd[0]=ud,yd},sd=function(ud){if(ud.constructor===Uint8Array)return ud;if(ud.constructor===ArrayBuffer)return new Uint8Array(ud);if(ud.constructor===String)return td(ud);if(ud.constructor===Number){if(ud>255)throw"For more than one byte, use an array buffer";if(ud<0)throw"Input value must be positive";return rd(ud)}else throw"Unsupported type"},od=function(ud){var _d=function(Ed){for(var Td=Ed.length,kd=0;Td>0;){var Rd=this.blockLen-this.inLen;Rd>Td&&(Rd=Td);var Nd=Ed.subarray(kd,kd+Rd);this.inbuf.set(Nd,this.inLen),kd+=Rd,Td-=Rd,this.inLen+=Rd,this.inLen===this.blockLen&&(this.processBlock(this.inbuf),this.inLen=0)}},yd=function(){var Ed=this.doPadding();this.update(Ed);var Td=this.getDigest();return this.reset(),Td},gd=function(){if(!ud)throw"Unsupported algorithm: "+ud.toString();ud.prototype.
`)}),Ed}function _d(gd,Ed,Td){gd===void 0&&(gd=""),Ed===void 0&&(Ed="");var kd="";gd&&(kd+="/"+gd),Ed&&(Ed.charAt(0)!=="/"&&(kd+="/"),kd+=Ed);var Rd=""+kd,Nd="?";if(Td){var Id=function(Pd,qd){return Pd[0]>qd[0]?1:Pd[0]<qd[0]?-1:0},Md=function(Pd){Rd+=Nd+Pd,Td[Pd]&&(Rd+="="+Td[Pd]),Nd="&"};Object.keys(Td).sort(Id).forEach(Md)}return Rd}function yd(gd){gd===void 0&&(gd={});var Ed=gd,Td=Ed.type,kd=Td===void 0?"header":Td,Rd=Ed.verb,Nd=Rd===void 0?"":Rd,Id=Ed.contentMd5,Md=Id===void 0?"":Id,Ld=Ed.expires,Pd=Ld===void 0?rd()+3600:Ld,qd=Ed.bucket,Yd=Ed.objectName,Ud=Ed.accessKeySecret,Hd=Ed.headers,Vd=Hd===void 0?{}:Hd,Jd=Ed.subResource,Zd=Vd["x-oss-date"]||"",pf=Vd["Content-Type"]||"",Xd=[Nd,Md,pf];kd==="header"?Xd.push(Zd):Xd.push(Pd);var hf=ud(Vd),mf=_d(qd,Yd,Jd);Xd.push(""+hf+mf);var xf=Xd.join(`
`),Lf=new ed.default.HMAC_SHA1;Lf.setKey(Ud),Lf.update(xf);var Wf=new Uint8Array(Lf.finalize()),Yf=Ja.default.fromByteArray(Wf);return Yf}return utils$2}(function(Ra){var qa=interopRequireDefaultExports;Ra.__esModule=!0,Ra.default=void 0;var Ja=qa(requireObjectAssign()),ed=qa(requireAjax()),td=requireUtils(),rd=function(){function sd(ld){ld===void 0&&(ld={}),(0,td.assertOptions)(ld),this.opts=(0,Ja.default)({region:"oss-cn-hangzhou",internal:!1,cname:!1,secure:!1,timeout:6e4},ld);var cd=this.opts,ud=cd.bucket,_d=cd.region,yd=cd.endpoint,gd=cd.internal;if(this.host="",yd)this.host=yd;else{var Ed=ud;gd&&(Ed+="-internal"),Ed+="."+_d+".aliyuncs.com",this.host=Ed}}var od=sd.prototype;return od.put=function(cd,ud,_d){var yd=this;return _d===void 0&&(_d={}),new Promise(function(gd,Ed){(0,td.blobToBuffer)(ud).then(function(Td){var kd=yd.opts,Rd=kd.accessKeyId,Nd=kd.accessKeySecret,Id=kd.stsToken,Md=kd.bucket,Ld="PUT",Pd=(0,td.getContentMd5)(Td),qd=ud.type,Yd={"Content-Md5":Pd,"Content-Type":qd,"x-oss-date":new Date().toGMTString()};Id&&(Yd["x-oss-security-token"]=Id);var Ud=(0,td.getSignature)({verb:Ld,contentMd5:Pd,headers:Yd,bucket:Md,objectName:cd,accessKeyId:Rd,accessKeySecret:Nd});Yd.Authorization="OSS "+Rd+":"+Ud;var Hd=yd.opts.secure?"https":"http",Vd=Hd+"://"+yd.host+"/"+cd;return(0,ed.default)(Vd,{method:Ld,headers:Yd,data:ud,timeout:yd.opts.timeout,onprogress:_d.onprogress})}).then(gd).catch(Ed)})},od.putSymlink=function(cd,ud){var _d=this.opts,yd=_d.accessKeyId,gd=_d.accessKeySecret,Ed=_d.stsToken,Td=_d.bucket,kd="PUT",Rd={"x-oss-date":new Date().toGMTString(),"x-oss-symlink-target":encodeURI(ud)};Ed&&(Rd["x-oss-security-token"]=Ed);var Nd=(0,td.getSignature)({verb:kd,headers:Rd,bucket:Td,objectName:cd,accessKeyId:yd,accessKeySecret:gd,subResource:{symlink:""}});Rd.Authorization="OSS "+yd+":"+Nd;var Id=this.opts.secure?"https":"http",Md=Id+"://"+this.host+"/"+cd+"?symlink";return(0,ed.default)(Md,{method:kd,headers:Rd,timeout:this.opts.timeout})},od.signatureUrl=function(cd,ud){ud===void 0&&(ud={});var _d=ud,yd=_d.expires,gd=yd===void 0?1800:yd,Ed=_d.method,Td=_d.process,kd=_d.response,Rd=this.opts,Nd=Rd.accessKeyId,Id=Rd.accessKeySecret,Md=Rd.stsToken,Ld=Rd.bucket,Pd={},qd={};if(Td){var Yd="x-oss-process";qd[Yd]=Td}kd&&Object.keys(kd).forEach(function(pf){var Xd="response-"+pf.toLowerCase();qd[Xd]=kd[pf]}),Object.keys(ud).forEach(function(pf){var Xd=pf.toLowerCase(),hf=ud[pf];Xd.indexOf("x-oss-")===0?Pd[Xd]=hf:Xd.indexOf("content-md5")===0||Xd.indexOf("content-type")===0?Pd[pf]=hf:Xd!=="expires"&&Xd!=="response"&&Xd!=="process"&&Xd!=="method"&&(qd[Xd]=hf)});var Ud=ud["security-token"]||Md;Ud&&(qd["security-token"]=Ud);var Hd=(0,td.unix)()+gd,Vd=(0,td.getSignature)({type:"url",verb:Ed||"GET",accessKeyId:Nd,accessKeySecret:Id,bucket:Ld,objectName:cd,headers:Pd,subResource:qd,expires:Hd}),Jd=this.opts.secure?"https":"http",Zd=Jd+"://"+this.host+"/"+cd;return Zd+="?OSSAccessKeyId="+Nd,Zd+="&Expires="+Hd,Zd+="&Signature="+encodeURIComponent(Vd),Object.keys(qd).forEach(function(pf){Zd+="&"+pf+"="+encodeURIComponent(qd[pf])}),Zd},sd}();Ra.default=rd})(TinyOSS);var lib$2=TinyOSS.default;const OSS=getDefaultExportFromCjs(lib$2);var define_process_default$8={version:"v20.17.0",versions:{node:"20.17.0",acorn:"8.11.3",ada:"2.9.0",ares:"1.32.3",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.2.2",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.13+quic",simdutf:"5.3.0",tz:"2024a",undici:"6.19.2",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-209717d"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Intern
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(Ra){var qa=requireBase64Js(),Ja=ieee754,ed=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=od,Ra.SlowBuffer=Nd,Ra.INSPECT_MAX_BYTES=50;var td=2147483647;Ra.kMaxLength=td,od.TYPED_ARRAY_SUPPORT=rd(),!od.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function rd(){try{var Gf=new Uint8Array(1),Tf={foo:function(){return 42}};return Object.setPrototypeOf(Tf,Uint8Array.prototype),Object.setPrototypeOf(Gf,Tf),Gf.foo()===42}catch{return!1}}Object.defineProperty(od.prototype,"parent",{enumerable:!0,get:function(){if(od.isBuffer(this))return this.buffer}}),Object.defineProperty(od.prototype,"offset",{enumerable:!0,get:function(){if(od.isBuffer(this))return this.byteOffset}});function sd(Gf){if(Gf>td)throw new RangeError('The value "'+Gf+'" is invalid for option "size"');var Tf=new Uint8Array(Gf);return Object.setPrototypeOf(Tf,od.prototype),Tf}function od(Gf,Tf,Af){if(typeof Gf=="number"){if(typeof Tf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _d(Gf)}return ld(Gf,Tf,Af)}od.poolSize=8192;function ld(Gf,Tf,Af){if(typeof Gf=="string")return yd(Gf,Tf);if(ArrayBuffer.isView(Gf))return Ed(Gf);if(Gf==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Gf);if(kf(Gf,ArrayBuffer)||Gf&&kf(Gf.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(kf(Gf,SharedArrayBuffer)||Gf&&kf(Gf.buffer,SharedArrayBuffer)))return Td(Gf,Tf,Af);if(typeof Gf=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Pf=Gf.valueOf&&Gf.valueOf();if(Pf!=null&&Pf!==Gf)return od.from(Pf,Tf,Af);var gh=kd(Gf);if(gh)return gh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Gf[Symbol.toPrimitive]=="function")return od.from(Gf[Symbol.toPrimitive]("string"),Tf,Af);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Gf)}od.from=function(Gf,Tf,Af){return ld(Gf,Tf,Af)},Object.setPrototypeOf(od.prototype,Uint8Array.prototype),Object.setPrototypeOf(od,Uint8Array);function cd(Gf){if(typeof Gf!="number")throw new TypeError('"size" argument must be of type number');if(Gf<0)throw new RangeError('The value "'+Gf+'" is invalid for option "size"')}function ud(Gf,Tf,Af){return cd(Gf),Gf<=0?sd(Gf):Tf!==void 0?typeof Af=="string"?sd(Gf).fill(Tf,Af):sd(Gf).fill(Tf):sd(Gf)}od.alloc=function(Gf,Tf,Af){return ud(Gf,Tf,Af)};function _d(Gf){return cd(Gf),sd(Gf<0?0:Rd(Gf)|0)}od.allocUnsafe=function(Gf){return _d(Gf)},od.allocUnsafeSlow=function(Gf){return _d(Gf)};function yd(Gf,Tf){if((typeof Tf!="string"||Tf==="")&&(Tf="utf8"),!od.isEncoding(Tf))throw new TypeError("Unknown encoding: "+Tf);var Af=Id(Gf,Tf)|0,Pf=sd(Af),gh=Pf.write(Gf,Tf);return gh!==Af&&(Pf=Pf.slice(0,gh)),Pf}function gd(Gf){for(var Tf=Gf.length<0?0:Rd(Gf.length)|0,Af=sd(Tf),Pf=0;Pf<Tf;Pf+=1)Af[Pf]=Gf[Pf]&255;return Af}function Ed(Gf){if(kf(Gf,Uint8Array)){var Tf=new Uint8Array(Gf);return Td(Tf.buffer,Tf.byteOffset,Tf.byteLength)}return gd(Gf)}function Td(Gf,Tf,Af){if(Tf<0||Gf.byteLength<Tf)throw new RangeError('"offset" is outside of buffer bounds');if(Gf.byteLength<Tf+(Af||0))throw new RangeError('"length" is outside of buffer bounds');var Pf;return Tf===void 0&&Af===void 0?Pf=new Uint8Array(Gf):Af===void 0?Pf=new Uint8Array(Gf,Tf):Pf=new Uint8Array(Gf,Tf,Af),Object.setPrototypeOf(Pf,od.prototype),Pf}function kd(Gf){if(od.isBuffer(Gf)){var Tf=Rd(Gf.length)|0,Af=sd(Tf);return Af.length===0||Gf.copy(Af,0,0,Tf),Af}if(Gf.length!==void 0)return typeof Gf.length!="number"||Jf(Gf.length)?sd(0):gd(Gf);if(Gf.type==="Buffer"&&Array.isArray(Gf.data))return gd(Gf.data)}function Rd(Gf){if(Gf>=td)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+td.toStri
`)>-1&&($f?hh=hh.split(`
`).map(function(kf){return" "+kf}).join(`
`).slice(2):hh=`
`+hh.split(`
`).map(function(kf){return" "+kf}).join(`
`))):hh=wf.stylize("[Circular]","special")),Ud(zf)){if($f&&_f.match(/^\d+$/))return hh;zf=JSON.stringify(""+_f),zf.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(zf=zf.slice(1,-1),zf=wf.stylize(zf,"name")):(zf=zf.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),zf=wf.stylize(zf,"string"))}return zf+": "+hh}function Rd(wf,Kf,qf){var gf=wf.reduce(function(_f,$f){return $f.indexOf(`
`)>=0,_f+$f.replace(/\u001b\[\d\d?m/g,"").length+1},0);return gf>60?qf[0]+(Kf===""?"":Kf+`
`)+" "+wf.join(`,
`)+" "+qf[1]:qf[0]+Kf+" "+wf.join(", ")+" "+qf[1]}Ra.types=types;function Nd(wf){return Array.isArray(wf)}Ra.isArray=Nd;function Id(wf){return typeof wf=="boolean"}Ra.isBoolean=Id;function Md(wf){return wf===null}Ra.isNull=Md;function Ld(wf){return wf==null}Ra.isNullOrUndefined=Ld;function Pd(wf){return typeof wf=="number"}Ra.isNumber=Pd;function qd(wf){return typeof wf=="string"}Ra.isString=qd;function Yd(wf){return typeof wf=="symbol"}Ra.isSymbol=Yd;function Ud(wf){return wf===void 0}Ra.isUndefined=Ud;function Hd(wf){return Vd(wf)&&hf(wf)==="[object RegExp]"}Ra.isRegExp=Hd,Ra.types.isRegExp=Hd;function Vd(wf){return typeof wf=="object"&&wf!==null}Ra.isObject=Vd;function Jd(wf){return Vd(wf)&&hf(wf)==="[object Date]"}Ra.isDate=Jd,Ra.types.isDate=Jd;function Zd(wf){return Vd(wf)&&(hf(wf)==="[object Error]"||wf instanceof Error)}Ra.isError=Zd,Ra.types.isNativeError=Zd;function pf(wf){return typeof wf=="function"}Ra.isFunction=pf;function Xd(wf){return wf===null||typeof wf=="boolean"||typeof wf=="number"||typeof wf=="string"||typeof wf=="symbol"||typeof wf>"u"}Ra.isPrimitive=Xd,Ra.isBuffer=isBufferBrowser;function hf(wf){return Object.prototype.toString.call(wf)}function mf(wf){return wf<10?"0"+wf.toString(10):wf.toString(10)}var xf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Lf(){var wf=new Date,Kf=[mf(wf.getHours()),mf(wf.getMinutes()),mf(wf.getSeconds())].join(":");return[wf.getDate(),xf[wf.getMonth()],Kf].join(" ")}Ra.log=function(){console.log("%s - %s",Lf(),Ra.format.apply(Ra,arguments))},Ra.inherits=inherits_browserExports,Ra._extend=function(wf,Kf){if(!Kf||!Vd(Kf))return wf;for(var qf=Object.keys(Kf),gf=qf.length;gf--;)wf[qf[gf]]=Kf[qf[gf]];return wf};function Wf(wf,Kf){return Object.prototype.hasOwnProperty.call(wf,Kf)}var Yf=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ra.promisify=function(Kf){if(typeof Kf!="function")throw new TypeError('The "original" argument must be of type Function');if(Yf&&Kf[Yf]){var qf=Kf[Yf];if(typeof qf!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(qf,Yf,{value:qf,enumerable:!1,writable:!1,configurable:!0}),qf}function qf(){for(var gf,_f,$f=new Promise(function(Vf,kf){gf=Vf,_f=kf}),zf=[],hh=0;hh<arguments.length;hh++)zf.push(arguments[hh]);zf.push(function(Vf,kf){Vf?_f(Vf):gf(kf)});try{Kf.apply(this,zf)}catch(Vf){_f(Vf)}return $f}return Object.setPrototypeOf(qf,Object.getPrototypeOf(Kf)),Yf&&Object.defineProperty(qf,Yf,{value:qf,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(qf,ed(Kf))},Ra.promisify.custom=Yf;function If(wf,Kf){if(!wf){var qf=new Error("Promise was rejected with a falsy value");qf.reason=wf,wf=qf}return Kf(wf)}function Sf(wf){if(typeof wf!="function")throw new TypeError('The "original" argument must be of type Function');function Kf(){for(var qf=[],gf=0;gf<arguments.length;gf++)qf.push(arguments[gf]);var _f=qf.pop();if(typeof _f!="function")throw new TypeError("The last argument must be of type Function");var $f=this,zf=function(){return _f.apply($f,arguments)};wf.apply(this,qf).then(function(hh){qa.nextTick(zf.bind(null,null,hh))},function(hh){qa.nextTick(If.bind(null,hh,zf))})}return Object.setPrototypeOf(Kf,Object.getPrototypeOf(wf)),Object.defineProperties(Kf,ed(wf)),Kf}Ra.callbackify=Sf})(util$5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function Ra(Ed,Td){var kd=Object.keys(Ed);if(Object.getOwnPropertySymbols){var Rd=Object.getOwnPropertySymbols(Ed);Td&&(Rd=Rd.filter(function(Nd){return Object.getOwnPropertyDescriptor(Ed,Nd).enumerable})),kd.push.apply(kd,Rd)}return kd}function qa(Ed){for(var Td=1;Td<arguments.length;Td++){var kd=arguments[Td]!=null?arguments[Td]:{};Td%2?Ra(Object(kd),!0).forEach(function(Rd){Ja(Ed,Rd,kd[Rd])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ed,Object.getOwnPropertyDescriptors(kd)):Ra(Object(kd)).forEach(function(Rd){Object.defineProperty(Ed,Rd,Object.getOwnPropertyDescript
`,Ja);Ja=td===-1?Ra.length:td}else if(ed!==-1&&Ra[Ja]==="/"&&Ra[Ja+1]==="*"){let td=Ra.indexOf("*/",Ja);td!==-1?(Ja=td+2,ed=Ra.indexOf("*/",Ja)):(qa+=Ra[Ja],Ja++)}else qa+=Ra[Ja],Ja++;return qa}function parseParams(Ra){const qa=stripComments(Ra.toString());let Ja=qa.match(FN_ARGS);if(Ja||(Ja=qa.match(ARROW_FN_ARGS)),!Ja)throw new Error(`could not parse args in autoInject
Source:
`+qa);let[,ed]=Ja;return ed.replace(/\s/g,"").split(FN_ARG_SPLIT).map(td=>td.replace(FN_ARG,"").trim())}function autoInject(Ra,qa){var Ja={};return Object.keys(Ra).forEach(ed=>{var td=Ra[ed],rd,sd=isAsync(td),od=!sd&&td.length===1||sd&&td.length===0;if(Array.isArray(td))rd=[...td],td=rd.pop(),Ja[ed]=rd.concat(rd.length>0?ld:td);else if(od)Ja[ed]=td;else{if(rd=parseParams(td),td.length===0&&!sd&&rd.length===0)throw new Error("autoInject task functions require explicit parameters.");sd||rd.pop(),Ja[ed]=rd.concat(ld)}function ld(cd,ud){var _d=rd.map(yd=>cd[yd]);_d.push(ud),wrapAsync(td)(..._d)}}),auto(Ja,qa)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(qa){return qa.prev?qa.prev.next=qa.next:this.head=qa.next,qa.next?qa.next.prev=qa.prev:this.tail=qa.prev,qa.prev=qa.next=null,this.length-=1,qa}empty(){for(;this.head;)this.shift();return this}insertAfter(qa,Ja){Ja.prev=qa,Ja.next=qa.next,qa.next?qa.next.prev=Ja:this.tail=Ja,qa.next=Ja,this.length+=1}insertBefore(qa,Ja){Ja.prev=qa.prev,Ja.next=qa,qa.prev?qa.prev.next=Ja:this.head=Ja,qa.prev=Ja,this.length+=1}unshift(qa){this.head?this.insertBefore(this.head,qa):setInitial(this,qa)}push(qa){this.tail?this.insertAfter(this.tail,qa):setInitial(this,qa)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var qa=this.head;qa;)yield qa.data,qa=qa.next}remove(qa){for(var Ja=this.head;Ja;){var{next:ed}=Ja;qa(Ja)&&this.removeLink(Ja),Ja=ed}return this}}function setInitial(Ra,qa){Ra.length=1,Ra.head=Ra.tail=qa}function queue$1(Ra,qa,Ja){if(qa==null)qa=1;else if(qa===0)throw new RangeError("Concurrency must not be zero");var ed=wrapAsync(Ra),td=0,rd=[];const sd={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function od(Nd,Id){sd[Nd].push(Id)}function ld(Nd,Id){const Md=(...Ld)=>{cd(Nd,Md),Id(...Ld)};sd[Nd].push(Md)}function cd(Nd,Id){if(!Nd)return Object.keys(sd).forEach(Md=>sd[Md]=[]);if(!Id)return sd[Nd]=[];sd[Nd]=sd[Nd].filter(Md=>Md!==Id)}function ud(Nd,...Id){sd[Nd].forEach(Md=>Md(...Id))}var _d=!1;function yd(Nd,Id,Md,Ld){if(Ld!=null&&typeof Ld!="function")throw new Error("task callback must be a function");Rd.started=!0;var Pd,qd;function Yd(Hd,...Vd){if(Hd)return Md?qd(Hd):Pd();if(Vd.length<=1)return Pd(Vd[0]);Pd(Vd)}var Ud=Rd._createTaskItem(Nd,Md?Yd:Ld||Yd);if(Id?Rd._tasks.unshift(Ud):Rd._tasks.push(Ud),_d||(_d=!0,setImmediate$1$1(()=>{_d=!1,Rd.process()})),Md||!Ld)return new Promise((Hd,Vd)=>{Pd=Hd,qd=Vd})}function gd(Nd){return function(Id,...Md){td-=1;for(var Ld=0,Pd=Nd.length;Ld<Pd;Ld++){var qd=Nd[Ld],Yd=rd.indexOf(qd);Yd===0?rd.shift():Yd>0&&rd.splice(Yd,1),qd.callback(Id,...Md),Id!=null&&ud("error",Id,qd.data)}td<=Rd.concurrency-Rd.buffer&&ud("unsaturated"),Rd.idle()&&ud("drain"),Rd.process()}}function Ed(Nd){return Nd.length===0&&Rd.idle()?(setImmediate$1$1(()=>ud("drain")),!0):!1}const Td=Nd=>Id=>{if(!Id)return new Promise((Md,Ld)=>{ld(Nd,(Pd,qd)=>{if(Pd)return Ld(Pd);Md(qd)})});cd(Nd),od(Nd,Id)};var kd=!1,Rd={_tasks:new DLL,_createTaskItem(Nd,Id){return{data:Nd,callback:Id}},*[Symbol.iterator](){yield*Rd._tasks[Symbol.iterator]()},concurrency:qa,payload:Ja,buffer:qa/4,started:!1,paused:!1,push(Nd,Id){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Md=>yd(Md,!1,!1,Id)):yd(Nd,!1,!1,Id)},pushAsync(Nd,Id){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Md=>yd(Md,!1,!0,Id)):yd(Nd,!1,!0,Id)},kill(){cd(),Rd._tasks.empty()},unshift(Nd,Id){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Md=>yd(Md,!0,!1,Id)):yd(Nd,!0,!1,Id)},unshiftAsync(Nd,Id){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Md=>yd(Md,!0,!0,Id)):yd(Nd,!0,!0,Id)},remove(Nd){Rd._tasks.remove(Nd)},process(){if(!kd){for(kd=!0;!Rd.paused&&td<Rd.concurrency&&Rd._tasks.length;){var Nd=[],Id=[],Md=Rd._tasks.length;Rd.payload&&(Md=Math.min(Md,Rd.payload));for(var Ld=0;Ld<Md;Ld++){var Pd=Rd._tasks.shift();Nd.push(Pd),rd.push(Pd),Id.push(Pd.data)}td+=1,Rd._tasks.length===0&&ud("empty"),td===Rd.concurrency&&ud("saturated");var qd=onlyOnce(gd(Nd));ed(Id,qd)}kd=!1}},length(){return Rd._tasks.
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/lodash.exports;(function(Ra,qa){(function(){var Ja,ed="4.17.21",td=200,rd="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",sd="Expected a function",od="Invalid `variable` option passed into `_.template`",ld="__lodash_hash_undefined__",cd=500,ud="__lodash_placeholder__",_d=1,yd=2,gd=4,Ed=1,Td=2,kd=1,Rd=2,Nd=4,Id=8,Md=16,Ld=32,Pd=64,qd=128,Yd=256,Ud=512,Hd=30,Vd="...",Jd=800,Zd=16,pf=1,Xd=2,hf=3,mf=1/0,xf=9007199254740991,Lf=17976931348623157e292,Wf=NaN,Yf=4294967295,If=Yf-1,Sf=Yf>>>1,wf=[["ary",qd],["bind",kd],["bindKey",Rd],["curry",Id],["curryRight",Md],["flip",Ud],["partial",Ld],["partialRight",Pd],["rearg",Yd]],Kf="[object Arguments]",qf="[object Array]",gf="[object AsyncFunction]",_f="[object Boolean]",$f="[object Date]",zf="[object DOMException]",hh="[object Error]",Vf="[object Function]",kf="[object GeneratorFunction]",Jf="[object Map]",Ch="[object Number]",Gf="[object Null]",Tf="[object Object]",Af="[object Promise]",Pf="[object Proxy]",gh="[object RegExp]",Nh="[object Set]",dh="[object String]",jh="[object Symbol]",Dh="[object Undefined]",Fh="[object WeakMap]",Zh="[object WeakSet]",Wh="[object ArrayBuffer]",sm="[object DataView]",fm="[object Float32Array]",sh="[object Float64Array]",Rf="[object Int8Array]",Df="[object Int16Array]",Zf="[object Int32Array]",bh="[object Uint8Array]",Mh="[object Uint8ClampedArray]",Hh="[object Uint16Array]",Xh="[object Uint32Array]",gm=/\b__p \+= '';/g,om=/\b(__p \+=) '' \+/g,Gm=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fm=/&(?:amp|lt|gt|quot|#39);/g,Om=/[&<>"']/g,Jm=RegExp(Fm.source),N1=RegExp(Om.source),R1=/<%-([\s\S]+?)%>/g,x1=/<%([\s\S]+?)%>/g,Xm=/<%=([\s\S]+?)%>/g,F1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y1=/^\w*$/,V1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z1=/[\\^$.*+?()[\]{}|]/g,I1=RegExp(Z1.source),O1=/^\s+/,jm=/\s/,g1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,l0=/\{\n\/\* \[wrapped with (.+)\] \*/,B1=/,? & /,yf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ph=/[()=,{}\[\]\/\s]/,ih=/\\(\\)?/g,yh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lh=/\w*$/,$h=/^[-+]0x[0-9a-f]+$/i,Gh=/^0b[01]+$/i,Bh=/^\[object .+?Constructor\]$/,Ah=/^0o[0-7]+$/i,cm=/^(?:0|[1-9]\d*)$/,um=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_m=/($^)/,Ff=/['\n\r\u2028\u2029\\]/g,$m="\\ud800-\\udfff",m1="\\u0300-\\u036f",f1="\\ufe20-\\ufe2f",a1="\\u20d0-\\u20ff",Dm=m1+f1+a1,v1="\\u2700-\\u27bf",u1="a-z\\xdf-\\xf6\\xf8-\\xff",o1="\\xac\\xb1\\xd7\\xf7",oh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Oh="\\u2000-\\u206f",mm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lm="A-Z\\xc0-\\xd6\\xd8-\\xde",am="\\ufe0e\\ufe0f",Vm=o1+oh+Oh+mm,E1="[']",r0="["+$m+"]",q1="["+Vm+"]",N0="["+Dm+"]",g0="\\d+",h1="["+v1+"]",U0="["+u1+"]",j1="[^"+$m+Vm+g0+v1+u1+Lm+"]",E0="\\ud83c[\\udffb-\\udfff]",d0="(?:"+N0+"|"+E0+")",e_="[^"+$m+"]",m_="(?:\\ud83c[\\udde6-\\uddff]){2}",T0="[\\ud800-\\udbff][\\udc00-\\udfff]",t_="["+Lm+"]",ag="\\u200d",G_="(?:"+U0+"|"+j1+")",s1="(?:"+t_+"|"+j1+")",__="(?:"+E1+"(?:d|ll|m|re|s|t|ve))?",b0="(?:"+E1+"(?:D|LL|M|RE|S|T|VE))?",sg=d0+"?",yg="["+am+"]?",g_="(?:"+ag+"(?:"+[e_,m_,T0].join("|")+")"+yg+sg+")*",A_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",p0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",W0=yg+sg+g_,s_="(?:"+[h1,m_,T0].join("|")+")"+W0,r_="(?:"+[e_+N0+"?",N0,m_,T0,r0].join("|")+")",z_=RegExp(E1,"g"),gb=RegExp(N0,"g"),jg=RegExp(E0+"(?="+E0+")|"+r_+W0,"g"),bb=RegExp([t_+"?"+U0+"+"+__+"(?="+[q1,t_,"$"].join("|")+")",s1+"+"+b0+"(?="+[q1,t_+G_,"$"].join("|")+")",t_+"?"+G_+"+"+__,t_+"+"+b0,p0,A_,g0,s_].join("|"),"g"),Jb=RegExp("["+ag+$m+Dm+am+"]"),Ug=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTim
/* [wrapped with `+Kd+`] */
`)}function Bd(Fd){return k1(Fd)||Cv(Fd)||!!(wE&&Fd&&Fd[wE])}function Wd(Fd,Kd){var bf=typeof Fd;return Kd=Kd??xf,!!Kd&&(bf=="number"||bf!="symbol"&&cm.test(Fd))&&Fd>-1&&Fd%1==0&&Fd<Kd}function zd(Fd,Kd,bf){if(!A0(bf))return!1;var jf=typeof Kd;return(jf=="number"?x_(bf)&&Wd(Kd,bf.length):jf=="string"&&Kd in bf)?bg(bf[Kd],Fd):!1}function Qd(Fd,Kd){if(k1(Fd))return!1;var bf=typeof Fd;return bf=="number"||bf=="symbol"||bf=="boolean"||Fd==null||U_(Fd)?!0:y1.test(Fd)||!F1.test(Fd)||Kd!=null&&Fd in i0(Kd)}function Ef(Fd){var Kd=typeof Fd;return Kd=="string"||Kd=="number"||Kd=="symbol"||Kd=="boolean"?Fd!=="__proto__":Fd===null}function Of(Fd){var Kd=Sv(Fd),bf=wh[Kd];if(typeof bf!="function"||!(Kd in b1.prototype))return!1;if(Fd===bf)return!0;var jf=Tv(bf);return!!jf&&Fd===jf[0]}function Uf(Fd){return!!kv&&kv in Fd}var Qf=dg?fb:dT;function uh(Fd){var Kd=Fd&&Fd.constructor,bf=typeof Kd=="function"&&Kd.prototype||I_;return Fd===bf}function kh(Fd){return Fd===Fd&&!A0(Fd)}function qh(Fd,Kd){return function(bf){return bf==null?!1:bf[Fd]===Kd&&(Kd!==Ja||Fd in i0(bf))}}function Qh(Fd){var Kd=_2(Fd,function(jf){return bf.size===cd&&bf.clear(),jf}),bf=Kd.cache;return Kd}function Kh(Fd,Kd){var bf=Fd[1],jf=Kd[1],_h=bf|jf,Rh=_h<(kd|Rd|qd),Vh=jf==qd&&bf==Id||jf==qd&&bf==Yd&&Fd[7].length<=Kd[8]||jf==(qd|Yd)&&Kd[7].length<=Kd[8]&&bf==Id;if(!(Rh||Vh))return Fd;jf&kd&&(Fd[2]=Kd[2],_h|=bf&kd?0:Nd);var Yh=Kd[3];if(Yh){var im=Fd[3];Fd[3]=im?Yv(im,Yh,Kd[4]):Yh,Fd[4]=im?c_(Fd[3],ud):Kd[4]}return Yh=Kd[5],Yh&&(im=Fd[5],Fd[5]=im?oE(im,Yh,Kd[6]):Yh,Fd[6]=im?c_(Fd[5],ud):Kd[6]),Yh=Kd[7],Yh&&(Fd[7]=Yh),jf&qd&&(Fd[8]=Fd[8]==null?Kd[8]:R0(Fd[8],Kd[8])),Fd[9]==null&&(Fd[9]=Kd[9]),Fd[0]=Kd[0],Fd[1]=_h,Fd}function hm(Fd){var Kd=[];if(Fd!=null)for(var bf in i0(Fd))Kd.push(bf);return Kd}function Nm(Fd){return Y_.call(Fd)}function Hm(Fd,Kd,bf){return Kd=u0(Kd===Ja?Fd.length-1:Kd,0),function(){for(var jf=arguments,_h=-1,Rh=u0(jf.length-Kd,0),Vh=dm(Rh);++_h<Rh;)Vh[_h]=jf[Kd+_h];_h=-1;for(var Yh=dm(Kd+1);++_h<Kd;)Yh[_h]=jf[_h];return Yh[Kd]=bf(Vh),Pm(Fd,this,Yh)}}function Km(Fd,Kd){return Kd.length<2?Fd:Ig(Fd,L0(Kd,0,-1))}function Qm(Fd,Kd){for(var bf=Fd.length,jf=R0(Kd.length,bf),_h=a_(Fd);jf--;){var Rh=Kd[jf];Fd[jf]=Wd(Rh,bf)?_h[Rh]:Ja}return Fd}function Ym(Fd,Kd){if(!(Kd==="constructor"&&typeof Fd[Kd]=="function")&&Kd!="__proto__")return Fd[Kd]}var e1=n0(ZE),c1=Mv||function(Fd,Kd){return W1.setTimeout(Fd,Kd)},l1=n0(j2);function D1(Fd,Kd,bf){var jf=Kd+"";return l1(Fd,Ad(jf,C0(v0(jf),bf)))}function n0(Fd){var Kd=0,bf=0;return function(){var jf=C2(),_h=Zd-(jf-bf);if(bf=jf,_h>0){if(++Kd>=Jd)return arguments[0]}else Kd=0;return Fd.apply(Ja,arguments)}}function y0(Fd,Kd){var bf=-1,jf=Fd.length,_h=jf-1;for(Kd=Kd===Ja?jf:Kd;++bf<Kd;){var Rh=zv(bf,_h),Vh=Fd[Rh];Fd[Rh]=Fd[bf],Fd[bf]=Vh}return Fd.length=Kd,Fd}var o0=Qh(function(Fd){var Kd=[];return Fd.charCodeAt(0)===46&&Kd.push(""),Fd.replace(V1,function(bf,jf,_h,Rh){Kd.push(_h?Rh.replace(ih,"$1"):jf||bf)}),Kd});function m0(Fd){if(typeof Fd=="string"||U_(Fd))return Fd;var Kd=Fd+"";return Kd=="0"&&1/Fd==-mf?"-0":Kd}function x0(Fd){if(Fd!=null){try{return wb.call(Fd)}catch{}try{return Fd+""}catch{}}return""}function C0(Fd,Kd){return A1(wf,function(bf){var jf="_."+bf[0];Kd&bf[1]&&!Wg(Fd,jf)&&Fd.push(jf)}),Fd.sort()}function K0(Fd){if(Fd instanceof b1)return Fd.clone();var Kd=new t0(Fd.__wrapped__,Fd.__chain__);return Kd.__actions__=a_(Fd.__actions__),Kd.__index__=Fd.__index__,Kd.__values__=Fd.__values__,Kd}function G0(Fd,Kd,bf){(bf?zd(Fd,Kd,bf):Kd===Ja)?Kd=1:Kd=u0(M1(Kd),0);var jf=Fd==null?0:Fd.length;if(!jf||Kd<1)return[];for(var _h=0,Rh=0,Vh=dm(rv(jf/Kd));_h<jf;)Vh[Rh++]=L0(Fd,_h,_h+=Kd);return Vh}function I0(Fd){for(var Kd=-1,bf=Fd==null?0:Fd.length,jf=0,_h=[];++Kd<bf;){var Rh=Fd[Kd];Rh&&(_h[jf++]=Rh)}return _h}function w0(){var Fd=arguments.length;if(!Fd)return[];for(var Kd=dm(Fd-1),bf=arguments[0],jf=Fd;jf--;)Kd[jf-1]=arguments[jf];return D_(k1(bf)?a_(bf):[bf],M0(Kd,1))}var _0=$1(function(Fd,Kd){return F0(Fd)?lv(Fd,M0(Kd,1,F0,!0)):[]}),Z0=$1(function(Fd,Kd){var bf=ng(Kd);return F0(bf)&&(bf=Ja),F0(Fd)?lv(Fd,M0(Kd,1,F0,!0
`;Fd.replace(t1,function(S1,U1,z1,q_,h_,H_){return z1||(z1=q_),Um+=Fd.slice(Rm,H_).replace(Ff,Kg),U1&&(Yh=!0,Um+=`' +
__e(`+U1+`) +
'`),h_&&(im=!0,Um+=`';
`+h_+`;
__p += '`),z1&&(Um+=`' +
((__t = (`+z1+`)) == null ? '' : __t) +
'`),Rm=H_+S1.length,S1}),Um+=`';
`;var T1=J1.call(Kd,"variable")&&Kd.variable;if(!T1)Um=`with (obj) {
`+Um+`
}
`;else if(ph.test(T1))throw new w1(od);Um=(im?Um.replace(gm,""):Um).replace(om,"$1").replace(Gm,"$1;"),Um="function("+(T1||"obj")+`) {
`+(T1?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Yh?", __e = _.escape":"")+(im?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Um+`return __p
}`;var L1=VT(function(){return H1(Rh,p1+"return "+Um).apply(Ja,Vh)});if(L1.source=Um,tT(L1))throw L1;return L1}function f4(Fd){return a0(Fd).toLowerCase()}function h4(Fd){return a0(Fd).toUpperCase()}function m4(Fd,Kd,bf){if(Fd=a0(Fd),Fd&&(bf||Kd===Ja))return r1(Fd);if(!Fd||!(Kd=p_(Kd)))return Fd;var jf=R_(Fd),_h=R_(Kd),Rh=Y1(jf,_h),Vh=O0(jf,_h)+1;return _g(jf,Rh,Vh).join("")}function _4(Fd,Kd,bf){if(Fd=a0(Fd),Fd&&(bf||Kd===Ja))return Fd.slice(0,Oy(Fd)+1);if(!Fd||!(Kd=p_(Kd)))return Fd;var jf=R_(Fd),_h=O0(jf,R_(Kd))+1;return _g(jf,0,_h).join("")}function g4(Fd,Kd,bf){if(Fd=a0(Fd),Fd&&(bf||Kd===Ja))return Fd.replace(O1,"");if(!Fd||!(Kd=p_(Kd)))return Fd;var jf=R_(Fd),_h=Y1(jf,R_(Kd));return _g(jf,_h).join("")}function b4(Fd,Kd){var bf=Hd,jf=Vd;if(A0(Kd)){var _h="separator"in Kd?Kd.separator:_h;bf="length"in Kd?M1(Kd.length):bf,jf="omission"in Kd?p_(Kd.omission):jf}Fd=a0(Fd);var Rh=Fd.length;if(xb(Fd)){var Vh=R_(Fd);Rh=Vh.length}if(bf>=Rh)return Fd;var Yh=bf-Cb(jf);if(Yh<1)return jf;var im=Vh?_g(Vh,0,Yh).join(""):Fd.slice(0,Yh);if(_h===Ja)return im+jf;if(Vh&&(Yh+=im.length-Yh),rT(_h)){if(Fd.slice(Yh).search(_h)){var Rm,Mm=im;for(_h.global||(_h=tv(_h.source,a0(Lh.exec(_h))+"g")),_h.lastIndex=0;Rm=_h.exec(Mm);)var Um=Rm.index;im=im.slice(0,Um===Ja?Yh:Um)}}else if(Fd.indexOf(p_(_h),Yh)!=Yh){var t1=im.lastIndexOf(_h);t1>-1&&(im=im.slice(0,t1))}return im+jf}function y4(Fd){return Fd=a0(Fd),Fd&&Jm.test(Fd)?Fd.replace(Fm,TE):Fd}var E4=Vb(function(Fd,Kd,bf){return Fd+(bf?" ":"")+Kd.toUpperCase()}),aT=a2("toUpperCase");function zT(Fd,Kd,bf){return Fd=a0(Fd),Kd=bf?Ja:Kd,Kd===Ja?bE(Fd)?xE(Fd):Ry(Fd):Fd.match(Kd)||[]}var VT=$1(function(Fd,Kd){try{return Pm(Fd,Ja,Kd)}catch(bf){return tT(bf)?bf:new w1(bf)}}),T4=Z_(function(Fd,Kd){return A1(Kd,function(bf){bf=m0(bf),hg(Fd,bf,Z2(Fd[bf],Fd))}),Fd});function S4(Fd){var Kd=Fd==null?0:Fd.length,bf=_1();return Fd=Kd?s0(Fd,function(jf){if(typeof jf[1]!="function")throw new y_(sd);return[bf(jf[0]),jf[1]]}):[],$1(function(jf){for(var _h=-1;++_h<Kd;){var Rh=Fd[_h];if(Pm(Rh[0],this,jf))return Pm(Rh[1],this,jf)}})}function x4(Fd){return L2(d_(Fd,_d))}function sT(Fd){return function(){return Fd}}function C4(Fd,Kd){return Fd==null||Fd!==Fd?Kd:Fd}var w4=s2(),A4=s2(!0);function w_(Fd){return Fd}function oT(Fd){return Fb(typeof Fd=="function"?Fd:d_(Fd,_d))}function N4(Fd){return WE(d_(Fd,_d))}function D4(Fd,Kd){return eE(Fd,d_(Kd,_d))}var R4=$1(function(Fd,Kd){return function(bf){return Bb(bf,Fd,Kd)}}),I4=$1(function(Fd,Kd){return function(bf){return Bb(Fd,bf,Kd)}});function lT(Fd,Kd,bf){var jf=Q0(Kd),_h=Hv(Kd,jf);bf==null&&!(A0(Kd)&&(_h.length||!jf.length))&&(bf=Kd,Kd=Fd,Fd=this,_h=Hv(Kd,Q0(Kd)));var Rh=!(A0(bf)&&"chain"in bf)||!!bf.chain,Vh=fb(Fd);return A1(_h,function(Yh){var im=Kd[Yh];Fd[Yh]=im,Vh&&(Fd.prototype[Yh]=function(){var Rm=this.__chain__;if(Rh||Rm){var Mm=Fd(this.__wrapped__),Um=Mm.__actions__=a_(this.__actions__);return Um.push({func:im,args:arguments,thisArg:Fd}),Mm.__chain__=Rm,Mm}return im.apply(Fd,D_([this.value()],arguments))})}),Fd}function k4(){return W1._===this&&(W1._=J0),this}function cT(){}function O4(Fd){return Fd=M1(Fd),$1(function(Kd){return Ub(Kd,Fd)})}var $4=Xv(s0),M4=Xv(o_),L4=Xv(Sg);function WT(Fd){return Qd(Fd)?Th(m0(Fd)):P2(Fd)}function B4(Fd){return function(Kd){return Fd==null?Ja:Ig(Fd,Kd)}}var P4=pb(),F4=pb(!0);function uT(){return[]}function dT(){return!1}function j4(){return{}}function U4(){return""}function q4(){return!0}function H4(Fd,Kd){if(Fd=M1(Fd),Fd<1||Fd>xf)return[];var bf=Yf,jf=R0(Fd,Yf);Kd=_1(Kd),Fd-=Yf;for(var _h=Wm(jf,Kd);++bf<Fd;)Kd(bf);return _h}function G4(Fd){return k1(Fd)?s0(Fd,m0):U_(Fd)?[Fd]:a_(o0(a0(Fd)))}function z4(Fd){var Kd=++CE;return a0(Fd)+Kd}var V4=Wb(function(Fd,Kd){return Fd+Kd},0),W4=dE("ceil"),Y4=Wb(function(Fd,Kd){return Fd/Kd},1),K4=dE("floor");function X4(Fd){return Fd&&Fd.length?Uv(Fd,w_,Gv):Ja}function Q4(Fd,Kd){return Fd&&Fd.length?Uv(Fd,_1(Kd,2),Gv):Ja}function J4(Fd){return Xf(Fd,w_)}function Z4(Fd,Kd){return Xf(Fd,_1(Kd,2))}function ew(Fd){return Fd&&Fd.length?Uv(Fd,w_,cb):Ja}function tw(Fd,Kd){return Fd&&Fd.length?Uv(Fd,_1
`:"")),Ja&&Ja()}function rd(sd){return sd.interrupt?(sd.interrupt.append=Ra,sd.interrupt.end=td,sd.interrupt=!1,Ra(!0),!0):!1}if(Ra(!1,qa.indents+(qa.name?"<"+qa.name:"")+(qa.attributes.length?" "+qa.attributes.join(" "):"")+(ed?qa.name?">":"":qa.name?"/>":"")+(qa.indent&&ed>1?`
`:"")),!ed)return Ra(!1,qa.indent?`
`:"");rd(qa)||td()}function attribute(Ra,qa){return Ra+'="'+escapeForXML(qa)+'"'}xml$2.exports=xml$1;xml$2.exports.element=xml$2.exports.Element=element;var xmlExports=xml$2.exports;const Xml=getDefaultExportFromCjs(xmlExports);var xml2js={},defaults$1={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults$1.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal)),defaults$1}var builder={},lib$1={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var Ra,qa,Ja,ed,td,rd,sd,od=[].slice,ld={}.hasOwnProperty;Ra=function(){var cd,ud,_d,yd,gd,Ed;if(Ed=arguments[0],gd=2<=arguments.length?od.call(arguments,1):[],td(Object.assign))Object.assign.apply(null,arguments);else for(cd=0,_d=gd.length;cd<_d;cd++)if(yd=gd[cd],yd!=null)for(ud in yd)ld.call(yd,ud)&&(Ed[ud]=yd[ud]);return Ed},td=function(cd){return!!cd&&Object.prototype.toString.call(cd)==="[object Function]"},rd=function(cd){var ud;return!!cd&&((ud=typeof cd)=="function"||ud==="object")},Ja=function(cd){return td(Array.isArray)?Array.isArray(cd):Object.prototype.toString.call(cd)==="[object Array]"},ed=function(cd){var ud;if(Ja(cd))return!cd.length;for(ud in cd)if(ld.call(cd,ud))return!1;return!0},sd=function(cd){var ud,_d;return rd(cd)&&(_d=Object.getPrototypeOf(cd))&&(ud=_d.constructor)&&typeof ud=="function"&&ud instanceof ud&&Function.prototype.toString.call(ud)===Function.prototype.toString.call(Object)},qa=function(cd){return td(cd.valueOf)?cd.valueOf():cd},Utility.assign=Ra,Utility.isFunction=td,Utility.isObject=rd,Utility.isArray=Ja,Utility.isEmpty=ed,Utility.isPlainObject=sd,Utility.getValue=qa}).call(commonjsGlobal)),Utility}var XMLDOMImplementation={exports:{}},hasRequiredXMLDOMImplementation;function requireXMLDOMImplementation(){return hasRequiredXMLDOMImplementation||(hasRequiredXMLDOMImplementation=1,(function(){XMLDOMImplementation.exports=function(){function Ra(){}return Ra.prototype.hasFeature=function(qa,Ja){return!0},Ra.prototype.createDocumentType=function(qa,Ja,ed){throw new Error("This DOM method is not implemented.")},Ra.prototype.createDocument=function(qa,Ja,ed){throw new Error("This DOM method is not implemented.")},Ra.prototype.createHTMLDocument=function(qa){throw new Error("This DOM method is not implemented.")},Ra.prototype.getFeature=function(qa,Ja){throw new Error("This DOM method is not implemented.")},Ra}()}).call(commonjsGlobal)),XMLDOMImplementation.exports}var XMLDocument={exports:{}},XMLDOMConfiguration={exports:{}},XMLDOMErrorHandler={exports:{}},hasRequiredXMLDOMErrorHandler;function requireXMLDOMErrorHandler(){return hasRequiredXMLDOMErrorHandler||(hasRequiredXMLDOMErrorHandler=1,(function(){XMLDOMErrorHandler.exports=function(){function Ra(){}return Ra.prototype.handleError=function(qa){throw new Error(qa)},Ra}()}).call(commonjsGlobal)),XMLDOMErrorHandler.exports}var XMLDOMStringList={exports:{}},hasRequiredXMLDOMStringList;function requireXMLDOMStringList(){return hasRequiredXMLDOMStringList||(hasRequiredXMLDOMStringList=1,(function(){XMLDOMStringList.exports=function(){function Ra(qa){this.arr=qa||[]}return Object.defineProperty(Ra.prototype,"length",{get:function(){return this.arr.length}}),Ra.prototype.item=function(qa){return this.arr[qa]||null},Ra.prototype.contains=function(qa){return this.arr.indexOf(qa)!==-1},Ra}()}).call(commonjsGlobal)),XMLDOMStringList.exports}var hasRequiredXMLDOMConfiguration;function requireXMLDOMConfiguration(){return hasRequiredXMLDOMConfiguration||(hasRequiredXMLDOMConfiguration=1,(function(){var Ra,qa;Ra=requireXMLDOMErrorHandler(),qa=requireXMLDOMStringList(),XMLDOMConfiguration.exports=function(){function Ja(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Ra,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(Ja.prototype,"parameterNames",{get:function(){return new qa(Object.keys(this.defaultParams))}}),Ja.prototype.getParameter=function(ed){return this.params.hasOwnProperty(ed)?this.params[ed]:null},Ja.prototype.canSetParameter=function(ed,td){return!0},Ja.prototype.setParameter=fu
`,sd.offset=(cd=rd.offset)!=null?cd:0,sd.dontPrettyTextNodes=(ud=(_d=rd.dontPrettyTextNodes)!=null?_d:rd.dontprettytextnodes)!=null?ud:0,sd.spaceBeforeSlash=(yd=(gd=rd.spaceBeforeSlash)!=null?gd:rd.spacebeforeslash)!=null?yd:"",sd.spaceBeforeSlash===!0&&(sd.spaceBeforeSlash=" "),sd.suppressPrettyCount=0,sd.user={},sd.state=qa.None,sd},td.prototype.indent=function(rd,sd,od){var ld;return!sd.pretty||sd.suppressPrettyCount?"":sd.pretty&&(ld=(od||0)+sd.offset+1,ld>0)?new Array(ld).join(sd.indent):""},td.prototype.endline=function(rd,sd,od){return!sd.pretty||sd.suppressPrettyCount?"":sd.newline},td.prototype.attribute=function(rd,sd,od){var ld;return this.openAttribute(rd,sd,od),ld=" "+rd.name+'="'+rd.value+'"',this.closeAttribute(rd,sd,od),ld},td.prototype.cdata=function(rd,sd,od){var ld;return this.openNode(rd,sd,od),sd.state=qa.OpenTag,ld=this.indent(rd,sd,od)+"<![CDATA[",sd.state=qa.InsideTag,ld+=rd.value,sd.state=qa.CloseTag,ld+="]]>"+this.endline(rd,sd,od),sd.state=qa.None,this.closeNode(rd,sd,od),ld},td.prototype.comment=function(rd,sd,od){var ld;return this.openNode(rd,sd,od),sd.state=qa.OpenTag,ld=this.indent(rd,sd,od)+"<!-- ",sd.state=qa.InsideTag,ld+=rd.value,sd.state=qa.CloseTag,ld+=" -->"+this.endline(rd,sd,od),sd.state=qa.None,this.closeNode(rd,sd,od),ld},td.prototype.declaration=function(rd,sd,od){var ld;return this.openNode(rd,sd,od),sd.state=qa.OpenTag,ld=this.indent(rd,sd,od)+"<?xml",sd.state=qa.InsideTag,ld+=' version="'+rd.version+'"',rd.encoding!=null&&(ld+=' encoding="'+rd.encoding+'"'),rd.standalone!=null&&(ld+=' standalone="'+rd.standalone+'"'),sd.state=qa.CloseTag,ld+=sd.spaceBeforeSlash+"?>",ld+=this.endline(rd,sd,od),sd.state=qa.None,this.closeNode(rd,sd,od),ld},td.prototype.docType=function(rd,sd,od){var ld,cd,ud,_d,yd;if(od||(od=0),this.openNode(rd,sd,od),sd.state=qa.OpenTag,_d=this.indent(rd,sd,od),_d+="<!DOCTYPE "+rd.root().name,rd.pubID&&rd.sysID?_d+=' PUBLIC "'+rd.pubID+'" "'+rd.sysID+'"':rd.sysID&&(_d+=' SYSTEM "'+rd.sysID+'"'),rd.children.length>0){for(_d+=" [",_d+=this.endline(rd,sd,od),sd.state=qa.InsideTag,yd=rd.children,cd=0,ud=yd.length;cd<ud;cd++)ld=yd[cd],_d+=this.writeChildNode(ld,sd,od+1);sd.state=qa.CloseTag,_d+="]"}return sd.state=qa.CloseTag,_d+=sd.spaceBeforeSlash+">",_d+=this.endline(rd,sd,od),sd.state=qa.None,this.closeNode(rd,sd,od),_d},td.prototype.element=function(rd,sd,od){var ld,cd,ud,_d,yd,gd,Ed,Td,kd,Rd,Nd,Id,Md,Ld;od||(od=0),Rd=!1,Nd="",this.openNode(rd,sd,od),sd.state=qa.OpenTag,Nd+=this.indent(rd,sd,od)+"<"+rd.name,Id=rd.attribs;for(kd in Id)ed.call(Id,kd)&&(ld=Id[kd],Nd+=this.attribute(ld,sd,od));if(ud=rd.children.length,_d=ud===0?null:rd.children[0],ud===0||rd.children.every(function(Pd){return(Pd.type===Ra.Text||Pd.type===Ra.Raw)&&Pd.value===""}))sd.allowEmpty?(Nd+=">",sd.state=qa.CloseTag,Nd+="</"+rd.name+">"+this.endline(rd,sd,od)):(sd.state=qa.CloseTag,Nd+=sd.spaceBeforeSlash+"/>"+this.endline(rd,sd,od));else if(sd.pretty&&ud===1&&(_d.type===Ra.Text||_d.type===Ra.Raw)&&_d.value!=null)Nd+=">",sd.state=qa.InsideTag,sd.suppressPrettyCount++,Rd=!0,Nd+=this.writeChildNode(_d,sd,od+1),sd.suppressPrettyCount--,Rd=!1,sd.state=qa.CloseTag,Nd+="</"+rd.name+">"+this.endline(rd,sd,od);else{if(sd.dontPrettyTextNodes){for(Md=rd.children,yd=0,Ed=Md.length;yd<Ed;yd++)if(cd=Md[yd],(cd.type===Ra.Text||cd.type===Ra.Raw)&&cd.value!=null){sd.suppressPrettyCount++,Rd=!0;break}}for(Nd+=">"+this.endline(rd,sd,od),sd.state=qa.InsideTag,Ld=rd.children,gd=0,Td=Ld.length;gd<Td;gd++)cd=Ld[gd],Nd+=this.writeChildNode(cd,sd,od+1);sd.state=qa.CloseTag,Nd+=this.indent(rd,sd,od)+"</"+rd.name+">",Rd&&sd.suppressPrettyCount--,Nd+=this.endline(rd,sd,od),sd.state=qa.None}return this.closeNode(rd,sd,od),Nd},td.prototype.writeChildNode=function(rd,sd,od){switch(rd.type){case Ra.CData:return this.cdata(rd,sd,od);case Ra.Comment:return this.comment(rd,sd,od);case Ra.Element:return this.element(rd,sd,od);case Ra.Raw:return this.raw(rd,sd,od);case Ra.Text:return this.text(rd,sd,od);case Ra.ProcessingInstruction:return this.processingInstruction(rd,sd,od);case Ra.Dummy:return"";case Ra.Declaration:return
`||gf==="\r"||gf===" "}function Ld(gf){return gf==='"'||gf==="'"}function Pd(gf){return gf===">"||Md(gf)}function qd(gf,_f){return gf.test(_f)}function Yd(gf,_f){return!qd(gf,_f)}var Ud=0;qa.STATE={BEGIN:Ud++,BEGIN_WHITESPACE:Ud++,TEXT:Ud++,TEXT_ENTITY:Ud++,OPEN_WAKA:Ud++,SGML_DECL:Ud++,SGML_DECL_QUOTED:Ud++,DOCTYPE:Ud++,DOCTYPE_QUOTED:Ud++,DOCTYPE_DTD:Ud++,DOCTYPE_DTD_QUOTED:Ud++,COMMENT_STARTING:Ud++,COMMENT:Ud++,COMMENT_ENDING:Ud++,COMMENT_ENDED:Ud++,CDATA:Ud++,CDATA_ENDING:Ud++,CDATA_ENDING_2:Ud++,PROC_INST:Ud++,PROC_INST_BODY:Ud++,PROC_INST_ENDING:Ud++,OPEN_TAG:Ud++,OPEN_TAG_SLASH:Ud++,ATTRIB:Ud++,ATTRIB_NAME:Ud++,ATTRIB_NAME_SAW_WHITE:Ud++,ATTRIB_VALUE:Ud++,ATTRIB_VALUE_QUOTED:Ud++,ATTRIB_VALUE_CLOSED:Ud++,ATTRIB_VALUE_UNQUOTED:Ud++,ATTRIB_VALUE_ENTITY_Q:Ud++,ATTRIB_VALUE_ENTITY_U:Ud++,CLOSE_TAG:Ud++,CLOSE_TAG_SAW_WHITE:Ud++,SCRIPT:Ud++,SCRIPT_ENDING:Ud++},qa.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},qa.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(qa.ENTITIES).forEach(function(gf){var _f=qa.ENTITIES[gf],$f=typeof _f=="number"?String.fromCharCode(_f):_f;qa.ENTITIES[gf]=$f});for(var Hd in qa.STATE)qa.STATE[qa.STATE[Hd]]=Hd;Ud=qa.STATE;function Vd(gf,_f,$f){gf[_f]&&gf[_f]($f)}function Jd(gf,_f,$f){gf.textNode&&Zd(gf),Vd(gf,_f,$f)}function Zd(gf){gf.textNode=pf(gf.opt,gf.textNode),gf.textNode&&Vd(gf,"ontext",gf.textNode),gf.textNode=""}function pf(gf,_f){return gf.trim&&(_f=_f.trim()),gf.normalize&&(_f=_f.replace(/\s+/g," ")),_f}function Xd(gf,_f){return Zd(gf),gf.trackPosition&&(_f+=`
Line: `+gf.line+`
Column: `+gf.column+`
Char: `+gf.c),_f=new Error(_f),gf.error=_f,Vd(gf,"onerror",_f),gf}function hf(gf){return gf.sawRoot&&!gf.closedRoot&&mf(gf,"Unclosed root tag"),gf.state!==Ud.BEGIN&&gf.state!==Ud.BEGIN_WHITESPACE&&gf.state!==Ud.TEXT&&Xd(gf,"Unexpected end"),Zd(gf),gf.c="",gf.closed=!0,Vd(gf,"onend"),ed.call(gf,gf.strict,gf.opt),gf}function mf(gf,_f){if(typeof gf!="object"||!(gf instanceof ed))throw new Error("bad call to strictFail");gf.strict&&Xd(gf,_f)}function xf(gf){gf.strict||(gf.tagName=gf.tagName[gf.looseCase]());var _f=gf.tags[gf.tags.length-1]||gf,$f=gf.tag={name:gf.tagName,attributes:{}};gf.opt.xmlns&&($f.ns=_f.ns),gf.attribList.length=0,Jd(gf,"onopentagstart",$f)}function Lf(gf,_f){var $f=gf.indexOf(":"),zf=$f<0?["",gf]:gf.split(":"),hh=zf[0],Vf=zf[1];return _f&&gf==="xmlns"&&(hh="xmlns",Vf=""),{prefix:hh,local:Vf}}function Wf(gf){if(gf.strict||(gf.attribName=gf.attribName[gf.looseCase]()),gf.attribList.indexOf(gf.attribName)!==-1||gf.tag.attributes.hasOwnProperty(gf.attribName)){gf.attribName=gf.attribValue="";return}if(gf.opt.xmlns){var _f=Lf(gf.attribName,!0),$f=_f.prefix,zf=_f.local;if($f==="xmlns")if(zf==="xml"&&gf.attribValue!==gd)mf(gf,"xml: prefix must be bound to "+gd+`
Actual: `+gf.attribValue);else if(zf==="xmlns"&&gf.attribValue!==Ed)mf(gf,"xmlns: prefix must be bound to "+Ed+`
Actual: `+gf.attribValue);else{var hh=gf.tag,Vf=gf.tags[gf.tags.length-1]||gf;hh.ns===Vf.ns&&(hh.ns=Object.create(Vf.ns)),hh.ns[zf]=gf.attribValue}gf.attribList.push([gf.attribName,gf.attribValue])}else gf.tag.attributes[gf.attribName]=gf.attribValue,Jd(gf,"onattribute",{name:gf.attribName,value:gf.attribValue});gf.attribName=gf.attribValue=""}function Yf(gf,_f){if(gf.opt.xmlns){var $f=gf.tag,zf=Lf(gf.tagName);$f.prefix=zf.prefix,$f.local=zf.local,$f.uri=$f.ns[zf.prefix]||"",$f.prefix&&!$f.uri&&(mf(gf,"Unbound namespace prefix: "+JSON.stringify(gf.tagName)),$f.uri=zf.prefix);var hh=gf.tags[gf.tags.length-1]||gf;$f.ns&&hh.ns!==$f.ns&&Object.keys($f.ns).forEach(function(dh){Jd(gf,"onopennamespace",{prefix:dh,uri:$f.ns[dh]})});for(var Vf=0,kf=gf.attribList.length;Vf<kf;Vf++){var Jf=gf.attribList[Vf],Ch=Jf[0],Gf=Jf[1],Tf=Lf(Ch,!0),Af=Tf.prefix,Pf=Tf.local,gh=Af===""?"":$f.ns[Af]||"",Nh={name:Ch,value:Gf,prefix:Af,local:Pf,uri:gh};Af&&Af!=="xmlns"&&!gh&&(mf(gf,"Unbound namespace prefix: "+JSON.stringify(Af)),Nh.uri=Af),gf.tag.attributes[Ch]=Nh,Jd(gf,"onattribute",Nh)}gf.attribList.length=0}gf.tag.isSelfClosing=!!_f,gf.sawRoot=!0,gf.tags.push(gf.tag),Jd(gf,"onopentag",gf.tag),_f||(!gf.noscript&&gf.tagName.toLowerCase()==="script"?gf.state=Ud.SCRIPT:gf.state=Ud.TEXT,gf.tag=null,gf.tagName=""),gf.attribName=gf.attribValue="",gf.attribList.length=0}function If(gf){if(!gf.tagName){mf(gf,"Weird empty close tag."),gf.textNode+="</>",gf.state=Ud.TEXT;return}if(gf.script){if(gf.tagName!=="script"){gf.script+="</"+gf.tagName+">",gf.tagName="",gf.state=Ud.SCRIPT;return}Jd(gf,"onscript",gf.script),gf.script=""}var _f=gf.tags.length,$f=gf.tagName;gf.strict||($f=$f[gf.looseCase]());for(var zf=$f;_f--;){var hh=gf.tags[_f];if(hh.name!==zf)mf(gf,"Unexpected close tag");else break}if(_f<0){mf(gf,"Unmatched closing tag: "+gf.tagName),gf.textNode+="</"+gf.tagName+">",gf.state=Ud.TEXT;return}gf.tagName=$f;for(var Vf=gf.tags.length;Vf-- >_f;){var kf=gf.tag=gf.tags.pop();gf.tagName=gf.tag.name,Jd(gf,"onclosetag",gf.tagName);var Jf={};for(var Ch in kf.ns)Jf[Ch]=kf.ns[Ch];var Gf=gf.tags[gf.tags.length-1]||gf;gf.opt.xmlns&&kf.ns!==Gf.ns&&Object.keys(kf.ns).forEach(function(Tf){var Af=kf.ns[Tf];Jd(gf,"onclosenamespace",{prefix:Tf,uri:Af})})}_f===0&&(gf.closedRoot=!0),gf.tagName=gf.attribValue=gf.attribName="",gf.attribList.length=0,gf.state=Ud.TEXT}function Sf(gf){var _f=gf.entity,$f=_f.toLowerCase(),zf,hh="";return gf.ENTITIES[_f]?gf.ENTITIES[_f]:gf.ENTITIES[$f]?gf.ENTITIES[$f]:(_f=$f,_f.charAt(0)==="#"&&(_f.charAt(1)==="x"?(_f=_f.slice(2),zf=parseInt(_f,16),hh=zf.toString(16)):(_f=_f.slice(1),zf=parseInt(_f,10),hh=zf.toString(10))),_f=_f.replace(/^0+/,""),isNaN(zf)||hh.toLowerCase()!==_f?(mf(gf,"Invalid character entity"),"&"+gf.entity+";"):String.fromCodePoint(zf))}function wf(gf,_f){_f==="<"?(gf.state=Ud.OPEN_WAKA,gf.startTagPosition=gf.position):Md(_f)||(mf(gf,"Non-whitespace before first tag."),gf.textNode=_f,gf.state=Ud.TEXT)}function Kf(gf,_f){var $f="";return _f<gf.length&&($f=gf.charAt(_f)),$f}function qf(gf){var _f=this;if(this.error)throw this.error;if(_f.closed)return Xd(_f,"Cannot write after close. Assign an onready handler.");if(gf===null)return hf(_f);typeof gf=="object"&&(gf=gf.toString());for(var $f=0,zf="";zf=Kf(gf,$f++),_f.c=zf,!!zf;)switch(_f.trackPosition&&(_f.position++,zf===`
`?(_f.line++,_f.column=0):_f.column++),_f.state){case Ud.BEGIN:if(_f.state=Ud.BEGIN_WHITESPACE,zf==="\uFEFF")continue;wf(_f,zf);continue;case Ud.BEGIN_WHITESPACE:wf(_f,zf);continue;case Ud.TEXT:if(_f.sawRoot&&!_f.closedRoot){for(var hh=$f-1;zf&&zf!=="<"&&zf!=="&";)zf=Kf(gf,$f++),zf&&_f.trackPosition&&(_f.position++,zf===`
`?(_f.line++,_f.column=0):_f.column++);_f.textNode+=gf.substring(hh,$f-1)}zf==="<"&&!(_f.sawRoot&&_f.closedRoot&&!_f.strict)?(_f.state=Ud.OPEN_WAKA,_f.startTagPosition=_f.position):(!Md(zf)&&(!_f.sawRoot||_f.closedRoot)&&mf(_f,"Text data outside of root node."),zf==="&"?_f.state=Ud.TEXT_ENTITY:_f.textNode+=zf);continue;case Ud.SCRIPT:zf==="<"?_f.state=Ud.SCRIPT_ENDING:_f.script+=zf;continue;case Ud.SCRIPT_ENDING:zf==="/"?_f.state=Ud.CLOSE_TAG:(_f.script+="<"+zf,_f.state=Ud.SCRIPT);continue;case Ud.OPEN_WAKA:if(zf==="!")_f.state=Ud.SGML_DECL,_f.sgmlDecl="";else if(!Md(zf))if(qd(kd,zf))_f.state=Ud.OPEN_TAG,_f.tagName=zf;else if(zf==="/")_f.state=Ud.CLOSE_TAG,_f.tagName="";else if(zf==="?")_f.state=Ud.PROC_INST,_f.procInstName=_f.procInstBody="";else{if(mf(_f,"Unencoded <"),_f.startTagPosition+1<_f.position){var Vf=_f.position-_f.startTagPosition;zf=new Array(Vf).join(" ")+zf}_f.textNode+="<"+zf,_f.state=Ud.TEXT}continue;case Ud.SGML_DECL:if(_f.sgmlDecl+zf==="--"){_f.state=Ud.COMMENT,_f.comment="",_f.sgmlDecl="";continue}_f.doctype&&_f.doctype!==!0&&_f.sgmlDecl?(_f.state=Ud.DOCTYPE_DTD,_f.doctype+="<!"+_f.sgmlDecl+zf,_f.sgmlDecl=""):(_f.sgmlDecl+zf).toUpperCase()===_d?(Jd(_f,"onopencdata"),_f.state=Ud.CDATA,_f.sgmlDecl="",_f.cdata=""):(_f.sgmlDecl+zf).toUpperCase()===yd?(_f.state=Ud.DOCTYPE,(_f.doctype||_f.sawRoot)&&mf(_f,"Inappropriately located doctype declaration"),_f.doctype="",_f.sgmlDecl=""):zf===">"?(Jd(_f,"onsgmldeclaration",_f.sgmlDecl),_f.sgmlDecl="",_f.state=Ud.TEXT):(Ld(zf)&&(_f.state=Ud.SGML_DECL_QUOTED),_f.sgmlDecl+=zf);continue;case Ud.SGML_DECL_QUOTED:zf===_f.q&&(_f.state=Ud.SGML_DECL,_f.q=""),_f.sgmlDecl+=zf;continue;case Ud.DOCTYPE:zf===">"?(_f.state=Ud.TEXT,Jd(_f,"ondoctype",_f.doctype),_f.doctype=!0):(_f.doctype+=zf,zf==="["?_f.state=Ud.DOCTYPE_DTD:Ld(zf)&&(_f.state=Ud.DOCTYPE_QUOTED,_f.q=zf));continue;case Ud.DOCTYPE_QUOTED:_f.doctype+=zf,zf===_f.q&&(_f.q="",_f.state=Ud.DOCTYPE);continue;case Ud.DOCTYPE_DTD:zf==="]"?(_f.doctype+=zf,_f.state=Ud.DOCTYPE):zf==="<"?(_f.state=Ud.OPEN_WAKA,_f.startTagPosition=_f.position):Ld(zf)?(_f.doctype+=zf,_f.state=Ud.DOCTYPE_DTD_QUOTED,_f.q=zf):_f.doctype+=zf;continue;case Ud.DOCTYPE_DTD_QUOTED:_f.doctype+=zf,zf===_f.q&&(_f.state=Ud.DOCTYPE_DTD,_f.q="");continue;case Ud.COMMENT:zf==="-"?_f.state=Ud.COMMENT_ENDING:_f.comment+=zf;continue;case Ud.COMMENT_ENDING:zf==="-"?(_f.state=Ud.COMMENT_ENDED,_f.comment=pf(_f.opt,_f.comment),_f.comment&&Jd(_f,"oncomment",_f.comment),_f.comment=""):(_f.comment+="-"+zf,_f.state=Ud.COMMENT);continue;case Ud.COMMENT_ENDED:zf!==">"?(mf(_f,"Malformed comment"),_f.comment+="--"+zf,_f.state=Ud.COMMENT):_f.doctype&&_f.doctype!==!0?_f.state=Ud.DOCTYPE_DTD:_f.state=Ud.TEXT;continue;case Ud.CDATA:zf==="]"?_f.state=Ud.CDATA_ENDING:_f.cdata+=zf;continue;case Ud.CDATA_ENDING:zf==="]"?_f.state=Ud.CDATA_ENDING_2:(_f.cdata+="]"+zf,_f.state=Ud.CDATA);continue;case Ud.CDATA_ENDING_2:zf===">"?(_f.cdata&&Jd(_f,"oncdata",_f.cdata),Jd(_f,"onclosecdata"),_f.cdata="",_f.state=Ud.TEXT):zf==="]"?_f.cdata+="]":(_f.cdata+="]]"+zf,_f.state=Ud.CDATA);continue;case Ud.PROC_INST:zf==="?"?_f.state=Ud.PROC_INST_ENDING:Md(zf)?_f.state=Ud.PROC_INST_BODY:_f.procInstName+=zf;continue;case Ud.PROC_INST_BODY:if(!_f.procInstBody&&Md(zf))continue;zf==="?"?_f.state=Ud.PROC_INST_ENDING:_f.procInstBody+=zf;continue;case Ud.PROC_INST_ENDING:zf===">"?(Jd(_f,"onprocessinginstruction",{name:_f.procInstName,body:_f.procInstBody}),_f.procInstName=_f.procInstBody="",_f.state=Ud.TEXT):(_f.procInstBody+="?"+zf,_f.state=Ud.PROC_INST_BODY);continue;case Ud.OPEN_TAG:qd(Rd,zf)?_f.tagName+=zf:(xf(_f),zf===">"?Yf(_f):zf==="/"?_f.state=Ud.OPEN_TAG_SLASH:(Md(zf)||mf(_f,"Invalid character in tag name"),_f.state=Ud.ATTRIB));continue;case Ud.OPEN_TAG_SLASH:zf===">"?(Yf(_f,!0),If(_f)):(mf(_f,"Forward-slash in opening tag not followed by >"),_f.state=Ud.ATTRIB);continue;case Ud.ATTRIB:if(Md(zf))continue;zf===">"?Yf(_f):zf==="/"?_f.state=Ud.OPEN_TAG_SLASH:qd(kd,zf)?(_f.attribName=zf,_f.attribValue="",_f.state=Ud.ATTRIB_NAME):mf(_f,"Invalid attribute name");continue;case Ud.ATTRIB_NAME:zf==="="?_f.state
`&&Ra[rd]!=="\r";rd++)ld+=Ra[rd];if(ld=ld.trim(),ld[ld.length-1]==="/"&&(ld=ld.substring(0,ld.length-1),rd--),!validateTagName(ld)){let _d;return ld.trim().length===0?_d="Invalid space after '<'.":_d="Tag '"+ld+"' is an invalid name.",getErrorObject("InvalidTag",_d,getLineNumberForPosition(Ra,rd))}const cd=readAttributeStr(Ra,rd);if(cd===!1)return getErrorObject("InvalidAttr","Attributes for '"+ld+"' have open quote.",getLineNumberForPosition(Ra,rd));let ud=cd.value;if(rd=cd.index,ud[ud.length-1]==="/"){const _d=rd-ud.length;ud=ud.substring(0,ud.length-1);const yd=validateAttributeString(ud,qa);if(yd===!0)ed=!0;else return getErrorObject(yd.err.code,yd.err.msg,getLineNumberForPosition(Ra,_d+yd.err.line))}else if(od)if(cd.tagClosed){if(ud.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+ld+"' can't have attributes or invalid starting.",getLineNumberForPosition(Ra,sd));if(Ja.length===0)return getErrorObject("InvalidTag","Closing tag '"+ld+"' has not been opened.",getLineNumberForPosition(Ra,sd));{const _d=Ja.pop();if(ld!==_d.tagName){let yd=getLineNumberForPosition(Ra,_d.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+_d.tagName+"' (opened in line "+yd.line+", col "+yd.col+") instead of closing tag '"+ld+"'.",getLineNumberForPosition(Ra,sd))}Ja.length==0&&(td=!0)}}else return getErrorObject("InvalidTag","Closing tag '"+ld+"' doesn't have proper closing.",getLineNumberForPosition(Ra,rd));else{const _d=validateAttributeString(ud,qa);if(_d!==!0)return getErrorObject(_d.err.code,_d.err.msg,getLineNumberForPosition(Ra,rd-ud.length+_d.err.line));if(td===!0)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(Ra,rd));qa.unpairedTags.indexOf(ld)!==-1||Ja.push({tagName:ld,tagStartPos:sd}),ed=!0}for(rd++;rd<Ra.length;rd++)if(Ra[rd]==="<")if(Ra[rd+1]==="!"){rd++,rd=readCommentAndCDATA(Ra,rd);continue}else if(Ra[rd+1]==="?"){if(rd=readPI(Ra,++rd),rd.err)return rd}else break;else if(Ra[rd]==="&"){const _d=validateAmpersand(Ra,rd);if(_d==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(Ra,rd));rd=_d}else if(td===!0&&!isWhiteSpace(Ra[rd]))return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(Ra,rd));Ra[rd]==="<"&&rd--}}else{if(isWhiteSpace(Ra[rd]))continue;return getErrorObject("InvalidChar","char '"+Ra[rd]+"' is not expected.",getLineNumberForPosition(Ra,rd))}if(ed){if(Ja.length==1)return getErrorObject("InvalidTag","Unclosed tag '"+Ja[0].tagName+"'.",getLineNumberForPosition(Ra,Ja[0].tagStartPos));if(Ja.length>0)return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(Ja.map(rd=>rd.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return getErrorObject("InvalidXml","Start tag expected.",1);return!0};function isWhiteSpace(Ra){return Ra===" "||Ra===" "||Ra===`
`||Ra==="\r"}function readPI(Ra,qa){const Ja=qa;for(;qa<Ra.length;qa++)if(Ra[qa]=="?"||Ra[qa]==" "){const ed=Ra.substr(Ja,qa-Ja);if(qa>5&&ed==="xml")return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(Ra,qa));if(Ra[qa]=="?"&&Ra[qa+1]==">"){qa++;break}else continue}return qa}function readCommentAndCDATA(Ra,qa){if(Ra.length>qa+5&&Ra[qa+1]==="-"&&Ra[qa+2]==="-"){for(qa+=3;qa<Ra.length;qa++)if(Ra[qa]==="-"&&Ra[qa+1]==="-"&&Ra[qa+2]===">"){qa+=2;break}}else if(Ra.length>qa+8&&Ra[qa+1]==="D"&&Ra[qa+2]==="O"&&Ra[qa+3]==="C"&&Ra[qa+4]==="T"&&Ra[qa+5]==="Y"&&Ra[qa+6]==="P"&&Ra[qa+7]==="E"){let Ja=1;for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="<")Ja++;else if(Ra[qa]===">"&&(Ja--,Ja===0))break}else if(Ra.length>qa+9&&Ra[qa+1]==="["&&Ra[qa+2]==="C"&&Ra[qa+3]==="D"&&Ra[qa+4]==="A"&&Ra[qa+5]==="T"&&Ra[qa+6]==="A"&&Ra[qa+7]==="["){for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="]"&&Ra[qa+1]==="]"&&Ra[qa+2]===">"){qa+=2;break}}return qa}const doubleQuote='"',singleQuote="'";function readAttributeStr(Ra,qa){let Ja="",ed="",td=!1;for(;qa<Ra.length;qa++){if(Ra[qa]===doubleQuote||Ra[qa]===singleQuote)ed===""?ed=Ra[qa]:ed!==Ra[qa]||(ed="");else if(Ra[qa]===">"&&ed===""){td=!0;break}Ja+=Ra[qa]}return ed!==""?!1:{value:Ja,index:qa,tagClosed:td}}const validAttrStrRegxp=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString(Ra,qa){const Ja=util$3.getAllMatches(Ra,validAttrStrRegxp),ed={};for(let td=0;td<Ja.length;td++){if(Ja[td][1].length===0)return getErrorObject("InvalidAttr","Attribute '"+Ja[td][2]+"' has no space in starting.",getPositionFromMatch(Ja[td]));if(Ja[td][3]!==void 0&&Ja[td][4]===void 0)return getErrorObject("InvalidAttr","Attribute '"+Ja[td][2]+"' is without value.",getPositionFromMatch(Ja[td]));if(Ja[td][3]===void 0&&!qa.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute '"+Ja[td][2]+"' is not allowed.",getPositionFromMatch(Ja[td]));const rd=Ja[td][2];if(!validateAttrName(rd))return getErrorObject("InvalidAttr","Attribute '"+rd+"' is an invalid name.",getPositionFromMatch(Ja[td]));if(!ed.hasOwnProperty(rd))ed[rd]=1;else return getErrorObject("InvalidAttr","Attribute '"+rd+"' is repeated.",getPositionFromMatch(Ja[td]))}return!0}function validateNumberAmpersand(Ra,qa){let Ja=/\d/;for(Ra[qa]==="x"&&(qa++,Ja=/[\da-fA-F]/);qa<Ra.length;qa++){if(Ra[qa]===";")return qa;if(!Ra[qa].match(Ja))break}return-1}function validateAmpersand(Ra,qa){if(qa++,Ra[qa]===";")return-1;if(Ra[qa]==="#")return qa++,validateNumberAmpersand(Ra,qa);let Ja=0;for(;qa<Ra.length;qa++,Ja++)if(!(Ra[qa].match(/\w/)&&Ja<20)){if(Ra[qa]===";")break;return-1}return qa}function getErrorObject(Ra,qa,Ja){return{err:{code:Ra,msg:qa,line:Ja.line||Ja,col:Ja.col}}}function validateAttrName(Ra){return util$3.isName(Ra)}function validateTagName(Ra){return util$3.isName(Ra)}function getLineNumberForPosition(Ra,qa){const Ja=Ra.substring(0,qa).split(/\r?\n/);return{line:Ja.length,col:Ja[Ja.length-1].length+1}}function getPositionFromMatch(Ra){return Ra.startIndex+Ra[1].length}var OptionsBuilder={};const defaultOptions$1={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Ra,qa){return qa},attributeValueProcessor:function(Ra,qa){return qa},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Ra,qa,Ja){return Ra}},buildOptions$1=function(Ra){return Object.assign({},defaultOptions$1,Ra)};OptionsBuilder.buildOptions=buildOptions$1;OptionsBuilder.defaultOptions=defaultOptions$1;class XmlNode{constructor(qa){this.tagname=qa,this.child=[],this[":@"]={}}add(qa,Ja){qa==="__proto__"&&(qa="#__proto__"),this.child.push({[qa]:Ja})}addChild(qa)
`);const qa=new xmlNode("!xml");let Ja=qa,ed="",td="";for(let rd=0;rd<Ra.length;rd++)if(Ra[rd]==="<")if(Ra[rd+1]==="/"){const od=findClosingIndex(Ra,">",rd,"Closing Tag is not closed.");let ld=Ra.substring(rd+2,od).trim();if(this.options.removeNSPrefix){const _d=ld.indexOf(":");_d!==-1&&(ld=ld.substr(_d+1))}this.options.transformTagName&&(ld=this.options.transformTagName(ld)),Ja&&(ed=this.saveTextToParentTag(ed,Ja,td));const cd=td.substring(td.lastIndexOf(".")+1);if(ld&&this.options.unpairedTags.indexOf(ld)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${ld}>`);let ud=0;cd&&this.options.unpairedTags.indexOf(cd)!==-1?(ud=td.lastIndexOf(".",td.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ud=td.lastIndexOf("."),td=td.substring(0,ud),Ja=this.tagsNodeStack.pop(),ed="",rd=od}else if(Ra[rd+1]==="?"){let od=readTagExp(Ra,rd,!1,"?>");if(!od)throw new Error("Pi Tag is not closed.");if(ed=this.saveTextToParentTag(ed,Ja,td),!(this.options.ignoreDeclaration&&od.tagName==="?xml"||this.options.ignorePiTags)){const ld=new xmlNode(od.tagName);ld.add(this.options.textNodeName,""),od.tagName!==od.tagExp&&od.attrExpPresent&&(ld[":@"]=this.buildAttributesMap(od.tagExp,td,od.tagName)),this.addChild(Ja,ld,td)}rd=od.closeIndex+1}else if(Ra.substr(rd+1,3)==="!--"){const od=findClosingIndex(Ra,"-->",rd+4,"Comment is not closed.");if(this.options.commentPropName){const ld=Ra.substring(rd+4,od-2);ed=this.saveTextToParentTag(ed,Ja,td),Ja.add(this.options.commentPropName,[{[this.options.textNodeName]:ld}])}rd=od}else if(Ra.substr(rd+1,2)==="!D"){const od=readDocType(Ra,rd);this.docTypeEntities=od.entities,rd=od.i}else if(Ra.substr(rd+1,2)==="!["){const od=findClosingIndex(Ra,"]]>",rd,"CDATA is not closed.")-2,ld=Ra.substring(rd+9,od);ed=this.saveTextToParentTag(ed,Ja,td);let cd=this.parseTextData(ld,Ja.tagname,td,!0,!1,!0,!0);cd==null&&(cd=""),this.options.cdataPropName?Ja.add(this.options.cdataPropName,[{[this.options.textNodeName]:ld}]):Ja.add(this.options.textNodeName,cd),rd=od+2}else{let od=readTagExp(Ra,rd,this.options.removeNSPrefix),ld=od.tagName;const cd=od.rawTagName;let ud=od.tagExp,_d=od.attrExpPresent,yd=od.closeIndex;this.options.transformTagName&&(ld=this.options.transformTagName(ld)),Ja&&ed&&Ja.tagname!=="!xml"&&(ed=this.saveTextToParentTag(ed,Ja,td,!1));const gd=Ja;if(gd&&this.options.unpairedTags.indexOf(gd.tagname)!==-1&&(Ja=this.tagsNodeStack.pop(),td=td.substring(0,td.lastIndexOf("."))),ld!==qa.tagname&&(td+=td?"."+ld:ld),this.isItStopNode(this.options.stopNodes,td,ld)){let Ed="";if(ud.length>0&&ud.lastIndexOf("/")===ud.length-1)ld[ld.length-1]==="/"?(ld=ld.substr(0,ld.length-1),td=td.substr(0,td.length-1),ud=ld):ud=ud.substr(0,ud.length-1),rd=od.closeIndex;else if(this.options.unpairedTags.indexOf(ld)!==-1)rd=od.closeIndex;else{const kd=this.readStopNodeData(Ra,cd,yd+1);if(!kd)throw new Error(`Unexpected end of ${cd}`);rd=kd.i,Ed=kd.tagContent}const Td=new xmlNode(ld);ld!==ud&&_d&&(Td[":@"]=this.buildAttributesMap(ud,td,ld)),Ed&&(Ed=this.parseTextData(Ed,ld,td,!0,_d,!0,!0)),td=td.substr(0,td.lastIndexOf(".")),Td.add(this.options.textNodeName,Ed),this.addChild(Ja,Td,td)}else{if(ud.length>0&&ud.lastIndexOf("/")===ud.length-1){ld[ld.length-1]==="/"?(ld=ld.substr(0,ld.length-1),td=td.substr(0,td.length-1),ud=ld):ud=ud.substr(0,ud.length-1),this.options.transformTagName&&(ld=this.options.transformTagName(ld));const Ed=new xmlNode(ld);ld!==ud&&_d&&(Ed[":@"]=this.buildAttributesMap(ud,td,ld)),this.addChild(Ja,Ed,td),td=td.substr(0,td.lastIndexOf("."))}else{const Ed=new xmlNode(ld);this.tagsNodeStack.push(Ja),ld!==ud&&_d&&(Ed[":@"]=this.buildAttributesMap(ud,td,ld)),this.addChild(Ja,Ed,td),Ja=Ed}ed="",rd=yd}}else ed+=Ra[rd];return qa.child};function addChild(Ra,qa,Ja){const ed=this.options.updateTag(qa.tagname,Ja,qa[":@"]);ed===!1||(typeof ed=="string"&&(qa.tagname=ed),Ra.addChild(qa))}const replaceEntitiesValue$1=function(Ra){if(this.options.processEntities){for(let qa in this.docTypeEntities){const Ja=this.docTypeEntities[qa];Ra=Ra.replace(Ja.regx,Ja.val)}for(let qa in this.lastEntities){const Ja=this.lastEntit
`;function toXml(Ra,qa){let Ja="";return qa.format&&qa.indentBy.length>0&&(Ja=EOL),arrToStr(Ra,qa,"",Ja)}function arrToStr(Ra,qa,Ja,ed){let td="",rd=!1;for(let sd=0;sd<Ra.length;sd++){const od=Ra[sd],ld=propName(od);if(ld===void 0)continue;let cd="";if(Ja.length===0?cd=ld:cd=`${Ja}.${ld}`,ld===qa.textNodeName){let Ed=od[ld];isStopNode(cd,qa)||(Ed=qa.tagValueProcessor(ld,Ed),Ed=replaceEntitiesValue(Ed,qa)),rd&&(td+=ed),td+=Ed,rd=!1;continue}else if(ld===qa.cdataPropName){rd&&(td+=ed),td+=`<![CDATA[${od[ld][0][qa.textNodeName]}]]>`,rd=!1;continue}else if(ld===qa.commentPropName){td+=ed+`<!--${od[ld][0][qa.textNodeName]}-->`,rd=!0;continue}else if(ld[0]==="?"){const Ed=attr_to_str(od[":@"],qa),Td=ld==="?xml"?"":ed;let kd=od[ld][0][qa.textNodeName];kd=kd.length!==0?" "+kd:"",td+=Td+`<${ld}${kd}${Ed}?>`,rd=!0;continue}let ud=ed;ud!==""&&(ud+=qa.indentBy);const _d=attr_to_str(od[":@"],qa),yd=ed+`<${ld}${_d}`,gd=arrToStr(od[ld],qa,cd,ud);qa.unpairedTags.indexOf(ld)!==-1?qa.suppressUnpairedNode?td+=yd+">":td+=yd+"/>":(!gd||gd.length===0)&&qa.suppressEmptyNode?td+=yd+"/>":gd&&gd.endsWith(">")?td+=yd+`>${gd}${ed}</${ld}>`:(td+=yd+">",gd&&ed!==""&&(gd.includes("/>")||gd.includes("</"))?td+=ed+qa.indentBy+gd+ed:td+=gd,td+=`</${ld}>`),rd=!0}return td}function propName(Ra){const qa=Object.keys(Ra);for(let Ja=0;Ja<qa.length;Ja++){const ed=qa[Ja];if(Ra.hasOwnProperty(ed)&&ed!==":@")return ed}}function attr_to_str(Ra,qa){let Ja="";if(Ra&&!qa.ignoreAttributes)for(let ed in Ra){if(!Ra.hasOwnProperty(ed))continue;let td=qa.attributeValueProcessor(ed,Ra[ed]);td=replaceEntitiesValue(td,qa),td===!0&&qa.suppressBooleanAttributes?Ja+=` ${ed.substr(qa.attributeNamePrefix.length)}`:Ja+=` ${ed.substr(qa.attributeNamePrefix.length)}="${td}"`}return Ja}function isStopNode(Ra,qa){Ra=Ra.substr(0,Ra.length-qa.textNodeName.length-1);let Ja=Ra.substr(Ra.lastIndexOf(".")+1);for(let ed in qa.stopNodes)if(qa.stopNodes[ed]===Ra||qa.stopNodes[ed]==="*."+Ja)return!0;return!1}function replaceEntitiesValue(Ra,qa){if(Ra&&Ra.length>0&&qa.processEntities)for(let Ja=0;Ja<qa.entities.length;Ja++){const ed=qa.entities[Ja];Ra=Ra.replace(ed.regex,ed.val)}return Ra}var orderedJs2Xml=toXml;const buildFromOrderedJs=orderedJs2Xml,getIgnoreAttributesFn=ignoreAttributes,defaultOptions={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Ra,qa){return qa},attributeValueProcessor:function(Ra,qa){return qa},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Builder(Ra){this.options=Object.assign({},defaultOptions,Ra),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=getIgnoreAttributesFn(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute),this.processTextOrObjNode=processTextOrObjNode,this.options.format?(this.indentate=indentate,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Builder.prototype.build=function(Ra){return this.options.preserveOrder?buildFromOrderedJs(Ra,this.options):(Array.isArray(Ra)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ra={[this.options.arrayNodeName]:Ra}),this.j2x(Ra,0,[]).val)};Builder.prototype.j2x=function(Ra,qa,Ja){let ed="",td="";const rd=Ja.join(".");for(let sd in Ra)if(Object.prototype.hasOwnProperty.call(Ra,sd))if(typeof Ra[sd]>"u")this.isAttribute(sd)&&(td+="");else if(Ra[sd]===null)this.isAttribute(sd)?td+="":sd[0]==="?"?td+=this.indentate(qa)+"<"+sd+"?"+this.tagEndChar:td+=this.indentate(qa)+"<"+sd+"/"+this.tagEndChar;else if(Ra[sd]instanceof Date)td+=this.buildTextValNode(Ra[sd],sd,"",qa);else if(typeof Ra[sd]!="object"){const od=this.isAttribute(sd);if(od&&!this.ignoreAttributesFn(od,rd))ed+=this.buildAttrPairStr(od,""+Ra[sd]);else if(!od)if(sd===this.options.textNodeName){let ld=this.options.tagValueProcessor(sd,""+Ra[sd]);td+=this.replaceEntitiesValue(ld)}else td+=this.buildTextValNode(Ra[sd],sd,"",qa)}else if(Array.isArray(Ra[sd])){const od=Ra[sd].length;let ld="",cd="";for(let ud=0;ud<od;ud++){const _d=Ra[sd][ud];if(!(typeof _d>"u"))if(_d===null)sd[0]==="?"?td+=this.indentate(qa)+"<"+sd+"?"+this.tagEndChar:td+=this.indentate(qa)+"<"+sd+"/"+this.tagEndChar;else if(typeof _d=="object")if(this.options.oneListGroup){const yd=this.j2x(_d,qa+1,Ja.concat(sd));ld+=yd.val,this.options.attributesGroupName&&_d.hasOwnProperty(this.options.attributesGroupName)&&(cd+=yd.attrStr)}else ld+=this.processTextOrObjNode(_d,sd,qa,Ja);else if(this.options.oneListGroup){let yd=this.options.tagValueProcessor(sd,_d);yd=this.replaceEntitiesValue(yd),ld+=yd}else ld+=this.buildTextValNode(_d,sd,"",qa)}this.options.oneListGroup&&(ld=this.buildObjectNode(ld,sd,cd,qa)),td+=ld}else if(this.options.attributesGroupName&&sd===this.options.attributesGroupName){const od=Object.keys(Ra[sd]),ld=od.length;for(let cd=0;cd<ld;cd++)ed+=this.buildAttrPairStr(od[cd],""+Ra[sd][od[cd]])}else td+=this.processTextOrObjNode(Ra[sd],sd,qa,Ja);return{attrStr:ed,val:td}};Builder.prototype.buildAttrPairStr=function(Ra,qa){return qa=this.options.attributeValueProcessor(Ra,""+qa),qa=this.replaceEntitiesValue(qa),this.options.suppressBooleanAttributes&&qa==="true"?" "+Ra:" "+Ra+'="'+qa+'"'};function processTextOrObjNode(Ra,qa,Ja,ed){const td=this.j2x(Ra,Ja+1,ed.concat(qa));return Ra[this.options.textNodeName]!==void 0&&Object.keys(Ra).length===1?this.buildTextValNode(Ra[this.options.textNodeName],qa,td.attrStr,Ja):this.buildObjectNode(td.val,qa,td.attrStr,Ja)}Builder.prototype.buildObjectNode=function(Ra,qa,Ja,ed){if(Ra==="")return qa[0]==="?"?this.indentate(ed)+"<"+qa+Ja+"?"+this.tagEndChar:this.indentate(ed)+"<"+qa+Ja+this.closeTag(qa)+this.tagEndChar;{let td="</"+qa+this.tagEndChar,rd="";return qa[0]==="?"&&(rd="?",td=""),(Ja||Ja==="")&&Ra.indexOf("<")===-1?this.indentate(ed)+"<"+qa+Ja+rd+">"+Ra+td:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&rd.length===0?this.indentate(ed)+`<!--${Ra}-->`+this.newLine:this.indentate(ed)+"<"+qa+Ja+rd+this.tagEndChar+Ra+this.indentate(ed)+td}};Builder.prototype.closeTag=function(Ra){let qa="";return this.options.unpairedTags.indexOf(Ra)!==-1?this.options.suppressUnpairedNode||(qa="/"):this.options.suppressEmptyNode?qa="/":qa=`></${Ra}`,qa};Builder.prototype.buildTextValNode=function(Ra,qa,Ja,ed){if(this.options.cdataPropName!==!1&&qa===this.options.cdataPropName)return this.indentate(ed)+`<![CDATA[${Ra}]]>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(ed)+`<!--${Ra}-->`+this.newLine;if(qa[0]==="?")return this.indentate(ed)+"<"+qa+Ja+"?"+this.tagEndChar;{let td=this.options.tagValueProcessor(qa,Ra);return td=this.replaceEntitiesValue(td),td===""?this.indentate(ed)+"<"+qa+Ja+this.closeTag(qa)+this.tagEndChar:this.indentate(ed)+"<"+qa+Ja+">"+td+"</"+qa+this.tagEndChar}};Builder.prototype.replaceEntitiesValue=function(Ra){if(Ra&&Ra.length>0&&this.options.processEntities)for(let qa=0;qa<this.op
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*/var mimeDb=require$$0;/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/(function(Ra){var qa=mimeDb,Ja=pathBrowserify.extname,ed=/^\s*([^;\s]*)(?:;|\s|$)/,td=/^text\//i;Ra.charset=rd,Ra.charsets={lookup:rd},Ra.contentType=sd,Ra.extension=od,Ra.extensions=Object.create(null),Ra.lookup=ld,Ra.types=Object.create(null),cd(Ra.extensions,Ra.types);function rd(ud){if(!ud||typeof ud!="string")return!1;var _d=ed.exec(ud),yd=_d&&qa[_d[1].toLowerCase()];return yd&&yd.charset?yd.charset:_d&&td.test(_d[1])?"UTF-8":!1}function sd(ud){if(!ud||typeof ud!="string")return!1;var _d=ud.indexOf("/")===-1?Ra.lookup(ud):ud;if(!_d)return!1;if(_d.indexOf("charset")===-1){var yd=Ra.charset(_d);yd&&(_d+="; charset="+yd.toLowerCase())}return _d}function od(ud){if(!ud||typeof ud!="string")return!1;var _d=ed.exec(ud),yd=_d&&Ra.extensions[_d[1].toLowerCase()];return!yd||!yd.length?!1:yd[0]}function ld(ud){if(!ud||typeof ud!="string")return!1;var _d=Ja("x."+ud).toLowerCase().substr(1);return _d&&Ra.types[_d]||!1}function cd(ud,_d){var yd=["nginx","apache",void 0,"iana"];Object.keys(qa).forEach(function(Ed){var Td=qa[Ed],kd=Td.extensions;if(!(!kd||!kd.length)){ud[Ed]=kd;for(var Rd=0;Rd<kd.length;Rd++){var Nd=kd[Rd];if(_d[Nd]){var Id=yd.indexOf(qa[_d[Nd]].source),Md=yd.indexOf(Td.source);if(_d[Nd]!=="application/octet-stream"&&(Id>Md||Id===Md&&_d[Nd].substr(0,12)==="application/"))continue}_d[Nd]=Ed}}})}})(mimeTypes$1);let ENCRYPTION_TYPES=function(Ra){return Ra.SSEC="SSE-C",Ra.KMS="KMS",Ra}({}),RETENTION_MODES=function(Ra){return Ra.GOVERNANCE="GOVERNANCE",Ra.COMPLIANCE="COMPLIANCE",Ra}({}),RETENTION_VALIDITY_UNITS=function(Ra){return Ra.DAYS="Days",Ra.YEARS="Years",Ra}({}),LEGAL_HOLD_STATUS=function(Ra){return Ra.ENABLED="ON",Ra.DISABLED="OFF",Ra}({});const MetaDataHeaderPrefix="x-amz-meta-";function uriEscape(Ra){return Ra.split("").reduce((qa,Ja)=>{const ed=Buffer$2.from(Ja);if(ed.length===1&&("A"<=Ja&&Ja<="Z"||"a"<=Ja&&Ja<="z"||"0"<=Ja&&Ja<="9"||Ja==="_"||Ja==="."||Ja==="~"||Ja==="-"))return qa=qa+Ja,qa;for(const td of ed)qa=qa+"%"+td.toString(16).toUpperCase();return qa},"")}function uriResourceEscape(Ra){return uriEscape(Ra).replace(/%2F/g,"/")}function getScope(Ra,qa,Ja="s3"){return`${makeDateShort(qa)}/${Ra}/${Ja}/aws4_request`}function isAmazonEndpoint(Ra){return Ra==="s3.amazonaws.com"||Ra==="s3.cn-north-1.amazonaws.com.cn"}function isVirtualHostStyle(Ra,qa,Ja,ed){return qa==="https:"&&Ja.includes(".")?!1:isAmazonEndpoint(Ra)||!ed}function isValidIP(Ra){return ipaddr.isValid(Ra)}function isValidEndpoint(Ra){return isValidDomain(Ra)||isValidIP(Ra)}function isValidDomain(Ra){if(!isString$1(Ra)||Ra.length===0||Ra.length>255||Ra[0]==="-"||Ra.slice(-1)==="-"||Ra[0]==="_"||Ra.slice(-1)==="_"||Ra[0]===".")return!1;const qa="`~!@#$%^&*()+={}[]|\\\"';:><?/";for(const Ja of qa)if(Ra.includes(Ja))return!1;return!0}function probeContentType(Ra){let qa=mimeTypes$1.lookup(Ra);return qa||(qa="application/octet-stream"),qa}function isValidPort(Ra){return isNumber$2(Ra)?0<=Ra&&Ra<=65535:!1}function isValidBucketName(Ra){return!isString$1(Ra)||Ra.length<3||Ra.length>63||Ra.includes("..")||/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/.test(Ra)?!1:!!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(Ra)}function isValidObjectName(Ra){return isValidPrefix(Ra)?Ra.length!==0:!1}function isValidPrefix(Ra){return!(!isString$1(Ra)||Ra.length>1024)}function isNumber$2(Ra){return typeof Ra=="number"}function isFunction$1(Ra){return typeof Ra=="function"}function isString$1(Ra){return typeof Ra=="string"}function isObject$1(Ra){return typeof Ra=="object"&&Ra!==null}function isReadableStream$1(Ra){return isObject$1(Ra)&&isFunction$1(Ra._read)}function isBoolean$1(Ra){return typeof Ra=="boolean"}function isEmpty(Ra){return _.isEmpty(Ra)}function isEmptyObject(Ra){return Object.values(Ra).filter(qa=>qa!==void 0).length!==0}function isDefined(Ra){return Ra!=null}function isValidDate(Ra){return Ra instanceof Date&&!isNaN(Ra)}function makeDateLong(Ra){Ra=Ra||new Date;const qa=Ra.toISOString();return qa.slice(0,4)+qa.slice(5,7)+qa.slice(8,13)+qa.slice(14,16)+qa.slice(17,19)+"Z"}function makeDateShort(Ra){Ra=Ra||new Date;const qa=Ra.toISOString();return qa.slice(0,4)+qa.sl
`)+`
`,ed.join(";").toLowerCase(),td].join(`
`)}function getCredential(Ra,qa,Ja,ed="s3"){if(!isString$1(Ra))throw new TypeError('accessKey should be of type "string"');if(!isString$1(qa))throw new TypeError('region should be of type "string"');if(!isObject$1(Ja))throw new TypeError('requestDate should be of type "object"');return`${Ra}/${getScope(qa,Ja,ed)}`}function getSignedHeaders(Ra){if(!isObject$1(Ra))throw new TypeError('request should be of type "object"');const qa=["authorization","content-length","content-type","user-agent"];return Object.keys(Ra).filter(Ja=>!qa.includes(Ja)).sort()}function getSigningKey(Ra,qa,Ja,ed="s3"){if(!isObject$1(Ra))throw new TypeError('date should be of type "object"');if(!isString$1(qa))throw new TypeError('region should be of type "string"');if(!isString$1(Ja))throw new TypeError('secretKey should be of type "string"');const td=makeDateShort(Ra);return(void 0)("sha256",(void 0)("sha256",(void 0)("sha256",(void 0)("sha256","AWS4"+Ja).update(td).digest()).update(qa).digest()).update(ed).digest()).update("aws4_request").digest()}function getStringToSign(Ra,qa,Ja,ed="s3"){if(!isString$1(Ra))throw new TypeError('canonicalRequest should be of type "string"');if(!isObject$1(qa))throw new TypeError('requestDate should be of type "object"');if(!isString$1(Ja))throw new TypeError('region should be of type "string"');const td=(void 0)("sha256").update(Ra).digest("hex"),rd=getScope(Ja,qa,ed);return[signV4Algorithm,makeDateLong(qa),rd,td].join(`
`)}function postPresignSignatureV4(Ra,qa,Ja,ed){if(!isString$1(Ra))throw new TypeError('region should be of type "string"');if(!isObject$1(qa))throw new TypeError('date should be of type "object"');if(!isString$1(Ja))throw new TypeError('secretKey should be of type "string"');if(!isString$1(ed))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(qa,Ra,Ja)).update(ed).digest("hex").toLowerCase()}function signV4(Ra,qa,Ja,ed,td,rd,sd="s3"){if(!isObject$1(Ra))throw new TypeError('request should be of type "object"');if(!isString$1(qa))throw new TypeError('accessKey should be of type "string"');if(!isString$1(Ja))throw new TypeError('secretKey should be of type "string"');if(!isString$1(ed))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for signing");if(!Ja)throw new SecretKeyRequiredError("secretKey is required for signing");const od=getSignedHeaders(Ra.headers),ld=getCanonicalRequest(Ra.method,Ra.path,Ra.headers,od,rd),cd=sd||"s3",ud=getStringToSign(ld,td,ed,cd),_d=getSigningKey(td,ed,Ja,cd),yd=getCredential(qa,ed,td,cd),gd=(void 0)("sha256",_d).update(ud).digest("hex").toLowerCase();return`${signV4Algorithm} Credential=${yd}, SignedHeaders=${od.join(";").toLowerCase()}, Signature=${gd}`}function presignSignatureV4(Ra,qa,Ja,ed,td,rd,sd){if(!isObject$1(Ra))throw new TypeError('request should be of type "object"');if(!isString$1(qa))throw new TypeError('accessKey should be of type "string"');if(!isString$1(Ja))throw new TypeError('secretKey should be of type "string"');if(!isString$1(td))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!Ja)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber$2(sd))throw new TypeError('expires should be of type "number"');if(sd<1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if(sd>604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const od=makeDateLong(rd),ld=getSignedHeaders(Ra.headers),cd=getCredential(qa,td,rd),ud="UNSIGNED-PAYLOAD",_d=[];_d.push(`X-Amz-Algorithm=${signV4Algorithm}`),_d.push(`X-Amz-Credential=${uriEscape(cd)}`),_d.push(`X-Amz-Date=${od}`),_d.push(`X-Amz-Expires=${sd}`),_d.push(`X-Amz-SignedHeaders=${uriEscape(ld.join(";").toLowerCase())}`),ed&&_d.push(`X-Amz-Security-Token=${uriEscape(ed)}`);const yd=Ra.path.split("?")[0];let gd=Ra.path.split("?")[1];gd?gd=gd+"&"+_d.join("&"):gd=_d.join("&");const Ed=yd+"?"+gd,Td=getCanonicalRequest(Ra.method,Ed,Ra.headers,ld,ud),kd=getStringToSign(Td,rd,td),Nd=(void 0)("sha256",getSigningKey(rd,td,Ja)).update(kd).digest("hex").toLowerCase();return Ra.protocol+"//"+Ra.headers.host+Ed+`&X-Amz-Signature=${Nd}`}async function readAsBuffer(Ra){return new Promise((qa,Ja)=>{const ed=[];Ra.on("data",td=>ed.push(td)).on("error",td=>Ja(td)).on("end",()=>qa(Buffer$2.concat(ed)))})}async function readAsString(Ra){return(await readAsBuffer(Ra)).toString()}async function drainResponse(Ra){return new Promise((qa,Ja)=>{Ra.on("data",()=>{}).on("error",ed=>Ja(ed)).on("end",()=>qa())})}function parseBucketRegion(Ra){return parseXml(Ra).LocationConstraint}const fxp=new fxp$2.XMLParser;function parseError(Ra,qa){let Ja={};const ed=fxp.parse(Ra);ed.Error&&(Ja=ed.Error);const td=new S3Error;return Object.entries(Ja).forEach(([rd,sd])=>{td[rd.toLowerCase()]=sd}),Object.entries(qa).forEach(([rd,sd])=>{td[rd]=sd}),td}async function parseResponseError(Ra){const qa=Ra.statusCode;let Ja,ed;qa===301?(Ja="MovedPermanently",ed="Moved Permanently"):qa===307?(Ja="TemporaryRedirect",ed="Are you using the correct endpoint URL?"):qa===403?(Ja="AccessDenied",ed="Valid and authorized credentials required"):qa===404?(Ja="NotFound",ed="Not Found"):qa===405||qa===501?(Ja="MethodNotAllowed",ed="Method Not Allowed"):(Ja="UnknownError",ed=`${qa}`);const td={};td.amzRequestid=Ra.headers["x-amz-request-id"],td.amzId2=Ra.headers["x-amz-id-2"],td.amzBucketRegion=Ra.headers["x-amz-bucket
`)}),td.write(`
`)};if(td.write(`REQUEST: ${qa.method} ${qa.path}
`),rd(qa.headers),Ja&&(this.logStream.write(`RESPONSE: ${Ja.statusCode}
`),rd(Ja.headers)),ed){td.write(`ERROR BODY:
`);const sd=JSON.stringify(ed,null," ");td.write(`${sd}
`)}}traceOn(qa){qa||(qa=define_process_default$3.stdout),this.logStream=qa}traceOff(){this.logStream=void 0}async makeRequestAsync(qa,Ja="",ed=[200],td=""){if(!isObject$1(qa))throw new TypeError('options should be of type "object"');if(!isString$1(Ja)&&!isObject$1(Ja))throw new TypeError('payload should be of type "string" or "Buffer"');if(ed.forEach(sd=>{if(!isNumber$2(sd))throw new TypeError('statusCode should be of type "number"')}),!isString$1(td))throw new TypeError('region should be of type "string"');qa.headers||(qa.headers={}),(qa.method==="POST"||qa.method==="PUT"||qa.method==="DELETE")&&(qa.headers["content-length"]=Ja.length.toString());const rd=this.enableSHA256?toSha256(Ja):"";return this.makeRequestStreamAsync(qa,Ja,rd,ed,td)}async makeRequestAsyncOmit(qa,Ja="",ed=[200],td=""){const rd=await this.makeRequestAsync(qa,Ja,ed,td);return await drainResponse(rd),rd}async makeRequestStreamAsync(qa,Ja,ed,td,rd){if(!isObject$1(qa))throw new TypeError('options should be of type "object"');if(!(Buffer$2.isBuffer(Ja)||typeof Ja=="string"||isReadableStream$1(Ja)))throw new InvalidArgumentError(`stream should be a Buffer, string or readable Stream, got ${typeof Ja} instead`);if(!isString$1(ed))throw new TypeError('sha256sum should be of type "string"');if(td.forEach(ld=>{if(!isNumber$2(ld))throw new TypeError('statusCode should be of type "number"')}),!isString$1(rd))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&ed.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&ed.length!==64)throw new InvalidArgumentError(`Invalid sha256sum : ${ed}`);await this.checkAndRefreshCreds(),rd=rd||await this.getBucketRegionAsync(qa.bucketName);const sd=this.getRequestOptions({...qa,region:rd});if(!this.anonymous){this.enableSHA256||(ed="UNSIGNED-PAYLOAD");const ld=new Date;sd.headers["x-amz-date"]=makeDateLong(ld),sd.headers["x-amz-content-sha256"]=ed,this.sessionToken&&(sd.headers["x-amz-security-token"]=this.sessionToken),sd.headers.authorization=signV4(sd,this.accessKey,this.secretKey,rd,ld,ed)}const od=await request$1(this.transport,sd,Ja);if(!od.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!td.includes(od.statusCode)){delete this.regionMap[qa.bucketName];const ld=await parseResponseError(od);throw this.logHTTP(sd,od,ld),ld}return this.logHTTP(sd,od),od}async getBucketRegionAsync(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name : ${qa}`);if(this.region)return this.region;const Ja=this.regionMap[qa];if(Ja)return Ja;const ed=async cd=>{const ud=await readAsString(cd),_d=parseBucketRegion(ud)||DEFAULT_REGION;return this.regionMap[qa]=_d,_d},td="GET",rd="location",sd=this.pathStyle&&!isBrowser_1;let od;try{const cd=await this.makeRequestAsync({method:td,bucketName:qa,query:rd,pathStyle:sd},"",[200],DEFAULT_REGION);return ed(cd)}catch(cd){if(cd.name!=="AuthorizationHeaderMalformed"||(od=cd.Region,!od))throw cd}const ld=await this.makeRequestAsync({method:td,bucketName:qa,query:rd,pathStyle:sd},"",[200],od);return await ed(ld)}makeRequest(qa,Ja="",ed=[200],td="",rd,sd){let od;rd?od=this.makeRequestAsync(qa,Ja,ed,td):od=this.makeRequestAsyncOmit(qa,Ja,ed,td),od.then(ld=>sd(null,ld),ld=>{sd(ld)})}makeRequestStream(qa,Ja,ed,td,rd,sd,od){(async()=>{const cd=await this.makeRequestStreamAsync(qa,Ja,ed,td,rd);return sd||await drainResponse(cd),cd})().then(cd=>od(null,cd),cd=>od(cd))}getBucketRegion(qa,Ja){return this.getBucketRegionAsync(qa).then(ed=>Ja(null,ed),ed=>Ja(ed))}async removeBucket(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:qa},"",[204]),delete this.regionMap[qa]}async statObject(qa,Ja,ed={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(Ja))throw new InvalidObjectNameError(`Invalid object name: ${Ja}`);if(!isObject$1(ed))throw new InvalidArgumentError('statOpts should be of type "object"');const
`).forEach(function(Rd){if(Rd){var Nd=Rd.indexOf(":"),Id=Rd.substr(0,Nd).trim().toLowerCase(),Md=Rd.substr(Nd+1).trim();Td[Id]=Md}}),{error:yd,statusCode:gd.status,statusMessage:gd.statusText,headers:Td,body:Ed}},cd=function(yd,gd){return!gd&&gd==="text"?yd.responseText:yd.response},ud=function(yd,gd){var Ed=(yd.method||"GET").toUpperCase(),Td=yd.url;if(yd.qs){var kd=od(yd.qs);kd&&(Td+=(Td.indexOf("?")===-1?"?":"&")+kd)}var Rd=new XMLHttpRequest;if(Rd.open(Ed,Td,!0),Rd.responseType=yd.dataType||"text",yd.xhrFields)for(var Nd in yd.xhrFields)Rd[Nd]=yd.xhrFields[Nd];var Id=yd.headers;if(Id)for(var Md in Id)Id.hasOwnProperty(Md)&&Md.toLowerCase()!=="content-length"&&Md.toLowerCase()!=="user-agent"&&Md.toLowerCase()!=="origin"&&Md.toLowerCase()!=="host"&&Rd.setRequestHeader(Md,Id[Md]);return yd.onProgress&&Rd.upload&&(Rd.upload.onprogress=yd.onProgress),yd.onDownloadProgress&&(Rd.onprogress=yd.onDownloadProgress),yd.timeout&&(Rd.timeout=yd.timeout),Rd.ontimeout=function(Ld){var Pd=new Error("timeout");gd(ld(Pd,Rd))},Rd.onload=function(){gd(ld(null,Rd,cd(Rd,yd.dataType)))},Rd.onerror=function(Ld){var Pd=cd(Rd,yd.dataType);if(Pd)gd(ld(null,Rd,Pd));else{var qd=Rd.statusText;!qd&&Rd.status===0&&(qd=new Error("CORS blocked or network error")),gd(ld(qd,Rd,Pd))}},Rd.send(yd.body||""),Rd};Ja.exports=ud},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(Ja,ed){function td(rd,sd){if(!(rd instanceof sd))throw new TypeError("Cannot call a class as a function")}Ja.exports=td,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(Ja,ed,td){var rd=td("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function sd(ld,cd){for(var ud=0;ud<cd.length;ud++){var _d=cd[ud];_d.enumerable=_d.enumerable||!1,_d.configurable=!0,"value"in _d&&(_d.writable=!0),Object.defineProperty(ld,rd(_d.key),_d)}}function od(ld,cd,ud){return cd&&sd(ld.prototype,cd),ud&&sd(ld,ud),Object.defineProperty(ld,"prototype",{writable:!1}),ld}Ja.exports=od,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(Ja,ed,td){var rd=td("./node_modules/@babel/runtime/helpers/typeof.js").default;function sd(od,ld){if(rd(od)!=="object"||od===null)return od;var cd=od[Symbol.toPrimitive];if(cd!==void 0){var ud=cd.call(od,ld||"default");if(rd(ud)!=="object")return ud;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ld==="string"?String:Number)(od)}Ja.exports=sd,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(Ja,ed,td){var rd=td("./node_modules/@babel/runtime/helpers/typeof.js").default,sd=td("./node_modules/@babel/runtime/helpers/toPrimitive.js");function od(ld){var cd=sd(ld,"string");return rd(cd)==="symbol"?cd:String(cd)}Ja.exports=od,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(Ja,ed){function td(rd){"@babel/helpers - typeof";return Ja.exports=td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(sd){return typeof sd}:function(sd){return sd&&typeof Symbol=="function"&&sd.constructor===Symbol&&sd!==Symbol.prototype?"symbol":typeof sd},Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports,td(rd)}Ja.exports=td,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(Ja,ed,td){const rd=td("./node_modules/fast-xml-parser/src/validator.js"),sd=td("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),od=td("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");Ja.exports={XMLParser:sd,XMLValidator:rd,XMLBuilder:od}},"./node_modules/fast-xml-parser/src/util.js":function(Ja,ed,td){const rd=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",sd=rd+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",od="["+rd+"]["+sd+"]*",ld=new RegExp("^"+od+"$"),cd=function(_d,yd){const gd=[];l
`&&Pd[Vd]!=="\r";Vd++)pf+=Pd[Vd];if(pf=pf.trim(),pf[pf.length-1]==="/"&&(pf=pf.substring(0,pf.length-1),Vd--),!Id(pf)){let mf;return pf.trim().length===0?mf="Invalid space after '<'.":mf="Tag '"+pf+"' is an invalid name.",Rd("InvalidTag",mf,Md(Pd,Vd))}const Xd=yd(Pd,Vd);if(Xd===!1)return Rd("InvalidAttr","Attributes for '"+pf+"' have open quote.",Md(Pd,Vd));let hf=Xd.value;if(Vd=Xd.index,hf[hf.length-1]==="/"){const mf=Vd-hf.length;hf=hf.substring(0,hf.length-1);const xf=Ed(hf,qd);if(xf===!0)Ud=!0;else return Rd(xf.err.code,xf.err.msg,Md(Pd,mf+xf.err.line))}else if(Zd)if(Xd.tagClosed){if(hf.trim().length>0)return Rd("InvalidTag","Closing tag '"+pf+"' can't have attributes or invalid starting.",Md(Pd,Jd));if(Yd.length===0)return Rd("InvalidTag","Closing tag '"+pf+"' has not been opened.",Md(Pd,Jd));{const mf=Yd.pop();if(pf!==mf.tagName){let xf=Md(Pd,mf.tagStartPos);return Rd("InvalidTag","Expected closing tag '"+mf.tagName+"' (opened in line "+xf.line+", col "+xf.col+") instead of closing tag '"+pf+"'.",Md(Pd,Jd))}Yd.length==0&&(Hd=!0)}}else return Rd("InvalidTag","Closing tag '"+pf+"' doesn't have proper closing.",Md(Pd,Vd));else{const mf=Ed(hf,qd);if(mf!==!0)return Rd(mf.err.code,mf.err.msg,Md(Pd,Vd-hf.length+mf.err.line));if(Hd===!0)return Rd("InvalidXml","Multiple possible root nodes found.",Md(Pd,Vd));qd.unpairedTags.indexOf(pf)!==-1||Yd.push({tagName:pf,tagStartPos:Jd}),Ud=!0}for(Vd++;Vd<Pd.length;Vd++)if(Pd[Vd]==="<")if(Pd[Vd+1]==="!"){Vd++,Vd=cd(Pd,Vd);continue}else if(Pd[Vd+1]==="?"){if(Vd=ld(Pd,++Vd),Vd.err)return Vd}else break;else if(Pd[Vd]==="&"){const mf=kd(Pd,Vd);if(mf==-1)return Rd("InvalidChar","char '&' is not expected.",Md(Pd,Vd));Vd=mf}else if(Hd===!0&&!od(Pd[Vd]))return Rd("InvalidXml","Extra text at the end",Md(Pd,Vd));Pd[Vd]==="<"&&Vd--}}else{if(od(Pd[Vd]))continue;return Rd("InvalidChar","char '"+Pd[Vd]+"' is not expected.",Md(Pd,Vd))}if(Ud){if(Yd.length==1)return Rd("InvalidTag","Unclosed tag '"+Yd[0].tagName+"'.",Md(Pd,Yd[0].tagStartPos));if(Yd.length>0)return Rd("InvalidXml","Invalid '"+JSON.stringify(Yd.map(Vd=>Vd.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Rd("InvalidXml","Start tag expected.",1);return!0};function od(Pd){return Pd===" "||Pd===" "||Pd===`
`||Pd==="\r"}function ld(Pd,qd){const Yd=qd;for(;qd<Pd.length;qd++)if(Pd[qd]=="?"||Pd[qd]==" "){const Ud=Pd.substr(Yd,qd-Yd);if(qd>5&&Ud==="xml")return Rd("InvalidXml","XML declaration allowed only at the start of the document.",Md(Pd,qd));if(Pd[qd]=="?"&&Pd[qd+1]==">"){qd++;break}else continue}return qd}function cd(Pd,qd){if(Pd.length>qd+5&&Pd[qd+1]==="-"&&Pd[qd+2]==="-"){for(qd+=3;qd<Pd.length;qd++)if(Pd[qd]==="-"&&Pd[qd+1]==="-"&&Pd[qd+2]===">"){qd+=2;break}}else if(Pd.length>qd+8&&Pd[qd+1]==="D"&&Pd[qd+2]==="O"&&Pd[qd+3]==="C"&&Pd[qd+4]==="T"&&Pd[qd+5]==="Y"&&Pd[qd+6]==="P"&&Pd[qd+7]==="E"){let Yd=1;for(qd+=8;qd<Pd.length;qd++)if(Pd[qd]==="<")Yd++;else if(Pd[qd]===">"&&(Yd--,Yd===0))break}else if(Pd.length>qd+9&&Pd[qd+1]==="["&&Pd[qd+2]==="C"&&Pd[qd+3]==="D"&&Pd[qd+4]==="A"&&Pd[qd+5]==="T"&&Pd[qd+6]==="A"&&Pd[qd+7]==="["){for(qd+=8;qd<Pd.length;qd++)if(Pd[qd]==="]"&&Pd[qd+1]==="]"&&Pd[qd+2]===">"){qd+=2;break}}return qd}const ud='"',_d="'";function yd(Pd,qd){let Yd="",Ud="",Hd=!1;for(;qd<Pd.length;qd++){if(Pd[qd]===ud||Pd[qd]===_d)Ud===""?Ud=Pd[qd]:Ud!==Pd[qd]||(Ud="");else if(Pd[qd]===">"&&Ud===""){Hd=!0;break}Yd+=Pd[qd]}return Ud!==""?!1:{value:Yd,index:qd,tagClosed:Hd}}const gd=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Ed(Pd,qd){const Yd=rd.getAllMatches(Pd,gd),Ud={};for(let Hd=0;Hd<Yd.length;Hd++){if(Yd[Hd][1].length===0)return Rd("InvalidAttr","Attribute '"+Yd[Hd][2]+"' has no space in starting.",Ld(Yd[Hd]));if(Yd[Hd][3]!==void 0&&Yd[Hd][4]===void 0)return Rd("InvalidAttr","Attribute '"+Yd[Hd][2]+"' is without value.",Ld(Yd[Hd]));if(Yd[Hd][3]===void 0&&!qd.allowBooleanAttributes)return Rd("InvalidAttr","boolean attribute '"+Yd[Hd][2]+"' is not allowed.",Ld(Yd[Hd]));const Vd=Yd[Hd][2];if(!Nd(Vd))return Rd("InvalidAttr","Attribute '"+Vd+"' is an invalid name.",Ld(Yd[Hd]));if(!Ud.hasOwnProperty(Vd))Ud[Vd]=1;else return Rd("InvalidAttr","Attribute '"+Vd+"' is repeated.",Ld(Yd[Hd]))}return!0}function Td(Pd,qd){let Yd=/\d/;for(Pd[qd]==="x"&&(qd++,Yd=/[\da-fA-F]/);qd<Pd.length;qd++){if(Pd[qd]===";")return qd;if(!Pd[qd].match(Yd))break}return-1}function kd(Pd,qd){if(qd++,Pd[qd]===";")return-1;if(Pd[qd]==="#")return qd++,Td(Pd,qd);let Yd=0;for(;qd<Pd.length;qd++,Yd++)if(!(Pd[qd].match(/\w/)&&Yd<20)){if(Pd[qd]===";")break;return-1}return qd}function Rd(Pd,qd,Yd){return{err:{code:Pd,msg:qd,line:Yd.line||Yd,col:Yd.col}}}function Nd(Pd){return rd.isName(Pd)}function Id(Pd){return rd.isName(Pd)}function Md(Pd,qd){const Yd=Pd.substring(0,qd).split(/\r?\n/);return{line:Yd.length,col:Yd[Yd.length-1].length+1}}function Ld(Pd){return Pd.startIndex+Pd[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(Ja,ed,td){const rd=td("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),sd={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(_d,yd){return yd},attributeValueProcessor:function(_d,yd){return yd},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function od(_d){this.options=Object.assign({},sd,_d),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ud),this.processTextOrObjNode=ld,this.options.format?(this.indentate=cd,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}od.prototype.build=function(_d){return this.options.preserveOrder?rd(_d,this.options):(Array.isArray(_d)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(_d={[this.options.arrayNodeName]:_d}),this.j2x(_d,0).val)},od.prototype.j2x=function(_d,yd){let gd="",Ed="";for(let Td in _d)if(Object.prototype.hasOwnProperty.call(_d,Td))if(typeof _d[Td]>"u")this.isAttribute(Td)&&(Ed+="");else if(_d[Td]===null)this.isAttribute(Td)?Ed+="":Td[0]==="?"?Ed+=this.indentate(yd)+"<"+Td+"?"+this.tagEndChar:Ed+=this.indentate(yd)+"<"+Td+"/"+this.tagEndChar;else if(_d[Td]instanceof Date)Ed+=this.buildTextValNode(_d[Td],Td,"",yd);else if(typeof _d[Td]!="object"){const kd=this.isAttribute(Td);if(kd)gd+=this.buildAttrPairStr(kd,""+_d[Td]);else if(Td===this.options.textNodeName){let Rd=this.options.tagValueProcessor(Td,""+_d[Td]);Ed+=this.replaceEntitiesValue(Rd)}else Ed+=this.buildTextValNode(_d[Td],Td,"",yd)}else if(Array.isArray(_d[Td])){const kd=_d[Td].length;let Rd="";for(let Nd=0;Nd<kd;Nd++){const Id=_d[Td][Nd];typeof Id>"u"||(Id===null?Td[0]==="?"?Ed+=this.indentate(yd)+"<"+Td+"?"+this.tagEndChar:Ed+=this.indentate(yd)+"<"+Td+"/"+this.tagEndChar:typeof Id=="object"?this.options.oneListGroup?Rd+=this.j2x(Id,yd+1).val:Rd+=this.processTextOrObjNode(Id,Td,yd):Rd+=this.buildTextValNode(Id,Td,"",yd))}this.options.oneListGroup&&(Rd=this.buildObjectNode(Rd,Td,"",yd)),Ed+=Rd}else if(this.options.attributesGroupName&&Td===this.options.attributesGroupName){const kd=Object.keys(_d[Td]),Rd=kd.length;for(let Nd=0;Nd<Rd;Nd++)gd+=this.buildAttrPairStr(kd[Nd],""+_d[Td][kd[Nd]])}else Ed+=this.processTextOrObjNode(_d[Td],Td,yd);return{attrStr:gd,val:Ed}},od.prototype.buildAttrPairStr=function(_d,yd){return yd=this.options.attributeValueProcessor(_d,""+yd),yd=this.replaceEntitiesValue(yd),this.options.suppressBooleanAttributes&&yd==="true"?" "+_d:" "+_d+'="'+yd+'"'};function ld(_d,yd,gd){const Ed=this.j2x(_d,gd+1);return _d[this.options.textNodeName]!==void 0&&Object.keys(_d).length===1?this.buildTextValNode(_d[this.options.textNodeName],yd,Ed.attrStr,gd):this.buildObjectNode(Ed.val,yd,Ed.attrStr,gd)}od.prototype.buildObjectNode=function(_d,yd,gd,Ed){if(_d==="")return yd[0]==="?"?this.indentate(Ed)+"<"+yd+gd+"?"+this.tagEndChar:this.indentate(Ed)+"<"+yd+gd+this.closeTag(yd)+this.tagEndChar;{let Td="</"+yd+this.tagEndChar,kd="";return yd[0]==="?"&&(kd="?",Td=""),(gd||gd==="")&&_d.indexOf("<")===-1?this.indentate(Ed)+"<"+yd+gd+kd+">"+_d+Td:this.options.commentPropName!==!1&&yd===this.options.commentPropName&&kd.length===0?this.indentate(Ed)+`<!--${_d}-->`+this.newLine:this.indentate(Ed)+"<"+yd+gd+kd+this.tagEndChar+_d+this.indentate(Ed)+Td}},od.prototype.closeTag=function(_d){let yd="";return this.options.unpairedTags.indexOf(_d)!==-1?this.options.suppressUnpairedNode||(yd="/"):this.options.suppressEmptyNode?yd="/":yd=`></${_d}`,yd},od.prototype.buildTextValNode=function(_d,yd,gd,Ed){if(this.options.cdataPropName!==!1&&yd===this.options.cdataPropName)return this.indentate(Ed)+`<![CDATA[${_d}]]>`+this.newLine;if(this.options.commentPropName!==!1&&yd===this.options.commentPropName)return this.indentate(Ed)+`<!--${_d}-->`+this.newLine;if(yd[0]==="?")return this.indentate(Ed)+"<"+yd+gd+"?"+this.tagEndChar;{let Td=this.options.tagValueProcessor(yd,_d);return Td=this.replaceEntitiesValue(Td),Td===""?this.indentate(Ed)+"<"+yd+gd+this.closeTag(yd)+this.tagEndChar:this.indentate(Ed)+"<"+yd+gd+">"+Td+"</"+yd+this.tagEndChar}},od.prototype.replaceEntitiesValue=function(_d){if(_d&&_d.length>0&&this.options.processEntities)for(let yd=0;yd<this.options.entities.length;yd++){const gd=this.options.entities[yd];_d=_d.replace(gd.regex,gd.val)}return _d};function cd(_d){return this.options.indentBy.repeat(_d)}function ud(_d){return _d.startsWith(this.options.attributeNamePrefix)&&_d!==this.options.textNodeName?_d.substr(this.attrPrefixLen):!1}Ja.exports=od},"./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js":function(Ja,ed){const td=`
`;function rd(_d,yd){let gd="";return yd.format&&yd.indentBy.length>0&&(gd=td),sd(_d,yd,"",gd)}function sd(_d,yd,gd,Ed){let Td="",kd=!1;for(let Rd=0;Rd<_d.length;Rd++){const Nd=_d[Rd],Id=od(Nd);if(Id===void 0)continue;let Md="";if(gd.length===0?Md=Id:Md=`${gd}.${Id}`,Id===yd.textNodeName){let Ud=Nd[Id];cd(Md,yd)||(Ud=yd.tagValueProcessor(Id,Ud),Ud=ud(Ud,yd)),kd&&(Td+=Ed),Td+=Ud,kd=!1;continue}else if(Id===yd.cdataPropName){kd&&(Td+=Ed),Td+=`<![CDATA[${Nd[Id][0][yd.textNodeName]}]]>`,kd=!1;continue}else if(Id===yd.commentPropName){Td+=Ed+`<!--${Nd[Id][0][yd.textNodeName]}-->`,kd=!0;continue}else if(Id[0]==="?"){const Ud=ld(Nd[":@"],yd),Hd=Id==="?xml"?"":Ed;let Vd=Nd[Id][0][yd.textNodeName];Vd=Vd.length!==0?" "+Vd:"",Td+=Hd+`<${Id}${Vd}${Ud}?>`,kd=!0;continue}let Ld=Ed;Ld!==""&&(Ld+=yd.indentBy);const Pd=ld(Nd[":@"],yd),qd=Ed+`<${Id}${Pd}`,Yd=sd(Nd[Id],yd,Md,Ld);yd.unpairedTags.indexOf(Id)!==-1?yd.suppressUnpairedNode?Td+=qd+">":Td+=qd+"/>":(!Yd||Yd.length===0)&&yd.suppressEmptyNode?Td+=qd+"/>":Yd&&Yd.endsWith(">")?Td+=qd+`>${Yd}${Ed}</${Id}>`:(Td+=qd+">",Yd&&Ed!==""&&(Yd.includes("/>")||Yd.includes("</"))?Td+=Ed+yd.indentBy+Yd+Ed:Td+=Yd,Td+=`</${Id}>`),kd=!0}return Td}function od(_d){const yd=Object.keys(_d);for(let gd=0;gd<yd.length;gd++){const Ed=yd[gd];if(_d.hasOwnProperty(Ed)&&Ed!==":@")return Ed}}function ld(_d,yd){let gd="";if(_d&&!yd.ignoreAttributes)for(let Ed in _d){if(!_d.hasOwnProperty(Ed))continue;let Td=yd.attributeValueProcessor(Ed,_d[Ed]);Td=ud(Td,yd),Td===!0&&yd.suppressBooleanAttributes?gd+=` ${Ed.substr(yd.attributeNamePrefix.length)}`:gd+=` ${Ed.substr(yd.attributeNamePrefix.length)}="${Td}"`}return gd}function cd(_d,yd){_d=_d.substr(0,_d.length-yd.textNodeName.length-1);let gd=_d.substr(_d.lastIndexOf(".")+1);for(let Ed in yd.stopNodes)if(yd.stopNodes[Ed]===_d||yd.stopNodes[Ed]==="*."+gd)return!0;return!1}function ud(_d,yd){if(_d&&_d.length>0&&yd.processEntities)for(let gd=0;gd<yd.entities.length;gd++){const Ed=yd.entities[gd];_d=_d.replace(Ed.regex,Ed.val)}return _d}Ja.exports=rd},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(Ja,ed,td){const rd=td("./node_modules/fast-xml-parser/src/util.js");function sd(Ed,Td){const kd={};if(Ed[Td+3]==="O"&&Ed[Td+4]==="C"&&Ed[Td+5]==="T"&&Ed[Td+6]==="Y"&&Ed[Td+7]==="P"&&Ed[Td+8]==="E"){Td=Td+9;let Rd=1,Nd=!1,Id=!1,Md="";for(;Td<Ed.length;Td++)if(Ed[Td]==="<"&&!Id){if(Nd&&cd(Ed,Td))Td+=7,[entityName,val,Td]=od(Ed,Td+1),val.indexOf("&")===-1&&(kd[gd(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(Nd&&ud(Ed,Td))Td+=8;else if(Nd&&_d(Ed,Td))Td+=8;else if(Nd&&yd(Ed,Td))Td+=9;else if(ld)Id=!0;else throw new Error("Invalid DOCTYPE");Rd++,Md=""}else if(Ed[Td]===">"){if(Id?Ed[Td-1]==="-"&&Ed[Td-2]==="-"&&(Id=!1,Rd--):Rd--,Rd===0)break}else Ed[Td]==="["?Nd=!0:Md+=Ed[Td];if(Rd!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:kd,i:Td}}function od(Ed,Td){let kd="";for(;Td<Ed.length&&Ed[Td]!=="'"&&Ed[Td]!=='"';Td++)kd+=Ed[Td];if(kd=kd.trim(),kd.indexOf(" ")!==-1)throw new Error("External entites are not supported");const Rd=Ed[Td++];let Nd="";for(;Td<Ed.length&&Ed[Td]!==Rd;Td++)Nd+=Ed[Td];return[kd,Nd,Td]}function ld(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="-"&&Ed[Td+3]==="-"}function cd(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="E"&&Ed[Td+3]==="N"&&Ed[Td+4]==="T"&&Ed[Td+5]==="I"&&Ed[Td+6]==="T"&&Ed[Td+7]==="Y"}function ud(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="E"&&Ed[Td+3]==="L"&&Ed[Td+4]==="E"&&Ed[Td+5]==="M"&&Ed[Td+6]==="E"&&Ed[Td+7]==="N"&&Ed[Td+8]==="T"}function _d(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="A"&&Ed[Td+3]==="T"&&Ed[Td+4]==="T"&&Ed[Td+5]==="L"&&Ed[Td+6]==="I"&&Ed[Td+7]==="S"&&Ed[Td+8]==="T"}function yd(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="N"&&Ed[Td+3]==="O"&&Ed[Td+4]==="T"&&Ed[Td+5]==="A"&&Ed[Td+6]==="T"&&Ed[Td+7]==="I"&&Ed[Td+8]==="O"&&Ed[Td+9]==="N"}function gd(Ed){if(rd.isName(Ed))return Ed;throw new Error(`Invalid entity name ${Ed}`)}Ja.exports=sd},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(Ja,ed){const td={preserveOrd
`);const Hd=new sd("!xml");let Vd=Hd,Jd="",Zd="";for(let pf=0;pf<Ud.length;pf++)if(Ud[pf]==="<")if(Ud[pf+1]==="/"){const hf=Ld(Ud,">",pf,"Closing Tag is not closed.");let mf=Ud.substring(pf+2,hf).trim();if(this.options.removeNSPrefix){const Wf=mf.indexOf(":");Wf!==-1&&(mf=mf.substr(Wf+1))}this.options.transformTagName&&(mf=this.options.transformTagName(mf)),Vd&&(Jd=this.saveTextToParentTag(Jd,Vd,Zd));const xf=Zd.substring(Zd.lastIndexOf(".")+1);if(mf&&this.options.unpairedTags.indexOf(mf)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${mf}>`);let Lf=0;xf&&this.options.unpairedTags.indexOf(xf)!==-1?(Lf=Zd.lastIndexOf(".",Zd.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Lf=Zd.lastIndexOf("."),Zd=Zd.substring(0,Lf),Vd=this.tagsNodeStack.pop(),Jd="",pf=hf}else if(Ud[pf+1]==="?"){let hf=Pd(Ud,pf,!1,"?>");if(!hf)throw new Error("Pi Tag is not closed.");if(Jd=this.saveTextToParentTag(Jd,Vd,Zd),!(this.options.ignoreDeclaration&&hf.tagName==="?xml"||this.options.ignorePiTags)){const mf=new sd(hf.tagName);mf.add(this.options.textNodeName,""),hf.tagName!==hf.tagExp&&hf.attrExpPresent&&(mf[":@"]=this.buildAttributesMap(hf.tagExp,Zd,hf.tagName)),this.addChild(Vd,mf,Zd)}pf=hf.closeIndex+1}else if(Ud.substr(pf+1,3)==="!--"){const hf=Ld(Ud,"-->",pf+4,"Comment is not closed.");if(this.options.commentPropName){const mf=Ud.substring(pf+4,hf-2);Jd=this.saveTextToParentTag(Jd,Vd,Zd),Vd.add(this.options.commentPropName,[{[this.options.textNodeName]:mf}])}pf=hf}else if(Ud.substr(pf+1,2)==="!D"){const hf=od(Ud,pf);this.docTypeEntities=hf.entities,pf=hf.i}else if(Ud.substr(pf+1,2)==="!["){const hf=Ld(Ud,"]]>",pf,"CDATA is not closed.")-2,mf=Ud.substring(pf+9,hf);Jd=this.saveTextToParentTag(Jd,Vd,Zd);let xf=this.parseTextData(mf,Vd.tagname,Zd,!0,!1,!0,!0);xf==null&&(xf=""),this.options.cdataPropName?Vd.add(this.options.cdataPropName,[{[this.options.textNodeName]:mf}]):Vd.add(this.options.textNodeName,xf),pf=hf+2}else{let hf=Pd(Ud,pf,this.options.removeNSPrefix),mf=hf.tagName;const xf=hf.rawTagName;let Lf=hf.tagExp,Wf=hf.attrExpPresent,Yf=hf.closeIndex;this.options.transformTagName&&(mf=this.options.transformTagName(mf)),Vd&&Jd&&Vd.tagname!=="!xml"&&(Jd=this.saveTextToParentTag(Jd,Vd,Zd,!1));const If=Vd;if(If&&this.options.unpairedTags.indexOf(If.tagname)!==-1&&(Vd=this.tagsNodeStack.pop(),Zd=Zd.substring(0,Zd.lastIndexOf("."))),mf!==Hd.tagname&&(Zd+=Zd?"."+mf:mf),this.isItStopNode(this.options.stopNodes,Zd,mf)){let Sf="";if(Lf.length>0&&Lf.lastIndexOf("/")===Lf.length-1)mf[mf.length-1]==="/"?(mf=mf.substr(0,mf.length-1),Zd=Zd.substr(0,Zd.length-1),Lf=mf):Lf=Lf.substr(0,Lf.length-1),pf=hf.closeIndex;else if(this.options.unpairedTags.indexOf(mf)!==-1)pf=hf.closeIndex;else{const Kf=this.readStopNodeData(Ud,xf,Yf+1);if(!Kf)throw new Error(`Unexpected end of ${xf}`);pf=Kf.i,Sf=Kf.tagContent}const wf=new sd(mf);mf!==Lf&&Wf&&(wf[":@"]=this.buildAttributesMap(Lf,Zd,mf)),Sf&&(Sf=this.parseTextData(Sf,mf,Zd,!0,Wf,!0,!0)),Zd=Zd.substr(0,Zd.lastIndexOf(".")),wf.add(this.options.textNodeName,Sf),this.addChild(Vd,wf,Zd)}else{if(Lf.length>0&&Lf.lastIndexOf("/")===Lf.length-1){mf[mf.length-1]==="/"?(mf=mf.substr(0,mf.length-1),Zd=Zd.substr(0,Zd.length-1),Lf=mf):Lf=Lf.substr(0,Lf.length-1),this.options.transformTagName&&(mf=this.options.transformTagName(mf));const Sf=new sd(mf);mf!==Lf&&Wf&&(Sf[":@"]=this.buildAttributesMap(Lf,Zd,mf)),this.addChild(Vd,Sf,Zd),Zd=Zd.substr(0,Zd.lastIndexOf("."))}else{const Sf=new sd(mf);this.tagsNodeStack.push(Vd),mf!==Lf&&Wf&&(Sf[":@"]=this.buildAttributesMap(Lf,Zd,mf)),this.addChild(Vd,Sf,Zd),Vd=Sf}Jd="",pf=Yf}}else Jd+=Ud[pf];return Hd.child};function kd(Ud,Hd,Vd){const Jd=this.options.updateTag(Hd.tagname,Vd,Hd[":@"]);Jd===!1||(typeof Jd=="string"&&(Hd.tagname=Jd),Ud.addChild(Hd))}const Rd=function(Ud){if(this.options.processEntities){for(let Hd in this.docTypeEntities){const Vd=this.docTypeEntities[Hd];Ud=Ud.replace(Vd.regx,Vd.val)}for(let Hd in this.lastEntities){const Vd=this.lastEntities[Hd];Ud=Ud.replace(Vd.regex,Vd.val)}if(this.options.htmlEntities)for(let Hd in this.htmlEntities){const Vd=this.htm
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Hh=!0,Xh=!1,gm;return{s:function(){Zf=Zf.call(Rf)},n:function(){var Gm=Zf.next();return Hh=Gm.done,Gm},e:function(Gm){Xh=!0,gm=Gm},f:function(){try{!Hh&&Zf.return!=null&&Zf.return()}finally{if(Xh)throw gm}}}}function ld(Rf,Df){if(Rf){if(typeof Rf=="string")return cd(Rf,Df);var Zf=Object.prototype.toString.call(Rf).slice(8,-1);if(Zf==="Object"&&Rf.constructor&&(Zf=Rf.constructor.name),Zf==="Map"||Zf==="Set")return Array.from(Rf);if(Zf==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Zf))return cd(Rf,Df)}}function cd(Rf,Df){(Df==null||Df>Rf.length)&&(Df=Rf.length);for(var Zf=0,bh=new Array(Df);Zf<Df;Zf++)bh[Zf]=Rf[Zf];return bh}var ud=td("./lib/md5.js"),_d=td("./lib/crypto.js"),yd=td("./node_modules/fast-xml-parser/src/fxp.js"),gd=yd.XMLParser,Ed=yd.XMLBuilder,Td=new gd({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),kd=new Ed,Rd=td("./lib/base64.js"),Nd=td("./src/tracker.js"),Id=function(Df){var Zf=Td.parse(Df);return Zf},Md=function(Df){var Zf=kd.build(Df);return Zf};function Ld(Rf){return encodeURIComponent(Rf).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function Pd(Rf,Df){var Zf=[];for(var bh in Rf)Rf.hasOwnProperty(bh)&&Zf.push(Df?Ld(bh).toLowerCase():bh);return Zf.sort(function(Mh,Hh){return Mh=Mh.toLowerCase(),Hh=Hh.toLowerCase(),Mh===Hh?0:Mh>Hh?1:-1})}var qd=function(Df,Zf){var bh,Mh,Hh,Xh=[],gm=Pd(Df);for(bh=0;bh<gm.length;bh++)Mh=gm[bh],Hh=Df[Mh]===void 0||Df[Mh]===null?"":""+Df[Mh],Mh=Zf?Ld(Mh).toLowerCase():Ld(Mh),Hh=Ld(Hh)||"",Xh.push(Mh+"="+Hh);return Xh.join("&")},Yd=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],Ud=function(Df){var Zf={};for(var bh in Df){var Mh=bh.toLowerCase();(Mh.indexOf("x-cos-")>-1||Yd.indexOf(Mh)>-1)&&(Zf[bh]=Df[bh])}return Zf},Hd=function(Df){Df=Df||{};var Zf=Df.SecretId,bh=Df.SecretKey,Mh=Df.KeyTime,Hh=(Df.method||Df.Method||"get").toLowerCase(),Xh=Sf(Df.Query||Df.params||{}),gm=Ud(Sf(Df.Headers||Df.headers||{})),om=Df.Key||"",Gm;Df.UseRawKey?Gm=Df.Pathname||Df.pathname||"/"+om:(Gm=Df.Pathname||Df.pathname||om,Gm.indexOf("/")!==0&&(Gm="/"+Gm));var Fm=Df.ForceSignHost!==!1;if(!gm.Host&&!gm.host&&Df.Bucket&&Df.Region&&Fm&&(gm.Host=Df.Bucket+".cos."+Df.Region+".myqcloud.com"),!Zf)throw new Error("missing param SecretId");if(!bh)throw new Error("missing param SecretKey");var Om=Math.round(Pf(Df.SystemClockOffset)/1e3)-1,Jm=Om,N1=Df.Expires||Df.expires;N1===void 0?Jm+=900:Jm+=N1*1||0;var R1="sha1",x1=Zf,Xm=Mh||Om+";"+Jm,F1=Mh||Om+";"+Jm,y1=Pd(gm,!0).join(";").toLowerCase(),V1=Pd(Xh,!0).join(";").toLowerCase(),Z1=_d.HmacSHA1(F1,bh).toString(),I1=[Hh,Gm,sh.obj2str(Xh,!0),sh.obj2str(gm,!0),""].join(`
`),O1=["sha1",Xm,_d.SHA1(I1).toString(),""].join(`
`),jm=_d.HmacSHA1(O1,Z1).toString(),g1=["q-sign-algorithm="+R1,"q-ak="+x1,"q-sign-time="+Xm,"q-key-time="+F1,"q-header-list="+y1,"q-url-param-list="+V1,"q-signature="+jm].join("&");return g1},Vd=function(Df,Zf,bh){var Mh=Zf/8,Hh=Df.slice(bh,bh+Mh);return new Uint8Array(Hh).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[Zf](Hh)[0]},Jd=function(Df,Zf,bh,Mh){var Hh=Df.slice(Zf,bh),Xh="";return new Uint8Array(Hh).forEach(function(gm){Xh+=String.fromCharCode(gm)}),Mh&&(Xh=decodeURIComponent(escape(Xh))),Xh},Zd=function(Df){for(var Zf={},bh=Jd(Df),Mh={records:[]};Df.byteLength;){var Hh=Vd(Df,32,0),Xh=Vd(Df,32,4),gm=Hh-Xh-16,om=0,Gm;for(Df=Df.slice(12);om<Xh;){var Fm=Vd(Df,8,om),Om=Jd(Df,om+1,om+1+Fm),Jm=Vd(Df,16,om+Fm+2),N1=Jd(Df,om+Fm+4,om+Fm+4+Jm);Zf[Om]=N1,om+=Fm+4+Jm}if(Zf[":event-type"]==="Records")Gm=Jd(Df,om,om+gm,!0),Mh.records.push(Gm);else if(Zf[":event-type"]==="Stats")Gm=Jd(Df,om,om+gm,!0),Mh.stats=sh.xml2json(Gm).Stats;else if(Zf[":event-type"]==="error"){var R1=Zf[":error-code"],x1=Zf[":error-message"],Xm=new Error(x1);Xm.message=x1,Xm.name=Xm.code=R1,Mh.error=Xm}Df=Df.slice(om+gm+4)}return{payload:Mh.records.join(""),body:bh}},pf=function(Df){var Zf=this.options.CopySourceParser;if(Zf)return Zf(Df);var bh=Df.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return bh?{Bucket:bh[1],Region:bh[3],Key:bh[7]}:null},Xd=function(){},hf=function(Df){var Zf={};for(var bh in Df)Df.hasOwnProperty(bh)&&Df[bh]!==void 0&&Df[bh]!==null&&(Zf[bh]=Df[bh]);return Zf},mf=function(Df,Zf){var bh,Mh=new FileReader;FileReader.prototype.readAsBinaryString?(bh=FileReader.prototype.readAsBinaryString,Mh.onload=function(){Zf(this.result)}):FileReader.prototype.readAsArrayBuffer?bh=function(Xh){var gm="",om=new FileReader;om.onload=function(Gm){for(var Fm=new Uint8Array(om.result),Om=Fm.byteLength,Jm=0;Jm<Om;Jm++)gm+=String.fromCharCode(Fm[Jm]);Zf(gm)},om.readAsArrayBuffer(Xh)}:console.error("FileReader not support readAsBinaryString"),bh.call(Mh,Df)},xf=function(){var Rf=function(bh,Mh){bh=bh.split("."),Mh=Mh.split(".");for(var Hh=0;Hh<Mh.length;Hh++)if(bh[Hh]!==Mh[Hh])return parseInt(bh[Hh])>parseInt(Mh[Hh])?1:-1;return 0},Df=function(bh){if(!bh)return!1;var Mh=(bh.match(/Chrome\/([.\d]+)/)||[])[1],Hh=(bh.match(/QBCore\/([.\d]+)/)||[])[1],Xh=(bh.match(/QQBrowser\/([.\d]+)/)||[])[1],gm=Mh&&Rf(Mh,"53.0.2785.116")<0&&Hh&&Rf(Hh,"3.53.991.400")<0&&Xh&&Rf(Xh,"9.0.2524.400")<=0||!1;return gm};return Df(typeof navigator<"u"&&navigator.userAgent)}(),Lf=function(Df,Zf,bh,Mh,Hh){var Xh;if(Df.slice?Xh=Df.slice(Zf,bh):Df.mozSlice?Xh=Df.mozSlice(Zf,bh):Df.webkitSlice&&(Xh=Df.webkitSlice(Zf,bh)),Mh&&xf){var gm=new FileReader;gm.onload=function(om){Xh=null,Hh(new Blob([gm.result]))},gm.readAsArrayBuffer(Xh)}else Hh(Xh)},Wf=function(Df,Zf,bh,Mh){bh=bh||Xd,Df?typeof Zf=="string"?bh(sh.md5(Zf,!0)):Blob&&Zf instanceof Blob?sh.getFileMd5(Zf,function(Hh,Xh){bh(Xh)},Mh):bh():bh()},Yf=1024*1024,If=function(Df,Zf,bh){var Mh=Df.size,Hh=0,Xh=ud.getCtx(),gm=function om(Gm){if(Gm>=Mh){var Fm=Xh.digest("hex");Zf(null,Fm);return}var Om=Math.min(Mh,Gm+Yf);sh.fileSlice(Df,Gm,Om,!1,function(Jm){mf(Jm,function(N1){Jm=null,Xh=Xh.update(N1,!0),Hh+=N1.length,N1=null,bh&&bh({loaded:Hh,total:Mh,percent:Math.round(Hh/Mh*1e4)/1e4}),om(Gm+Yf)})})};gm(0)};function Sf(Rf){return zf(Rf,function(Df){return sd(Df)==="object"&&Df!==null?Sf(Df):Df})}function wf(Rf,Df,Zf){return Rf&&Df in Rf?Rf[Df]:Zf}function Kf(Rf,Df){return $f(Df,function(Zf,bh){Rf[bh]=Df[bh]}),Rf}function qf(Rf){return Rf instanceof Array}function gf(Rf,Df){for(var Zf=!1,bh=0;bh<Rf.length;bh++)if(Df===Rf[bh]){Zf=!0;break}return Zf}function _f(Rf){return qf(Rf)?Rf:[Rf]}function $f(Rf,Df){for(var Zf in Rf)Rf.hasOwnProperty(Zf)&&Df(Rf[Zf],Zf)}function zf(Rf,Df){var Zf=qf(Rf)?[]:{};for(var bh in Rf)Rf.hasOwnProperty(bh)&&(Zf[bh]=Df(Rf[bh],bh));return Zf}function hh(Rf,Df){var Zf=qf(Rf),bh=Zf?[]:{};for(var Mh in Rf)Rf.hasOwnProperty(Mh)&&Df(Rf[Mh],Mh)&&(Zf?bh.push(Rf[Mh]):bh[Mh]=Rf[Mh]);return bh}var Vf=function(Df){var Zf,bh,Mh,Hh="";for(Zf=0,bh=Df.length/2
`).forEach(function(sd){td=sd.indexOf(":"),Ja=sd.substring(0,td).trim().toLowerCase(),ed=sd.substring(td+1).trim(),!(!Ja||qa[Ja]&&ignoreDuplicateOf[Ja])&&(Ja==="set-cookie"?qa[Ja]?qa[Ja].push(ed):qa[Ja]=[ed]:qa[Ja]=qa[Ja]?qa[Ja]+", "+ed:ed)}),qa},$internals=Symbol("internals");function normalizeHeader(Ra){return Ra&&String(Ra).trim().toLowerCase()}function normalizeValue(Ra){return Ra===!1||Ra==null?Ra:utils$1.isArray(Ra)?Ra.map(normalizeValue):String(Ra)}function parseTokens(Ra){const qa=Object.create(null),Ja=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let ed;for(;ed=Ja.exec(Ra);)qa[ed[1]]=ed[2];return qa}const isValidHeaderName=Ra=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Ra.trim());function matchHeaderValue(Ra,qa,Ja,ed,td){if(utils$1.isFunction(ed))return ed.call(this,qa,Ja);if(td&&(qa=Ja),!!utils$1.isString(qa)){if(utils$1.isString(ed))return qa.indexOf(ed)!==-1;if(utils$1.isRegExp(ed))return ed.test(qa)}}function formatHeader(Ra){return Ra.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(qa,Ja,ed)=>Ja.toUpperCase()+ed)}function buildAccessors(Ra,qa){const Ja=utils$1.toCamelCase(" "+qa);["get","set","has"].forEach(ed=>{Object.defineProperty(Ra,ed+Ja,{value:function(td,rd,sd){return this[ed].call(this,qa,td,rd,sd)},configurable:!0})})}class AxiosHeaders{constructor(qa){qa&&this.set(qa)}set(qa,Ja,ed){const td=this;function rd(od,ld,cd){const ud=normalizeHeader(ld);if(!ud)throw new Error("header name must be a non-empty string");const _d=utils$1.findKey(td,ud);(!_d||td[_d]===void 0||cd===!0||cd===void 0&&td[_d]!==!1)&&(td[_d||ld]=normalizeValue(od))}const sd=(od,ld)=>utils$1.forEach(od,(cd,ud)=>rd(cd,ud,ld));if(utils$1.isPlainObject(qa)||qa instanceof this.constructor)sd(qa,Ja);else if(utils$1.isString(qa)&&(qa=qa.trim())&&!isValidHeaderName(qa))sd(parseHeaders(qa),Ja);else if(utils$1.isHeaders(qa))for(const[od,ld]of qa.entries())rd(ld,od,ed);else qa!=null&&rd(Ja,qa,ed);return this}get(qa,Ja){if(qa=normalizeHeader(qa),qa){const ed=utils$1.findKey(this,qa);if(ed){const td=this[ed];if(!Ja)return td;if(Ja===!0)return parseTokens(td);if(utils$1.isFunction(Ja))return Ja.call(this,td,ed);if(utils$1.isRegExp(Ja))return Ja.exec(td);throw new TypeError("parser must be boolean|regexp|function")}}}has(qa,Ja){if(qa=normalizeHeader(qa),qa){const ed=utils$1.findKey(this,qa);return!!(ed&&this[ed]!==void 0&&(!Ja||matchHeaderValue(this,this[ed],ed,Ja)))}return!1}delete(qa,Ja){const ed=this;let td=!1;function rd(sd){if(sd=normalizeHeader(sd),sd){const od=utils$1.findKey(ed,sd);od&&(!Ja||matchHeaderValue(ed,ed[od],od,Ja))&&(delete ed[od],td=!0)}}return utils$1.isArray(qa)?qa.forEach(rd):rd(qa),td}clear(qa){const Ja=Object.keys(this);let ed=Ja.length,td=!1;for(;ed--;){const rd=Ja[ed];(!qa||matchHeaderValue(this,this[rd],rd,qa,!0))&&(delete this[rd],td=!0)}return td}normalize(qa){const Ja=this,ed={};return utils$1.forEach(this,(td,rd)=>{const sd=utils$1.findKey(ed,rd);if(sd){Ja[sd]=normalizeValue(td),delete Ja[rd];return}const od=qa?formatHeader(rd):String(rd).trim();od!==rd&&delete Ja[rd],Ja[od]=normalizeValue(td),ed[od]=!0}),this}concat(...qa){return this.constructor.concat(this,...qa)}toJSON(qa){const Ja=Object.create(null);return utils$1.forEach(this,(ed,td)=>{ed!=null&&ed!==!1&&(Ja[td]=qa&&utils$1.isArray(ed)?ed.join(", "):ed)}),Ja}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([qa,Ja])=>qa+": "+Ja).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(qa){return qa instanceof this?qa:new this(qa)}static concat(qa,...Ja){const ed=new this(qa);return Ja.forEach(td=>ed.set(td)),ed}static accessor(qa){const ed=(this[$internals]=this[$internals]={accessors:{}}).accessors,td=this.prototype;function rd(sd){const od=normalizeHeader(sd);ed[od]||(buildAccessors(td,sd),ed[od]=!0)}return utils$1.isArray(qa)?qa.forEach(rd):rd(qa),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:Ra},qa)=>{let Ja=qa[0].toUpperCase()+qa.slice(1);return{get:()=>Ra,set(ed){this[Ja]=ed}}});utils$1.freezeMethods(AxiosHeaders);function transformData(Ra,qa){const Ja=this||defaults,ed=qa||Ja,td=AxiosHeaders.from(ed.headers);let rd=ed.data;return utils$1.forEach(Ra,function(od){rd=od.call(Ja,rd,td.normalize(),qa?qa.status:void 0)}),td.normalize(),rd}function isCancel(Ra){return!!(Ra&&Ra.__CANCEL__)}function CanceledError(Ra,qa,Ja){AxiosError.call(this,Ra??"canceled",AxiosError.ERR_CANCELED,qa,Ja),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ra,qa,Ja){const ed=Ja.config.validateStatus;!Ja.status||!ed||ed(Ja.status)?Ra(Ja):qa(new AxiosError("Request failed with status code "+Ja.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(Ja.status/100)-4],Ja.config,Ja.request,Ja))}function parseProtocol(Ra){const qa=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Ra);return qa&&qa[1]||""}function speedometer(Ra,qa){Ra=Ra||10;const Ja=new Array(Ra),ed=new Array(Ra);let td=0,rd=0,sd;return qa=qa!==void 0?qa:1e3,function(ld){const cd=Date.now(),ud=ed[rd];sd||(sd=cd),Ja[td]=ld,ed[td]=cd;let _d=rd,yd=0;for(;_d!==td;)yd+=Ja[_d++],_d=_d%Ra;if(td=(td+1)%Ra,td===rd&&(rd=(rd+1)%Ra),cd-sd<qa)return;const gd=ud&&cd-ud;return gd?Math.round(yd*1e3/gd):void 0}}function throttle(Ra,qa){let Ja=0,ed=1e3/qa,td,rd;const sd=(cd,ud=Date.now())=>{Ja=ud,td=null,rd&&(clearTimeout(rd),rd=null),Ra.apply(null,cd)};return[(...cd)=>{const ud=Date.now(),_d=ud-Ja;_d>=ed?sd(cd,ud):(td=cd,rd||(rd=setTimeout(()=>{rd=null,sd(td)},ed-_d)))},()=>td&&sd(td)]}const progressEventReducer=(Ra,qa,Ja=3)=>{let ed=0;const td=speedometer(50,250);return throttle(rd=>{const sd=rd.loaded,od=rd.lengthComputable?rd.total:void 0,ld=sd-ed,cd=td(ld),ud=sd<=od;ed=sd;const _d={loaded:sd,total:od,progress:od?sd/od:void 0,bytes:ld,rate:cd||void 0,estimated:cd&&od&&ud?(od-sd)/cd:void 0,event:rd,lengthComputable:od!=null,[qa?"download":"upload"]:!0};Ra(_d)},Ja)},progressEventDecorator=(Ra,qa)=>{const Ja=Ra!=null;return[ed=>qa[0]({lengthComputable:Ja,total:Ra,loaded:ed}),qa[1]]},asyncDecorator=Ra=>(...qa)=>utils$1.asap(()=>Ra(...qa)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const qa=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent),Ja=document.createElement("a");let ed;function td(rd){let sd=rd;return qa&&(Ja.setAttribute("href",sd),sd=Ja.href),Ja.setAttribute("href",sd),{href:Ja.href,protocol:Ja.protocol?Ja.protocol.replace(/:$/,""):"",host:Ja.host,search:Ja.search?Ja.search.replace(/^\?/,""):"",hash:Ja.hash?Ja.hash.replace(/^#/,""):"",hostname:Ja.hostname,port:Ja.port,pathname:Ja.pathname.charAt(0)==="/"?Ja.pathname:"/"+Ja.pathname}}return ed=td(window.location.href),function(sd){const od=utils$1.isString(sd)?td(sd):sd;return od.protocol===ed.protocol&&od.host===ed.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(Ra,qa,Ja,ed,td,rd){const sd=[Ra+"="+encodeURIComponent(qa)];utils$1.isNumber(Ja)&&sd.push("expires="+new Date(Ja).toGMTString()),utils$1.isString(ed)&&sd.push("path="+ed),utils$1.isString(td)&&sd.push("domain="+td),rd===!0&&sd.push("secure"),document.cookie=sd.join("; ")},read(Ra){const qa=document.cookie.match(new RegExp("(^|;\\s*)("+Ra+")=([^;]*)"));return qa?decodeURIComponent(qa[3]):null},remove(Ra){this.write(Ra,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(Ra){return/^([a-z][a-z\d+\-.]*
`+rd.map(renderReason).join(`
`):" "+renderReason(rd[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+sd,"ERR_NOT_SUPPORT")}return ed},adapters:knownAdapters};function throwIfCancellationRequested(Ra){if(Ra.cancelToken&&Ra.cancelToken.throwIfRequested(),Ra.signal&&Ra.signal.aborted)throw new CanceledError(null,Ra)}function dispatchRequest(Ra){return throwIfCancellationRequested(Ra),Ra.headers=AxiosHeaders.from(Ra.headers),Ra.data=transformData.call(Ra,Ra.transformRequest),["post","put","patch"].indexOf(Ra.method)!==-1&&Ra.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(Ra.adapter||defaults.adapter)(Ra).then(function(ed){return throwIfCancellationRequested(Ra),ed.data=transformData.call(Ra,Ra.transformResponse,ed),ed.headers=AxiosHeaders.from(ed.headers),ed},function(ed){return isCancel(ed)||(throwIfCancellationRequested(Ra),ed&&ed.response&&(ed.response.data=transformData.call(Ra,Ra.transformResponse,ed.response),ed.response.headers=AxiosHeaders.from(ed.response.headers))),Promise.reject(ed)})}const VERSION="1.7.7",validators$1={};["object","boolean","number","function","string","symbol"].forEach((Ra,qa)=>{validators$1[Ra]=function(ed){return typeof ed===Ra||"a"+(qa<1?"n ":" ")+Ra}});const deprecatedWarnings={};validators$1.transitional=function(qa,Ja,ed){function td(rd,sd){return"[Axios v"+VERSION+"] Transitional option '"+rd+"'"+sd+(ed?". "+ed:"")}return(rd,sd,od)=>{if(qa===!1)throw new AxiosError(td(sd," has been removed"+(Ja?" in "+Ja:"")),AxiosError.ERR_DEPRECATED);return Ja&&!deprecatedWarnings[sd]&&(deprecatedWarnings[sd]=!0,console.warn(td(sd," has been deprecated since v"+Ja+" and will be removed in the near future"))),qa?qa(rd,sd,od):!0}};function assertOptions(Ra,qa,Ja){if(typeof Ra!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const ed=Object.keys(Ra);let td=ed.length;for(;td-- >0;){const rd=ed[td],sd=qa[rd];if(sd){const od=Ra[rd],ld=od===void 0||sd(od,rd,Ra);if(ld!==!0)throw new AxiosError("option "+rd+" must be "+ld,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(Ja!==!0)throw new AxiosError("Unknown option "+rd,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(qa){this.defaults=qa,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(qa,Ja){try{return await this._request(qa,Ja)}catch(ed){if(ed instanceof Error){let td;Error.captureStackTrace?Error.captureStackTrace(td={}):td=new Error;const rd=td.stack?td.stack.replace(/^.+\n/,""):"";try{ed.stack?rd&&!String(ed.stack).endsWith(rd.replace(/^.+\n.+\n/,""))&&(ed.stack+=`
`+rd):ed.stack=rd}catch{}}throw ed}}_request(qa,Ja){typeof qa=="string"?(Ja=Ja||{},Ja.url=qa):Ja=qa||{},Ja=mergeConfig(this.defaults,Ja);const{transitional:ed,paramsSerializer:td,headers:rd}=Ja;ed!==void 0&&validator.assertOptions(ed,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),td!=null&&(utils$1.isFunction(td)?Ja.paramsSerializer={serialize:td}:validator.assertOptions(td,{encode:validators.function,serialize:validators.function},!0)),Ja.method=(Ja.method||this.defaults.method||"get").toLowerCase();let sd=rd&&utils$1.merge(rd.common,rd[Ja.method]);rd&&utils$1.forEach(["delete","get","head","post","put","patch","common"],Ed=>{delete rd[Ed]}),Ja.headers=AxiosHeaders.concat(sd,rd);const od=[];let ld=!0;this.interceptors.request.forEach(function(Td){typeof Td.runWhen=="function"&&Td.runWhen(Ja)===!1||(ld=ld&&Td.synchronous,od.unshift(Td.fulfilled,Td.rejected))});const cd=[];this.interceptors.response.forEach(function(Td){cd.push(Td.fulfilled,Td.rejected)});let ud,_d=0,yd;if(!ld){const Ed=[dispatchRequest.bind(this),void 0];for(Ed.unshift.apply(Ed,od),Ed.push.apply(Ed,cd),yd=Ed.length,ud=Promise.resolve(Ja);_d<yd;)ud=ud.then(Ed[_d++],Ed[_d++]);return ud}yd=od.length;let gd=Ja;for(_d=0;_d<yd;){const Ed=od[_d++],Td=od[_d++];try{gd=Ed(gd)}catch(kd){Td.call(this,kd);break}}try{ud=dispatchRequest.call(this,gd)}catch(Ed){return Promise.reject(Ed)}for(_d=0,yd=cd.length;_d<yd;)ud=ud.then(cd[_d++],cd[_d++]);return ud}getUri(qa){qa=mergeConfig(this.defaults,qa);const Ja=buildFullPath(qa.baseURL,qa.url);return buildURL(Ja,qa.params,qa.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(qa){Axios.prototype[qa]=function(Ja,ed){return this.request(mergeConfig(ed||{},{method:qa,url:Ja,data:(ed||{}).data}))}});utils$1.forEach(["post","put","patch"],function(qa){function Ja(ed){return function(rd,sd,od){return this.request(mergeConfig(od||{},{method:qa,headers:ed?{"Content-Type":"multipart/form-data"}:{},url:rd,data:sd}))}}Axios.prototype[qa]=Ja(),Axios.prototype[qa+"Form"]=Ja(!0)});class CancelToken{constructor(qa){if(typeof qa!="function")throw new TypeError("executor must be a function.");let Ja;this.promise=new Promise(function(rd){Ja=rd});const ed=this;this.promise.then(td=>{if(!ed._listeners)return;let rd=ed._listeners.length;for(;rd-- >0;)ed._listeners[rd](td);ed._listeners=null}),this.promise.then=td=>{let rd;const sd=new Promise(od=>{ed.subscribe(od),rd=od}).then(td);return sd.cancel=function(){ed.unsubscribe(rd)},sd},qa(function(rd,sd,od){ed.reason||(ed.reason=new CanceledError(rd,sd,od),Ja(ed.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(qa){if(this.reason){qa(this.reason);return}this._listeners?this._listeners.push(qa):this._listeners=[qa]}unsubscribe(qa){if(!this._listeners)return;const Ja=this._listeners.indexOf(qa);Ja!==-1&&this._listeners.splice(Ja,1)}toAbortSignal(){const qa=new AbortController,Ja=ed=>{qa.abort(ed)};return this.subscribe(Ja),qa.signal.unsubscribe=()=>this.unsubscribe(Ja),qa.signal}static source(){let qa;return{token:new CancelToken(function(td){qa=td}),cancel:qa}}}function spread(Ra){return function(Ja){return Ra.apply(null,Ja)}}function isAxiosError(Ra){return utils$1.isObject(Ra)&&Ra.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,Expect
async (CUSTOM_ARG) => {
${localStorage.getItem("formCustomConfig")}
}
`;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer,uuidv4:v4,qiniu,tokenTools,getDir,getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(Ra=>{console.error(Ra),reject(Ra)})})}function fileUpload(Ra,qa){const Ja=localStorage.getItem("imgHost");switch(!Ja&&localStorage.setItem("imgHost","default"),Ja){case"aliOSS":return aliOSSFileUpload(qa);case"minio":return minioFileUpload(Ra,qa.name);case"txCOS":return txCOSFileUpload(qa);case"qiniu":return qiniuUpload(qa);case"gitee":return giteeUpload(Ra,qa.name);case"github":return ghFileUpload(Ra,qa.name);case"formCustom":return formCustomUpload(Ra,qa);default:return ghFileUpload(Ra,qa.name)}}const fileApi={fileUpload},_sfc_main$v={__name:"PostInfo",setup(Ra){const qa=useStore(),{output:Ja}=storeToRefs(qa),ed=ref$1(!1),td=ref$1({title:"",desc:"",thumb:"",content:""});function rd(){var ld;let od={};try{od={thumb:(ld=document.querySelector("#output img"))==null?void 0:ld.src,title:[1,2,3,4,5,6].map(cd=>document.querySelector(`#output h${cd}`)).filter(cd=>cd)[0].textContent,desc:document.querySelector("#output p").textContent,content:Ja.value}}catch(cd){console.log("error",cd)}td.value={...od,auto:od},ed.value=!0}function sd(){ed.value=!1,window.syncPost({thumb:td.value.thumb||td.value.auto.thumb,title:td.value.title||td.value.auto.title,desc:td.value.desc||td.value.auto.desc,content:td.value.content||td.value.auto.content})}return(od,ld)=>{const cd=ElButton,ud=ElAlert,_d=ElInput,yd=ElFormItem,gd=ElForm,Ed=ElDialog;return openBlock(),createElementBlock(Fragment,null,[createVNode(cd,{plain:"",type:"primary",onClick:rd},{default:withCtx(()=>ld[5]||(ld[5]=[createTextVNode(" 发布 ")])),_:1}),createVNode(Ed,{title:"发布","model-value":ed.value,onClose:ld[4]||(ld[4]=Td=>ed.value=!1)},{footer:withCtx(()=>[createVNode(cd,{onClick:ld[3]||(ld[3]=Td=>ed.value=!1)},{default:withCtx(()=>ld[6]||(ld[6]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(cd,{type:"primary",onClick:sd},{default:withCtx(()=>ld[7]||(ld[7]=[createTextVNode(" 确 定 ")])),_:1})]),default:withCtx(()=>[createVNode(ud,{class:"mb-4",title:"注:此功能由第三方浏览器插件支持,本平台不保证安全性。",type:"info","show-icon":""}),createVNode(gd,{class:"postInfo","label-width":"50",model:td.value},{default:withCtx(()=>[createVNode(yd,{label:"封面"},{default:withCtx(()=>[createVNode(_d,{modelValue:td.value.thumb,"onUpdate:modelValue":ld[0]||(ld[0]=Td=>td.value.thumb=Td),placeholder:"自动提取第一张图"},null,8,["modelValue"])]),_:1}),createVNode(yd,{label:"标题"},{default:withCtx(()=>[createVNode(_d,{modelValue:td.value.title,"onUpdate:modelValue":ld[1]||(ld[1]=Td=>td.value.title=Td),placeholder:"自动提取第一个标题"},null,8,["modelValue"])]),_:1}),createVNode(yd,{label:"描述"},{default:withCtx(()=>[createVNode(_d,{modelValue:td.value.desc,"onUpdate:modelValue":ld[2]||(ld[2]=Td=>td.value.desc=Td),type:"textarea",rows:4,placeholder:"自动提取第一个段落"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])],64)}}};function isComponentPublicInstance(Ra){return Ra!=null&&typeof Ra=="object"&&"$el"in Ra}function unwrapElement(Ra){if(isComponentPublicInstance(Ra)){const qa=Ra.$el;return isNode$1(qa)&&getNodeName(qa)==="#comment"?null:qa}return Ra}function toValue$1(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function arrow(Ra){return{name:"arrow",options:Ra,fn(qa){const Ja=unwrapElement(toValue$1(Ra.element));return Ja==null?{}:arrow$1({element:Ja,padding:Ra.padding}).fn(qa)}}}function getDPR(Ra){return typeof window>"u"?1:(Ra.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(Ra,qa){const Ja=getDPR(Ra);return Math.round(qa*Ja)/Ja}function useFloating(Ra,qa,Ja){Ja===void 0&&(Ja={});const ed=Ja.whileElementsMounted,td=computed(()=>{var qd;return(qd=toValue$1(Ja.open))!=null?qd:!0}),rd=computed(()=>toValue$1(Ja.middleware)),sd=computed(()=>{var qd;return(qd=toValue$1(Ja.placement))!=null?qd:"bottom"}),od=computed(()=>{var qd;return(qd=toValue$1(Ja.s
`)].join(`
`))}return()=>rd.value||td.value||od.value?h$1(qa.default({present:od})[0],{ref:ud=>{const _d=$e(ud);return typeof(_d==null?void 0:_d.hasAttribute)>"u"||(_d!=null&&_d.hasAttribute("data-radix-popper-content-wrapper")?sd.value=_d.firstElementChild:sd.value=_d),_d}}):null}}),ht=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=ja();return(Ja,ed)=>unref(qa)||Ja.forceMount?(openBlock(),createBlock(Teleport$1,{key:0,to:Ja.to,disabled:Ja.disabled},[renderSlot(Ja.$slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),Yi="dismissableLayer.pointerDownOutside",Xi="dismissableLayer.focusOutside";function Fl(Ra,qa){const Ja=qa.closest("[data-dismissable-layer]"),ed=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),td=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(Ja&&ed===Ja||td.indexOf(ed)<td.indexOf(Ja))}function Nl(Ra,qa){var Ja;const ed=((Ja=qa==null?void 0:qa.value)==null?void 0:Ja.ownerDocument)??(globalThis==null?void 0:globalThis.document),td=ref$1(!1),rd=ref$1(()=>{});return watchEffect(sd=>{if(!qe)return;const od=async cd=>{const ud=cd.target;if(qa!=null&&qa.value){if(Fl(qa.value,ud)){td.value=!1;return}if(cd.target&&!td.value){let _d=function(){Kt(Yi,Ra,yd)};const yd={originalEvent:cd};cd.pointerType==="touch"?(ed.removeEventListener("click",rd.value),rd.value=_d,ed.addEventListener("click",rd.value,{once:!0})):_d()}else ed.removeEventListener("click",rd.value);td.value=!1}},ld=window.setTimeout(()=>{ed.addEventListener("pointerdown",od)},0);sd(()=>{window.clearTimeout(ld),ed.removeEventListener("pointerdown",od),ed.removeEventListener("click",rd.value)})}),{onPointerDownCapture:()=>td.value=!0}}function Ll(Ra,qa){var Ja;const ed=((Ja=qa==null?void 0:qa.value)==null?void 0:Ja.ownerDocument)??(globalThis==null?void 0:globalThis.document),td=ref$1(!1);return watchEffect(rd=>{if(!qe)return;const sd=async od=>{qa!=null&&qa.value&&(await nextTick$1(),!(!qa.value||Fl(qa.value,od.target))&&od.target&&!td.value&&Kt(Xi,Ra,{originalEvent:od}))};ed.addEventListener("focusin",sd),rd(()=>ed.removeEventListener("focusin",sd))}),{onFocusCapture:()=>td.value=!0,onBlurCapture:()=>td.value=!1}}const je=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yt=defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(Ra,{emit:qa}){const Ja=Ra,ed=qa,{forwardRef:td,currentElement:rd}=T(),sd=computed(()=>{var Ed;return((Ed=rd.value)==null?void 0:Ed.ownerDocument)??globalThis.document}),od=computed(()=>je.layersRoot),ld=computed(()=>rd.value?Array.from(od.value).indexOf(rd.value):-1),cd=computed(()=>je.layersWithOutsidePointerEventsDisabled.size>0),ud=computed(()=>{const Ed=Array.from(od.value),[Td]=[...je.layersWithOutsidePointerEventsDisabled].slice(-1),kd=Ed.indexOf(Td);return ld.value>=kd}),_d=Nl(async Ed=>{const Td=[...je.branches].some(kd=>kd.contains(Ed.target));!ud.value||Td||(ed("pointerDownOutside",Ed),ed("interactOutside",Ed),await nextTick$1(),Ed.defaultPrevented||ed("dismiss"))},rd),yd=Ll(Ed=>{[...je.branches].some(Td=>Td.contains(Ed.target))||(ed("focusOutside",Ed),ed("interactOutside",Ed),Ed.defaultPrevented||ed("dismiss"))},rd);jn("Escape",Ed=>{ld.value===od.value.size-1&&(ed("escapeKeyDown",Ed),Ed.defaultPrevented||ed("dismiss"))});let gd;return watchEffect(Ed=>{rd.value&&(Ja.disableOutsidePointerEvents&&(je.layersWithOutsidePointerEventsDisabled.size===0&&(gd=sd.value.body.style.pointerEvents,sd.value.body.style.pointerEvents="none"),je.layersWithOutsidePointerEventsDisabled.add(rd.value)),od.value.add(rd.value),Ed(()=>{Ja.disableOutsidePointerEvents&&je.layersWithOutsidePointerEventsDisabled.size===1&&(sd.value.body.style.pointerEvents=gd)}))}),watchEffect(Ed=>{Ed(()=>{rd.value&&(od.value.delete(rd.value),je.layersWithOutsidePointerEventsDisabled.delete(rd.v
* @license lucide-vue-next v0.428.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const toKebabCase=Ra=>Ra.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-vue-next v0.428.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
* @license lucide-vue-next v0.428.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Icon=({size:Ra,strokeWidth:qa=2,absoluteStrokeWidth:Ja,color:ed,iconNode:td,name:rd,class:sd,...od},{slots:ld})=>h$1("svg",{...defaultAttributes,width:Ra||defaultAttributes.width,height:Ra||defaultAttributes.height,stroke:ed||defaultAttributes.stroke,"stroke-width":Ja?Number(qa)*24/Number(Ra):qa,class:["lucide",`lucide-${toKebabCase(rd??"icon")}`],...od},[...td.map(cd=>h$1(...cd)),...ld.default?[ld.default()]:[]]);/**
* @license lucide-vue-next v0.428.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const createLucideIcon=(Ra,qa)=>(Ja,{slots:ed})=>h$1(Icon,{...Ja,iconNode:qa,name:Ra},ed);/**
* @license lucide-vue-next v0.428.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ChevronRight=createLucideIcon("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),_sfc_main$q=defineComponent({__name:"DropdownMenuShortcut",props:{class:{}},setup(Ra){const qa=Ra;return(Ja,ed)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn)("ml-auto text-xs tracking-widest opacity-60",qa.class))},[renderSlot(Ja.$slots,"default")],2))}}),_sfc_main$p=defineComponent({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,Ja=computed(()=>{const{class:ed,...td}=qa;return td});return(ed,td)=>(openBlock(),createBlock(unref(rh),mergeProps(Ja.value,{class:unref(cn)("-mx-1 my-1 h-px bg-muted",qa.class)}),null,16,["class"]))}}),_sfc_main$o=defineComponent({__name:"DropdownMenuSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:qa}){const td=xe(Ra,qa);return(rd,sd)=>(openBlock(),createBlock(unref(fh),normalizeProps(guardReactiveProps(unref(td))),{default:withCtx(()=>[renderSlot(rd.$slots,"default")]),_:3},16))}}),_sfc_main$n=defineComponent({__name:"DropdownMenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,Ja=computed(()=>{const{class:td,...rd}=qa;return rd}),ed=It(Ja);return(td,rd)=>(openBlock(),createBlock(unref(mh),mergeProps(unref(ed),{class:unref(cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",qa.class)}),{default:withCtx(()=>[renderSlot(td.$slots,"default"),createVNode(unref(ChevronRight),{class:"ml-auto h-4 w-4"})]),_:3},16,["class"]))}}),_sfc_main$m=defineComponent({__name:"DropdownMenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const Ja=Ra,ed=qa,td=computed(()=>{const{class:sd,...od}=Ja;return od}),rd=xe(td,ed);return(sd,od)=>(openBlock(),createBlock(unref(vh),mergeProps(unref(rd),{class:unref(cn)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",Ja.class)}),{default:withCtx(()=>[renderSlot(sd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$l={__name:"FileDropdown",props:["isOpen","clickTrigger","openDropdown","updateOpen"],setup(Ra){const qa=Ra,Ja=useStore(),{isDark:ed,isEditOnLeft:td}=storeToRefs(Ja),{toggleDark:rd,toggleEditOnLeft:sd,exportEditorContent2HTML:od,exportEditorContent2MD:ld,importMarkdownContent:cd}=Ja;return(ud,_d)=>{const yd=upload_default,gd=ElIcon,Ed=download_default,Td=document_default,kd=check_default;return openBlock(),createBlock(unref(_sfc_main$u),{open:qa.isOpen,"onUpdate:open":qa.updateOpen},{default:withCtx(()=>[createVNode(unref(_sfc_main$t),{class:normalizeClass(["flex items-center p-2 px-4 hover:bg-gray-2 dark:hover:bg-stone-9",{"bg-gray-2":qa.isOpen,"dark:bg-stone-9":qa.isOpen}]),onClick:_d[0]||(_d[0]=Rd=>qa.clickTrigger()),onMouseenter:_d[1]||(_d[1]=Rd=>qa.openDropdown())},{default:withCtx(()=>_d[7]||(_d[7]=[createTextVNode(" ")])),_:1},8,["class"]),createVNode(unref(_sfc_main$s),{align:"start"},{default:withCtx(()=>[createVNode(unref(_sfc_main$r),{onClick:_d[2]||(_d[2]=Rd=>unref(cd)())},{default:withCtx(()=>[createVNode(gd,{class:"mr-2 h-4 w-4"},{default:withCtx(()=>[createVNode(yd)]),_:1}),_d[8]||(_d[8]=createTextVNode(" .md "))]),_:1}),createVNode(unref(_sfc_main$r),{onClick:_d[3]||(
${ld}
`,"end"),sd(),Ja()}return(ld,cd)=>{const ud=ElInputNumber,_d=ElCol,yd=ElRow,gd=ElInput,Ed=ElButton,Td=ElDialog;return openBlock(),createBlock(Td,{title:"插入表格",class:"insert__dialog","model-value":unref(qa).isShowInsertFormDialog,onClose:cd[3]||(cd[3]=kd=>unref(Ja)(!1))},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_2$1,[createVNode(Ed,{plain:"",onClick:cd[2]||(cd[2]=kd=>unref(Ja)(!1))},{default:withCtx(()=>cd[6]||(cd[6]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(Ed,{type:"primary",plain:"",onClick:od},{default:withCtx(()=>cd[7]||(cd[7]=[createTextVNode(" 确 定 ")])),_:1})])]),default:withCtx(()=>[createVNode(yd,{class:"tb-options",type:"flex",align:"middle",gutter:10},{default:withCtx(()=>[createVNode(_d,{span:12},{default:withCtx(()=>[cd[4]||(cd[4]=createTextVNode(" 行数: ")),createVNode(ud,{modelValue:ed.value,"onUpdate:modelValue":cd[0]||(cd[0]=kd=>ed.value=kd),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1}),createVNode(_d,{span:12},{default:withCtx(()=>[cd[5]||(cd[5]=createTextVNode(" 列数: ")),createVNode(ud,{modelValue:td.value,"onUpdate:modelValue":cd[1]||(cd[1]=kd=>td.value=kd),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),createBaseVNode("table",_hoisted_1$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ed.value+1,kd=>(openBlock(),createElementBlock("tr",{key:kd,class:normalizeClass({"head-style":kd===1})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(td.value,Rd=>(openBlock(),createElementBlock("td",{key:Rd},[createVNode(gd,{modelValue:rd.value[`k_${kd-1}_${Rd-1}`],"onUpdate:modelValue":Nd=>rd.value[`k_${kd-1}_${Rd-1}`]=Nd,align:"center",placeholder:kd===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]))),128))],2))),128))])]),_:1},8,["model-value"])}}},InsertFormDialog=_export_sfc(_sfc_main$b,[["__scopeId","data-v-56362dff"]]),_sfc_main$a={__name:"UploadImgDialog",emits:["uploadImage"],setup(Ra,{emit:qa}){const Ja=qa,ed=useStore(),td=ref$1({repo:"",branch:"",accessToken:""}),rd=ref$1({accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:"",useSSL:!0}),sd=ref$1({secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""}),od=ref$1({accessKey:"",secretKey:"",bucket:"",domain:"",region:""}),ld=ref$1({endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""}),cd=ref$1({code:localStorage.getItem("formCustomConfig")||removeLeft(`
const {file, util, okCb, errCb} = CUSTOM_ARG
const param = new FormData()
param.append('file', file)
util.axios.post('${window.location.origin}/upload', param, {
headers: { 'Content-Type': 'multipart/form-data' }
}).then(res => {
okCb(res.url)
}).catch(err => {
errCb(err)
})
`).trim(),editor:void 0}),ud=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"formCustom",label:"自定义代码"}],_d=ref$1("default"),yd=ref$1(null),gd=ref$1("upload");watch(gd,async qd=>{qd==="formCustom"&&nextTick$1(()=>{const Yd=yd.value.$el.querySelector("textarea");cd.value.editor=cd.value.editor||CodeMirror.fromTextArea(Yd,{mode:"javascript"})})},{immediate:!0}),onBeforeMount(()=>{localStorage.getItem("githubConfig")&&(td.value=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(rd.value=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(sd.value=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("qiniuConfig")&&(od.value=JSON.parse(localStorage.getItem("qiniuConfig"))),localStorage.getItem("minioConfig")&&(ld.value=JSON.parse(localStorage.getItem("minioConfig"))),localStorage.getItem("imgHost")&&(_d.value=localStorage.getItem("imgHost"))});function Ed(){localStorage.setItem("imgHost",_d.value),ElMessage.success("已成功切换图床")}function Td(){if(!(td.value.repo&&td.value.accessToken)){const qd=td.value.repo?"token":"GitHub 仓库";ElMessage.error(`参数${qd}不能为空`);return}localStorage.setItem("githubConfig",JSON.stringify(td.value)),ElMessage.success("保存成功")}function kd(){if(!(rd.value.accessKeyId&&rd.value.accessKeySecret&&rd.value.bucket&&rd.value.region)){ElMessage.error("阿里云 OSS 参数配置不全");return}localStorage.setItem("aliOSSConfig",JSON.stringify(rd.value)),ElMessage.success("保存成功")}function Rd(){if(!(ld.value.endpoint&&ld.value.bucket&&ld.value.accessKey&&ld.value.secretKey)){ElMessage.error("MinIO 参数配置不全");return}localStorage.setItem("minioConfig",JSON.stringify(ld.value)),ElMessage.success("保存成功")}function Nd(){if(!(sd.value.secretId&&sd.value.secretKey&&sd.value.bucket&&sd.value.region)){ElMessage.error("腾讯云 COS 参数配置不全");return}localStorage.setItem("txCOSConfig",JSON.stringify(sd.value)),ElMessage.success("保存成功")}function Id(){if(!(od.value.accessKey&&od.value.secretKey&&od.value.bucket&&od.value.domain)){ElMessage.error("七牛云 Kodo 参数配置不全");return}localStorage.setItem("qiniuConfig",JSON.stringify(od.value)),ElMessage.success("保存成功")}function Md(){const qd=cd.value.editor.getValue();localStorage.setItem("formCustomConfig",qd),ElMessage.success("保存成功")}function Ld(qd){const Yd=checkImage(qd);if(!Yd.ok)return ElMessage.error(Yd.msg),!1;let Ud=localStorage.getItem("imgHost");Ud=Ud||"default",localStorage.setItem("imgHost",Ud);const Hd=localStorage.getItem(`${Ud}Config`);return Ud==="default"||Hd?!0:(ElMessage.error(`请先配置 ${Ud} 图床参数`),!1)}function Pd(qd){Ja("uploadImage",qd.file)}return(qd,Yd)=>{const Ud=ElOption,Hd=ElSelect,Vd=ElIcon,Jd=ElUpload,Zd=ElTabPane,pf=ElInput,Xd=ElFormItem,hf=ElLink,mf=ElButton,xf=ElForm,Lf=ElSwitch,Wf=ElTabs,Yf=ElDialog;return openBlock(),createBlock(Yf,{title:"本地上传",class:"upload__dialog","model-value":unref(ed).isShowUploadImgDialog,onClose:Yd[31]||(Yd[31]=If=>unref(ed).toggleShowUploadImgDialog(!1))},{default:withCtx(()=>[createVNode(Wf,{modelValue:gd.value,"onUpdate:modelValue":Yd[30]||(Yd[30]=If=>gd.value=If)},{default:withCtx(()=>[createVNode(Zd,{class:"upload-panel",label:"选择上传",name:"upload"},{default:withCtx(()=>[createVNode(Hd,{modelValue:_d.value,"onUpdate:modelValue":Yd[0]||(Yd[0]=If=>_d.value=If),placeholder:"请选择",size:"small",onChange:Ed},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(ud,If=>createVNode(Ud,{key:If.value,label:If.label,value:If.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),createVNode(Jd,{drag:"",multiple:"",action:"",headers:{"Content-Type":"multipart/form-data"},"show-file-list":!1,accept:".jpg, .jpeg, .png, .gif",name:"file","before-upload":Ld,"http-request":Pd},{default:withCtx(()=>[c
${xf}
`,mf),ElMessage.success("图片上传成功")}function Ud(hf,mf){Ed.value=!0,toBase64(hf).then(xf=>fileApi.fileUpload(xf,hf)).then(xf=>{mf?mf(xf):Yd(xf)}).catch(xf=>{ElMessage.error(xf.message)}).finally(()=>{Ed.value=!1})}const Hd=ref$1(0);function Vd(){const hf=document.querySelector("#editor");hf.value||(hf.value=td.value),ed.value=CodeMirror.fromTextArea(hf,{mode:"text/x-markdown",theme:"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(xf){formatDoc(xf.getValue(0)).then(Lf=>{xf.setValue(Lf)})},[`${ctrlKey}-B`]:function(xf){const Lf=xf.getSelection();xf.replaceSelection(`**${Lf}**`)},[`${ctrlKey}-I`]:function(xf){const Lf=xf.getSelection();xf.replaceSelection(`*${Lf}*`)},[`${ctrlKey}-D`]:function(xf){const Lf=xf.getSelection();xf.replaceSelection(`~~${Lf}~~`)},[`${ctrlKey}-K`]:function(xf){const Lf=xf.getSelection();xf.replaceSelection(`[${Lf}]()`)},[`${ctrlKey}-E`]:function(xf){const Lf=xf.getSelection();xf.replaceSelection(`\`${Lf}\``)},[`${ctrlKey}-L`]:function(xf){const Lf=xf.getSelection();xf.replaceSelection(`\`${Lf}\``)}}}),ed.value.on("change",mf=>{clearTimeout(Hd.value),Hd.value=setTimeout(()=>{Nd(),td.value=mf.getValue()},300)}),ed.value.on("paste",(mf,xf)=>{if(!(!(xf.clipboardData&&xf.clipboardData.items)||Ed.value))for(let Lf=0,Wf=xf.clipboardData.items.length;Lf<Wf;++Lf){const Yf=xf.clipboardData.items[Lf];if(Yf.kind==="file"){const If=Yf.getAsFile();if(!qd(If))continue;Ud(If)}}})}const Jd=ref$1(null);function Zd(hf){ed.value.options.extraKeys[hf](ed.value)}const pf=ref$1(null);function Xd(){const hf=pf.value.$el,mf=async({md:Wf,list:Yf})=>{const If=[...Wf.str.matchAll(/!\[(.*?)\]\((.*?)\)/g)||[]].filter(Kf=>Kf),Sf=Wf.path.match(/.+?\//)[0];(await Promise.all(If.map(Kf=>new Promise(qf=>{let[,,gf]=Kf;gf=gf.replace(/^.\//,"");const{file:_f}=Yf.find($f=>$f.path===`${Sf}${gf}`)||{};Ud(_f,$f=>{qf({matchStr:gf,url:$f})})})))).forEach(Kf=>{Wf.str=Wf.str.replace(`](./${Kf.matchStr})`,`](${Kf.url})`).replace(`](${Kf.matchStr})`,`](${Kf.url})`)}),ed.value.setValue(Wf.str)};hf.ondragover=Wf=>Wf.preventDefault(),hf.ondrop=async Wf=>{Wf.preventDefault();for(const Yf of Wf.dataTransfer.items)Yf.getAsFileSystemHandle().then(async If=>{if(If.kind==="directory"){const Sf=await Lf(If),wf=await xf({list:Sf});mf({md:wf,list:Sf})}else{const Sf=await If.getFile();console.log("file",Sf)}})};async function xf({list:Wf}){return new Promise(Yf=>{const{path:If,file:Sf}=Wf.find(Kf=>Kf.path.match(/\.md$/)),wf=new FileReader;wf.readAsText(Sf,"UTF-8"),wf.onload=Kf=>{Yf({str:Kf.target.result,file:Sf,path:If})}})}async function Lf(Wf){const Yf=[];let If="";try{const Sf=[Wf];for(const wf of Sf){If+=`${wf.name}/`;for await(const[,Kf]of wf)Kf.kind==="file"?Yf.push({path:If+Kf.name,file:await Kf.getFile()}):(Yf.push({path:`${If+Kf.name}/`}),Sf.push(Kf))}}catch(Sf){console.error(Sf)}return Yf}}return onMounted(()=>{Vd(),Nd(),Xd()}),(hf,mf)=>{const xf=ElHeader,Lf=ElCol,Wf=ElRow,Yf=ElMain,If=ElContainer;return openBlock(),createElementBlock("div",{ref_key:"container",ref:Jd,class:"container"},[createVNode(If,null,{default:withCtx(()=>[createVNode(xf,{class:"editor__header"},{default:withCtx(()=>[createVNode(EditorHeader,{onAddFormat:Zd,onFormatContent:unref(cd),onStartCopy:Ld,onEndCopy:Pd},null,8,["onFormatContent"])]),_:1}),createVNode(Yf,{class:"container-main"},{default:withCtx(()=>[createVNode(Wf,{class:"container-main-section"},{default:withCtx(()=>[createVNode(Lf,{ref_key:"codeMirrorWrapper",ref:pf,span:unref(rd)?8:12,class:normalizeClass(["codeMirror-wrapper",{"order-1":!unref(qa).isEditOnLeft}])},{default:withCtx(()=>[createVNode(unref(_sfc_main$7),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$6),null,{default:withCtx(()=>mf[7]||(mf[7]=[createBaseVNode("textarea",{id:"editor",type:"textarea",placeholder:"Your markdown text here."},null,-1)])),_:1}),createVNode(unref(_sfc_main$5),{class:"w-64"},{default:withCtx(()=>[createVNode(unref(_sfc_main$4),{inset:"",onClick:mf[0]||(mf[0]=Sf=>unref(gd)())},{default:withCtx(()=>mf[8]||(mf[8]=[createTextVNode("
`;Rd.replaceSelection(qd+qd,null),yd(Rd,-1),Md=Rd.listSelections();for(var Yd=0;Yd<Md.length;Yd++){var Ud=Md[Yd].head.line;Rd.indentLine(Ud,null,!0),Rd.indentLine(Ud+1,null,!0)}})}function yd(Rd,Nd){for(var Id=[],Md=Rd.listSelections(),Ld=0,Pd=0;Pd<Md.length;Pd++){var qd=Md[Pd];qd.head==Rd.getCursor()&&(Ld=Pd);var Yd=qd.head.ch||Nd>0?{line:qd.head.line,ch:qd.head.ch+Nd}:{line:qd.head.line-1};Id.push({anchor:Yd,head:Yd})}Rd.setSelections(Id,Ld)}function gd(Rd){var Nd=Ja.cmpPos(Rd.anchor,Rd.head)>0;return{anchor:new td(Rd.anchor.line,Rd.anchor.ch+(Nd?-1:1)),head:new td(Rd.head.line,Rd.head.ch+(Nd?1:-1))}}function Ed(Rd,Nd){var Id=cd(Rd);if(!Id||Rd.getOption("disableInput"))return Ja.Pass;var Md=rd(Id,"pairs"),Ld=Md.indexOf(Nd);if(Ld==-1)return Ja.Pass;for(var Pd=rd(Id,"closeBefore"),qd=rd(Id,"triples"),Yd=Md.charAt(Ld+1)==Nd,Ud=Rd.listSelections(),Hd=Ld%2==0,Vd,Jd=0;Jd<Ud.length;Jd++){var Zd=Ud[Jd],pf=Zd.head,Xd,hf=Rd.getRange(pf,td(pf.line,pf.ch+1));if(Hd&&!Zd.empty())Xd="surround";else if((Yd||!Hd)&&hf==Nd)Yd&&kd(Rd,pf)?Xd="both":qd.indexOf(Nd)>=0&&Rd.getRange(pf,td(pf.line,pf.ch+3))==Nd+Nd+Nd?Xd="skipThree":Xd="skip";else if(Yd&&pf.ch>1&&qd.indexOf(Nd)>=0&&Rd.getRange(td(pf.line,pf.ch-2),pf)==Nd+Nd){if(pf.ch>2&&/\bstring/.test(Rd.getTokenTypeAt(td(pf.line,pf.ch-2))))return Ja.Pass;Xd="addFour"}else if(Yd){var mf=pf.ch==0?" ":Rd.getRange(td(pf.line,pf.ch-1),pf);if(!Ja.isWordChar(hf)&&mf!=Nd&&!Ja.isWordChar(mf))Xd="both";else return Ja.Pass}else if(Hd&&(hf.length===0||/\s/.test(hf)||Pd.indexOf(hf)>-1))Xd="both";else return Ja.Pass;if(!Vd)Vd=Xd;else if(Vd!=Xd)return Ja.Pass}var xf=Ld%2?Md.charAt(Ld-1):Nd,Lf=Ld%2?Nd:Md.charAt(Ld+1);Rd.operation(function(){if(Vd=="skip")yd(Rd,1);else if(Vd=="skipThree")yd(Rd,3);else if(Vd=="surround"){for(var Wf=Rd.getSelections(),Yf=0;Yf<Wf.length;Yf++)Wf[Yf]=xf+Wf[Yf]+Lf;Rd.replaceSelections(Wf,"around"),Wf=Rd.listSelections().slice();for(var Yf=0;Yf<Wf.length;Yf++)Wf[Yf]=gd(Wf[Yf]);Rd.setSelections(Wf)}else Vd=="both"?(Rd.replaceSelection(xf+Lf,null),Rd.triggerElectric(xf+Lf),yd(Rd,-1)):Vd=="addFour"&&(Rd.replaceSelection(xf+xf+xf+xf,"before"),yd(Rd,1))})}function Td(Rd,Nd){var Id=Rd.getRange(td(Nd.line,Nd.ch-1),td(Nd.line,Nd.ch+1));return Id.length==2?Id:null}function kd(Rd,Nd){var Id=Rd.getTokenAt(td(Nd.line,Nd.ch+1));return/\bstring/.test(Id.type)&&Id.start==Nd.ch&&(Nd.ch==0||!/\bstring/.test(Rd.getTokenTypeAt(Nd)))}})})();(function(Ra,qa){(function(Ja){Ja(requireCodemirror())})(function(Ja){var ed=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),td=Ja.Pos,rd={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function sd(yd){return yd&&yd.bracketRegex||/[(){}[\]]/}function od(yd,gd,Ed){var Td=yd.getLineHandle(gd.line),kd=gd.ch-1,Rd=Ed&&Ed.afterCursor;Rd==null&&(Rd=/(^| )cm-fat-cursor($| )/.test(yd.getWrapperElement().className));var Nd=sd(Ed),Id=!Rd&&kd>=0&&Nd.test(Td.text.charAt(kd))&&rd[Td.text.charAt(kd)]||Nd.test(Td.text.charAt(kd+1))&&rd[Td.text.charAt(++kd)];if(!Id)return null;var Md=Id.charAt(1)==">"?1:-1;if(Ed&&Ed.strict&&Md>0!=(kd==gd.ch))return null;var Ld=yd.getTokenTypeAt(td(gd.line,kd+1)),Pd=ld(yd,td(gd.line,kd+(Md>0?1:0)),Md,Ld,Ed);return Pd==null?null:{from:td(gd.line,kd),to:Pd&&Pd.pos,match:Pd&&Pd.ch==Id.charAt(0),forward:Md>0}}function ld(yd,gd,Ed,Td,kd){for(var Rd=kd&&kd.maxScanLineLength||1e4,Nd=kd&&kd.maxScanLines||1e3,Id=[],Md=sd(kd),Ld=Ed>0?Math.min(gd.line+Nd,yd.lastLine()+1):Math.max(yd.firstLine()-1,gd.line-Nd),Pd=gd.line;Pd!=Ld;Pd+=Ed){var qd=yd.getLine(Pd);if(qd){var Yd=Ed>0?0:qd.length-1,Ud=Ed>0?qd.length:-1;if(!(qd.length>Rd))for(Pd==gd.line&&(Yd=gd.ch-(Ed<0?1:0));Yd!=Ud;Yd+=Ed){var Hd=qd.charAt(Yd);if(Md.test(Hd)&&(Td===void 0||(yd.getTokenTypeAt(td(Pd,Yd+1))||"")==(Td||""))){var Vd=rd[Hd];if(Vd&&Vd.charAt(1)==">"==Ed>0)Id.push(Hd);else if(Id.length)Id.pop();else return{pos:td(Pd,Yd),ch:Hd}}}}}return Pd-Ed==(Ed>0?yd.lastLine():yd.firstLine())?!1:null}function cd(yd,gd,Ed){for(var Td=yd.state.matchBrackets.maxHighlightLineLength||1e3,kd=Ed&&Ed.highlightNonMatching,Rd=[],Nd=yd.listSelections(