md/assets/index-BbgSJ2Sp.js

1213 lines
5.3 MiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-4EVJKHTY-CUJD2kOL.js","assets/graph-DN8hSXbP.js","assets/_baseUniq-Bcepbxee.js","assets/layout-D222at_j.js","assets/_basePickBy-D_dLwQPS.js","assets/clone-B_3ulg87.js","assets/c4Diagram-6F5ED5ID-Cf2bnUEe.js","assets/chunk-ASOPGD6M-DQs_7nRs.js","assets/flowDiagram-7ASYPVHJ-DZmM289e.js","assets/chunk-5HRBRIJM-DeRBJ4fZ.js","assets/channel-DjdluJPd.js","assets/erDiagram-6RL3IURR-JoLnrKHA.js","assets/gitGraphDiagram-NRZ2UAAF-S6FaD6f1.js","assets/chunk-TMUBEWPD-CwKvHFcH.js","assets/chunk-KFBOBJHC-BUDL0aOO.js","assets/gitGraph-YCYPL57B-DLVh_Fx0.js","assets/ganttDiagram-NTVNEXSI-DrTJM0kt.js","assets/linear-C-onP87e.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-A4XQUW5V-C1UotiDI.js","assets/pieDiagram-YF2LJOPJ-C055uuma.js","assets/arc-BU9jnWFP.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-OS5C2QUG-BGdO0KBB.js","assets/xychartDiagram-6QU3TZC5-oryexS3N.js","assets/requirementDiagram-MIRIMTAZ-BjWqzJ-R.js","assets/sequenceDiagram-G6AWOVSC-D1Bcpv_D.js","assets/classDiagram-LNE6IOMH-CJi4hYmZ.js","assets/chunk-T2TOU4HS-BNexEmnA.js","assets/classDiagram-v2-MQ7JQ4JX-CJi4hYmZ.js","assets/stateDiagram-MAYHULR4-BY5LqN88.js","assets/chunk-7U56Z5CX-B4TmNpf3.js","assets/stateDiagram-v2-4JROLMXI-ClBjuCK0.js","assets/journeyDiagram-G5WM74LC-gEmuNUvt.js","assets/timeline-definition-U7ZMHBDA-DrYwoiUK.js","assets/mindmap-definition-GWI6TPTV-CD8ejQHx.js","assets/cytoscape.esm-x1Xaklx5.js","assets/sankeyDiagram-Y46BX6SQ-DKDNSWZW.js","assets/diagram-QW4FP2JN-C5ADMDuS.js","assets/blockDiagram-ZHA2E4KO-DVgBILom.js","assets/architectureDiagram-UYN6MBPD-D10ZxUYk.js"])))=>i.map(i=>d[i]);
var SN=Object.defineProperty;var rC=Ra=>{throw TypeError(Ra)};var TN=(Ra,qa,nd)=>qa in Ra?SN(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:nd}):Ra[qa]=nd;var wg=(Ra,qa,nd)=>TN(Ra,typeof qa!="symbol"?qa+"":qa,nd),xN=(Ra,qa,nd)=>qa.has(Ra)||rC("Cannot "+nd);var nC=(Ra,qa,nd)=>qa.has(Ra)?rC("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,nd);var xT=(Ra,qa,nd)=>(xN(Ra,qa,"access private method"),nd);(function(){const qa=document.createElement("link").relList;if(qa&&qa.supports&&qa.supports("modulepreload"))return;for(const ld of document.querySelectorAll('link[rel="modulepreload"]'))od(ld);new MutationObserver(ld=>{for(const ud of ld)if(ud.type==="childList")for(const dd of ud.addedNodes)dd.tagName==="LINK"&&dd.rel==="modulepreload"&&od(dd)}).observe(document,{childList:!0,subtree:!0});function nd(ld){const ud={};return ld.integrity&&(ud.integrity=ld.integrity),ld.referrerPolicy&&(ud.referrerPolicy=ld.referrerPolicy),ld.crossOrigin==="use-credentials"?ud.credentials="include":ld.crossOrigin==="anonymous"?ud.credentials="omit":ud.credentials="same-origin",ud}function od(ld){if(ld.ep)return;ld.ep=!0;const ud=nd(ld);fetch(ld.href,ud)}})();const global$1=globalThis||void 0||self;/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function makeMap(Ra){const qa=Object.create(null);for(const nd of Ra.split(","))qa[nd]=1;return nd=>nd in qa}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$2=(Ra,qa)=>{const nd=Ra.indexOf(qa);nd>-1&&Ra.splice(nd,1)},hasOwnProperty$f=Object.prototype.hasOwnProperty,hasOwn$3=(Ra,qa)=>hasOwnProperty$f.call(Ra,qa),isArray$2=Array.isArray,isMap=Ra=>toTypeString(Ra)==="[object Map]",isSet$1=Ra=>toTypeString(Ra)==="[object Set]",isDate$1=Ra=>toTypeString(Ra)==="[object Date]",isFunction$3=Ra=>typeof Ra=="function",isString$2=Ra=>typeof Ra=="string",isSymbol=Ra=>typeof Ra=="symbol",isObject$5=Ra=>Ra!==null&&typeof Ra=="object",isPromise=Ra=>(isObject$5(Ra)||isFunction$3(Ra))&&isFunction$3(Ra.then)&&isFunction$3(Ra.catch),objectToString$1=Object.prototype.toString,toTypeString=Ra=>objectToString$1.call(Ra),toRawType=Ra=>toTypeString(Ra).slice(8,-1),isPlainObject$4=Ra=>toTypeString(Ra)==="[object Object]",isIntegerKey=Ra=>isString$2(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 nd=>qa[nd]||(qa[nd]=Ra(nd))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(Ra=>Ra.replace(camelizeRE,(qa,nd)=>nd?nd.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(Ra=>Ra.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(Ra=>Ra.charAt(0).toUpperCase()+Ra.slice(1)),toHandlerKey=cacheStringFunction(Ra=>Ra?`on${capitalize(Ra)}`:""),hasChanged=(Ra,qa)=>!Object.is(Ra,qa),invokeArrayFns=(Ra,...qa)=>{for(let nd=0;nd<Ra.length;nd++)Ra[nd](...qa)},def$2=(Ra,qa,nd,od=!1)=>{Object.defineProperty(Ra,qa,{configurable:!0,enumerable:!1,writable:od,value:nd})},looseToNumber=Ra=>{const qa=parseFloat(Ra);return isNaN(qa)?Ra:qa},toNumber$3=Ra=>{const qa=isString$2(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 nd=0;nd<Ra.length;nd++){const od=Ra[nd],ld=isString$2(od)?parseStringStyle(od):normalizeStyle(od);if(ld)for(const ud in ld)qa[ud]=ld[ud]}return qa}else if(isString$2(Ra)||isObject$5(Ra))return Ra}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(Ra){const qa={};return Ra.replace(styleCommentRE,"").split(listDelimiterRE).forEach(nd=>{if(nd){const od=nd.split(propertyDelimiterRE);od.length>1&&(qa[od[0].trim()]=od[1].trim())}}),qa}function normalizeClass(Ra){let qa="";if(isString$2(Ra))qa=Ra;else if(isArray$2(Ra))for(let nd=0;nd<Ra.length;nd++){const od=normalizeClass(Ra[nd]);od&&(qa+=od+" ")}else if(isObject$5(Ra))for(const nd in Ra)Ra[nd]&&(qa+=nd+" ");return qa.trim()}function normalizeProps(Ra){if(!Ra)return null;let{class:qa,style:nd}=Ra;return qa&&!isString$2(qa)&&(Ra.class=normalizeClass(qa)),nd&&(Ra.style=normalizeStyle(nd)),Ra}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(Ra){return!!Ra||Ra===""}function looseCompareArrays(Ra,qa){if(Ra.length!==qa.length)return!1;let nd=!0;for(let od=0;nd&&od<Ra.length;od++)nd=looseEqual(Ra[od],qa[od]);return nd}function looseEqual(Ra,qa){if(Ra===qa)return!0;let nd=isDate$1(Ra),od=isDate$1(qa);if(nd||od)return nd&&od?Ra.getTime()===qa.getTime():!1;if(nd=isSymbol(Ra),od=isSymbol(qa),nd||od)return Ra===qa;if(nd=isArray$2(Ra),od=isArray$2(qa),nd||od)return nd&&od?looseCompareArrays(Ra,qa):!1;if(nd=isObject$5(Ra),od=isObject$5(qa),nd||od){if(!nd||!od)return!1;const ld=Object.keys(Ra).length,ud=Object.keys(
* @vue/reactivity v3.5.13
* (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,nd;if(this.scopes)for(qa=0,nd=this.scopes.length;qa<nd;qa++)this.scopes[qa].pause();for(qa=0,nd=this.effects.length;qa<nd;qa++)this.effects[qa].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let qa,nd;if(this.scopes)for(qa=0,nd=this.scopes.length;qa<nd;qa++)this.scopes[qa].resume();for(qa=0,nd=this.effects.length;qa<nd;qa++)this.effects[qa].resume()}}run(qa){if(this._active){const nd=activeEffectScope;try{return activeEffectScope=this,qa()}finally{activeEffectScope=nd}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(qa){if(this._active){this._active=!1;let nd,od;for(nd=0,od=this.effects.length;nd<od;nd++)this.effects[nd].stop();for(this.effects.length=0,nd=0,od=this.cleanups.length;nd<od;nd++)this.cleanups[nd]();if(this.cleanups.length=0,this.scopes){for(nd=0,od=this.scopes.length;nd<od;nd++)this.scopes[nd].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!qa){const ld=this.parent.scopes.pop();ld&&ld!==this&&(this.parent.scopes[this.index]=ld,ld.index=this.index)}this.parent=void 0}}}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.next=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||batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const qa=activeSub,nd=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=qa,shouldTrack=nd,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,batchedSub,batchedComputed;function batch(Ra,qa=!1){if(Ra.flags|=8,qa){Ra.next=batchedComputed,batchedComputed=Ra;return}Ra.next=batchedSub,batchedSub=Ra}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let qa=batchedComputed;for(batchedComputed=void 0;qa;){const nd=qa.next;qa.next=void 0,qa.flags&=-9,qa=nd}}let Ra;for(;batchedSub;){let qa=batchedSub;for(batchedSub=void 0;qa;){const nd=qa.next;if(qa.next=void 0,qa.flags&=-9,qa.flags&1)try{qa.trigger()}catch(od){Ra||(Ra=od)}qa=nd}}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,nd=Ra.depsTail,od=nd;for(;od;){const ld=od.prevDep;od.version===-1?(od===nd&&(nd=ld),removeSub(od),removeDep(od)):qa=od,od.dep.activeLink=od.prevActiveLink,od.prevActiveLink=void 0,od=ld}Ra.deps=qa,Ra.depsTail=nd}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)||qa.dep.version!==qa.version))return!0;return!!Ra._dirty}function refreshComputed(Ra){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&&Ra.deps&&!isDirty(Ra)){Ra.flags&=-3;r
* @vue/runtime-core v3.5.13
* (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 nd=stack.length?stack[stack.length-1].component:null,od=nd&&nd.appContext.config.warnHandler,ld=getComponentTrace();if(od)callWithErrorHandling(od,nd,11,[Ra+qa.map(ud=>{var dd,pd;return(pd=(dd=ud.toString)==null?void 0:dd.call(ud))!=null?pd:JSON.stringify(ud)}).join(""),nd&&nd.proxy,ld.map(({vnode:ud})=>`at <${formatComponentName(nd,ud.type)}>`).join(`
`),ld]);else{const ud=[`[Vue warn]: ${Ra}`,...qa];ld.length&&ud.push(`
`,...formatTrace(ld)),console.warn(...ud)}resetTracking(),isWarning=!1}function getComponentTrace(){let Ra=stack[stack.length-1];if(!Ra)return[];const qa=[];for(;Ra;){const nd=qa[0];nd&&nd.vnode===Ra?nd.recurseCount++:qa.push({vnode:Ra,recurseCount:0});const od=Ra.component&&Ra.component.parent;Ra=od&&od.vnode}return qa}function formatTrace(Ra){const qa=[];return Ra.forEach((nd,od)=>{qa.push(...od===0?[]:[`
`],...formatTraceEntry(nd))}),qa}function formatTraceEntry({vnode:Ra,recurseCount:qa}){const nd=qa>0?`... (${qa} recursive calls)`:"",od=Ra.component?Ra.component.parent==null:!1,ld=` at <${formatComponentName(Ra.component,Ra.type,od)}`,ud=">"+nd;return Ra.props?[ld,...formatProps(Ra.props),ud]:[ld+ud]}function formatProps(Ra){const qa=[],nd=Object.keys(Ra);return nd.slice(0,3).forEach(od=>{qa.push(...formatProp(od,Ra[od]))}),nd.length>3&&qa.push(" ..."),qa}function formatProp(Ra,qa,nd){return isString$2(qa)?(qa=JSON.stringify(qa),nd?qa:[`${Ra}=${qa}`]):typeof qa=="number"||typeof qa=="boolean"||qa==null?nd?qa:[`${Ra}=${qa}`]:isRef(qa)?(qa=formatProp(Ra,toRaw(qa.value),!0),nd?qa:[`${Ra}=Ref<`,qa,">"]):isFunction$3(qa)?[`${Ra}=fn${qa.name?`<${qa.name}>`:""}`]:(qa=toRaw(qa),nd?qa:[`${Ra}=`,qa])}function callWithErrorHandling(Ra,qa,nd,od){try{return od?Ra(...od):Ra()}catch(ld){handleError$1(ld,qa,nd)}}function callWithAsyncErrorHandling(Ra,qa,nd,od){if(isFunction$3(Ra)){const ld=callWithErrorHandling(Ra,qa,nd,od);return ld&&isPromise(ld)&&ld.catch(ud=>{handleError$1(ud,qa,nd)}),ld}if(isArray$2(Ra)){const ld=[];for(let ud=0;ud<Ra.length;ud++)ld.push(callWithAsyncErrorHandling(Ra[ud],qa,nd,od));return ld}}function handleError$1(Ra,qa,nd,od=!0){const ld=qa?qa.vnode:null,{errorHandler:ud,throwUnhandledErrorInProduction:dd}=qa&&qa.appContext.config||EMPTY_OBJ;if(qa){let pd=qa.parent;const fd=qa.proxy,md=`https://vuejs.org/error-reference/#runtime-${nd}`;for(;pd;){const vd=pd.ec;if(vd){for(let Ad=0;Ad<vd.length;Ad++)if(vd[Ad](Ra,fd,md)===!1)return}pd=pd.parent}if(ud){pauseTracking(),callWithErrorHandling(ud,null,10,[Ra,fd,md]),resetTracking();return}}logError(Ra,nd,ld,od,dd)}function logError(Ra,qa,nd,od=!0,ld=!1){if(ld)throw Ra;console.error(Ra)}const queue$2=[];let flushIndex=-1;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=flushIndex+1,nd=queue$2.length;for(;qa<nd;){const od=qa+nd>>>1,ld=queue$2[od],ud=getId(ld);ud<Ra||ud===Ra&&ld.flags&2?qa=od+1:nd=od}return qa}function queueJob(Ra){if(!(Ra.flags&1)){const qa=getId(Ra),nd=queue$2[queue$2.length-1];!nd||!(Ra.flags&2)&&qa>=getId(nd)?queue$2.push(Ra):queue$2.splice(findInsertionIndex(qa),0,Ra),Ra.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(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|=1),queueFlush()}function flushPreFlushCbs(Ra,qa,nd=flushIndex+1){for(;nd<queue$2.length;nd++){const od=queue$2[nd];if(od&&od.flags&2){if(Ra&&od.id!==Ra.uid)continue;queue$2.splice(nd,1),nd--,od.flags&4&&(od.flags&=-2),od(),od.flags&4||(od.flags&=-2)}}}function flushPostFlushCbs(Ra){if(pendingPostFlushCbs.length){const qa=[...new Set(pendingPostFlushCbs)].sort((nd,od)=>getId(nd)-getId(od));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...qa);return}for(activePostFlushCbs=qa,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const nd=activePostFlushCbs[postFlushIndex];nd.flags&4&&(nd.flags&=-2),nd.flags&8||nd(),nd.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId=Ra=>Ra.id==null?Ra.flags&2?-1:1/0:Ra.id;function flushJobs(Ra){try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const qa=queue$2[flushIndex];qa&&!(qa.flags&8)&&(qa.flags&4&&(qa.flags&=-2),callWithErrorHandling(qa,qa.i,qa.i?15:14),qa.flags&4||(qa.flags&=-2))}}finally{for(;flushIndex<queue$2.length;flushIndex++){const qa=queue$2[flushIndex];qa&&(qa.flags&=-2)}flushIndex=-1,queue$2.length=0,flushPostFlushCbs(),currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&flushJobs()}}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(Ra)
* @vue/runtime-dom v3.5.13
* (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,nd)=>{qa.insertBefore(Ra,nd||null)},remove:Ra=>{const qa=Ra.parentNode;qa&&qa.removeChild(Ra)},createElement:(Ra,qa,nd,od)=>{const ld=qa==="svg"?doc.createElementNS(svgNS,Ra):qa==="mathml"?doc.createElementNS(mathmlNS,Ra):nd?doc.createElement(Ra,{is:nd}):doc.createElement(Ra);return Ra==="select"&&od&&od.multiple!=null&&ld.setAttribute("multiple",od.multiple),ld},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,nd,od,ld,ud){const dd=nd?nd.previousSibling:qa.lastChild;if(ld&&(ld===ud||ld.nextSibling))for(;qa.insertBefore(ld.cloneNode(!0),nd),!(ld===ud||!(ld=ld.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(od==="svg"?`<svg>${Ra}</svg>`:od==="mathml"?`<math>${Ra}</math>`:Ra);const pd=templateContainer.content;if(od==="svg"||od==="mathml"){const fd=pd.firstChild;for(;fd.firstChild;)pd.appendChild(fd.firstChild);pd.removeChild(fd)}qa.insertBefore(pd,nd)}return[dd?dd.nextSibling:qa.firstChild,nd?nd.previousSibling:qa.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),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=extend$3({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=Ra=>(Ra.displayName="Transition",Ra.props=TransitionPropsValidators,Ra),Transition$1=decorate$1((Ra,{slots:qa})=>h$2(BaseTransition,resolveTransitionProps(Ra),qa)),callHook=(Ra,qa=[])=>{isArray$2(Ra)?Ra.forEach(nd=>nd(...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 Ef in Ra)Ef in DOMTransitionPropsValidators||(qa[Ef]=Ra[Ef]);if(Ra.css===!1)return qa;const{name:nd="v",type:od,duration:ld,enterFromClass:ud=`${nd}-enter-from`,enterActiveClass:dd=`${nd}-enter-active`,enterToClass:pd=`${nd}-enter-to`,appearFromClass:fd=ud,appearActiveClass:md=dd,appearToClass:vd=pd,leaveFromClass:Ad=`${nd}-leave-from`,leaveActiveClass:Nd=`${nd}-leave-active`,leaveToClass:Id=`${nd}-leave-to`}=Ra,Od=normalizeDuration(ld),Md=Od&&Od[0],Ud=Od&&Od[1],{onBeforeEnter:jd,onEnter:Ld,onEnterCancelled:Bd,onLeave:Gd,onLeaveCancelled:qd,onBeforeAppear:zd=jd,onAppear:Xd=Ld,onAppearCancelled:gf=Bd}=qa,Yd=(Ef,_f,xf,vf)=>{Ef._enterCancelled=vf,removeTransitionClass(Ef,_f?vd:pd),removeTransitionClass(Ef,_f?md:dd),xf&&xf()},Zd=(Ef,_f)=>{Ef._isLeaving=!1,removeTransitionClass(Ef,Ad),removeTransitionClass(Ef,Id),removeTransitionClass(Ef,Nd),_f&&_f()},df=Ef=>(_f,xf)=>{const vf=Ef?Xd:Ld,Af=()=>Yd(_f,Ef,xf);callHook(vf,[_f,Af]),nextFrame(()=>{removeTransitionClass(_f,Ef?fd:ud),addTransitionClass(_f,Ef?vd:pd),hasExplicitCallback(vf)||whenTransitionEnds(_f,od,Md,Af)})};return extend$3(qa,{onBeforeEnter(Ef){callHook(jd,[Ef]),addTransitionClass(Ef,ud),addTransitionClass(Ef,dd)},onBeforeAppear(Ef){callHook(zd,[Ef]),addTransitionClass(Ef,fd),addTransitionClass(Ef,md)},onEnter:df(!1),onAppear:df(!0),onLeave(Ef,_f){Ef._isLeaving=!0;const xf=()=>Zd(Ef,_f);addTransitionClass(Ef,Ad),Ef._enterCancelled?(addTransitionClass(Ef,Nd),forceReflow()):(forceReflow(),addTransitionClass(Ef,Nd)),nextFrame(()=>{Ef._isLeaving&&(removeTransitionClass(Ef,Ad),addTransitionClass(Ef,Id),hasExplici
`)].join(`
`))}return()=>ud.value||ld.value||pd.value?h$2(qa.default({present:pd})[0],{ref:vd=>{const Ad=$e$4(vd);return typeof(Ad==null?void 0:Ad.hasAttribute)>"u"||(Ad!=null&&Ad.hasAttribute("data-radix-popper-content-wrapper")?dd.value=Ad.firstElementChild:dd.value=Ad),Ad}}):null}}),[et$5,Xi$1]=Q$7("DialogRoot"),Zi$2=defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:qa}){const nd=Ra,od=ne$6(nd,"open",qa,{defaultValue:nd.defaultOpen,passive:nd.open===void 0}),ld=ref$1(),ud=ref$1(),{modal:dd}=toRefs(nd);return Xi$1({open:od,modal:dd,openModal:()=>{od.value=!0},onOpenChange:pd=>{od.value=pd},onOpenToggle:()=>{od.value=!od.value},contentId:"",titleId:"",descriptionId:"",triggerElement:ld,contentElement:ud}),(pd,fd)=>renderSlot(pd.$slots,"default",{open:unref(od)})}}),Ji$3=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const qa=Ra,nd=et$5(),{forwardRef:od,currentElement:ld}=R$7();return nd.contentId||(nd.contentId=he$4(void 0,"radix-vue-dialog-content")),onMounted(()=>{nd.triggerElement.value=ld.value}),(ud,dd)=>(openBlock(),createBlock(unref(O$4),mergeProps(qa,{ref:unref(od),type:ud.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":unref(nd).open.value||!1,"aria-controls":unref(nd).open.value?unref(nd).contentId:void 0,"data-state":unref(nd).open.value?"open":"closed",onClick:unref(nd).onOpenToggle}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),nt$4=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=ja$1();return(nd,od)=>unref(qa)||nd.forceMount?(openBlock(),createBlock(Teleport,{key:0,to:nd.to,disabled:nd.disabled},[renderSlot(nd.$slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),xv=defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createBlock(unref(nt$4),normalizeProps(guardReactiveProps(qa)),{default:withCtx(()=>[renderSlot(nd.$slots,"default")]),_:3},16))}}),Qi$1="dismissableLayer.pointerDownOutside",eu$2="dismissableLayer.focusOutside";function zl$3(Ra,qa){const nd=qa.closest("[data-dismissable-layer]"),od=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),ld=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(nd&&od===nd||ld.indexOf(od)<ld.indexOf(nd))}function Kl$3(Ra,qa){var nd;const od=((nd=qa==null?void 0:qa.value)==null?void 0:nd.ownerDocument)??(globalThis==null?void 0:globalThis.document),ld=ref$1(!1),ud=ref$1(()=>{});return watchEffect(dd=>{if(!qe$3)return;const pd=async md=>{const vd=md.target;if(qa!=null&&qa.value){if(zl$3(qa.value,vd)){ld.value=!1;return}if(md.target&&!ld.value){let Ad=function(){Ht$4(Qi$1,Ra,Nd)};const Nd={originalEvent:md};md.pointerType==="touch"?(od.removeEventListener("click",ud.value),ud.value=Ad,od.addEventListener("click",ud.value,{once:!0})):Ad()}else od.removeEventListener("click",ud.value);ld.value=!1}},fd=window.setTimeout(()=>{od.addEventListener("pointerdown",pd)},0);dd(()=>{window.clearTimeout(fd),od.removeEventListener("pointerdown",pd),od.removeEventListener("click",ud.value)})}),{onPointerDownCapture:()=>ld.value=!0}}function Hl$3(Ra,qa){var nd;const od=((nd=qa==null?void 0:qa.value)==null?void 0:nd.ownerDocument)??(globalThis==null?void 0:globalThis.document),ld=ref$1(!1);return watchEffect(ud=>{if(!qe$3)return;const dd=async pd=>{qa!=null&&qa.value&&(await nextTick$1(),!(!qa.value||zl$3(qa.value,pd.target))&&pd.target&&!ld.value&&Ht$4(eu$2,Ra,{originalEvent:pd}))};od.addEventListener("focusin",dd),ud(()=>od.removeEventListener("focusin",dd))}),{onFocusCapture:()=>ld.value=!0,onBlurCapture:()=>ld.value=!1}}const je$7=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}
* @license lucide-vue-next v0.462.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.462.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.462.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:nd,color:od,iconNode:ld,name:ud,class:dd,...pd},{slots:fd})=>h$2("svg",{...defaultAttributes,width:Ra||defaultAttributes.width,height:Ra||defaultAttributes.height,stroke:od||defaultAttributes.stroke,"stroke-width":nd?Number(qa)*24/Number(Ra):qa,class:["lucide",`lucide-${toKebabCase(ud??"icon")}`],...pd},[...ld.map(md=>h$2(...md)),...fd.default?[fd.default()]:[]]);/**
* @license lucide-vue-next v0.462.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)=>(nd,{slots:od})=>h$2(Icon,{...nd,iconNode:qa,name:Ra},od);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Check=createLucideIcon("CheckIcon",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ChevronDown=createLucideIcon("ChevronDownIcon",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-vue-next v0.462.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"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ChevronUp=createLucideIcon("ChevronUpIcon",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const CloudUpload=createLucideIcon("CloudUploadIcon",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Download=createLucideIcon("DownloadIcon",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ellipsis=createLucideIcon("EllipsisIcon",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const FileCode=createLucideIcon("FileCodeIcon",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Info=createLucideIcon("InfoIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Minus=createLucideIcon("MinusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Moon=createLucideIcon("MoonIcon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PanelLeftClose=createLucideIcon("PanelLeftCloseIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PanelLeftOpen=createLucideIcon("PanelLeftOpenIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PenLine=createLucideIcon("PenLineIcon",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Plus=createLucideIcon("PlusIcon",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Settings=createLucideIcon("SettingsIcon",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sun=createLucideIcon("SunIcon",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Table=createLucideIcon("TableIcon",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Trash=createLucideIcon("TrashIcon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Upload=createLucideIcon("UploadIcon",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
* @license lucide-vue-next v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X$7=createLucideIcon("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_sfc_main$19=defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(xv),null,{default:withCtx(()=>[createVNode(unref(_u$3),{class:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"}),createVNode(unref(Cu$3),mergeProps(unref(ud),{class:unref(cn$5)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",nd.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default"),createVNode(unref(Ul$3),{class:"data-[state=open]:bg-accent ring-offset-background data-[state=open]:text-muted-foreground focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity disabled:pointer-events-none hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2"},{default:withCtx(()=>[createVNode(unref(X$7),{class:"h-4 w-4"}),pd[0]||(pd[0]=createBaseVNode("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),_sfc_main$18=defineComponent({__name:"DialogFooter",props:{class:{}},setup(Ra){const qa=Ra;return(nd,od)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$5)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",qa.class))},[renderSlot(nd.$slots,"default")],2))}});function tryOnScopeDispose(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function createEventHook(){const Ra=new Set,qa=ld=>{Ra.delete(ld)};return{on:ld=>{Ra.add(ld);const ud=()=>qa(ld);return tryOnScopeDispose(ud),{off:ud}},off:qa,trigger:(...ld)=>Promise.all(Array.from(Ra).map(ud=>ud(...ld)))}}function toValue(Ra){return typeof Ra=="function"?Ra():unref(Ra)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef=Ra=>typeof Ra<"u",toString$3=Object.prototype.toString,isObject$4=Ra=>toString$3.call(Ra)==="[object Object]",noop$5=()=>{},hasOwn$2=(Ra,qa)=>Object.prototype.hasOwnProperty.call(Ra,qa);function createFilterWrapper(Ra,qa){function nd(...od){return new Promise((ld,ud)=>{Promise.resolve(Ra(()=>qa.apply(this,od),{fn:qa,thisArg:this,args:od})).then(ld).catch(ud)})}return nd}const bypassFilter=Ra=>Ra();function pausableFilter(Ra=bypassFilter){const qa=ref$1(!0);function nd(){qa.value=!1}function od(){qa.value=!0}const ld=(...ud)=>{qa.value&&Ra(...ud)};return{isActive:readonly(qa),pause:nd,resume:od,eventFilter:ld}}function getLifeCycleTarget(Ra){return getCurrentInstance()}function toRef(...Ra){if(Ra.length!==1)return toRef$1(...Ra);const qa=Ra[0];return typeof qa=="function"?readonly(customRef(()=>({get:qa,set:noop$5}))):ref$1(qa)}function watchWithFilter(Ra,qa,nd={}){const{eventFilter:od=bypassFilter,...ld}=nd;return watch(Ra,createFilterWrapper(od,qa),ld)}function watchPausable(Ra,qa,nd={}){const{eventFilter:od,...ld}=nd,{eventFilter:ud,pause:dd,resume:pd,isActive:fd}=pausableFilter(od);return{stop:watchWithFilter(Ra,qa,{...ld,eventFilter:ud}),pause:dd,resume:pd,isActive:fd}}function tryOnMounted(Ra,qa=!0,nd){getLifeCycleTarget()?onMounted(Ra,nd):qa?Ra():nextTick$1(Ra)}function useToggle(Ra=!1,qa={}){const{truthyValue:nd=!0,falsyValue:od=!1}=qa,ld=isRef(Ra),ud=ref$1(Ra);f
欢迎来到 Markdown 的奇妙世界无论你是写作爱好者开发者博主还是想要简单记录点什么的人Markdown 都能成为你新的好伙伴它不仅让写作变得简单明了还能轻松地将内容转化为漂亮的网页格式今天我们将全面探讨 Markdown 的基础和进阶语法让你在这个过程中充分享受写作的乐趣
Markdown 是一种轻量级标记语言用于格式化纯文本它以简单直观的语法而著称可以快速地生成 HTMLMarkdown 是写作与代码的完美结合既简单又强大
## Markdown 基础语法
### 1. 标题让你的内容层次分明
\`#\` 号来创建标题。标题从 \`#\` 开始,\`#\` 的数量表示标题的级别。
\`\`\`markdown
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
\`\`\`
以上代码将渲染出一组层次分明的标题使你的文章井井有条
### 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 LR
A[GraphCommand] --> B[update]
A --> C[goto]
A --> D[send]
B --> B1[更新状态]
C --> C1[流程控制]
D --> D1[消息传递]
\`\`\`
\`\`\`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/discussions/426
*/
/* 一级标题样式 */
h1 {
}
/* 二级标题样式 */
h2 {
}
/* 三级标题样式 */
h3 {
}
/* 四级标题样式 */
h4 {
}
/* 五级标题样式 */
h5 {
}
/* 六级标题样式 */
h6 {
}
/* 图片样式 */
image {
}
/* 引用样式 */
blockquote {
}
/* 引用段落样式 */
blockquote_p {
}
/* GFM note 样式 */
blockquote_note {
}
/* GFM tip 样式 */
blockquote_tip {
}
/* GFM important 样式 */
blockquote_important {
}
/* GFM warning 样式 */
blockquote_warning {
}
/* GFM caution 样式 */
blockquote_caution {
}
/* GFM 通用标题 */
blockquote_title {
}
/* GFM note 标题 */
blockquote_title_note {
}
/* GFM tip 标题 */
blockquote_title_tip {
}
/* GFM important 标题 */
blockquote_title_important {
}
/* GFM warning 标题 */
blockquote_title_warning {
}
/* GFM caution 标题 */
blockquote_title_caution {
}
/* GFM note 段落样式 */
blockquote_p_note {
}
/* GFM tip 段落样式 */
blockquote_p_tip {
}
/* GFM important 段落样式 */
blockquote_p_important {
}
/* GFM warning 段落样式 */
blockquote_p_warning {
}
/* GFM caution 段落样式 */
blockquote_p_caution {
}
/* 段落样式 */
p {
}
/* 分割线样式 */
hr {
}
/* 行内代码样式 */
codespan {
}
/* 粗体样式 */
strong {
}
/* 链接样式 */
link {
}
/* 微信链接样式 */
wx_link {
}
/* 有序列表样式 */
ol {
}
/* 无序列表样式 */
ul {
}
/* 列表项样式 */
li {
}
/* 代码块样式 */
code {
}
/* 代码块外层样式 */
code_pre {
}
`,githubConfig={username:"bucketio",repoList:Array.from({length:20},(Ra,qa)=>`img${qa}`),branch:"main",accessTokenList:["ghp_sqQg5y7XC7Fy8XdoocsmdVEYRiRiTZPvbwzTL4MRjQc","ghp_jB5JXzBjpGbgzdoocsmdogWfSHhfCKGVstozw1cAsPv","ghp_zvy8wkHo259g7doocsmdJnUKOQd1WO1SPzZ9G0O9cJD","ghp_DnCJc2Ms0RVZ1doocsmdiWOAN78FurfSeD1Pv2Y28pO","ghp_EsMYDv9WVjXWP5doocsmd1nnDml2DEP95rOiz44bSo0","ghp_L4isHf01nllOOdoocsmdHBGoDG6jscCA09WV44QDvlg","ghp_qWciwYXHPakAUGdoocsmdBOBZdRcV08JThKey3mBZNJ","ghp_rxkvIO08wVL2DMdoocsmd2jDEhcatp2rfVyhd3A7RiS","ghp_1RvkWKboSxr0yVdoocsmd7OtBCpecYwoV6deh3utifJ","ghp_cduanDnAug60ngdoocsmdF1uDstXUi6S9RMhY1qdada","ghp_q6mxuJIkqAcsCXdoocsmdkkjWvzGlMVRuy5zI0IWNDx","ghp_Pv4npPeJpChKFMTdoocsmdCQneopUcqJrqrjl3vrt9A","ghp_gKMCFqMaQiLTqhjdoocsmd7BJE8RyK6AdRw4b42CutS","ghp_2oShgb33qFlqBmadoocsmdludmuLYxBFY5bao1XrsVo","ghp_eYyd3kxWTZmsV8doocsmdDFbAa7AEGQTJgmOd0GUmtY"]},giteeConfig={username:"filesss",repoList:Array.from({length:20},(Ra,qa)=>`img${qa}`),branch:"main",accessTokenList:["ed5fc9866bd6c2fdoocsmddd433f806fd2f399c","5448ffebbbf1151doocsmdc4e337cf814fc8a62","25b05efd2557ca2doocsmd75b5c0835e3395911","11628c7a5aef015doocsmd2eeff9fb9566f0458","cb2f5145ed938dedoocsmdbd063b4ed244eecf8","d8c0b57500672c1doocsmd55f48b866b5ebcd98","78c56eadb88e453doocsmd43ddd95753351771a","03e1a688003948fdoocsmda16fcf41e6f03f1f0","c49121cf4d191fbdoocsmdd6a7877ed537e474a","adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff","116c94549ca4a0ddoocsmd192653af5c0694616","ecf30ed7f2eb184doocsmd51ea4ec8300371d9e","5837cf2bd5afd93doocsmd73904bed31934949e","b5b7e1c7d57e01fdoocsmd5266f552574297d78","684d55564ffbd0bdoocsmd7d747e5cc23aed6d6","3fc04a9d272ab71doocsmd010c56cb57d88d2ba"]},fontFamilyOptions=[{label:"无衬线",value:"-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif",desc:"字体123Abc"},{label:"衬线",value:"Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif",desc:"字体123Abc"},{label:"等宽",value:"Menlo, Monaco, 'Courier New', monospace",desc:"字体123Abc"}],fontSizeOptions=[{label:"12px",value:"12px",desc:"更小"},{label:"13px",value:"13px",desc:"稍小"},{label:"14px",value:"14px",desc:"推荐"},{label:"15px",value:"15px",desc:"稍大"},{label:"16px",value:"16px",desc:"更大"}],colorOptions=[{label:"经典蓝",value:"#0F4C81",desc:"稳重冷静"},{label:"翡翠绿",value:"#009874",desc:"自然平衡"},{label:"活力橘",value:"#FA5151",desc:"热情活力"},{label:"柠檬黄",value:"#FECE00",desc:"明亮温暖"},{label:"薰衣紫",value:"#92617E",desc:"优雅神秘"},{label:"天空蓝",value:"#55C9EA",desc:"清爽自由"},{label:"玫瑰金",value:"#B76E79",desc:"奢华现代"},{label:"橄榄绿",value:"#556B2F",desc:"沉稳自然"},{label:"石墨黑",value:"#333333",desc:"内敛极简"},{label:"雾烟灰",value:"#A9A9A9",desc:"柔和低调"},{label:"樱花粉",value:"#FFB7C5",desc:"浪漫甜美"}],codeBlockUrlPrefix="https://cdn.bootcdn.net/ajax/libs/highlight.js/11.10.0/styles/",codeBlockThemeList=["1c-light.min.css","a11y-dark.min.css","a11y-light.min.css","agate.min.css","an-old-hope.min.css","androidstudio.min.css","arduino-light.min.css","arta.min.css","ascetic.min.css","atom-one-dark-reasonable.min.css","atom-one-dark.min.css","atom-one-light.min.css","brown-paper.min.css","codepen-embed.min.css","color-brewer.min.css","dark.min.css","default.min.css","devibeans.min.css","docco.min.css","far.min.css","felipec.min.css","foundation.min.css","github-dark-dimmed.min.css","github-dark.min.css","github.min.css","gml.min.css","googlecode.min.css","gradient-dark.min.css","gradient-light.min.css","grayscale.min.css","hybrid.min.css","idea.min.css","intellij-light.min.css","ir-black.min.css","isbl-editor-dark.min.css","isbl-editor-light.min.css","kimbie-dark.min.css","kimbie-light.min.css","lightfair.min.css","lioshi.min.css","magula.min.css","mono-blue.min.css","monokai-sublime.min.css","monokai.min.css","night-owl.min.css","nnfx-dark.min.css","nnfx-light.min.css","nord.min.css","
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(Ra){const qa=base64Js$1,nd=ieee754$1,od=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=vd,Ra.SlowBuffer=qd,Ra.INSPECT_MAX_BYTES=50;const ld=2147483647;Ra.kMaxLength=ld;const{Uint8Array:ud,ArrayBuffer:dd,SharedArrayBuffer:pd}=globalThis;vd.TYPED_ARRAY_SUPPORT=fd(),!vd.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 fd(){try{const gh=new ud(1),Lf={foo:function(){return 42}};return Object.setPrototypeOf(Lf,ud.prototype),Object.setPrototypeOf(gh,Lf),gh.foo()===42}catch{return!1}}Object.defineProperty(vd.prototype,"parent",{enumerable:!0,get:function(){if(vd.isBuffer(this))return this.buffer}}),Object.defineProperty(vd.prototype,"offset",{enumerable:!0,get:function(){if(vd.isBuffer(this))return this.byteOffset}});function md(gh){if(gh>ld)throw new RangeError('The value "'+gh+'" is invalid for option "size"');const Lf=new ud(gh);return Object.setPrototypeOf(Lf,vd.prototype),Lf}function vd(gh,Lf,$f){if(typeof gh=="number"){if(typeof Lf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Od(gh)}return Ad(gh,Lf,$f)}vd.poolSize=8192;function Ad(gh,Lf,$f){if(typeof gh=="string")return Md(gh,Lf);if(dd.isView(gh))return jd(gh);if(gh==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof gh);if(Tm(gh,dd)||gh&&Tm(gh.buffer,dd)||typeof pd<"u"&&(Tm(gh,pd)||gh&&Tm(gh.buffer,pd)))return Ld(gh,Lf,$f);if(typeof gh=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const fh=gh.valueOf&&gh.valueOf();if(fh!=null&&fh!==gh)return vd.from(fh,Lf,$f);const Ch=Bd(gh);if(Ch)return Ch;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof gh[Symbol.toPrimitive]=="function")return vd.from(gh[Symbol.toPrimitive]("string"),Lf,$f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof gh)}vd.from=function(gh,Lf,$f){return Ad(gh,Lf,$f)},Object.setPrototypeOf(vd.prototype,ud.prototype),Object.setPrototypeOf(vd,ud);function Nd(gh){if(typeof gh!="number")throw new TypeError('"size" argument must be of type number');if(gh<0)throw new RangeError('The value "'+gh+'" is invalid for option "size"')}function Id(gh,Lf,$f){return Nd(gh),gh<=0?md(gh):Lf!==void 0?typeof $f=="string"?md(gh).fill(Lf,$f):md(gh).fill(Lf):md(gh)}vd.alloc=function(gh,Lf,$f){return Id(gh,Lf,$f)};function Od(gh){return Nd(gh),md(gh<0?0:Gd(gh)|0)}vd.allocUnsafe=function(gh){return Od(gh)},vd.allocUnsafeSlow=function(gh){return Od(gh)};function Md(gh,Lf){if((typeof Lf!="string"||Lf==="")&&(Lf="utf8"),!vd.isEncoding(Lf))throw new TypeError("Unknown encoding: "+Lf);const $f=zd(gh,Lf)|0;let fh=md($f);const Ch=fh.write(gh,Lf);return Ch!==$f&&(fh=fh.slice(0,Ch)),fh}function Ud(gh){const Lf=gh.length<0?0:Gd(gh.length)|0,$f=md(Lf);for(let fh=0;fh<Lf;fh+=1)$f[fh]=gh[fh]&255;return $f}function jd(gh){if(Tm(gh,ud)){const Lf=new ud(gh);return Ld(Lf.buffer,Lf.byteOffset,Lf.byteLength)}return Ud(gh)}function Ld(gh,Lf,$f){if(Lf<0||gh.byteLength<Lf)throw new RangeError('"offset" is outside of buffer bounds');if(gh.byteLength<Lf+($f||0))throw new RangeError('"length" is outside of buffer bounds');let fh;return Lf===void 0&&$f===void 0?fh=new ud(gh):$f===void 0?fh=new ud(gh,Lf):fh=new ud(gh,Lf,$f),Object.setPrototypeOf(fh,vd.prototype),fh}function Bd(gh){if(vd.isBuffer(gh)){const Lf=Gd(gh.length)|0,$f=md(Lf);return $f.length===0||gh.copy($f,0,0,Lf),$f}if(gh.length!==void 0)return typeof gh.length!="number"||Pm(gh.length)?md(0):Ud(gh);if(gh.type==="Buffer"&&Array.isArray(gh.data))return Ud(gh.data)}function Gd(gh){if(gh>=ld)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ld.toString(16)+" bytes");return gh|0}function qd(gh){return+gh!
`:getText(Ra.children):isCDATA(Ra)?getText(Ra.children):isText(Ra)?Ra.data:""}function textContent(Ra){return Array.isArray(Ra)?Ra.map(textContent).join(""):hasChildren(Ra)&&!isComment$2(Ra)?textContent(Ra.children):isText(Ra)?Ra.data:""}function innerText(Ra){return Array.isArray(Ra)?Ra.map(innerText).join(""):hasChildren(Ra)&&(Ra.type===ElementType.Tag||isCDATA(Ra))?innerText(Ra.children):isText(Ra)?Ra.data:""}function getChildren(Ra){return hasChildren(Ra)?Ra.children:[]}function getParent(Ra){return Ra.parent||null}function getSiblings(Ra){const qa=getParent(Ra);if(qa!=null)return getChildren(qa);const nd=[Ra];let{prev:od,next:ld}=Ra;for(;od!=null;)nd.unshift(od),{prev:od}=od;for(;ld!=null;)nd.push(ld),{next:ld}=ld;return nd}function getAttributeValue(Ra,qa){var nd;return(nd=Ra.attribs)===null||nd===void 0?void 0:nd[qa]}function hasAttrib(Ra,qa){return Ra.attribs!=null&&Object.prototype.hasOwnProperty.call(Ra.attribs,qa)&&Ra.attribs[qa]!=null}function getName(Ra){return Ra.name}function nextElementSibling(Ra){let{next:qa}=Ra;for(;qa!==null&&!isTag(qa);)({next:qa}=qa);return qa}function prevElementSibling(Ra){let{prev:qa}=Ra;for(;qa!==null&&!isTag(qa);)({prev:qa}=qa);return qa}function removeElement(Ra){if(Ra.prev&&(Ra.prev.next=Ra.next),Ra.next&&(Ra.next.prev=Ra.prev),Ra.parent){const qa=Ra.parent.children,nd=qa.lastIndexOf(Ra);nd>=0&&qa.splice(nd,1)}Ra.next=null,Ra.prev=null,Ra.parent=null}function replaceElement(Ra,qa){const nd=qa.prev=Ra.prev;nd&&(nd.next=qa);const od=qa.next=Ra.next;od&&(od.prev=qa);const ld=qa.parent=Ra.parent;if(ld){const ud=ld.children;ud[ud.lastIndexOf(Ra)]=qa,Ra.parent=null}}function appendChild(Ra,qa){if(removeElement(qa),qa.next=null,qa.parent=Ra,Ra.children.push(qa)>1){const nd=Ra.children[Ra.children.length-2];nd.next=qa,qa.prev=nd}else qa.prev=null}function append$3(Ra,qa){removeElement(qa);const{parent:nd}=Ra,od=Ra.next;if(qa.next=od,qa.prev=Ra,Ra.next=qa,qa.parent=nd,od){if(od.prev=qa,nd){const ld=nd.children;ld.splice(ld.lastIndexOf(od),0,qa)}}else nd&&nd.children.push(qa)}function prependChild(Ra,qa){if(removeElement(qa),qa.parent=Ra,qa.prev=null,Ra.children.unshift(qa)!==1){const nd=Ra.children[1];nd.prev=qa,qa.next=nd}else qa.next=null}function prepend$1(Ra,qa){removeElement(qa);const{parent:nd}=Ra;if(nd){const od=nd.children;od.splice(od.indexOf(Ra),0,qa)}Ra.prev&&(Ra.prev.next=qa),qa.parent=nd,qa.prev=Ra.prev,qa.next=Ra,Ra.prev=qa}function filter$5(Ra,qa,nd=!0,od=1/0){return find$3(Ra,Array.isArray(qa)?qa:[qa],nd,od)}function find$3(Ra,qa,nd,od){const ld=[],ud=[qa],dd=[0];for(;;){if(dd[0]>=ud[0].length){if(dd.length===1)return ld;ud.shift(),dd.shift();continue}const pd=ud[0][dd[0]++];if(Ra(pd)&&(ld.push(pd),--od<=0))return ld;nd&&hasChildren(pd)&&pd.children.length>0&&(dd.unshift(0),ud.unshift(pd.children))}}function findOneChild(Ra,qa){return qa.find(Ra)}function findOne(Ra,qa,nd=!0){let od=null;for(let ld=0;ld<qa.length&&!od;ld++){const ud=qa[ld];if(isTag(ud))Ra(ud)?od=ud:nd&&ud.children.length>0&&(od=findOne(Ra,ud.children,!0));else continue}return od}function existsOne(Ra,qa){return qa.some(nd=>isTag(nd)&&(Ra(nd)||existsOne(Ra,nd.children)))}function findAll(Ra,qa){const nd=[],od=[qa],ld=[0];for(;;){if(ld[0]>=od[0].length){if(od.length===1)return nd;od.shift(),ld.shift();continue}const ud=od[0][ld[0]++];isTag(ud)&&(Ra(ud)&&nd.push(ud),ud.children.length>0&&(ld.unshift(0),od.unshift(ud.children)))}}const Checks={tag_name(Ra){return typeof Ra=="function"?qa=>isTag(qa)&&Ra(qa.name):Ra==="*"?isTag:qa=>isTag(qa)&&qa.name===Ra},tag_type(Ra){return typeof Ra=="function"?qa=>Ra(qa.type):qa=>qa.type===Ra},tag_contains(Ra){return typeof Ra=="function"?qa=>isText(qa)&&Ra(qa.data):qa=>isText(qa)&&qa.data===Ra}};function getAttribCheck(Ra,qa){return typeof qa=="function"?nd=>isTag(nd)&&qa(nd.attribs[Ra]):nd=>isTag(nd)&&nd.attribs[Ra]===qa}function combineFuncs(Ra,qa){return nd=>Ra(nd)||qa(nd)}function compileTest(Ra){const qa=Object.keys(Ra).map(nd=>{const od=Ra[nd];return Object.prototype.hasOwnProperty.call(Checks,nd)?Checks[nd](od):getAttribCheck(nd,od)});return qa.length===0?null:qa
: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])"},PLACEHOLDER_ELEMENT={};function ensureIsTag(Ra,qa){return Ra===boolbase$1.falseFunc?boolbase$1.falseFunc:nd=>qa.isTag(nd)&&Ra(nd)}function getNextSiblings(Ra,qa){const nd=qa.getSiblings(Ra);if(nd.length<=1)return[];const od=nd.indexOf(Ra);return od<0||od===nd.length-1?[]:nd.slice(od+1).filter(qa.isTag)}function copyOptions(Ra){return{xmlMode:!!Ra.xmlMode,lowerCaseAttributeNames:!!Ra.lowerCaseAttributeNames,lowerCaseTags:!!Ra.lowerCaseTags,quirksMode:!!Ra.quirksMode,cacheResults:!!Ra.cacheResults,pseudos:Ra.pseudos,adapter:Ra.adapter,equals:Ra.equals}}const is$3=(Ra,qa,nd,od,ld)=>{const ud=ld(qa,copyOptions(nd),od);return ud===boolbase$1.trueFunc?Ra:ud===boolbase$1.falseFunc?boolbase$1.falseFunc:dd=>ud(dd)&&Ra(dd)},subselects={is:is$3,matches:is$3,where:is$3,not(Ra,qa,nd,od,ld){const ud=ld(qa,copyOptions(nd),od);return ud===boolbase$1.falseFunc?Ra:ud===boolbase$1.trueFunc?boolbase$1.falseFunc:dd=>!ud(dd)&&Ra(dd)},has(Ra,qa,nd,od,ld){const{adapter:ud}=nd,dd=copyOptions(nd);dd.relativeSelector=!0;const pd=qa.some(vd=>vd.some(isTraversal))?[PLACEHOLDER_ELEMENT]:void 0,fd=ld(qa,dd,pd);if(fd===boolbase$1.falseFunc)return boolbase$1.falseFunc;const md=ensureIsTag(fd,ud);if(pd&&fd!==boolbase$1.trueFunc){const{shouldTestNextSiblings:vd=!1}=fd;return Ad=>{if(!Ra(Ad))return!1;pd[0]=Ad;const Nd=ud.getChildren(Ad),Id=vd?[...Nd,...getNextSiblings(Ad,ud)]:Nd;return ud.existsOne(md,Id)}}return vd=>Ra(vd)&&ud.existsOne(md,ud.getChildren(vd))}};function compilePseudoSelector(Ra,qa,nd,od,ld){var ud;const{name:dd,data:pd}=qa;if(Array.isArray(pd)){if(!(dd in subselects))throw new Error(`Unknown pseudo-class :${dd}(${pd})`);return subselects[dd](Ra,pd,nd,od,ld)}const fd=(ud=nd.pseudos)===null||ud===void 0?void 0:ud[dd],md=typeof fd=="string"?fd:aliases[dd];if(typeof md=="string"){if(pd!=null)throw new Error(`Pseudo ${dd} doesn't have any arguments`);const vd=parse$7(md);return subselects.is(Ra,vd,nd,od,ld)}if(typeof fd=="function")return verifyPseudoArgs(fd,dd,pd,1),vd=>fd(vd,pd)&&Ra(vd);if(dd in filters)return filters[dd](Ra,pd,nd,od);if(dd in pseudos){const vd=pseudos[dd];return verifyPseudoArgs(vd,dd,pd,2),Ad=>vd(Ad,nd,pd)&&Ra(Ad)}throw new Error(`Unknown pseudo-class :${dd}`)}function getElementParent(Ra,qa){const nd=qa.getParent(Ra);return nd&&qa.isTag(nd)?nd:null}function compileGeneralSelector(Ra,qa,nd,od,ld){const{adapter:ud,equals:dd}=nd;switch(qa.type){case SelectorType$2.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case SelectorType$2.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case SelectorType$2.Attribute:{if(qa.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!nd.xmlMode||nd.lowerCaseAttributeNames)&&(qa.name=qa.name.toLowerCase()),attributeRules[qa.action](Ra,qa,nd)}case SelectorType$2.Pseudo:return compilePseudoSelector(Ra,qa,nd,od,ld);case SelectorType$2.Tag:{if(qa.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:pd}=qa;return(!nd.xmlMode||nd.lowerCaseTags)&&(pd=pd.toLowerCase()),function(md){return ud.getName(md)===pd&&Ra(md)}}case SelectorType$2.Descendant:{if(nd.cacheResults===!1||typeof WeakSet>"u")return function(md){let vd=md;for(;vd=getElementParent(vd,ud);)if(Ra(vd))return!0;return!1};const pd=new WeakSet;return function(md){let vd=md;for(;vd=getElementParent(vd,ud);
`)})):{name:ld,value:ud.replace(rCRLF,`\r
`)}}).toArray()}const Forms=Object.freeze(Object.defineProperty({__proto__:null,serialize:serialize$1,serializeArray},Symbol.toStringTag,{value:"Module"}));function getExtractDescr(Ra){var qa;return typeof Ra=="string"?{selector:Ra,value:"textContent"}:{selector:Ra.selector,value:(qa=Ra.value)!==null&&qa!==void 0?qa:"textContent"}}function extract(Ra){const qa={};for(const nd in Ra){const od=Ra[nd],ld=Array.isArray(od),{selector:ud,value:dd}=getExtractDescr(ld?od[0]:od),pd=typeof dd=="function"?dd:typeof dd=="string"?fd=>this._make(fd).prop(dd):fd=>this._make(fd).extract(dd);if(ld)qa[nd]=this._findBySelector(ud,Number.POSITIVE_INFINITY).map((fd,md)=>pd(md,nd,qa)).get();else{const fd=this._findBySelector(ud,1);qa[nd]=fd.length>0?pd(fd[0],nd,qa):void 0}}return qa}const Extract=Object.freeze(Object.defineProperty({__proto__:null,extract},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(qa,nd,od){if(this.length=0,this.options=od,this._root=nd,qa){for(let ld=0;ld<qa.length;ld++)this[ld]=qa[ld];this.length=qa.length}}}Cheerio.prototype.cheerio="[cheerio object]";Cheerio.prototype.splice=Array.prototype.splice;Cheerio.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Cheerio.prototype,Attributes,Traversing,Manipulation,Css,Forms,Extract);function getLoad(Ra,qa){return function nd(od,ld,ud=!0){if(od==null)throw new Error("cheerio.load() expects a string");const dd=flattenOptions(ld),pd=Ra(od,dd,ud,null);class fd extends Cheerio{_make(Ad,Nd){const Id=md(Ad,Nd);return Id.prevObject=this,Id}_parse(Ad,Nd,Id,Od){return Ra(Ad,Nd,Id,Od)}_render(Ad){return qa(Ad,this.options)}}function md(vd,Ad,Nd=pd,Id){if(vd&&isCheerio(vd))return vd;const Od=flattenOptions(Id,dd),Md=typeof Nd=="string"?[Ra(Nd,Od,!1,null)]:"length"in Nd?Nd:[Nd],Ud=isCheerio(Md)?Md:new fd(Md,null,Od);if(Ud._root=Ud,!vd)return new fd(void 0,Ud,Od);const jd=typeof vd=="string"&&isHtml(vd)?Ra(vd,Od,!1,null).children:isNode$1(vd)?[vd]:Array.isArray(vd)?vd:void 0,Ld=new fd(jd,Ud,Od);if(jd)return Ld;if(typeof vd!="string")throw new TypeError("Unexpected type of selector");let Bd=vd;const Gd=Ad?typeof Ad=="string"?isHtml(Ad)?new fd([Ra(Ad,Od,!1,null)],Ud,Od):(Bd=`${Ad} ${Bd}`,Ud):isCheerio(Ad)?Ad:new fd(Array.isArray(Ad)?Ad:[Ad],Ud,Od):Ud;return Gd?Gd.find(Bd):Ld}return Object.assign(md,staticMethods,{load:nd,_root:pd,_options:dd,fn:fd.prototype,prototype:fd.prototype}),md}}function isNode$1(Ra){return!!Ra.name||Ra.type==="root"||Ra.type==="text"||Ra.type==="comment"}const UNDEFINED_CODE_POINTS=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),REPLACEMENT_CHARACTER="<22>";var CODE_POINTS;(function(Ra){Ra[Ra.EOF=-1]="EOF",Ra[Ra.NULL=0]="NULL",Ra[Ra.TABULATION=9]="TABULATION",Ra[Ra.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",Ra[Ra.LINE_FEED=10]="LINE_FEED",Ra[Ra.FORM_FEED=12]="FORM_FEED",Ra[Ra.SPACE=32]="SPACE",Ra[Ra.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",Ra[Ra.QUOTATION_MARK=34]="QUOTATION_MARK",Ra[Ra.AMPERSAND=38]="AMPERSAND",Ra[Ra.APOSTROPHE=39]="APOSTROPHE",Ra[Ra.HYPHEN_MINUS=45]="HYPHEN_MINUS",Ra[Ra.SOLIDUS=47]="SOLIDUS",Ra[Ra.DIGIT_0=48]="DIGIT_0",Ra[Ra.DIGIT_9=57]="DIGIT_9",Ra[Ra.SEMICOLON=59]="SEMICOLON",Ra[Ra.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",Ra[Ra.EQUALS_SIGN=61]="EQUALS_SIGN",Ra[Ra.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",Ra[Ra.QUESTION_MARK=63]="QUESTION_MARK",Ra[Ra.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",Ra[Ra.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",Ra[Ra.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",Ra[Ra.GRAVE_ACCENT=96]="GRAVE_ACCENT",Ra[Ra.LATIN_SMALL_A=97]="LATIN_SMALL_A",Ra[Ra.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(CODE_POINTS||(CODE_POINTS={}));const SEQUENCES={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function isSurrogate(Ra){return Ra>=55296&&Ra<=57343}function isSurrogatePair(Ra){return Ra>=56320&&Ra<=57343}function getSurrogatePairCodePoint(Ra,qa){return(Ra-55296)*
`)}})(debug);var debugExports=debug.exports;(function(Ra,qa){debugExports("lex"),Ra.exports=nd;function nd(od){var ld="",ud,dd=0,pd=-1,fd=0,md=1,vd="before-selector",Ad=[vd],Nd={},Id=[],Od=["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 Md(){return gf(),od[pd]}function Ud(Df){return Df?Ad[Ad.length-1-Df]:vd}function jd(Df){var jf=pd+1;return Df===od.slice(jf,jf+Df.length)}function Ld(Df){var jf=od.slice(pd).indexOf(Df);return jf>0?jf:!1}function Bd(Df){return Df===Gd(1)}function Gd(Df){return od[pd+(Df||1)]}function qd(){var Df=Ad.pop();return vd=Ad[Ad.length-1],Df}function zd(Df){return vd=Df,Ad.push(vd),Ad.length}function Xd(Df){var jf=vd;return Ad[Ad.length-1]=vd=Df,jf}function gf(Df){if((Df||1)==1)od[pd]==`
`?(md++,dd=1):dd++,pd++;else{var jf=od.slice(pd,pd+Df).split(`
`);jf.length>1&&(md+=jf.length-1,dd=1),dd+=jf[jf.length-1].length,pd=pd+Df}}function Yd(){Nd.end={line:md,col:dd},Id.push(Nd),ld="",Nd={}}function Zd(Df){Nd={type:Df,start:{line:md,col:dd}}}for(;ud=Md();)switch(ud){case" ":switch(Ud()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":ld+=ud;break}break;case`
`:case" ":case"\r":case"\f":switch(Ud()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":ld+=ud;break;case"at-value":ud===`
`&&(Nd.value=ld.trim(),Yd(),qd());break}break;case":":switch(Ud()){case"name":Nd.name=ld.trim(),ld="",Xd("before-value");break;case"before-selector":ld+=ud,Zd("selector"),zd("selector");break;case"before-value":Xd("value"),ld+=ud;break;default:ld+=ud;break}break;case";":switch(Ud()){case"name":case"before-value":case"value":ld.trim().length>0&&(Nd.value=ld.trim(),Yd()),Xd("before-name");break;case"value-paren":ld+=ud;break;case"at-value":Nd.value=ld.trim(),Yd(),qd();break;case"before-name":break;default:ld+=ud;break}break;case"{":switch(Ud()){case"selector":if(Gd(-1)==="\\"){ld+=ud;break}Nd.text=ld.trim(),Yd(),Xd("before-name"),fd=fd+1;break;case"at-group":switch(Nd.name=ld.trim(),Nd.type){case"font-face":case"viewport":case"page":zd("before-name");break;default:zd("before-selector")}Yd(),fd=fd+1;break;case"name":case"at-rule":Nd.name=ld.trim(),Yd(),zd("before-name"),fd=fd+1;break;case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":Xd("value"),ld+=ud;break}break;case"}":switch(Ud()){case"before-name":case"name":case"before-value":case"value":ld&&(Nd.value=ld.trim()),Nd.name&&Nd.value&&Yd(),Zd("end"),Yd(),qd(),Ud()==="at-group"&&(Zd("at-group-end"),Yd(),qd()),fd>0&&(fd=fd-1);break;case"at-group":case"before-selector":case"selector":if(Gd(-1)==="\\"){ld+=ud;break}fd>0&&Ud(1)==="at-group"&&(Zd("at-group-end"),Yd()),fd>1&&qd(),fd>0&&(fd=fd-1);break;case"double-string":case"single-string":case"comment":ld+=ud;break}break;case'"':case"'":switch(Ud()){case"double-string":ud==='"'&&Gd(-1)!=="\\"&&qd();break;case"single-string":ud==="'"&&Gd(-1)!=="\\"&&qd();break;case"before-at-value":Xd("at-value"),zd(ud==='"'?"double-string":"single-string");break;case"before-value":Xd("value"),zd(ud==='"'?"double-string":"single-string");break;case"comment":break;default:Gd(-1)!=="\\"&&zd(ud==='"'?"double-string":"single-string")}ld+=ud;break;case"/":switch(Ud()){case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":case"selector":case"name":case"value":if(Bd("*")){var df=Ld("*/");df&&gf(df+1)}else Ud()=="before-value"&&Xd("value"),ld+=ud;break;default:Bd("*")?(Zd("comment"),zd("comment"),gf()):ld+=ud;break}break;case"*":switch(Ud()){case"comment":Bd("/")?(Nd.text=ld,gf(),Yd(),qd()):ld+=ud;break;case"before-selector":ld+=ud,Zd("selector"),zd("selector");break;case"before-value":Xd("value"),ld+=ud;break;default:ld+=ud}break;case"@":switch(Ud()){case"comment":case"double-string":case"single-string":ld+=ud;break;case"before-value":Xd("value"),ld+=ud;break;default:for(var Ef=!1,_f,xf,vf=0,Af=Od.length;!Ef&&vf<Af;++vf)xf=Od[vf],_f=xf.name||xf,jd(_f)&&(Ef=!0,Zd(_f),zd(xf.state||"at-group"),gf(_f.length),xf.prefix&&(Nd.prefix=xf.prefix),xf.type&&(Nd.type=xf.type));Ef||(ld+=ud);break}break;case"(":switch(Ud()){case"value":zd("value-paren");break;case"before-value":Xd("value");break}ld+=ud;break;case")":switch(Ud()){case"value-paren":qd();break;case"before-value":Xd("value");break}ld+=ud;break;default:switch(Ud()){case"before-selector":Zd("selector"),zd("selector");break;case"before-name":Zd("property"),Xd("name");break;case"before-value":Xd("value");break;case"before-at-value":Xd("at-value");break}ld+=ud;break}return Id}})(lexer);var lexerExports=lexer.exports,parser$2={exports:{}};(function(Ra,qa){debugExports("parse");var nd=lexerExports;Ra.exports=pd;var od,ld,ud,dd;function pd(qd,zd){zd||(zd={}),od=!!zd.comments,ud=!!zd.position,ld=0,dd=Array.isArray(qd)?qd.slice():nd(qd);for(var Xd,gf=[],Yd;Yd=md();)Xd=jd(Yd),Xd&&gf.push(Xd);return{type:"stylesheet",stylesheet:{rules:gf}}}function fd(qd,zd){zd||(zd={});for(var Xd,gf=["type","name","value"],Yd={},Zd=0;Zd<gf.length;++Zd)Xd=gf[Zd],qd[Xd]&&(Yd[Xd]=zd[Xd]||qd[Xd]);for(gf=Object.keys(zd),Zd=0;Zd<gf.length;++Zd)Xd=gf[Zd],Yd[Xd]||(Yd[Xd]=zd[Xd]);return ud&&(Yd.position={start:qd.start,end:qd.end}),Yd}function md(){var qd=dd.shift();return qd}function vd(qd){ld=ld+1;var zd={};switch(qd.type){case"font-face":case"viewport":zd.declarations=Bd();break;case"page":zd.prefix=qd.prefix,zd.declarations=Bd();break;default:zd.prefix=qd.prefix,zd.rul
`,pd=" ");var zd=Od(Gd.stylesheet.rules,Ld).join(`
`).trim();return zd}function md(Gd){if(Gd){ud+=Gd;return}return od?"":Array(ud).join(ld||"")}function vd(Gd){return"@"+Gd.type+" "+Gd.value+";"+dd}function Ad(Gd){var qd="",zd=Gd.prefix||"";Gd.name&&(qd=" "+Gd.name);var Xd=Gd.type!=="page";return"@"+zd+Gd.type+qd+pd+Md(Gd,Xd)+dd}function Nd(Gd){return nd?"/*"+(Gd.text||"")+"*/"+dd:""}function Id(Gd){var qd;return Gd.selectors?qd=Gd.selectors.join(","+dd):(qd="@"+Gd.type,qd+=Gd.name?" "+Gd.name:""),md()+qd+pd+Md(Gd)+dd}function Od(Gd,qd){return Gd.reduce(function(zd,Xd){var gf=Xd.type==="comment"?Nd(Xd):qd(Xd);return gf&&zd.push(gf),zd},[])}function Md(Gd,qd){var zd=Gd.declarations,Xd=jd;return Gd.rules&&(zd=Gd.rules,Xd=Id),zd=Ud(zd,Xd),zd&&(zd=dd+zd+(qd?"":dd)),"{"+zd+md()+"}"}function Ud(Gd,qd){if(!Gd)return"";md(1);var zd=Od(Gd,qd);return md(-1),zd.length?zd.join(dd):""}function jd(Gd){if(Gd.type==="property")return Bd(Gd)}function Ld(Gd){switch(Gd.type){case"rule":return Id(Gd);case"media":case"keyframes":return Ad(Gd);case"comment":return Nd(Gd);case"import":case"charset":case"namespace":return vd(Gd);case"font-face":case"supports":case"viewport":case"document":case"page":return Ad(Gd)}}function Bd(Gd){var qd=Gd.name?Gd.name+":"+pd:"";return md()+qd+Gd.value+";"}})(stringify$2);var stringifyExports=stringify$2.exports,mensch={lex:lexerExports,parse:parserExports,stringify:stringifyExports},selector$1={exports:{}},escapeRe=/([-.*+?^${}()|[\]\/\\])/g,unescapeRe=/\\/g,escape$5=function(Ra){return(Ra+"").replace(escapeRe,"\\$1")},unescape$2=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$5(">+~`!@$%^&={}\\;</")+"]").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,nd;if(Ra+=this.tag||"*",this.id&&(Ra+="#"+this.id),this.classes&&(Ra+="."+this.classList.join(".")),this.attributes)for(qa=0;nd=this.attributes[qa++];)Ra+="["+nd.name+(nd.operator?nd.operator+'"'+nd.value+'"':"")+"]";if(this.pseudos)for(qa=0;nd=this.pseudos[qa++];)Ra+=":"+nd.name,nd.value&&(Ra+="("+nd.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,nd;nd=this[qa++];)qa!==1&&(Ra+=" "),nd.combinator!==" "&&(Ra+=nd.combinator+" "),Ra+=nd;this.raw=Ra}return this.raw};var replacer=function(Ra,qa,nd,od,ld,ud,dd,pd,fd,md,vd,Ad,Nd,Id,Od,Md){var Ud,jd;if((qa||!this.length)&&(Ud=this[this.length++]=new Expression,qa))return"";if(Ud||(Ud=this[this.length-1]),(nd||od||!Ud.length)&&(jd=Ud[Ud.length++]=new Part(nd)),jd||(jd=Ud[Ud.length-1]),ld)jd.tag=unescape$2(ld);else if(ud)jd.id=unescape$2(ud);else if(dd){var Ld=unescape$2(dd),Bd=jd.classes||(jd.classes={});if(!Bd[Ld]){Bd[Ld]=escape$5(dd);var Gd=jd.classList||(jd.classList=[]);Gd.push(Ld),Gd.sort()}}else Nd?(Md=Md||Od,(jd.pseudos||(jd.pseudos=[])).push({type:Ad.length==1?"class":"element",name:unescape$2(Nd),escapedName:escape$5(Nd),value:Md?unescape$2(Md):null,escapedValue:Md?escape$5(Md):null})):pd&&(vd=vd?escape$5(vd):null,(jd.attributes||(jd.attributes=[])).push({operator:fd,name:unescape$2(pd),escapedName:escape$5(pd),value:vd?unescape$2(vd):null,escapedValue:vd?escape$5(vd):null}));return""},Expressions=function(qa){this.length=0;for(var nd=this,od=qa,ld;qa;){if(ld=qa.replace(slickRe,function(){return replacer.apply(nd,arguments)}),ld===qa)throw new Error(od+" is an invalid expression");qa=ld}};Expressions.prototype.toString=function(){if(!this.raw){for(var Ra=[],qa=0,nd;nd=this[qa++];)Ra.push(nd);this.raw=Ra.join(", ")}return this.raw};var cache$2={},parse$2=function(Ra){return Ra==null?null:(Ra=(""+Ra).replace(/^\s+|\s+$/g,""),cache$2[Ra]||(cache
* Returns an array of the selectors.
*
* @license Sizzle CSS Selector Engine - MIT
* @param {String} selectorText from mensch
* @api public
*/Ra.extract=function(ud){for(var dd=0,pd=[],fd="",md=0,vd=ud.length;md<vd;md++){var Ad=ud.charAt(md);dd?((Ad==="]"||Ad===")")&&dd--,fd+=Ad):Ad===","?(pd.push(fd),fd=""):((Ad==="["||Ad==="(")&&dd++,(fd.length||Ad!==","&&Ad!==`
`&&Ad!==" ")&&(fd+=Ad))}return fd.length&&pd.push(fd),pd},Ra.parseCSS=function(ld){for(var ud=qa.parse(ld,{position:!0,comments:!0}),dd=typeof ud.stylesheet<"u"&&ud.stylesheet.rules?ud.stylesheet.rules:[],pd=[],fd=0,md=dd.length;fd<md;fd++)if(dd[fd].type=="rule")for(var vd=dd[fd],Ad=vd.selectors,Nd=0,Id=Ad.length;Nd<Id;Nd++)pd.push([Ad[Nd],vd.declarations]);return pd},Ra.getPreservedText=function(ld,ud,dd){for(var pd=qa.parse(ld,{position:!0,comments:!0}),fd=typeof pd.stylesheet<"u"&&pd.stylesheet.rules?pd.stylesheet.rules:[],md=[],vd=fd.length-1;vd>=0;vd--)(ud.fontFaces&&fd[vd].type==="font-face"||ud.mediaQueries&&fd[vd].type==="media"||ud.keyFrames&&fd[vd].type==="keyframes"||ud.pseudos&&fd[vd].selectors&&this.matchesPseudo(fd[vd].selectors[0],dd))&&md.unshift(qa.stringify({stylesheet:{rules:[fd[vd]]}},{comments:!1,indentation:" "})),fd[vd].position.start;return md.length===0?!1:`
`+md.join(`
`)+`
`},Ra.normalizeLineEndings=function(ld){return ld.replace(/\r\n/g,`
`).replace(/\n/g,`\r
`)},Ra.matchesPseudo=function(ld,ud){return ud.find(function(dd){return ld.indexOf(dd)>-1})},Ra.compareFunc=function(ld,ud){for(var dd=Math.min(ld.length,ud.length),pd=0;pd<dd;pd++)if(ld[pd]!==ud[pd])return ld[pd]>ud[pd]?1:-1;return ld.length-ud.length},Ra.compare=function(ld,ud){return Ra.compareFunc(ld,ud)==1?ld:ud},Ra.getDefaultOptions=function(ld){var ud=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,resolveCSSVariables:!0,url:""},ld);return ud.webResources=ud.webResources||{},ud}}(utils$4)),utils$4}(function(Ra){var qa=require$$0$2;requireUtils$1();var nd=function(ld,ud,dd){const{xmlMode:pd,...fd}=ud;return ud=Object.assign({xml:{decodeEntities:!1,xmlMode:pd}},fd),ld=dd(ld),qa.load(ld,ud)},od=function(){var ld=[],ud=function(pd){var fd=Ra.exports.codeBlocks;return Object.keys(fd).forEach(function(md){var vd=new RegExp(fd[md].start+"([\\S\\s]*?)"+fd[md].end,"g");pd=pd.replace(vd,function(Ad,Nd){return ld.push(Ad),"JUICE_CODE_BLOCK_"+(ld.length-1)+"_"})}),pd},dd=function(pd){for(var fd=0;fd<ld.length;fd++){var md=new RegExp("JUICE_CODE_BLOCK_"+fd+'_(="")?',"gi");pd=pd.replace(md,function(){return ld[fd]})}return pd};return{encodeEntities:ud,decodeEntities:dd}};Ra.exports=function(ld,ud,dd,pd){var fd=od(),md=nd(ld,ud,fd.encodeEntities),vd=[md];vd.push.apply(vd,pd);var Ad=dd.apply(void 0,vd)||md;return ud&&ud.xmlMode?fd.decodeEntities(Ad.xml()):fd.decodeEntities(Ad.html())},Ra.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}})(cheerio$1);var cheerioExports=cheerio$1.exports,numbers$1={};numbers$1.romanize=function(Ra){if(isNaN(Ra))return NaN;for(var qa=String(+Ra).split(""),nd=["","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"],od="",ld=3;ld--;)od=(nd[+qa.pop()+ld*10]||"")+od;return Array(+qa.join("")+1).join("M")+od};numbers$1.alphanumeric=function(Ra){for(var qa="",nd;Ra>0;)nd=(Ra-1)%26,qa=String.fromCharCode(65+nd)+qa,Ra=(Ra-nd)/26|0;return qa||void 0};const uniqueString=Ra=>{let qa="";do qa=(Math.random()+1).toString(36).substring(2);while(Ra.indexOf(qa)!==-1);return qa},replaceVariables=(Ra,qa)=>{let nd=/([a-z\-]+)\s*\(\s*([^\(\)]*?)\s*(?:,\s*([^\(\)]*?)\s*)?\s*\)/i,od=[],ld,ud=uniqueString(qa);for(;(ld=nd.exec(qa))!==null;){let pd=`${od.length}`;if(ld[1].toLowerCase()=="var"){const md=findVariableValue(Ra,ld[2]);if(md){qa=qa.replace(ld[0],md);continue}if(ld[3]){qa=qa.replace(ld[0],ld[3]);continue}}let fd=`${ud}${pd.padStart(5,"-")}`;qa=qa.replace(ld[0],fd),od.push({placeholder:fd,replace:ld[0]})}for(var dd=od.length-1;dd>=0;dd--){const pd=od[dd];qa=qa.replace(pd.placeholder,pd.replace)}return qa},findVariableValue=(Ra,qa)=>{for(;Ra;){if(Ra.styleProps&&qa in Ra.styleProps)return Ra.styleProps[qa].value;var Ra=Ra.pseudoElementParent||Ra.parent}};var variables$1={replaceVariables,findVariableValue},utils$3=requireUtils$1(),numbers=numbers$1,variables=variables$1,inline$2=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=md,qa.inlineDocument=nd;function nd(Nd,Id,Od){Od=Od||{};var Md=utils$3.parseCSS(Id),Ud=[],jd="style",Ld={};if(Od.styleAttributeName&&(jd=Od.styleAttributeName),Md.forEach(qd),Ud.forEach(zd),Od.inlinePseudoElements&&Ud.forEach(Xd),Od.applyWidthAttributes&&Ud.forEach(function(df){gf(df,"width")}),Od.applyHeightAttributes&&Ud.forEach(function(df){gf(df,"height")}),Od.applyAttributesTableElements&&Ud.forEach(Zd),Od.insert
`+Id.extraCss,nd(Nd,Od,Id),Nd}function vd(Nd,Id){var Od=[],Md=Nd("style"),Ud,jd,Ld;return Md.each(function(){if(Ld=this,Ud=Ld.childNodes,Ud.length!==1){Id.removeStyleTags&&Nd(Ld).remove();return}if(jd=Ud[0].data,Id.applyStyleTags&&Nd(Ld).attr("data-embed")===void 0&&Od.push(jd),Id.removeStyleTags&&Nd(Ld).attr("data-embed")===void 0){var Bd=Ld.childNodes[0].nodeValue,Gd=utils$3.getPreservedText(Bd,{mediaQueries:Id.preserveMediaQueries,fontFaces:Id.preserveFontFaces,keyFrames:Id.preserveKeyFrames,pseudos:Id.preservePseudos},qa.ignoredPseudos);Gd?Ld.childNodes[0].nodeValue=Gd:Nd(Ld).remove()}Nd(Ld).removeAttr("data-embed")}),Od}function Ad(Nd,Id){var Od=vd(Nd,Id),Md=Od.join(`
`);return Md}return qa},cheerio=cheerioExports,makeJuiceClient=inline$2,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,nd){return cheerio(Ra,{xmlMode:nd&&nd.xmlMode},juiceClient.inlineDocument,[qa,nd])};juiceClient.codeBlocks=cheerio.codeBlocks;var client=juiceClient;const juice=getDefaultExportFromCjs(client);var $s$1=Object.create,je$6=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 nd in qa)je$6(Ra,nd,{get:qa[nd],enumerable:!0})},Js$1=(Ra,qa,nd,od)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let ld of qs$2(qa))!Ks$2.call(Ra,ld)&&ld!==nd&&je$6(Ra,ld,{get:()=>qa[ld],enumerable:!(od=Vs$1(qa,ld))||od.enumerable});return Ra},vt$5=(Ra,qa,nd)=>(nd=Ra!=null?$s$1(zs$1(Ra)):{},Js$1(je$6(nd,"default",{value:Ra,enumerable:!0}),Ra)),At$4=Hs$2(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(Wd,Fd){if(Wd==null)return{};var Kd={},yf=Object.keys(Wd),If,uh;for(uh=0;uh<yf.length;uh++)If=yf[uh],!(Fd.indexOf(If)>=0)&&(Kd[If]=Wd[If]);return Kd}var nd=class{constructor(Wd,Fd,Kd){this.line=void 0,this.column=void 0,this.index=void 0,this.line=Wd,this.column=Fd,this.index=Kd}},od=class{constructor(Wd,Fd){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=Wd,this.end=Fd}};function ld(Wd,Fd){let{line:Kd,column:yf,index:If}=Wd;return new nd(Kd,yf+Fd,If+Fd)}var ud="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",dd={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:ud},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:ud}},pd={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-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},fd=Wd=>Wd.type==="UpdateExpression"?pd.UpdateExpression[`${Wd.prefix}`]:pd[Wd.type],md={AccessorIsGenerator:({kind:Wd})=>`A ${Wd}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'."
- Did you mean \`export { '${Wd}' as '${Fd}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:Wd})=>`'${Wd==="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:Wd})=>`Unsyntactic ${Wd==="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:Wd})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${Wd}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:Wd})=>`\`import()\` requires exactly ${Wd===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:Wd})=>`Expected number in radix ${Wd}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:Wd})=>`Escape sequence in keyword ${Wd}.`,InvalidIdentifier:({identifierName:Wd})=>`Invalid identifier ${Wd}.`,InvalidLhs:({ancestor:Wd})=>`Invalid left-hand side in ${fd(Wd)}.`,InvalidLhsBinding:({ancestor:Wd})=>`Binding invalid left-hand side in ${fd(Wd)}.`,InvalidLhsOptionalChaining:({ancestor:Wd})=>`Invalid optional chaining in the left-hand side of ${fd(Wd)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:Wd})=>`Unexpected character '${Wd}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:Wd})=>`Private name #${Wd} 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:Wd})=>`Label '${Wd}' 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:Wd})=>`This experimental syntax requires enabling the parser plugin: ${Wd.map(Fd=>JSON.stringify(Fd)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:Wd})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${Wd.map(Fd=>JSON.stringify(Fd)).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:Wd})=>`Duplicate key "${Wd}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:Wd})=>`An export name cannot include a lone surrogate, found '\\u${Wd.toString(16)}'.`,ModuleExportUndefined:({localName:Wd})=>`Export '${Wd}' 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
`,++Kd,Ag===13&&Fd.charCodeAt(Kd)===10&&++Kd,++If,sg=yf=Kd):uh.unterminated(xh,Vh,fm):++Kd}return{pos:Kd,str:om,firstInvalidLoc:zm,lineStart:yf,curLine:If,containsInvalid:!!zm}}function t_(Wd,Fd,Kd,yf){return Wd==="template"?Fd===96||Fd===36&&Kd.charCodeAt(yf+1)===123:Fd===(Wd==="double"?34:39)}function Zg(Wd,Fd,Kd,yf,If,uh){let xh=!If;Fd++;let Vh=om=>({pos:Fd,ch:om,lineStart:Kd,curLine:yf}),fm=Wd.charCodeAt(Fd++);switch(fm){case 110:return Vh(`
`);case 114:return Vh("\r");case 120:{let om;return{code:om,pos:Fd}=jg(Wd,Fd,Kd,yf,2,!1,xh,uh),Vh(om===null?null:String.fromCharCode(om))}case 117:{let om;return{code:om,pos:Fd}=y_(Wd,Fd,Kd,yf,xh,uh),Vh(om===null?null:String.fromCodePoint(om))}case 116:return Vh(" ");case 98:return Vh("\b");case 118:return Vh("\v");case 102:return Vh("\f");case 13:Wd.charCodeAt(Fd)===10&&++Fd;case 10:Kd=Fd,++yf;case 8232:case 8233:return Vh("");case 56:case 57:if(If)return Vh(null);uh.strictNumericEscape(Fd-1,Kd,yf);default:if(fm>=48&&fm<=55){let om=Fd-1,zm=/^[0-7]+/.exec(Wd.slice(om,Fd+2))[0],sg=parseInt(zm,8);sg>255&&(zm=zm.slice(0,-1),sg=parseInt(zm,8)),Fd+=zm.length-1;let Tg=Wd.charCodeAt(Fd);if(zm!=="0"||Tg===56||Tg===57){if(If)return Vh(null);uh.strictNumericEscape(om,Kd,yf)}return Vh(String.fromCharCode(sg))}return Vh(String.fromCharCode(fm))}}function jg(Wd,Fd,Kd,yf,If,uh,xh,Vh){let fm=Fd,om;return{n:om,pos:Fd}=tg(Wd,Fd,Kd,yf,16,If,uh,!1,Vh,!xh),om===null&&(xh?Vh.invalidEscapeSequence(fm,Kd,yf):Fd=fm-1),{code:om,pos:Fd}}function tg(Wd,Fd,Kd,yf,If,uh,xh,Vh,fm,om){let zm=Fd,sg=If===16?_g.hex:_g.decBinOct,Tg=If===16?Km.hex:If===10?Km.dec:If===8?Km.oct:Km.bin,Ag=!1,qg=0;for(let I_=0,r_=uh??1/0;I_<r_;++I_){let u_=Wd.charCodeAt(Fd),Q_;if(u_===95&&Vh!=="bail"){let Ay=Wd.charCodeAt(Fd-1),gv=Wd.charCodeAt(Fd+1);if(Vh){if(Number.isNaN(gv)||!Tg(gv)||sg.has(Ay)||sg.has(gv)){if(om)return{n:null,pos:Fd};fm.unexpectedNumericSeparator(Fd,Kd,yf)}}else{if(om)return{n:null,pos:Fd};fm.numericSeparatorInEscapeSequence(Fd,Kd,yf)}++Fd;continue}if(u_>=97?Q_=u_-97+10:u_>=65?Q_=u_-65+10:Gm(u_)?Q_=u_-48:Q_=1/0,Q_>=If){if(Q_<=9&&om)return{n:null,pos:Fd};if(Q_<=9&&fm.invalidDigit(Fd,Kd,yf,If))Q_=0;else if(xh)Q_=0,Ag=!0;else break}++Fd,qg=qg*If+Q_}return Fd===zm||uh!=null&&Fd-zm!==uh||Ag?{n:null,pos:Fd}:{n:qg,pos:Fd}}function y_(Wd,Fd,Kd,yf,If,uh){let xh=Wd.charCodeAt(Fd),Vh;if(xh===123){if(++Fd,{code:Vh,pos:Fd}=jg(Wd,Fd,Kd,yf,Wd.indexOf("}",Fd)-Fd,!0,If,uh),++Fd,Vh!==null&&Vh>1114111)if(If)uh.invalidCodePoint(Fd,Kd,yf);else return{code:null,pos:Fd}}else({code:Vh,pos:Fd}=jg(Wd,Fd,Kd,yf,4,!1,If,uh));return{code:Vh,pos:Fd}}function Gg(Wd,Fd,Kd){return new nd(Kd,Wd-Fd,Wd)}var Mg=new Set([103,109,115,105,121,117,100,118]),_h=class{constructor(Wd){this.type=Wd.type,this.value=Wd.value,this.start=Wd.start,this.end=Wd.end,this.loc=new od(Wd.startLoc,Wd.endLoc)}},Xh=class extends kh{constructor(Wd,Fd){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Kd,yf,If,uh)=>this.options.errorRecovery?(this.raise(Ld.InvalidDigit,Gg(Kd,yf,If),{radix:uh}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Ld.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Ld.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Ld.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Ld.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(Kd,yf,If)=>{this.recordStrictModeErrors(Ld.StrictNumericEscape,Gg(Kd,yf,If))},unterminated:(Kd,yf,If)=>{throw this.raise(Ld.UnterminatedString,Gg(Kd-1,yf,If))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Ld.StrictNumericEscape),unterminated:(Kd,yf,If)=>{throw this.raise(Ld.UnterminatedTemplate,Gg(Kd,yf,If))}}),this.state=new Lm,this.state.init(Wd),this.input=Fd,this.length=Fd.length,this.comments=[],this.isLookahead=!1}pushToken(Wd){this.tokens.length=this.state.tokensLength,this.tokens.push(Wd),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new _h(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(Wd){return this.match(Wd)?(this.next(),!0):!1}match(Wd){return this.state.type===Wd}createLookaheadState(Wd){return{pos:Wd.pos,value:null,type:Wd.type,start:Wd.start,end:Wd.end,context:[this.curContext
`:`\r
`):yf=String.fromCharCode(Kd),++this.state.curLine,this.state.lineStart=this.state.pos,yf}jsxReadString(Fd){let Kd="",yf=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Ld.UnterminatedString,this.state.startLoc);let If=this.input.charCodeAt(this.state.pos);if(If===Fd)break;If===38?(Kd+=this.input.slice(yf,this.state.pos),Kd+=this.jsxReadEntity(),yf=this.state.pos):sm(If)?(Kd+=this.input.slice(yf,this.state.pos),Kd+=this.jsxReadNewLine(!1),yf=this.state.pos):++this.state.pos}Kd+=this.input.slice(yf,this.state.pos++),this.finishToken(133,Kd)}jsxReadEntity(){let Fd=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Kd=10;this.codePointAtPos(this.state.pos)===120&&(Kd=16,++this.state.pos);let yf=this.readInt(Kd,void 0,!1,"bail");if(yf!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(yf)}else{let Kd=0,yf=!1;for(;Kd++<10&&this.state.pos<this.length&&!(yf=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(yf){this.input.slice(Fd,this.state.pos);let If;++this.state.pos}}return this.state.pos=Fd,"&"}jsxReadWord(){let Fd,Kd=this.state.pos;do Fd=this.input.charCodeAt(++this.state.pos);while(Im(Fd)||Fd===45);this.finishToken(140,this.input.slice(Kd,this.state.pos))}jsxParseIdentifier(){let Fd=this.startNode();return this.match(140)?Fd.name=this.state.value:Bf(this.state.type)?Fd.name=Bh(this.state.type):this.unexpected(),this.next(),this.finishNode(Fd,"JSXIdentifier")}jsxParseNamespacedName(){let Fd=this.state.startLoc,Kd=this.jsxParseIdentifier();if(!this.eat(14))return Kd;let yf=this.startNodeAt(Fd);return yf.namespace=Kd,yf.name=this.jsxParseIdentifier(),this.finishNode(yf,"JSXNamespacedName")}jsxParseElementName(){let Fd=this.state.startLoc,Kd=this.jsxParseNamespacedName();if(Kd.type==="JSXNamespacedName")return Kd;for(;this.eat(16);){let yf=this.startNodeAt(Fd);yf.object=Kd,yf.property=this.jsxParseIdentifier(),Kd=this.finishNode(yf,"JSXMemberExpression")}return Kd}jsxParseAttributeValue(){let Fd;switch(this.state.type){case 5:return Fd=this.startNode(),this.setContext(gf.brace),this.next(),Fd=this.jsxParseExpressionContainer(Fd,gf.j_oTag),Fd.expression.type==="JSXEmptyExpression"&&this.raise(F_.AttributeIsEmpty,Fd),Fd;case 142:case 133:return this.parseExprAtom();default:throw this.raise(F_.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let Fd=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(Fd,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(Fd){return this.next(),Fd.expression=this.parseExpression(),this.setContext(gf.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Fd,"JSXSpreadChild")}jsxParseExpressionContainer(Fd,Kd){if(this.match(8))Fd.expression=this.jsxParseEmptyExpression();else{let yf=this.parseExpression();Fd.expression=yf}return this.setContext(Kd),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Fd,"JSXExpressionContainer")}jsxParseAttribute(){let Fd=this.startNode();return this.match(5)?(this.setContext(gf.brace),this.next(),this.expect(21),Fd.argument=this.parseMaybeAssignAllowIn(),this.setContext(gf.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Fd,"JSXSpreadAttribute")):(Fd.name=this.jsxParseNamespacedName(),Fd.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(Fd,"JSXAttribute"))}jsxParseOpeningElementAt(Fd){let Kd=this.startNodeAt(Fd);return this.eat(143)?this.finishNode(Kd,"JSXOpeningFragment"):(Kd.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Kd))}jsxParseOpeningElementAfterName(Fd){let Kd=[];for(;!this.match(56)&&!this.match(143);)Kd.push(this.jsxParseAttribute());return Fd.attributes=Kd,Fd.selfClosing=this.eat(56),this.expect(143),this.finishNode(Fd,"JSXOpeningElement")}jsxParseClosingElementAt(Fd){let Kd=this.startNodeAt(Fd);return this.eat(143)?this.finishNode(Kd,"JSXClosingFragment"):(Kd.name=this.jsxParseElementName(),this.expect(143),this.finishNode(Kd,"JSXClosingElement"))}jsxParseElementAt(Fd){let Kd=this.startNodeAt(Fd),yf=[],If
`),cooked:If===null?null:If.slice(1,fm)},xh.tail=Vh,this.next();let zm=this.finishNode(xh,"TemplateElement");return this.resetEndLocation(zm,ld(this.state.lastTokEndLoc,fm)),zm}parseTemplate(Wd){let Fd=this.startNode(),Kd=this.parseTemplateElement(Wd),yf=[Kd],If=[];for(;!Kd.tail;)If.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),yf.push(Kd=this.parseTemplateElement(Wd));return Fd.expressions=If,Fd.quasis=yf,this.finishNode(Fd,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(Wd,Fd,Kd,yf){Kd&&this.expectPlugin("recordAndTuple");let If=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let uh=Object.create(null),xh=!0,Vh=this.startNode();for(Vh.properties=[],this.next();!this.match(Wd);){if(xh)xh=!1;else if(this.expect(12),this.match(Wd)){this.addTrailingCommaExtraToNode(Vh);break}let om;Fd?om=this.parseBindingProperty():(om=this.parsePropertyDefinition(yf),this.checkProto(om,Kd,uh,yf)),Kd&&!this.isObjectProperty(om)&&om.type!=="SpreadElement"&&this.raise(Ld.InvalidRecordProperty,om),om.shorthand&&this.addExtra(om,"shorthand",!0),Vh.properties.push(om)}this.next(),this.state.inFSharpPipelineDirectBody=If;let fm="ObjectExpression";return Fd?fm="ObjectPattern":Kd&&(fm="RecordExpression"),this.finishNode(Vh,fm)}addTrailingCommaExtraToNode(Wd){this.addExtra(Wd,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(Wd,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(Wd){return!Wd.computed&&Wd.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(Wd){let Fd=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Ld.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)Fd.push(this.parseDecorator());let Kd=this.startNode(),yf=!1,If=!1,uh;if(this.match(21))return Fd.length&&this.unexpected(),this.parseSpread();Fd.length&&(Kd.decorators=Fd,Fd=[]),Kd.method=!1,Wd&&(uh=this.state.startLoc);let xh=this.eat(55);this.parsePropertyNamePrefixOperator(Kd);let Vh=this.state.containsEsc;if(this.parsePropertyName(Kd,Wd),!xh&&!Vh&&this.maybeAsyncOrAccessorProp(Kd)){let{key:fm}=Kd,om=fm.name;om==="async"&&!this.hasPrecedingLineBreak()&&(yf=!0,this.resetPreviousNodeTrailingComments(fm),xh=this.eat(55),this.parsePropertyName(Kd)),(om==="get"||om==="set")&&(If=!0,this.resetPreviousNodeTrailingComments(fm),Kd.kind=om,this.match(55)&&(xh=!0,this.raise(Ld.AccessorIsGenerator,this.state.curPosition(),{kind:om}),this.next()),this.parsePropertyName(Kd))}return this.parseObjPropValue(Kd,uh,xh,yf,!1,If,Wd)}getGetterSetterExpectedParamCount(Wd){return Wd.kind==="get"?0:1}getObjectOrClassMethodParams(Wd){return Wd.params}checkGetterSetterParams(Wd){var Fd;let Kd=this.getGetterSetterExpectedParamCount(Wd),yf=this.getObjectOrClassMethodParams(Wd);yf.length!==Kd&&this.raise(Wd.kind==="get"?Ld.BadGetterArity:Ld.BadSetterArity,Wd),Wd.kind==="set"&&((Fd=yf[yf.length-1])==null?void 0:Fd.type)==="RestElement"&&this.raise(Ld.BadSetterRestParameter,Wd)}parseObjectMethod(Wd,Fd,Kd,yf,If){if(If){let uh=this.parseMethod(Wd,Fd,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(uh),uh}if(Kd||Fd||this.match(10))return yf&&this.unexpected(),Wd.kind="method",Wd.method=!0,this.parseMethod(Wd,Fd,Kd,!1,!1,"ObjectMethod")}parseObjectProperty(Wd,Fd,Kd,yf){if(Wd.shorthand=!1,this.eat(14))return Wd.value=Kd?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(yf),this.finishNode(Wd,"ObjectProperty");if(!Wd.computed&&Wd.key.type==="Identifier"){if(this.checkReservedWord(Wd.key.name,Wd.key.loc.start,!0,!1),Kd)Wd.value=this.parseMaybeDefault(Fd,X_(Wd.key));else if(this.match(29)){let If=this.state.startLoc;yf!=null?yf.shorthandAssignLoc===null&&(yf.shorthandAssignLoc=If):this.raise(Ld.InvalidCoverInitializedName,If),Wd.value=this.parseMaybeDefault(Fd,X_(Wd.key))}else Wd.value=X_(Wd.key);return Wd.shorthand=!0,this.finishNode(Wd,"ObjectProperty")}}parseObjPropValue(Wd,Fd,Kd,yf,If,uh,xh){let Vh=this.parseObjectMethod(Wd,Kd,yf,If,uh)||this.parseObjectPr
`)return qa-2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa-1}else{if(ld==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa+1}return qa}var us$2=mr$2;function yr$2(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?cs$4(Ra,qa):qa}var fs$2=yr$2;function xr$3(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=ls$1(Ra,od),od=ps$1(Ra,od),od=fs$2(Ra,od),od=us$2(Ra,od);return od}var ds$1=xr$3;function Pr$3(Ra){let qa=[];for(let nd of Ra)try{return nd()}catch(od){qa.push(od)}throw Object.assign(new Error("All combinations failed"),{errors:qa})}var ms$2=Pr$3;function gr$2(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var Oe$6=gr$2,Tr$3=(Ra,qa,nd)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[nd<0?qa.length+nd:nd]:qa.at(nd)},St$4=Tr$3;function br$5(Ra){return Array.isArray(Ra)&&Ra.length>0}var Pe$6=br$5;function D$4(Ra){var qa,nd,od;let ld=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,ud=(od=((nd=Ra.declaration)==null?void 0:nd.decorators)??Ra.decorators)==null?void 0:od[0];return ud?Math.min(D$4(ud),ld):ld}function B$5(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function Ar$2(Ra){let qa=new Set(Ra);return nd=>qa.has(nd==null?void 0:nd.type)}var ys$2=Ar$2,Sr$3=ys$2(["Block","CommentBlock","MultiLine"]),ge$7=Sr$3;function wr$3(Ra){let qa=`*${Ra.value}*`.split(`
`);return qa.length>1&&qa.every(nd=>nd.trimStart()[0]==="*")}var wt$3=wr$3;function Cr$1(Ra){return ge$7(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(Ra.value)}var xs$2=Cr$1,Te$5=null;function be$8(Ra){if(Te$5!==null&&typeof Te$5.property){let qa=Te$5;return Te$5=be$8.prototype=null,qa}return Te$5=be$8.prototype=Ra??Object.create(null),new be$8}var Er$2=10;for(let Ra=0;Ra<=Er$2;Ra++)be$8();function Ct$4(Ra){return be$8(Ra)}function Ir$3(Ra,qa="type"){Ct$4(Ra);function nd(od){let ld=od[qa],ud=Ra[ld];if(!Array.isArray(ud))throw Object.assign(new Error(`Missing visitor keys for '${ld}'.`),{node:od});return ud}return nd}var Ps$1=Ir$3,gs$3={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","vari
`;Ra=ie$5(!1,Ra.replace(Or$3,"").replace(Mr$3,""),Ur$3,"$1");let nd="";for(;nd!==Ra;)nd=Ra,Ra=ie$5(!1,Ra,Rr$2,`${qa}$1 $2${qa}`);Ra=Ra.replace(Ss$1,"").trimEnd();let od=Object.create(null),ld=ie$5(!1,Ra,ws$2,"").replace(Ss$1,"").trimEnd(),ud;for(;ud=ws$2.exec(Ra);){let dd=ie$5(!1,ud[2],Br$4,"");if(typeof od[ud[1]]=="string"||Array.isArray(od[ud[1]])){let pd=od[ud[1]];od[ud[1]]=[..._r$3,...Array.isArray(pd)?pd:[pd],dd]}else od[ud[1]]=dd}return{comments:ld,pragmas:od}}function jr$3(Ra){let qa=Oe$6(Ra);qa&&(Ra=Ra.slice(qa.length+1));let nd=Cs$1(Ra),{pragmas:od,comments:ld}=Es$1(nd);return{shebang:qa,text:Ra,pragmas:od,comments:ld}}function Is$2(Ra){let{pragmas:qa}=jr$3(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function $r$3(Ra){return Ra=typeof Ra=="function"?{parse:Ra}:Ra,{astFormat:"estree",hasPragma:Is$2,locStart:D$4,locEnd:B$5,...Ra}}var G$7=$r$3;function Vr$3(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$3;function qr$3(Ra,qa){let{type:nd="JsExpressionRoot",rootMarker:od,text:ld}=qa,{tokens:ud,comments:dd}=Ra;return delete Ra.tokens,delete Ra.comments,{tokens:ud,comments:dd,type:nd,node:Ra,range:[0,ld.length],rootMarker:od}}var Ue$4=qr$3,re$6=Ra=>G$7(Jr$3(Ra)),zr$3={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$7=(Ra,qa=zr$3)=>({...qa,plugins:[...qa.plugins,...Ra]}),Kr$4=/@(?:no)?flow\b/u;function Hr$4(Ra,qa){var nd;if((nd=qa.filepath)!=null&&nd.endsWith(".js.flow"))return!0;let od=Oe$6(Ra);od&&(Ra=Ra.slice(od.length));let ld=ds$1(Ra,0);return ld!==!1&&(Ra=Ra.slice(0,ld)),Kr$4.test(Ra)}function Wr$3(Ra,qa,nd){let od=Ra(qa,nd),ld=od.errors.find(ud=>!Xr$3.has(ud.reasonCode));if(ld)throw ld;return od}function Jr$3({isExpression:Ra=!1,optionsCombinations:qa}){return(nd,od={})=>{if((od.parser==="babel"||od.parser==="__babel_estree")&&Hr$4(nd,od))return od.parser="babel-flow",Bs$2.parse(nd,od);let ld=qa;(od.__babelSourceType??Ns$1(od))==="script"&&(ld=ld.map(fd=>({...fd,sourceType:"script"})));let ud=/%[A-Z]/u.test(nd);nd.includes("|>")?ld=(ud?[...vs$1,ks$1]:vs$1).flatMap(fd=>ld.map(md=>V$7([fd],md))):ud&&(ld=ld.map(fd=>V$7([ks$1],fd)));let dd=Ra?_e$6.parseExpression:_e$6.parse,pd;try{pd=ms$2(ld.map(fd=>()=>Wr$3(dd,nd,fd)))}catch({errors:[fd]}){throw Re$7(fd)}return Ra&&(pd=Ue$4(pd,{text:nd,rootMarker:od.rootMarker})),As$2(pd,{parser:"babel",text:nd})}}var Xr$3=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
`)return qa-2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa-1}else{if(ld==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa+1}return qa}var Ue$3=$a$1;function Ka$1(Ra,qa,nd={}){let od=Ge$3(Ra,nd.backwards?qa-1:qa,nd),ld=Ue$3(Ra,od,nd);return od!==ld}var te$5=Ka$1;function za(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let nd=qa+2;nd<Ra.length;++nd)if(Ra.charAt(nd)==="*"&&Ra.charAt(nd+1)==="/")return nd+2}return qa}var Lt$2=za;function Qa(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?zs(Ra,qa):qa}var wt$2=Qa;function Za(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=Ks$1(Ra,od),od=Lt$2(Ra,od),od=Ge$3(Ra,od);return od=wt$2(Ra,od),od=Ue$3(Ra,od),od!==!1&&te$5(Ra,od)}var Ot$3=Za;function eo$1(Ra){return Array.isArray(Ra)&&Ra.length>0}var w$2=eo$1,dr$1="'",Qs$1='"';function to$1(Ra,qa){let nd=qa===!0||qa===dr$1?dr$1:Qs$1,od=nd===dr$1?Qs$1:dr$1,ld=0,ud=0;for(let dd of Ra)dd===nd?ld++:dd===od&&ud++;return ld>ud?od:nd}var xr$2=to$1;function ro$1(Ra,qa,nd){let od=qa==='"'?"'":'"',ld=N$6(!1,Ra,/\\(.)|(["'])/gsu,(ud,dd,pd)=>dd===od?dd:pd===qa?"\\"+pd:pd||(nd&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(dd)?dd:"\\"+dd));return qa+ld+qa}var Zs$1=ro$1;function no$2(Ra,qa){let nd=Ra.slice(1,-1),od=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":xr$2(nd,qa.singleQuote);return Zs$1(nd,od,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var tt$4=no$2;function R$6(Ra){var qa,nd,od;let ld=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,ud=(od=((nd=Ra.declaration)==null?void 0:nd.decorators)??Ra.decorators)==null?void 0:od[0];return ud?Math.min(R$6(ud),ld):ld}function k$2(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function ht$3(Ra,qa){let nd=R$6(Ra);return Number.isInteger(nd)&&nd===R$6(qa)}function so$1(Ra,qa){let nd=k$2(Ra);return Number.isInteger(nd)&&nd===k$2(qa)}function eu$1(Ra,qa){return ht$3(Ra,qa)&&so$1(Ra,qa)}var Qt$3=null;function Zt$3(Ra){if(Qt$3!==null&&typeof Qt$3.property){let qa=Qt$3;return Qt$3=Zt$3.prototype=null,qa}return Qt$3=Zt$3.prototype=Ra??Object.create(null),new Zt$3}var uo$2=10;for(let Ra=0;Ra<=uo$2;Ra++)Zt$3();function In$1(Ra){return Zt$3(Ra)}function io$2(Ra,qa="type"){In$1(Ra);function nd(od){let ld=od[qa],ud=Ra[ld];if(!Array.isArray(ud))throw Object.assign(new Error(`Missing visitor keys for '${ld}'.`),{node:od});return ud}return nd}var hr$3=io$2,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"],U
`):Ra.type==="UnaryExpression"?rr$2(Ra.argument,{printWidth:nd}):Ra.type==="CallExpression"&&Ra.arguments.length===0&&Ra.callee.type==="Identifier"?Ra.callee.name.length<=od-2:kr$2(Ra)}function Oe$5(Ra,qa){return X$6(qa)?Bt$4(qa):d$2(qa,g$4.Leading,nd=>te$5(Ra,k$2(nd)))}function nu$3(Ra){return Ra.quasis.some(qa=>qa.value.raw.includes(`
`))}function Lr$2(Ra,qa){return(Ra.type==="TemplateLiteral"&&nu$3(Ra)||Ra.type==="TaggedTemplateExpression"&&nu$3(Ra.quasi))&&!te$5(qa,R$6(Ra),{backwards:!0})}function wr$2(Ra){if(!d$2(Ra))return!1;let qa=O$3(!1,ct$3(Ra,g$4.Dangling),-1);return qa&&!re$5(qa)}function lu$2(Ra){if(Ra.length<=1)return!1;let qa=0;for(let nd of Ra)if(_t$3(nd)){if(qa+=1,qa>1)return!0}else if(L$6(nd)){for(let od of oe$5(nd))if(_t$3(od))return!0}return!1}function Or$2(Ra){let{node:qa,parent:nd,key:od}=Ra;return od==="callee"&&L$6(qa)&&L$6(nd)&&nd.arguments.length>0&&qa.arguments.length>nd.arguments.length}var xo$3=new Set(["!","-","+","~"]);function be$7(Ra,qa=2){if(qa<=0)return!1;if(Ra.type==="ChainExpression"||Ra.type==="TSNonNullExpression")return be$7(Ra.expression,qa);let nd=od=>be$7(od,qa-1);if(vn$2(Ra))return et$4(Ra.pattern??Ra.regex.pattern)<=5;if(kr$2(Ra)||Do$2(Ra)||Ra.type==="ArgumentPlaceholder")return!0;if(Ra.type==="TemplateLiteral")return Ra.quasis.every(od=>!od.value.raw.includes(`
`))&&Ra.expressions.every(nd);if(se$5(Ra))return Ra.properties.every(od=>!od.computed&&(od.shorthand||od.value&&nd(od.value)));if(U$6(Ra))return Ra.elements.every(od=>od===null||nd(od));if(lt$3(Ra)){if(Ra.type==="ImportExpression"||be$7(Ra.callee,qa)){let od=oe$5(Ra);return od.length<=qa&&od.every(nd)}return!1}return q$6(Ra)?be$7(Ra.object,qa)&&be$7(Ra.property,qa):Ra.type==="UnaryExpression"&&xo$3.has(Ra.operator)||Ra.type==="UpdateExpression"?be$7(Ra.argument,qa):!1}function fe$6(Ra){var qa;return((qa=Ra.extra)==null?void 0:qa.raw)??Ra.raw}function mu$2(Ra){return Ra}function ae$4(Ra,qa="es5"){return Ra.trailingComma==="es5"&&qa==="es5"||Ra.trailingComma==="all"&&(qa==="all"||qa==="es5")}function ie$4(Ra,qa){switch(Ra.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie$4(Ra.left,qa);case"MemberExpression":case"OptionalMemberExpression":return ie$4(Ra.object,qa);case"TaggedTemplateExpression":return Ra.tag.type==="FunctionExpression"?!1:ie$4(Ra.tag,qa);case"CallExpression":case"OptionalCallExpression":return Ra.callee.type==="FunctionExpression"?!1:ie$4(Ra.callee,qa);case"ConditionalExpression":return ie$4(Ra.test,qa);case"UpdateExpression":return!Ra.prefix&&ie$4(Ra.argument,qa);case"BindExpression":return Ra.object&&ie$4(Ra.object,qa);case"SequenceExpression":return ie$4(Ra.expressions[0],qa);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie$4(Ra.expression,qa);default:return qa(Ra)}}var su$2={"==":!0,"!=":!0,"===":!0,"!==":!0},br$4={"*":!0,"/":!0,"%":!0},_n$2={">>":!0,">>>":!0,"<<":!0};function nr$2(Ra,qa){return!(er$2(qa)!==er$2(Ra)||Ra==="**"||su$2[Ra]&&su$2[qa]||qa==="%"&&br$4[Ra]||Ra==="%"&&br$4[qa]||qa!==Ra&&br$4[qa]&&br$4[Ra]||_n$2[Ra]&&_n$2[qa])}var ho$1=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((Ra,qa)=>Ra.map(nd=>[nd,qa])));function er$2(Ra){return ho$1.get(Ra)}function yu$1(Ra){return!!_n$2[Ra]||Ra==="|"||Ra==="^"||Ra==="&"}function Du$2(Ra){var qa;if(Ra.rest)return!0;let nd=K$6(Ra);return((qa=O$3(!1,nd,-1))==null?void 0:qa.type)==="RestElement"}var wn$2=new WeakMap;function K$6(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$1(Ra,qa){let{node:nd}=Ra,od=0,ld=ud=>qa(ud,od++);nd.this&&Ra.call(ld,"this"),Array.isArray(nd.parameters)?Ra.each(ld,"parameters"):Array.isArray(nd.params)&&Ra.each(ld,"params"),nd.rest&&Ra.call(ld,"rest")}var On$3=new WeakMap;function oe$5(Ra){if(On$3.has(Ra))return On$3.get(Ra);if(Ra.type==="ChainExpression")return oe$5(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$3.set(Ra,qa),qa}function Rt$4(Ra,qa){let{node:nd}=Ra;if(nd.type==="ChainExpression")return Ra.call(()=>Rt$4(Ra,qa),"expression");nd.type==="ImportExpression"?(Ra.call(od=>qa(od,0),"source"),nd.attributes&&Ra.call(od=>qa(od,1),"attributes"),nd.options&&Ra.call(od=>qa(od,1),"options")):Ra.each(qa,"arguments")}function Rn$2(Ra,qa){let nd=[];if(Ra.type==="ChainExpression"&&(Ra=Ra.expression,nd.push("expression")),Ra.type==="ImportExpression"){if(qa===0||qa===(Ra.attributes||Ra.options?-2:-1))return[...nd,"source"];if(Ra.attributes&&(qa===1||qa===-1))return[...nd,"attributes"];if(Ra.options&&(qa===1||qa===-1))return[...nd,"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[...nd,"arguments",qa]}function sr$2(Ra){return Ra.value.trim()==="prettier-ignore"&&!Ra.unignore}function Bt$4(Ra){return(Ra==null?void 0:Ra.prettierIgnore)||d$2(Ra,g$4.PrettierIgnore)}var g$4={Leading:2,Trailing:4,
Expected it to be 'string' or 'object'.`;if(ut$3(Ra))throw new Error("doc is valid.");let nd=Object.prototype.toString.call(Ra);if(nd!=="[object Object]")return`Unexpected doc '${nd}'.`;let od=Bo$2([...jr$2].map(ld=>`'${ld}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${od}.`}var Jn$3=class extends Error{constructor(nd){super(bo$2(nd));wg(this,"name","InvalidDocError");this.doc=nd}},Ct$3=Jn$3,Au$1={};function Po$1(Ra,qa,nd,od){let ld=[Ra];for(;ld.length>0;){let ud=ld.pop();if(ud===Au$1){nd(ld.pop());continue}nd&&ld.push(ud,Au$1);let dd=ut$3(ud);if(!dd)throw new Ct$3(ud);if((qa==null?void 0:qa(ud))!==!1)switch(dd){case _e$5:case Pe$5:{let pd=dd===_e$5?ud:ud.parts;for(let fd=pd.length,md=fd-1;md>=0;--md)ld.push(pd[md]);break}case xe$4:ld.push(ud.flatContents,ud.breakContents);break;case le$5:if(od&&ud.expandedStates)for(let pd=ud.expandedStates.length,fd=pd-1;fd>=0;--fd)ld.push(ud.expandedStates[fd]);else ld.push(ud.contents);break;case Ye$4:case Xe$3:case He$4:case je$5:case Ve$4:ld.push(ud.contents);break;case rt$3:case nt$3:case st$3:case $e$3:case me$4:case ve$6:break;default:throw new Ct$3(ud)}}}var qn$2=Po$1,Tu$2=()=>{},vr$1=Tu$2;function f$2(Ra){return{type:Xe$3,contents:Ra}}function he$3(Ra,qa){return{type:Ye$4,contents:qa,n:Ra}}function l$2(Ra,qa={}){return vr$1(qa.expandedStates),{type:le$5,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function du$2(Ra){return he$3(Number.NEGATIVE_INFINITY,Ra)}function Mr$2(Ra){return he$3(-1,Ra)}function ze$5(Ra,qa){return l$2(Ra[0],{...qa,expandedStates:Ra})}function qt$4(Ra){return{type:Pe$5,parts:Ra}}function b$3(Ra,qa="",nd={}){return{type:xe$4,breakContents:Ra,flatContents:qa,groupId:nd.groupId}}function At$3(Ra,qa){return{type:He$4,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function Wn$2(Ra){return{type:Ve$4,contents:Ra}}var ke$5={type:$e$3},Ee$6={type:ve$6},Gn$3={type:me$4,hard:!0},ko$1={type:me$4,hard:!0,literal:!0},x$5={type:me$4},E$5={type:me$4,soft:!0},F$3=[Gn$3,Ee$6],Rr$1=[ko$1,Ee$6],Un$3={type:nt$3};function P$6(Ra,qa){let nd=[];for(let od=0;od<qa.length;od++)od!==0&&nd.push(Ra),nd.push(qa[od]);return nd}function xu$1(Ra,qa,nd){let od=Ra;if(qa>0){for(let ld=0;ld<Math.floor(qa/nd);++ld)od=f$2(od);od=he$3(qa%nd,od),od=he$3(Number.NEGATIVE_INFINITY,od)}return od}function it$3(Ra,qa){return Ra?{type:je$5,label:Ra,contents:qa}:qa}function mt$3(Ra,qa){if(typeof Ra=="string")return qa(Ra);let nd=new Map;return od(Ra);function od(ud){if(nd.has(ud))return nd.get(ud);let dd=ld(ud);return nd.set(ud,dd),dd}function ld(ud){switch(ut$3(ud)){case _e$5:return qa(ud.map(od));case Pe$5:return qa({...ud,parts:ud.parts.map(od)});case xe$4:return qa({...ud,breakContents:od(ud.breakContents),flatContents:od(ud.flatContents)});case le$5:{let{expandedStates:dd,contents:pd}=ud;return dd?(dd=dd.map(od),pd=dd[0]):pd=od(pd),qa({...ud,contents:pd,expandedStates:dd})}case Ye$4:case Xe$3:case He$4:case je$5:case Ve$4:return qa({...ud,contents:od(ud.contents)});case rt$3:case nt$3:case st$3:case $e$3:case me$4:case ve$6:return qa(ud);default:throw new Ct$3(ud)}}}function gu$1(Ra,qa,nd){let od=nd,ld=!1;function ud(dd){if(ld)return!1;let pd=qa(dd);pd!==void 0&&(ld=!0,od=pd)}return qn$2(Ra,ud),od}function Io$1(Ra){if(Ra.type===le$5&&Ra.break||Ra.type===me$4&&Ra.hard||Ra.type===ve$6)return!0}function ne$5(Ra){return gu$1(Ra,Io$1,!1)}function hu$2(Ra){if(Ra.length>0){let qa=O$3(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Su$1(Ra){let qa=new Set,nd=[];function od(ud){if(ud.type===ve$6&&hu$2(nd),ud.type===le$5){if(nd.push(ud),qa.has(ud))return!1;qa.add(ud)}}function ld(ud){ud.type===le$5&&nd.pop().break&&hu$2(nd)}qn$2(Ra,od,ld,!0)}function Lo$2(Ra){return Ra.type===me$4&&!Ra.hard?Ra.soft?"":" ":Ra.type===xe$4?Ra.flatContents:Ra}function ur$2(Ra){return mt$3(Ra,Lo$2)}function wo$1(Ra){switch(ut$3(Ra)){case Pe$5:if(Ra.parts.every(qa=>qa===""))return"";break;case le$5:if(!Ra.contents&&!Ra.id&&!Ra.break&&!Ra.expandedStates)return"";if(Ra.contents.type===le$5&&Ra.contents.id===Ra.id&&Ra.contents.break===Ra.break&&Ra.contents.expandedStates===Ra.expandedStates)return Ra.contents;break;case Ye$4:case Xe$3:case He$4:case Ve$4:if(!Ra.contents)return"";break;case xe$4:if(!Ra.flatContents&&!Ra.breakContents)return"";break;case _e$5:{let qa=[];for(let nd of Ra){if(!nd)continue;let[o
`)):nd)}function Oo$1(Ra){if(Ra.type===me$4)return!0}function Bu$1(Ra){return gu$1(Ra,Oo$1,!1)}function ir$3(Ra,qa){return Ra.type===je$5?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}function _o$1(Ra){let qa=`*${Ra.value}*`.split(`
`);return qa.length>1&&qa.every(nd=>nd.trimStart()[0]==="*")}var bu$2=_o$1;function Pu$1(Ra,qa){let nd=Ra.node;if(vt$4(nd))return qa.originalText.slice(R$6(nd),k$2(nd)).trimEnd();if(re$5(nd))return bu$2(nd)?jo$1(nd):["/*",Ie$4(nd.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(nd))}function jo$1(Ra){let qa=Ra.value.split(`
`);return["/*",P$6(F$3,qa.map((nd,od)=>od===0?nd.trimEnd():" "+(od<qa.length-1?nd.trim():nd.trimStart()))),"*/"]}var Kn$3={};Ar$1(Kn$3,{endOfLine:()=>Go$1,ownLine:()=>Wo$1,remaining:()=>Uo$2});function vo(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",nd=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 nd.length>20&&(nd=nd.slice(0,19)+"…"),qa+(nd?" "+nd:"")}function Nn$3(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=vo(Ra)}function ce$7(Ra,qa){qa.leading=!0,qa.trailing=!1,Nn$3(Ra,qa)}function Le$5(Ra,qa,nd){qa.leading=!1,qa.trailing=!1,nd&&(qa.marker=nd),Nn$3(Ra,qa)}function z$5(Ra,qa){qa.leading=!1,qa.trailing=!0,Nn$3(Ra,qa)}function Mo$3(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=Ge$3(Ra,od),od=Lt$2(Ra,od),od=wt$2(Ra,od),od=Ue$3(Ra,od);return od}var yt$2=Mo$3;function Ro$1(Ra,qa){let nd=yt$2(Ra,qa);return nd===!1?"":Ra.charAt(nd)}var ge$6=Ro$1;function Jo$2(Ra,qa,nd){for(let od=qa;od<nd;++od)if(Ra.charAt(od)===`
`)return!0;return!1}var de$4=Jo$2;function qo$1(Ra){return re$5(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(Ra.value)}var ku$1=qo$1;function Wo$1(Ra){return[Mu$2,Lu$1,_u$2,ep,Xo$1,Yn$2,Hn$2,Iu$2,wu$2,sp,rp,$n$3,vu$2,up,Ou$2,ju$2,Vn$3,Yo$1,yp].some(qa=>qa(Ra))}function Go$1(Ra){return[No$1,_u$2,Lu$1,vu$2,Yn$2,Hn$2,Iu$2,wu$2,ju$2,tp,np,$n$3,op$1,Vn$3,lp,mp].some(qa=>qa(Ra))}function Uo$2(Ra){return[Mu$2,Yn$2,Hn$2,Ho$2,Zo$2,Ou$2,$n$3,Qo$2,zo,cp$1,Vn$3,pp].some(qa=>qa(Ra))}function bt$5(Ra,qa){let nd=(Ra.body||Ra.properties).find(({type:od})=>od!=="EmptyStatement");nd?ce$7(nd,qa):Le$5(Ra,qa)}function Xn$3(Ra,qa){Ra.type==="BlockStatement"?bt$5(Ra,qa):ce$7(Ra,qa)}function No$1({comment:Ra,followingNode:qa}){return qa&&ku$1(Ra)?(ce$7(qa,Ra),!0):!1}function Yn$2({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od,text:ld}){if((nd==null?void 0:nd.type)!=="IfStatement"||!od)return!1;if(ge$6(ld,k$2(Ra))===")")return z$5(qa,Ra),!0;if(qa===nd.consequent&&od===nd.alternate){if(qa.type==="BlockStatement")z$5(qa,Ra);else{let ud=vt$4(Ra)||Ra.loc.start.line===Ra.loc.end.line,dd=Ra.loc.start.line===qa.loc.start.line;ud&&dd?z$5(qa,Ra):Le$5(nd,Ra)}return!0}return od.type==="BlockStatement"?(bt$5(od,Ra),!0):od.type==="IfStatement"?(Xn$3(od.consequent,Ra),!0):nd.consequent===od?(ce$7(od,Ra),!0):!1}function Hn$2({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od,text:ld}){return(nd==null?void 0:nd.type)!=="WhileStatement"||!od?!1:ge$6(ld,k$2(Ra))===")"?(z$5(qa,Ra),!0):od.type==="BlockStatement"?(bt$5(od,Ra),!0):nd.body===od?(ce$7(od,Ra),!0):!1}function Iu$2({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od}){return(nd==null?void 0:nd.type)!=="TryStatement"&&(nd==null?void 0:nd.type)!=="CatchClause"||!od?!1:nd.type==="CatchClause"&&qa?(z$5(qa,Ra),!0):od.type==="BlockStatement"?(bt$5(od,Ra),!0):od.type==="TryStatement"?(Xn$3(od.finalizer,Ra),!0):od.type==="CatchClause"?(Xn$3(od.body,Ra),!0):!1}function Xo$1({comment:Ra,enclosingNode:qa,followingNode:nd}){return q$6(qa)&&(nd==null?void 0:nd.type)==="Identifier"?(ce$7(qa,Ra),!0):!1}function Yo$1({comment:Ra,enclosingNode:qa,followingNode:nd,options:od}){return!od.experimentalTernaries||!((qa==null?void 0:qa.type)==="ConditionalExpression"||(qa==null?void 0:qa.type)==="ConditionalTypeAnnotation"||(qa==null?void 0:qa.type)==="TSConditionalType")?!1:(nd==null?void 0:nd.type)==="ConditionalExpression"||(nd==null?void 0:nd.type)==="ConditionalTypeAnnotation"||(nd==null?void 0:nd.type)==="TSConditionalType"?(Le$5(qa,Ra),!0):!1}function Lu$1({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od,text:ld,options:ud}){let dd=qa&&!de$4(ld,k$2(qa),R$6(Ra));return(!qa||!dd)&&((nd==null?void 0:nd.type)==="ConditionalExpression"||(nd==null?void 0:nd.type)==="ConditionalTypeAnnotation"||(nd==null?void 0:nd.type)==="TSConditionalType")&&od?ud.experimentalTernaries&&nd.alternate===od&&!(re$5(Ra)&&!de$4(ud.originalText,R$6(Ra),k$2(Ra)))?(Le$5(nd,Ra),!0):(ce$7(od,Ra),!0):!1}function Ho$2({comment:Ra,precedingNode:qa,enclosingNode:nd}){return Ae$5(nd)&&nd.shorthand&&nd.key===qa&&nd.value.type==="AssignmentPattern"?(z$5(nd.value.left,Ra),!0):!1}var Vo$2=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu$2({comment:Ra,precedingNode:qa,enclosingNode:nd,followingNode:od}){if(Vo$2.has(nd==null?void 0:nd.type)){if(w$2(nd.decorators)&&(od==null?void 0:od.type)!=="Decorator")return z$5(O$3(!1,nd.decorators,-1),Ra),!0;if(nd.body&&od===nd.body)return bt$5(nd.body,Ra),!0;if(od){if(nd.superClass&&od===nd.superClass&&qa&&(qa===nd.id||qa===nd.typeParameters))return z$5(qa,Ra),!0;for(let ld of["implements","extends","mixins"])if(nd[ld]&&od===nd[ld][0])return qa&&(qa===nd.id||qa===nd.typeParameters||qa===nd.superClass)?z$5(qa,Ra):Le$5(nd,Ra,ld),!0}}return!1}var $o$1=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty
`;default:return`
`}}var Se$6=Symbol("MODE_BREAK"),at$6=Symbol("MODE_FLAT"),ar$3=Symbol("cursor");function qu$2(){return{value:"",length:0,queue:[]}}function Cp(Ra,qa){return Qn$3(Ra,{type:"indent"},qa)}function Ap(Ra,qa,nd){return qa===Number.NEGATIVE_INFINITY?Ra.root||qu$2():qa<0?Qn$3(Ra,{type:"dedent"},nd):qa?qa.type==="root"?{...Ra,root:Ra}:Qn$3(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},nd):Ra}function Qn$3(Ra,qa,nd){let od=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],ld="",ud=0,dd=0,pd=0;for(let Od of od)switch(Od.type){case"indent":vd(),nd.useTabs?fd(1):md(nd.tabWidth);break;case"stringAlign":vd(),ld+=Od.n,ud+=Od.n.length;break;case"numberAlign":dd+=1,pd+=Od.n;break;default:throw new Error(`Unexpected type '${Od.type}'`)}return Nd(),{...Ra,value:ld,length:ud,queue:od};function fd(Od){ld+=" ".repeat(Od),ud+=nd.tabWidth*Od}function md(Od){ld+=" ".repeat(Od),ud+=Od}function vd(){nd.useTabs?Ad():Nd()}function Ad(){dd>0&&fd(dd),Id()}function Nd(){pd>0&&md(pd),Id()}function Id(){dd=0,pd=0}}function Zn$3(Ra){let qa=0,nd=0,od=Ra.length;e:for(;od--;){let ld=Ra[od];if(ld===ar$3){nd++;continue}for(let ud=ld.length-1;ud>=0;ud--){let dd=ld[ud];if(dd===" "||dd===" ")qa++;else{Ra[od]=ld.slice(0,ud+1);break e}}}if(qa>0||nd>0)for(Ra.length=od+1;nd-- >0;)Ra.push(ar$3);return qa}function Jr$2(Ra,qa,nd,od,ld,ud){if(nd===Number.POSITIVE_INFINITY)return!0;let dd=qa.length,pd=[Ra],fd=[];for(;nd>=0;){if(pd.length===0){if(dd===0)return!0;pd.push(qa[--dd]);continue}let{mode:md,doc:vd}=pd.pop(),Ad=ut$3(vd);switch(Ad){case rt$3:fd.push(vd),nd-=et$4(vd);break;case _e$5:case Pe$5:{let Nd=Ad===_e$5?vd:vd.parts;for(let Id=Nd.length-1;Id>=0;Id--)pd.push({mode:md,doc:Nd[Id]});break}case Xe$3:case Ye$4:case He$4:case je$5:pd.push({mode:md,doc:vd.contents});break;case st$3:nd+=Zn$3(fd);break;case le$5:{if(ud&&vd.break)return!1;let Nd=vd.break?Se$6:md,Id=vd.expandedStates&&Nd===Se$6?O$3(!1,vd.expandedStates,-1):vd.contents;pd.push({mode:Nd,doc:Id});break}case xe$4:{let Nd=(vd.groupId?ld[vd.groupId]||at$6:md)===Se$6?vd.breakContents:vd.flatContents;Nd&&pd.push({mode:md,doc:Nd});break}case me$4:if(md===Se$6||vd.hard)return!0;vd.soft||(fd.push(" "),nd--);break;case Ve$4:od=!0;break;case $e$3:if(od)return!1;break}}return!1}function es$1(Ra,qa){let nd={},od=qa.printWidth,ld=Ju$2(qa.endOfLine),ud=0,dd=[{ind:qu$2(),mode:Se$6,doc:Ra}],pd=[],fd=!1,md=[],vd=0;for(Su$1(Ra);dd.length>0;){let{ind:Nd,mode:Id,doc:Od}=dd.pop();switch(ut$3(Od)){case rt$3:{let Md=ld!==`
`?N$6(!1,Od,`
`,ld):Od;pd.push(Md),dd.length>0&&(ud+=et$4(Md));break}case _e$5:for(let Md=Od.length-1;Md>=0;Md--)dd.push({ind:Nd,mode:Id,doc:Od[Md]});break;case nt$3:if(vd>=2)throw new Error("There are too many 'cursor' in doc.");pd.push(ar$3),vd++;break;case Xe$3:dd.push({ind:Cp(Nd,qa),mode:Id,doc:Od.contents});break;case Ye$4:dd.push({ind:Ap(Nd,Od.n,qa),mode:Id,doc:Od.contents});break;case st$3:ud-=Zn$3(pd);break;case le$5:switch(Id){case at$6:if(!fd){dd.push({ind:Nd,mode:Od.break?Se$6:at$6,doc:Od.contents});break}case Se$6:{fd=!1;let Md={ind:Nd,mode:at$6,doc:Od.contents},Ud=od-ud,jd=md.length>0;if(!Od.break&&Jr$2(Md,dd,Ud,jd,nd))dd.push(Md);else if(Od.expandedStates){let Ld=O$3(!1,Od.expandedStates,-1);if(Od.break){dd.push({ind:Nd,mode:Se$6,doc:Ld});break}else for(let Bd=1;Bd<Od.expandedStates.length+1;Bd++)if(Bd>=Od.expandedStates.length){dd.push({ind:Nd,mode:Se$6,doc:Ld});break}else{let Gd=Od.expandedStates[Bd],qd={ind:Nd,mode:at$6,doc:Gd};if(Jr$2(qd,dd,Ud,jd,nd)){dd.push(qd);break}}}else dd.push({ind:Nd,mode:Se$6,doc:Od.contents});break}}Od.id&&(nd[Od.id]=O$3(!1,dd,-1).mode);break;case Pe$5:{let Md=od-ud,{parts:Ud}=Od;if(Ud.length===0)break;let[jd,Ld]=Ud,Bd={ind:Nd,mode:at$6,doc:jd},Gd={ind:Nd,mode:Se$6,doc:jd},qd=Jr$2(Bd,[],Md,md.length>0,nd,!0);if(Ud.length===1){qd?dd.push(Bd):dd.push(Gd);break}let zd={ind:Nd,mode:at$6,doc:Ld},Xd={ind:Nd,mode:Se$6,doc:Ld};if(Ud.length===2){qd?dd.push(zd,Bd):dd.push(Xd,Gd);break}Ud.splice(0,2);let gf={ind:Nd,mode:Id,doc:qt$4(Ud)},Yd=Ud[0];Jr$2({ind:Nd,mode:at$6,doc:[jd,Ld,Yd]},[],Md,md.length>0,nd,!0)?dd.push(gf,zd,Bd):qd?dd.push(gf,Xd,Bd):dd.push(gf,Xd,Gd);break}case xe$4:case He$4:{let Md=Od.groupId?nd[Od.groupId]:Id;if(Md===Se$6){let Ud=Od.type===xe$4?Od.breakContents:Od.negate?Od.contents:f$2(Od.contents);Ud&&dd.push({ind:Nd,mode:Id,doc:Ud})}if(Md===at$6){let Ud=Od.type===xe$4?Od.flatContents:Od.negate?f$2(Od.contents):Od.contents;Ud&&dd.push({ind:Nd,mode:Id,doc:Ud})}break}case Ve$4:md.push({ind:Nd,mode:Id,doc:Od.contents});break;case $e$3:md.length>0&&dd.push({ind:Nd,mode:Id,doc:Gn$3});break;case me$4:switch(Id){case at$6:if(Od.hard)fd=!0;else{Od.soft||(pd.push(" "),ud+=1);break}case Se$6:if(md.length>0){dd.push({ind:Nd,mode:Id,doc:Od},...md.reverse()),md.length=0;break}Od.literal?Nd.root?(pd.push(ld,Nd.root.value),ud=Nd.root.length):(pd.push(ld),ud=0):(ud-=Zn$3(pd),pd.push(ld+Nd.value),ud=Nd.length);break}break;case je$5:dd.push({ind:Nd,mode:Id,doc:Od.contents});break;case ve$6:break;default:throw new Ct$3(Od)}dd.length===0&&md.length>0&&(dd.push(...md.reverse()),md.length=0)}let Ad=pd.indexOf(ar$3);if(Ad!==-1){let Nd=pd.indexOf(ar$3,Ad+1),Id=pd.slice(0,Ad).join(""),Od=pd.slice(Ad+1,Nd).join(""),Md=pd.slice(Nd+1).join("");return{formatted:Id+Od+Md,cursorNodeStart:Id.length,cursorNodeText:Od}}return{formatted:pd.join("")}}function Tp(Ra,qa,nd=0){let od=0;for(let ld=nd;ld<Ra.length;++ld)Ra[ld]===" "?od=od+qa-od%qa:od++;return od}var Wu$1=Tp;function dp(Ra,qa){let nd=Ra.lastIndexOf(`
`);return nd===-1?0:Wu$1(Ra.slice(nd+1).match(/^[\t ]*/u)[0],qa)}var Gu$2=dp;function qr$2(Ra,qa,nd){let{node:od}=Ra;if(od.type==="TemplateLiteral"&&gp(Ra)){let fd=xp(Ra,nd,qa);if(fd)return fd}let ld="expressions";od.type==="TSTemplateLiteralType"&&(ld="types");let ud=[],dd=Ra.map(qa,ld);ud.push(ke$5,"`");let pd=0;return Ra.each(({index:fd,node:md})=>{if(ud.push(qa()),md.tail)return;let{tabWidth:vd}=nd,Ad=md.value.raw,Nd=Ad.includes(`
`)?Gu$2(Ad,vd):pd;pd=Nd;let Id=dd[fd],Od=od[ld][fd],Md=de$4(nd.originalText,k$2(md),R$6(od.quasis[fd+1]));if(!Md){let jd=es$1(Id,{...nd,printWidth:Number.POSITIVE_INFINITY}).formatted;jd.includes(`
`)?Md=!0:Id=jd}Md&&(d$2(Od)||Od.type==="Identifier"||q$6(Od)||Od.type==="ConditionalExpression"||Od.type==="SequenceExpression"||Te$4(Od)||De$4(Od))&&(Id=[f$2([E$5,Id]),E$5]);let Ud=Nd===0&&Ad.endsWith(`
`)?he$3(Number.NEGATIVE_INFINITY,Id):xu$1(Id,Nd,vd);ud.push(l$2(["${",Ud,ke$5,"}"]))},"quasis"),ud.push("`"),ud}function Uu$3(Ra,qa){let nd=qa("quasi");return it$3(nd.label&&{tagged:!0,...nd.label},[qa("tag"),qa(Ra.node.typeArguments?"typeArguments":"typeParameters"),ke$5,nd])}function xp(Ra,qa,nd){let{node:od}=Ra,ld=od.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(ld.length>1||ld.some(ud=>ud.length>0)){qa.__inJestEach=!0;let ud=Ra.map(nd,"expressions");qa.__inJestEach=!1;let dd=[],pd=ud.map(Nd=>"${"+es$1(Nd,{...qa,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),fd=[{hasLineBreak:!1,cells:[]}];for(let Nd=1;Nd<od.quasis.length;Nd++){let Id=O$3(!1,fd,-1),Od=pd[Nd-1];Id.cells.push(Od),Od.includes(`
`)&&(Id.hasLineBreak=!0),od.quasis[Nd].value.raw.includes(`
`)&&fd.push({hasLineBreak:!1,cells:[]})}let md=Math.max(ld.length,...fd.map(Nd=>Nd.cells.length)),vd=Array.from({length:md}).fill(0),Ad=[{cells:ld},...fd.filter(Nd=>Nd.cells.length>0)];for(let{cells:Nd}of Ad.filter(Id=>!Id.hasLineBreak))for(let[Id,Od]of Nd.entries())vd[Id]=Math.max(vd[Id],et$4(Od));return dd.push(ke$5,"`",f$2([F$3,P$6(F$3,Ad.map(Nd=>P$6(" | ",Nd.cells.map((Id,Od)=>Nd.hasLineBreak?Id:Id+" ".repeat(vd[Od]-et$4(Id))))))]),F$3,"`"),dd}}function hp(Ra,qa){let{node:nd}=Ra,od=qa();return d$2(nd)&&(od=l$2([f$2([E$5,od]),E$5])),["${",od,ke$5,"}"]}function Gt$3(Ra,qa){return Ra.map(nd=>hp(nd,qa),"expressions")}function Wr$2(Ra,qa){return mt$3(Ra,nd=>typeof nd=="string"?qa?N$6(!1,nd,/(\\*)`/gu,"$1$1\\`"):ts(nd):nd)}function ts(Ra){return N$6(!1,Ra,/([\\`]|\$\{)/gu,String.raw`\$1`)}function gp({node:Ra,parent:qa}){let nd=/^[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"&&nd.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"&&nd.test(qa.tag.object.object.name))}var ns$1=[(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$2(Ra){let qa=od=>od.type==="TemplateLiteral",nd=(od,ld)=>Ae$5(od)&&!od.computed&&od.key.type==="Identifier"&&od.key.name==="styles"&&ld==="value";return Ra.match(qa,(od,ld)=>U$6(od)&&ld==="elements",nd,...ns$1)||Ra.match(qa,nd,...ns$1)}function Xu$2(Ra){return Ra.match(qa=>qa.type==="TemplateLiteral",(qa,nd)=>Ae$5(qa)&&!qa.computed&&qa.key.type==="Identifier"&&qa.key.name==="template"&&nd==="value",...ns$1)}function rs$1(Ra,qa){return d$2(Ra,g$4.Block|g$4.Leading,({value:nd})=>nd===` ${qa} `)}function Gr$2({node:Ra,parent:qa},nd){return rs$1(Ra,nd)||Sp(qa)&&rs$1(qa,nd)||qa.type==="ExpressionStatement"&&rs$1(qa,nd)}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,nd){let{node:od}=nd,ld=od.quasis.map(vd=>vd.value.raw),ud=0,dd=ld.reduce((vd,Ad,Nd)=>Nd===0?Ad:vd+"@prettier-placeholder-"+ud+++"-id"+Ad,""),pd=await Ra(dd,{parser:"scss"}),fd=Gt$3(nd,qa),md=bp$1(pd,fd);if(!md)throw new Error("Couldn't insert all the expressions");return["`",f$2([F$3,md]),E$5,"`"]}function bp$1(Ra,qa){if(!w$2(qa))return Ra;let nd=0,od=mt$3(Wt$3(Ra),ld=>typeof ld!="string"||!ld.includes("@prettier-placeholder")?ld:ld.split(/@prettier-placeholder-(\d+)-id/u).map((ud,dd)=>dd%2===0?Ie$4(ud):(nd++,qa[ud])));return qa.length===nd?od:null}function Pp({node:Ra,parent:qa,grandparent:nd}){return nd&&Ra.quasis&&qa.type==="JSXExpressionContainer"&&nd.type==="JSXElement"&&nd.openingElement.name.name==="style"&&nd.openingElement.attributes.some(od=>od.type==="JSXAttribute"&&od.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$2(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$2(qa.object)||Yu$1(qa);case"CallExpression":return Ur$2(qa.callee)||qa.callee.type==="MemberExpression"&&(qa.callee.object.type==="MemberExpression"&&(Ur$2(qa.callee.object.object)||Yu$1(qa.callee.
`),Id=Nd.length,Od=ud[pd],Md=Id>2&&Nd[0].trim()===""&&Nd[1].trim()==="",Ud=Id>2&&Nd[Id-1].trim()===""&&Nd[Id-2].trim()==="",jd=Nd.every(Bd=>/^\s*(?:#[^\n\r]*)?$/u.test(Bd));if(!vd&&/#[^\n\r]*$/u.test(Nd[Id-1]))return null;let Ld=null;jd?Ld=Op(Nd):Ld=await Ra(Ad,{parser:"graphql"}),Ld?(Ld=Wr$2(Ld,!1),!md&&Md&&dd.push(""),dd.push(Ld),!vd&&Ud&&dd.push("")):!md&&!vd&&Md&&dd.push(""),Od&&dd.push(Od)}return["`",f$2([F$3,P$6(F$3,dd)]),F$3,"`"]}function Op(Ra){let qa=[],nd=!1,od=Ra.map(ld=>ld.trim());for(let[ld,ud]of od.entries())ud!==""&&(od[ld-1]===""&&nd?qa.push([F$3,ud]):qa.push(ud),nd=!0);return qa.length===0?null:P$6(F$3,qa)}function _p({node:Ra,parent:qa}){return Gr$2({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$3=jp,ss$1=0;async function $u$2(Ra,qa,nd,od,ld){let{node:ud}=od,dd=ss$1;ss$1=ss$1+1>>>0;let pd=jd=>`PRETTIER_HTML_PLACEHOLDER_${jd}_${dd}_IN_JS`,fd=ud.quasis.map((jd,Ld,Bd)=>Ld===Bd.length-1?jd.value.cooked:jd.value.cooked+pd(Ld)).join(""),md=Gt$3(od,nd),vd=new RegExp(pd(String.raw`(\d+)`),"gu"),Ad=0,Nd=await qa(fd,{parser:Ra,__onHtmlRoot(jd){Ad=jd.children.length}}),Id=mt$3(Nd,jd=>{if(typeof jd!="string")return jd;let Ld=[],Bd=jd.split(vd);for(let Gd=0;Gd<Bd.length;Gd++){let qd=Bd[Gd];if(Gd%2===0){qd&&(qd=ts(qd),ld.__embeddedInHtml&&(qd=N$6(!1,qd,/<\/(?=script\b)/giu,String.raw`<\/`)),Ld.push(qd));continue}let zd=Number(qd);Ld.push(md[zd])}return Ld}),Od=/^\s/u.test(fd)?" ":"",Md=/\s$/u.test(fd)?" ":"",Ud=ld.htmlWhitespaceSensitivity==="ignore"?F$3:Od&&Md?x$5:null;return Ud?l$2(["`",f$2([Ud,l$2(Id)]),Ud,"`"]):it$3({hug:!1},l$2(["`",Od,Ad>1?f$2(l$2(Id)):l$2(Id),Md,"`"]))}function vp(Ra){return Gr$2(Ra,"HTML")||Ra.match(qa=>qa.type==="TemplateLiteral",(qa,nd)=>qa.type==="TaggedTemplateExpression"&&qa.tag.type==="Identifier"&&qa.tag.name==="html"&&nd==="quasi")}var Mp=$u$2.bind(void 0,"html"),Rp=$u$2.bind(void 0,"angular");function Jp(Ra){if(vp(Ra))return Mp;if(Xu$2(Ra))return Rp}var Ku$3=Jp;async function qp(Ra,qa,nd){let{node:od}=nd,ld=N$6(!1,od.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(fd,md)=>"\\".repeat(md.length/2)+"`"),ud=Wp(ld),dd=ud!=="";dd&&(ld=N$6(!1,ld,new RegExp(`^${ud}`,"gmu"),""));let pd=Wr$2(await Ra(ld,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",dd?f$2([E$5,pd]):[Rr$1,du$2(pd)],E$5,"`"]}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$1=Gp;function Np(Ra){let{node:qa}=Ra;if(qa.type!=="TemplateLiteral"||Xp(qa))return;let nd;for(let od of[Hu$3,Vu$3,Ku$3,zu$1])if(nd=od(Ra),!!nd)return qa.quasis.length===1&&qa.quasis[0].value.raw.trim()===""?"``":async(...ld)=>{let ud=await nd(...ld);return ud&&it$3({embed:!0,...ud.label},ud)}}function Xp({quasis:Ra}){return Ra.some(({value:{cooked:qa}})=>qa===null)}var Qu$2=Np,Yp=/\*\/$/,Hp=/^\/\*\*?/,ri$3=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Vp=/(^|\s+)\/\/([^\n\r]*)/g,Zu$3=/^(\r?\n)+/,$p=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,ei$3=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Kp=/(\r?\n|^) *\* ?/g,ni$3=[];function si$3(Ra){let qa=Ra.match(ri$3);return qa?qa[0].trimStart():""}function ui$3(Ra){let qa=Ra.match(ri$3),nd=qa==null?void 0:qa[0];return nd==null?Ra:Ra.slice(nd.length)}function ii$4(Ra){let qa=`
`;Ra=N$6(!1,Ra.replace(Hp,"").replace(Yp,""),Kp,"$1");let nd="";for(;nd!==Ra;)nd=Ra,Ra=N$6(!1,Ra,$p,`${qa}$1 $2${qa}`);Ra=Ra.replace(Zu$3,"").trimEnd();let od=Object.create(null),ld=N$6(!1,Ra,ei$3,"").replace(Zu$3,"").trimEnd(),ud;for(;ud=ei$3.exec(Ra);){let dd=N$6(!1,ud[2],Vp,"");if(typeof od[ud[1]]=="string"||Array.isArray(od[ud[1]])){let pd=od[ud[1]];od[ud[1]]=[...ni$3,...Array.isArray(pd)?pd:[pd],dd]}else od[ud[1]]=dd}return{comments:ld,pragmas:od}}function ai$4({comments:Ra="",pragmas:qa={}}){let nd=`
`,od="/**",ld=" *",ud=" */",dd=Object.keys(qa),pd=dd.flatMap(md=>ti$3(md,qa[md])).map(md=>`${ld} ${md}${nd}`).join("");if(!Ra){if(dd.length===0)return"";if(dd.length===1&&!Array.isArray(qa[dd[0]])){let md=qa[dd[0]];return`${od} ${ti$3(dd[0],md)[0]}${ud}`}}let fd=Ra.split(nd).map(md=>`${ld} ${md}`).join(nd)+nd;return od+nd+(Ra?fd:"")+(Ra&&dd.length>0?ld+nd:"")+pd+ud}function ti$3(Ra,qa){return[...ni$3,...Array.isArray(qa)?qa:[qa]].map(nd=>`@${Ra} ${nd}`.trim())}function zp(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var oi$3=zp;function Qp(Ra){let qa=oi$3(Ra);qa&&(Ra=Ra.slice(qa.length+1));let nd=si$3(Ra),{pragmas:od,comments:ld}=ii$4(nd);return{shebang:qa,text:Ra,pragmas:od,comments:ld}}function pi$5(Ra){let{shebang:qa,text:nd,pragmas:od,comments:ld}=Qp(Ra),ud=ui$3(nd),dd=ai$4({pragmas:{format:"",...od},comments:ld.trimStart()});return(qa?`${qa}
`:"")+dd+(ud.startsWith(`
`)?`
`:`
`)+ud}function Zp(Ra,qa){let{originalText:nd,[Symbol.for("comments")]:od,locStart:ld,locEnd:ud,[Symbol.for("printedComments")]:dd}=qa,{node:pd}=Ra,fd=ld(pd),md=ud(pd);for(let vd of od)ld(vd)>=fd&&ud(vd)<=md&&dd.add(vd);return nd.slice(fd,md)}var ci$4=Zp;function us$1(Ra,qa){var nd,od,ld,ud,dd,pd,fd,md,vd;if(Ra.isRoot)return!1;let{node:Ad,key:Nd,parent:Id}=Ra;if(qa.__isInHtmlInterpolation&&!qa.bracketSpacing&&nc$2(Ad)&&or$2(Ra))return!0;if(ec$1(Ad))return!1;if(Ad.type==="Identifier"){if((nd=Ad.extra)!=null&&nd.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(Ad.name)||Nd==="left"&&(Ad.name==="async"&&!Id.await||Ad.name==="let")&&Id.type==="ForOfStatement")return!0;if(Ad.name==="let"){let Od=(od=Ra.findAncestor(Md=>Md.type==="ForOfStatement"))==null?void 0:od.left;if(Od&&ie$4(Od,Md=>Md===Ad))return!0}if(Nd==="object"&&Ad.name==="let"&&Id.type==="MemberExpression"&&Id.computed&&!Id.optional){let Od=Ra.findAncestor(Ud=>Ud.type==="ExpressionStatement"||Ud.type==="ForStatement"||Ud.type==="ForInStatement"),Md=Od?Od.type==="ExpressionStatement"?Od.expression:Od.type==="ForStatement"?Od.init:Od.left:void 0;if(Md&&ie$4(Md,Ud=>Ud===Ad))return!0}if(Nd==="expression")switch(Ad.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let Od=Ra.findAncestor(Md=>!Te$4(Md));if(Od!==Id&&Od.type==="ExpressionStatement")return!0}}return!1}if(Ad.type==="ObjectExpression"||Ad.type==="FunctionExpression"||Ad.type==="ClassExpression"||Ad.type==="DoExpression"){let Od=(ld=Ra.findAncestor(Md=>Md.type==="ExpressionStatement"))==null?void 0:ld.expression;if(Od&&ie$4(Od,Md=>Md===Ad))return!0}if(Ad.type==="ObjectExpression"){let Od=(ud=Ra.findAncestor(Md=>Md.type==="ArrowFunctionExpression"))==null?void 0:ud.body;if(Od&&Od.type!=="SequenceExpression"&&Od.type!=="AssignmentExpression"&&ie$4(Od,Md=>Md===Ad))return!0}switch(Id.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(Nd==="superClass"&&(Ad.type==="ArrowFunctionExpression"||Ad.type==="AssignmentExpression"||Ad.type==="AwaitExpression"||Ad.type==="BinaryExpression"||Ad.type==="ConditionalExpression"||Ad.type==="LogicalExpression"||Ad.type==="NewExpression"||Ad.type==="ObjectExpression"||Ad.type==="SequenceExpression"||Ad.type==="TaggedTemplateExpression"||Ad.type==="UnaryExpression"||Ad.type==="UpdateExpression"||Ad.type==="YieldExpression"||Ad.type==="TSNonNullExpression"||Ad.type==="ClassExpression"&&w$2(Ad.decorators)))return!0;break;case"ExportDefaultDeclaration":return li$3(Ra,qa)||Ad.type==="SequenceExpression";case"Decorator":if(Nd==="expression"&&!uc$2(Ad))return!0;break;case"TypeAnnotation":if(Ra.match(void 0,void 0,(Od,Md)=>Md==="returnType"&&Od.type==="ArrowFunctionExpression")&&rc$2(Ad))return!0;break;case"BinaryExpression":if(Nd==="left"&&(Id.operator==="in"||Id.operator==="instanceof")&&Ad.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(Nd==="init"&&Ra.match(void 0,void 0,(Od,Md)=>Md==="declarations"&&Od.type==="VariableDeclaration",(Od,Md)=>Md==="left"&&Od.type==="ForInStatement"))return!0;break}switch(Ad.type){case"UpdateExpression":if(Id.type==="UnaryExpression")return Ad.prefix&&(Ad.operator==="++"&&Id.operator==="+"||Ad.operator==="--"&&Id.operator==="-");case"UnaryExpression":switch(Id.type){case"UnaryExpression":return Ad.operator===Id.operator&&(Ad.operator==="+"||Ad.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return Nd==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return Nd==="callee";case"BinaryExpression":return Nd==="left"&&Id.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(Id.type==="UpdateExpression"||Ad.operator==="in"&&tc$1(Ra))return!0;if(Ad.operator==="|>"&&(dd=Ad.extra)!=null&&dd.parenthesized){let Od=Ra.grandparent;if(Od.type==="BinaryExpression"&&Od.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":cas
\r `),ms$1=Ra=>Ra===""||Ra===x$5||Ra===F$3||Ra===E$5;function cc$1(Ra,qa,nd){var od,ld,ud;let{node:dd}=Ra;if(dd.type==="JSXElement"&&gc$1(dd))return[nd("openingElement"),nd("closingElement")];let pd=dd.type==="JSXElement"?nd("openingElement"):nd("openingFragment"),fd=dd.type==="JSXElement"?nd("closingElement"):nd("closingFragment");if(dd.children.length===1&&dd.children[0].type==="JSXExpressionContainer"&&(dd.children[0].expression.type==="TemplateLiteral"||dd.children[0].expression.type==="TaggedTemplateExpression"))return[pd,...Ra.map(nd,"children"),fd];dd.children=dd.children.map(zd=>Sc(zd)?{type:"JSXText",value:" ",raw:" "}:zd);let md=dd.children.some(X$6),vd=dd.children.filter(zd=>zd.type==="JSXExpressionContainer").length>1,Ad=dd.type==="JSXElement"&&dd.openingElement.attributes.length>1,Nd=ne$5(pd)||md||Ad||vd,Id=Ra.parent.rootMarker==="mdx",Od=qa.singleQuote?"{' '}":'{" "}',Md=Id?" ":b$3([Od,E$5]," "),Ud=((ld=(od=dd.openingElement)==null?void 0:od.name)==null?void 0:ld.name)==="fbt",jd=lc$1(Ra,qa,nd,Md,Ud),Ld=dd.children.some(zd=>pr$2(zd));for(let zd=jd.length-2;zd>=0;zd--){let Xd=jd[zd]===""&&jd[zd+1]==="",gf=jd[zd]===F$3&&jd[zd+1]===""&&jd[zd+2]===F$3,Yd=(jd[zd]===E$5||jd[zd]===F$3)&&jd[zd+1]===""&&jd[zd+2]===Md,Zd=jd[zd]===Md&&jd[zd+1]===""&&(jd[zd+2]===E$5||jd[zd+2]===F$3),df=jd[zd]===Md&&jd[zd+1]===""&&jd[zd+2]===Md,Ef=jd[zd]===E$5&&jd[zd+1]===""&&jd[zd+2]===F$3||jd[zd]===F$3&&jd[zd+1]===""&&jd[zd+2]===E$5;gf&&Ld||Xd||Yd||df||Ef?jd.splice(zd,2):Zd&&jd.splice(zd+1,2)}for(;jd.length>0&&ms$1(O$3(!1,jd,-1));)jd.pop();for(;jd.length>1&&ms$1(jd[0])&&ms$1(jd[1]);)jd.shift(),jd.shift();let Bd=[];for(let[zd,Xd]of jd.entries()){if(Xd===Md){if(zd===1&&jd[zd-1]===""){if(jd.length===2){Bd.push(Od);continue}Bd.push([Od,F$3]);continue}else if(zd===jd.length-1){Bd.push(Od);continue}else if(jd[zd-1]===""&&jd[zd-2]===F$3){Bd.push(Od);continue}}Bd.push(Xd),ne$5(Xd)&&(Nd=!0)}let Gd=Ld?qt$4(Bd):l$2(Bd,{shouldBreak:!0});if(((ud=qa.cursorNode)==null?void 0:ud.type)==="JSXText"&&dd.children.includes(qa.cursorNode)&&(Gd=[Un$3,Gd,Un$3]),Id)return Gd;let qd=l$2([pd,f$2([F$3,Gd]),F$3,fd]);return Nd?qd:ze$5([l$2([pd,...jd,fd]),qd])}function lc$1(Ra,qa,nd,od,ld){let ud=[];return Ra.each(({node:dd,next:pd})=>{if(dd.type==="JSXText"){let fd=fe$6(dd);if(pr$2(dd)){let md=Nr$2.split(fd,!0);md[0]===""&&(ud.push(""),md.shift(),/\n/u.test(md[0])?ud.push(fi$3(ld,md[1],dd,pd)):ud.push(od),md.shift());let vd;if(O$3(!1,md,-1)===""&&(md.pop(),vd=md.pop()),md.length===0)return;for(let[Ad,Nd]of md.entries())Ad%2===1?ud.push(x$5):ud.push(Nd);vd!==void 0?/\n/u.test(vd)?ud.push(fi$3(ld,O$3(!1,ud,-1),dd,pd)):ud.push(od):ud.push(Di$2(ld,O$3(!1,ud,-1),dd,pd))}else/\n/u.test(fd)?fd.match(/\n/gu).length>1&&ud.push("",F$3):ud.push("",od)}else{let fd=nd();if(ud.push(fd),pd&&pr$2(pd)){let md=Nr$2.trim(fe$6(pd)),[vd]=Nr$2.split(md);ud.push(Di$2(ld,vd,dd,pd))}else ud.push(F$3)}},"children"),ud}function Di$2(Ra,qa,nd,od){return Ra?"":nd.type==="JSXElement"&&!nd.closingElement||(od==null?void 0:od.type)==="JSXElement"&&!od.closingElement?qa.length===1?E$5:F$3:E$5}function fi$3(Ra,qa,nd,od){return Ra?F$3:qa.length===1?nd.type==="JSXElement"&&!nd.closingElement||(od==null?void 0:od.type)==="JSXElement"&&!od.closingElement?F$3:E$5:F$3}var mc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function yc$1(Ra,qa,nd){let{parent:od}=Ra;if(mc.has(od.type))return qa;let ld=Ra.match(void 0,dd=>dd.type==="ArrowFunctionExpression",L$6,dd=>dd.type==="JSXExpressionContainer"),ud=Be$6(Ra,nd);return l$2([ud?"":b$3("("),f$2([E$5,qa]),E$5,ud?"":b$3(")")],{shouldBreak:ld})}function Dc(Ra,qa,nd){let{node:od}=Ra,ld=[];if(ld.push(nd("name")),od.value){let ud;if(Q$6(od.value)){let dd=fe$6(od.value),pd=N$6(!1,N$6(!1,dd.slice(1,-1),"&apos;","'"),"&quot;",'"'),fd=xr$2(pd,qa.jsxSingleQuote);pd=fd==='"'?N$6(!1,pd,'"',"&quot;"):N$6(!1,pd,"'","&apos;"),ud=Ra.call(()=>ye$5(Ra,Ie$4(fd+pd+fd),qa),"value")}else ud=nd("value");ld.pu
`)&&!dd&&!d$2(ud.attributes[0]))return l$2(["<",nd("name"),ud.typeArguments?nd("typeArguments"):nd("typeParameters")," ",...Ra.map(nd,"attributes"),ud.selfClosing?" />":">"]);let pd=(ld=ud.attributes)==null?void 0:ld.some(md=>Q$6(md.value)&&md.value.value.includes(`
`)),fd=qa.singleAttributePerLine&&ud.attributes.length>1?F$3:x$5;return l$2(["<",nd("name"),ud.typeArguments?nd("typeArguments"):nd("typeParameters"),f$2(Ra.map(()=>[fd,nd()],"attributes")),...Fc$1(ud,qa,dd)],{shouldBreak:pd})}function Fc$1(Ra,qa,nd){return Ra.selfClosing?[x$5,"/>"]:Cc(Ra,qa,nd)?[">"]:[E$5,">"]}function Cc(Ra,qa,nd){let od=Ra.attributes.length>0&&d$2(O$3(!1,Ra.attributes,-1),g$4.Trailing);return Ra.attributes.length===0&&!nd||(qa.bracketSameLine||qa.jsxBracketSameLine)&&(!nd||Ra.attributes.length>0)&&!od}function Ac(Ra,qa,nd){let{node:od}=Ra,ld=[];ld.push("</");let ud=nd("name");return d$2(od.name,g$4.Leading|g$4.Line)?ld.push(f$2([F$3,ud]),F$3):d$2(od.name,g$4.Leading|g$4.Block)?ld.push(" ",ud):ld.push(ud),ld.push(">"),ld}function Tc(Ra,qa){let{node:nd}=Ra,od=d$2(nd),ld=d$2(nd,g$4.Line),ud=nd.type==="JSXOpeningFragment";return[ud?"<":"</",f$2([ld?F$3:od&&!ud?" ":"",M$6(Ra,qa)]),ld?F$3:"",">"]}function dc$1(Ra,qa,nd){let od=ye$5(Ra,cc$1(Ra,qa,nd),qa);return yc$1(Ra,od,qa)}function xc$1(Ra,qa){let{node:nd}=Ra,od=d$2(nd,g$4.Line);return[M$6(Ra,qa,{indent:od}),od?F$3:""]}function hc(Ra,qa,nd){let{node:od}=Ra;return["{",Ra.call(({node:ld})=>{let ud=["...",nd()];return!d$2(ld)||!zn$3(Ra)?ud:[f$2([E$5,ye$5(Ra,ud,qa)]),E$5]},od.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ei$1(Ra,qa,nd){let{node:od}=Ra;if(od.type.startsWith("JSX"))switch(od.type){case"JSXAttribute":return Dc(Ra,qa,nd);case"JSXIdentifier":return od.name;case"JSXNamespacedName":return P$6(":",[nd("namespace"),nd("name")]);case"JSXMemberExpression":return P$6(".",[nd("object"),nd("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hc(Ra,qa,nd);case"JSXExpressionContainer":return fc(Ra,qa,nd);case"JSXFragment":case"JSXElement":return dc$1(Ra,qa,nd);case"JSXOpeningElement":return Ec$1(Ra,qa,nd);case"JSXClosingElement":return Ac(Ra,qa,nd);case"JSXOpeningFragment":case"JSXClosingFragment":return Tc(Ra,qa);case"JSXEmptyExpression":return xc$1(Ra,qa);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me$5(od,"JSX")}}function gc$1(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$2(qa)}function pr$2(Ra){return Ra.type==="JSXText"&&(Nr$2.hasNonWhitespaceCharacter(fe$6(Ra))||!/\n/u.test(fe$6(Ra)))}function Sc(Ra){return Ra.type==="JSXExpressionContainer"&&Q$6(Ra.expression)&&Ra.expression.value===" "&&!d$2(Ra.expression)}function Fi$1(Ra){let{node:qa,parent:nd}=Ra;if(!X$6(qa)||!X$6(nd))return!1;let{index:od,siblings:ld}=Ra,ud;for(let dd=od;dd>0;dd--){let pd=ld[dd-1];if(!(pd.type==="JSXText"&&!pr$2(pd))){ud=pd;break}}return(ud==null?void 0:ud.type)==="JSXExpressionContainer"&&ud.expression.type==="JSXEmptyExpression"&&Bt$4(ud.expression)}function Bc(Ra){return Bt$4(Ra.node)||Fi$1(Ra)}var Xr$2=Bc,bc$1=0;function Yr$2(Ra,qa,nd){var od;let{node:ld,parent:ud,grandparent:dd,key:pd}=Ra,fd=pd!=="body"&&(ud.type==="IfStatement"||ud.type==="WhileStatement"||ud.type==="SwitchStatement"||ud.type==="DoWhileStatement"),md=ld.operator==="|>"&&((od=Ra.root.extra)==null?void 0:od.__isUsingHackPipeline),vd=ys$1(Ra,nd,qa,!1,fd);if(fd)return vd;if(md)return l$2(vd);if(L$6(ud)&&ud.callee===ld||ud.type==="UnaryExpression"||q$6(ud)&&!ud.computed)return l$2([f$2([E$5,...vd]),E$5]);let Ad=ud.type==="ReturnStatement"||ud.type==="ThrowStatement"||ud.type==="JSXExpressionContainer"&&dd.type==="JSXAttribute"||ld.operator!=="|"&&ud.type==="JsExpressionRoot"||ld.type!=="NGPipeExpression"&&(ud.type==="NGRoot"&&qa.parser==="__ng_binding"||ud.type==="NGMicrosyntaxExpression"&&dd.type==="NGMicrosyntax"&&dd.body.length===1)||ld===ud.body&&ud.type==="ArrowFunctionExpression"||ld!==ud.body&&ud.type==="ForStatement"||ud.type==="ConditionalExpression"&&dd.type!=="ReturnStatement"&&dd.type!=="ThrowStatement"&&!L$6(dd)||ud.type==="TemplateLiteral",Nd=ud.type==="AssignmentExpression"||ud.type==="VariableDeclarator"||ud.type==="ClassProperty"||ud.type==="PropertyDefinition"||ud.type==="TSAbstractPropertyDefinition"||ud.type==="ClassPrivateProperty"
`).split(`
`),_f=0,xf=Ef.length,vf;++_f<xf;)vf=Ef[_f],vf!==""&&(Ef[_f]=Xd+vf);return"[^"+(df.label||df.identifier)+"]: "+Ef.join(`
`)}}function Bd(qd,zd,Xd){qd.splice(qd.indexOf(zd),0,Xd)}function Gd(qd,zd,Xd,gf){for(var Yd=qd.length,Zd=-1;++Zd<Yd;)if(zd[qd[Zd][0]].apply(Xd,gf))return!0;return!1}}),Bt$3=C$3(Ra=>{Ra.isRemarkParser=qa,Ra.isRemarkCompiler=nd;function qa(od){return!!(od&&od.prototype&&od.prototype.blockTokenizers)}function nd(od){return!!(od&&od.prototype&&od.prototype.visitors)}}),Mi=C$3((Ra,qa)=>{var nd=Bt$3();qa.exports=Ad;var od=9,ld=32,ud=36,dd=48,pd=57,fd=92,md=["math","math-inline"],vd="math-display";function Ad(Od){let Md=this.Parser,Ud=this.Compiler;nd.isRemarkParser(Md)&&Nd(Md,Od),nd.isRemarkCompiler(Ud)&&Id(Ud)}function Nd(Od,Md){let Ud=Od.prototype,jd=Ud.inlineMethods;Bd.locator=Ld,Ud.inlineTokenizers.math=Bd,jd.splice(jd.indexOf("text"),0,"math");function Ld(Gd,qd){return Gd.indexOf("$",qd)}function Bd(Gd,qd,zd){let Xd=qd.length,gf=!1,Yd=!1,Zd=0,df,Ef,_f,xf,vf,Af,Df;if(qd.charCodeAt(Zd)===fd&&(Yd=!0,Zd++),qd.charCodeAt(Zd)===ud){if(Zd++,Yd)return zd?!0:Gd(qd.slice(0,Zd))({type:"text",value:"$"});if(qd.charCodeAt(Zd)===ud&&(gf=!0,Zd++),_f=qd.charCodeAt(Zd),!(_f===ld||_f===od)){for(xf=Zd;Zd<Xd;){if(Ef=_f,_f=qd.charCodeAt(Zd+1),Ef===ud){if(df=qd.charCodeAt(Zd-1),df!==ld&&df!==od&&(_f!==_f||_f<dd||_f>pd)&&(!gf||_f===ud)){vf=Zd-1,Zd++,gf&&Zd++,Af=Zd;break}}else Ef===fd&&(Zd++,_f=qd.charCodeAt(Zd+1));Zd++}if(Af!==void 0)return zd?!0:(Df=qd.slice(xf,vf+1),Gd(qd.slice(0,Af))({type:"inlineMath",value:Df,data:{hName:"span",hProperties:{className:md.concat(gf&&Md.inlineMathDouble?[vd]:[])},hChildren:[{type:"text",value:Df}]}}))}}}}function Id(Od){let Md=Od.prototype;Md.visitors.inlineMath=Ud;function Ud(jd){let Ld="$";return(jd.data&&jd.data.hProperties&&jd.data.hProperties.className||[]).includes(vd)&&(Ld="$$"),Ld+jd.value+Ld}}}),$i=C$3((Ra,qa)=>{var nd=Bt$3();qa.exports=vd;var od=10,ld=32,ud=36,dd=`
`,pd="$",fd=2,md=["math","math-display"];function vd(){let Id=this.Parser,Od=this.Compiler;nd.isRemarkParser(Id)&&Ad(Id),nd.isRemarkCompiler(Od)&&Nd(Od)}function Ad(Id){let Od=Id.prototype,Md=Od.blockMethods,Ud=Od.interruptParagraph,jd=Od.interruptList,Ld=Od.interruptBlockquote;Od.blockTokenizers.math=Bd,Md.splice(Md.indexOf("fencedCode")+1,0,"math"),Ud.splice(Ud.indexOf("fencedCode")+1,0,["math"]),jd.splice(jd.indexOf("fencedCode")+1,0,["math"]),Ld.splice(Ld.indexOf("fencedCode")+1,0,["math"]);function Bd(Gd,qd,zd){var Xd=qd.length,gf=0;let Yd,Zd,df,Ef,_f,xf,vf,Af,Df,jf,Jf;for(;gf<Xd&&qd.charCodeAt(gf)===ld;)gf++;for(_f=gf;gf<Xd&&qd.charCodeAt(gf)===ud;)gf++;if(xf=gf-_f,!(xf<fd)){for(;gf<Xd&&qd.charCodeAt(gf)===ld;)gf++;for(vf=gf;gf<Xd;){if(Yd=qd.charCodeAt(gf),Yd===ud)return;if(Yd===od)break;gf++}if(qd.charCodeAt(gf)===od){if(zd)return!0;for(Zd=[],vf!==gf&&Zd.push(qd.slice(vf,gf)),gf++,df=qd.indexOf(dd,gf+1),df=df===-1?Xd:df;gf<Xd;){for(Af=!1,jf=gf,Jf=df,Ef=df,Df=0;Ef>jf&&qd.charCodeAt(Ef-1)===ld;)Ef--;for(;Ef>jf&&qd.charCodeAt(Ef-1)===ud;)Df++,Ef--;for(xf<=Df&&qd.indexOf(pd,jf)===Ef&&(Af=!0,Jf=Ef);jf<=Jf&&jf-gf<_f&&qd.charCodeAt(jf)===ld;)jf++;if(Af)for(;Jf>jf&&qd.charCodeAt(Jf-1)===ld;)Jf--;if((!Af||jf!==Jf)&&Zd.push(qd.slice(jf,Jf)),Af)break;gf=df+1,df=qd.indexOf(dd,gf+1),df=df===-1?Xd:df}return Zd=Zd.join(`
`),Gd(qd.slice(0,df))({type:"math",value:Zd,data:{hName:"div",hProperties:{className:md.concat()},hChildren:[{type:"text",value:Zd}]}})}}}}function Nd(Id){let Od=Id.prototype;Od.visitors.math=Md;function Md(Ud){return`$$
`+Ud.value+`
$$`}}}),Wi=C$3((Ra,qa)=>{var nd=Mi(),od=$i();qa.exports=ld;function ld(ud){var dd=ud||{};od.call(this,dd),nd.call(this,dd)}}),Ie$3=C$3((Ra,qa)=>{qa.exports=od;var nd=Object.prototype.hasOwnProperty;function od(){for(var ld={},ud=0;ud<arguments.length;ud++){var dd=arguments[ud];for(var pd in dd)nd.call(dd,pd)&&(ld[pd]=dd[pd])}return ld}}),Ji$1=C$3((Ra,qa)=>{typeof Object.create=="function"?qa.exports=function(nd,od){od&&(nd.super_=od,nd.prototype=Object.create(od.prototype,{constructor:{value:nd,enumerable:!1,writable:!0,configurable:!0}}))}:qa.exports=function(nd,od){if(od){nd.super_=od;var ld=function(){};ld.prototype=od.prototype,nd.prototype=new ld,nd.prototype.constructor=nd}}}),Zi=C$3((Ra,qa)=>{var nd=Ie$3(),od=Ji$1();qa.exports=ld;function ld(ud){var dd,pd,fd;od(vd,ud),od(md,vd),dd=vd.prototype;for(pd in dd)fd=dd[pd],fd&&typeof fd=="object"&&(dd[pd]="concat"in fd?fd.concat():nd(fd));return vd;function md(Ad){return ud.apply(this,Ad)}function vd(){return this instanceof vd?ud.apply(this,arguments):new md(arguments)}}}),ru$1=C$3((Ra,qa)=>{qa.exports=nd;function nd(od,ld,ud){return dd;function dd(){var pd=ud||this,fd=pd[od];return pd[od]=!ld,md;function md(){pd[od]=fd}}}}),nu$2=C$3((Ra,qa)=>{qa.exports=nd;function nd(od){for(var ld=String(od),ud=[],dd=/\r?\n|\r/g;dd.exec(ld);)ud.push(dd.lastIndex);return ud.push(ld.length+1),{toPoint:pd,toPosition:pd,toOffset:fd};function pd(md){var vd=-1;if(md>-1&&md<ud[ud.length-1]){for(;++vd<ud.length;)if(ud[vd]>md)return{line:vd+1,column:md-(ud[vd-1]||0)+1,offset:md}}return{}}function fd(md){var vd=md&&md.line,Ad=md&&md.column,Nd;return!isNaN(vd)&&!isNaN(Ad)&&vd-1 in ud&&(Nd=(ud[vd-2]||0)+Ad-1||0),Nd>-1&&Nd<ud[ud.length-1]?Nd:-1}}}),uu$2=C$3((Ra,qa)=>{qa.exports=od;var nd="\\";function od(ld,ud){return dd;function dd(pd){for(var fd=0,md=pd.indexOf(nd),vd=ld[ud],Ad=[],Nd;md!==-1;)Ad.push(pd.slice(fd,md)),fd=md+1,Nd=pd.charAt(fd),(!Nd||vd.indexOf(Nd)===-1)&&Ad.push(nd),md=pd.indexOf(nd,fd+1);return Ad.push(pd.slice(fd)),Ad.join("")}}}),au$2=C$3((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$1=C$3((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$3=C$3((Ra,qa)=>{qa.exports=nd;function nd(od){var ld=typeof od=="string"?od.charCodeAt(0):od;return ld>=48&&ld<=57}}),lu$1=C$3((Ra,qa)=>{qa.exports=nd;function nd(od){var ld=typeof od=="string"?od.charCodeAt(0):od;return ld>=97&&ld<=102||ld>=65&&ld<=70||ld>=48&&ld<=57}}),Ve$3=C$3((Ra,qa)=>{qa.exports=nd;function nd(od){var ld=typeof od=="string"?od.charCodeAt(0):od;return ld>=97&&ld<=122||ld>=65&&ld<=90}}),pu$1=C$3((Ra,qa)=>{var nd=Ve$3(),od=Ne$3();qa.exports=ld;function ld(ud){return nd(ud)||od(ud)}}),du$1=C$3((Ra,qa)=>{qa.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"<22>
`,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:"
`);Df!==-1;)Md++,Af=Df,Df=vf.indexOf(`
`,Df+1);Af===-1?Ud+=vf.length:Ud=vf.length-Af,Md in Ad&&(Af!==-1?Ud+=Ad[Md]:Ud<=Ad[Md]&&(Ud=Ad[Md]+1))}function gf(){var vf=[],Af=Md+1;return function(){for(var Df=Md+1;Af<Df;)vf.push((Ad[Af]||0)+1),Af++;return vf}}function Yd(){var vf={line:Md,column:Ud};return vf.offset=vd.toOffset(vf),vf}function Zd(vf){this.start=vf,this.end=Yd()}function df(vf){fd.slice(0,vf.length)!==vf&&vd.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),Yd())}function Ef(){var vf=Yd();return Af;function Af(Df,jf){var Jf=Df.position,eh=Jf?Jf.start:vf,th=[],Uf=Jf&&Jf.end.line,Of=vf.line;if(Df.position=new Zd(eh),Jf&&jf&&Jf.indent){if(th=Jf.indent,Uf<Of){for(;++Uf<Of;)th.push((Ad[Uf]||0)+1);th.push(vf.column)}jf=th.concat(jf)}return Df.position.indent=jf||[],Df}}function _f(vf,Af){var Df=Af?Af.children:Nd,jf=Df[Df.length-1],Jf;return jf&&vf.type===jf.type&&(vf.type==="text"||vf.type==="blockquote")&&od(jf)&&od(vf)&&(Jf=vf.type==="text"?ld:ud,vf=Jf.call(vd,jf,vf)),vf!==jf&&Df.push(vf),vd.atStart&&Nd.length!==0&&vd.exitStart(),vf}function xf(vf){var Af=gf(),Df=Ef(),jf=Yd();return df(vf),Jf.reset=eh,eh.test=th,Jf.test=th,fd=fd.slice(vf.length),Xd(vf),Af=Af(),Jf;function Jf(Uf,Of){return Df(_f(Df(Uf),Of),Af)}function eh(){var Uf=Jf.apply(null,arguments);return Md=jf.line,Ud=jf.column,fd=vf+fd,Uf}function th(){var Uf=Df({});return Md=jf.line,Ud=jf.column,fd=vf+fd,Uf.position}}}}function od(dd){var pd,fd;return dd.type!=="text"||!dd.position?!0:(pd=dd.position.start,fd=dd.position.end,pd.line!==fd.line||fd.column-pd.column===dd.value.length)}function ld(dd,pd){return dd.value+=pd.value,dd}function ud(dd,pd){return this.options.commonmark||this.options.gfm?pd:(dd.children=dd.children.concat(pd.children),dd)}}),Uu$2=C$3((Ra,qa)=>{qa.exports=ud;var nd=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],od=nd.concat(["~","|"]),ld=od.concat([`
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);ud.default=nd,ud.gfm=od,ud.commonmark=ld;function ud(dd){var pd=dd||{};return pd.commonmark?ld:pd.gfm?od:nd}}),Mu$1=C$3((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$3((Ra,qa)=>{qa.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Mu$1()}}),Vu$2=C$3((Ra,qa)=>{var nd=Ie$3(),od=Uu$2(),ld=Rt$3();qa.exports=ud;function ud(dd){var pd=this,fd=pd.options,md,vd;if(dd==null)dd={};else if(typeof dd=="object")dd=nd(dd);else throw new Error("Invalid value `"+dd+"` for setting `options`");for(md in ld){if(vd=dd[md],vd==null&&(vd=fd[md]),md!=="blocks"&&typeof vd!="boolean"||md==="blocks"&&typeof vd!="object")throw new Error("Invalid value `"+vd+"` for setting `options."+md+"`");dd[md]=vd}return pd.options=dd,pd.escape=od(dd),pd}}),Hu$2=C$3((Ra,qa)=>{qa.exports=nd;function nd(pd){if(pd==null)return dd;if(typeof pd=="string")return ud(pd);if(typeof pd=="object")return"length"in pd?ld(pd):od(pd);if(typeof pd=="function")return pd;throw new Error("Expected function, string, or object as test")}function od(pd){return fd;function fd(md){var vd;for(vd in pd)if(md[vd]!==pd[vd])return!1;return!0}}function ld(pd){for(var fd=[],md=-1;++md<pd.length;)fd[md]=nd(pd[md]);return vd;function vd(){for(var Ad=-1;++Ad<fd.length;)if(fd[Ad].apply(this,arguments))return!0;return!1}}function ud(pd){return fd;function fd(md){return!!(md&&md.type===pd)}}function dd(){return!0}}),Ku$2=C$3((Ra,qa)=>{qa.exports=nd;function nd(od){return od}}),Zu$2=C$3((Ra,qa)=>{qa.exports=pd;var nd=Hu$2(),od=Ku$2(),ld=!0,ud="skip",dd=!1;pd.CONTINUE=ld,pd.SKIP=ud,pd.EXIT=dd;function pd(md,vd,Ad,Nd){var Id,Od;typeof vd=="function"&&typeof Ad!="function"&&(Nd=Ad,Ad=vd,vd=null),Od=nd(vd),Id=Nd?-1:1,Md(md,null,[])();function Md(Ud,jd,Ld){var Bd=typeof Ud=="object"&&Ud!==null?Ud:{},Gd;return typeof Bd.type=="string"&&(Gd=typeof Bd.tagName=="string"?Bd.tagName:typeof Bd.name=="string"?Bd.name:void 0,qd.displayName="node ("+od(Bd.type+(Gd?"<"+Gd+">":""))+")"),qd;function qd(){var zd=Ld.concat(Ud),Xd=[],gf,Yd;if((!vd||Od(Ud,jd,Ld[Ld.length-1]||null))&&(Xd=fd(Ad(Ud,Ld)),Xd[0]===dd))return Xd;if(Ud.children&&Xd[0]!==ud)for(Yd=(Nd?Ud.children.length:-1)+Id;Yd>-1&&Yd<Ud.children.length;){if(gf=Md(Ud.children[Yd],Yd,zd)(),gf[0]===dd)return gf;Yd=typeof gf[1]=="number"?gf[1]:Yd+Id}return Xd}}}function fd(md){return md!==null&&typeof md=="object"&&"length"in md?md:typeof md=="number"?[ld,md]:[md]}}),ra$1=C$3((Ra,qa)=>{qa.exports=dd;var nd=Zu$2(),od=nd.CONTINUE,ld=nd.SKIP,ud=nd.EXIT;dd.CONTINUE=od,dd.SKIP=ld,dd.EXIT=ud;function dd(pd,fd,md,vd){typeof fd=="function"&&typeof md!="function"&&(vd=md,md=fd,fd=null),nd(pd,fd,Ad,vd);function Ad(Nd,Id){var Od=Id[Id.length-1],Md=Od?Od.children.indexOf(Nd):null;return md(Nd,Md,Od)}}}),na=C$3((Ra,qa)=>{var nd=ra$1();qa.exports=od;function od(dd,pd){return nd(dd,pd?ld:ud),dd}function ld(dd){delete dd.position}function ud(dd){dd.position=void 0}}),aa$2=C$3((Ra,qa)=>{var nd=Ie$3(),od=na();qa.exports=dd;var ld=`
`,ud=/\r\n|\r/g;function dd(){var pd=this,fd=String(pd.file),md={line:1,column:1,offset:0},vd=nd(md),Ad;return fd=fd.replace(ud,ld),fd.charCodeAt(0)===65279&&(fd=fd.slice(1),vd.column++,vd.offset++),Ad={type:"root",children:pd.tokenizeBlock(fd,vd),position:{start:md,end:pd.eof||nd(md)}},pd.options.position||od(Ad,!0),Ad}}),sa=C$3((Ra,qa)=>{var nd=/^[ \t]*(\n|$)/;qa.exports=od;function od(ld,ud,dd){for(var pd,fd="",md=0,vd=ud.length;md<vd&&(pd=nd.exec(ud.slice(md)),pd!=null);)md+=pd[0].length,fd+=pd[0];if(fd!==""){if(dd)return!0;ld(fd)}}}),Hr$2=C$3((Ra,qa)=>{var nd="",od;qa.exports=ld;function ld(ud,dd){if(typeof ud!="string")throw new TypeError("expected a string");if(dd===1)return ud;if(dd===2)return ud+ud;var pd=ud.length*dd;if(od!==ud||typeof od>"u")od=ud,nd="";else if(nd.length>=pd)return nd.substr(0,pd);for(;pd>nd.length&&dd>1;)dd&1&&(nd+=ud),dd>>=1,ud+=ud;return nd+=ud,nd=nd.substr(0,pd),nd}}),Mt$3=C$3((Ra,qa)=>{qa.exports=nd;function nd(od){return String(od).replace(/\n+$/,"")}}),pa=C$3((Ra,qa)=>{var nd=Hr$2(),od=Mt$3();qa.exports=md;var ld=`
`,ud=" ",dd=" ",pd=4,fd=nd(dd,pd);function md(vd,Ad,Nd){for(var Id=-1,Od=Ad.length,Md="",Ud="",jd="",Ld="",Bd,Gd,qd;++Id<Od;)if(Bd=Ad.charAt(Id),qd)if(qd=!1,Md+=jd,Ud+=Ld,jd="",Ld="",Bd===ld)jd=Bd,Ld=Bd;else for(Md+=Bd,Ud+=Bd;++Id<Od;){if(Bd=Ad.charAt(Id),!Bd||Bd===ld){Ld=Bd,jd=Bd;break}Md+=Bd,Ud+=Bd}else if(Bd===dd&&Ad.charAt(Id+1)===Bd&&Ad.charAt(Id+2)===Bd&&Ad.charAt(Id+3)===Bd)jd+=fd,Id+=3,qd=!0;else if(Bd===ud)jd+=Bd,qd=!0;else{for(Gd="";Bd===ud||Bd===dd;)Gd+=Bd,Bd=Ad.charAt(++Id);if(Bd!==ld)break;jd+=Gd+Bd,Ld+=Bd}if(Ud)return Nd?!0:vd(Md)({type:"code",lang:null,meta:null,value:od(Ud)})}}),ma=C$3((Ra,qa)=>{qa.exports=md;var nd=`
`,od=" ",ld=" ",ud="~",dd="`",pd=3,fd=4;function md(vd,Ad,Nd){var Id=this,Od=Id.options.gfm,Md=Ad.length+1,Ud=0,jd="",Ld,Bd,Gd,qd,zd,Xd,gf,Yd,Zd,df,Ef,_f,xf;if(Od){for(;Ud<Md&&(Gd=Ad.charAt(Ud),!(Gd!==ld&&Gd!==od));)jd+=Gd,Ud++;if(_f=Ud,Gd=Ad.charAt(Ud),!(Gd!==ud&&Gd!==dd)){for(Ud++,Bd=Gd,Ld=1,jd+=Gd;Ud<Md&&(Gd=Ad.charAt(Ud),Gd===Bd);)jd+=Gd,Ld++,Ud++;if(!(Ld<pd)){for(;Ud<Md&&(Gd=Ad.charAt(Ud),!(Gd!==ld&&Gd!==od));)jd+=Gd,Ud++;for(qd="",gf="";Ud<Md&&(Gd=Ad.charAt(Ud),!(Gd===nd||Bd===dd&&Gd===Bd));)Gd===ld||Gd===od?gf+=Gd:(qd+=gf+Gd,gf=""),Ud++;if(Gd=Ad.charAt(Ud),!(Gd&&Gd!==nd)){if(Nd)return!0;xf=vd.now(),xf.column+=jd.length,xf.offset+=jd.length,jd+=qd,qd=Id.decode.raw(Id.unescape(qd),xf),gf&&(jd+=gf),gf="",df="",Ef="",Yd="",Zd="";for(var vf=!0;Ud<Md;){if(Gd=Ad.charAt(Ud),Yd+=df,Zd+=Ef,df="",Ef="",Gd!==nd){Yd+=Gd,Ef+=Gd,Ud++;continue}for(vf?(jd+=Gd,vf=!1):(df+=Gd,Ef+=Gd),gf="",Ud++;Ud<Md&&(Gd=Ad.charAt(Ud),Gd===ld);)gf+=Gd,Ud++;if(df+=gf,Ef+=gf.slice(_f),!(gf.length>=fd)){for(gf="";Ud<Md&&(Gd=Ad.charAt(Ud),Gd===Bd);)gf+=Gd,Ud++;if(df+=gf,Ef+=gf,!(gf.length<Ld)){for(gf="";Ud<Md&&(Gd=Ad.charAt(Ud),!(Gd!==ld&&Gd!==od));)df+=Gd,Ef+=Gd,Ud++;if(!Gd||Gd===nd)break}}}for(jd+=Yd+df,Ud=-1,Md=qd.length;++Ud<Md;)if(Gd=qd.charAt(Ud),Gd===ld||Gd===od)zd||(zd=qd.slice(0,Ud));else if(zd){Xd=qd.slice(Ud);break}return vd(jd)({type:"code",lang:zd||qd||null,meta:Xd||null,value:Zd})}}}}}}),Re$5=C$3((Ra,qa)=>{Ra=qa.exports=nd;function nd(od){return od.trim?od.trim():Ra.right(Ra.left(od))}Ra.left=function(od){return od.trimLeft?od.trimLeft():od.replace(/^\s\s*/,"")},Ra.right=function(od){if(od.trimRight)return od.trimRight();for(var ld=/\s/,ud=od.length;ld.test(od.charAt(--ud)););return od.slice(0,ud+1)}}),Kr$2=C$3((Ra,qa)=>{qa.exports=nd;function nd(od,ld,ud,dd){for(var pd=od.length,fd=-1,md,vd;++fd<pd;)if(md=od[fd],vd=md[1]||{},!(vd.pedantic!==void 0&&vd.pedantic!==ud.options.pedantic)&&!(vd.commonmark!==void 0&&vd.commonmark!==ud.options.commonmark)&&ld[md[0]].apply(ud,dd))return!0;return!1}}),ba$1=C$3((Ra,qa)=>{var nd=Re$5(),od=Kr$2();qa.exports=fd;var ld=`
`,ud=" ",dd=" ",pd=">";function fd(md,vd,Ad){for(var Nd=this,Id=Nd.offset,Od=Nd.blockTokenizers,Md=Nd.interruptBlockquote,Ud=md.now(),jd=Ud.line,Ld=vd.length,Bd=[],Gd=[],qd=[],zd,Xd=0,gf,Yd,Zd,df,Ef,_f,xf,vf;Xd<Ld&&(gf=vd.charAt(Xd),!(gf!==dd&&gf!==ud));)Xd++;if(vd.charAt(Xd)===pd){if(Ad)return!0;for(Xd=0;Xd<Ld;){for(Zd=vd.indexOf(ld,Xd),_f=Xd,xf=!1,Zd===-1&&(Zd=Ld);Xd<Ld&&(gf=vd.charAt(Xd),!(gf!==dd&&gf!==ud));)Xd++;if(vd.charAt(Xd)===pd?(Xd++,xf=!0,vd.charAt(Xd)===dd&&Xd++):Xd=_f,df=vd.slice(Xd,Zd),!xf&&!nd(df)){Xd=_f;break}if(!xf&&(Yd=vd.slice(Xd),od(Md,Od,Nd,[md,Yd,!0])))break;Ef=_f===Xd?df:vd.slice(_f,Zd),qd.push(Xd-_f),Bd.push(Ef),Gd.push(df),Xd=Zd+1}for(Xd=-1,Ld=qd.length,zd=md(Bd.join(ld));++Xd<Ld;)Id[jd]=(Id[jd]||0)+qd[Xd],jd++;return vf=Nd.enterBlock(),Gd=Nd.tokenizeBlock(Gd.join(ld),Ud),vf(),zd({type:"blockquote",children:Gd})}}}),xa$1=C$3((Ra,qa)=>{qa.exports=pd;var nd=`
`,od=" ",ld=" ",ud="#",dd=6;function pd(fd,md,vd){for(var Ad=this,Nd=Ad.options.pedantic,Id=md.length+1,Od=-1,Md=fd.now(),Ud="",jd="",Ld,Bd,Gd;++Od<Id;){if(Ld=md.charAt(Od),Ld!==ld&&Ld!==od){Od--;break}Ud+=Ld}for(Gd=0;++Od<=Id;){if(Ld=md.charAt(Od),Ld!==ud){Od--;break}Ud+=Ld,Gd++}if(!(Gd>dd)&&!(!Gd||!Nd&&md.charAt(Od+1)===ud)){for(Id=md.length+1,Bd="";++Od<Id;){if(Ld=md.charAt(Od),Ld!==ld&&Ld!==od){Od--;break}Bd+=Ld}if(!(!Nd&&Bd.length===0&&Ld&&Ld!==nd)){if(vd)return!0;for(Ud+=Bd,Bd="",jd="";++Od<Id&&(Ld=md.charAt(Od),!(!Ld||Ld===nd));){if(Ld!==ld&&Ld!==od&&Ld!==ud){jd+=Bd+Ld,Bd="";continue}for(;Ld===ld||Ld===od;)Bd+=Ld,Ld=md.charAt(++Od);if(!Nd&&jd&&!Bd&&Ld===ud){jd+=Ld;continue}for(;Ld===ud;)Bd+=Ld,Ld=md.charAt(++Od);for(;Ld===ld||Ld===od;)Bd+=Ld,Ld=md.charAt(++Od);Od--}return Md.column+=Ud.length,Md.offset+=Ud.length,Ud+=jd+Bd,fd(Ud)({type:"heading",depth:Gd,children:Ad.tokenizeInline(jd,Md)})}}}}),Ba=C$3((Ra,qa)=>{qa.exports=md;var nd=" ",od=`
`,ld=" ",ud="*",dd="-",pd="_",fd=3;function md(vd,Ad,Nd){for(var Id=-1,Od=Ad.length+1,Md="",Ud,jd,Ld,Bd;++Id<Od&&(Ud=Ad.charAt(Id),!(Ud!==nd&&Ud!==ld));)Md+=Ud;if(!(Ud!==ud&&Ud!==dd&&Ud!==pd))for(jd=Ud,Md+=Ud,Ld=1,Bd="";++Id<Od;)if(Ud=Ad.charAt(Id),Ud===jd)Ld++,Md+=Bd+jd,Bd="";else if(Ud===ld)Bd+=Ud;else return Ld>=fd&&(!Ud||Ud===od)?(Md+=Bd,Nd?!0:vd(Md)({type:"thematicBreak"})):void 0}}),$t$3=C$3((Ra,qa)=>{qa.exports=dd;var nd=" ",od=" ",ld=1,ud=4;function dd(pd){for(var fd=0,md=0,vd=pd.charAt(fd),Ad={},Nd,Id=0;vd===nd||vd===od;){for(Nd=vd===nd?ud:ld,md+=Nd,Nd>1&&(md=Math.floor(md/Nd)*Nd);Id<md;)Ad[++Id]=fd;vd=pd.charAt(++fd)}return{indent:md,stops:Ad}}}),Oa$1=C$3((Ra,qa)=>{var nd=Re$5(),od=Hr$2(),ld=$t$3();qa.exports=fd;var ud=`
`,dd=" ",pd="!";function fd(md,vd){var Ad=md.split(ud),Nd=Ad.length+1,Id=1/0,Od=[],Md,Ud,jd;for(Ad.unshift(od(dd,vd)+pd);Nd--;)if(Ud=ld(Ad[Nd]),Od[Nd]=Ud.stops,nd(Ad[Nd]).length!==0)if(Ud.indent)Ud.indent>0&&Ud.indent<Id&&(Id=Ud.indent);else{Id=1/0;break}if(Id!==1/0)for(Nd=Ad.length;Nd--;){for(jd=Od[Nd],Md=Id;Md&&!(Md in jd);)Md--;Ad[Nd]=Ad[Nd].slice(jd[Md]+1)}return Ad.shift(),Ad.join(ud)}}),Ua$1=C$3((Ra,qa)=>{var nd=Re$5(),od=Hr$2(),ld=Ne$3(),ud=$t$3(),dd=Oa$1(),pd=Kr$2();qa.exports=gf;var fd="*",md="_",vd="+",Ad="-",Nd=".",Id=" ",Od=`
`,Md=" ",Ud=")",jd="x",Ld=4,Bd=/\n\n(?!\s*$)/,Gd=/^\[([ X\tx])][ \t]/,qd=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,zd=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Xd=/^( {1,4}|\t)?/gm;function gf(Ef,_f,xf){for(var vf=this,Af=vf.options.commonmark,Df=vf.options.pedantic,jf=vf.blockTokenizers,Jf=vf.interruptList,eh=0,th=_f.length,Uf=null,Of,Wf,qf,zf,Tf,Sf,Yf,ih,Th,sh,Nf,ph,Oh,Zf,Rf,Bf,Kf,wh,Ah,mh=!1,im,Bh,Tm,Pm;eh<th&&(zf=_f.charAt(eh),!(zf!==Md&&zf!==Id));)eh++;if(zf=_f.charAt(eh),zf===fd||zf===vd||zf===Ad)Tf=zf,qf=!1;else{for(qf=!0,Wf="";eh<th&&(zf=_f.charAt(eh),!!ld(zf));)Wf+=zf,eh++;if(zf=_f.charAt(eh),!Wf||!(zf===Nd||Af&&zf===Ud)||xf&&Wf!=="1")return;Uf=parseInt(Wf,10),Tf=zf}if(zf=_f.charAt(++eh),!(zf!==Id&&zf!==Md&&(Df||zf!==Od&&zf!==""))){if(xf)return!0;for(eh=0,Zf=[],Rf=[],Bf=[];eh<th;){for(Sf=_f.indexOf(Od,eh),Yf=eh,ih=!1,Pm=!1,Sf===-1&&(Sf=th),Of=0;eh<th;){if(zf=_f.charAt(eh),zf===Md)Of+=Ld-Of%Ld;else if(zf===Id)Of++;else break;eh++}if(Kf&&Of>=Kf.indent&&(Pm=!0),zf=_f.charAt(eh),Th=null,!Pm){if(zf===fd||zf===vd||zf===Ad)Th=zf,eh++,Of++;else{for(Wf="";eh<th&&(zf=_f.charAt(eh),!!ld(zf));)Wf+=zf,eh++;zf=_f.charAt(eh),eh++,Wf&&(zf===Nd||Af&&zf===Ud)&&(Th=zf,Of+=Wf.length+1)}if(Th)if(zf=_f.charAt(eh),zf===Md)Of+=Ld-Of%Ld,eh++;else if(zf===Id){for(Tm=eh+Ld;eh<Tm&&_f.charAt(eh)===Id;)eh++,Of++;eh===Tm&&_f.charAt(eh)===Id&&(eh-=Ld-1,Of-=Ld-1)}else zf!==Od&&zf!==""&&(Th=null)}if(Th){if(!Df&&Tf!==Th)break;ih=!0}else!Af&&!Pm&&_f.charAt(Yf)===Id?Pm=!0:Af&&Kf&&(Pm=Of>=Kf.indent||Of>Ld),ih=!1,eh=Yf;if(Nf=_f.slice(Yf,Sf),sh=Yf===eh?Nf:_f.slice(eh,Sf),(Th===fd||Th===md||Th===Ad)&&jf.thematicBreak.call(vf,Ef,Nf,!0))break;if(ph=Oh,Oh=!ih&&!nd(sh).length,Pm&&Kf)Kf.value=Kf.value.concat(Bf,Nf),Rf=Rf.concat(Bf,Nf),Bf=[];else if(ih)Bf.length!==0&&(mh=!0,Kf.value.push(""),Kf.trail=Bf.concat()),Kf={value:[Nf],indent:Of,trail:[]},Zf.push(Kf),Rf=Rf.concat(Bf,Nf),Bf=[];else if(Oh){if(ph&&!Af)break;Bf.push(Nf)}else{if(ph||pd(Jf,jf,vf,[Ef,Nf,!0]))break;Kf.value=Kf.value.concat(Bf,Nf),Rf=Rf.concat(Bf,Nf),Bf=[]}eh=Sf+1}for(im=Ef(Rf.join(Od)).reset({type:"list",ordered:qf,start:Uf,spread:mh,children:[]}),wh=vf.enterList(),Ah=vf.enterBlock(),eh=-1,th=Zf.length;++eh<th;)Kf=Zf[eh].value.join(Od),Bh=Ef.now(),Ef(Kf)(Yd(vf,Kf,Bh),im),Kf=Zf[eh].trail.join(Od),eh!==th-1&&(Kf+=Od),Ef(Kf);return wh(),Ah(),im}}function Yd(Ef,_f,xf){var vf=Ef.offset,Af=Ef.options.pedantic?Zd:df,Df=null,jf,Jf;return _f=Af.apply(null,arguments),Ef.options.gfm&&(jf=_f.match(Gd),jf&&(Jf=jf[0].length,Df=jf[1].toLowerCase()===jd,vf[xf.line]+=Jf,_f=_f.slice(Jf))),{type:"listItem",spread:Bd.test(_f),checked:Df,children:Ef.tokenizeBlock(_f,xf)}}function Zd(Ef,_f,xf){var vf=Ef.offset,Af=xf.line;return _f=_f.replace(zd,Df),Af=xf.line,_f.replace(Xd,Df);function Df(jf){return vf[Af]=(vf[Af]||0)+jf.length,Af++,""}}function df(Ef,_f,xf){var vf=Ef.offset,Af=xf.line,Df,jf,Jf,eh,th,Uf,Of;for(_f=_f.replace(qd,Wf),eh=_f.split(Od),th=dd(_f,ud(Df).indent).split(Od),th[0]=Jf,vf[Af]=(vf[Af]||0)+jf.length,Af++,Uf=0,Of=eh.length;++Uf<Of;)vf[Af]=(vf[Af]||0)+eh[Uf].length-th[Uf].length,Af++;return th.join(Od);function Wf(qf,zf,Tf,Sf,Yf){return jf=zf+Tf+Sf,Jf=Yf,Number(Tf)<10&&jf.length%2===1&&(Tf=Id+Tf),Df=zf+od(Id,Tf.length)+Sf,Df+Jf}}}),Ga=C$3((Ra,qa)=>{qa.exports=vd;var nd=`
`,od=" ",ld=" ",ud="=",dd="-",pd=3,fd=1,md=2;function vd(Ad,Nd,Id){for(var Od=this,Md=Ad.now(),Ud=Nd.length,jd=-1,Ld="",Bd,Gd,qd,zd,Xd;++jd<Ud;){if(qd=Nd.charAt(jd),qd!==ld||jd>=pd){jd--;break}Ld+=qd}for(Bd="",Gd="";++jd<Ud;){if(qd=Nd.charAt(jd),qd===nd){jd--;break}qd===ld||qd===od?Gd+=qd:(Bd+=Gd+qd,Gd="")}if(Md.column+=Ld.length,Md.offset+=Ld.length,Ld+=Bd+Gd,qd=Nd.charAt(++jd),zd=Nd.charAt(++jd),!(qd!==nd||zd!==ud&&zd!==dd)){for(Ld+=qd,Gd=zd,Xd=zd===ud?fd:md;++jd<Ud;){if(qd=Nd.charAt(jd),qd!==zd){if(qd!==nd)return;jd--;break}Gd+=qd}return Id?!0:Ad(Ld+Gd)({type:"heading",depth:Xd,children:Od.tokenizeInline(Bd,Md)})}}}),Xt$2=C$3(Ra=>{var qa="[a-zA-Z_:][a-zA-Z0-9:._-]*",nd="[^\"'=<>`\\u0000-\\u0020]+",od="'[^']*'",ld='"[^"]*"',ud="(?:"+nd+"|"+od+"|"+ld+")",dd="(?:\\s+"+qa+"(?:\\s*=\\s*"+ud+")?)",pd="<[A-Za-z][A-Za-z0-9\\-]*"+dd+"*\\s*\\/?>",fd="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",md="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",vd="<[?].*?[?]>",Ad="<![A-Za-z]+\\s+[^>]*>",Nd="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";Ra.openCloseTag=new RegExp("^(?:"+pd+"|"+fd+")"),Ra.tag=new RegExp("^(?:"+pd+"|"+fd+"|"+md+"|"+vd+"|"+Ad+"|"+Nd+")")}),Ka=C$3((Ra,qa)=>{var nd=Xt$2().openCloseTag;qa.exports=Bd;var od=" ",ld=" ",ud=`
`,dd="<",pd=/^<(script|pre|style)(?=(\s|>|$))/i,fd=/<\/(script|pre|style)>/i,md=/^<!--/,vd=/-->/,Ad=/^<\?/,Nd=/\?>/,Id=/^<![A-Za-z]/,Od=/>/,Md=/^<!\[CDATA\[/,Ud=/]]>/,jd=/^$/,Ld=new RegExp(nd.source+"\\s*$");function Bd(Gd,qd,zd){for(var Xd=this,gf=Xd.options.blocks.join("|"),Yd=new RegExp("^</?("+gf+")(?=(\\s|/?>|$))","i"),Zd=qd.length,df=0,Ef,_f,xf,vf,Af,Df,jf,Jf=[[pd,fd,!0],[md,vd,!0],[Ad,Nd,!0],[Id,Od,!0],[Md,Ud,!0],[Yd,jd,!0],[Ld,jd,!1]];df<Zd&&(vf=qd.charAt(df),!(vf!==od&&vf!==ld));)df++;if(qd.charAt(df)===dd){for(Ef=qd.indexOf(ud,df+1),Ef=Ef===-1?Zd:Ef,_f=qd.slice(df,Ef),xf=-1,Af=Jf.length;++xf<Af;)if(Jf[xf][0].test(_f)){Df=Jf[xf];break}if(Df){if(zd)return Df[2];if(df=Ef,!Df[1].test(_f))for(;df<Zd;){if(Ef=qd.indexOf(ud,df+1),Ef=Ef===-1?Zd:Ef,_f=qd.slice(df+1,Ef),Df[1].test(_f)){_f&&(df=Ef);break}df=Ef}return jf=qd.slice(0,df),Gd(jf)({type:"html",value:jf})}}}}),ue$4=C$3((Ra,qa)=>{qa.exports=ld;var nd=String.fromCharCode,od=/\s/;function ld(ud){return od.test(typeof ud=="number"?nd(ud):ud.charAt(0))}}),Qt$2=C$3((Ra,qa)=>{var nd=xr$1();qa.exports=od;function od(ld){return nd(ld).toLowerCase()}}),io$1=C$3((Ra,qa)=>{var nd=ue$4(),od=Qt$2();qa.exports=jd;var ld='"',ud="'",dd="\\",pd=`
`,fd=" ",md=" ",vd="[",Ad="]",Nd="(",Id=")",Od=":",Md="<",Ud=">";function jd(Gd,qd,zd){for(var Xd=this,gf=Xd.options.commonmark,Yd=0,Zd=qd.length,df="",Ef,_f,xf,vf,Af,Df,jf,Jf;Yd<Zd&&(vf=qd.charAt(Yd),!(vf!==md&&vf!==fd));)df+=vf,Yd++;if(vf=qd.charAt(Yd),vf===vd){for(Yd++,df+=vf,xf="";Yd<Zd&&(vf=qd.charAt(Yd),vf!==Ad);)vf===dd&&(xf+=vf,Yd++,vf=qd.charAt(Yd)),xf+=vf,Yd++;if(!(!xf||qd.charAt(Yd)!==Ad||qd.charAt(Yd+1)!==Od)){for(Df=xf,df+=xf+Ad+Od,Yd=df.length,xf="";Yd<Zd&&(vf=qd.charAt(Yd),!(vf!==fd&&vf!==md&&vf!==pd));)df+=vf,Yd++;if(vf=qd.charAt(Yd),xf="",Ef=df,vf===Md){for(Yd++;Yd<Zd&&(vf=qd.charAt(Yd),!!Ld(vf));)xf+=vf,Yd++;if(vf=qd.charAt(Yd),vf===Ld.delimiter)df+=Md+xf+vf,Yd++;else{if(gf)return;Yd-=xf.length+1,xf=""}}if(!xf){for(;Yd<Zd&&(vf=qd.charAt(Yd),!!Bd(vf));)xf+=vf,Yd++;df+=xf}if(xf){for(jf=xf,xf="";Yd<Zd&&(vf=qd.charAt(Yd),!(vf!==fd&&vf!==md&&vf!==pd));)xf+=vf,Yd++;if(vf=qd.charAt(Yd),Af=null,vf===ld?Af=ld:vf===ud?Af=ud:vf===Nd&&(Af=Id),!Af)xf="",Yd=df.length;else if(xf){for(df+=xf+vf,Yd=df.length,xf="";Yd<Zd&&(vf=qd.charAt(Yd),vf!==Af);){if(vf===pd){if(Yd++,vf=qd.charAt(Yd),vf===pd||vf===Af)return;xf+=pd}xf+=vf,Yd++}if(vf=qd.charAt(Yd),vf!==Af)return;_f=df,df+=xf+vf,Yd++,Jf=xf,xf=""}else return;for(;Yd<Zd&&(vf=qd.charAt(Yd),!(vf!==fd&&vf!==md));)df+=vf,Yd++;if(vf=qd.charAt(Yd),!vf||vf===pd)return zd?!0:(Ef=Gd(Ef).test().end,jf=Xd.decode.raw(Xd.unescape(jf),Ef,{nonTerminated:!1}),Jf&&(_f=Gd(_f).test().end,Jf=Xd.decode.raw(Xd.unescape(Jf),_f)),Gd(df)({type:"definition",identifier:od(Df),label:Df,title:Jf||null,url:jf}))}}}}function Ld(Gd){return Gd!==Ud&&Gd!==vd&&Gd!==Ad}Ld.delimiter=Ud;function Bd(Gd){return Gd!==vd&&Gd!==Ad&&!nd(Gd)}}),oo$2=C$3((Ra,qa)=>{var nd=ue$4();qa.exports=Md;var od=" ",ld=`
`,ud=" ",dd="-",pd=":",fd="\\",md="|",vd=1,Ad=2,Nd="left",Id="center",Od="right";function Md(Ud,jd,Ld){var Bd=this,Gd,qd,zd,Xd,gf,Yd,Zd,df,Ef,_f,xf,vf,Af,Df,jf,Jf,eh,th,Uf,Of,Wf,qf;if(Bd.options.gfm){for(Gd=0,Jf=0,Yd=jd.length+1,Zd=[];Gd<Yd;){if(Of=jd.indexOf(ld,Gd),Wf=jd.indexOf(md,Gd+1),Of===-1&&(Of=jd.length),Wf===-1||Wf>Of){if(Jf<Ad)return;break}Zd.push(jd.slice(Gd,Of)),Jf++,Gd=Of+1}for(Xd=Zd.join(ld),qd=Zd.splice(1,1)[0]||[],Gd=0,Yd=qd.length,Jf--,zd=!1,xf=[];Gd<Yd;){if(Ef=qd.charAt(Gd),Ef===md){if(_f=null,zd===!1){if(qf===!1)return}else xf.push(zd),zd=!1;qf=!1}else if(Ef===dd)_f=!0,zd=zd||null;else if(Ef===pd)zd===Nd?zd=Id:_f&&zd===null?zd=Od:zd=Nd;else if(!nd(Ef))return;Gd++}if(zd!==!1&&xf.push(zd),!(xf.length<vd)){if(Ld)return!0;for(jf=-1,th=[],Uf=Ud(Xd).reset({type:"table",align:xf,children:th});++jf<Jf;){for(eh=Zd[jf],gf={type:"tableRow",children:[]},jf&&Ud(ld),Ud(eh).reset(gf,Uf),Yd=eh.length+1,Gd=0,df="",vf="",Af=!0;Gd<Yd;){if(Ef=eh.charAt(Gd),Ef===od||Ef===ud){vf?df+=Ef:Ud(Ef),Gd++;continue}Ef===""||Ef===md?Af?Ud(Ef):((vf||Ef)&&!Af&&(Xd=vf,df.length>1&&(Ef?(Xd+=df.slice(0,-1),df=df.charAt(df.length-1)):(Xd+=df,df="")),Df=Ud.now(),Ud(Xd)({type:"tableCell",children:Bd.tokenizeInline(vf,Df)},gf)),Ud(df+Ef),df="",vf=""):(df&&(vf+=df,df=""),vf+=Ef,Ef===fd&&Gd!==Yd-2&&(vf+=eh.charAt(Gd+1),Gd++)),Af=!1,Gd++}jf||Ud(ld+qd)}return Uf}}}}),lo$1=C$3((Ra,qa)=>{var nd=Re$5(),od=Mt$3(),ld=Kr$2();qa.exports=md;var ud=" ",dd=`
`,pd=" ",fd=4;function md(vd,Ad,Nd){for(var Id=this,Od=Id.options,Md=Od.commonmark,Ud=Id.blockTokenizers,jd=Id.interruptParagraph,Ld=Ad.indexOf(dd),Bd=Ad.length,Gd,qd,zd,Xd,gf;Ld<Bd;){if(Ld===-1){Ld=Bd;break}if(Ad.charAt(Ld+1)===dd)break;if(Md){for(Xd=0,Gd=Ld+1;Gd<Bd;){if(zd=Ad.charAt(Gd),zd===ud){Xd=fd;break}else if(zd===pd)Xd++;else break;Gd++}if(Xd>=fd&&zd!==dd){Ld=Ad.indexOf(dd,Ld+1);continue}}if(qd=Ad.slice(Ld+1),ld(jd,Ud,Id,[vd,qd,!0]))break;if(Gd=Ld,Ld=Ad.indexOf(dd,Ld+1),Ld!==-1&&nd(Ad.slice(Gd,Ld))===""){Ld=Gd;break}}return qd=Ad.slice(0,Ld),Nd?!0:(gf=vd.now(),qd=od(qd),vd(qd)({type:"paragraph",children:Id.tokenizeInline(qd,gf)}))}}),Do$1=C$3((Ra,qa)=>{qa.exports=nd;function nd(od,ld){return od.indexOf("\\",ld)}}),Fo$1=C$3((Ra,qa)=>{var nd=Do$1();qa.exports=ud,ud.locator=nd;var od=`
`,ld="\\";function ud(dd,pd,fd){var md=this,vd,Ad;if(pd.charAt(0)===ld&&(vd=pd.charAt(1),md.escape.indexOf(vd)!==-1))return fd?!0:(vd===od?Ad={type:"break"}:Ad={type:"text",value:vd},dd(ld+vd)(Ad))}}),tn$2=C$3((Ra,qa)=>{qa.exports=nd;function nd(od,ld){return od.indexOf("<",ld)}}),yo$1=C$3((Ra,qa)=>{var nd=ue$4(),od=pr$1(),ld=tn$2();qa.exports=Ad,Ad.locator=ld,Ad.notInLink=!0;var ud="<",dd=">",pd="@",fd="/",md="mailto:",vd=md.length;function Ad(Nd,Id,Od){var Md=this,Ud="",jd=Id.length,Ld=0,Bd="",Gd=!1,qd="",zd,Xd,gf,Yd,Zd;if(Id.charAt(0)===ud){for(Ld++,Ud=ud;Ld<jd&&(zd=Id.charAt(Ld),!(nd(zd)||zd===dd||zd===pd||zd===":"&&Id.charAt(Ld+1)===fd));)Bd+=zd,Ld++;if(Bd){if(qd+=Bd,Bd="",zd=Id.charAt(Ld),qd+=zd,Ld++,zd===pd)Gd=!0;else{if(zd!==":"||Id.charAt(Ld+1)!==fd)return;qd+=fd,Ld++}for(;Ld<jd&&(zd=Id.charAt(Ld),!(nd(zd)||zd===dd));)Bd+=zd,Ld++;if(zd=Id.charAt(Ld),!(!Bd||zd!==dd))return Od?!0:(qd+=Bd,gf=qd,Ud+=qd+zd,Xd=Nd.now(),Xd.column++,Xd.offset++,Gd&&(qd.slice(0,vd).toLowerCase()===md?(gf=gf.slice(vd),Xd.column+=vd,Xd.offset+=vd):qd=md+qd),Yd=Md.inlineTokenizers,Md.inlineTokenizers={text:Yd.text},Zd=Md.enterLink(),gf=Md.tokenizeInline(gf,Xd),Md.inlineTokenizers=Yd,Zd(),Nd(Ud)({type:"link",title:null,url:od(qd,{nonTerminated:!1}),children:gf}))}}}}),xo$2=C$3((Ra,qa)=>{qa.exports=nd;function nd(od,ld){var ud=String(od),dd=0,pd;if(typeof ld!="string")throw new Error("Expected character");for(pd=ud.indexOf(ld);pd!==-1;)dd++,pd=ud.indexOf(ld,pd+ld.length);return dd}}),Bo$1=C$3((Ra,qa)=>{qa.exports=od;var nd=["www.","http://","https://"];function od(ld,ud){var dd=-1,pd,fd,md;if(!this.options.gfm)return dd;for(fd=nd.length,pd=-1;++pd<fd;)md=ld.indexOf(nd[pd],ud),md!==-1&&(dd===-1||md<dd)&&(dd=md);return dd}}),Oo=C$3((Ra,qa)=>{var nd=xo$2(),od=pr$1(),ld=Ne$3(),ud=Ve$3(),dd=ue$4(),pd=Bo$1();qa.exports=Xd,Xd.locator=pd,Xd.notInLink=!0;var fd=33,md=38,vd=41,Ad=42,Nd=44,Id=45,Od=46,Md=58,Ud=59,jd=63,Ld=60,Bd=95,Gd=126,qd="(",zd=")";function Xd(gf,Yd,Zd){var df=this,Ef=df.options.gfm,_f=df.inlineTokenizers,xf=Yd.length,vf=-1,Af=!1,Df,jf,Jf,eh,th,Uf,Of,Wf,qf,zf,Tf,Sf,Yf,ih;if(Ef){if(Yd.slice(0,4)==="www.")Af=!0,eh=4;else if(Yd.slice(0,7).toLowerCase()==="http://")eh=7;else if(Yd.slice(0,8).toLowerCase()==="https://")eh=8;else return;for(vf=eh-1,Jf=eh,Df=[];eh<xf;){if(Of=Yd.charCodeAt(eh),Of===Od){if(vf===eh-1)break;Df.push(eh),vf=eh,eh++;continue}if(ld(Of)||ud(Of)||Of===Id||Of===Bd){eh++;continue}break}if(Of===Od&&(Df.pop(),eh--),Df[0]!==void 0&&(jf=Df.length<2?Jf:Df[Df.length-2]+1,Yd.slice(jf,eh).indexOf("_")===-1)){if(Zd)return!0;for(Wf=eh,th=eh;eh<xf&&(Of=Yd.charCodeAt(eh),!(dd(Of)||Of===Ld));)eh++,Of===fd||Of===Ad||Of===Nd||Of===Od||Of===Md||Of===jd||Of===Bd||Of===Gd||(Wf=eh);if(eh=Wf,Yd.charCodeAt(eh-1)===vd)for(Uf=Yd.slice(th,eh),qf=nd(Uf,qd),zf=nd(Uf,zd);zf>qf;)eh=th+Uf.lastIndexOf(zd),Uf=Yd.slice(th,eh),zf--;if(Yd.charCodeAt(eh-1)===Ud&&(eh--,ud(Yd.charCodeAt(eh-1)))){for(Wf=eh-2;ud(Yd.charCodeAt(Wf));)Wf--;Yd.charCodeAt(Wf)===md&&(eh=Wf)}return Tf=Yd.slice(0,eh),Yf=od(Tf,{nonTerminated:!1}),Af&&(Yf="http://"+Yf),ih=df.enterLink(),df.inlineTokenizers={text:_f.text},Sf=df.tokenizeInline(Tf,gf.now()),df.inlineTokenizers=_f,ih(),gf(Tf)({type:"link",title:null,url:Yf,children:Sf})}}}}),No=C$3((Ra,qa)=>{var nd=Ne$3(),od=Ve$3(),ld=43,ud=45,dd=46,pd=95;qa.exports=fd;function fd(vd,Ad){var Nd=this,Id,Od;if(!this.options.gfm||(Id=vd.indexOf("@",Ad),Id===-1))return-1;if(Od=Id,Od===Ad||!md(vd.charCodeAt(Od-1)))return fd.call(Nd,vd,Id+1);for(;Od>Ad&&md(vd.charCodeAt(Od-1));)Od--;return Od}function md(vd){return nd(vd)||od(vd)||vd===ld||vd===ud||vd===dd||vd===pd}}),Mo$2=C$3((Ra,qa)=>{var nd=pr$1(),od=Ne$3(),ld=Ve$3(),ud=No();qa.exports=Ad,Ad.locator=ud,Ad.notInLink=!0;var dd=43,pd=45,fd=46,md=64,vd=95;function Ad(Nd,Id,Od){var Md=this,Ud=Md.options.gfm,jd=Md.inlineTokenizers,Ld=0,Bd=Id.length,Gd=-1,qd,zd,Xd,gf;if(Ud){for(qd=Id.charCodeAt(Ld);od(qd)||ld(qd)||qd===dd||qd===pd||qd===fd||qd===vd;)qd=Id.charCodeAt(++Ld);if(Ld!==0&&qd===md){for(Ld++;Ld<Bd;){if(qd=Id.charCodeAt(Ld),od(qd)||ld(qd)||qd===pd||qd===fd||qd===vd){Ld++,Gd===-1&&qd===fd&
`,ud="!",dd='"',pd="'",fd="(",md=")",vd="<",Ad=">",Nd="[",Id="\\",Od="]",Md="`";function Ud(jd,Ld,Bd){var Gd=this,qd="",zd=0,Xd=Ld.charAt(0),gf=Gd.options.pedantic,Yd=Gd.options.commonmark,Zd=Gd.options.gfm,df,Ef,_f,xf,vf,Af,Df,jf,Jf,eh,th,Uf,Of,Wf,qf,zf,Tf,Sf;if(Xd===ud&&(jf=!0,qd=Xd,Xd=Ld.charAt(++zd)),Xd===Nd&&!(!jf&&Gd.inLink)){for(qd+=Xd,Wf="",zd++,th=Ld.length,zf=jd.now(),Of=0,zf.column+=zd,zf.offset+=zd;zd<th;){if(Xd=Ld.charAt(zd),Af=Xd,Xd===Md){for(Ef=1;Ld.charAt(zd+1)===Md;)Af+=Xd,zd++,Ef++;_f?Ef>=_f&&(_f=0):_f=Ef}else if(Xd===Id)zd++,Af+=Ld.charAt(zd);else if((!_f||Zd)&&Xd===Nd)Of++;else if((!_f||Zd)&&Xd===Od)if(Of)Of--;else{if(Ld.charAt(zd+1)!==fd)return;Af+=fd,df=!0,zd++;break}Wf+=Af,Af="",zd++}if(df){for(Jf=Wf,qd+=Wf+Af,zd++;zd<th&&(Xd=Ld.charAt(zd),!!nd(Xd));)qd+=Xd,zd++;if(Xd=Ld.charAt(zd),Wf="",xf=qd,Xd===vd){for(zd++,xf+=vd;zd<th&&(Xd=Ld.charAt(zd),Xd!==Ad);){if(Yd&&Xd===ld)return;Wf+=Xd,zd++}if(Ld.charAt(zd)!==Ad)return;qd+=vd+Wf+Ad,qf=Wf,zd++}else{for(Xd=null,Af="";zd<th&&(Xd=Ld.charAt(zd),!(Af&&(Xd===dd||Xd===pd||Yd&&Xd===fd)));){if(nd(Xd)){if(!gf)break;Af+=Xd}else{if(Xd===fd)Of++;else if(Xd===md){if(Of===0)break;Of--}Wf+=Af,Af="",Xd===Id&&(Wf+=Id,Xd=Ld.charAt(++zd)),Wf+=Xd}zd++}qd+=Wf,qf=Wf,zd=qd.length}for(Wf="";zd<th&&(Xd=Ld.charAt(zd),!!nd(Xd));)Wf+=Xd,zd++;if(Xd=Ld.charAt(zd),qd+=Wf,Wf&&(Xd===dd||Xd===pd||Yd&&Xd===fd))if(zd++,qd+=Xd,Wf="",eh=Xd===fd?md:Xd,vf=qd,Yd){for(;zd<th&&(Xd=Ld.charAt(zd),Xd!==eh);)Xd===Id&&(Wf+=Id,Xd=Ld.charAt(++zd)),zd++,Wf+=Xd;if(Xd=Ld.charAt(zd),Xd!==eh)return;for(Uf=Wf,qd+=Wf+Xd,zd++;zd<th&&(Xd=Ld.charAt(zd),!!nd(Xd));)qd+=Xd,zd++}else for(Af="";zd<th;){if(Xd=Ld.charAt(zd),Xd===eh)Df&&(Wf+=eh+Af,Af=""),Df=!0;else if(!Df)Wf+=Xd;else if(Xd===md){qd+=Wf+eh+Af,Uf=Wf;break}else nd(Xd)?Af+=Xd:(Wf+=eh+Af+Xd,Af="",Df=!1);zd++}if(Ld.charAt(zd)===md)return Bd?!0:(qd+=md,qf=Gd.decode.raw(Gd.unescape(qf),jd(xf).test().end,{nonTerminated:!1}),Uf&&(vf=jd(vf).test().end,Uf=Gd.decode.raw(Gd.unescape(Uf),vf)),Sf={type:jf?"image":"link",title:Uf||null,url:qf},jf?Sf.alt=Gd.decode.raw(Gd.unescape(Jf),zf)||null:(Tf=Gd.enterLink(),Sf.children=Gd.tokenizeInline(Jf,zf),Tf()),jd(qd)(Sf))}}}}),rs=C$3((Ra,qa)=>{var nd=ue$4(),od=dn$3(),ld=Qt$2();qa.exports=Od,Od.locator=od;var ud="link",dd="image",pd="shortcut",fd="collapsed",md="full",vd="!",Ad="[",Nd="\\",Id="]";function Od(Md,Ud,jd){var Ld=this,Bd=Ld.options.commonmark,Gd=Ud.charAt(0),qd=0,zd=Ud.length,Xd="",gf="",Yd=ud,Zd=pd,df,Ef,_f,xf,vf,Af,Df,jf;if(Gd===vd&&(Yd=dd,gf=Gd,Gd=Ud.charAt(++qd)),Gd===Ad){for(qd++,gf+=Gd,Af="",jf=0;qd<zd;){if(Gd=Ud.charAt(qd),Gd===Ad)Df=!0,jf++;else if(Gd===Id){if(!jf)break;jf--}Gd===Nd&&(Af+=Nd,Gd=Ud.charAt(++qd)),Af+=Gd,qd++}if(Xd=Af,df=Af,Gd=Ud.charAt(qd),Gd===Id){if(qd++,Xd+=Gd,Af="",!Bd)for(;qd<zd&&(Gd=Ud.charAt(qd),!!nd(Gd));)Af+=Gd,qd++;if(Gd=Ud.charAt(qd),Gd===Ad){for(Ef="",Af+=Gd,qd++;qd<zd&&(Gd=Ud.charAt(qd),!(Gd===Ad||Gd===Id));)Gd===Nd&&(Ef+=Nd,Gd=Ud.charAt(++qd)),Ef+=Gd,qd++;Gd=Ud.charAt(qd),Gd===Id?(Zd=Ef?md:fd,Af+=Ef+Gd,qd++):Ef="",Xd+=Af,Af=""}else{if(!df)return;Ef=df}if(!(Zd!==md&&Df))return Xd=gf+Xd,Yd===ud&&Ld.inLink?null:jd?!0:(_f=Md.now(),_f.column+=gf.length,_f.offset+=gf.length,Ef=Zd===md?Ef:df,xf={type:Yd+"Reference",identifier:ld(Ef),label:Ef,referenceType:Zd},Yd===ud?(vf=Ld.enterLink(),xf.children=Ld.tokenizeInline(df,_f),vf()):xf.alt=Ld.decode.raw(Ld.unescape(df),_f)||null,Md(Xd)(xf))}}}}),ns=C$3((Ra,qa)=>{qa.exports=nd;function nd(od,ld){var ud=od.indexOf("**",ld),dd=od.indexOf("__",ld);return dd===-1?ud:ud===-1||dd<ud?dd:ud}}),os=C$3((Ra,qa)=>{var nd=Re$5(),od=ue$4(),ld=ns();qa.exports=fd,fd.locator=ld;var ud="\\",dd="*",pd="_";function fd(md,vd,Ad){var Nd=this,Id=0,Od=vd.charAt(Id),Md,Ud,jd,Ld,Bd,Gd,qd;if(!(Od!==dd&&Od!==pd||vd.charAt(++Id)!==Od)&&(Ud=Nd.options.pedantic,jd=Od,Bd=jd+jd,Gd=vd.length,Id++,Ld="",Od="",!(Ud&&od(vd.charAt(Id)))))for(;Id<Gd;){if(qd=Od,Od=vd.charAt(Id),Od===jd&&vd.charAt(Id+1)===jd&&(!Ud||!od(qd))&&(Od=vd.charAt(Id+2),Od!==jd))return nd(Ld)?Ad?!0:(Md=md.now(),Md.column+=2,Md.offset+=2,md(Bd+Ld+Bd)({type:"strong",children:Nd.tokenizeInline(Ld,Md)})):void 0;
`,ld);ud>ld&&od.charAt(ud-1)===" ";)ud--;return ud}}),Os$1=C$3((Ra,qa)=>{var nd=Ts();qa.exports=dd,dd.locator=nd;var od=" ",ld=`
`,ud=2;function dd(pd,fd,md){for(var vd=fd.length,Ad=-1,Nd="",Id;++Ad<vd;){if(Id=fd.charAt(Ad),Id===ld)return Ad<ud?void 0:md?!0:(Nd+=Id,pd(Nd)({type:"break"}));if(Id!==od)return;Nd+=Id}}}),Ls$1=C$3((Ra,qa)=>{qa.exports=nd;function nd(od,ld,ud){var dd=this,pd,fd,md,vd,Ad,Nd,Id,Od,Md,Ud;if(ud)return!0;for(pd=dd.inlineMethods,vd=pd.length,fd=dd.inlineTokenizers,md=-1,Md=ld.length;++md<vd;)Od=pd[md],!(Od==="text"||!fd[Od])&&(Id=fd[Od].locator,Id||od.file.fail("Missing locator: `"+Od+"`"),Nd=Id.call(dd,ld,1),Nd!==-1&&Nd<Md&&(Md=Nd));Ad=ld.slice(0,Md),Ud=od.now(),dd.decode(Ad,Ud,jd);function jd(Ld,Bd,Gd){od(Gd||Ld)({type:"text",value:Ld})}}}),Us=C$3((Ra,qa)=>{var nd=Ie$3(),od=ru$1(),ld=nu$2(),ud=uu$2(),dd=Ou$1(),pd=Iu$1();qa.exports=fd;function fd(Ad,Nd){this.file=Nd,this.offset={},this.options=nd(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=ld(Nd).toOffset,this.unescape=ud(this,"escape"),this.decode=dd(this)}var md=fd.prototype;md.setOptions=Vu$2(),md.parse=aa$2(),md.options=Rt$3(),md.exitStart=od("atStart",!0),md.enterList=od("inList",!1),md.enterLink=od("inLink",!1),md.enterBlock=od("inBlock",!1),md.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],md.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],md.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}]],md.blockTokenizers={blankLine:sa(),indentedCode:pa(),fencedCode:ma(),blockquote:ba$1(),atxHeading:xa$1(),thematicBreak:Ba(),list:Ua$1(),setextHeading:Ga(),html:Ka(),definition:io$1(),table:oo$2(),paragraph:lo$1()},md.inlineTokenizers={escape:Fo$1(),autoLink:yo$1(),url:Oo(),email:Mo$2(),html:Vo$1(),link:Qo$1(),reference:rs(),strong:os(),emphasis:ms(),deletion:ys(),code:Bs(),break:Os$1(),text:Ls$1()},md.blockMethods=vd(md.blockTokenizers),md.inlineMethods=vd(md.inlineTokenizers),md.tokenizeBlock=pd("block"),md.tokenizeInline=pd("inline"),md.tokenizeFactory=pd;function vd(Ad){var Nd=[],Id;for(Id in Ad)Nd.push(Id);return Nd}}),Gs=C$3((Ra,qa)=>{var nd=Zi(),od=Ie$3(),ld=Us();qa.exports=ud,ud.Parser=ld;function ud(dd){var pd=this.data("settings"),fd=nd(ld);fd.prototype.options=od(fd.prototype.options,pd,dd),this.Parser=fd}}),js$1=C$3((Ra,qa)=>{qa.exports=nd;function nd(od){if(od)throw od}}),yn$3=C$3((Ra,qa)=>{qa.exports=function(nd){return nd!=null&&nd.constructor!=null&&typeof nd.constructor.isBuffer=="function"&&nd.constructor.isBuffer(nd)}}),rc$1=C$3((Ra,qa)=>{var nd=Object.prototype.hasOwnProperty,od=Object.prototype.toString,ld=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,dd=function(vd){return typeof Array.isArray=="function"?Array.isArray(vd):od.call(vd)==="[object Array]"},pd=function(vd){if(!vd||od.call(vd)!=="[object Object]")return!1;var Ad=nd.call(vd,"constructor"),Nd=vd.constructor&&vd.constructor.prototype&&nd.call(vd.constructor.prototype,"isPrototypeOf");if(vd.constructor&&!Ad&&!Nd)return!1;var Id;for(Id in vd);return typeof Id>"u"||nd.call(vd,Id)},fd=function(vd,Ad){ld&&Ad.name==="__proto__"?ld(vd,Ad.name,{enumerable:!0,configurable:!0,value:Ad.newValue,writable:!0}):vd[Ad.name]=Ad.newValue},md=function(vd,Ad){if(Ad==="__proto__")if(nd.call(vd,Ad)){if(ud)return ud(vd,Ad).value}else return;return vd[Ad]};qa.exports=function vd(){var Ad,Nd,Id,Od,Md,Ud,jd=arguments[0],Ld=1,Bd=arguments.length,Gd=!1;for(typeof jd=="boolean"&&(Gd=jd,jd=arguments[1]||{},Ld=2),(jd==null||typeof jd!="object"&&typeof jd!="function")&&(jd={});Ld<Bd;++Ld)if(Ad=arguments[Ld],Ad!=null)for(Nd in Ad)Id=md(jd,Nd),Od=md(Ad,Nd),jd!==Od&&(Gd&&Od&&(pd(Od)||(Md=dd(Od)))?(Md?(Md=!1,Ud=Id&&dd(Id)?Id:[]):Ud=Id&&pd(Id)?Id:{},fd(jd,{name:Nd,newValue:vd(Gd,Ud,Od)})):typeof Od<"u"&&fd(jd,{name:Nd,newValue:Od}));return jd
Expected it to be 'string' or 'object'.`;if(Y$4(Ra))throw new Error("doc is valid.");let nd=Object.prototype.toString.call(Ra);if(nd!=="[object Object]")return`Unexpected doc '${nd}'.`;let od=ll$1([...wr$1].map(ld=>`'${ld}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${od}.`}var Dt$2=class extends Error{constructor(nd){super(fl$1(nd));wg(this,"name","InvalidDocError");this.doc=nd}},qe$2=Dt$2,Nn$2={};function Dl$1(Ra,qa,nd,od){let ld=[Ra];for(;ld.length>0;){let ud=ld.pop();if(ud===Nn$2){nd(ld.pop());continue}nd&&ld.push(ud,Nn$2);let dd=Y$4(ud);if(!dd)throw new qe$2(ud);if((qa==null?void 0:qa(ud))!==!1)switch(dd){case H$5:case J$6:{let pd=dd===H$5?ud:ud.parts;for(let fd=pd.length,md=fd-1;md>=0;--md)ld.push(pd[md]);break}case X$5:ld.push(ud.flatContents,ud.breakContents);break;case K$5:if(od&&ud.expandedStates)for(let pd=ud.expandedStates.length,fd=pd-1;fd>=0;--fd)ld.push(ud.expandedStates[fd]);else ld.push(ud.contents);break;case re$4:case ee$4:case se$4:case fe$5:case ce$6:ld.push(ud.contents);break;case $$2:case ge$5:case oe$4:case le$4:case W$6:case te$4:break;default:throw new qe$2(ud)}}}var Rn$1=Dl$1,Un$2=()=>{},kr$1=Un$2;function Ze$3(Ra){return{type:ee$4,contents:Ra}}function ve$5(Ra,qa){return{type:re$4,contents:qa,n:Ra}}function ze$4(Ra,qa={}){return kr$1(qa.expandedStates),{type:K$5,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function _e$4(Ra){return ve$5({type:"root"},Ra)}function Ee$5(Ra){return{type:J$6,parts:Ra}}function zn$2(Ra,qa="",nd={}){return{type:X$5,breakContents:Ra,flatContents:qa,groupId:nd.groupId}}var er$1={type:te$4},rr$1={type:W$6,hard:!0},pl$1={type:W$6,hard:!0,literal:!0},Br$2={type:W$6},qr$1={type:W$6,soft:!0},L$5=[rr$1,er$1],tr$1=[pl$1,er$1];function Tr$1(Ra,qa){let nd=[];for(let od=0;od<qa.length;od++)od!==0&&nd.push(Ra),nd.push(qa[od]);return nd}function dl$1(Ra,qa){if(typeof Ra=="string")return qa(Ra);let nd=new Map;return od(Ra);function od(ud){if(nd.has(ud))return nd.get(ud);let dd=ld(ud);return nd.set(ud,dd),dd}function ld(ud){switch(Y$4(ud)){case H$5:return qa(ud.map(od));case J$6:return qa({...ud,parts:ud.parts.map(od)});case X$5:return qa({...ud,breakContents:od(ud.breakContents),flatContents:od(ud.flatContents)});case K$5:{let{expandedStates:dd,contents:pd}=ud;return dd?(dd=dd.map(od),pd=dd[0]):pd=od(pd),qa({...ud,contents:pd,expandedStates:dd})}case re$4:case ee$4:case se$4:case fe$5:case ce$6:return qa({...ud,contents:od(ud.contents)});case $$2:case ge$5:case oe$4:case le$4:case W$6:case te$4:return qa(ud);default:throw new qe$2(ud)}}}function Mn$1(Ra){if(Ra.length>0){let qa=M$5(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Yn$1(Ra){let qa=new Set,nd=[];function od(ud){if(ud.type===te$4&&Mn$1(nd),ud.type===K$5){if(nd.push(ud),qa.has(ud))return!1;qa.add(ud)}}function ld(ud){ud.type===K$5&&nd.pop().break&&Mn$1(nd)}Rn$1(Ra,od,ld,!0)}function Ce$3(Ra,qa=tr$1){return dl$1(Ra,nd=>typeof nd=="string"?Tr$1(qa,nd.split(`
`)):nd)}function hl$1(Ra,qa){let nd=Ra.match(new RegExp(`(${Be$5(qa)})+`,"gu"));return nd===null?0:nd.reduce((od,ld)=>Math.max(od,ld.length/qa.length),0)}var _r$1=hl$1;function ml$1(Ra,qa){let nd=Ra.match(new RegExp(`(${Be$5(qa)})+`,"gu"));if(nd===null)return 0;let od=new Map,ld=0;for(let ud of nd){let dd=ud.length/qa.length;od.set(dd,!0),dd>ld&&(ld=dd)}for(let ud=1;ud<ld;ud++)if(!od.get(ud))return ud;return ld+1}var Gn$2=ml$1,Sr$1="'",Vn$2='"';function Fl$1(Ra,qa){let nd=qa===!0||qa===Sr$1?Sr$1:Vn$2,od=nd===Sr$1?Vn$2:Sr$1,ld=0,ud=0;for(let dd of Ra)dd===nd?ld++:dd===od&&ud++;return ld>ud?od:nd}var jn$1=Fl$1,pt$3=class extends Error{constructor(nd,od,ld="type"){super(`Unexpected ${od} node ${ld}: ${JSON.stringify(nd[ld])}.`);wg(this,"name","UnexpectedNodeError");this.node=nd}},$n$2=pt$3,Xn$2=Ue$2(xr$1());function gl$1(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var Hn$1=gl$1,nr$1=3;function vl$1(Ra){let qa=Ra.slice(0,nr$1);if(qa!=="---"&&qa!=="+++")return;let nd=Ra.indexOf(`
`,nr$1);if(nd===-1)return;let od=Ra.slice(nr$1,nd).trim(),ld=Ra.indexOf(`
${qa}`,nd),ud=od;if(ud||(ud=qa==="+++"?"toml":"yaml"),ld===-1&&qa==="---"&&ud==="yaml"&&(ld=Ra.indexOf(`
...`,nd)),ld===-1)return;let dd=ld+1+nr$1,pd=Ra.charAt(dd+1);if(!/\s?/u.test(pd))return;let fd=Ra.slice(0,dd);return{type:"front-matter",language:ud,explicitLanguage:od,value:Ra.slice(nd+1,ld),startDelimiter:qa,endDelimiter:fd.slice(-nr$1),raw:fd}}function El$1(Ra){let qa=vl$1(Ra);if(!qa)return{content:Ra};let{raw:nd}=qa;return{frontMatter:qa,content:N$5(!1,nd,/[^\n]/gu," ")+Ra.slice(nd.length)}}var ir$2=El$1,Wn$1=["format","prettier"];function dt$2(Ra){let qa=`@(${Wn$1.join("|")})`,nd=new RegExp([`<!--\\s*${qa}\\s*-->`,`\\{\\s*\\/\\*\\s*${qa}\\s*\\*\\/\\s*\\}`,`<!--.*\r?
[\\s\\S]*(^|
)[^\\S
]*${qa}[^\\S
]*($|
)[\\s\\S]*
.*-->`].join("|"),"mu"),od=Ra.match(nd);return(od==null?void 0:od.index)===0}var Kn$2=Ra=>dt$2(ir$2(Ra).content.trimStart()),Jn$2=Ra=>{let qa=ir$2(Ra),nd=`<!-- @${Wn$1[0]} -->`;return qa.frontMatter?`${qa.frontMatter.raw}
${nd}
${qa.content}`:`${nd}
${qa.content}`},Cl$1=new Set(["position","raw"]);function Qn$2(Ra,qa,nd){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$5(!1,Ra.value,`
`," ")),Ra.type==="wikiLink"&&(qa.value=N$5(!1,Ra.value.trim(),/[\t\n]+/gu," ")),(Ra.type==="definition"||Ra.type==="linkReference"||Ra.type==="imageReference")&&(qa.label=(0,Xn$2.default)(Ra.label)),(Ra.type==="link"||Ra.type==="image")&&Ra.url&&Ra.url.includes("("))for(let od of"<>")qa.url=N$5(!1,Ra.url,od,encodeURIComponent(od));if((Ra.type==="definition"||Ra.type==="link"||Ra.type==="image")&&Ra.title&&(qa.title=N$5(!1,Ra.title,/\\(?=["')])/gu,"")),(nd==null?void 0:nd.type)==="root"&&nd.children.length>0&&(nd.children[0]===Ra||Hn$1(nd.children[0])&&nd.children[1]===Ra)&&Ra.type==="html"&&dt$2(Ra.value))return null}Qn$2.ignoredProperties=Cl$1;var Zn$2=Qn$2,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$5=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 nd=Ra.value.trim(),od=nd?await qa(nd,{parser:"yaml"}):"";return _e$4([Ra.startDelimiter,Ra.explicitLanguage,L$5,od,od?L$5:"",Ra.endDelimiter])}}var ri$2=bl$2,yl$1=Ra=>String(Ra).split(/[/\\]/u).pop();function ti$2(Ra,qa){if(!qa)return;let nd=yl$1(qa).toLowerCase();return Ra.find(({filenames:od})=>od==null?void 0:od.some(ld=>ld.toLowerCase()===nd))??Ra.find(({extensions:od})=>od==null?void 0:od.some(ld=>nd.endsWith(ld)))}function Al$1(Ra,qa){if(qa)return Ra.find(({name:nd})=>nd.toLowerCase()===qa)??Ra.find(({aliases:nd})=>nd==null?void 0:nd.includes(qa))??Ra.find(({extensions:nd})=>nd==null?void 0:nd.includes(`.${qa}`))}function xl$1(Ra,qa){let nd=Ra.plugins.flatMap(ld=>ld.languages??[]),od=Al$1(nd,qa.language)??ti$2(nd,qa.physicalFile)??ti$2(nd,qa.file)??(qa.physicalFile,void 0);return od==null?void 0:od.parsers[0]}var ni$2=xl$1,wl$1=new Proxy(()=>{},{get:()=>wl$1});function Oe$4(Ra){return Ra.position.start.offset}function Pe$4(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$1=new Set([...ht$2,"tableCell","paragraph","heading"]),Le$4="non-cjk",De$3="cj-letter",be$6="k-letter",ur$1="cjk-punctuation",kl$1=new RegExp("\\p{Script_Extensions=Hangul}","u");function Pr$1(Ra){let qa=[],nd=Ra.split(/([\t\n ]+)/u);for(let[ld,ud]of nd.entries()){if(ld%2===1){qa.push({type:"whitespace",value:/\n/u.test(ud)?`
`:" "});continue}if((ld===0||ld===nd.length-1)&&ud==="")continue;let dd=ud.split(new RegExp(`(${ei$2.source})`,"u"));for(let[pd,fd]of dd.entries())if(!((pd===0||pd===dd.length-1)&&fd==="")){if(pd%2===0){fd!==""&&od({type:"word",value:fd,kind:Le$4,hasLeadingPunctuation:Se$5.test(fd[0]),hasTrailingPunctuation:Se$5.test(M$5(!1,fd,-1))});continue}od(Se$5.test(fd)?{type:"word",value:fd,kind:ur$1,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:fd,kind:kl$1.test(fd)?be$6:De$3,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return qa;function od(ld){let ud=M$5(!1,qa,-1);(ud==null?void 0:ud.type)==="word"&&!dd(Le$4,ur$1)&&![ud.value,ld.value].some(pd=>/\u3000/u.test(pd))&&qa.push({type:"whitespace",value:""}),qa.push(ld);function dd(pd,fd){return ud.kind===pd&&ld.kind===fd||ud.kind===fd&&ld.kind===pd}}}function Me$4(Ra,qa){let nd=qa.originalText.slice(Ra.position.start.offset,Ra.position.end.offset),{numberText:od,leadingSpaces:ld}=nd.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(od),leadingSpaces:ld}}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$1(Ra,qa){let{value:nd}=Ra;return Ra.position.end.offset===qa.length&&nd.endsWith(`
`)&&qa.endsWith(`
`)?nd.slice(0,-1):nd}function ye$4(Ra,qa){return function nd(od,ld,ud){let dd={...qa(od,ld,ud)};return dd.children&&(dd.children=dd.children.map((pd,fd)=>nd(pd,fd,[dd,...ud]))),dd}(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$4(Ra)===Oe$4(qa)&&Pe$4(Ra)===Pe$4(qa)}function Bl$1(Ra,qa){let{node:nd}=Ra;if(nd.type==="code"&&nd.lang!==null){let od=ni$2(qa,{language:nd.lang});if(od)return async ld=>{let ud=qa.__inJsTemplate?"~":"`",dd=ud.repeat(Math.max(3,_r$1(nd.value,ud)+1)),pd={parser:od};nd.lang==="ts"||nd.lang==="typescript"?pd.filepath="dummy.ts":nd.lang==="tsx"&&(pd.filepath="dummy.tsx");let fd=await ld(Lr$1(nd,qa.originalText),pd);return _e$4([dd,nd.lang,nd.meta?" "+nd.meta:"",L$5,Ce$3(fd),L$5,dd])}}switch(nd.type){case"front-matter":return od=>ri$2(nd,od);case"import":case"export":return od=>od(nd.value,{parser:"babel"});case"jsx":return od=>od(`<$>${nd.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var ui$2=Bl$1,ar$2=null;function or$1(Ra){if(ar$2!==null&&typeof ar$2.property){let qa=ar$2;return ar$2=or$1.prototype=null,qa}return ar$2=or$1.prototype=Ra??Object.create(null),new or$1}var ql$1=10;for(let Ra=0;Ra<=ql$1;Ra++)or$1();function Ft$3(Ra){return or$1(Ra)}function Tl$1(Ra,qa="type"){Ft$3(Ra);function nd(od){let ld=od[qa],ud=Ra[ld];if(!Array.isArray(ud))throw Object.assign(new Error(`Missing visitor keys for '${ld}'.`),{node:od});return ud}return nd}var ai$3=Tl$1,_l$1={"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$1,Sl$1=ai$3(oi$2),si$2=Sl$1;function ci$3(Ra){switch(Ra){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}var li$2=()=>/[#*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$5(!1,Od,`
`,ld):Od;pd.push(Md),dd.length>0&&(ud+=sr$1(Md));break}case H$5:for(let Md=Od.length-1;Md>=0;Md--)dd.push({ind:Nd,mode:Id,doc:Od[Md]});break;case ge$5:if(vd>=2)throw new Error("There are too many 'cursor' in doc.");pd.push(cr$2),vd++;break;case ee$4:dd.push({ind:Ll$1(Nd,qa),mode:Id,doc:Od.contents});break;case re$4:dd.push({ind:Il$1(Nd,Od.n,qa),mode:Id,doc:Od.contents});break;case oe$4:ud-=vt$3(pd);break;case K$5:switch(Id){case ne$4:if(!fd){dd.push({ind:Nd,mode:Od.break?G$6:ne$4,doc:Od.contents});break}case G$6:{fd=!1;let Md={ind:Nd,mode:ne$4,doc:Od.contents},Ud=od-ud,jd=md.length>0;if(!Od.break&&Ir$1(Md,dd,Ud,jd,nd))dd.push(Md);else if(Od.expandedStates){let Ld=M$5(!1,Od.expandedStates,-1);if(Od.break){dd.push({ind:Nd,mode:G$6,doc:Ld});break}else for(let Bd=1;Bd<Od.expandedStates.length+1;Bd++)if(Bd>=Od.expandedStates.length){dd.push({ind:Nd,mode:G$6,doc:Ld});break}else{let Gd=Od.expandedStates[Bd],qd={ind:Nd,mode:ne$4,doc:Gd};if(Ir$1(qd,dd,Ud,jd,nd)){dd.push(qd);break}}}else dd.push({ind:Nd,mode:G$6,doc:Od.contents});break}}Od.id&&(nd[Od.id]=M$5(!1,dd,-1).mode);break;case J$6:{let Md=od-ud,{parts:Ud}=Od;if(Ud.length===0)break;let[jd,Ld]=Ud,Bd={ind:Nd,mode:ne$4,doc:jd},Gd={ind:Nd,mode:G$6,doc:jd},qd=Ir$1(Bd,[],Md,md.length>0,nd,!0);if(Ud.length===1){qd?dd.push(Bd):dd.push(Gd);break}let zd={ind:Nd,mode:ne$4,doc:Ld},Xd={ind:Nd,mode:G$6,doc:Ld};if(Ud.length===2){qd?dd.push(zd,Bd):dd.push(Xd,Gd);break}Ud.splice(0,2);let gf={ind:Nd,mode:Id,doc:Ee$5(Ud)},Yd=Ud[0];Ir$1({ind:Nd,mode:ne$4,doc:[jd,Ld,Yd]},[],Md,md.length>0,nd,!0)?dd.push(gf,zd,Bd):qd?dd.push(gf,Xd,Bd):dd.push(gf,Xd,Gd);break}case X$5:case se$4:{let Md=Od.groupId?nd[Od.groupId]:Id;if(Md===G$6){let Ud=Od.type===X$5?Od.breakContents:Od.negate?Od.contents:Ze$3(Od.contents);Ud&&dd.push({ind:Nd,mode:Id,doc:Ud})}if(Md===ne$4){let Ud=Od.type===X$5?Od.flatContents:Od.negate?Ze$3(Od.contents):Od.contents;Ud&&dd.push({ind:Nd,mode:Id,doc:Ud})}break}case ce$6:md.push({ind:Nd,mode:Id,doc:Od.contents});break;case le$4:md.length>0&&dd.push({ind:Nd,mode:Id,doc:rr$1});break;case W$6:switch(Id){case ne$4:if(Od.hard)fd=!0;else{Od.soft||(pd.push(" "),ud+=1);break}case G$6:if(md.length>0){dd.push({ind:Nd,mode:Id,doc:Od},...md.reverse()),md.length=0;break}Od.literal?Nd.root?(pd.push(ld,Nd.root.value),ud=Nd.root.length):(pd.push(ld),ud=0):(ud-=vt$3(pd),pd.push(ld+Nd.value),ud=Nd.length);break}break;case fe$5:dd.push({ind:Nd,mode:Id,doc:Od.contents});break;case te$4:break;default:throw new qe$2(Od)}dd.length===0&&md.length>0&&(dd.push(...md.reverse()),md.length=0)}let Ad=pd.indexOf(cr$2);if(Ad!==-1){let Nd=pd.indexOf(cr$2,Ad+1),Id=pd.slice(0,Ad).join(""),Od=pd.slice(Ad+1,Nd).join(""),Md=pd.slice(Nd+1).join("");return{formatted:Id+Od+Md,cursorNodeStart:Id.length,cursorNodeText:Od}}return{formatted:pd.join("")}}function mi(Ra,qa,nd){let{node:od}=Ra,ld=[],ud=Ra.map(()=>Ra.map(({index:Ad})=>{let Nd=hi$1(nd(),qa).formatted,Id=sr$1(Nd);return ld[Ad]=Math.max(ld[Ad]??3,Id),{text:Nd,width:Id}},"children"),"children"),dd=fd(!1);if(qa.proseWrap!=="never")return[er$1,dd];let pd=fd(!0);return[er$1,ze$4(zn$2(pd,dd))];function fd(Ad){return Tr$1(rr$1,[vd(ud[0],Ad),md(Ad),...ud.slice(1).map(Nd=>vd(Nd,Ad))].map(Nd=>`| ${Nd.join(" | ")} |`))}function md(Ad){return ld.map((Nd,Id)=>{let Od=od.align[Id],Md=Od==="center"||Od==="left"?":":"-",Ud=Od==="center"||Od==="right"?":":"-",jd=Ad?"-":"-".repeat(Nd-2);return`${Md}${jd}${Ud}`})}function vd(Ad,Nd){return Ad.map(({text:Id,width:Od},Md)=>{if(Nd)return Id;let Ud=ld[Md]-Od,jd=od.align[Md],Ld=0;jd==="right"?Ld=Ud:jd==="center"&&(Ld=Math.floor(Ud/2));let Bd=Ud-Ld;return`${" ".repeat(Ld)}${Id}${" ".repeat(Bd)}`})}}function Fi(Ra,qa,nd){let od=Ra.map(nd,"children");return Nl$1(od)}function Nl$1(Ra){let qa=[""];return function nd(od){for(let ld of od){let ud=Y$4(ld);if(ud===H$5){nd(ld);continue}let dd=ld,pd=[];ud===J$6&&([dd,...pd]=ld.parts),qa.push([qa.pop(),dd],...pd)}}(Ra),Ee$5(qa)}var Rl$1=/^.$/su;function Ul$1(Ra,qa){return Ra=zl$1(Ra,qa),Ra=Yl$1(Ra),Ra=Vl$1(Ra,qa),Ra=jl$1(Ra,qa),Ra=Gl$1(Ra),Ra}function zl$1(Ra,qa){return ye$4(Ra,nd=>nd.type!=="text"||nd.va
`)return L$5;let ld=qa===" "||qa===`
`&&Jl$1(Ra,od);return Xl$1(Ra,qa,nd,od,ld)?ld?Br$2:qr$1:ld?" ":""}var Ql$1=new Set(["listItem","definition"]);function Zl$1(Ra,qa,nd){var od,ld;let{node:ud}=Ra;if(af$1(Ra)){let dd=[""],pd=Pr$1(qa.originalText.slice(ud.position.start.offset,ud.position.end.offset));for(let fd of pd){if(fd.type==="word"){dd.push([dd.pop(),fd.value]);continue}let md=Et$2(Ra,fd.value,qa.proseWrap,!0);if(Y$4(md)===$$2){dd.push([dd.pop(),md]);continue}dd.push(md)}return Ee$5(dd)}switch(ud.type){case"front-matter":return qa.originalText.slice(ud.position.start.offset,ud.position.end.offset);case"root":return ud.children.length===0?"":[tf(Ra,qa,nd),L$5];case"paragraph":return Fi(Ra,qa,nd);case"sentence":return vi(Ra,nd);case"word":{let dd=N$5(!1,N$5(!1,ud.value,"*",String.raw`\*`),new RegExp([`(^|${Se$5.source})(_+)`,`(_+)(${Se$5.source}|$)`].join("|"),"gu"),(md,vd,Ad,Nd,Id)=>N$5(!1,Ad?`${vd}${Ad}`:`${Nd}${Id}`,"_",String.raw`\_`)),pd=(md,vd,Ad)=>md.type==="sentence"&&Ad===0,fd=(md,vd,Ad)=>mt$2(md.children[Ad-1]);return dd!==ud.value&&(Ra.match(void 0,pd,fd)||Ra.match(void 0,pd,(md,vd,Ad)=>md.type==="emphasis"&&Ad===0,fd))&&(dd=dd.replace(/^(\\?[*_])+/u,md=>N$5(!1,md,"\\",""))),dd}case"whitespace":{let{next:dd}=Ra,pd=dd&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(dd.value)?"never":qa.proseWrap;return Et$2(Ra,ud.value,pd)}case"emphasis":{let dd;if(mt$2(ud.children[0]))dd=qa.originalText[ud.position.start.offset];else{let{previous:pd,next:fd}=Ra;dd=(pd==null?void 0:pd.type)==="sentence"&&((od=M$5(!1,pd.children,-1))==null?void 0:od.type)==="word"&&!M$5(!1,pd.children,-1).hasTrailingPunctuation||(fd==null?void 0:fd.type)==="sentence"&&((ld=fd.children[0])==null?void 0:ld.type)==="word"&&!fd.children[0].hasLeadingPunctuation||Ra.hasAncestor(md=>md.type==="emphasis")?"*":"_"}return[dd,V$5(Ra,qa,nd),dd]}case"strong":return["**",V$5(Ra,qa,nd),"**"];case"delete":return["~~",V$5(Ra,qa,nd),"~~"];case"inlineCode":{let dd=qa.proseWrap==="preserve"?ud.value:N$5(!1,ud.value,`
`," "),pd=Gn$2(dd,"`"),fd="`".repeat(pd||1),md=dd.startsWith("`")||dd.endsWith("`")||/^[\n ]/u.test(dd)&&/[\n ]$/u.test(dd)&&/[^\n ]/u.test(dd)?" ":"";return[fd,md,dd,md,fd]}case"wikiLink":{let dd="";return qa.proseWrap==="preserve"?dd=ud.value:dd=N$5(!1,ud.value,/[\t\n]+/gu," "),["[[",dd,"]]"]}case"link":switch(qa.originalText[ud.position.start.offset]){case"<":{let dd="mailto:";return["<",ud.url.startsWith(dd)&&qa.originalText.slice(ud.position.start.offset+1,ud.position.start.offset+1+dd.length)!==dd?ud.url.slice(dd.length):ud.url,">"]}case"[":return["[",V$5(Ra,qa,nd),"](",Ct$2(ud.url,")"),Nr$1(ud.title,qa),")"];default:return qa.originalText.slice(ud.position.start.offset,ud.position.end.offset)}case"image":return["![",ud.alt||"","](",Ct$2(ud.url,")"),Nr$1(ud.title,qa),")"];case"blockquote":return["> ",ve$5("> ",V$5(Ra,qa,nd))];case"heading":return["#".repeat(ud.depth)+" ",V$5(Ra,qa,nd)];case"code":{if(ud.isIndented){let fd=" ".repeat(4);return ve$5(fd,[fd,Ce$3(ud.value,L$5)])}let dd=qa.__inJsTemplate?"~":"`",pd=dd.repeat(Math.max(3,_r$1(ud.value,dd)+1));return[pd,ud.lang||"",ud.meta?" "+ud.meta:"",L$5,Ce$3(Lr$1(ud,qa.originalText),L$5),L$5,pd]}case"html":{let{parent:dd,isLast:pd}=Ra,fd=dd.type==="root"&&pd?ud.value.trimEnd():ud.value,md=/^<!--.*-->$/su.test(fd);return Ce$3(fd,md?L$5:_e$4(tr$1))}case"list":{let dd=Ai(ud,Ra.parent),pd=ii$3(ud,qa);return V$5(Ra,qa,nd,{processor(fd){let md=Ad(),vd=fd.node;if(vd.children.length===2&&vd.children[1].type==="html"&&vd.children[0].position.start.column!==vd.children[1].position.start.column)return[md,yi$1(fd,qa,nd,md)];return[md,ve$5(" ".repeat(md.length),yi$1(fd,qa,nd,md))];function Ad(){let Nd=ud.ordered?(fd.isFirst?ud.start:pd?1:ud.start+fd.index)+(dd%2===0?". ":") "):dd%2===0?"- ":"* ";return ud.isAligned||ud.hasIndentedCodeblock?ef(Nd,qa):Nd}}})}case"thematicBreak":{let{ancestors:dd}=Ra,pd=dd.findIndex(fd=>fd.type==="list");return pd===-1?"---":Ai(dd[pd],dd[pd+1])%2===0?"***":"---"}case"linkReference":return["[",V$5(Ra,qa,nd),"]",ud.referenceType==="full"?bt$4(ud):ud.referenceType==="collapsed"?"[]":""];case"imageReference":switch(ud.referenceType){case"full":return["![",ud.alt||"","]",bt$4(ud)];default:return["![",ud.alt,"]",ud.referenceType==="collapsed"?"[]":""]}case"definition":{let dd=qa.proseWrap==="always"?Br$2:" ";return ze$4([bt$4(ud),":",Ze$3([dd,Ct$2(ud.url),ud.title===null?"":[dd,Nr$1(ud.title,qa,!1)]])])}case"footnote":return["[^",V$5(Ra,qa,nd),"]"];case"footnoteReference":return Bi(ud);case"footnoteDefinition":{let dd=ud.children.length===1&&ud.children[0].type==="paragraph"&&(qa.proseWrap==="never"||qa.proseWrap==="preserve"&&ud.children[0].position.start.line===ud.children[0].position.end.line);return[Bi(ud),": ",dd?V$5(Ra,qa,nd):ze$4([ve$5(" ".repeat(4),V$5(Ra,qa,nd,{processor:({isFirst:pd})=>pd?ze$4([qr$1,nd()]):nd()}))])]}case"table":return mi(Ra,qa,nd);case"tableCell":return V$5(Ra,qa,nd);case"break":return/\s/u.test(qa.originalText[ud.position.start.offset])?[" ",_e$4(tr$1)]:["\\",L$5];case"liquidNode":return Ce$3(ud.value,L$5);case"import":case"export":case"jsx":return ud.value;case"esComment":return["{/* ",ud.value," */}"];case"math":return["$$",L$5,ud.value?[Ce$3(ud.value,L$5),L$5]:"","$$"];case"inlineMath":return qa.originalText.slice(Oe$4(ud),Pe$4(ud));case"tableRow":case"listItem":case"text":default:throw new $n$2(ud,"Markdown")}}function yi$1(Ra,qa,nd,od){let{node:ld}=Ra,ud=ld.checked===null?"":ld.checked?"[x] ":"[ ] ";return[ud,V$5(Ra,qa,nd,{processor({node:dd,isFirst:pd}){if(pd&&dd.type!=="list")return ve$5(" ".repeat(ud.length),nd());let fd=" ".repeat(sf(qa.tabWidth-od.length,0,3));return[fd,ve$5(fd,nd())]}})]}function ef(Ra,qa){let nd=od();return Ra+" ".repeat(nd>=4?0:nd);function od(){let ld=Ra.length%qa.tabWidth;return ld===0?0:qa.tabWidth-ld}}function Ai(Ra,qa){return rf(Ra,qa,nd=>nd.ordered===Ra.ordered)}function rf(Ra,qa,nd){let od=-1;for(let ld of qa.children)if(ld.type===Ra.type&&nd(ld)?od++:od=-1,ld===Ra)return od}function tf(Ra,qa,nd){let od=[],ld=null,{children:ud}=Ra.node;for(let[dd,pd]of ud.entries())switch(yt$1(pd)){case"st
`)}function uf({node:Ra,previous:qa,parent:nd},od){if(wi(qa,od))return!0;let ld=qa.type===Ra.type&&Ql$1.has(Ra.type),ud=nd.type==="listItem"&&!wi(nd,od),dd=yt$1(qa)==="next",pd=Ra.type==="html"&&qa.type==="html"&&qa.position.end.line+1===Ra.position.start.line,fd=Ra.type==="html"&&nd.type==="listItem"&&qa.type==="paragraph"&&qa.position.end.line+1===Ra.position.start.line;return!(ld||ud||dd||pd||fd)}function ki({node:Ra,previous:qa}){let nd=qa.type==="list",od=Ra.type==="code"&&Ra.isIndented;return nd&&od}function af$1(Ra){let qa=Ra.findAncestor(nd=>nd.type==="linkReference"||nd.type==="imageReference");return qa&&(qa.type!=="linkReference"||qa.referenceType!=="full")}var of=(Ra,qa)=>{for(let nd of qa)Ra=N$5(!1,Ra,nd,encodeURIComponent(nd));return Ra};function Ct$2(Ra,qa=[]){let nd=[" ",...Array.isArray(qa)?qa:[qa]];return new RegExp(nd.map(od=>Be$5(od)).join("|"),"u").test(Ra)?`<${of(Ra,"<>")}>`:Ra}function Nr$1(Ra,qa,nd=!0){if(!Ra)return"";if(nd)return" "+Nr$1(Ra,qa,!1);if(Ra=N$5(!1,Ra,/\\(?=["')])/gu,""),Ra.includes('"')&&Ra.includes("'")&&!Ra.includes(")"))return`(${Ra})`;let od=jn$1(Ra,qa.singleQuote);return Ra=N$5(!1,Ra,"\\","\\\\"),Ra=N$5(!1,Ra,od,`\\${od}`),`${od}${Ra}${od}`}function sf(Ra,qa,nd){return Ra<qa?qa:Ra>nd?nd:Ra}function cf$1(Ra){return Ra.index>0&&yt$1(Ra.previous)==="next"}function bt$4(Ra){return`[${(0,qi.default)(Ra.label)}]`}function Bi(Ra){return`[^${Ra.label}]`}var lf={preprocess:gi,print:Zl$1,embed:ui$2,massageAstNode:Zn$2,hasPrettierIgnore:cf$1,insertPragma:Jn$2,getVisitorKeys:si$2},Ti=lf,_i=[{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$2={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$1={proseWrap:At$2.proseWrap,singleQuote:At$2.singleQuote},Si=ff$1,On$2={};Ln$1(On$2,{markdown:()=>km,mdx:()=>Bm,remark:()=>km});var Wc=Ue$2(Pi()),Kc=Ue$2(Wi()),Jc=Ue$2(Gs()),Xc=Ue$2(Ic()),vm=/^import\s/u,Em=/^export\s/u,Nc=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Rc=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,Cm=/^\{\s*\/\*(.*)\*\/\s*\}/u,bm$2=`
`,Uc=Ra=>vm.test(Ra),Sn$2=Ra=>Em.test(Ra),zc=(Ra,qa)=>{let nd=qa.indexOf(bm$2),od=qa.slice(0,nd);if(Sn$2(od)||Uc(od))return Ra(od)({type:Sn$2(od)?"export":"import",value:od})},Mc=(Ra,qa)=>{let nd=Cm.exec(qa);if(nd)return Ra(nd[0])({type:"esComment",value:nd[1].trim()})};zc.locator=Ra=>Sn$2(Ra)||Uc(Ra)?-1:1;Mc.locator=(Ra,qa)=>Ra.indexOf("{",qa);var Yc=function(){let{Parser:Ra}=this,{blockTokenizers:qa,blockMethods:nd,inlineTokenizers:od,inlineMethods:ld}=Ra.prototype;qa.esSyntax=zc,od.esComment=Mc,nd.splice(nd.indexOf("paragraph"),0,"esSyntax"),ld.splice(ld.indexOf("text"),0,"esComment")},ym=function(){let Ra=this.Parser.prototype;Ra.blockMethods=["frontMatter",...Ra.blockMethods],Ra.blockTokenizers.frontMatter=qa;function qa(nd,od){let ld=ir$2(od);if(ld.frontMatter)return nd(ld.frontMatter.raw)(ld.frontMatter)}qa.onlyAtStart=!0},Gc=ym;function Am(){return Ra=>ye$4(Ra,(qa,nd,[od])=>qa.type!=="html"||Rc.test(qa.value)||Or$1.has(od.type)?qa:{...qa,type:"jsx"})}var Vc=Am,xm=function(){let Ra=this.Parser.prototype,qa=Ra.inlineMethods;qa.splice(qa.indexOf("text"),0,"liquid"),Ra.inlineTokenizers.liquid=nd;function nd(od,ld){let ud=ld.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(ud)return od(ud[0])({type:"liquidNode",value:ud[0]})}nd.locator=function(od,ld){return od.indexOf("{",ld)}},jc=xm,wm=function(){let Ra="wikiLink",qa=/^\[\[(?<linkContents>.+?)\]\]/su,nd=this.Parser.prototype,od=nd.inlineMethods;od.splice(od.indexOf("link"),0,Ra),nd.inlineTokenizers.wikiLink=ld;function ld(ud,dd){let pd=qa.exec(dd);if(pd){let fd=pd.groups.linkContents.trim();return ud(pd[0])({type:Ra,value:fd})}}ld.locator=function(ud,dd){return ud.indexOf("[",dd)}},$c=wm;function Qc({isMDX:Ra}){return qa=>{let nd=(0,Xc.default)().use(Jc.default,{commonmark:!0,...Ra&&{blocks:[Nc]}}).use(Wc.default).use(Gc).use(Kc.default).use(Ra?Yc:Hc).use(jc).use(Ra?Vc:Hc).use($c);return nd.run(nd.parse(qa))}}function Hc(){}var Zc={astFormat:"mdast",hasPragma:Kn$2,locStart:Oe$4,locEnd:Pe$4},km={...Zc,parse:Qc({isMDX:!1})},Bm={...Zc,parse:Qc({isMDX:!0})},qm={mdast:Ti},fC=Pn$2;const prettierPluginMarkdown=Object.freeze(Object.defineProperty({__proto__:null,default:fC,languages:_i,options:Si,parsers:On$2,printers:qm},Symbol.toStringTag,{value:"Module"}));var al$1=Object.create,Ur$1=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,ll=Object.getOwnPropertyNames,cl$1=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty,y$4=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Xs=(Ra,qa)=>{for(var nd in qa)Ur$1(Ra,nd,{get:qa[nd],enumerable:!0})},pl=(Ra,qa,nd,od)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let ld of ll(qa))!fl.call(Ra,ld)&&ld!==nd&&Ur$1(Ra,ld,{get:()=>qa[ld],enumerable:!(od=ul(qa,ld))||od.enumerable});return Ra},ye$3=(Ra,qa,nd)=>(nd=Ra!=null?al$1(cl$1(Ra)):{},pl(Ur$1(nd,"default",{value:Ra,enumerable:!0}),Ra)),Ut$3=y$4((Ra,qa)=>{qa.exports.isClean=Symbol("isClean"),qa.exports.my=Symbol("my")}),yi=y$4((Ra,qa)=>{var nd=String,od=function(){return{isColorSupported:!1,reset:nd,bold:nd,dim:nd,italic:nd,underline:nd,inverse:nd,hidden:nd,strikethrough:nd,black:nd,red:nd,green:nd,yellow:nd,blue:nd,magenta:nd,cyan:nd,white:nd,gray:nd,bgBlack:nd,bgRed:nd,bgGreen:nd,bgYellow:nd,bgBlue:nd,bgMagenta:nd,bgCyan:nd,bgWhite:nd}};qa.exports=od(),qa.exports.createColors=od}),ss=y$4(()=>{}),Ft$2=y$4((Ra,qa)=>{var nd=yi(),od=ss(),ld=class sC extends Error{constructor(dd,pd,fd,md,vd,Ad){super(dd),this.name="CssSyntaxError",this.reason=dd,vd&&(this.file=vd),md&&(this.source=md),Ad&&(this.plugin=Ad),typeof pd<"u"&&typeof fd<"u"&&(typeof pd=="number"?(this.line=pd,this.column=fd):(this.line=pd.line,this.column=pd.column,this.endLine=fd.line,this.endColumn=fd.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,sC)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(dd){if(!this.source)return"";let pd=this.source;dd==null&&(dd=nd.isColorSupported),od&&dd&&(pd=od(pd))
`+Ld+Nd("^")}return" "+Id(jd)+Od}).join(`
`)}toString(){let dd=this.showSourceCode();return dd&&(dd=`
`+dd+`
`),this.name+": "+this.message+dd}};qa.exports=ld,ld.default=ld}),$t$2=y$4((Ra,qa)=>{var nd={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function od(ud){return ud[0].toUpperCase()+ud.slice(1)}var ld=class{constructor(ud){this.builder=ud}atrule(ud,dd){let pd="@"+ud.name,fd=ud.params?this.rawValue(ud,"params"):"";if(typeof ud.raws.afterName<"u"?pd+=ud.raws.afterName:fd&&(pd+=" "),ud.nodes)this.block(ud,pd+fd);else{let md=(ud.raws.between||"")+(dd?";":"");this.builder(pd+fd+md,ud)}}beforeAfter(ud,dd){let pd;ud.type==="decl"?pd=this.raw(ud,null,"beforeDecl"):ud.type==="comment"?pd=this.raw(ud,null,"beforeComment"):dd==="before"?pd=this.raw(ud,null,"beforeRule"):pd=this.raw(ud,null,"beforeClose");let fd=ud.parent,md=0;for(;fd&&fd.type!=="root";)md+=1,fd=fd.parent;if(pd.includes(`
`)){let vd=this.raw(ud,null,"indent");if(vd.length)for(let Ad=0;Ad<md;Ad++)pd+=vd}return pd}block(ud,dd){let pd=this.raw(ud,"between","beforeOpen");this.builder(dd+pd+"{",ud,"start");let fd;ud.nodes&&ud.nodes.length?(this.body(ud),fd=this.raw(ud,"after")):fd=this.raw(ud,"after","emptyBody"),fd&&this.builder(fd),this.builder("}",ud,"end")}body(ud){let dd=ud.nodes.length-1;for(;dd>0&&ud.nodes[dd].type==="comment";)dd-=1;let pd=this.raw(ud,"semicolon");for(let fd=0;fd<ud.nodes.length;fd++){let md=ud.nodes[fd],vd=this.raw(md,"before");vd&&this.builder(vd),this.stringify(md,dd!==fd||pd)}}comment(ud){let dd=this.raw(ud,"left","commentLeft"),pd=this.raw(ud,"right","commentRight");this.builder("/*"+dd+ud.text+pd+"*/",ud)}decl(ud,dd){let pd=this.raw(ud,"between","colon"),fd=ud.prop+pd+this.rawValue(ud,"value");ud.important&&(fd+=ud.raws.important||" !important"),dd&&(fd+=";"),this.builder(fd,ud)}document(ud){this.body(ud)}raw(ud,dd,pd){let fd;if(pd||(pd=dd),dd&&(fd=ud.raws[dd],typeof fd<"u"))return fd;let md=ud.parent;if(pd==="before"&&(!md||md.type==="root"&&md.first===ud||md&&md.type==="document"))return"";if(!md)return nd[pd];let vd=ud.root();if(vd.rawCache||(vd.rawCache={}),typeof vd.rawCache[pd]<"u")return vd.rawCache[pd];if(pd==="before"||pd==="after")return this.beforeAfter(ud,pd);{let Ad="raw"+od(pd);this[Ad]?fd=this[Ad](vd,ud):vd.walk(Nd=>{if(fd=Nd.raws[dd],typeof fd<"u")return!1})}return typeof fd>"u"&&(fd=nd[pd]),vd.rawCache[pd]=fd,fd}rawBeforeClose(ud){let dd;return ud.walk(pd=>{if(pd.nodes&&pd.nodes.length>0&&typeof pd.raws.after<"u")return dd=pd.raws.after,dd.includes(`
`)&&(dd=dd.replace(/[^\n]+$/,"")),!1}),dd&&(dd=dd.replace(/\S/g,"")),dd}rawBeforeComment(ud,dd){let pd;return ud.walkComments(fd=>{if(typeof fd.raws.before<"u")return pd=fd.raws.before,pd.includes(`
`)&&(pd=pd.replace(/[^\n]+$/,"")),!1}),typeof pd>"u"?pd=this.raw(dd,null,"beforeDecl"):pd&&(pd=pd.replace(/\S/g,"")),pd}rawBeforeDecl(ud,dd){let pd;return ud.walkDecls(fd=>{if(typeof fd.raws.before<"u")return pd=fd.raws.before,pd.includes(`
`)&&(pd=pd.replace(/[^\n]+$/,"")),!1}),typeof pd>"u"?pd=this.raw(dd,null,"beforeRule"):pd&&(pd=pd.replace(/\S/g,"")),pd}rawBeforeOpen(ud){let dd;return ud.walk(pd=>{if(pd.type!=="decl"&&(dd=pd.raws.between,typeof dd<"u"))return!1}),dd}rawBeforeRule(ud){let dd;return ud.walk(pd=>{if(pd.nodes&&(pd.parent!==ud||ud.first!==pd)&&typeof pd.raws.before<"u")return dd=pd.raws.before,dd.includes(`
`)&&(dd=dd.replace(/[^\n]+$/,"")),!1}),dd&&(dd=dd.replace(/\S/g,"")),dd}rawColon(ud){let dd;return ud.walkDecls(pd=>{if(typeof pd.raws.between<"u")return dd=pd.raws.between.replace(/[^\s:]/g,""),!1}),dd}rawEmptyBody(ud){let dd;return ud.walk(pd=>{if(pd.nodes&&pd.nodes.length===0&&(dd=pd.raws.after,typeof dd<"u"))return!1}),dd}rawIndent(ud){if(ud.raws.indent)return ud.raws.indent;let dd;return ud.walk(pd=>{let fd=pd.parent;if(fd&&fd!==ud&&fd.parent&&fd.parent===ud&&typeof pd.raws.before<"u"){let md=pd.raws.before.split(`
`);return dd=md[md.length-1],dd=dd.replace(/\S/g,""),!1}}),dd}rawSemicolon(ud){let dd;return ud.walk(pd=>{if(pd.nodes&&pd.nodes.length&&pd.last.type==="decl"&&(dd=pd.raws.semicolon,typeof dd<"u"))return!1}),dd}rawValue(ud,dd){let pd=ud[dd],fd=ud.raws[dd];return fd&&fd.value===pd?fd.raw:pd}root(ud){this.body(ud),ud.raws.after&&this.builder(ud.raws.after)}rule(ud){this.block(ud,this.rawValue(ud,"selector")),ud.raws.ownSemicolon&&this.builder(ud.raws.ownSemicolon,ud,"end")}stringify(ud,dd){if(!this[ud.type])throw new Error("Unknown AST node type "+ud.type+". Maybe you need to change PostCSS stringifier.");this[ud.type](ud,dd)}};qa.exports=ld,ld.default=ld}),it$2=y$4((Ra,qa)=>{var nd=$t$2();function od(ld,ud){new nd(ud).stringify(ld)}qa.exports=od,od.default=od}),at$5=y$4((Ra,qa)=>{var{isClean:nd,my:od}=Ut$3(),ld=Ft$2(),ud=$t$2(),dd=it$2();function pd(md,vd){let Ad=new md.constructor;for(let Nd in md){if(!Object.prototype.hasOwnProperty.call(md,Nd)||Nd==="proxyCache")continue;let Id=md[Nd],Od=typeof Id;Nd==="parent"&&Od==="object"?vd&&(Ad[Nd]=vd):Nd==="source"?Ad[Nd]=Id:Array.isArray(Id)?Ad[Nd]=Id.map(Md=>pd(Md,Ad)):(Od==="object"&&Id!==null&&(Id=pd(Id)),Ad[Nd]=Id)}return Ad}var fd=class{constructor(md={}){this.raws={},this[nd]=!1,this[od]=!0;for(let vd in md)if(vd==="nodes"){this.nodes=[];for(let Ad of md[vd])typeof Ad.clone=="function"?this.append(Ad.clone()):this.append(Ad)}else this[vd]=md[vd]}addToError(md){if(md.postcssNode=this,md.stack&&this.source&&/\n\s{4}at /.test(md.stack)){let vd=this.source;md.stack=md.stack.replace(/\n\s{4}at /,`$&${vd.input.from}:${vd.start.line}:${vd.start.column}$&`)}return md}after(md){return this.parent.insertAfter(this,md),this}assign(md={}){for(let vd in md)this[vd]=md[vd];return this}before(md){return this.parent.insertBefore(this,md),this}cleanRaws(md){delete this.raws.before,delete this.raws.after,md||delete this.raws.between}clone(md={}){let vd=pd(this);for(let Ad in md)vd[Ad]=md[Ad];return vd}cloneAfter(md={}){let vd=this.clone(md);return this.parent.insertAfter(this,vd),vd}cloneBefore(md={}){let vd=this.clone(md);return this.parent.insertBefore(this,vd),vd}error(md,vd={}){if(this.source){let{end:Ad,start:Nd}=this.rangeBy(vd);return this.source.input.error(md,{column:Nd.column,line:Nd.line},{column:Ad.column,line:Ad.line},vd)}return new ld(md)}getProxyProcessor(){return{get(md,vd){return vd==="proxyOf"?md:vd==="root"?()=>md.root().toProxy():md[vd]},set(md,vd,Ad){return md[vd]===Ad||(md[vd]=Ad,(vd==="prop"||vd==="value"||vd==="name"||vd==="params"||vd==="important"||vd==="text")&&md.markDirty()),!0}}}markDirty(){if(this[nd]){this[nd]=!1;let md=this;for(;md=md.parent;)md[nd]=!1}}next(){if(!this.parent)return;let md=this.parent.index(this);return this.parent.nodes[md+1]}positionBy(md,vd){let Ad=this.source.start;if(md.index)Ad=this.positionInside(md.index,vd);else if(md.word){vd=this.toString();let Nd=vd.indexOf(md.word);Nd!==-1&&(Ad=this.positionInside(Nd,vd))}return Ad}positionInside(md,vd){let Ad=vd||this.toString(),Nd=this.source.start.column,Id=this.source.start.line;for(let Od=0;Od<md;Od++)Ad[Od]===`
`?(Nd=1,Id+=1):Nd+=1;return{column:Nd,line:Id}}prev(){if(!this.parent)return;let md=this.parent.index(this);return this.parent.nodes[md-1]}rangeBy(md){let vd={column:this.source.start.column,line:this.source.start.line},Ad=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:vd.column+1,line:vd.line};if(md.word){let Nd=this.toString(),Id=Nd.indexOf(md.word);Id!==-1&&(vd=this.positionInside(Id,Nd),Ad=this.positionInside(Id+md.word.length,Nd))}else md.start?vd={column:md.start.column,line:md.start.line}:md.index&&(vd=this.positionInside(md.index)),md.end?Ad={column:md.end.column,line:md.end.line}:typeof md.endIndex=="number"?Ad=this.positionInside(md.endIndex):md.index&&(Ad=this.positionInside(md.index+1));return(Ad.line<vd.line||Ad.line===vd.line&&Ad.column<=vd.column)&&(Ad={column:vd.column+1,line:vd.line}),{end:Ad,start:vd}}raw(md,vd){return new ud().raw(this,md,vd)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...md){if(this.parent){let vd=this,Ad=!1;for(let Nd of md)Nd===this?Ad=!0:Ad?(this.parent.insertAfter(vd,Nd),vd=Nd):this.parent.insertBefore(vd,Nd);Ad||this.remove()}return this}root(){let md=this;for(;md.parent&&md.parent.type!=="document";)md=md.parent;return md}toJSON(md,vd){let Ad={},Nd=vd==null;vd=vd||new Map;let Id=0;for(let Od in this){if(!Object.prototype.hasOwnProperty.call(this,Od)||Od==="parent"||Od==="proxyCache")continue;let Md=this[Od];if(Array.isArray(Md))Ad[Od]=Md.map(Ud=>typeof Ud=="object"&&Ud.toJSON?Ud.toJSON(null,vd):Ud);else if(typeof Md=="object"&&Md.toJSON)Ad[Od]=Md.toJSON(null,vd);else if(Od==="source"){let Ud=vd.get(Md.input);Ud==null&&(Ud=Id,vd.set(Md.input,Id),Id++),Ad[Od]={end:Md.end,inputId:Ud,start:Md.start}}else Ad[Od]=Md}return Nd&&(Ad.inputs=[...vd.keys()].map(Od=>Od.toJSON())),Ad}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(md=dd){md.stringify&&(md=md.stringify);let vd="";return md(this,Ad=>{vd+=Ad}),vd}warn(md,vd,Ad){let Nd={node:this};for(let Id in Ad)Nd[Id]=Ad[Id];return md.warn(vd,Nd)}get proxyOf(){return this}};qa.exports=fd,fd.default=fd}),lt$2=y$4((Ra,qa)=>{var nd=at$5(),od=class extends nd{constructor(ld){ld&&typeof ld.value<"u"&&typeof ld.value!="string"&&(ld={...ld,value:String(ld.value)}),super(ld),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};qa.exports=od,od.default=od}),Oe$3=y$4((Ra,qa)=>{var nd=at$5(),od=class extends nd{constructor(ld){super(ld),this.type="comment"}};qa.exports=od,od.default=od}),re$3=y$4((Ra,qa)=>{var{isClean:nd,my:od}=Ut$3(),ld=lt$2(),ud=Oe$3(),dd=at$5(),pd,fd,md,vd;function Ad(Od){return Od.map(Md=>(Md.nodes&&(Md.nodes=Ad(Md.nodes)),delete Md.source,Md))}function Nd(Od){if(Od[nd]=!1,Od.proxyOf.nodes)for(let Md of Od.proxyOf.nodes)Nd(Md)}var Id=class oC extends dd{append(...Md){for(let Ud of Md){let jd=this.normalize(Ud,this.last);for(let Ld of jd)this.proxyOf.nodes.push(Ld)}return this.markDirty(),this}cleanRaws(Md){if(super.cleanRaws(Md),this.nodes)for(let Ud of this.nodes)Ud.cleanRaws(Md)}each(Md){if(!this.proxyOf.nodes)return;let Ud=this.getIterator(),jd,Ld;for(;this.indexes[Ud]<this.proxyOf.nodes.length&&(jd=this.indexes[Ud],Ld=Md(this.proxyOf.nodes[jd],jd),Ld!==!1);)this.indexes[Ud]+=1;return delete this.indexes[Ud],Ld}every(Md){return this.nodes.every(Md)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let Md=this.lastEach;return this.indexes[Md]=0,Md}getProxyProcessor(){return{get(Md,Ud){return Ud==="proxyOf"?Md:Md[Ud]?Ud==="each"||typeof Ud=="string"&&Ud.startsWith("walk")?(...jd)=>Md[Ud](...jd.map(Ld=>typeof Ld=="function"?(Bd,Gd)=>Ld(Bd.toProxy(),Gd):Ld)):Ud==="every"||Ud==="some"?jd=>Md[Ud]((Ld,...Bd)=>jd(Ld.toProxy(),...Bd)):Ud==="root"?()=>Md.root().toProxy():Ud==="nodes"?Md.nodes.map(jd=>jd.toProxy()):Ud==="first"||Ud==="last"?Md[Ud].toProxy():Md[Ud]:Md[Ud]},set(Md,Ud,jd){return Md[Ud]===jd||(Md[Ud]=jd,(Ud==="name"||Ud==="params"||Ud==="selector")&&Md.markDirty()),!0}}}index(Md){return typeo
`," "];return nd.split(od,ld)},split(od,ld,ud){let dd=[],pd="",fd=!1,md=0,vd=!1,Ad="",Nd=!1;for(let Id of od)Nd?Nd=!1:Id==="\\"?Nd=!0:vd?Id===Ad&&(vd=!1):Id==='"'||Id==="'"?(vd=!0,Ad=Id):Id==="("?md+=1:Id===")"?md>0&&(md-=1):md===0&&ld.includes(Id)&&(fd=!0),fd?(pd!==""&&dd.push(pd.trim()),pd="",fd=!1):pd+=Id;return(ud||pd!=="")&&dd.push(pd.trim()),dd}};qa.exports=nd,nd.default=nd}),jt$1=y$4((Ra,qa)=>{var nd=re$3(),od=us(),ld=class extends nd{constructor(ud){super(ud),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return od.comma(this.selector)}set selectors(ud){let dd=this.selector?this.selector.match(/,\s*/):null,pd=dd?dd[0]:","+this.raw("between","beforeOpen");this.selector=ud.join(pd)}};qa.exports=ld,ld.default=ld,nd.registerRule(ld)}),Ht$2=y$4((Ra,qa)=>{var nd=lt$2(),od=Vt$2(),ld=Oe$3(),ud=Gt$2(),dd=Ae$4(),pd=jt$1(),fd={empty:!0,space:!0};function md(Ad){for(let Nd=Ad.length-1;Nd>=0;Nd--){let Id=Ad[Nd],Od=Id[3]||Id[2];if(Od)return Od}}var vd=class{constructor(Ad){this.input=Ad,this.root=new dd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:Ad,start:{column:1,line:1,offset:0}}}atrule(Ad){let Nd=new ud;Nd.name=Ad[1].slice(1),Nd.name===""&&this.unnamedAtrule(Nd,Ad),this.init(Nd,Ad[2]);let Id,Od,Md,Ud=!1,jd=!1,Ld=[],Bd=[];for(;!this.tokenizer.endOfFile();){if(Ad=this.tokenizer.nextToken(),Id=Ad[0],Id==="("||Id==="["?Bd.push(Id==="("?")":"]"):Id==="{"&&Bd.length>0?Bd.push("}"):Id===Bd[Bd.length-1]&&Bd.pop(),Bd.length===0)if(Id===";"){Nd.source.end=this.getPosition(Ad[2]),Nd.source.end.offset++,this.semicolon=!0;break}else if(Id==="{"){jd=!0;break}else if(Id==="}"){if(Ld.length>0){for(Md=Ld.length-1,Od=Ld[Md];Od&&Od[0]==="space";)Od=Ld[--Md];Od&&(Nd.source.end=this.getPosition(Od[3]||Od[2]),Nd.source.end.offset++)}this.end(Ad);break}else Ld.push(Ad);else Ld.push(Ad);if(this.tokenizer.endOfFile()){Ud=!0;break}}Nd.raws.between=this.spacesAndCommentsFromEnd(Ld),Ld.length?(Nd.raws.afterName=this.spacesAndCommentsFromStart(Ld),this.raw(Nd,"params",Ld),Ud&&(Ad=Ld[Ld.length-1],Nd.source.end=this.getPosition(Ad[3]||Ad[2]),Nd.source.end.offset++,this.spaces=Nd.raws.between,Nd.raws.between="")):(Nd.raws.afterName="",Nd.params=""),jd&&(Nd.nodes=[],this.current=Nd)}checkMissedSemicolon(Ad){let Nd=this.colon(Ad);if(Nd===!1)return;let Id=0,Od;for(let Md=Nd-1;Md>=0&&(Od=Ad[Md],!(Od[0]!=="space"&&(Id+=1,Id===2)));Md--);throw this.input.error("Missed semicolon",Od[0]==="word"?Od[3]+1:Od[2])}colon(Ad){let Nd=0,Id,Od,Md;for(let[Ud,jd]of Ad.entries()){if(Id=jd,Od=Id[0],Od==="("&&(Nd+=1),Od===")"&&(Nd-=1),Nd===0&&Od===":")if(!Md)this.doubleColon(Id);else{if(Md[0]==="word"&&Md[1]==="progid")continue;return Ud}Md=Id}return!1}comment(Ad){let Nd=new ld;this.init(Nd,Ad[2]),Nd.source.end=this.getPosition(Ad[3]||Ad[2]),Nd.source.end.offset++;let Id=Ad[1].slice(2,-2);if(/^\s*$/.test(Id))Nd.text="",Nd.raws.left=Id,Nd.raws.right="";else{let Od=Id.match(/^(\s*)([^]*\S)(\s*)$/);Nd.text=Od[2],Nd.raws.left=Od[1],Nd.raws.right=Od[3]}}createTokenizer(){this.tokenizer=od(this.input)}decl(Ad,Nd){let Id=new nd;this.init(Id,Ad[0][2]);let Od=Ad[Ad.length-1];for(Od[0]===";"&&(this.semicolon=!0,Ad.pop()),Id.source.end=this.getPosition(Od[3]||Od[2]||md(Ad)),Id.source.end.offset++;Ad[0][0]!=="word";)Ad.length===1&&this.unknownWord(Ad),Id.raws.before+=Ad.shift()[1];for(Id.source.start=this.getPosition(Ad[0][2]),Id.prop="";Ad.length;){let Ld=Ad[0][0];if(Ld===":"||Ld==="space"||Ld==="comment")break;Id.prop+=Ad.shift()[1]}Id.raws.between="";let Md;for(;Ad.length;)if(Md=Ad.shift(),Md[0]===":"){Id.raws.between+=Md[1];break}else Md[0]==="word"&&/\w/.test(Md[1])&&this.unknownWord([Md]),Id.raws.between+=Md[1];(Id.prop[0]==="_"||Id.prop[0]==="*")&&(Id.raws.before+=Id.prop[0],Id.prop=Id.prop.slice(1));let Ud=[],jd;for(;Ad.length&&(jd=Ad[0][0],!(jd!=="space"&&jd!=="comment"));)Ud.push(Ad.shift());this.precheckMissedSemicolon(Ad);for(let Ld=Ad.length-1;Ld>=0;Ld--){if(Md=Ad[Ld],Md[1].toLowerCase()==="!important"){Id.important=!0;let Bd=this.stringFrom(Ad,Ld);Bd=this.spacesFromEnd(Ad)+Bd,Bd!==" !important"&&(Id.r
`);Ld=new Array(Gd.length);let qd=0;for(let zd=0,Xd=Gd.length;zd<Xd;zd++)Ld[zd]=qd,qd+=Gd[zd].length+1;this[Nd]=Ld}jd=Ld[Ld.length-1];let Bd=0;if(Ud>=jd)Bd=Ld.length-1;else{let Gd=Ld.length-2,qd;for(;Bd<Gd;)if(qd=Bd+(Gd-Bd>>1),Ud<Ld[qd])Gd=qd-1;else if(Ud>=Ld[qd+1])Bd=qd+1;else{Bd=qd;break}}return{col:Ud-Ld[Bd]+1,line:Bd+1}}mapResolve(Ud){return/^\w+:\/\//.test(Ud)?Ud:pd(this.map.consumer().sourceRoot||this.map.root||".",Ud)}origin(Ud,jd,Ld,Bd){if(!this.map)return!1;let Gd=this.map.consumer(),qd=Gd.originalPositionFor({column:jd,line:Ud});if(!qd.source)return!1;let zd;typeof Ld=="number"&&(zd=Gd.originalPositionFor({column:Bd,line:Ld}));let Xd;dd(qd.source)?Xd=ud(qd.source):Xd=new URL(qd.source,this.map.consumer().sourceRoot||ud(this.map.mapFile));let gf={column:qd.column,endColumn:zd&&zd.column,endLine:zd&&zd.line,line:qd.line,url:Xd.toString()};if(Xd.protocol==="file:")if(ld)gf.file=ld(Xd);else throw new Error("file: protocol is not available in this PostCSS build");let Yd=Gd.sourceContentFor(qd.source);return Yd&&(gf.source=Yd),gf}toJSON(){let Ud={};for(let jd of["hasBOM","css","file","id"])this[jd]!=null&&(Ud[jd]=this[jd]);return this.map&&(Ud.map={...this.map},Ud.map.consumerCache&&(Ud.map.consumerCache=void 0)),Ud}get from(){return this.file||this.id}};qa.exports=Md,Md.default=Md,md&&md.registerInput&&md.registerInput(Md)}),pt$2=y$4((Ra,qa)=>{var nd=re$3(),od=Ht$2(),ld=Re$4();function ud(dd,pd){let fd=new ld(dd,pd),md=new od(fd);try{md.parse()}catch(vd){throw vd}return md.root}qa.exports=ud,ud.default=ud,nd.registerParse(ud)}),no$1=y$4((Ra,qa)=>{var nd=Vt$2(),od=Re$4();qa.exports={isInlineComment(ld){if(ld[0]==="word"&&ld[1].slice(0,2)==="//"){let ud=ld,dd=[],pd,fd;for(;ld;){if(/\r?\n/.test(ld[1])){if(/['"].*\r?\n/.test(ld[1])){dd.push(ld[1].substring(0,ld[1].indexOf(`
`))),fd=ld[1].substring(ld[1].indexOf(`
`));let vd=this.input.css.valueOf().substring(this.tokenizer.position());fd+=vd,pd=ld[3]+vd.length-fd.length}else this.tokenizer.back(ld);break}dd.push(ld[1]),pd=ld[2],ld=this.tokenizer.nextToken({ignoreUnclosed:!0})}let md=["comment",dd.join(""),ud[2],pd];return this.inlineComment(md),fd&&(this.input=new od(fd),this.tokenizer=nd(this.input)),!0}else if(ld[1]==="/"){let ud=this.tokenizer.nextToken({ignoreUnclosed:!0});if(ud[0]==="comment"&&/^\/\*/.test(ud[1]))return ud[0]="word",ud[1]=ud[1].slice(1),ld[1]="//",this.tokenizer.back(ud),qa.exports.isInlineComment.bind(this)(ld)}return!1}}}),oo$1=y$4((Ra,qa)=>{qa.exports={interpolation(nd){let od=[nd,this.tokenizer.nextToken()],ld=["word","}"];if(od[0][1].length>1||od[1][0]!=="{")return this.tokenizer.back(od[1]),!1;for(nd=this.tokenizer.nextToken();nd&&ld.includes(nd[0]);)od.push(nd),nd=this.tokenizer.nextToken();let ud=od.map(md=>md[1]),[dd]=od,pd=od.pop(),fd=["word",ud.join(""),dd[2],pd[2]];return this.tokenizer.back(nd),this.tokenizer.back(fd),!0}}}),uo$1=y$4((Ra,qa)=>{var nd=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,od=/\.[0-9]/,ld=ud=>{let[,dd]=ud,[pd]=dd;return(pd==="."||pd==="#")&&nd.test(dd)===!1&&od.test(dd)===!1};qa.exports={isMixinToken:ld}}),co$2=y$4((Ra,qa)=>{var nd=Vt$2(),od=/^url\((.+)\)/;qa.exports=ld=>{let{name:ud,params:dd=""}=ld;if(ud==="import"&&dd.length){ld.import=!0;let pd=nd({css:dd});for(ld.filename=dd.replace(od,"$1");!pd.endOfFile();){let[fd,md]=pd.nextToken();if(fd==="word"&&md==="url")return;if(fd==="brackets"){ld.options=md,ld.filename=dd.replace(md,"").trim();break}}}}}),mo$1=y$4((Ra,qa)=>{var nd=/:$/,od=/^:(\s+)?/;qa.exports=ld=>{let{name:ud,params:dd=""}=ld;if(ld.name.slice(-1)===":"){if(nd.test(ud)){let[pd]=ud.match(nd);ld.name=ud.replace(pd,""),ld.raws.afterName=pd+(ld.raws.afterName||""),ld.variable=!0,ld.value=ld.params}if(od.test(dd)){let[pd]=dd.match(od);ld.value=dd.replace(pd,""),ld.raws.afterName=(ld.raws.afterName||"")+pd,ld.variable=!0}}}}),go$1=y$4((Ra,qa)=>{var nd=Oe$3(),od=Ht$2(),{isInlineComment:ld}=no$1(),{interpolation:ud}=oo$1(),{isMixinToken:dd}=uo$1(),pd=co$2(),fd=mo$1(),md=/(!\s*important)$/i;qa.exports=class extends od{constructor(...vd){super(...vd),this.lastNode=null}atrule(vd){ud.bind(this)(vd)||(super.atrule(vd),pd(this.lastNode),fd(this.lastNode))}decl(...vd){super.decl(...vd),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(vd){vd[0][1]=` ${vd[0][1]}`;let Ad=vd.findIndex(Md=>Md[0]==="("),Nd=vd.reverse().find(Md=>Md[0]===")"),Id=vd.reverse().indexOf(Nd),Od=vd.splice(Ad,Id).map(Md=>Md[1]).join("");for(let Md of vd.reverse())this.tokenizer.back(Md);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=Od}init(vd,Ad,Nd){super.init(vd,Ad,Nd),this.lastNode=vd}inlineComment(vd){let Ad=new nd,Nd=vd[1].slice(2);if(this.init(Ad,vd[2]),Ad.source.end=this.getPosition(vd[3]||vd[2]),Ad.inline=!0,Ad.raws.begin="//",/^\s*$/.test(Nd))Ad.text="",Ad.raws.left=Nd,Ad.raws.right="";else{let Id=Nd.match(/^(\s*)([^]*[^\s])(\s*)$/);[,Ad.raws.left,Ad.text,Ad.raws.right]=Id}}mixin(vd){let[Ad]=vd,Nd=Ad[1].slice(0,1),Id=vd.findIndex(Ld=>Ld[0]==="brackets"),Od=vd.findIndex(Ld=>Ld[0]==="("),Md="";if((Id<0||Id>3)&&Od>0){let Ld=vd.reduce((df,Ef,_f)=>Ef[0]===")"?_f:df),Bd=vd.slice(Od,Ld+Od).map(df=>df[1]).join(""),[Gd]=vd.slice(Od),qd=[Gd[2],Gd[3]],[zd]=vd.slice(Ld,Ld+1),Xd=[zd[2],zd[3]],gf=["brackets",Bd].concat(qd,Xd),Yd=vd.slice(0,Od),Zd=vd.slice(Ld+1);vd=Yd,vd.push(gf),vd=vd.concat(Zd)}let Ud=[];for(let Ld of vd)if((Ld[1]==="!"||Ud.length)&&Ud.push(Ld),Ld[1]==="important")break;if(Ud.length){let[Ld]=Ud,Bd=vd.indexOf(Ld),Gd=Ud[Ud.length-1],qd=[Ld[2],Ld[3]],zd=[Gd[4],Gd[5]],Xd=["word",Ud.map(gf=>gf[1]).join("")].concat(qd,zd);vd.splice(Bd,Ud.length,Xd)}let jd=vd.findIndex(Ld=>md.test(Ld[1]));jd>0&&([,Md]=vd[jd],vd.splice(jd,1));for(let Ld of vd.reverse())this.tokenizer.back(Ld);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=Nd,Md&&(this.lastNode.important=!0,this.lastNode.raws.important=Md)}other(vd){ld.bind(this)(vd)||super.other(vd)}rule(vd){let
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let df=zd(...Zd);return df.postcssPlugin=qd,df.postcssVersion=new dd().version,df}let Yd;return Object.defineProperty(gf,"postcss",{get(){return Yd||(Yd=gf()),Yd}}),gf.process=function(Zd,df,Ef){return Gd([gf(Ef)]).process(Zd,df)},gf},Gd.stringify=pd,Gd.parse=Md,Gd.fromJSON=fd,Gd.list=Ud,Gd.comment=qd=>new Ad(qd),Gd.atRule=qd=>new Nd(qd),Gd.decl=qd=>new od(qd),Gd.rule=qd=>new jd(qd),Gd.root=qd=>new Ld(qd),Gd.document=qd=>new md(qd),Gd.CssSyntaxError=nd,Gd.Declaration=od,Gd.Container=ud,Gd.Processor=dd,Gd.Document=md,Gd.Comment=Ad,Gd.Warning=vd,Gd.AtRule=Nd,Gd.Result=Id,Gd.Input=Od,Gd.Rule=jd,Gd.Root=Ld,Gd.Node=Bd,ld.registerPostcss(Gd),qa.exports=Gd,Gd.default=Gd}),Ho$1=y$4((Ra,qa)=>{var{Container:nd}=Zt$2(),od=class extends nd{constructor(ld){super(ld),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};qa.exports=od}),Jo$1=y$4((Ra,qa)=>{var nd=/[\t\n\f\r "#'()/;[\\\]{}]/g,od=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ld=/.[\r\n"'(/\\]/,ud=/[\da-f]/i,dd=/[\n\f\r]/g;qa.exports=function(pd,fd={}){let md=pd.css.valueOf(),vd=fd.ignoreErrors,Ad,Nd,Id,Od,Md,Ud,jd,Ld,Bd,Gd=md.length,qd=0,zd=[],Xd=[],gf;function Yd(){return qd}function Zd(vf){throw pd.error("Unclosed "+vf,qd)}function df(){return Xd.length===0&&qd>=Gd}function Ef(){let vf=1,Af=!1,Df=!1;for(;vf>0;)Nd+=1,md.length<=Nd&&Zd("interpolation"),Ad=md.charCodeAt(Nd),Ld=md.charCodeAt(Nd+1),Af?!Df&&Ad===Af?(Af=!1,Df=!1):Ad===92?Df=!Df:Df&&(Df=!1):Ad===39||Ad===34?Af=Ad:Ad===125?vf-=1:Ad===35&&Ld===123&&(vf+=1)}function _f(vf){if(Xd.length)return Xd.pop();if(qd>=Gd)return;let Af=vf?vf.ignoreUnclosed:!1;switch(Ad=md.charCodeAt(qd),Ad){case 10:case 32:case 9:case 13:case 12:{Nd=qd;do Nd+=1,Ad=md.charCodeAt(Nd);while(Ad===32||Ad===10||Ad===9||Ad===13||Ad===12);Bd=["space",md.slice(qd,Nd)],qd=Nd-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Df=String.fromCharCode(Ad);Bd=[Df,Df,qd];break}case 44:{Bd=["word",",",qd,qd+1];break}case 40:{if(jd=zd.length?zd.pop()[1]:"",Ld=md.charCodeAt(qd+1),jd==="url"&&Ld!==39&&Ld!==34){for(gf=1,Ud=!1,Nd=qd+1;Nd<=md.length-1;){if(Ld=md.charCodeAt(Nd),Ld===92)Ud=!Ud;else if(Ld===40)gf+=1;else if(Ld===41&&(gf-=1,gf===0))break;Nd+=1}Od=md.slice(qd,Nd+1),Bd=["brackets",Od,qd,Nd],qd=Nd}else Nd=md.indexOf(")",qd+1),Od=md.slice(qd,Nd+1),Nd===-1||ld.test(Od)?Bd=["(","(",qd]:(Bd=["brackets",Od,qd,Nd],qd=Nd);break}case 39:case 34:{for(Id=Ad,Nd=qd,Ud=!1;Nd<Gd&&(Nd++,Nd===Gd&&Zd("string"),Ad=md.charCodeAt(Nd),Ld=md.charCodeAt(Nd+1),!(!Ud&&Ad===Id));)Ad===92?Ud=!Ud:Ud?Ud=!1:Ad===35&&Ld===123&&Ef();Bd=["string",md.slice(qd,Nd+1),qd,Nd],qd=Nd;break}case 64:{nd.lastIndex=qd+1,nd.test(md),nd.lastIndex===0?Nd=md.length-1:Nd=nd.lastIndex-2,Bd=["at-word",md.slice(qd,Nd+1),qd,Nd],qd=Nd;break}case 92:{for(Nd=qd,Md=!0;md.charCodeAt(Nd+1)===92;)Nd+=1,Md=!Md;if(Ad=md.charCodeAt(Nd+1),Md&&Ad!==47&&Ad!==32&&Ad!==10&&Ad!==9&&Ad!==13&&Ad!==12&&(Nd+=1,ud.test(md.charAt(Nd)))){for(;ud.test(md.charAt(Nd+1));)Nd+=1;md.charCodeAt(Nd+1)===32&&(Nd+=1)}Bd=["word",md.slice(qd,Nd+1),qd,Nd],qd=Nd;break}default:Ld=md.charCodeAt(qd+1),Ad===35&&Ld===123?(Nd=qd,Ef(),Od=md.slice(qd,Nd+1),Bd=["word",Od,qd,Nd],qd=Nd):Ad===47&&Ld===42?(Nd=md.indexOf("*/",qd+2)+1,Nd===0&&(vd||Af?Nd=md.length:Zd("comment")),Bd=["comment",md.slice(qd,Nd+1),qd,Nd],qd=Nd):Ad===47&&Ld===47?(dd.lastIndex=qd+1,dd.test(md),dd.lastIndex===0?Nd=md.length-1:Nd=dd.lastIndex-2,Od=md.slice(qd,Nd+1),Bd=["comment",Od,qd,Nd,"inline"],qd=Nd):(od.lastIndex=qd+1,od.test(md),od.lastIndex===0?Nd=md.length-1:Nd=od.lastIndex-2,Bd=["word",md.slice(qd,Nd+1),qd,Nd],zd.push(Bd),qd=Nd);break}return qd++,Bd}function xf(vf){Xd.push(vf)}return{back:xf,endOfFile:df,nextToken:_f,position:Yd}}}),Zo$1=y$4((Ra,qa)=>{var{Comment:nd}=Zt$2(),od=Ht$2(),ld=Ho$1(),ud=Jo$1(),dd=class extends od{atrule(pd){let fd=pd[1],md=pd;for(;!this.tokenizer.endOfFile();){let vd=this.tokenizer.nextToken();if(vd[0]==="word"&&vd[2]===md[3]+1)fd+=vd[1],md=vd;else{this.tokenizer.back(vd);break}}super.atrule(["at-word",fd,pd[2],md[3]])}comment(pd){if(pd[4]==="inline"){let f
`))break;Ad[0]==="("?md+=1:Ad[0]===")"?md-=1:md===0&&Ad[0]===":"&&(fd=!0)}if(!fd||vd.trim()===""||/^[#:A-Za-z-]/.test(vd))super.rule(pd);else{pd.pop();let Ad=new ld;this.init(Ad,pd[0][2]);let Nd;for(let Od=pd.length-1;Od>=0;Od--)if(pd[Od][0]!=="space"){Nd=pd[Od];break}if(Nd[3]){let Od=this.input.fromOffset(Nd[3]);Ad.source.end={column:Od.col,line:Od.line,offset:Nd[3]+1}}else{let Od=this.input.fromOffset(Nd[2]);Ad.source.end={column:Od.col,line:Od.line,offset:Nd[2]+1}}for(;pd[0][0]!=="word";)Ad.raws.before+=pd.shift()[1];if(pd[0][2]){let Od=this.input.fromOffset(pd[0][2]);Ad.source.start={column:Od.col,line:Od.line,offset:pd[0][2]}}for(Ad.prop="";pd.length;){let Od=pd[0][0];if(Od===":"||Od==="space"||Od==="comment")break;Ad.prop+=pd.shift()[1]}Ad.raws.between="";let Id;for(;pd.length;)if(Id=pd.shift(),Id[0]===":"){Ad.raws.between+=Id[1];break}else Ad.raws.between+=Id[1];(Ad.prop[0]==="_"||Ad.prop[0]==="*")&&(Ad.raws.before+=Ad.prop[0],Ad.prop=Ad.prop.slice(1)),Ad.raws.between+=this.spacesAndCommentsFromStart(pd),this.precheckMissedSemicolon(pd);for(let Od=pd.length-1;Od>0;Od--){if(Id=pd[Od],Id[1]==="!important"){Ad.important=!0;let Md=this.stringFrom(pd,Od);Md=this.spacesFromEnd(pd)+Md,Md!==" !important"&&(Ad.raws.important=Md);break}else if(Id[1]==="important"){let Md=pd.slice(0),Ud="";for(let jd=Od;jd>0;jd--){let Ld=Md[jd][0];if(Ud.trim().indexOf("!")===0&&Ld!=="space")break;Ud=Md.pop()[1]+Ud}Ud.trim().indexOf("!")===0&&(Ad.important=!0,Ad.raws.important=Ud,pd=Md)}if(Id[0]!=="space"&&Id[0]!=="comment")break}this.raw(Ad,"value",pd),Ad.value.includes(":")&&this.checkMissedSemicolon(pd),this.current=Ad}}};qa.exports=dd}),ta=y$4((Ra,qa)=>{var{Input:nd}=Zt$2(),od=Zo$1();qa.exports=function(ld,ud){let dd=new nd(ld,ud),pd=new od(dd);return pd.parse(),pd.root}}),Os=y$4(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(nd){this.after=nd.after,this.before=nd.before,this.type=nd.type,this.value=nd.value,this.sourceIndex=nd.sourceIndex}Ra.default=qa}),As=y$4(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});var qa=Os(),nd=od(qa);function od(ud){return ud&&ud.__esModule?ud:{default:ud}}function ld(ud){var dd=this;this.constructor(ud),this.nodes=ud.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(pd){pd.parent=dd})}ld.prototype=Object.create(nd.default.prototype),ld.constructor=nd.default,ld.prototype.walk=function(ud,dd){for(var pd=typeof ud=="string"||ud instanceof RegExp,fd=pd?dd:ud,md=typeof ud=="string"?new RegExp(ud):ud,vd=0;vd<this.nodes.length;vd++){var Ad=this.nodes[vd],Nd=pd?md.test(Ad.type):!0;if(Nd&&fd&&fd(Ad,vd,this.nodes)===!1||Ad.nodes&&Ad.walk(ud,dd)===!1)return!1}return!0},ld.prototype.each=function(){for(var ud=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],dd=0;dd<this.nodes.length;dd++){var pd=this.nodes[dd];if(ud(pd,dd,this.nodes)===!1)return!1}return!0},Ra.default=ld}),aa$1=y$4(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.parseMediaFeature=dd,Ra.parseMediaQuery=pd,Ra.parseMediaList=fd;var qa=Os(),nd=ud(qa),od=As(),ld=ud(od);function ud(md){return md&&md.__esModule?md:{default:md}}function dd(md){var vd=arguments.length<=1||arguments[1]===void 0?0:arguments[1],Ad=[{mode:"normal",character:null}],Nd=[],Id=0,Od="",Md=null,Ud=null,jd=vd,Ld=md;md[0]==="("&&md[md.length-1]===")"&&(Ld=md.substring(1,md.length-1),jd++);for(var Bd=0;Bd<Ld.length;Bd++){var Gd=Ld[Bd];if((Gd==="'"||Gd==='"')&&(Ad[Id].isCalculationEnabled===!0?(Ad.push({mode:"string",isCalculationEnabled:!1,character:Gd}),Id++):Ad[Id].mode==="string"&&Ad[Id].character===Gd&&Ld[Bd-1]!=="\\"&&(Ad.pop(),Id--)),Gd==="{"?(Ad.push({mode:"interpolation",isCalculationEnabled:!0}),Id++):Gd==="}"&&(Ad.pop(),Id--),Ad[Id].mode==="normal"&&Gd===":"){var qd=Ld.substring(Bd+1);Ud={type:"value",before:/^(\s*)/.exec(qd)[1],after:/(\s*)$/.exec(qd)[1],value:qd.trim()},Ud.sourceIndex=Ud.before.length
`),Jf=jf.length-1,Jf>0?(Uf=Sf+Jf,Of=Af-jf[Jf].length):(Uf=Sf,Of=Tf),_f.push(["comment",eh,Sf,Yf-Tf,Uf,Af-Of,Yf]),Tf=Of,Sf=Uf,Yf=Af):(Zd.lastIndex=Yf+1,Zd.test(xf),Zd.lastIndex===0?Af=xf.length-1:Af=Zd.lastIndex-2,_f.push(["word",xf.slice(Yf,Af+1),Sf,Yf-Tf,Sf,Af-Tf,Yf]),Yf=Af);break}Yf++}return _f}qa.exports=Ra.default}),tu$1=y$4((Ra,qa)=>{Ra.__esModule=!0;var nd=function(){function Tf(Sf,Yf){for(var ih=0;ih<Yf.length;ih++){var Th=Yf[ih];Th.enumerable=Th.enumerable||!1,Th.configurable=!0,"value"in Th&&(Th.writable=!0),Object.defineProperty(Sf,Th.key,Th)}}return function(Sf,Yf,ih){return Yf&&Tf(Sf.prototype,Yf),ih&&Tf(Sf,ih),Sf}}(),od=qs(),ld=Wf(od),ud=Ls(),dd=Wf(ud),pd=Ds(),fd=Wf(pd),md=ga(),vd=Wf(md),Ad=xa(),Nd=Wf(Ad),Id=ka(),Od=Wf(Id),Md=Sa(),Ud=Wf(Md),jd=Oa(),Ld=Wf(jd),Bd=Aa(),Gd=Wf(Bd),qd=Pa(),zd=Wf(qd),Xd=Ia(),gf=Wf(Xd),Yd=La(),Zd=Wf(Yd),df=Ma(),Ef=Wf(df),_f=Ua(),xf=Wf(_f),vf=$a(),Af=Wf(vf),Df=Ya(),jf=Wf(Df),Jf=Xa(),eh=Wf(Jf),th=D$3(),Uf=Of(th);function Of(Tf){if(Tf&&Tf.__esModule)return Tf;var Sf={};if(Tf!=null)for(var Yf in Tf)Object.prototype.hasOwnProperty.call(Tf,Yf)&&(Sf[Yf]=Tf[Yf]);return Sf.default=Tf,Sf}function Wf(Tf){return Tf&&Tf.__esModule?Tf:{default:Tf}}function qf(Tf,Sf){if(!(Tf instanceof Sf))throw new TypeError("Cannot call a class as a function")}var zf=function(){function Tf(Sf){qf(this,Tf),this.input=Sf,this.lossy=Sf.options.lossless===!1,this.position=0,this.root=new vd.default;var Yf=new Nd.default;return this.root.append(Yf),this.current=Yf,this.lossy?this.tokens=(0,eh.default)({safe:Sf.safe,css:Sf.css.trim()}):this.tokens=(0,eh.default)(Sf),this.loop()}return Tf.prototype.attribute=function(){var Sf="",Yf=void 0,ih=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)Sf+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~Sf.indexOf("]")&&this.error("Expected a closing square bracket.");var Th=Sf.split(/((?:[*~^$|]?=))([^]*)/),sh=Th[0].split(/(\|)/g),Nf={operator:Th[1],value:Th[2],source:{start:{line:ih[2],column:ih[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:ih[4]};if(sh.length>1?(sh[0]===""&&(sh[0]=!0),Nf.attribute=this.parseValue(sh[2]),Nf.namespace=this.parseNamespace(sh[0])):Nf.attribute=this.parseValue(Th[0]),Yf=new Zd.default(Nf),Th[2]){var ph=Th[2].split(/(\s+i\s*?)$/),Oh=ph[0].trim();Yf.value=this.lossy?Oh:ph[0],ph[1]&&(Yf.insensitive=!0,this.lossy||(Yf.raws.insensitive=ph[1])),Yf.quoted=Oh[0]==="'"||Oh[0]==='"',Yf.raws.unquoted=Yf.quoted?Oh.slice(1,-1):Oh}this.newNode(Yf),this.position++},Tf.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var Sf=new xf.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"?(Sf.spaces.before=this.parseSpace(this.currToken[1]),Sf.source.start.line=this.nextToken[2],Sf.source.start.column=this.nextToken[3],Sf.source.end.column=this.nextToken[3],Sf.source.end.line=this.nextToken[2],Sf.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?Sf.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?Sf.value=this.currToken[1]:this.currToken[0]==="space"&&(Sf.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(Sf)},Tf.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var Sf=new Nd.default;this.current.parent.append(Sf),this.current=Sf,this.position++},Tf.prototype.comment=function(){var Sf=new Ud.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(Sf),this.position++},Tf.prototype.error=function(Sf){throw new this.input.error(Sf)},Tf.prototype.missingBackslash
`?(ud=1,dd+=1):ud+=1;return{line:dd,column:ud}}positionBy(od){let ld=this.source.start;if(Object(od).index)ld=this.positionInside(od.index);else if(Object(od).word){let ud=this.toString().indexOf(od.word);ud!==-1&&(ld=this.positionInside(ud))}return ld}}}),U$5=y$4((Ra,qa)=>{var nd=z$4(),od=class extends nd{constructor(ld){super(ld),this.nodes||(this.nodes=[])}push(ld){return ld.parent=this,this.nodes.push(ld),this}each(ld){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let ud=this.lastEach,dd,pd;if(this.indexes[ud]=0,!!this.nodes){for(;this.indexes[ud]<this.nodes.length&&(dd=this.indexes[ud],pd=ld(this.nodes[dd],dd),pd!==!1);)this.indexes[ud]+=1;return delete this.indexes[ud],pd}}walk(ld){return this.each((ud,dd)=>{let pd=ld(ud,dd);return pd!==!1&&ud.walk&&(pd=ud.walk(ld)),pd})}walkType(ld,ud){if(!ld||!ud)throw new Error("Parameters {type} and {callback} are required.");let dd=typeof ld=="function";return this.walk((pd,fd)=>{if(dd&&pd instanceof ld||!dd&&pd.type===ld)return ud.call(this,pd,fd)})}append(ld){return ld.parent=this,this.nodes.push(ld),this}prepend(ld){return ld.parent=this,this.nodes.unshift(ld),this}cleanRaws(ld){if(super.cleanRaws(ld),this.nodes)for(let ud of this.nodes)ud.cleanRaws(ld)}insertAfter(ld,ud){let dd=this.index(ld),pd;this.nodes.splice(dd+1,0,ud);for(let fd in this.indexes)pd=this.indexes[fd],dd<=pd&&(this.indexes[fd]=pd+this.nodes.length);return this}insertBefore(ld,ud){let dd=this.index(ld),pd;this.nodes.splice(dd,0,ud);for(let fd in this.indexes)pd=this.indexes[fd],dd<=pd&&(this.indexes[fd]=pd+this.nodes.length);return this}removeChild(ld){ld=this.index(ld),this.nodes[ld].parent=void 0,this.nodes.splice(ld,1);let ud;for(let dd in this.indexes)ud=this.indexes[dd],ud>=ld&&(this.indexes[dd]=ud-1);return this}removeAll(){for(let ld of this.nodes)ld.parent=void 0;return this.nodes=[],this}every(ld){return this.nodes.every(ld)}some(ld){return this.nodes.some(ld)}index(ld){return typeof ld=="number"?ld:this.nodes.indexOf(ld)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let ld=this.nodes.map(String).join("");return this.value&&(ld=this.value+ld),this.raws.before&&(ld=this.raws.before+ld),this.raws.after&&(ld+=this.raws.after),ld}};od.registerWalker=ld=>{let ud="walk"+ld.name;ud.lastIndexOf("s")!==ud.length-1&&(ud+="s"),!od.prototype[ud]&&(od.prototype[ud]=function(dd){return this.walkType(ld,dd)})},qa.exports=od}),uu$1=y$4((Ra,qa)=>{var nd=U$5();qa.exports=class extends nd{constructor(od){super(od),this.type="root"}}}),cu$2=y$4((Ra,qa)=>{var nd=U$5();qa.exports=class extends nd{constructor(od){super(od),this.type="value",this.unbalanced=0}}}),hu$1=y$4((Ra,qa)=>{var nd=U$5(),od=class extends nd{constructor(ld){super(ld),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};nd.registerWalker(od),qa.exports=od}),mu$1=y$4((Ra,qa)=>{var nd=U$5(),od=z$4(),ld=class extends od{constructor(ud){super(ud),this.type="colon"}};nd.registerWalker(ld),qa.exports=ld}),wu$1=y$4((Ra,qa)=>{var nd=U$5(),od=z$4(),ld=class extends od{constructor(ud){super(ud),this.type="comma"}};nd.registerWalker(ld),qa.exports=ld}),vu$1=y$4((Ra,qa)=>{var nd=U$5(),od=z$4(),ld=class extends od{constructor(ud){super(ud),this.type="comment",this.inline=Object(ud).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};nd.registerWalker(ld),qa.exports=ld}),_u$1=y$4((Ra,qa)=>{var nd=U$5(),od=class extends nd{constructor(ld){super(ld),this.type="func",this.unbalanced=-1}};nd.registerWalker(od),qa.exports=od}),Eu$1=y$4((Ra,qa)=>{var nd=U$5(),od=z$4(),ld=class extends od{constructor(ud){super(ud),this.type="number",this.unit=Object(ud).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};nd.registerWalker(ld),qa.exports=ld}),Tu$1=y$4((Ra,qa)=>{var nd=U$5(),od=z$4(),ld=class extends od{constructor(ud){super(u
`,Md+2);Bd=xf!==-1?xf-1:Nd}Xd=Ad.slice(Md,Bd+1),qd=Xd.split(`
`),zd=qd.length-1,zd>0?(gf=Od+zd,Yd=Bd-qd[zd].length):(gf=Od,Yd=Id),vd.push(["comment",Xd,Od,Md-Id,gf,Bd-Yd,Md]),Id=Yd,Od=gf,Md=Bd}else if(Ld===35&&!ud.test(Ad.slice(Md+1,Md+2)))Bd=Md+1,vd.push(["#",Ad.slice(Md,Bd),Od,Md-Id,Od,Bd-Id,Md]),Md=Bd-1;else if((Ld===117||Ld===85)&&Ad.charCodeAt(Md+1)===43){Bd=Md+2;do Bd+=1,Ld=Ad.charCodeAt(Bd);while(Bd<Nd&&dd.test(Ad.slice(Bd,Bd+1)));vd.push(["unicoderange",Ad.slice(Md,Bd),Od,Md-Id,Od,Bd-Id,Md]),Md=Bd-1}else if(Ld===47)Bd=Md+1,vd.push(["operator",Ad.slice(Md,Bd),Od,Md-Id,Od,Bd-Id,Md]),Md=Bd-1;else{let xf=od;if(Ld>=48&&Ld<=57&&(xf=ld),xf.lastIndex=Md+1,xf.test(Ad),xf.lastIndex===0?Bd=Ad.length-1:Bd=xf.lastIndex-2,xf===ld||Ld===46){let vf=Ad.charCodeAt(Bd),Af=Ad.charCodeAt(Bd+1),Df=Ad.charCodeAt(Bd+2);(vf===101||vf===69)&&(Af===45||Af===43)&&Df>=48&&Df<=57&&(ld.lastIndex=Bd+2,ld.test(Ad),ld.lastIndex===0?Bd=Ad.length-1:Bd=ld.lastIndex-2)}vd.push(["word",Ad.slice(Md,Bd+1),Od,Md-Id,Od,Bd-Id,Md]),Md=Bd}break}Md++}return vd}}),$u$1=y$4((Ra,qa)=>{var nd=class extends Error{constructor(od){super(od),this.name=this.constructor.name,this.message=od||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(od).stack}};qa.exports=nd}),Vu$1=y$4((Ra,qa)=>{var nd=uu$1(),od=cu$2(),ld=hu$1(),ud=mu$1(),dd=wu$1(),pd=vu$1(),fd=_u$1(),md=Eu$1(),vd=Tu$1(),Ad=Cu$1(),Nd=Nu$1(),Id=Ru$1(),Od=qu$1(),Md=Uu$1(),Ud=qs(),jd=Ls(),Ld=Ds(),Bd=$u$1();function Gd(qd){return qd.sort((zd,Xd)=>zd-Xd)}qa.exports=class{constructor(qd,zd){let Xd={loose:!1};this.cache=[],this.input=qd,this.options=Object.assign({},Xd,zd),this.position=0,this.unbalanced=0,this.root=new nd;let gf=new od;this.root.append(gf),this.current=gf,this.tokens=Md(qd,this.options)}parse(){return this.loop()}colon(){let qd=this.currToken;this.newNode(new ud({value:qd[1],source:{start:{line:qd[2],column:qd[3]},end:{line:qd[4],column:qd[5]}},sourceIndex:qd[6]})),this.position++}comma(){let qd=this.currToken;this.newNode(new dd({value:qd[1],source:{start:{line:qd[2],column:qd[3]},end:{line:qd[4],column:qd[5]}},sourceIndex:qd[6]})),this.position++}comment(){let qd=!1,zd=this.currToken[1].replace(/\/\*|\*\//g,""),Xd;this.options.loose&&zd.startsWith("//")&&(zd=zd.substring(2),qd=!0),Xd=new pd({value:zd,inline:qd,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(Xd),this.position++}error(qd,zd){throw new Bd(qd+` at line: ${zd[2]}, column ${zd[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 qd=this.currToken[1],zd;if(qd==="+"||qd==="-"){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 zd=new vd({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(zd)}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"wo
Expected it to be 'string' or 'object'.`;if(Ve$2(Ra))throw new Error("doc is valid.");let nd=Object.prototype.toString.call(Ra);if(nd!=="[object Object]")return`Unexpected doc '${nd}'.`;let od=ml([...bt$3].map(ld=>`'${ld}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${od}.`}var Fr$1=class extends Error{constructor(nd){super(yl(nd));wg(this,"name","InvalidDocError");this.doc=nd}},$r$1=Fr$1,Zs=()=>{},_t$2=Zs;function q$5(Ra){return{type:we$4,contents:Ra}}function en$2(Ra,qa){return{type:ge$4,contents:qa,n:Ra}}function L$4(Ra,qa={}){return _t$2(qa.expandedStates),{type:ve$4,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function tn$1(Ra){return en$2({type:"root"},Ra)}function ue$3(Ra){return en$2(-1,Ra)}function Ge$2(Ra){return{type:xe$3,parts:Ra}}function kt$1(Ra,qa="",nd={}){return{type:oe$3,breakContents:Ra,flatContents:qa,groupId:nd.groupId}}var je$4={type:be$5},wl={type:K$4,hard:!0},A$2={type:K$4},M$4={type:K$4,soft:!0},E$4=[wl,je$4];function V$4(Ra,qa){let nd=[];for(let od=0;od<qa.length;od++)od!==0&&nd.push(Ra),nd.push(qa[od]);return nd}var gl=(Ra,qa,nd)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[nd<0?qa.length+nd:nd]:qa.at(nd)},G$5=gl;function vl(Ra,qa){if(typeof Ra=="string")return qa(Ra);let nd=new Map;return od(Ra);function od(ud){if(nd.has(ud))return nd.get(ud);let dd=ld(ud);return nd.set(ud,dd),dd}function ld(ud){switch(Ve$2(ud)){case Be$4:return qa(ud.map(od));case xe$3:return qa({...ud,parts:ud.parts.map(od)});case oe$3:return qa({...ud,breakContents:od(ud.breakContents),flatContents:od(ud.flatContents)});case ve$4:{let{expandedStates:dd,contents:pd}=ud;return dd?(dd=dd.map(od),pd=dd[0]):pd=od(pd),qa({...ud,contents:pd,expandedStates:dd})}case ge$4:case we$4:case $e$2:case ze$3:case We$2:return qa({...ud,contents:od(ud.contents)});case Me$3:case Ue$1:case Fe$3:case Ye$3:case K$4:case be$5:return qa(ud);default:throw new $r$1(ud)}}}function xl(Ra){return Ra.type===K$4&&!Ra.hard?Ra.soft?"":" ":Ra.type===oe$3?Ra.flatContents:Ra}function rn$2(Ra){return vl(Ra,xl)}function bl$1(Ra){return Array.isArray(Ra)&&Ra.length>0}var ee$3=bl$1,Et$1="'",sn$1='"';function _l(Ra,qa){let nd=qa===!0||qa===Et$1?Et$1:sn$1,od=nd===Et$1?sn$1:Et$1,ld=0,ud=0;for(let dd of Ra)dd===nd?ld++:dd===od&&ud++;return ld>ud?od:nd}var nn$2=_l;function kl(Ra,qa,nd){let od=qa==='"'?"'":'"',ld=_$4(!1,Ra,/\\(.)|(["'])/gsu,(ud,dd,pd)=>dd===od?dd:pd===qa?"\\"+pd:pd||(nd&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(dd)?dd:"\\"+dd));return qa+ld+qa}var on$1=kl;function El(Ra,qa){let nd=Ra.slice(1,-1),od=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":nn$2(nd,qa.singleQuote);return on$1(nd,od,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var St$2=El,Wr$1=class extends Error{constructor(nd,od,ld="type"){super(`Unexpected ${od} node ${ld}: ${JSON.stringify(nd[ld])}.`);wg(this,"name","UnexpectedNodeError");this.node=nd}},an$3=Wr$1;function Sl(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var _e$3=Sl,Tl=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function un$2(Ra,qa,nd){if(_e$3(Ra)&&Ra.language==="yaml"&&delete qa.value,Ra.type==="css-comment"&&nd.type==="css-root"&&nd.nodes.length>0&&((nd.nodes[0]===Ra||_e$3(nd.nodes[0])&&nd.nodes[1]===Ra)&&(delete qa.text,/^\*\s*@(?:format|prettier)\s*$/u.test(Ra.text))||nd.type==="css-root"&&G$5(!1,nd.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(Ra.value)),Ra.type==="selector-combinator"&&(qa.value=_$4(!1,qa.value,/\s+/gu," ")),Ra.type==="media-feature"&&(qa.value=_$4(!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
`,nd)+1;return nd+Ra.column}var zr$1=Il;function Tt$2(Ra){return(qa,nd,od)=>{let ld=!!(od!=null&&od.backwards);if(nd===!1)return!1;let{length:ud}=qa,dd=nd;for(;dd>=0&&dd<ud;){let pd=qa.charAt(dd);if(Ra instanceof RegExp){if(!Ra.test(pd))return dd}else if(!Ra.includes(pd))return dd;ld?dd--:dd++}return dd===-1||dd===ud?dd:!1}}var Ot$2=Tt$2(" "),yn$2=Tt$2(",; "),Ct$1=Tt$2(/[^\n\r]/u);function wn$1(Ra,qa){var nd,od,ld;if(typeof((od=(nd=Ra.source)==null?void 0:nd.start)==null?void 0:od.offset)=="number")return Ra.source.start.offset;if(typeof Ra.sourceIndex=="number")return Ra.sourceIndex;if((ld=Ra.source)!=null&&ld.start)return zr$1(Ra.source.start,qa);throw Object.assign(new Error("Can not locate node."),{node:Ra})}function Vr$1(Ra,qa){var nd,od;if(Ra.type==="css-comment"&&Ra.inline)return Ct$1(qa,Ra.source.startOffset);if(typeof((od=(nd=Ra.source)==null?void 0:nd.end)==null?void 0:od.offset)=="number")return Ra.source.end.offset;if(Ra.source){if(Ra.source.end)return zr$1(Ra.source.end,qa);if(ee$3(Ra.nodes))return Vr$1(G$5(!1,Ra.nodes,-1),qa)}return null}function Gr$1(Ra,qa){Ra.source&&(Ra.source.startOffset=wn$1(Ra,qa),Ra.source.endOffset=Vr$1(Ra,qa));for(let nd in Ra){let od=Ra[nd];nd==="source"||!od||typeof od!="object"||(od.type==="value-root"||od.type==="value-unknown"?gn$2(od,ql(Ra),od.text||od.value):Gr$1(od,qa))}}function gn$2(Ra,qa,nd){Ra.source&&(Ra.source.startOffset=wn$1(Ra,nd)+qa,Ra.source.endOffset=Vr$1(Ra,nd)+qa);for(let od in Ra){let ld=Ra[od];od==="source"||!ld||typeof ld!="object"||gn$2(ld,qa,nd)}}function ql(Ra){var qa;let nd=Ra.source.startOffset;return typeof Ra.prop=="string"&&(nd+=Ra.prop.length),Ra.type==="css-atrule"&&typeof Ra.name=="string"&&(nd+=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"&&(nd+=Ra.raws.between.length),nd}function vn$1(Ra){let qa="initial",nd="initial",od,ld=!1,ud=[];for(let dd=0;dd<Ra.length;dd++){let pd=Ra[dd];switch(qa){case"initial":if(pd==="'"){qa="single-quotes";continue}if(pd==='"'){qa="double-quotes";continue}if((pd==="u"||pd==="U")&&Ra.slice(dd,dd+4).toLowerCase()==="url("){qa="url",dd+=3;continue}if(pd==="*"&&Ra[dd-1]==="/"){qa="comment-block";continue}if(pd==="/"&&Ra[dd-1]==="/"){qa="comment-inline",od=dd-1;continue}continue;case"single-quotes":if(pd==="'"&&Ra[dd-1]!=="\\"&&(qa=nd,nd="initial"),pd===`
`||pd==="\r")return Ra;continue;case"double-quotes":if(pd==='"'&&Ra[dd-1]!=="\\"&&(qa=nd,nd="initial"),pd===`
`||pd==="\r")return Ra;continue;case"url":if(pd===")"&&(qa="initial"),pd===`
`||pd==="\r")return Ra;if(pd==="'"){qa="single-quotes",nd="url";continue}if(pd==='"'){qa="double-quotes",nd="url";continue}continue;case"comment-block":pd==="/"&&Ra[dd-1]==="*"&&(qa="initial");continue;case"comment-inline":(pd==='"'||pd==="'"||pd==="*")&&(ld=!0),(pd===`
`||pd==="\r")&&(ld&&ud.push([od,dd]),qa="initial",ld=!1);continue}}for(let[dd,pd]of ud)Ra=Ra.slice(0,dd)+_$4(!1,Ra.slice(dd,pd),/["'*]/gu," ")+Ra.slice(pd);return Ra}function N$4(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.startOffset}function P$5(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.endOffset}var Ll=/\*\/$/,Dl=/^\/\*\*?/,kn$1=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ml=/(^|\s+)\/\/([^\n\r]*)/g,xn$1=/^(\r?\n)+/,Bl=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,bn$2=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Ul=/(\r?\n|^) *\* ?/g,En$1=[];function Sn$1(Ra){let qa=Ra.match(kn$1);return qa?qa[0].trimStart():""}function Tn$1(Ra){let qa=Ra.match(kn$1),nd=qa==null?void 0:qa[0];return nd==null?Ra:Ra.slice(nd.length)}function On$1(Ra){let qa=`
`;Ra=_$4(!1,Ra.replace(Dl,"").replace(Ll,""),Ul,"$1");let nd="";for(;nd!==Ra;)nd=Ra,Ra=_$4(!1,Ra,Bl,`${qa}$1 $2${qa}`);Ra=Ra.replace(xn$1,"").trimEnd();let od=Object.create(null),ld=_$4(!1,Ra,bn$2,"").replace(xn$1,"").trimEnd(),ud;for(;ud=bn$2.exec(Ra);){let dd=_$4(!1,ud[2],Ml,"");if(typeof od[ud[1]]=="string"||Array.isArray(od[ud[1]])){let pd=od[ud[1]];od[ud[1]]=[...En$1,...Array.isArray(pd)?pd:[pd],dd]}else od[ud[1]]=dd}return{comments:ld,pragmas:od}}function Cn$1({comments:Ra="",pragmas:qa={}}){let nd=`
`,od="/**",ld=" *",ud=" */",dd=Object.keys(qa),pd=dd.flatMap(md=>_n$1(md,qa[md])).map(md=>`${ld} ${md}${nd}`).join("");if(!Ra){if(dd.length===0)return"";if(dd.length===1&&!Array.isArray(qa[dd[0]])){let md=qa[dd[0]];return`${od} ${_n$1(dd[0],md)[0]}${ud}`}}let fd=Ra.split(nd).map(md=>`${ld} ${md}`).join(nd)+nd;return od+nd+(Ra?fd:"")+(Ra&&dd.length>0?ld+nd:"")+pd+ud}function _n$1(Ra,qa){return[...En$1,...Array.isArray(qa)?qa:[qa]].map(nd=>`@${Ra} ${nd}`.trim())}function Fl(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf(`
`);return qa===-1?Ra:Ra.slice(0,qa)}var An$1=Fl;function Nn$1(Ra){let qa=An$1(Ra);qa&&(Ra=Ra.slice(qa.length+1));let nd=Sn$1(Ra),{pragmas:od,comments:ld}=On$1(nd);return{shebang:qa,text:Ra,pragmas:od,comments:ld}}function Pn$1(Ra){let{pragmas:qa}=Nn$1(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function Rn(Ra){let{shebang:qa,text:nd,pragmas:od,comments:ld}=Nn$1(Ra),ud=Tn$1(nd),dd=Cn$1({pragmas:{format:"",...od},comments:ld.trimStart()});return(qa?`${qa}
`:"")+dd+(ud.startsWith(`
`)?`
`:`
`)+ud}var Qe$2=3;function $l(Ra){let qa=Ra.slice(0,Qe$2);if(qa!=="---"&&qa!=="+++")return;let nd=Ra.indexOf(`
`,Qe$2);if(nd===-1)return;let od=Ra.slice(Qe$2,nd).trim(),ld=Ra.indexOf(`
${qa}`,nd),ud=od;if(ud||(ud=qa==="+++"?"toml":"yaml"),ld===-1&&qa==="---"&&ud==="yaml"&&(ld=Ra.indexOf(`
...`,nd)),ld===-1)return;let dd=ld+1+Qe$2,pd=Ra.charAt(dd+1);if(!/\s?/u.test(pd))return;let fd=Ra.slice(0,dd);return{type:"front-matter",language:ud,explicitLanguage:od,value:Ra.slice(nd+1,ld),startDelimiter:qa,endDelimiter:fd.slice(-Qe$2),raw:fd}}function Wl(Ra){let qa=$l(Ra);if(!qa)return{content:Ra};let{raw:nd}=qa;return{frontMatter:qa,content:_$4(!1,nd,/[^\n]/gu," ")+Ra.slice(nd.length)}}var Je$2=Wl;function In(Ra){return Pn$1(Je$2(Ra).content)}function qn$1(Ra){let{frontMatter:qa,content:nd}=Je$2(Ra);return(qa?qa.raw+`
`:"")+Rn(nd)}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,nd;return(nd=(qa=Ra.findAncestor(od=>od.type==="css-decl"))==null?void 0:qa.prop)==null?void 0:nd.toLowerCase()}var zl=new Set(["initial","inherit","unset","revert"]);function Dn$1(Ra){return zl.has(Ra.toLowerCase())}function Mn(Ra,qa){var nd;let od=Ra.findAncestor(ld=>ld.type==="css-atrule");return((nd=od==null?void 0:od.name)==null?void 0:nd.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(qa.toLowerCase())}function te$3(Ra){return Ra.includes("$")||Ra.includes("@")||Ra.includes("#")||Ra.startsWith("%")||Ra.startsWith("--")||Ra.startsWith(":--")||Ra.includes("(")&&Ra.includes(")")?Ra:Ra.toLowerCase()}function ke$4(Ra,qa){var nd;let od=Ra.findAncestor(ld=>ld.type==="value-func");return((nd=od==null?void 0:od.value)==null?void 0:nd.toLowerCase())===qa}function Bn$1(Ra){var qa;let nd=Ra.findAncestor(ld=>ld.type==="css-rule"),od=(qa=nd==null?void 0:nd.raws)==null?void 0:qa.selector;return od&&(od.startsWith(":import")||od.startsWith(":export"))}function Ee$4(Ra,qa){let nd=Array.isArray(qa)?qa:[qa],od=Ra.findAncestor(ld=>ld.type==="css-atrule");return od&&nd.includes(od.name.toLowerCase())}function Un$1(Ra){var qa;let{node:nd}=Ra;return nd.groups[0].value==="url"&&nd.groups.length===2&&((qa=Ra.findAncestor(od=>od.type==="css-atrule"))==null?void 0:qa.name)==="import"}function Fn$1(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(Ra){return Ra.type==="value-word"&&["from","through","end"].includes(Ra.value)}function zn$1(Ra){return Ra.type==="value-word"&&["and","or","not"].includes(Ra.value)}function Vn$1(Ra){return Ra.type==="value-word"&&Ra.value==="in"}function At$1(Ra){return Ra.type==="value-operator"&&Ra.value==="*"}function Xe$2(Ra){return Ra.type==="value-operator"&&Ra.value==="/"}function Q$5(Ra){return Ra.type==="value-operator"&&Ra.value==="+"}function le$3(Ra){return Ra.type==="value-operator"&&Ra.value==="-"}function Vl(Ra){return Ra.type==="value-operator"&&Ra.value==="%"}function Nt$2(Ra){return At$1(Ra)||Xe$2(Ra)||Q$5(Ra)||le$3(Ra)||Vl(Ra)}function Gn$1(Ra){return Ra.type==="value-word"&&["==","!="].includes(Ra.value)}function jn(Ra){return Ra.type==="value-word"&&["<",">","<=",">="].includes(Ra.value)}function Ze$2(Ra,qa){return qa.parser==="scss"&&Ra.type==="css-atrule"&&["if","else","for","each","while"].includes(Ra.name)}function Hr$1(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.params)&&/^\(\s*\)$/u.test(Ra.raws.params)}function Pt$1(Ra){return Ra.name.startsWith("prettier-placeholder")}function Hn(Ra){return Ra.prop.startsWith("@prettier-placeholder")}function Kn$1(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,nd;return((qa=Ra.value)==null?void 0:qa.type)==="value-root"&&((nd=Ra.value.group)==null?void 0:nd.type)==="value-value"&&Ra.prop.toLowerCase()==="composes"}function Jn$1(Ra){var qa,nd,od;return((od=(nd=(qa=Ra.value)==null?void 0:qa.group)==null?void 0:nd.group)==null?void 0:od.type)==="value-paren_group"&&Ra.value.group.group.open!==null&&Ra.value.group.group.close!==null}function ce$5(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.before)===""}function Rt$2(Ra){var qa,nd;return Ra.type==="value-comma_group"&&((nd=(qa=Ra.groups)==null?void 0:qa[1])==null?void 0:nd.type)==="value-colon"}function jr$1(Ra){var qa;return Ra.type==="value-paren_group"&&((qa=Ra.groups)==null?void 0:qa[0])&&Rt$2(Ra.groups[0])}function Kr$1(Ra,qa){var nd;if(qa.parser!=="scss")return!1;let{node:od}=Ra;if(od.groups.length===0)return!1;let ld=Ra.grandparent;if(!jr$1(od)&&!(ld&&jr$1(ld)))return!1;let ud=Ra.findAncestor(dd=>dd.type==="css-decl");return!!
`)return qa-2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa-1}else{if(ld==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa+1}return qa}var Dt$1=Xl;function Zl(Ra,qa,nd={}){let od=Ot$2(Ra,nd.backwards?qa-1:qa,nd),ld=Dt$1(Ra,od,nd);return od!==ld}var Mt$2=Zl;function ec(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let nd=qa+2;nd<Ra.length;++nd)if(Ra.charAt(nd)==="*"&&Ra.charAt(nd+1)==="/")return nd+2}return qa}var ui$1=ec;function tc(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?Ct$1(Ra,qa):qa}var li$1=tc;function rc(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=yn$2(Ra,od),od=ui$1(Ra,od),od=Ot$2(Ra,od);return od=li$1(Ra,od),od=Dt$1(Ra,od),od!==!1&&Mt$2(Ra,od)}var Bt$2=rc;function sc({node:Ra,parent:qa},nd){return!!(Ra.source&&nd.originalText.slice(N$4(Ra),N$4(qa.close)).trimEnd().endsWith(","))}function nc(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(nd=>nd.type==="value-comment"))&&ai$2(qa)&&Ra.callParent(()=>Kr$1(Ra,qa))?kt$1(","):""}function ci$2(Ra,qa,nd){let{node:od,parent:ld}=Ra,ud=Ra.map(({node:Id})=>typeof Id=="string"?Id:nd(),"groups");if(ld&&Fn$1(ld)&&(od.groups.length===1||od.groups.length>0&&od.groups[0].type==="value-comma_group"&&od.groups[0].groups.length>0&&od.groups[0].groups[0].type==="value-word"&&od.groups[0].groups[0].value.startsWith("data:")))return[od.open?nd("open"):"",V$4(",",ud),od.close?nd("close"):""];if(!od.open){let Id=es(Ra),Od=V$4([",",Id?E$4:A$2],ud);return q$5(Id?[E$4,Od]:L$4(Ge$2(Od)))}let dd=Ra.map(({node:Id,isLast:Od,index:Md})=>{var Ud;let jd=ud[Md];if(Rt$2(Id)&&Id.type==="value-comma_group"&&Id.groups&&Id.groups[0].type!=="value-paren_group"&&((Ud=Id.groups[2])==null?void 0:Ud.type)==="value-paren_group"){let{parts:Bd}=jd.contents.contents;Bd[1]=L$4(Bd[1]),jd=L$4(ue$3(jd))}let Ld=[jd,Od?nc(Ra,qa):","];if(!Od&&Id.type==="value-comma_group"&&ee$3(Id.groups)){let Bd=G$5(!1,Id.groups,-1);!Bd.source&&Bd.close&&(Bd=Bd.close),Bd.source&&Bt$2(qa.originalText,P$5(Bd))&&Ld.push(E$4)}return Ld},"groups"),pd=Xn$1(od,ld),fd=ti$1(od,ld),md=Kr$1(Ra,qa),vd=fd||md&&!pd,Ad=fd||pd,Nd=L$4([od.open?nd("open"):"",q$5([M$4,V$4(A$2,dd)]),M$4,od.close?nd("close"):""],{shouldBreak:vd});return Ad?ue$3(Nd):Nd}function es(Ra){return Ra.match(qa=>qa.type==="value-paren_group"&&!qa.open&&qa.groups.some(nd=>nd.type==="value-comma_group"),(qa,nd)=>nd==="group"&&qa.type==="value-value",(qa,nd)=>nd==="group"&&qa.type==="value-root",(qa,nd)=>nd==="value"&&(qa.type==="css-decl"&&!qa.prop.startsWith("--")||qa.type==="css-atrule"&&qa.variable))}function ic(Ra,qa,nd){let od=[];return Ra.each(()=>{let{node:ld,previous:ud}=Ra;if((ud==null?void 0:ud.type)==="css-comment"&&ud.text.trim()==="prettier-ignore"?od.push(qa.originalText.slice(N$4(ld),P$5(ld))):od.push(nd()),Ra.isLast)return;let{next:dd}=Ra;dd.type==="css-comment"&&!Mt$2(qa.originalText,N$4(dd),{backwards:!0})&&!_e$3(ld)||dd.type==="css-atrule"&&dd.name==="else"&&ld.type!=="css-comment"?od.push(" "):(od.push(qa.__isHTMLStyleAttribute?A$2:E$4),Bt$2(qa.originalText,P$5(ld))&&!_e$3(ld)&&od.push(E$4))},"nodes"),od}var Te$3=ic;function oc(Ra,qa,nd){var od,ld,ud,dd,pd,fd;let{node:md}=Ra;switch(md.type){case"front-matter":return[md.raw,E$4];case"css-root":{let vd=Te$3(Ra,qa,nd),Ad=md.raws.after.trim();return Ad.startsWith(";")&&(Ad=Ad.slice(1).trim()),[md.frontMatter?[nd("frontMatter"),E$4]:"",vd,Ad?` ${Ad}`:"",md.nodes.length>0?E$4:""]}case"css-comment":{let vd=md.inline||md.raws.inline,Ad=qa.originalText.slice(N$4(md),P$5(md));return vd?Ad.trimEnd():Ad}case"css-rule":return[nd("selector"),md.important?" !important":"",md.nodes?[((od=md.selector)==null?void 0:od.type)==="selector-unknown"&&Se$4(md.selector.value)?A$2:md.selector?" ":"","{",md.nodes.length>0?q$5([E$4,Te$3(Ra,qa,nd)]):"",E$4,"}",Wn(md)?";":""]:";"];case"css-decl":{let vd=Ra.parent,{between:Ad}=md.raws,Nd=Ad.trim(),Id=Nd===":",Od=typeof md.value=="string"&&/^ *$/u.test(md.value),Md=typeof md.value=="string"?md.value:nd("value");return Md=Qn$1(md)?rn$2(Md):Md,!Id&&Se$4(Nd)&&!((ud=(ld=md.value)==null?void 0:ld.group)!=null&&ud.
`,qd(Gd.gutter,Af.replace(/\d/g," "))," ",eh,qd(Gd.marker,"^").repeat(th)].join(""),jf&&jd.message&&(Jf+=" "+qd(Gd.message,jd.message))}return[qd(Gd.marker,">"),qd(Gd.gutter,Af),_f.length>0?` ${_f}`:"",Jf].join("")}else return` ${qd(Gd.gutter,Af)}${_f.length>0?` ${_f}`:""}`}).join(`
`);return jd.message&&!Zd&&(Ef=`${" ".repeat(df+1)}${jd.message}
${Ef}`),Ld?Bd.reset(Ef):Ef}function Od(Md,Ud,jd,Ld={}){if(!md){md=!0;let Bd="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let Gd=new Error(Bd);Gd.name="DeprecationWarning",console.warn(new Error(Bd))}}return jd=Math.max(jd,0),Id(Md,{start:{column:jd,line:Ud}},Ld)}}),ir={};We$1(ir,{__debug:()=>di,check:()=>fi,doc:()=>nr,format:()=>gu,formatWithCursor:()=>Cu,getSupportInfo:()=>pi$2,util:()=>or,version:()=>fu});var Ou=(Ra,qa,nd,od)=>{if(!(Ra&&qa==null))return qa.replaceAll?qa.replaceAll(nd,od):nd.global?qa.replace(nd,od):qa.split(nd).join(od)},ne$3=Ou;function Z$4(){}Z$4.prototype={diff:function(Ra,qa){var nd,od=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ld=od.callback;typeof od=="function"&&(ld=od,od={}),this.options=od;var ud=this;function dd(Bd){return ld?(setTimeout(function(){ld(void 0,Bd)},0),!0):Bd}Ra=this.castInput(Ra),qa=this.castInput(qa),Ra=this.removeEmpty(this.tokenize(Ra)),qa=this.removeEmpty(this.tokenize(qa));var pd=qa.length,fd=Ra.length,md=1,vd=pd+fd;od.maxEditLength&&(vd=Math.min(vd,od.maxEditLength));var Ad=(nd=od.timeout)!==null&&nd!==void 0?nd:1/0,Nd=Date.now()+Ad,Id=[{oldPos:-1,lastComponent:void 0}],Od=this.extractCommon(Id[0],qa,Ra,0);if(Id[0].oldPos+1>=fd&&Od+1>=pd)return dd([{value:this.join(qa),count:qa.length}]);var Md=-1/0,Ud=1/0;function jd(){for(var Bd=Math.max(Md,-md);Bd<=Math.min(Ud,md);Bd+=2){var Gd=void 0,qd=Id[Bd-1],zd=Id[Bd+1];qd&&(Id[Bd-1]=void 0);var Xd=!1;if(zd){var gf=zd.oldPos-Bd;Xd=zd&&0<=gf&&gf<pd}var Yd=qd&&qd.oldPos+1<fd;if(!Xd&&!Yd){Id[Bd]=void 0;continue}if(!Yd||Xd&&qd.oldPos+1<zd.oldPos?Gd=ud.addToPath(zd,!0,void 0,0):Gd=ud.addToPath(qd,void 0,!0,1),Od=ud.extractCommon(Gd,qa,Ra,Bd),Gd.oldPos+1>=fd&&Od+1>=pd)return dd(Su(ud,Gd.lastComponent,qa,Ra,ud.useLongestToken));Id[Bd]=Gd,Gd.oldPos+1>=fd&&(Ud=Math.min(Ud,Bd-1)),Od+1>=pd&&(Md=Math.max(Md,Bd+1))}md++}if(ld)(function Bd(){setTimeout(function(){if(md>vd||Date.now()>Nd)return ld();jd()||Bd()},0)})();else for(;md<=vd&&Date.now()<=Nd;){var Ld=jd();if(Ld)return Ld}},addToPath:function(Ra,qa,nd,od){var ld=Ra.lastComponent;return ld&&ld.added===qa&&ld.removed===nd?{oldPos:Ra.oldPos+od,lastComponent:{count:ld.count+1,added:qa,removed:nd,previousComponent:ld.previousComponent}}:{oldPos:Ra.oldPos+od,lastComponent:{count:1,added:qa,removed:nd,previousComponent:ld}}},extractCommon:function(Ra,qa,nd,od){for(var ld=qa.length,ud=nd.length,dd=Ra.oldPos,pd=dd-od,fd=0;pd+1<ld&&dd+1<ud&&this.equals(qa[pd+1],nd[dd+1]);)pd++,dd++,fd++;return fd&&(Ra.lastComponent={count:fd,previousComponent:Ra.lastComponent}),Ra.oldPos=dd,pd},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=[],nd=0;nd<Ra.length;nd++)Ra[nd]&&qa.push(Ra[nd]);return qa},castInput:function(Ra){return Ra},tokenize:function(Ra){return Ra.split("")},join:function(Ra){return Ra.join("")}};function Su(Ra,qa,nd,od,ld){for(var ud=[],dd;qa;)ud.push(qa),dd=qa.previousComponent,delete qa.previousComponent,qa=dd;ud.reverse();for(var pd=0,fd=ud.length,md=0,vd=0;pd<fd;pd++){var Ad=ud[pd];if(Ad.removed){if(Ad.value=Ra.join(od.slice(vd,vd+Ad.count)),vd+=Ad.count,pd&&ud[pd-1].added){var Nd=ud[pd-1];ud[pd-1]=ud[pd],ud[pd]=Nd}}else{if(!Ad.added&&ld){var Id=nd.slice(md,md+Ad.count);Id=Id.map(function(Md,Ud){var jd=od[vd+Ud];return jd.length>Md.length?jd:Md}),Ad.value=Ra.join(Id)}else Ad.value=Ra.join(nd.slice(md,md+Ad.count));md+=Ad.count,Ad.added||(vd+=Ad.count)}}var Od=ud[fd-1];return fd>1&&typeof Od.value=="string"&&(Od.added||Od.removed)&&Ra.equals("",Od.value)&&(ud[fd-2].value+=Od.value,ud.pop()),ud}var lr=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,cr$1=/\S/,fr=new Z$4;fr.equals=function(Ra,qa){return this.options.ignoreCase&&(Ra=Ra.toLowerCase(),qa=qa.toLowerCase()),Ra===qa||this.options.ignoreWhitespace&&!cr$1.test(Ra)&&!cr$1.test(qa)};fr.tokenize=function(Ra){for(var qa=Ra.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),nd=0;nd<qa.length-1;nd++)!qa[nd+1]&&qa[nd+2]&&l
`));var qa=[],nd=Ra.split(/(\n|\r\n)/);nd[nd.length-1]||nd.pop();for(var od=0;od<nd.length;od++){var ld=nd[od];od%2&&!this.options.newlineIsToken?qa[qa.length-1]+=ld:(this.options.ignoreWhitespace&&(ld=ld.trim()),qa.push(ld))}return qa};var Nu=new Z$4;Nu.tokenize=function(Ra){return Ra.split(/(\S.+?[.!?])(?=\s+|$)/)};var Tu=new Z$4;Tu.tokenize=function(Ra){return Ra.split(/([{}:;,]|\s+)/)};function $e$1(Ra){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$e$1=function(qa){return typeof qa}:$e$1=function(qa){return qa&&typeof Symbol=="function"&&qa.constructor===Symbol&&qa!==Symbol.prototype?"symbol":typeof qa},$e$1(Ra)}var ku=Object.prototype.toString,Ae$3=new Z$4;Ae$3.useLongestToken=!0;Ae$3.tokenize=pr.tokenize;Ae$3.castInput=function(Ra){var qa=this.options,nd=qa.undefinedReplacement,od=qa.stringifyReplacer,ld=od===void 0?function(ud,dd){return typeof dd>"u"?nd:dd}:od;return typeof Ra=="string"?Ra:JSON.stringify(Bt$1(Ra,null,null,ld),ld," ")};Ae$3.equals=function(Ra,qa){return Z$4.prototype.equals.call(Ae$3,Ra.replace(/,([\r\n])/g,"$1"),qa.replace(/,([\r\n])/g,"$1"))};function Bt$1(Ra,qa,nd,od,ld){qa=qa||[],nd=nd||[],od&&(Ra=od(ld,Ra));var ud;for(ud=0;ud<qa.length;ud+=1)if(qa[ud]===Ra)return nd[ud];var dd;if(ku.call(Ra)==="[object Array]"){for(qa.push(Ra),dd=new Array(Ra.length),nd.push(dd),ud=0;ud<Ra.length;ud+=1)dd[ud]=Bt$1(Ra[ud],qa,nd,od,ld);return qa.pop(),nd.pop(),dd}if(Ra&&Ra.toJSON&&(Ra=Ra.toJSON()),$e$1(Ra)==="object"&&Ra!==null){qa.push(Ra),dd={},nd.push(dd);var pd=[],fd;for(fd in Ra)Ra.hasOwnProperty(fd)&&pd.push(fd);for(pd.sort(),ud=0;ud<pd.length;ud+=1)fd=pd[ud],dd[fd]=Bt$1(Ra[fd],qa,nd,od,fd);qa.pop(),nd.pop()}else dd=Ra;return dd}var Ve$1=new Z$4;Ve$1.tokenize=function(Ra){return Ra.slice()};Ve$1.join=Ve$1.removeEmpty=function(Ra){return Ra};function dr(Ra,qa,nd){return Ve$1.diff(Ra,qa,nd)}function Fr(Ra){let qa=Ra.indexOf("\r");return qa>=0?Ra.charAt(qa+1)===`
`?"crlf":"cr":"lf"}function Be$3(Ra){switch(Ra){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function wt$1(Ra,qa){let nd;switch(qa){case`
`:nd=/\n/gu;break;case"\r":nd=/\r/gu;break;case`\r
`:nd=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(qa)}.`)}let od=Ra.match(nd);return od?od.length:0}function mr(Ra){return ne$3(!1,Ra,/\r\n?/gu,`
`)}var U$4="string",W$4="array",z$3="cursor",L$3="indent",P$4="align",I$4="trim",x$4="group",S$2="fill",_$3="if-break",R$5="indent-if-break",Y$3="line-suffix",j$3="line-suffix-boundary",B$4="line",N$3="label",b$2="break-parent",Ue=new Set([z$3,L$3,P$4,I$4,x$4,S$2,_$3,R$5,Y$3,j$3,B$4,N$3,b$2]);function Lu(Ra){if(typeof Ra=="string")return U$4;if(Array.isArray(Ra))return W$4;if(!Ra)return;let{type:qa}=Ra;if(Ue.has(qa))return qa}var G$4=Lu,Pu=Ra=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Ra);function Iu(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$4(Ra))throw new Error("doc is valid.");let nd=Object.prototype.toString.call(Ra);if(nd!=="[object Object]")return`Unexpected doc '${nd}'.`;let od=Pu([...Ue].map(ld=>`'${ld}'`));return`Unexpected doc.type '${Ra.type}'.
Expected it to be ${od}.`}var xt$1=class extends Error{constructor(nd){super(Iu(nd));wg(this,"name","InvalidDocError");this.doc=nd}},Q$4=xt$1,Er={};function Ru(Ra,qa,nd,od){let ld=[Ra];for(;ld.length>0;){let ud=ld.pop();if(ud===Er){nd(ld.pop());continue}nd&&ld.push(ud,Er);let dd=G$4(ud);if(!dd)throw new Q$4(ud);if((qa==null?void 0:qa(ud))!==!1)switch(dd){case W$4:case S$2:{let pd=dd===W$4?ud:ud.parts;for(let fd=pd.length,md=fd-1;md>=0;--md)ld.push(pd[md]);break}case _$3:ld.push(ud.flatContents,ud.breakContents);break;case x$4:if(od&&ud.expandedStates)for(let pd=ud.expandedStates.length,fd=pd-1;fd>=0;--fd)ld.push(ud.expandedStates[fd]);else ld.push(ud.contents);break;case P$4:case L$3:case R$5:case N$3:case Y$3:ld.push(ud.contents);break;case U$4:case z$3:case I$4:case j$3:case B$4:case b$2:break;default:throw new Q$4(ud)}}}var we$3=Ru,hr$2=()=>{},ze$2=hr$2;function De$2(Ra){return{type:L$3,contents:Ra}}function ae$3(Ra,qa){return{type:P$4,contents:qa,n:Ra}}function _t$1(Ra,qa={}){return ze$2(qa.expandedStates),{type:x$4,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function Cr(Ra){return ae$3(Number.NEGATIVE_INFINITY,Ra)}function gr(Ra){return ae$3({type:"root"},Ra)}function yr(Ra){return ae$3(-1,Ra)}function Ar(Ra,qa){return _t$1(Ra[0],{...qa,expandedStates:Ra})}function Ge$1(Ra){return{type:S$2,parts:Ra}}function Br(Ra,qa="",nd={}){return{type:_$3,breakContents:Ra,flatContents:qa,groupId:nd.groupId}}function wr(Ra,qa){return{type:R$5,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function xe$2(Ra){return{type:Y$3,contents:Ra}}var xr={type:j$3},de$2={type:b$2},_r={type:I$4},_e$2={type:B$4,hard:!0},vt$2={type:B$4,hard:!0,literal:!0},Ke$2={type:B$4},vr={type:B$4,soft:!0},q$4=[_e$2,de$2],qe=[vt$2,de$2],ve$3={type:z$3};function be$4(Ra,qa){let nd=[];for(let od=0;od<qa.length;od++)od!==0&&nd.push(Ra),nd.push(qa[od]);return nd}function Je$1(Ra,qa,nd){let od=Ra;if(qa>0){for(let ld=0;ld<Math.floor(qa/nd);++ld)od=De$2(od);od=ae$3(qa%nd,od),od=ae$3(Number.NEGATIVE_INFINITY,od)}return od}function br$3(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 nd=[];for(let od of Ra)if(Array.isArray(od))nd.push(...ee$2(od));else{let ld=ee$2(od);ld!==""&&nd.push(ld)}return nd}return Ra.type===_$3?{...Ra,breakContents:ee$2(Ra.breakContents),flatContents:ee$2(Ra.flatContents)}:Ra.type===x$4?{...Ra,contents:ee$2(Ra.contents),expandedStates:(qa=Ra.expandedStates)==null?void 0:qa.map(ee$2)}:Ra.type===S$2?{type:"fill",parts:Ra.parts.map(ee$2)}:Ra.contents?{...Ra,contents:ee$2(Ra.contents)}:Ra}function Or(Ra){let qa=Object.create(null),nd=new Set;return od(ee$2(Ra));function od(ud,dd,pd){var fd,md;if(typeof ud=="string")return JSON.stringify(ud);if(Array.isArray(ud)){let vd=ud.map(od).filter(Boolean);return vd.length===1?vd[0]:`[${vd.join(", ")}]`}if(ud.type===B$4){let vd=((fd=pd==null?void 0:pd[dd+1])==null?void 0:fd.type)===b$2;return ud.literal?vd?"literalline":"literallineWithoutBreakParent":ud.hard?vd?"hardline":"hardlineWithoutBreakParent":ud.soft?"softline":"line"}if(ud.type===b$2)return((md=pd==null?void 0:pd[dd-1])==null?void 0:md.type)===B$4&&pd[dd-1].hard?void 0:"breakParent";if(ud.type===I$4)return"trim";if(ud.type===L$3)return"indent("+od(ud.contents)+")";if(ud.type===P$4)return ud.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+od(ud.contents)+")":ud.n<0?"dedent("+od(ud.contents)+")":ud.n.type==="root"?"markAsRoot("+od(ud.contents)+")":"align("+JSON.stringify(ud.n)+", "+od(ud.contents)+")";if(ud.type===_$3)return"ifBreak("+od(ud.breakContents)+(ud.flatContents?", "+od(ud.flatContents):"")+(ud.groupId?(ud.flatContents?"":', ""')+`, { groupId: ${ld(ud.groupId)} }`:"")+")";if(ud.type===R$5){let vd=[];ud.negate&&vd.push("negate: true"),ud.groupId&&vd.push(`groupId: ${ld(ud.groupId)}`);let Ad=vd.length>0?`, { ${vd.join(", ")} }`:"";return`indentIfBreak(${od(ud.contents)}${Ad})`}if(ud.type===x$4){let vd=[];ud.break&&ud.break!=="propagated"&&vd.push("shouldBreak: true"),ud.id&&vd.push(`id: ${ld(ud.id)}`);let Ad=vd.length>0?`, { ${vd.join(", "
`)):nd)}function Uu(Ra){if(Ra.type===B$4)return!0}function Hr(Ra){return Xe$1(Ra,Uu,!1)}function Qe$1(Ra,qa){return Ra.type===N$3?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}var H$4=Symbol("MODE_BREAK"),J$4=Symbol("MODE_FLAT"),Te$2=Symbol("cursor");function Wr(){return{value:"",length:0,queue:[]}}function zu(Ra,qa){return bt$2(Ra,{type:"indent"},qa)}function Gu(Ra,qa,nd){return qa===Number.NEGATIVE_INFINITY?Ra.root||Wr():qa<0?bt$2(Ra,{type:"dedent"},nd):qa?qa.type==="root"?{...Ra,root:Ra}:bt$2(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},nd):Ra}function bt$2(Ra,qa,nd){let od=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],ld="",ud=0,dd=0,pd=0;for(let Od of od)switch(Od.type){case"indent":vd(),nd.useTabs?fd(1):md(nd.tabWidth);break;case"stringAlign":vd(),ld+=Od.n,ud+=Od.n.length;break;case"numberAlign":dd+=1,pd+=Od.n;break;default:throw new Error(`Unexpected type '${Od.type}'`)}return Nd(),{...Ra,value:ld,length:ud,queue:od};function fd(Od){ld+=" ".repeat(Od),ud+=nd.tabWidth*Od}function md(Od){ld+=" ".repeat(Od),ud+=Od}function vd(){nd.useTabs?Ad():Nd()}function Ad(){dd>0&&fd(dd),Id()}function Nd(){pd>0&&md(pd),Id()}function Id(){dd=0,pd=0}}function Ot$1(Ra){let qa=0,nd=0,od=Ra.length;e:for(;od--;){let ld=Ra[od];if(ld===Te$2){nd++;continue}for(let ud=ld.length-1;ud>=0;ud--){let dd=ld[ud];if(dd===" "||dd===" ")qa++;else{Ra[od]=ld.slice(0,ud+1);break e}}}if(qa>0||nd>0)for(Ra.length=od+1;nd-- >0;)Ra.push(Te$2);return qa}function et$2(Ra,qa,nd,od,ld,ud){if(nd===Number.POSITIVE_INFINITY)return!0;let dd=qa.length,pd=[Ra],fd=[];for(;nd>=0;){if(pd.length===0){if(dd===0)return!0;pd.push(qa[--dd]);continue}let{mode:md,doc:vd}=pd.pop(),Ad=G$4(vd);switch(Ad){case U$4:fd.push(vd),nd-=Oe$2(vd);break;case W$4:case S$2:{let Nd=Ad===W$4?vd:vd.parts;for(let Id=Nd.length-1;Id>=0;Id--)pd.push({mode:md,doc:Nd[Id]});break}case L$3:case P$4:case R$5:case N$3:pd.push({mode:md,doc:vd.contents});break;case I$4:nd+=Ot$1(fd);break;case x$4:{if(ud&&vd.break)return!1;let Nd=vd.break?H$4:md,Id=vd.expandedStates&&Nd===H$4?y$3(!1,vd.expandedStates,-1):vd.contents;pd.push({mode:Nd,doc:Id});break}case _$3:{let Nd=(vd.groupId?ld[vd.groupId]||J$4:md)===H$4?vd.breakContents:vd.flatContents;Nd&&pd.push({mode:md,doc:Nd});break}case B$4:if(md===H$4||vd.hard)return!0;vd.soft||(fd.push(" "),nd--);break;case Y$3:od=!0;break;case j$3:if(od)return!1;break}}return!1}function Fe$2(Ra,qa){let nd={},od=qa.printWidth,ld=Be$3(qa.endOfLine),ud=0,dd=[{ind:Wr(),mode:H$4,doc:Ra}],pd=[],fd=!1,md=[],vd=0;for(Rr(Ra);dd.length>0;){let{ind:Nd,mode:Id,doc:Od}=dd.pop();switch(G$4(Od)){case U$4:{let Md=ld!==`
`?ne$3(!1,Od,`
`,ld):Od;pd.push(Md),dd.length>0&&(ud+=Oe$2(Md));break}case W$4:for(let Md=Od.length-1;Md>=0;Md--)dd.push({ind:Nd,mode:Id,doc:Od[Md]});break;case z$3:if(vd>=2)throw new Error("There are too many 'cursor' in doc.");pd.push(Te$2),vd++;break;case L$3:dd.push({ind:zu(Nd,qa),mode:Id,doc:Od.contents});break;case P$4:dd.push({ind:Gu(Nd,Od.n,qa),mode:Id,doc:Od.contents});break;case I$4:ud-=Ot$1(pd);break;case x$4:switch(Id){case J$4:if(!fd){dd.push({ind:Nd,mode:Od.break?H$4:J$4,doc:Od.contents});break}case H$4:{fd=!1;let Md={ind:Nd,mode:J$4,doc:Od.contents},Ud=od-ud,jd=md.length>0;if(!Od.break&&et$2(Md,dd,Ud,jd,nd))dd.push(Md);else if(Od.expandedStates){let Ld=y$3(!1,Od.expandedStates,-1);if(Od.break){dd.push({ind:Nd,mode:H$4,doc:Ld});break}else for(let Bd=1;Bd<Od.expandedStates.length+1;Bd++)if(Bd>=Od.expandedStates.length){dd.push({ind:Nd,mode:H$4,doc:Ld});break}else{let Gd=Od.expandedStates[Bd],qd={ind:Nd,mode:J$4,doc:Gd};if(et$2(qd,dd,Ud,jd,nd)){dd.push(qd);break}}}else dd.push({ind:Nd,mode:H$4,doc:Od.contents});break}}Od.id&&(nd[Od.id]=y$3(!1,dd,-1).mode);break;case S$2:{let Md=od-ud,{parts:Ud}=Od;if(Ud.length===0)break;let[jd,Ld]=Ud,Bd={ind:Nd,mode:J$4,doc:jd},Gd={ind:Nd,mode:H$4,doc:jd},qd=et$2(Bd,[],Md,md.length>0,nd,!0);if(Ud.length===1){qd?dd.push(Bd):dd.push(Gd);break}let zd={ind:Nd,mode:J$4,doc:Ld},Xd={ind:Nd,mode:H$4,doc:Ld};if(Ud.length===2){qd?dd.push(zd,Bd):dd.push(Xd,Gd);break}Ud.splice(0,2);let gf={ind:Nd,mode:Id,doc:Ge$1(Ud)},Yd=Ud[0];et$2({ind:Nd,mode:J$4,doc:[jd,Ld,Yd]},[],Md,md.length>0,nd,!0)?dd.push(gf,zd,Bd):qd?dd.push(gf,Xd,Bd):dd.push(gf,Xd,Gd);break}case _$3:case R$5:{let Md=Od.groupId?nd[Od.groupId]:Id;if(Md===H$4){let Ud=Od.type===_$3?Od.breakContents:Od.negate?Od.contents:De$2(Od.contents);Ud&&dd.push({ind:Nd,mode:Id,doc:Ud})}if(Md===J$4){let Ud=Od.type===_$3?Od.flatContents:Od.negate?De$2(Od.contents):Od.contents;Ud&&dd.push({ind:Nd,mode:Id,doc:Ud})}break}case Y$3:md.push({ind:Nd,mode:Id,doc:Od.contents});break;case j$3:md.length>0&&dd.push({ind:Nd,mode:Id,doc:_e$2});break;case B$4:switch(Id){case J$4:if(Od.hard)fd=!0;else{Od.soft||(pd.push(" "),ud+=1);break}case H$4:if(md.length>0){dd.push({ind:Nd,mode:Id,doc:Od},...md.reverse()),md.length=0;break}Od.literal?Nd.root?(pd.push(ld,Nd.root.value),ud=Nd.root.length):(pd.push(ld),ud=0):(ud-=Ot$1(pd),pd.push(ld+Nd.value),ud=Nd.length);break}break;case N$3:dd.push({ind:Nd,mode:Id,doc:Od.contents});break;case b$2:break;default:throw new Q$4(Od)}dd.length===0&&md.length>0&&(dd.push(...md.reverse()),md.length=0)}let Ad=pd.indexOf(Te$2);if(Ad!==-1){let Nd=pd.indexOf(Te$2,Ad+1),Id=pd.slice(0,Ad).join(""),Od=pd.slice(Ad+1,Nd).join(""),Md=pd.slice(Nd+1).join("");return{formatted:Id+Od+Md,cursorNodeStart:Id.length,cursorNodeText:Od}}return{formatted:pd.join("")}}function Ku(Ra,qa,nd=0){let od=0;for(let ld=nd;ld<Ra.length;++ld)Ra[ld]===" "?od=od+qa-od%qa:od++;return od}var me$3=Ku,te$2,Nt$1,tt$2,St$1=class{constructor(qa){Dr(this,te$2),this.stack=[qa]}get key(){let{stack:qa,siblings:nd}=this;return y$3(!1,qa,nd===null?-2:-4)??null}get index(){return this.siblings===null?null:y$3(!1,this.stack,-2)}get node(){return y$3(!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,nd=y$3(!1,qa,-3);return Array.isArray(nd)?nd: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:nd}=this;return qa!==null&&nd===qa.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...pe$2(this,te$2,tt$2).call(this)]}getName(){let{stack:qa}=this,{length:nd}=qa;return nd>1?y$3(!1,qa,-2):null}getValue(){return y$3(!1,this.stack,-1)}getNode(qa=0){let nd=pe$2(this,te$2,Nt$1).call(this,qa);return nd===-1?null:this.stack[nd]}getParentNode(qa=0){return this.getNode(qa+1)}call(qa,...nd){let{stack:od}=this,{length:ld}=od,ud=y$3(!1,od,-1);for(let dd of nd)ud=ud[dd
`)return qa-2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa-1}else{if(ld==="\r"&&Ra.charAt(qa+1)===`
`)return qa+2;if(ld===`
`||ld==="\r"||ld==="\u2028"||ld==="\u2029")return qa+1}return qa}var M$3=Ju;function Xu(Ra,qa,nd={}){let od=T$3(Ra,nd.backwards?qa-1:qa,nd),ld=M$3(Ra,od,nd);return od!==ld}var V$3=Xu;function Zu(Ra){return Array.isArray(Ra)&&Ra.length>0}var kt=Zu,Gr=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Qu=Ra=>Object.keys(Ra).filter(qa=>!Gr.has(qa));function eo(Ra){return Ra?qa=>Ra(qa,Gr):Qu}var X$4=eo;function to(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",nd=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 nd.length>20&&(nd=nd.slice(0,19)+"…"),qa+(nd?" "+nd:"")}function Lt(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=to(Ra)}function ue$2(Ra,qa){qa.leading=!0,qa.trailing=!1,Lt(Ra,qa)}function re$2(Ra,qa,nd){qa.leading=!1,qa.trailing=!1,nd&&(qa.marker=nd),Lt(Ra,qa)}function oe$2(Ra,qa){qa.leading=!1,qa.trailing=!0,Lt(Ra,qa)}var Pt=new WeakMap;function ut$2(Ra,qa){if(Pt.has(Ra))return Pt.get(Ra);let{printer:{getCommentChildNodes:nd,canAttachComment:od,getVisitorKeys:ld},locStart:ud,locEnd:dd}=qa;if(!od)return[];let pd=((nd==null?void 0:nd(Ra,qa))??[...Tt$1(Ra,{getVisitorKeys:X$4(ld)})]).flatMap(fd=>od(fd)?[fd]:ut$2(fd,qa));return pd.sort((fd,md)=>ud(fd)-ud(md)||dd(fd)-dd(md)),Pt.set(Ra,pd),pd}function qr(Ra,qa,nd,od){let{locStart:ld,locEnd:ud}=nd,dd=ld(qa),pd=ud(qa),fd=ut$2(Ra,nd),md,vd,Ad=0,Nd=fd.length;for(;Ad<Nd;){let Id=Ad+Nd>>1,Od=fd[Id],Md=ld(Od),Ud=ud(Od);if(Md<=dd&&pd<=Ud)return qr(Od,qa,nd,Od);if(Ud<=dd){md=Od,Ad=Id+1;continue}if(pd<=Md){vd=Od,Nd=Id;continue}throw new Error("Comment location overlaps with node location")}if((od==null?void 0:od.type)==="TemplateLiteral"){let{quasis:Id}=od,Od=Rt$1(Id,qa,nd);md&&Rt$1(Id,md,nd)!==Od&&(md=null),vd&&Rt$1(Id,vd,nd)!==Od&&(vd=null)}return{enclosingNode:od,precedingNode:md,followingNode:vd}}var It$1=()=>!1;function Jr(Ra,qa){let{comments:nd}=Ra;if(delete Ra.comments,!kt(nd)||!qa.printer.canAttachComment)return;let od=[],{locStart:ld,locEnd:ud,printer:{experimentalFeatures:{avoidAstMutation:dd=!1}={},handleComments:pd={}},originalText:fd}=qa,{ownLine:md=It$1,endOfLine:vd=It$1,remaining:Ad=It$1}=pd,Nd=nd.map((Id,Od)=>({...qr(Ra,Id,qa),comment:Id,text:fd,options:qa,ast:Ra,isLastComment:nd.length-1===Od}));for(let[Id,Od]of Nd.entries()){let{comment:Md,precedingNode:Ud,enclosingNode:jd,followingNode:Ld,text:Bd,options:Gd,ast:qd,isLastComment:zd}=Od;if(Gd.parser==="json"||Gd.parser==="json5"||Gd.parser==="jsonc"||Gd.parser==="__js_expression"||Gd.parser==="__ts_expression"||Gd.parser==="__vue_expression"||Gd.parser==="__vue_ts_expression"){if(ld(Md)-ld(qd)<=0){ue$2(qd,Md);continue}if(ud(Md)-ud(qd)>=0){oe$2(qd,Md);continue}}let Xd;if(dd?Xd=[Od]:(Md.enclosingNode=jd,Md.precedingNode=Ud,Md.followingNode=Ld,Xd=[Md,Bd,Gd,qd,zd]),ro(Bd,Gd,Nd,Id))Md.placement="ownLine",md(...Xd)||(Ld?ue$2(Ld,Md):Ud?oe$2(Ud,Md):re$2(jd||qd,Md));else if(no(Bd,Gd,Nd,Id))Md.placement="endOfLine",vd(...Xd)||(Ud?oe$2(Ud,Md):Ld?ue$2(Ld,Md):re$2(jd||qd,Md));else if(Md.placement="remaining",!Ad(...Xd))if(Ud&&Ld){let gf=od.length;gf>0&&od[gf-1].followingNode!==Ld&&Kr(od,Gd),od.push(Od)}else Ud?oe$2(Ud,Md):Ld?ue$2(Ld,Md):re$2(jd||qd,Md)}if(Kr(od,qa),!dd)for(let Id of nd)delete Id.precedingNode,delete Id.enclosingNode,delete Id.followingNode}var Xr=Ra=>!/[\S\n\u2028\u2029]/u.test(Ra);function ro(Ra,qa,nd,od){let{comment:ld,precedingNode:ud}=nd[od],{locStart:dd,locEnd:pd}=qa,fd=dd(ld);if(ud)for(let md=od-1;md>=0;md--){let{comment:vd,precedingNode:Ad}=nd[md];if(Ad!==ud||!Xr(Ra.slice(pd(vd),fd)))break;fd=dd(vd)}return V$3(Ra,fd,{backwards:!0})}function no(Ra,qa,nd,od){let{comment:ld,followingNode:ud}=nd[od],{locStart:dd,locEnd:pd}=qa,fd=pd(ld);if(ud)for(let md=od+1;md<nd.length;md++){let{comment:vd,followingNode:Ad}=nd[md];if(Ad!==ud||!Xr(Ra.slice(fd,dd(vd))))break;fd=pd(vd)}return V$3(Ra,fd)}function Kr(Ra,qa){var nd,od;let ld=Ra.length;if(ld===0)return;let{precedingNode:ud,followingNode:dd}
(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$2({plugins:Ra=[],showDeprecated:qa=!1}={}){let nd=Ra.flatMap(ld=>ld.languages??[]),od=[];for(let ld of lo(Object.assign({},...Ra.map(({options:ud})=>ud),rn$1)))!qa&&ld.deprecated||(Array.isArray(ld.choices)&&(qa||(ld.choices=ld.choices.filter(ud=>!ud.deprecated)),ld.name==="parser"&&(ld.choices=[...ld.choices,...Do(ld.choices,nd,Ra)])),ld.pluginDefaults=Object.fromEntries(Ra.filter(ud=>{var dd;return((dd=ud.defaultOptions)==null?void 0:dd[ld.name])!==void 0}).map(ud=>[ud.name,ud.defaultOptions[ld.name]])),od.push(ld));return{languages:nd,options:od}}function*Do(Ra,qa,nd){let od=new Set(Ra.map(ld=>ld.value));for(let ld of qa)if(ld.parsers){for(let ud of ld.parsers)if(!od.has(ud)){od.add(ud);let dd=nd.find(fd=>fd.parsers&&Object.prototype.hasOwnProperty.call(fd.parsers,ud)),pd=ld.name;dd!=null&&dd.name&&(pd+=` (plugin: ${dd.name})`),yield{value:ud,description:pd}}}}function lo(Ra){let qa=[];for(let[nd,od]of Object.entries(Ra)){let ld={name:nd,...od};Array.isArray(ld.default)&&(ld.default=y$3(!1,ld.default,-1).value),qa.push(ld)}return qa}var co$1=Ra=>String(Ra).split(/[/\\]/u).pop();function nn$1(Ra,qa){if(!qa)return;let nd=co$1(qa).toLowerCase();return Ra.find(({filenames:od})=>od==null?void 0:od.some(ld=>ld.toLowerCase()===nd))??Ra.find(({extensions:od})=>od==null?void 0:od.some(ld=>nd.endsWith(ld)))}function fo(Ra,qa){if(qa)return Ra.find(({name:nd})=>nd.toLowerCase()===qa)??Ra.find(({aliases:nd})=>nd==null?void 0:nd.includes(qa))??Ra.find(({extensions:nd})=>nd==null?void 0:nd.includes(`.${qa}`))}function po(Ra,qa){let nd=Ra.plugins.flatMap(ld=>ld.languages??[]),od=fo(nd,qa.language)??nn$1(nd,qa.physicalFile)??nn$1(nd,qa.file)??(qa.physicalFile,void 0);return od==null?void 0:od.parsers[0]}var un$1=po,ie$2={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(nd=>ie$2.value(nd)).join(", ")}]`;let qa=Object.keys(Ra);return qa.length===0?"{}":`{ ${qa.map(nd=>`${ie$2.key(nd)}: ${ie$2.value(Ra[nd])}`).join(", ")} }`},pair:({key:Ra,value:qa})=>ie$2.value({[Ra]:qa})},Yt$1=Me$2(it$1()),an$2=(Ra,qa,{descriptor:nd})=>{let od=[`${Yt$1.default.yellow(typeof Ra=="string"?nd.key(Ra):nd.pair(Ra))} is deprecated`];return qa&&od.push(`we now treat it as ${Yt$1.default.blue(typeof qa=="string"?nd.key(qa):nd.pair(qa))}`),od.join("; ")+"."},le$2=Me$2(it$1()),st$2=Symbol.for("vnopts.VALUE_NOT_EXIST"),he$2=Symbol.for("vnopts.VALUE_UNCHANGED"),Dn=" ".repeat(2),cn$2=(Ra,qa,nd)=>{let{text:od,list:ld}=nd.normalizeExpectedResult(nd.schemas[Ra].expected(nd)),ud=[];return od&&ud.push(ln$1(Ra,qa,od,nd.descriptor)),ld&&ud.push([ln$1(Ra,qa,ld.title,nd.descriptor)].concat(ld.values.map(dd=>fn$1(dd,nd.loggerPrintWidth))).join(`
`)),pn$1(ud,nd.loggerPrintWidth)};function ln$1(Ra,qa,nd,od){return[`Invalid ${le$2.default.red(od.key(Ra))} value.`,`Expected ${le$2.default.blue(nd)},`,`but received ${qa===st$2?le$2.default.gray("nothing"):le$2.default.red(od.value(qa))}.`].join(" ")}function fn$1({text:Ra,list:qa},nd){let od=[];return Ra&&od.push(`- ${le$2.default.blue(Ra)}`),qa&&od.push([`- ${le$2.default.blue(qa.title)}:`].concat(qa.values.map(ld=>fn$1(ld,nd-Dn.length).replace(/^|\n/g,`$&${Dn}`))).join(`
`)),pn$1(od,nd)}function pn$1(Ra,qa){if(Ra.length===1)return Ra[0];let[nd,od]=Ra,[ld,ud]=Ra.map(dd=>dd.split(`
`,1)[0].length);return ld>qa&&ld>ud?od:nd}var Wt$2=Me$2(it$1()),jt=[],dn$1=[];function Ht$1(Ra,qa){if(Ra===qa)return 0;let nd=Ra;Ra.length>qa.length&&(Ra=qa,qa=nd);let od=Ra.length,ld=qa.length;for(;od>0&&Ra.charCodeAt(~-od)===qa.charCodeAt(~-ld);)od--,ld--;let ud=0;for(;ud<od&&Ra.charCodeAt(ud)===qa.charCodeAt(ud);)ud++;if(od-=ud,ld-=ud,od===0)return ld;let dd,pd,fd,md,vd=0,Ad=0;for(;vd<od;)dn$1[vd]=Ra.charCodeAt(ud+vd),jt[vd]=++vd;for(;Ad<ld;)for(dd=qa.charCodeAt(ud+Ad),fd=Ad++,pd=Ad,vd=0;vd<od;vd++)md=dd===dn$1[vd]?fd:fd+1,fd=jt[vd],pd=jt[vd]=fd>pd?md>pd?pd+1:md:md>fd?fd+1:md;return pd}var at$4=(Ra,qa,{descriptor:nd,logger:od,schemas:ld})=>{let ud=[`Ignored unknown option ${Wt$2.default.yellow(nd.pair({key:Ra,value:qa}))}.`],dd=Object.keys(ld).sort().find(pd=>Ht$1(Ra,pd)<3);dd&&ud.push(`Did you mean ${Wt$2.default.blue(nd.key(dd))}?`),od.warn(ud.join(" "))},Fo=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function mo(Ra,qa){let nd=new Ra(qa),od=Object.create(nd);for(let ld of Fo)ld in qa&&(od[ld]=Eo(qa[ld],nd,O$2.prototype[ld].length));return od}var O$2=class{static create(qa){return mo(this,qa)}constructor(qa){this.name=qa.name}default(qa){}expected(qa){return"nothing"}validate(qa,nd){return!1}deprecated(qa,nd){return!1}forward(qa,nd){}redirect(qa,nd){}overlap(qa,nd,od){return qa}preprocess(qa,nd){return qa}postprocess(qa,nd){return he$2}};function Eo(Ra,qa,nd){return typeof Ra=="function"?(...od)=>Ra(...od.slice(0,nd-1),qa,...od.slice(nd-1)):()=>Ra}var Dt=class extends O$2{constructor(Ra){super(Ra),this._sourceName=Ra.sourceName}expected(Ra){return Ra.schemas[this._sourceName].expected(Ra)}validate(Ra,qa){return qa.schemas[this._sourceName].validate(Ra,qa)}redirect(Ra,qa){return this._sourceName}},lt$1=class extends O$2{expected(){return"anything"}validate(){return!0}},ct$2=class extends O$2{constructor({valueSchema:qa,name:nd=qa.name,...od}){super({...od,name:nd}),this._valueSchema=qa}expected(qa){let{text:nd,list:od}=qa.normalizeExpectedResult(this._valueSchema.expected(qa));return{text:nd&&`an array of ${nd}`,list:od&&{title:"an array of the following values",values:[{list:od}]}}}validate(qa,nd){if(!Array.isArray(qa))return!1;let od=[];for(let ld of qa){let ud=nd.normalizeValidateResult(this._valueSchema.validate(ld,nd),ld);ud!==!0&&od.push(ud.value)}return od.length===0?!0:{value:od}}deprecated(qa,nd){let od=[];for(let ld of qa){let ud=nd.normalizeDeprecatedResult(this._valueSchema.deprecated(ld,nd),ld);ud!==!1&&od.push(...ud.map(({value:dd})=>({value:[dd]})))}return od}forward(qa,nd){let od=[];for(let ld of qa){let ud=nd.normalizeForwardResult(this._valueSchema.forward(ld,nd),ld);od.push(...ud.map(Fn))}return od}redirect(qa,nd){let od=[],ld=[];for(let ud of qa){let dd=nd.normalizeRedirectResult(this._valueSchema.redirect(ud,nd),ud);"remain"in dd&&od.push(dd.remain),ld.push(...dd.redirect.map(Fn))}return od.length===0?{redirect:ld}:{redirect:ld,remain:od}}overlap(qa,nd){return qa.concat(nd)}};function Fn({from:Ra,to:qa}){return{from:[Ra],to:qa}}var ft$1=class extends O$2{expected(){return"true or false"}validate(qa){return typeof qa=="boolean"}};function En(Ra,qa){let nd=Object.create(null);for(let od of Ra){let ld=od[qa];if(nd[ld])throw new Error(`Duplicate ${qa} ${JSON.stringify(ld)}`);nd[ld]=od}return nd}function hn(Ra,qa){let nd=new Map;for(let od of Ra){let ld=od[qa];if(nd.has(ld))throw new Error(`Duplicate ${qa} ${JSON.stringify(ld)}`);nd.set(ld,od)}return nd}function Cn(){let Ra=Object.create(null);return qa=>{let nd=JSON.stringify(qa);return Ra[nd]?!0:(Ra[nd]=!0,!1)}}function gn$1(Ra,qa){let nd=[],od=[];for(let ld of Ra)qa(ld)?nd.push(ld):od.push(ld);return[nd,od]}function yn$1(Ra){return Ra===Math.floor(Ra)}function An(Ra,qa){if(Ra===qa)return 0;let nd=typeof Ra,od=typeof qa,ld=["undefined","object","boolean","number","string"];return nd!==od?ld.indexOf(nd)-ld.indexOf(od):nd!=="string"?Number(Ra)-Number(qa):Ra.localeCompare(qa)}function Bn(Ra){return(...qa)=>{let nd=Ra(...qa);return typeof nd=="string"?new Error(nd):nd}}function Mt$1(Ra){return
`+od,Ra.codeFrame=od,Ra}throw Ra}var ce$4=ko;async function Un(Ra,qa,nd,od,ld){let{embeddedLanguageFormatting:ud,printer:{embed:dd,hasPrettierIgnore:pd=()=>!1,getVisitorKeys:fd}}=nd;if(!dd||ud!=="auto")return;if(dd.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 md=X$4(dd.getVisitorKeys??fd),vd=[];Id();let Ad=Ra.stack;for(let{print:Od,node:Md,pathStack:Ud}of vd)try{Ra.stack=Ud;let jd=await Od(Nd,qa,Ra,nd);jd&&ld.set(Md,jd)}catch(jd){if(globalThis.PRETTIER_DEBUG)throw jd}Ra.stack=Ad;function Nd(Od,Md){return Po(Od,Md,nd,od)}function Id(){let{node:Od}=Ra;if(Od===null||typeof Od!="object"||pd(Ra))return;for(let Ud of md(Od))Array.isArray(Od[Ud])?Ra.each(Id,Ud):Ra.call(Id,Ud);let Md=dd(Ra,nd);if(Md){if(typeof Md=="function"){vd.push({print:Md,node:Od,pathStack:[...Ra.stack]});return}ld.set(Od,Md)}}}async function Po(Ra,qa,nd,od){let ld=await se$3({...nd,...qa,parentParser:nd.parser,originalText:Ra},{passThrough:!0}),{ast:ud}=await ce$4(Ra,ld),dd=await od(ud,ld);return Ze$1(dd)}function Io(Ra,qa){let{originalText:nd,[Symbol.for("comments")]:od,locStart:ld,locEnd:ud,[Symbol.for("printedComments")]:dd}=qa,{node:pd}=Ra,fd=ld(pd),md=ud(pd);for(let vd of od)ld(vd)>=fd&&ud(vd)<=md&&dd.add(vd);return nd.slice(fd,md)}var zn=Io;async function Ye$2(Ra,qa){({ast:Ra}=await Qt$1(Ra,qa));let nd=new Map,od=new Mr(Ra),ld=new Map;await Un(od,dd,qa,Ye$2,ld);let ud=await Gn(od,qa,dd,void 0,ld);return en$1(qa),ud;function dd(fd,md){return fd===void 0||fd===od?pd(md):Array.isArray(fd)?od.call(()=>pd(md),...fd):od.call(()=>pd(md),fd)}function pd(fd){let md=od.node;if(md==null)return"";let vd=md&&typeof md=="object"&&fd===void 0;if(vd&&nd.has(md))return nd.get(md);let Ad=Gn(od,qa,dd,fd,ld);return vd&&nd.set(md,Ad),Ad}}function Gn(Ra,qa,nd,od,ld){var ud;let{node:dd}=Ra,{printer:pd}=qa,fd;return(ud=pd.hasPrettierIgnore)!=null&&ud.call(pd,Ra)?fd=zn(Ra,qa):ld.has(dd)?fd=ld.get(dd):fd=pd.print(Ra,qa,nd,od),dd===qa.cursorNode&&(fd=Qe$1(fd,md=>[ve$3,md,ve$3])),pd.printComment&&(!pd.willPrintOwnComments||!pd.willPrintOwnComments(Ra,qa))&&(fd=Qr(Ra,fd,qa)),fd}async function Qt$1(Ra,qa){let nd=Ra.comments??[];qa[Symbol.for("comments")]=nd,qa[Symbol.for("tokens")]=Ra.tokens??[],qa[Symbol.for("printedComments")]=new Set,Jr(Ra,qa);let{printer:{preprocess:od}}=qa;return Ra=od?await od(Ra,qa):Ra,{ast:Ra,comments:nd}}function Ro(Ra,qa){let{cursorOffset:nd,locStart:od,locEnd:ld}=qa,ud=X$4(qa.printer.getVisitorKeys),dd=fd=>od(fd)<=nd&&ld(fd)>=nd,pd=Ra;for(let fd of Ur(Ra,{getVisitorKeys:ud,filter:dd}))pd=fd;return pd}var Kn=Ro;function Yo(Ra,qa){let{printer:{massageAstNode:nd,getVisitorKeys:od}}=qa;if(!nd)return Ra;let ld=X$4(od),ud=nd.ignoredProperties??new Set;return dd(Ra);function dd(pd,fd){if(!(pd!==null&&typeof pd=="object"))return pd;if(Array.isArray(pd))return pd.map(Nd=>dd(Nd,fd)).filter(Boolean);let md={},vd=new Set(ld(pd));for(let Nd in pd)!Object.prototype.hasOwnProperty.call(pd,Nd)||ud.has(Nd)||(vd.has(Nd)?md[Nd]=dd(pd[Nd],pd):md[Nd]=pd[Nd]);let Ad=nd(pd,md,fd);if(Ad!==null)return Ad??md}}var qn=Yo,jo=(Ra,qa,nd)=>{if(!(Ra&&qa==null)){if(qa.findLastIndex)return qa.findLastIndex(nd);for(let od=qa.length-1;od>=0;od--){let ld=qa[od];if(nd(ld,od,qa))return od}return-1}},Jn=jo,Ho=({parser:Ra})=>Ra==="json"||Ra==="json5"||Ra==="jsonc"||Ra==="json-stringify";function Wo(Ra,qa){let nd=[Ra.node,...Ra.parentNodes],od=new Set([qa.node,...qa.parentNodes]);return nd.find(ld=>Qn.has(ld.type)&&od.has(ld))}function Xn(Ra){let qa=Jn(!1,Ra,nd=>nd.type!=="Program"&&nd.type!=="File");return qa===-1?Ra:Ra.slice(0,qa+1)}function Mo(Ra,qa,{locStart:nd,locEnd:od}){let ld=Ra.node,ud=qa.node;if(ld===ud)return{startNode:ld,endNode:ud};let dd=nd(Ra.node);for(let fd of Xn(qa.parentNodes))if(nd(fd)>=dd)ud=fd;else break;let pd=od(qa.node);for(let fd of Xn(Ra.parentNodes)){if(od(fd)<=pd)ld=fd;else break;if(ld===ud)break}return{startNode:ld,endNode:ud}}function er(Ra,qa,nd,od,ld=[],ud){let{locStart:dd,locEnd:pd}=nd,fd=dd(Ra),md=pd(Ra);if(!(qa>md|
`,ld)+1),fd=od.slice(pd,ld).match(/^\s*/u)[0],md=me$3(fd,qa.tabWidth),vd=await ou(dd,{...qa,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:qa.cursorOffset>ld&&qa.cursorOffset<=ud?qa.cursorOffset-ld:-1,endOfLine:"lf"},md),Ad=vd.formatted.trimEnd(),{cursorOffset:Nd}=qa;Nd>ud?Nd+=Ad.length-dd.length:vd.cursorOffset>=0&&(Nd=vd.cursorOffset+ld);let Id=od.slice(0,ld)+Ad+od.slice(ud);if(qa.endOfLine!=="lf"){let Od=Be$3(qa.endOfLine);Nd>=0&&Od===`\r
`&&(Nd+=wt$1(Id.slice(0,Nd),`
`)),Id=ne$3(!1,Id,`
`,Od)}return{formatted:Id,cursorOffset:Nd,comments:vd.comments}}function tr(Ra,qa,nd){return typeof qa!="number"||Number.isNaN(qa)||qa<0||qa>Ra.length?nd:qa}function ru(Ra,qa){let{cursorOffset:nd,rangeStart:od,rangeEnd:ld}=qa;return nd=tr(Ra,nd,-1),od=tr(Ra,od,0),ld=tr(Ra,ld,Ra.length),{...qa,cursorOffset:nd,rangeStart:od,rangeEnd:ld}}function iu(Ra,qa){let{cursorOffset:nd,rangeStart:od,rangeEnd:ld,endOfLine:ud}=ru(Ra,qa),dd=Ra.charAt(0)===uu;if(dd&&(Ra=Ra.slice(1),nd--,od--,ld--),ud==="auto"&&(ud=Fr(Ra)),Ra.includes("\r")){let pd=fd=>wt$1(Ra.slice(0,Math.max(fd,0)),`\r
`);nd-=pd(nd),od-=pd(od),ld-=pd(ld),Ra=mr(Ra)}return{hasBOM:dd,text:Ra,options:ru(Ra,{...qa,cursorOffset:nd,rangeStart:od,rangeEnd:ld,endOfLine:ud})}}async function nu(Ra,qa){let nd=await ht$1(qa);return!nd.hasPragma||nd.hasPragma(Ra)}async function rr(Ra,qa){let{hasBOM:nd,text:od,options:ld}=iu(Ra,await se$3(qa));if(ld.rangeStart>=ld.rangeEnd&&od!==""||ld.requirePragma&&!await nu(od,ld))return{formatted:Ra,cursorOffset:qa.cursorOffset,comments:[]};let ud;return ld.rangeStart>0||ld.rangeEnd<od.length?ud=await Uo(od,ld):(!ld.requirePragma&&ld.insertPragma&&ld.printer.insertPragma&&!await nu(od,ld)&&(od=ld.printer.insertPragma(od)),ud=await ou(od,ld)),nd&&(ud.formatted=uu+ud.formatted,ud.cursorOffset>=0&&ud.cursorOffset++),ud}async function su(Ra,qa,nd){let{text:od,options:ld}=iu(Ra,await se$3(qa)),ud=await ce$4(od,ld);return nd&&(nd.preprocessForPrint&&(ud.ast=await Qt$1(ud.ast,ld)),nd.massage&&(ud.ast=qn(ud.ast,ld))),ud}async function au$1(Ra,qa){qa=await se$3(qa);let nd=await Ye$2(Ra,qa);return Fe$2(nd,qa)}async function Du(Ra,qa){let nd=Or(Ra),{formatted:od}=await rr(nd,{...qa,parser:"__js_expression"});return od}async function lu(Ra,qa){qa=await se$3(qa);let{ast:nd}=await ce$4(Ra,qa);return Ye$2(nd,qa)}async function cu$1(Ra,qa){return Fe$2(Ra,await se$3(qa))}var nr={};We$1(nr,{builders:()=>Go,printer:()=>Ko,utils:()=>qo});var Go={join:be$4,line:Ke$2,softline:vr,hardline:q$4,literalline:qe,group:_t$1,conditionalGroup:Ar,fill:Ge$1,lineSuffix:xe$2,lineSuffixBoundary:xr,cursor:ve$3,breakParent:de$2,ifBreak:Br,trim:_r,indent:De$2,indentIfBreak:wr,align:ae$3,addAlignmentToDoc:Je$1,markAsRoot:gr,dedentToRoot:Cr,dedent:yr,hardlineWithoutBreakParent:_e$2,literallineWithoutBreakParent:vt$2,label:br$3,concat:Ra=>Ra},Ko={printDocToString:Fe$2},qo={willBreak:Ir,traverseDoc:we$3,findInDoc:Xe$1,mapDoc:Ne$2,removeLines:Yr,stripTrailingHardline:Ze$1,replaceEndOfLine:jr,canBreak:Hr},fu="3.3.3",or={};We$1(or,{addDanglingComment:()=>re$2,addLeadingComment:()=>ue$2,addTrailingComment:()=>oe$2,getAlignmentSize:()=>me$3,getIndentSize:()=>pu,getMaxContinuousCount:()=>du,getNextNonSpaceNonCommentCharacter:()=>Fu,getNextNonSpaceNonCommentCharacterIndex:()=>si,getStringWidth:()=>Oe$2,hasNewline:()=>V$3,hasNewlineInRange:()=>mu,hasSpaces:()=>Eu,isNextLineEmpty:()=>ci$1,isNextLineEmptyAfterIndex:()=>gt$1,isPreviousLineEmpty:()=>Di,makeString:()=>hu,skip:()=>Ee$3,skipEverythingButNewLine:()=>nt$2,skipInlineComment:()=>Ce$2,skipNewline:()=>M$3,skipSpaces:()=>T$3,skipToLineEnd:()=>rt$1,skipTrailingComment:()=>ge$3,skipWhitespace:()=>zr});function Jo(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let nd=qa+2;nd<Ra.length;++nd)if(Ra.charAt(nd)==="*"&&Ra.charAt(nd+1)==="/")return nd+2}return qa}var Ce$2=Jo;function Xo(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?nt$2(Ra,qa):qa}var ge$3=Xo;function Zo(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=T$3(Ra,od),od=Ce$2(Ra,od),od=ge$3(Ra,od),od=M$3(Ra,od);return od}var je$3=Zo;function Qo(Ra,qa){let nd=null,od=qa;for(;od!==nd;)nd=od,od=rt$1(Ra,od),od=Ce$2(Ra,od),od=T$3(Ra,od);return od=ge$3(Ra,od),od=M$3(Ra,od),od!==!1&&V$3(Ra,od)}var gt$1=Qo;function ei(Ra,qa){let nd=Ra.lastIndexOf(`
`);return nd===-1?0:me$3(Ra.slice(nd+1).match(/^[\t ]*/u)[0],qa)}var pu=ei;function ur(Ra){if(typeof Ra!="string")throw new TypeError("Expected a string");return Ra.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ti(Ra,qa){let nd=Ra.match(new RegExp(`(${ur(qa)})+`,"gu"));return nd===null?0:nd.reduce((od,ld)=>Math.max(od,ld.length/qa.length),0)}var du=ti;function ri(Ra,qa){let nd=je$3(Ra,qa);return nd===!1?"":Ra.charAt(nd)}var Fu=ri;function ni(Ra,qa,nd){for(let od=qa;od<nd;++od)if(Ra.charAt(od)===`
`)return!0;return!1}var mu=ni;function ui(Ra,qa,nd={}){return T$3(Ra,nd.backwards?qa-1:qa,nd)!==qa}var Eu=ui;function oi(Ra,qa,nd){let od=qa==='"'?"'":'"',ld=ne$3(!1,Ra,/\\(.)|(["'])/gsu,(ud,dd,pd)=>dd===od?dd:pd===qa?"\\"+pd:pd||(nd&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(dd)?dd:"\\"+dd));return qa+ld+qa}var hu=oi;function ii$1(Ra,qa,nd){return je$3(Ra,nd(qa))}function si(Ra,qa){return arguments.length===2||typeof qa=="number"?je$3(Ra,qa):ii$1(...arguments)}function ai$1(Ra,qa,nd){return Le$3(Ra,nd(qa))}function Di(Ra,qa){return arguments.length===2||typeof qa=="number"?Le$3(Ra,qa):ai$1(...arguments)}function li(Ra,qa,nd){return gt$1(Ra,nd(qa))}function ci$1(Ra,qa){return arguments.length===2||typeof qa=="number"?gt$1(Ra,qa):li(...arguments)}function fe$3(Ra,qa=1){return async(...nd)=>{let od=nd[qa]??{},ld=od.plugins??[];return nd[qa]={...od,plugins:Array.isArray(ld)?ld:Object.values(ld)},Ra(...nd)}}var Cu=fe$3(rr);async function gu(Ra,qa){let{formatted:nd}=await Cu(Ra,{...qa,cursorOffset:-1});return nd}async function fi(Ra,qa){return await gu(Ra,qa)===Ra}var pi$2=fe$3(ot$2,0),di={parse:fe$3(su),formatAST:fe$3(au$1),formatDoc:fe$3(Du),printToDoc:fe$3(lu),printDocToString:fe$3(cu$1)};function addPrefix(Ra){return`${prefix}__${Ra}`}function customizeTheme(Ra,qa){const nd=JSON.parse(JSON.stringify(Ra)),{fontSize:od,color:ld}=qa;if(od)for(let ud=1;ud<=6;ud++){const dd=nd.block[`h${ud}`]["font-size"];nd.block[`h${ud}`]["font-size"]=`${od*Number.parseFloat(dd)}px`}return ld&&(nd.base["--md-primary-color"]=ld),nd}function customCssWithTemplate(Ra,qa,nd){const od=customizeTheme(nd,{color:qa}),ld=(pd,fd,md)=>{md.forEach(vd=>{fd[vd]&&(pd[vd]=Object.assign(pd[vd]||{},fd[vd]))})},ud=["h1","h2","h3","h4","h5","h6","code","code_pre","p","hr","blockquote","blockquote_note","blockquote_tip","blockquote_important","blockquote_warning","blockquote_caution","blockquote_p","blockquote_p_note","blockquote_p_tip","blockquote_p_important","blockquote_p_warning","blockquote_p_caution","blockquote_title","blockquote_title_note","blockquote_title_tip","blockquote_title_important","blockquote_title_warning","blockquote_title_caution","image","ul","ol"],dd=["strong","codespan","link","wx_link","listitem"];return ld(od.block,Ra,ud),ld(od.inline,Ra,dd),od}function css2json(Ra){Ra=Ra.replace(/\/\*[\s\S]*?\*\//g,"");const qa={},nd=od=>od.reduce((ld,ud)=>{const[dd,pd]=ud.split(":").map(fd=>fd.trim());return dd&&(ld[dd]=pd),ld},{});for(;Ra.includes("{")&&Ra.includes("}");){const od=Ra.indexOf("{"),ld=Ra.indexOf("}"),ud=Ra.substring(od+1,ld).split(";").map(fd=>fd.trim()).filter(Boolean),dd=Ra.substring(0,od).split(",").map(fd=>fd.trim()),pd=nd(ud);dd.forEach(fd=>{qa[fd]={...qa[fd]||{},...pd}}),Ra=Ra.slice(ld+1).trim()}return qa}function getStyleString(Ra){return Object.entries(Ra??{}).map(([qa,nd])=>`${qa}: ${nd}`).join("; ")}async function formatDoc(Ra,qa="markdown"){const nd={markdown:[prettierPluginMarkdown,prettierPluginBabel,prettierPluginEstree],css:[prettierPluginCss]},od=qa in nd?qa:"markdown";return await gu(Ra,{parser:od,plugins:nd[od]})}function downloadMD(Ra){const qa=document.createElement("a");qa.download="content.md",qa.style.display="none";const nd=new Blob([Ra]);qa.href=URL.createObjectURL(nd),document.body.appendChild(qa),qa.click(),document.body.removeChild(qa)}function exportHTML(Ra){const qa=document.querySelector("#output");ud(qa);const nd=qa.innerHTML.replaceAll("var(--md-primary-color)",Ra).replaceAll(/--md-primary-color:.+?;/g,""),od=document.createElement("a");od.download="content.html",od.style.display="none";const ld=new Blob([`<html><head><meta charset="utf-8" /></head><body><div style="width: 750px; margin: auto;">${nd}</div></body></html>`]);od.href=URL.createObjectURL(ld),document.body.appendChild(od),od.click(),document.body.removeChild(od);function ud(dd){function pd(Ad,Nd=["width","height","inlineSize","webkitLogicalWidth","webkitLogicalHeight"]){const Id=getComputedStyle(Ad,null);return Object.entries(Id).filter(([Od])=>{const Md=Od.replace(/[A-Z]/g,Ud=>`-${Ud.toLowerCase()}`);return Id.getPropertyValue(Md)&&!Nd
`}return od}function toBase64$2(Ra){return new Promise((qa,nd)=>{const od=new FileReader;od.readAsDataURL(Ra),od.onload=()=>qa(od.result.split(",").pop()),od.onerror=ld=>nd(ld)})}function checkImage(Ra){if(!/\.(?:gif|jpe?g|png)$/i.test(Ra.name))return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const nd=10;return Ra.size>nd*1024*1024?{ok:!1,msg:`由于公众号限制图片大小不能超过 ${nd}M`}:{ok:!0}}function removeLeft(Ra){const qa=Ra.split(`
`),nd=qa.filter(od=>od.trim()).map(od=>od.match(/(^\s+)?/)[0].length).sort((od,ld)=>od-ld)[0];return qa.map(od=>od.slice(nd)).join(`
`)}function solveWeChatImage(){const qa=document.getElementById("output").getElementsByTagName("img");for(let nd=0;nd<qa.length;nd++){const od=qa[nd],ld=od.getAttribute("width"),ud=od.getAttribute("height");od.removeAttribute("width"),od.removeAttribute("height"),od.style.width=ld,od.style.height=ud}}function mergeCss(Ra){return juice(Ra,{inlinePseudoElements:!0,preserveImportant:!0})}function deepFreeze(Ra){return Ra instanceof Map?Ra.clear=Ra.delete=Ra.set=function(){throw new Error("map is read-only")}:Ra instanceof Set&&(Ra.add=Ra.clear=Ra.delete=function(){throw new Error("set is read-only")}),Object.freeze(Ra),Object.getOwnPropertyNames(Ra).forEach(qa=>{const nd=Ra[qa],od=typeof nd;(od==="object"||od==="function")&&!Object.isFrozen(nd)&&deepFreeze(nd)}),Ra}let Response$1=class{constructor(qa){qa.data===void 0&&(qa.data={}),this.data=qa.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function escapeHTML(Ra){return Ra.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function inherit$1(Ra,...qa){const nd=Object.create(null);for(const od in Ra)nd[od]=Ra[od];return qa.forEach(function(od){for(const ld in od)nd[ld]=od[ld]}),nd}const SPAN_CLOSE="</span>",emitsWrappingTags=Ra=>!!Ra.scope,scopeToCSSClass=(Ra,{prefix:qa})=>{if(Ra.startsWith("language:"))return Ra.replace("language:","language-");if(Ra.includes(".")){const nd=Ra.split(".");return[`${qa}${nd.shift()}`,...nd.map((od,ld)=>`${od}${"_".repeat(ld+1)}`)].join(" ")}return`${qa}${Ra}`};class HTMLRenderer{constructor(qa,nd){this.buffer="",this.classPrefix=nd.classPrefix,qa.walk(this)}addText(qa){this.buffer+=escapeHTML(qa)}openNode(qa){if(!emitsWrappingTags(qa))return;const nd=scopeToCSSClass(qa.scope,{prefix:this.classPrefix});this.span(nd)}closeNode(qa){emitsWrappingTags(qa)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span(qa){this.buffer+=`<span class="${qa}">`}}const newNode=(Ra={})=>{const qa={children:[]};return Object.assign(qa,Ra),qa};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(qa){this.top.children.push(qa)}openNode(qa){const nd=newNode({scope:qa});this.add(nd),this.stack.push(nd)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(qa){return this.constructor._walk(qa,this.rootNode)}static _walk(qa,nd){return typeof nd=="string"?qa.addText(nd):nd.children&&(qa.openNode(nd),nd.children.forEach(od=>this._walk(qa,od)),qa.closeNode(nd)),qa}static _collapse(qa){typeof qa!="string"&&qa.children&&(qa.children.every(nd=>typeof nd=="string")?qa.children=[qa.children.join("")]:qa.children.forEach(nd=>{TokenTree._collapse(nd)}))}}class TokenTreeEmitter extends TokenTree{constructor(qa){super(),this.options=qa}addText(qa){qa!==""&&this.add(qa)}startScope(qa){this.openNode(qa)}endScope(){this.closeNode()}__addSublanguage(qa,nd){const od=qa.root;nd&&(od.scope=`language:${nd}`),this.add(od)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function source(Ra){return Ra?typeof Ra=="string"?Ra:Ra.source:null}function lookahead(Ra){return concat$2("(?=",Ra,")")}function anyNumberOfTimes(Ra){return concat$2("(?:",Ra,")*")}function optional(Ra){return concat$2("(?:",Ra,")?")}function concat$2(...Ra){return Ra.map(nd=>source(nd)).join("")}function stripOptionsFromArgs(Ra){const qa=Ra[Ra.length-1];return typeof qa=="object"&&qa.constructor===Object?(Ra.splice(Ra.length-1,1),qa):{}}function either(...Ra){return"("+(stripOptionsFromArgs(Ra).capture?"":"?:")+Ra.map(od=>source(od)).join("|")+")"}function countMatchGroups(Ra){return new RegExp(Ra.toString()+"|").exec("").length-1}function startsWith$1(Ra,qa){const nd=Ra&&Ra.exec(qa);return nd&&nd.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(Ra,{joinWith:qa}){let nd=0;return Ra.map(od=>{nd+=1;const ld=nd;let ud
https://github.com/highlightjs/highlight.js/issues/2277`),th=Df,eh=jf),Jf===void 0&&(Jf=!0);const Uf={code:eh,language:th};vf("before:highlight",Uf);const Of=Uf.result?Uf.result:Ad(Uf.language,Uf.code,Jf);return Of.code=Uf.code,vf("after:highlight",Of),Of}function Ad(Df,jf,Jf,eh){const th=Object.create(null);function Uf(gm,Mm){return gm.keywords[Mm]}function Of(){if(!Kf.keywords){Ah.addText(mh);return}let gm=0;Kf.keywordPatternRe.lastIndex=0;let Mm=Kf.keywordPatternRe.exec(mh),Hm="";for(;Mm;){Hm+=mh.substring(gm,Mm.index);const gh=Zf.case_insensitive?Mm[0].toLowerCase():Mm[0],Lf=Uf(Kf,gh);if(Lf){const[$f,fh]=Lf;if(Ah.addText(Hm),Hm="",th[gh]=(th[gh]||0)+1,th[gh]<=MAX_KEYWORD_HITS&&(im+=fh),$f.startsWith("_"))Hm+=Mm[0];else{const Ch=Zf.classNameAliases[$f]||$f;zf(Mm[0],Ch)}}else Hm+=Mm[0];gm=Kf.keywordPatternRe.lastIndex,Mm=Kf.keywordPatternRe.exec(mh)}Hm+=mh.substring(gm),Ah.addText(Hm)}function Wf(){if(mh==="")return;let gm=null;if(typeof Kf.subLanguage=="string"){if(!qa[Kf.subLanguage]){Ah.addText(mh);return}gm=Ad(Kf.subLanguage,mh,!0,wh[Kf.subLanguage]),wh[Kf.subLanguage]=gm._top}else gm=Id(mh,Kf.subLanguage.length?Kf.subLanguage:null);Kf.relevance>0&&(im+=gm.relevance),Ah.__addSublanguage(gm._emitter,gm.language)}function qf(){Kf.subLanguage!=null?Wf():Of(),mh=""}function zf(gm,Mm){gm!==""&&(Ah.startScope(Mm),Ah.addText(gm),Ah.endScope())}function Tf(gm,Mm){let Hm=1;const gh=Mm.length-1;for(;Hm<=gh;){if(!gm._emit[Hm]){Hm++;continue}const Lf=Zf.classNameAliases[gm[Hm]]||gm[Hm],$f=Mm[Hm];Lf?zf($f,Lf):(mh=$f,Of(),mh=""),Hm++}}function Sf(gm,Mm){return gm.scope&&typeof gm.scope=="string"&&Ah.openNode(Zf.classNameAliases[gm.scope]||gm.scope),gm.beginScope&&(gm.beginScope._wrap?(zf(mh,Zf.classNameAliases[gm.beginScope._wrap]||gm.beginScope._wrap),mh=""):gm.beginScope._multi&&(Tf(gm.beginScope,Mm),mh="")),Kf=Object.create(gm,{parent:{value:Kf}}),Kf}function Yf(gm,Mm,Hm){let gh=startsWith$1(gm.endRe,Hm);if(gh){if(gm["on:end"]){const Lf=new Response$1(gm);gm["on:end"](Mm,Lf),Lf.isMatchIgnored&&(gh=!1)}if(gh){for(;gm.endsParent&&gm.parent;)gm=gm.parent;return gm}}if(gm.endsWithParent)return Yf(gm.parent,Mm,Hm)}function ih(gm){return Kf.matcher.regexIndex===0?(mh+=gm[0],1):(Pm=!0,0)}function Th(gm){const Mm=gm[0],Hm=gm.rule,gh=new Response$1(Hm),Lf=[Hm.__beforeBegin,Hm["on:begin"]];for(const $f of Lf)if($f&&($f(gm,gh),gh.isMatchIgnored))return ih(Mm);return Hm.skip?mh+=Mm:(Hm.excludeBegin&&(mh+=Mm),qf(),!Hm.returnBegin&&!Hm.excludeBegin&&(mh=Mm)),Sf(Hm,gm),Hm.returnBegin?0:Mm.length}function sh(gm){const Mm=gm[0],Hm=jf.substring(gm.index),gh=Yf(Kf,gm,Hm);if(!gh)return NO_MATCH;const Lf=Kf;Kf.endScope&&Kf.endScope._wrap?(qf(),zf(Mm,Kf.endScope._wrap)):Kf.endScope&&Kf.endScope._multi?(qf(),Tf(Kf.endScope,gm)):Lf.skip?mh+=Mm:(Lf.returnEnd||Lf.excludeEnd||(mh+=Mm),qf(),Lf.excludeEnd&&(mh=Mm));do Kf.scope&&Ah.closeNode(),!Kf.skip&&!Kf.subLanguage&&(im+=Kf.relevance),Kf=Kf.parent;while(Kf!==gh.parent);return gh.starts&&Sf(gh.starts,gm),Lf.returnEnd?0:Mm.length}function Nf(){const gm=[];for(let Mm=Kf;Mm!==Zf;Mm=Mm.parent)Mm.scope&&gm.unshift(Mm.scope);gm.forEach(Mm=>Ah.openNode(Mm))}let ph={};function Oh(gm,Mm){const Hm=Mm&&Mm[0];if(mh+=gm,Hm==null)return qf(),0;if(ph.type==="begin"&&Mm.type==="end"&&ph.index===Mm.index&&Hm===""){if(mh+=jf.slice(Mm.index,Mm.index+1),!ld){const gh=new Error(`0 width match regex (${Df})`);throw gh.languageName=Df,gh.badRule=ph.rule,gh}return 1}if(ph=Mm,Mm.type==="begin")return Th(Mm);if(Mm.type==="illegal"&&!Jf){const gh=new Error('Illegal lexeme "'+Hm+'" for mode "'+(Kf.scope||"<unnamed>")+'"');throw gh.mode=Kf,gh}else if(Mm.type==="end"){const gh=sh(Mm);if(gh!==NO_MATCH)return gh}if(Mm.type==="illegal"&&Hm==="")return 1;if(Tm>1e5&&Tm>Mm.index*3)throw new Error("potential infinite loop, way more iterations than matches");return mh+=Hm,Hm.length}const Zf=Yd(Df);if(!Zf)throw error(ud.replace("{}",Df)),new Error('Unknown language: "'+Df+'"');const Rf=compileLanguage(Zf);let Bf="",Kf=eh||Rf;const wh={},Ah=new pd.__emitter(pd);Nf();let mh="",im=0,Bh=0,Tm=0,Pm=!1;try{if(Zf.__emitTokens)Zf.__emitTokens(jf,Ah
`},Od]}}return kotlin_1=ld,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function Ra(qa){const nd="[a-zA-Z_][\\w.]*",od="<\\?(lasso(script)?|=)",ld="\\]|\\?>",ud={$pattern:nd+"|&[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"},dd=qa.COMMENT("<!--","-->",{relevance:0}),pd={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[dd]}},fd={className:"meta",begin:"\\[/noprocess|"+od},md={className:"symbol",begin:"'"+nd+"'"},vd=[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:"[#$]"+nd},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:nd,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+nd,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[md]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[qa.inherit(qa.TITLE_MODE,{begin:nd+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:ud,contains:[{className:"meta",begin:ld,relevance:0,starts:{end:"\\[|"+od,returnEnd:!0,relevance:0,contains:[dd]}},pd,fd,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:ud,contains:[{className:"meta",begin:ld,relevance:0,starts:{end:"\\[noprocess\\]|"+od,returnEnd:!0,contains:[dd]}},pd,fd].concat(vd)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(vd)}}return lasso_1=Ra,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function Ra(qa){const od=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
]`,Od={scope:"string",variants:[vd,md,Ad,Nd]},Md={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},Ud=["false","null","true"],jd=["__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"],Ld=["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"],Gd={keyword:jd,literal:(xf=>{const vf=[];return xf.forEach(Af=>{vf.push(Af),Af.toLowerCase()===Af?vf.push(Af.toUpperCase()):vf.push(Af.toLowerCase())}),vf})(Ud),built_in:Ld},qd=xf=>xf.map(vf=>vf.replace(/\|\d+$/,"")),zd={variants:[{match:[/new/,nd.concat(Id,"+"),nd.concat("(?!",qd(Ld).join("\\b|"),"\\b)"),ud],scope:{1:"keyword",4:"title.class"}}]},Xd=nd.concat(ld,"\\b(?!\\()"),gf={variants:[{match:[nd.concat(/::/,nd.lookahead(/(?!class\b)/)),Xd],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[ud,nd.concat(/::/,nd.lookahead(/(?!class\b)/)),Xd],scope:{1:"title.class",3:"variable.constant"}},{match:[ud,nd.concat("::",nd.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[ud,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Yd={scope:"attr",match:nd.concat(ld,nd.lookahead(":"),nd.lookahead(/(?!::)/))},Zd={relevance:0,begin:/\(/,end:/\)/,keywords:Gd,contains:[Yd,dd,gf,qa.C_BLOCK_COMMENT_MODE,Od,Md,zd]},df={relevance:0,match:[/\b/,nd.concat("(?!fn\\b|function\\b|",qd(jd).join("\\b|"),"|",qd(Ld).join("\\b|"),"\\b)"),ld,nd.concat(Id,"*"),nd.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[Zd]};Zd.contains.push(df);const Ef=[Yd,gf,qa.C_BLOCK_COMMENT_MODE,Od,Md,zd],_f={begin:nd.concat(/#\[\s*/,ud),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:Ud,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 nd="[a-z][a-zA-Z0-9_]*",od={className:"string",begin:"\\$.{1}"},ld={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:nd+":",relevance:0},qa.C_NUMBER_MODE,ld,od,{begin:"\\|[ ]*"+nd+"([ ]+"+nd+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+nd}]},{begin:"#\\(",end:"\\)",contains:[qa.APOS_STRING_MODE,od,qa.C_NUMBER_MODE,ld]}]}}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 nd={className:"variable",begin:/\b_+[a-zA-Z]\w*/},od={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},ld={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},ud=["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"],dd=["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"],pd=["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=md=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:md.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:[md.APOS_STRING_MODE,md.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:md.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"],nd=["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"],od=[...qa,...nd],ld=["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(gf){return gf?typeof gf=="string"?gf:gf.source:null}function qa(gf){return nd("(?=",gf,")")}function nd(...gf){return gf.map(Zd=>Ra(Zd)).join("")}function od(gf){const Yd=gf[gf.length-1];return typeof Yd=="object"&&Yd.constructor===Object?(gf.splice(gf.length-1,1),Yd):{}}function ld(...gf){return"("+(od(gf).capture?"":"?:")+gf.map(df=>Ra(df)).join("|")+")"}const ud=gf=>nd(/\b/,gf,/\w$/.test(gf)?/\b/:/\B/),dd=["Protocol","Type"].map(ud),pd=["init","self"].map(ud),fd=["Any","Self"],md=["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"],vd=["false","nil","true"],Ad=["assignment","associativity","higherThan","left","lowerThan","none","right"],Nd=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Id=["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"],Od=ld(/[/=\-+!*%<>&|^~?]/,/[\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]/),Md=ld(Od,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Ud=nd(Od,Md,"*"),jd=ld(/[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]/),Ld=ld(jd,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Bd=nd(jd,Ld,"*"),Gd=nd(/[A-Z]/,Ld,"*"),qd=["attached","autoclosure",nd(/convention\(/,ld("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","N
]`).replace("lheading",lheading$1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape$1$1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,inlineCode$1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br$2=/^( {2,}|\\)\n(?!\s*$)/,inlineText$1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_punctuation$1=new RegExp("\\p{P}\\p{S}","u"),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$2,code:inlineCode$1,del:noopTest$1,emStrongLDelim:emStrongLDelim$1,emStrongRDelimAst:emStrongRDelimAst$1,emStrongRDelimUnd:emStrongRDelimUnd$1,escape:escape$1$1,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$1$1).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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))
`).map(ud=>{const dd=ud.match(nd.other.beginningSpace);if(dd===null)return ud;const[pd]=dd;return pd.length>=ld.length?ud.slice(ld.length):ud}).join(`
`)}let _Tokenizer$1=class{constructor(qa){wg(this,"options");wg(this,"rules");wg(this,"lexer");this.options=qa||_defaults$1}space(qa){const nd=this.rules.block.newline.exec(qa);if(nd&&nd[0].length>0)return{type:"space",raw:nd[0]}}code(qa){const nd=this.rules.block.code.exec(qa);if(nd){const od=nd[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:nd[0],codeBlockStyle:"indented",text:this.options.pedantic?od:rtrim$1(od,`
`)}}}fences(qa){const nd=this.rules.block.fences.exec(qa);if(nd){const od=nd[0],ld=indentCodeCompensation$1(od,nd[3]||"",this.rules);return{type:"code",raw:od,lang:nd[2]?nd[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):nd[2],text:ld}}}heading(qa){const nd=this.rules.block.heading.exec(qa);if(nd){let od=nd[2].trim();if(this.rules.other.endingHash.test(od)){const ld=rtrim$1(od,"#");(this.options.pedantic||!ld||this.rules.other.endingSpaceChar.test(ld))&&(od=ld.trim())}return{type:"heading",raw:nd[0],depth:nd[1].length,text:od,tokens:this.lexer.inline(od)}}}hr(qa){const nd=this.rules.block.hr.exec(qa);if(nd)return{type:"hr",raw:rtrim$1(nd[0],`
`)}}blockquote(qa){const nd=this.rules.block.blockquote.exec(qa);if(nd){let od=rtrim$1(nd[0],`
`).split(`
`),ld="",ud="";const dd=[];for(;od.length>0;){let pd=!1;const fd=[];let md;for(md=0;md<od.length;md++)if(this.rules.other.blockquoteStart.test(od[md]))fd.push(od[md]),pd=!0;else if(!pd)fd.push(od[md]);else break;od=od.slice(md);const vd=fd.join(`
`),Ad=vd.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");ld=ld?`${ld}
${vd}`:vd,ud=ud?`${ud}
${Ad}`:Ad;const Nd=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(Ad,dd,!0),this.lexer.state.top=Nd,od.length===0)break;const Id=dd.at(-1);if((Id==null?void 0:Id.type)==="code")break;if((Id==null?void 0:Id.type)==="blockquote"){const Od=Id,Md=Od.raw+`
`+od.join(`
`),Ud=this.blockquote(Md);dd[dd.length-1]=Ud,ld=ld.substring(0,ld.length-Od.raw.length)+Ud.raw,ud=ud.substring(0,ud.length-Od.text.length)+Ud.text;break}else if((Id==null?void 0:Id.type)==="list"){const Od=Id,Md=Od.raw+`
`+od.join(`
`),Ud=this.list(Md);dd[dd.length-1]=Ud,ld=ld.substring(0,ld.length-Id.raw.length)+Ud.raw,ud=ud.substring(0,ud.length-Od.raw.length)+Ud.raw,od=Md.substring(dd.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:ld,tokens:dd,text:ud}}}list(qa){let nd=this.rules.block.list.exec(qa);if(nd){let od=nd[1].trim();const ld=od.length>1,ud={type:"list",raw:"",ordered:ld,start:ld?+od.slice(0,-1):"",loose:!1,items:[]};od=ld?`\\d{1,9}\\${od.slice(-1)}`:`\\${od}`,this.options.pedantic&&(od=ld?od:"[*+-]");const dd=this.rules.other.listItemRegex(od);let pd=!1;for(;qa;){let md=!1,vd="",Ad="";if(!(nd=dd.exec(qa))||this.rules.block.hr.test(qa))break;vd=nd[0],qa=qa.substring(vd.length);let Nd=nd[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,Ld=>" ".repeat(3*Ld.length)),Id=qa.split(`
`,1)[0],Od=!Nd.trim(),Md=0;if(this.options.pedantic?(Md=2,Ad=Nd.trimStart()):Od?Md=nd[1].length+1:(Md=nd[2].search(this.rules.other.nonSpaceChar),Md=Md>4?1:Md,Ad=Nd.slice(Md),Md+=nd[1].length),Od&&this.rules.other.blankLine.test(Id)&&(vd+=Id+`
`,qa=qa.substring(Id.length+1),md=!0),!md){const Ld=this.rules.other.nextBulletRegex(Md),Bd=this.rules.other.hrRegex(Md),Gd=this.rules.other.fencesBeginRegex(Md),qd=this.rules.other.headingBeginRegex(Md),zd=this.rules.other.htmlBeginRegex(Md);for(;qa;){const Xd=qa.split(`
`,1)[0];let gf;if(Id=Xd,this.options.pedantic?(Id=Id.replace(this.rules.other.listReplaceNesting," "),gf=Id):gf=Id.replace(this.rules.other.tabCharGlobal," "),Gd.test(Id)||qd.test(Id)||zd.test(Id)||Ld.test(Id)||Bd.test(Id))break;if(gf.search(this.rules.other.nonSpaceChar)>=Md||!Id.trim())Ad+=`
`+gf.slice(Md);else{if(Od||Nd.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Gd.test(Nd)||qd.test(Nd)||Bd.test(Nd))break;Ad+=`
`+Id}!Od&&!Id.trim()&&(Od=!0),vd+=Xd+`
`,qa=qa.substring(Xd.length+1),Nd=gf.slice(Md)}}ud.loose||(pd?ud.loose=!0:this.rules.other.doubleBlankLine.test(vd)&&(pd=!0));let Ud=null,jd;this.options.gfm&&(Ud=this.rules.other.listIsTask.exec(Ad),Ud&&(jd=Ud[0]!=="[ ] ",Ad=Ad.replace(this.rules.other.listReplaceTask,""))),ud.items.push({type:"list_item",raw:vd,task:!!Ud,checked:jd,loose:!1,text:Ad,tokens:[]}),ud.raw+=vd}const fd=ud.items.at(-1);fd&&(fd.raw=fd.raw.trimEnd(),fd.text=fd.text.trimEnd()),ud.raw=ud.raw.trimEnd();for(let md=0;md<ud.items.length;md++)if(this.lexer.state.top=!1,ud.items[md].tokens=this.lexer.blockTokens(ud.items[md].text,[]),!ud.loose){const vd=ud.items[md].tokens.filter(Nd=>Nd.type==="space"),Ad=vd.length>0&&vd.some(Nd=>this.rules.other.anyLine.test(Nd.raw));ud.loose=Ad}if(ud.loose)for(let md=0;md<ud.items.length;md++)ud.items[md].loose=!0;return ud}}html(qa){const nd=this.rules.block.html.exec(qa);if(nd)return{type:"html",block:!0,raw:nd[0],pre:nd[1]==="pre"||nd[1]==="script"||nd[1]==="style",text:nd[0]}}def(qa){const nd=this.rules.block.def.exec(qa);if(nd){const od=nd[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),ld=nd[2]?nd[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",ud=nd[3]?nd[3].substring(1,nd[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):nd[3];return{type:"def",tag:od,raw:nd[0],href:ld,title:ud}}}table(qa){var pd;const nd=this.rules.block.table.exec(qa);if(!nd||!this.rules.other.tableDelimiter.test(nd[2]))return;const od=splitCells$1(nd[1]),ld=nd[2].replace(this.rules.other.tableAlignChars,"").split("|"),ud=(pd=nd[3])!=null&&pd.trim()?nd[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],dd={type:"table",raw:nd[0],header:[],align:[],rows:[]};if(od.length===ld.length){for(const fd of ld)this.rules.other.tableAlignRight.test(fd)?dd.align.push("right"):this.rules.other.tableAlignCenter.test(fd)?dd.align.push("center"):this.rules.other.tableAlignLeft.test(fd)?dd.align.push("left"):dd.align.push(null);for(let fd=0;fd<od.length;fd++)dd.header.push({text:od[fd],tokens:this.lexer.inline(od[fd]),header:!0,align:dd.align[fd]});for(const fd of ud)dd.rows.push(splitCells$1(fd,dd.header.length).map((md,vd)=>({text:md,tokens:this.lexer.inline(md),header:!1,align:dd.align[vd]})));return dd}}lheading(qa){const nd=this.rules.block.lheading.exec(qa);if(nd)return{type:"heading",raw:nd[0],depth:nd[2].charAt(0)==="="?1:2,text:nd[1],tokens:this.lexer.inline(nd[1])}}paragraph(qa){const nd=this.rules.block.paragraph.exec(qa);if(nd){const od=nd[1].charAt(nd[1].length-1)===`
`?nd[1].slice(0,-1):nd[1];return{type:"paragraph",raw:nd[0],text:od,tokens:this.lexer.inline(od)}}}text(qa){const nd=this.rules.block.text.exec(qa);if(nd)return{type:"text",raw:nd[0],text:nd[0],tokens:this.lexer.inline(nd[0])}}escape(qa){const nd=this.rules.inline.escape.exec(qa);if(nd)return{type:"escape",raw:nd[0],text:nd[1]}}tag(qa){const nd=this.rules.inline.tag.exec(qa);if(nd)return!this.lexer.state.inLink&&this.rules.other.startATag.test(nd[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(nd[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(nd[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(nd[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:nd[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:nd[0]}}link(qa){const nd=this.rules.inline.link.exec(qa);if(nd){const od=nd[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(od)){if(!this.rules.other.endAngleBracket.test(od))return;const dd=rtrim$1(od.slice(0,-1),"\\");if((od.length-dd.length)%2===0)return}else{const dd=findClosingBracket$1(nd[2],"()");if(dd>-1){const fd=(nd[0].indexOf("!")===0?5:4)+nd[1].length+dd;nd[2]=nd[2].substring(0,dd),nd[0]=nd[0].substring(0,fd).trim(),nd[3]=""}}let ld=nd[2],ud="";if(this.options.pedantic){const dd=this.rules.other.pedanticHrefTitle.exec(ld);dd&&(ld=dd[1],ud=dd[3])}else ud=nd[3]?nd[3].slice(1,-1):"";return ld=ld.trim(),this.rules.other.startAngleBracket.test(ld)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(od)?ld=ld.slice(1):ld=ld.slice(1,-1)),outputLink$1(nd,{href:ld&&ld.replace(this.rules.inline.anyPunctuation,"$1"),title:ud&&ud.replace(this.rules.inline.anyPunctuation,"$1")},nd[0],this.lexer,this.rules)}}reflink(qa,nd){let od;if((od=this.rules.inline.reflink.exec(qa))||(od=this.rules.inline.nolink.exec(qa))){const ld=(od[2]||od[1]).replace(this.rules.other.multipleSpaceGlobal," "),ud=nd[ld.toLowerCase()];if(!ud){const dd=od[0].charAt(0);return{type:"text",raw:dd,text:dd}}return outputLink$1(od,ud,od[0],this.lexer,this.rules)}}emStrong(qa,nd,od=""){let ld=this.rules.inline.emStrongLDelim.exec(qa);if(!ld||ld[3]&&od.match(this.rules.other.unicodeAlphaNumeric))return;if(!(ld[1]||ld[2]||"")||!od||this.rules.inline.punctuation.exec(od)){const dd=[...ld[0]].length-1;let pd,fd,md=dd,vd=0;const Ad=ld[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(Ad.lastIndex=0,nd=nd.slice(-1*qa.length+dd);(ld=Ad.exec(nd))!=null;){if(pd=ld[1]||ld[2]||ld[3]||ld[4]||ld[5]||ld[6],!pd)continue;if(fd=[...pd].length,ld[3]||ld[4]){md+=fd;continue}else if((ld[5]||ld[6])&&dd%3&&!((dd+fd)%3)){vd+=fd;continue}if(md-=fd,md>0)continue;fd=Math.min(fd,fd+md+vd);const Nd=[...ld[0]][0].length,Id=qa.slice(0,dd+ld.index+Nd+fd);if(Math.min(dd,fd)%2){const Md=Id.slice(1,-1);return{type:"em",raw:Id,text:Md,tokens:this.lexer.inlineTokens(Md)}}const Od=Id.slice(2,-2);return{type:"strong",raw:Id,text:Od,tokens:this.lexer.inlineTokens(Od)}}}}codespan(qa){const nd=this.rules.inline.code.exec(qa);if(nd){let od=nd[2].replace(this.rules.other.newLineCharGlobal," ");const ld=this.rules.other.nonSpaceChar.test(od),ud=this.rules.other.startingSpaceChar.test(od)&&this.rules.other.endingSpaceChar.test(od);return ld&&ud&&(od=od.substring(1,od.length-1)),{type:"codespan",raw:nd[0],text:od}}}br(qa){const nd=this.rules.inline.br.exec(qa);if(nd)return{type:"br",raw:nd[0]}}del(qa){const nd=this.rules.inline.del.exec(qa);if(nd)return{type:"del",raw:nd[0],text:nd[2],tokens:this.lexer.inlineTokens(nd[2])}}autolink(qa){const nd=this.rules.inline.autolink.exec(qa);if(nd){let od,ld;return nd[2]==="@"?(od=nd[1],ld="mailto:"+od):(od=nd[1],ld=od),{type:"link",raw:nd[0],text:od,href:ld,tokens:[{type:"text",raw:od,text:od}]}}}url(qa){var od;let nd;if(nd=this.rules.inline.url.exec(qa)){let ld,ud;if(nd[2]==="@")ld=nd[0],ud="mailto:"+ld;else{let dd;do dd=nd[0],nd[0]=((od=this.rules.inline._backpedal.exec(nd[0]))==null?void 0:od[0])??"";w
`),this.blockTokens(qa,this.tokens);for(let nd=0;nd<this.inlineQueue.length;nd++){const od=this.inlineQueue[nd];this.inlineTokens(od.src,od.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,nd=[],od=!1){var ld,ud,dd;for(this.options.pedantic&&(qa=qa.replace(other.tabCharGlobal," ").replace(other.spaceLine,""));qa;){let pd;if((ud=(ld=this.options.extensions)==null?void 0:ld.block)!=null&&ud.some(md=>(pd=md.call({lexer:this},qa,nd))?(qa=qa.substring(pd.raw.length),nd.push(pd),!0):!1))continue;if(pd=this.tokenizer.space(qa)){qa=qa.substring(pd.raw.length);const md=nd.at(-1);pd.raw.length===1&&md!==void 0?md.raw+=`
`:nd.push(pd);continue}if(pd=this.tokenizer.code(qa)){qa=qa.substring(pd.raw.length);const md=nd.at(-1);(md==null?void 0:md.type)==="paragraph"||(md==null?void 0:md.type)==="text"?(md.raw+=`
`+pd.raw,md.text+=`
`+pd.text,this.inlineQueue.at(-1).src=md.text):nd.push(pd);continue}if(pd=this.tokenizer.fences(qa)){qa=qa.substring(pd.raw.length),nd.push(pd);continue}if(pd=this.tokenizer.heading(qa)){qa=qa.substring(pd.raw.length),nd.push(pd);continue}if(pd=this.tokenizer.hr(qa)){qa=qa.substring(pd.raw.length),nd.push(pd);continue}if(pd=this.tokenizer.blockquote(qa)){qa=qa.substring(pd.raw.length),nd.push(pd);continue}if(pd=this.tokenizer.list(qa)){qa=qa.substring(pd.raw.length),nd.push(pd);continue}if(pd=this.tokenizer.html(qa)){qa=qa.substring(pd.raw.length),nd.push(pd);continue}if(pd=this.tokenizer.def(qa)){qa=qa.substring(pd.raw.length);const md=nd.at(-1);(md==null?void 0:md.type)==="paragraph"||(md==null?void 0:md.type)==="text"?(md.raw+=`
`+pd.raw,md.text+=`
`+pd.raw,this.inlineQueue.at(-1).src=md.text):this.tokens.links[pd.tag]||(this.tokens.links[pd.tag]={href:pd.href,title:pd.title});continue}if(pd=this.tokenizer.table(qa)){qa=qa.substring(pd.raw.length),nd.push(pd);continue}if(pd=this.tokenizer.lheading(qa)){qa=qa.substring(pd.raw.length),nd.push(pd);continue}let fd=qa;if((dd=this.options.extensions)!=null&&dd.startBlock){let md=1/0;const vd=qa.slice(1);let Ad;this.options.extensions.startBlock.forEach(Nd=>{Ad=Nd.call({lexer:this},vd),typeof Ad=="number"&&Ad>=0&&(md=Math.min(md,Ad))}),md<1/0&&md>=0&&(fd=qa.substring(0,md+1))}if(this.state.top&&(pd=this.tokenizer.paragraph(fd))){const md=nd.at(-1);od&&(md==null?void 0:md.type)==="paragraph"?(md.raw+=`
`+pd.raw,md.text+=`
`+pd.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=md.text):nd.push(pd),od=fd.length!==qa.length,qa=qa.substring(pd.raw.length);continue}if(pd=this.tokenizer.text(qa)){qa=qa.substring(pd.raw.length);const md=nd.at(-1);(md==null?void 0:md.type)==="text"?(md.raw+=`
`+pd.raw,md.text+=`
`+pd.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=md.text):nd.push(pd);continue}if(qa){const md="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(md);break}else throw new Error(md)}}return this.state.top=!0,nd}inline(qa,nd=[]){return this.inlineQueue.push({src:qa,tokens:nd}),nd}inlineTokens(qa,nd=[]){var pd,fd,md;let od=qa,ld=null;if(this.tokens.links){const vd=Object.keys(this.tokens.links);if(vd.length>0)for(;(ld=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)vd.includes(ld[0].slice(ld[0].lastIndexOf("[")+1,-1))&&(od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ld=this.tokenizer.rules.inline.blockSkip.exec(od))!=null;)od=od.slice(0,ld.index)+"["+"a".repeat(ld[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(ld=this.tokenizer.rules.inline.anyPunctuation.exec(od))!=null;)od=od.slice(0,ld.index)+"++"+od.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let ud=!1,dd="";for(;qa;){ud||(dd=""),ud=!1;let vd;if((fd=(pd=this.options.extensions)==null?void 0:pd.inline)!=null&&fd.some(Nd=>(vd=Nd.call({lexer:this},qa,nd))?(qa=qa.substring(vd.raw.length),nd.push(vd),!0):!1))continue;if(vd=this.tokenizer.escape(qa)){qa=qa.substring(vd.raw.length),nd.push(vd);continue}if(vd=this.tokenizer.tag(qa)){qa=qa.substring(vd.raw.length),nd.push(vd);continue}if(vd=this.tokenizer.link(qa)){qa=qa.substring(vd.raw.length),nd.push(vd);continue}if(vd=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(vd.raw.length);const Nd=nd.at(-1);vd.type==="text"&&(Nd==null?void 0:Nd.type)==="text"?(Nd.raw+=vd.raw,Nd.text+=vd.text):nd.push(vd);continue}if(vd=this.tokenizer.emStrong(qa,od,dd)){qa=qa.substring(vd.raw.length),nd.push(vd);continue}if(vd=this.tokenizer.codespan(qa)){qa=qa.substring(vd.raw.length),nd.push(vd);continue}if(vd=this.tokenizer.br(qa)){qa=qa.substring(vd.raw.length),nd.push(vd);continue}if(vd=this.tokenizer.del(qa)){qa=qa.substring(vd.raw.length),nd.push(vd);continue}if(vd=this.tokenizer.autolink(qa)){qa=qa.substring(vd.raw.length),nd.push(vd);continue}if(!this.state.inLink&&(vd=this.tokenizer.url(qa))){qa=qa.substring(vd.raw.length),nd.push(vd);continue}let Ad=qa;if((md=this.options.extensions)!=null&&md.startInline){let Nd=1/0;const Id=qa.slice(1);let Od;this.options.extensions.startInline.forEach(Md=>{Od=Md.call({lexer:this},Id),typeof Od=="number"&&Od>=0&&(Nd=Math.min(Nd,Od))}),Nd<1/0&&Nd>=0&&(Ad=qa.substring(0,Nd+1))}if(vd=this.tokenizer.inlineText(Ad)){qa=qa.substring(vd.raw.length),vd.raw.slice(-1)!=="_"&&(dd=vd.raw.slice(-1)),ud=!0;const Nd=nd.at(-1);(Nd==null?void 0:Nd.type)==="text"?(Nd.raw+=vd.raw,Nd.text+=vd.text):nd.push(vd);continue}if(qa){const Nd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(Nd);break}else throw new Error(Nd)}}return nd}},_Renderer$1=class{constructor(qa){wg(this,"options");wg(this,"parser");this.options=qa||_defaults$1}space(qa){return""}code({text:qa,lang:nd,escaped:od}){var dd;const ld=(dd=(nd||"").match(other.notSpaceStart))==null?void 0:dd[0],ud=qa.replace(other.endingNewline,"")+`
`;return ld?'<pre><code class="language-'+escape$3(ld)+'">'+(od?ud:escape$3(ud,!0))+`</code></pre>
`:"<pre><code>"+(od?ud:escape$3(ud,!0))+`</code></pre>
`}blockquote({tokens:qa}){return`<blockquote>
${this.parser.parse(qa)}</blockquote>
`}html({text:qa}){return qa}heading({tokens:qa,depth:nd}){return`<h${nd}>${this.parser.parseInline(qa)}</h${nd}>
`}hr(qa){return`<hr>
`}list(qa){const nd=qa.ordered,od=qa.start;let ld="";for(let pd=0;pd<qa.items.length;pd++){const fd=qa.items[pd];ld+=this.listitem(fd)}const ud=nd?"ol":"ul",dd=nd&&od!==1?' start="'+od+'"':"";return"<"+ud+dd+`>
`+ld+"</"+ud+`>
`}listitem(qa){var od;let nd="";if(qa.task){const ld=this.checkbox({checked:!!qa.checked});qa.loose?((od=qa.tokens[0])==null?void 0:od.type)==="paragraph"?(qa.tokens[0].text=ld+" "+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=ld+" "+escape$3(qa.tokens[0].tokens[0].text),qa.tokens[0].tokens[0].escaped=!0)):qa.tokens.unshift({type:"text",raw:ld+" ",text:ld+" ",escaped:!0}):nd+=ld+" "}return nd+=this.parser.parse(qa.tokens,!!qa.loose),`<li>${nd}</li>
`}checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return`<p>${this.parser.parseInline(qa)}</p>
`}table(qa){let nd="",od="";for(let ud=0;ud<qa.header.length;ud++)od+=this.tablecell(qa.header[ud]);nd+=this.tablerow({text:od});let ld="";for(let ud=0;ud<qa.rows.length;ud++){const dd=qa.rows[ud];od="";for(let pd=0;pd<dd.length;pd++)od+=this.tablecell(dd[pd]);ld+=this.tablerow({text:od})}return ld&&(ld=`<tbody>${ld}</tbody>`),`<table>
<thead>
`+nd+`</thead>
`+ld+`</table>
`}tablerow({text:qa}){return`<tr>
${qa}</tr>
`}tablecell(qa){const nd=this.parser.parseInline(qa.tokens),od=qa.header?"th":"td";return(qa.align?`<${od} align="${qa.align}">`:`<${od}>`)+nd+`</${od}>
`}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>${escape$3(qa,!0)}</code>`}br(qa){return"<br>"}del({tokens:qa}){return`<del>${this.parser.parseInline(qa)}</del>`}link({href:qa,title:nd,tokens:od}){const ld=this.parser.parseInline(od),ud=cleanUrl$1(qa);if(ud===null)return ld;qa=ud;let dd='<a href="'+qa+'"';return nd&&(dd+=' title="'+escape$3(nd)+'"'),dd+=">"+ld+"</a>",dd}image({href:qa,title:nd,text:od}){const ld=cleanUrl$1(qa);if(ld===null)return escape$3(od);qa=ld;let ud=`<img src="${qa}" alt="${od}"`;return nd&&(ud+=` title="${escape$3(nd)}"`),ud+=">",ud}text(qa){return"tokens"in qa&&qa.tokens?this.parser.parseInline(qa.tokens):"escaped"in qa&&qa.escaped?qa.text:escape$3(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 T1{constructor(qa){wg(this,"options");wg(this,"renderer");wg(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,nd){return new T1(nd).parse(qa)}static parseInline(qa,nd){return new T1(nd).parseInline(qa)}parse(qa,nd=!0){var ld,ud;let od="";for(let dd=0;dd<qa.length;dd++){const pd=qa[dd];if((ud=(ld=this.options.extensions)==null?void 0:ld.renderers)!=null&&ud[pd.type]){const md=pd,vd=this.options.extensions.renderers[md.type].call({parser:this},md);if(vd!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(md.type)){od+=vd||"";continue}}const fd=pd;switch(fd.type){case"space":{od+=this.renderer.space(fd);continue}case"hr":{od+=this.renderer.hr(fd);continue}case"heading":{od+=this.renderer.heading(fd);continue}case"code":{od+=this.renderer.code(fd);continue}case"table":{od+=this.renderer.table(fd);continue}case"blockquote":{od+=this.renderer.blockquote(fd);continue}case"list":{od+=this.renderer.list(fd);continue}case"html":{od+=this.renderer.html(fd);continue}case"paragraph":{od+=this.renderer.paragraph(fd);continue}case"text":{let md=fd,vd=this.renderer.text(md);for(;dd+1<qa.length&&qa[dd+1].type==="text";)md=qa[++dd],vd+=`
`+this.renderer.text(md);nd?od+=this.renderer.paragraph({type:"paragraph",raw:vd,text:vd,tokens:[{type:"text",raw:vd,text:vd,escaped:!0}]}):od+=vd;continue}default:{const md='Token with "'+fd.type+'" type was not found.';if(this.options.silent)return console.error(md),"";throw new Error(md)}}}return od}parseInline(qa,nd=this.renderer){var ld,ud;let od="";for(let dd=0;dd<qa.length;dd++){const pd=qa[dd];if((ud=(ld=this.options.extensions)==null?void 0:ld.renderers)!=null&&ud[pd.type]){const md=this.options.extensions.renderers[pd.type].call({parser:this},pd);if(md!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(pd.type)){od+=md||"";continue}}const fd=pd;switch(fd.type){case"escape":{od+=nd.text(fd);break}case"html":{od+=nd.html(fd);break}case"link":{od+=nd.link(fd);break}case"image":{od+=nd.image(fd);break}case"strong":{od+=nd.strong(fd);break}case"em":{od+=nd.em(fd);break}case"codespan":{od+=nd.codespan(fd);break}case"br":{od+=nd.br(fd);break}case"del":{od+=nd.del(fd);break}case"text":{od+=nd.text(fd);break}default:{const md='Token with "'+fd.type+'" type was not found.';if(this.options.silent)return console.error(md),"";throw new Error(md)}}}return od}};var E1;let _Hooks$1=(E1=class{constructor(qa){wg(this,"options");wg(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}},wg(E1,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),E1),Marked$1=class{constructor(...qa){wg(this,"defaults",_getDefaults$1());wg(this,"options",this.setOptions);wg(this,"parse",this.parseMarkdown(!0));wg(this,"parseInline",this.parseMarkdown(!1));wg(this,"Parser",_Parser$1);wg(this,"Renderer",_Renderer$1);wg(this,"TextRenderer",_TextRenderer$1);wg(this,"Lexer",_Lexer$1);wg(this,"Tokenizer",_Tokenizer$1);wg(this,"Hooks",_Hooks$1);this.use(...qa)}walkTokens(qa,nd){var ld,ud;let od=[];for(const dd of qa)switch(od=od.concat(nd.call(this,dd)),dd.type){case"table":{const pd=dd;for(const fd of pd.header)od=od.concat(this.walkTokens(fd.tokens,nd));for(const fd of pd.rows)for(const md of fd)od=od.concat(this.walkTokens(md.tokens,nd));break}case"list":{const pd=dd;od=od.concat(this.walkTokens(pd.items,nd));break}default:{const pd=dd;(ud=(ld=this.defaults.extensions)==null?void 0:ld.childTokens)!=null&&ud[pd.type]?this.defaults.extensions.childTokens[pd.type].forEach(fd=>{const md=pd[fd].flat(1/0);od=od.concat(this.walkTokens(md,nd))}):pd.tokens&&(od=od.concat(this.walkTokens(pd.tokens,nd)))}}return od}use(...qa){const nd=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(od=>{const ld={...od};if(ld.async=this.defaults.async||ld.async||!1,od.extensions&&(od.extensions.forEach(ud=>{if(!ud.name)throw new Error("extension name required");if("renderer"in ud){const dd=nd.renderers[ud.name];dd?nd.renderers[ud.name]=function(...pd){let fd=ud.renderer.apply(this,pd);return fd===!1&&(fd=dd.apply(this,pd)),fd}:nd.renderers[ud.name]=ud.renderer}if("tokenizer"in ud){if(!ud.level||ud.level!=="block"&&ud.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const dd=nd[ud.level];dd?dd.unshift(ud.tokenizer):nd[ud.level]=[ud.tokenizer],ud.start&&(ud.level==="block"?nd.startBlock?nd.startBlock.push(ud.start):nd.startBlock=[ud.start]:ud.level==="inline"&&(nd.startInline?nd.startInline.push(ud.start):nd.startInline=[ud.start]))}"childTokens"in ud&&ud.childTokens&&(nd.childTokens[ud.name]=ud.childTokens)}),ld.extensions=nd),od.renderer){const ud=this.defaults.renderer||new _Renderer$1(this.defaults);for(const dd in od.renderer){if(!(dd in ud))throw new Error(`renderer '${dd}' does not exist`);if(["options","parser"].includes(dd))continue;const pd=dd,fd=od.renderer[pd],md=ud[pd];ud[pd]=(...vd)=>{let Ad=fd.apply(ud,vd);return Ad===!1&&(Ad=md.apply(ud,vd)),Ad||""}}ld.renderer=ud}if(od.tokenizer){const ud=this.defaults.tokenizer||new _Tokenizer$1(this.defau
Please report this to https://github.com/markedjs/marked.`,qa){const ld="<p>An error occurred:</p><pre>"+escape$3(od.message+"",!0)+"</pre>";return nd?Promise.resolve(ld):ld}if(nd)return Promise.reject(od);throw od}}};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;const scriptRel="modulepreload",assetsURL=function(Ra){return"/md/"+Ra},seen={},__vitePreload=function(qa,nd,od){let ld=Promise.resolve();if(nd&&nd.length>0){document.getElementsByTagName("link");const dd=document.querySelector("meta[property=csp-nonce]"),pd=(dd==null?void 0:dd.nonce)||(dd==null?void 0:dd.getAttribute("nonce"));ld=Promise.allSettled(nd.map(fd=>{if(fd=assetsURL(fd),fd in seen)return;seen[fd]=!0;const md=fd.endsWith(".css"),vd=md?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${fd}"]${vd}`))return;const Ad=document.createElement("link");if(Ad.rel=md?"stylesheet":scriptRel,md||(Ad.as="script"),Ad.crossOrigin="",Ad.href=fd,pd&&Ad.setAttribute("nonce",pd),document.head.appendChild(Ad),md)return new Promise((Nd,Id)=>{Ad.addEventListener("load",Nd),Ad.addEventListener("error",()=>Id(new Error(`Unable to preload CSS for ${fd}`)))})}))}function ud(dd){const pd=new Event("vite:preloadError",{cancelable:!0});if(pd.payload=dd,window.dispatchEvent(pd),!pd.defaultPrevented)throw dd}return ld.then(dd=>{for(const pd of dd||[])pd.status==="rejected"&&ud(pd.reason);return qa().catch(ud)})};var dayjs_min={exports:{}};(function(Ra,qa){(function(nd,od){Ra.exports=od()})(commonjsGlobal,function(){var nd=1e3,od=6e4,ld=36e5,ud="millisecond",dd="second",pd="minute",fd="hour",md="day",vd="week",Ad="month",Nd="quarter",Id="year",Od="date",Md="Invalid Date",Ud=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,jd=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ld={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(xf){var vf=["th","st","nd","rd"],Af=xf%100;return"["+xf+(vf[(Af-20)%10]||vf[Af]||vf[0])+"]"}},Bd=function(xf,vf,Af){var Df=String(xf);return!Df||Df.length>=vf?xf:""+Array(vf+1-Df.length).join(Af)+xf},Gd={s:Bd,z:function(xf){var vf=-xf.utcOffset(),Af=Math.abs(vf),Df=Math.floor(Af/60),jf=Af%60;return(vf<=0?"+":"-")+Bd(Df,2,"0")+":"+Bd(jf,2,"0")},m:function xf(vf,Af){if(vf.date()<Af.date())return-xf(Af,vf);var Df=12*(Af.year()-vf.year())+(Af.month()-vf.month()),jf=vf.clone().add(Df,Ad),Jf=Af-jf<0,eh=vf.clone().add(Df+(Jf?-1:1),Ad);return+(-(Df+(Af-jf)/(Jf?jf-eh:eh-jf))||0)},a:function(xf){return xf<0?Math.ceil(xf)||0:Math.floor(xf)},p:function(xf){return{M:Ad,y:Id,w:vd,d:md,D:Od,h:fd,m:pd,s:dd,ms:ud,Q:Nd}[xf]||String(xf||"").toLowerCase().replace(/s$/,"")},u:function(xf){return xf===void 0}},qd="en",zd={};zd[qd]=Ld;var Xd="$isDayjsObject",gf=function(xf){return xf instanceof Ef||!(!xf||!xf[Xd])},Yd=function xf(vf,Af,Df){var jf;if(!vf)return qd;if(typeof vf=="string"){var Jf=vf.toLowerCase();zd[Jf]&&(jf=Jf),Af&&(zd[Jf]=Af,jf=Jf);var eh=vf.split("-");if(!jf&&eh.length>1)return
`+t_),sh&&arrayForEach([Ef,_f,xf],Zg=>{t_=stringReplace(t_,Zg," ")}),Gd&&Kf?Gd.createHTML(t_):t_},qa.setConfig=function(){let pm=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jg(pm),Oh=!0},qa.clearConfig=function(){Kg=null,Oh=!1},qa.isValidAttribute=function(pm,Uh,Lm){Kg||Jg({});const Gm=Fg(pm),_g=Fg(Uh);return Rh(Gm,_g,Lm)},qa.addHook=function(pm,Uh){typeof Uh=="function"&&(df[pm]=df[pm]||[],arrayPush(df[pm],Uh))},qa.removeHook=function(pm){if(df[pm])return arrayPop(df[pm])},qa.removeHooks=function(pm){df[pm]&&(df[pm]=[])},qa.removeAllHooks=function(){df={}},qa}var purify=createDOMPurify(),__defProp=Object.defineProperty,__name=(Ra,qa)=>__defProp(Ra,"name",{value:qa,configurable:!0}),__export=(Ra,qa)=>{for(var nd in qa)__defProp(Ra,nd,{get:qa[nd],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,wS,UnknownDiagramError=(wS=class extends Error{constructor(qa){super(qa),this.name="UnknownDiagramError"}},__name(wS,"UnknownDiagramError"),wS),detectors={},detectType$1=__name(function(Ra,qa){Ra=Ra.replace(frontMatterRegex,"").replace(directiveRegex,"").replace(anyCommentRegex,`
`);for(const[nd,{detector:od}]of Object.entries(detectors))if(od(Ra,qa))return nd;throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${Ra}`)},"detectType"),registerLazyLoadedDiagrams=__name((...Ra)=>{for(const{id:qa,detector:nd,loader:od}of Ra)addDetector(qa,nd,od)},"registerLazyLoadedDiagrams"),addDetector=__name((Ra,qa,nd)=>{detectors[Ra]&&log$1.warn(`Detector with key ${Ra} already exists. Overwriting.`),detectors[Ra]={detector:qa,loader:nd},log$1.debug(`Detector with key ${Ra} added${nd?" with loader":""}`)},"addDetector"),getDiagramLoader=__name(Ra=>detectors[Ra].loader,"getDiagramLoader"),assignWithDepth=__name((Ra,qa,{depth:nd=2,clobber:od=!1}={})=>{const ld={depth:nd,clobber:od};return Array.isArray(qa)&&!Array.isArray(Ra)?(qa.forEach(ud=>assignWithDepth(Ra,ud,ld)),Ra):Array.isArray(qa)&&Array.isArray(Ra)?(qa.forEach(ud=>{Ra.includes(ud)||Ra.push(ud)}),Ra):Ra===void 0||nd<=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(ud=>{typeof qa[ud]=="object"&&(Ra[ud]===void 0||typeof Ra[ud]=="object")?(Ra[ud]===void 0&&(Ra[ud]=Array.isArray(qa[ud])?[]:{}),Ra[ud]=assignWithDepth(Ra[ud],qa[ud],{depth:nd-1,clobber:od})):(od||typeof Ra[ud]!="object"&&typeof qa[ud]!="object")&&(Ra[ud]=qa[ud])}),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"),DS,Theme=(DS=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 nd,od,ld,ud,dd,pd,fd,md,vd,Ad,Nd;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: ${nd.fontFamily};
font-size: ${nd.fontSize};
fill: ${nd.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${nd.errorBkgColor};
}
& .error-text {
fill: ${nd.errorTextColor};
stroke: ${nd.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: ${nd.lineColor};
stroke: ${nd.lineColor};
}
& .marker.cross {
stroke: ${nd.lineColor};
}
& svg {
font-family: ${nd.fontFamily};
font-size: ${nd.fontSize};
}
& p {
margin: 0
}
${od}
${qa}
`},"getStyles"),addStylesForDiagram=__name((Ra,qa)=>{qa!==void 0&&(themes[Ra]=qa)},"addStylesForDiagram"),styles_default=getStyles$1,commonDb_exports={};__export(commonDb_exports,{clear:()=>clear$2,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$2=__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,nd)=>{var od;diagrams[Ra]&&log2.warn(`Diagram with id ${Ra} already registered. Overwriting.`),diagrams[Ra]=qa,nd&&addDetector(Ra,nd),addStylesForDiagram(Ra,qa.styles),(od=qa.injectUtils)==null||od.call(qa,log2,setLogLevel2,getConfig2,sanitizeText3,setupGraphViewbox2,getCommonDb(),()=>{})},"registerDiagram"),getDiagram=__name(Ra=>{if(Ra in diagrams)return diagrams[Ra];throw new DiagramNotFoundError(Ra)},"getDiagram"),MS,DiagramNotFoundError=(MS=class extends Error{constructor(qa){super(`Diagram ${qa} not found.`)}},__name(MS,"DiagramNotFoundError"),MS);function isNothing(Ra){return typeof Ra>"u"||Ra===null}__name(isNothing,"isNothing");function isObject$3(Ra){return typeof Ra=="object"&&Ra!==null}__name(isObject$3,"isObject");function toArray$2(Ra){return Array.isArray(Ra)?Ra:isNothing(Ra)?[]:[Ra]}__name(toArray$2,"toArray");function extend$2(Ra,qa){var nd,od,ld,ud;if(qa)for(ud=Object.keys(qa),nd=0,od=ud.length;nd<od;nd+=1)ld=ud[nd],Ra[ld]=qa[ld];return Ra}__name(extend$2,"extend");function repeat(Ra,qa){var nd="",od;for(od=0;od<qa;od+=1)nd+=Ra;return nd}__name(repeat,"repeat");function isNegativeZero(Ra){return Ra===0&&Number.NEGATIVE_INFINITY===1/Ra}__name(isNegativeZero,"isNegativeZero");var isNothing_1=isNothing,isObject_1=isObject$3,toArray_1=toArray$2,repeat_1=repeat,isNegativeZero_1=isNegativeZero,extend_1=extend$2,common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(Ra,qa){var nd="",od=Ra.reason||"(unknown reason)";return Ra.mark?(Ra.mark.name&&(nd+='in "'+Ra.mark.name+'" '),nd+="("+(Ra.mark.line+1)+":"+(Ra.mark.column+1)+")",!qa&&Ra.mark.snippet&&(nd+=`
`+Ra.mark.snippet),od+" "+nd):od}__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,nd,od,ld){var ud="",dd="",pd=Math.floor(ld/2)-1;return od-qa>pd&&(ud=" ... ",qa=od-pd+ud.length),nd-od>pd&&(dd=" ...",nd=od+pd-dd.length),{str:ud+Ra.slice(qa,nd).replace(/\t/g,"→")+dd,pos:od-qa+ud.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 nd=/\r?\n|\r|\0/g,od=[0],ld=[],ud,dd=-1;ud=nd.exec(Ra.buffer);)ld.push(ud.index),od.push(ud.index+ud[0].length),Ra.position<=ud.index&&dd<0&&(dd=od.length-2);dd<0&&(dd=od.length-1);var pd="",fd,md,vd=Math.min(Ra.line+qa.linesAfter,ld.length).toString().length,Ad=qa.maxLength-(qa.indent+vd+3);for(fd=1;fd<=qa.linesBefore&&!(dd-fd<0);fd++)md=getLine(Ra.buffer,od[dd-fd],ld[dd-fd],Ra.position-(od[dd]-od[dd-fd]),Ad),pd=common.repeat(" ",qa.indent)+padStart((Ra.line-fd+1).toString(),vd)+" | "+md.str+`
`+pd;for(md=getLine(Ra.buffer,od[dd],ld[dd],Ra.position,Ad),pd+=common.repeat(" ",qa.indent)+padStart((Ra.line+1).toString(),vd)+" | "+md.str+`
`,pd+=common.repeat("-",qa.indent+vd+3+md.pos)+`^
`,fd=1;fd<=qa.linesAfter&&!(dd+fd>=ld.length);fd++)md=getLine(Ra.buffer,od[dd+fd],ld[dd+fd],Ra.position-(od[dd]-od[dd+fd]),Ad),pd+=common.repeat(" ",qa.indent)+padStart((Ra.line+fd+1).toString(),vd)+" | "+md.str+`
`;return pd.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(nd){Ra[nd].forEach(function(od){qa[String(od)]=nd})}),qa}__name(compileStyleAliases,"compileStyleAliases");function Type$1(Ra,qa){if(qa=qa||{},Object.keys(qa).forEach(function(nd){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(nd)===-1)throw new exception('Unknown option "'+nd+'" 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(nd){return nd},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 nd=[];return Ra[qa].forEach(function(od){var ld=nd.length;nd.forEach(function(ud,dd){ud.tag===od.tag&&ud.kind===od.kind&&ud.multi===od.multi&&(ld=dd)}),nd[ld]=od}),nd}__name(compileList,"compileList");function compileMap(){var Ra={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},qa,nd;function od(ld){ld.multi?(Ra.multi[ld.kind].push(ld),Ra.multi.fallback.push(ld)):Ra[ld.kind][ld.tag]=Ra.fallback[ld.tag]=ld}for(__name(od,"collectType"),qa=0,nd=arguments.length;qa<nd;qa+=1)arguments[qa].forEach(od);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 nd=[],od=[];if(qa instanceof type$1)od.push(qa);else if(Array.isArray(qa))od=od.concat(qa);else if(qa&&(Array.isArray(qa.implicit)||Array.isArray(qa.explicit)))qa.implicit&&(nd=nd.concat(qa.implicit)),qa.explicit&&(od=od.concat(qa.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");nd.forEach(function(ud){if(!(ud instanceof type$1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(ud.loadKind&&ud.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(ud.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),od.forEach(function(ud){if(!(ud instanceof type$1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var ld=Object.create(Schema$1.prototype);return ld.implicit=(this.implicit||[]).concat(nd),ld.explicit=(this.explicit||[]).concat(od),ld.compiledImplicit=compileList(ld,"implicit"),ld.compiledExplicit=compileList(ld,"explicit"),ld.compiledTypeMap=compileMap(ld.compiledImplicit,ld.compiledExplicit),ld},"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$3=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$3]});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,nd,od=0,ld=Ra.length,ud=BASE64_MAP;for(nd=0;nd<ld;nd++)if(qa=ud.indexOf(Ra.charAt(nd)),!(qa>64)){if(qa<0)return!1;od+=6}return od%8===0}__name(resolveYamlBinary,"resolveYamlBinary");function constructYamlBinary(Ra){var qa,nd,od=Ra.replace(/[\r\n=]/g,""),ld=od.length,ud=BASE64_MAP,dd=0,pd=[];for(qa=0;qa<ld;qa++)qa%4===0&&qa&&(pd.push(dd>>16&255),pd.push(dd>>8&255),pd.push(dd&255)),dd=dd<<6|ud.indexOf(od.charAt(qa));return nd=ld%4*6,nd===0?(pd.push(dd>>16&255),pd.push(dd>>8&255),pd.push(dd&255)):nd===18?(pd.push(dd>>10&255),pd.push(dd>>2&255)):nd===12&&pd.push(dd>>4&255),new Uint8Array(pd)}__name(constructYamlBinary,"constructYamlBinary");function representYamlBinary(Ra){var qa="",nd=0,od,ld,ud=Ra.length,dd=BASE64_MAP;for(od=0;od<ud;od++)od%3===0&&od&&(qa+=dd[nd>>18&63],qa+=dd[nd>>12&63],qa+=dd[nd>>6&63],qa+=dd[nd&63]),nd=(nd<<8)+Ra[od];return ld=ud%3,ld===0?(qa+=dd[nd>>18&63],qa+=dd[nd>>12&63],qa+=dd[nd>>6&63],qa+=dd[nd&63]):ld===2?(qa+=dd[nd>>10&63],qa+=dd[nd>>4&63],qa+=dd[nd<<2&63],qa+=dd[64]):ld===1&&(qa+=dd[nd>>2&63],qa+=dd[nd<<4&63],qa+=dd[64],qa+=dd[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=[],nd,od,ld,ud,dd,pd=Ra;for(nd=0,od=pd.length;nd<od;nd+=1){if(ld=pd[nd],dd=!1,_toString$2.call(ld)!=="[object Object]")return!1;for(ud in ld)if(_hasOwnProperty$3.call(ld,ud))if(!dd)dd=!0;else return!1;if(!dd)return!1;if(qa.indexOf(ud)===-1)qa.push(ud);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,nd,od,ld,ud,dd=Ra;for(ud=new Array(dd.length),qa=0,nd=dd.length;qa<nd;qa+=1){if(od=dd[qa],_toString$1.call(od)!=="[object Object]"||(ld=Object.keys(od),ld.length!==1))return!1;ud[qa]=[ld[0],od[ld[0]]]}return!0}__name(resolveYamlPairs,"resolveYamlPairs");function constructYamlPairs(Ra){if(Ra===null)return[];var qa,nd,od,ld,ud,dd=Ra;for(ud=new Array(dd.length),qa=0,nd=dd.length;qa<nd;qa+=1)od=dd[qa],ld=Object.keys(od),ud[qa]=[ld[0],od[ld[0]]];return ud}__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,nd=Ra;for(qa in nd)if(_hasOwnProperty$2.call(nd,qa)&&nd[qa]!==null)return!1;return!0}__name(resolveYamlSet,"resolveYamlSet");function constructYamlSet(Ra){return Ra!==null?Ra:{}}__name(constructYamlSet,"constructYamlSet");var set$2=new type$1("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default=core$1.extend({implicit:[timestamp,merge$2],explicit:[binary,omap,pairs,set$2]}),_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|
`: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$2=0;i$2<256;i$2++)simpleEscapeCheck[i$2]=simpleEscapeSequence(i$2)?1:0,simpleEscapeMap[i$2]=simpleEscapeSequence(i$2);var i$2;function State$1(Ra,qa){this.input=Ra,this.filename=qa.filename||null,this.schema=qa.schema||_default,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 nd={name:Ra.filename,buffer:Ra.input.slice(0,-1),position:Ra.position,line:Ra.line,column:Ra.position-Ra.lineStart};return nd.snippet=snippet(nd),new exception(qa,nd)}__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,nd,od){var ld,ud,dd;qa.version!==null&&throwError(qa,"duplication of %YAML directive"),od.length!==1&&throwError(qa,"YAML directive accepts exactly one argument"),ld=/^([0-9]+)\.([0-9]+)$/.exec(od[0]),ld===null&&throwError(qa,"ill-formed argument of the YAML directive"),ud=parseInt(ld[1],10),dd=parseInt(ld[2],10),ud!==1&&throwError(qa,"unacceptable YAML version of the document"),qa.version=od[0],qa.checkLineBreaks=dd<2,dd!==1&&dd!==2&&throwWarning(qa,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:__name(function(qa,nd,od){var ld,ud;od.length!==2&&throwError(qa,"TAG directive accepts exactly two arguments"),ld=od[0],ud=od[1],PATTERN_TAG_HANDLE.test(ld)||throwError(qa,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty$1.call(qa.tagMap,ld)&&throwError(qa,'there is a previously declared suffix for "'+ld+'" tag handle'),PATTERN_TAG_URI.test(ud)||throwError(qa,"ill-formed tag prefix (second argument) of the TAG directive");try{ud=decodeURIComponent(ud)}catch{throwError(qa,"tag prefix is malformed: "+ud)}qa.tagMap[ld]=ud},"handleTagDirective")};function captureSegment(Ra,qa,nd,od){var ld,ud,dd,pd;if(qa<nd){if(pd=Ra.input.slice(qa,nd),od)for(ld=0,ud=pd.length;ld<ud;ld+=1)dd=pd.charCodeAt(ld),dd===9||32<=dd&&dd<=1114111||throwError(Ra,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(pd)&&throwError(Ra,"the stream contains non-printable characters");Ra.result+=pd}}__name(captureSegment,"captureSegment");function mergeMappings(Ra,qa,nd,od){var ld,ud,dd,pd;for(common.isObject(nd)||throwError(Ra,"cannot merge mappings; the provided source object is unacceptable"),ld=Object.keys(nd),dd=0,pd=ld.length;dd<pd;dd+=1)ud=ld[dd],_hasOwnProperty$1.call(qa,ud)||(qa[ud]=nd[ud],od[ud]=!0)}__name(mergeMappings,"mergeMappings");function storeMappingPair(Ra,qa,nd,od,ld,ud,dd,pd,fd){var md,vd;if(Array.isArray(ld))for(ld=Array.prototype.slice.call(ld),md=0,vd=ld.length;md<vd;md+=1)Array.isArray(ld[md])&&throwError(Ra,"nested arrays are not supported inside keys"),typeof ld=="object"&&_class(ld[md])==="[object Object]"&&(ld[md]="[object Object]");if(typeof ld=="object"&&_class(ld)==="[object Object]"&&(ld="[object Object]"),ld=String(ld),qa===null&&(qa={}),od==="tag:yaml.org,2002:merge")if(Array.isArray(ud))for(md=0,vd=ud.length;md<vd;md+=1)mergeMappings(Ra,qa,ud[md],nd);else mergeMappings(Ra,qa,ud,nd);else!Ra.json&&!_hasOwnProperty$1.call(nd,ld)&&_hasOwnProperty$1.call(qa,ld)&&(Ra.line=dd||Ra.line,Ra.lineStart=pd||Ra.lineStart,Ra.position=fd||Ra.positio
`,qa-1))}__name(writeFoldedLines,"writeFoldedLines");function readPlainScalar(Ra,qa,nd){var od,ld,ud,dd,pd,fd,md,vd,Ad=Ra.kind,Nd=Ra.result,Id;if(Id=Ra.input.charCodeAt(Ra.position),is_WS_OR_EOL(Id)||is_FLOW_INDICATOR(Id)||Id===35||Id===38||Id===42||Id===33||Id===124||Id===62||Id===39||Id===34||Id===37||Id===64||Id===96||(Id===63||Id===45)&&(ld=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(ld)||nd&&is_FLOW_INDICATOR(ld)))return!1;for(Ra.kind="scalar",Ra.result="",ud=dd=Ra.position,pd=!1;Id!==0;){if(Id===58){if(ld=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(ld)||nd&&is_FLOW_INDICATOR(ld))break}else if(Id===35){if(od=Ra.input.charCodeAt(Ra.position-1),is_WS_OR_EOL(od))break}else{if(Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)||nd&&is_FLOW_INDICATOR(Id))break;if(is_EOL(Id))if(fd=Ra.line,md=Ra.lineStart,vd=Ra.lineIndent,skipSeparationSpace(Ra,!1,-1),Ra.lineIndent>=qa){pd=!0,Id=Ra.input.charCodeAt(Ra.position);continue}else{Ra.position=dd,Ra.line=fd,Ra.lineStart=md,Ra.lineIndent=vd;break}}pd&&(captureSegment(Ra,ud,dd,!1),writeFoldedLines(Ra,Ra.line-fd),ud=dd=Ra.position,pd=!1),is_WHITE_SPACE(Id)||(dd=Ra.position+1),Id=Ra.input.charCodeAt(++Ra.position)}return captureSegment(Ra,ud,dd,!1),Ra.result?!0:(Ra.kind=Ad,Ra.result=Nd,!1)}__name(readPlainScalar,"readPlainScalar");function readSingleQuotedScalar(Ra,qa){var nd,od,ld;if(nd=Ra.input.charCodeAt(Ra.position),nd!==39)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,od=ld=Ra.position;(nd=Ra.input.charCodeAt(Ra.position))!==0;)if(nd===39)if(captureSegment(Ra,od,Ra.position,!0),nd=Ra.input.charCodeAt(++Ra.position),nd===39)od=Ra.position,Ra.position++,ld=Ra.position;else return!0;else is_EOL(nd)?(captureSegment(Ra,od,ld,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),od=ld=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a single quoted scalar"):(Ra.position++,ld=Ra.position);throwError(Ra,"unexpected end of the stream within a single quoted scalar")}__name(readSingleQuotedScalar,"readSingleQuotedScalar");function readDoubleQuotedScalar(Ra,qa){var nd,od,ld,ud,dd,pd;if(pd=Ra.input.charCodeAt(Ra.position),pd!==34)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,nd=od=Ra.position;(pd=Ra.input.charCodeAt(Ra.position))!==0;){if(pd===34)return captureSegment(Ra,nd,Ra.position,!0),Ra.position++,!0;if(pd===92){if(captureSegment(Ra,nd,Ra.position,!0),pd=Ra.input.charCodeAt(++Ra.position),is_EOL(pd))skipSeparationSpace(Ra,!1,qa);else if(pd<256&&simpleEscapeCheck[pd])Ra.result+=simpleEscapeMap[pd],Ra.position++;else if((dd=escapedHexLen(pd))>0){for(ld=dd,ud=0;ld>0;ld--)pd=Ra.input.charCodeAt(++Ra.position),(dd=fromHexCode(pd))>=0?ud=(ud<<4)+dd:throwError(Ra,"expected hexadecimal character");Ra.result+=charFromCodepoint(ud),Ra.position++}else throwError(Ra,"unknown escape sequence");nd=od=Ra.position}else is_EOL(pd)?(captureSegment(Ra,nd,od,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),nd=od=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a double quoted scalar"):(Ra.position++,od=Ra.position)}throwError(Ra,"unexpected end of the stream within a double quoted scalar")}__name(readDoubleQuotedScalar,"readDoubleQuotedScalar");function readFlowCollection(Ra,qa){var nd=!0,od,ld,ud,dd=Ra.tag,pd,fd=Ra.anchor,md,vd,Ad,Nd,Id,Od=Object.create(null),Md,Ud,jd,Ld;if(Ld=Ra.input.charCodeAt(Ra.position),Ld===91)vd=93,Id=!1,pd=[];else if(Ld===123)vd=125,Id=!0,pd={};else return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=pd),Ld=Ra.input.charCodeAt(++Ra.position);Ld!==0;){if(skipSeparationSpace(Ra,!0,qa),Ld=Ra.input.charCodeAt(Ra.position),Ld===vd)return Ra.position++,Ra.tag=dd,Ra.anchor=fd,Ra.kind=Id?"mapping":"sequence",Ra.result=pd,!0;nd?Ld===44&&throwError(Ra,"expected the node content, but found ','"):throwError(Ra,"missed comma between flow collection entries"),Ud=Md=jd=null,Ad=Nd=!1,Ld===63&&(md=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(md)&&(Ad=Nd=!0,Ra.position++,skipSeparationSpace(Ra,!0,qa))),od=Ra.l
`,ud?1+fd:fd):ld===CHOMPING_CLIP&&ud&&(Ra.result+=`
`);break}for(od?is_WHITE_SPACE(Ad)?(md=!0,Ra.result+=common.repeat(`
`,ud?1+fd:fd)):md?(md=!1,Ra.result+=common.repeat(`
`,fd+1)):fd===0?ud&&(Ra.result+=" "):Ra.result+=common.repeat(`
`,fd):Ra.result+=common.repeat(`
`,ud?1+fd:fd),ud=!0,dd=!0,fd=0,nd=Ra.position;!is_EOL(Ad)&&Ad!==0;)Ad=Ra.input.charCodeAt(++Ra.position);captureSegment(Ra,nd,Ra.position,!1)}return!0}__name(readBlockScalar,"readBlockScalar");function readBlockSequence(Ra,qa){var nd,od=Ra.tag,ld=Ra.anchor,ud=[],dd,pd=!1,fd;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=ud),fd=Ra.input.charCodeAt(Ra.position);fd!==0&&(Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),!(fd!==45||(dd=Ra.input.charCodeAt(Ra.position+1),!is_WS_OR_EOL(dd))));){if(pd=!0,Ra.position++,skipSeparationSpace(Ra,!0,-1)&&Ra.lineIndent<=qa){ud.push(null),fd=Ra.input.charCodeAt(Ra.position);continue}if(nd=Ra.line,composeNode(Ra,qa,CONTEXT_BLOCK_IN,!1,!0),ud.push(Ra.result),skipSeparationSpace(Ra,!0,-1),fd=Ra.input.charCodeAt(Ra.position),(Ra.line===nd||Ra.lineIndent>qa)&&fd!==0)throwError(Ra,"bad indentation of a sequence entry");else if(Ra.lineIndent<qa)break}return pd?(Ra.tag=od,Ra.anchor=ld,Ra.kind="sequence",Ra.result=ud,!0):!1}__name(readBlockSequence,"readBlockSequence");function readBlockMapping(Ra,qa,nd){var od,ld,ud,dd,pd,fd,md=Ra.tag,vd=Ra.anchor,Ad={},Nd=Object.create(null),Id=null,Od=null,Md=null,Ud=!1,jd=!1,Ld;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=Ad),Ld=Ra.input.charCodeAt(Ra.position);Ld!==0;){if(!Ud&&Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),od=Ra.input.charCodeAt(Ra.position+1),ud=Ra.line,(Ld===63||Ld===58)&&is_WS_OR_EOL(od))Ld===63?(Ud&&(storeMappingPair(Ra,Ad,Nd,Id,Od,null,dd,pd,fd),Id=Od=Md=null),jd=!0,Ud=!0,ld=!0):Ud?(Ud=!1,ld=!0):throwError(Ra,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),Ra.position+=1,Ld=od;else{if(dd=Ra.line,pd=Ra.lineStart,fd=Ra.position,!composeNode(Ra,nd,CONTEXT_FLOW_OUT,!1,!0))break;if(Ra.line===ud){for(Ld=Ra.input.charCodeAt(Ra.position);is_WHITE_SPACE(Ld);)Ld=Ra.input.charCodeAt(++Ra.position);if(Ld===58)Ld=Ra.input.charCodeAt(++Ra.position),is_WS_OR_EOL(Ld)||throwError(Ra,"a whitespace character is expected after the key-value separator within a block mapping"),Ud&&(storeMappingPair(Ra,Ad,Nd,Id,Od,null,dd,pd,fd),Id=Od=Md=null),jd=!0,Ud=!1,ld=!1,Id=Ra.tag,Od=Ra.result;else if(jd)throwError(Ra,"can not read an implicit mapping pair; a colon is missed");else return Ra.tag=md,Ra.anchor=vd,!0}else if(jd)throwError(Ra,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Ra.tag=md,Ra.anchor=vd,!0}if((Ra.line===ud||Ra.lineIndent>qa)&&(Ud&&(dd=Ra.line,pd=Ra.lineStart,fd=Ra.position),composeNode(Ra,qa,CONTEXT_BLOCK_OUT,!0,ld)&&(Ud?Od=Ra.result:Md=Ra.result),Ud||(storeMappingPair(Ra,Ad,Nd,Id,Od,Md,dd,pd,fd),Id=Od=Md=null),skipSeparationSpace(Ra,!0,-1),Ld=Ra.input.charCodeAt(Ra.position)),(Ra.line===ud||Ra.lineIndent>qa)&&Ld!==0)throwError(Ra,"bad indentation of a mapping entry");else if(Ra.lineIndent<qa)break}return Ud&&storeMappingPair(Ra,Ad,Nd,Id,Od,null,dd,pd,fd),jd&&(Ra.tag=md,Ra.anchor=vd,Ra.kind="mapping",Ra.result=Ad),jd}__name(readBlockMapping,"readBlockMapping");function readTagProperty(Ra){var qa,nd=!1,od=!1,ld,ud,dd;if(dd=Ra.input.charCodeAt(Ra.position),dd!==33)return!1;if(Ra.tag!==null&&throwError(Ra,"duplication of a tag property"),dd=Ra.input.charCodeAt(++Ra.position),dd===60?(nd=!0,dd=Ra.input.charCodeAt(++Ra.position)):dd===33?(od=!0,ld="!!",dd=Ra.input.charCodeAt(++Ra.position)):ld="!",qa=Ra.position,nd){do dd=Ra.input.charCodeAt(++Ra.position);while(dd!==0&&dd!==62);Ra.position<Ra.length?(ud=Ra.input.slice(qa,Ra.position),dd=Ra.input.charCodeAt(++Ra.position)):throwError(Ra,"unexpected end of the stream within a verbatim tag")}else{for(;dd!==0&&!is_WS_OR_EOL(dd);)dd===33&&(od?throwError(Ra,"tag suffix cannot contain exclamation marks"):(ld=Ra.input.slice(qa-1,Ra.position+1),PATTERN_TAG_HANDLE.test(ld)||throwError(Ra,"named tag handle cannot contain such characters"),od=!0,qa=Ra.position+1)),dd=Ra.input.charCodeAt(++Ra.position);
`),Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)));var nd=new State$1(Ra,qa),od=Ra.indexOf("\0");for(od!==-1&&(nd.position=od,throwError(nd,"null byte is not allowed in input")),nd.input+="\0";nd.input.charCodeAt(nd.position)===32;)nd.lineIndent+=1,nd.position+=1;for(;nd.position<nd.length-1;)readDocument(nd);return nd.documents}__name(loadDocuments,"loadDocuments");function loadAll$1(Ra,qa,nd){qa!==null&&typeof qa=="object"&&typeof nd>"u"&&(nd=qa,qa=null);var od=loadDocuments(Ra,nd);if(typeof qa!="function")return od;for(var ld=0,ud=od.length;ld<ud;ld+=1)qa(od[ld])}__name(loadAll$1,"loadAll$1");function load$1(Ra,qa){var nd=loadDocuments(Ra,qa);if(nd.length!==0){if(nd.length===1)return nd[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,loader$1={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 nd,od,ld,ud,dd,pd,fd;if(qa===null)return{};for(nd={},od=Object.keys(qa),ld=0,ud=od.length;ld<ud;ld+=1)dd=od[ld],pd=String(qa[dd]),dd.slice(0,2)==="!!"&&(dd="tag:yaml.org,2002:"+dd.slice(2)),fd=Ra.compiledTypeMap.fallback[dd],fd&&_hasOwnProperty.call(fd.styleAliases,pd)&&(pd=fd.styleAliases[pd]),nd[dd]=pd;return nd}__name(compileStyleMap,"compileStyleMap");function encodeHex(Ra){var qa,nd,od;if(qa=Ra.toString(16).toUpperCase(),Ra<=255)nd="x",od=2;else if(Ra<=65535)nd="u",od=4;else if(Ra<=4294967295)nd="U",od=8;else throw new exception("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+nd+common.repeat("0",od-qa.length)+qa}__name(encodeHex,"encodeHex");var QUOTING_TYPE_SINGLE=1,QUOTING_TYPE_DOUBLE=2;function State(Ra){this.schema=Ra.schema||_default,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 nd=common.repeat(" ",qa),od=0,ld=-1,ud="",dd,pd=Ra.length;od<pd;)ld=Ra.indexOf(`
`,od),ld===-1?(dd=Ra.slice(od),od=pd):(dd=Ra.slice(od,ld+1),od=ld+1),dd.length&&dd!==`
`&&(ud+=nd),ud+=dd;return ud}__name(indentString,"indentString");function generateNextLine(Ra,qa){return`
`+common.repeat(" ",Ra.indent*qa)}__name(generateNextLine,"generateNextLine");function testImplicitResolving(Ra,qa){var nd,od,ld;for(nd=0,od=Ra.implicitTypes.length;nd<od;nd+=1)if(ld=Ra.implicitTypes[nd],ld.resolve(qa))return!0;return!1}__name(testImplicitResolving,"testImplicitResolving");function isWhitespace(Ra){return Ra===CHAR_SPACE||Ra===CHAR_TAB}__name(isWhitespace,"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,nd){var od=isNsCharOrWhitespace(Ra),ld=od&&!isWhitespace(Ra);return(nd?od:od&&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&&!ld)||isNsCharOrWhitespace(qa)&&!isWhitespace(qa)&&Ra===CHAR_SHARP||qa===CHAR_COLON&&ld}__name(isPlainSafe,"isPlainSafe");function isPlainSafeFirst(Ra){return isPrintable(Ra)&&Ra!==CHAR_BOM&&!isWhitespace(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(Ra)&&Ra!==CHAR_COLON}__name(isPlainSafeLast,"isPlainSafeLast");function codePointAt(Ra,qa){var nd=Ra.charCodeAt(qa),od;return nd>=55296&&nd<=56319&&qa+1<Ra.length&&(od=Ra.charCodeAt(qa+1),od>=56320&&od<=57343)?(nd-55296)*1024+od-56320+65536:nd}__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,nd,od,ld,ud,dd,pd){var fd,md=0,vd=null,Ad=!1,Nd=!1,Id=od!==-1,Od=-1,Md=isPlainSafeFirst(codePointAt(Ra,0))&&isPlainSafeLast(codePointAt(Ra,Ra.length-1));if(qa||dd)for(fd=0;fd<Ra.length;md>=65536?fd+=2:fd++){if(md=codePointAt(Ra,fd),!isPrintable(md))return STYLE_DOUBLE;Md=Md&&isPlainSafe(md,vd,pd),vd=md}else{for(fd=0;fd<Ra.length;md>=65536?fd+=2:fd++){if(md=codePointAt(Ra,fd),md===CHAR_LINE_FEED)Ad=!0,Id&&(Nd=Nd||fd-Od-1>od&&Ra[Od+1]!==" ",Od=fd);else if(!isPrintable(md))return STYLE_DOUBLE;Md=Md&&isPlainSafe(md,vd,pd),vd=md}Nd=Nd||Id&&fd-Od-1>od&&Ra[Od+1]!==" "}return!Ad&&!Nd?Md&&!dd&&!ld(Ra)?STYLE_PLAIN:ud===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:nd>9&&needIndentIndicator(Ra)?STYLE_DOUBLE:dd?ud===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:Nd?STYLE_FOLDED:STYLE_LITERAL}__name(chooseScalarStyle,"chooseScalarStyle");function writeScalar(Ra,qa,nd,od,ld){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 ud=Ra.indent*Math.max(1,nd),dd=Ra.lineWidth===-1?-1:Math.max(Math.min(Ra.lineWidth,40),Ra.lineWidth-ud),pd=od||Ra.flowLevel>-1&&nd>=Ra.flowLevel;function fd(md){return testImplicitResolving(Ra,md)}switch(__name(fd,"testAmbiguity"),chooseScalarStyle(qa,pd,Ra.indent,dd,fd,Ra.quotingType,Ra.forceQuotes&&!od,ld)){case STYLE_PLAIN:return qa;case STYLE_SINGLE:return"'"+qa.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(qa,ud));case STYLE_FOLDED:return">"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(foldString(qa,dd),ud));case STYLE_DOUBLE:return'"'+escapeString(qa)+'"';default:throw new
`,ld=od&&(Ra[Ra.length-2]===`
`||Ra===`
`),ud=ld?"+":od?"":"-";return nd+ud+`
`}__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 nd=/(\n+)([^\n]*)/g,od=function(){var md=Ra.indexOf(`
`);return md=md!==-1?md:Ra.length,nd.lastIndex=md,foldLine(Ra.slice(0,md),qa)}(),ld=Ra[0]===`
`||Ra[0]===" ",ud,dd;dd=nd.exec(Ra);){var pd=dd[1],fd=dd[2];ud=fd[0]===" ",od+=pd+(!ld&&!ud&&fd!==""?`
`:"")+foldLine(fd,qa),ld=ud}return od}__name(foldString,"foldString");function foldLine(Ra,qa){if(Ra===""||Ra[0]===" ")return Ra;for(var nd=/ [^ ]/g,od,ld=0,ud,dd=0,pd=0,fd="";od=nd.exec(Ra);)pd=od.index,pd-ld>qa&&(ud=dd>ld?dd:pd,fd+=`
`+Ra.slice(ld,ud),ld=ud+1),dd=pd;return fd+=`
`,Ra.length-ld>qa&&dd>ld?fd+=Ra.slice(ld,dd)+`
`+Ra.slice(dd+1):fd+=Ra.slice(ld),fd.slice(1)}__name(foldLine,"foldLine");function escapeString(Ra){for(var qa="",nd=0,od,ld=0;ld<Ra.length;nd>=65536?ld+=2:ld++)nd=codePointAt(Ra,ld),od=ESCAPE_SEQUENCES[nd],!od&&isPrintable(nd)?(qa+=Ra[ld],nd>=65536&&(qa+=Ra[ld+1])):qa+=od||encodeHex(nd);return qa}__name(escapeString,"escapeString");function writeFlowSequence(Ra,qa,nd){var od="",ld=Ra.tag,ud,dd,pd;for(ud=0,dd=nd.length;ud<dd;ud+=1)pd=nd[ud],Ra.replacer&&(pd=Ra.replacer.call(nd,String(ud),pd)),(writeNode(Ra,qa,pd,!1,!1)||typeof pd>"u"&&writeNode(Ra,qa,null,!1,!1))&&(od!==""&&(od+=","+(Ra.condenseFlow?"":" ")),od+=Ra.dump);Ra.tag=ld,Ra.dump="["+od+"]"}__name(writeFlowSequence,"writeFlowSequence");function writeBlockSequence(Ra,qa,nd,od){var ld="",ud=Ra.tag,dd,pd,fd;for(dd=0,pd=nd.length;dd<pd;dd+=1)fd=nd[dd],Ra.replacer&&(fd=Ra.replacer.call(nd,String(dd),fd)),(writeNode(Ra,qa+1,fd,!0,!0,!1,!0)||typeof fd>"u"&&writeNode(Ra,qa+1,null,!0,!0,!1,!0))&&((!od||ld!=="")&&(ld+=generateNextLine(Ra,qa)),Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?ld+="-":ld+="- ",ld+=Ra.dump);Ra.tag=ud,Ra.dump=ld||"[]"}__name(writeBlockSequence,"writeBlockSequence");function writeFlowMapping(Ra,qa,nd){var od="",ld=Ra.tag,ud=Object.keys(nd),dd,pd,fd,md,vd;for(dd=0,pd=ud.length;dd<pd;dd+=1)vd="",od!==""&&(vd+=", "),Ra.condenseFlow&&(vd+='"'),fd=ud[dd],md=nd[fd],Ra.replacer&&(md=Ra.replacer.call(nd,fd,md)),writeNode(Ra,qa,fd,!1,!1)&&(Ra.dump.length>1024&&(vd+="? "),vd+=Ra.dump+(Ra.condenseFlow?'"':"")+":"+(Ra.condenseFlow?"":" "),writeNode(Ra,qa,md,!1,!1)&&(vd+=Ra.dump,od+=vd));Ra.tag=ld,Ra.dump="{"+od+"}"}__name(writeFlowMapping,"writeFlowMapping");function writeBlockMapping(Ra,qa,nd,od){var ld="",ud=Ra.tag,dd=Object.keys(nd),pd,fd,md,vd,Ad,Nd;if(Ra.sortKeys===!0)dd.sort();else if(typeof Ra.sortKeys=="function")dd.sort(Ra.sortKeys);else if(Ra.sortKeys)throw new exception("sortKeys must be a boolean or a function");for(pd=0,fd=dd.length;pd<fd;pd+=1)Nd="",(!od||ld!=="")&&(Nd+=generateNextLine(Ra,qa)),md=dd[pd],vd=nd[md],Ra.replacer&&(vd=Ra.replacer.call(nd,md,vd)),writeNode(Ra,qa+1,md,!0,!0,!0)&&(Ad=Ra.tag!==null&&Ra.tag!=="?"||Ra.dump&&Ra.dump.length>1024,Ad&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?Nd+="?":Nd+="? "),Nd+=Ra.dump,Ad&&(Nd+=generateNextLine(Ra,qa)),writeNode(Ra,qa+1,vd,!0,Ad)&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?Nd+=":":Nd+=": ",Nd+=Ra.dump,ld+=Nd));Ra.tag=ud,Ra.dump=ld||"{}"}__name(writeBlockMapping,"writeBlockMapping");function detectType(Ra,qa,nd){var od,ld,ud,dd,pd,fd;for(ld=nd?Ra.explicitTypes:Ra.implicitTypes,ud=0,dd=ld.length;ud<dd;ud+=1)if(pd=ld[ud],(pd.instanceOf||pd.predicate)&&(!pd.instanceOf||typeof qa=="object"&&qa instanceof pd.instanceOf)&&(!pd.predicate||pd.predicate(qa))){if(nd?pd.multi&&pd.representName?Ra.tag=pd.representName(qa):Ra.tag=pd.tag:Ra.tag="?",pd.represent){if(fd=Ra.styleMap[pd.tag]||pd.defaultStyle,_toString.call(pd.represent)==="[object Function]")od=pd.represent(qa,fd);else if(_hasOwnProperty.call(pd.represent,fd))od=pd.represent[fd](qa,fd);else throw new exception("!<"+pd.tag+'> tag resolver accepts not "'+fd+'" style');Ra.dump=od}return!0}return!1}__name(detectType,"detectType");function writeNode(Ra,qa,nd,od,ld,ud,dd){Ra.tag=null,Ra.dump=nd,detectType(Ra,nd,!1)||detectType(Ra,nd,!0);var pd=_toString.call(Ra.dump),fd=od,md;od&&(od=Ra.flowLevel<0||Ra.flowLevel>qa);var vd=pd==="[object Object]"||pd==="[object Array]",Ad,Nd;if(vd&&(Ad=Ra.duplicates.indexOf(nd),Nd=Ad!==-1),(Ra.tag!==null&&Ra.tag!=="?"||Nd||Ra.indent!==2&&qa>0)&&(ld=!1),Nd&&Ra.usedDuplicates[Ad])Ra.dump="*ref_"+Ad;else{if(vd&&Nd&&!Ra.usedDuplicates[Ad]&&(Ra.usedDuplicates[Ad]=!0),pd==="[object Object]")od&&Object.keys(Ra.dump).length!==0?(writeBlockMapping(Ra,qa,Ra.dump,ld),Nd&&(Ra.dump="&ref_"+Ad+Ra.dump)):(writeFlowMapping(Ra,qa,Ra.dump),Nd&&(Ra.dump="&ref_"+Ad+" "+Ra.dump));else if(pd==="[object Array]")od&&Ra.dump.length!==0?(Ra.noArrayIndent&&!dd&&qa>0?writeBlockSequence(Ra,qa-1,Ra.dump,ld):writeBlockSequence(Ra,qa,Ra.dump,ld),Nd&&(Ra.dump="&ref_"+Ad+Ra.dump)):(writeFlowSequence(Ra,qa,Ra.dump),Nd&&(Ra.dump="&ref
`:""}__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=loader$1.load;/*! Bundled license information:
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/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,nd,od="")=>{const ld=Ra.split(":");if(Ra.slice(0,1)==="@"){if(ld.length<2||ld.length>3)return null;od=ld.shift().slice(1)}if(ld.length>3||!ld.length)return null;if(ld.length>1){const pd=ld.pop(),fd=ld.pop(),md={provider:ld.length>0?ld[0]:od,prefix:fd,name:pd};return validateIconName(md)?md:null}const ud=ld[0],dd=ud.split("-");if(dd.length>1){const pd={provider:od,prefix:dd.shift(),name:dd.join("-")};return validateIconName(pd)?pd:null}if(nd&&od===""){const pd={provider:od,prefix:"",name:ud};return validateIconName(pd,nd)?pd: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 nd={};!Ra.hFlip!=!qa.hFlip&&(nd.hFlip=!0),!Ra.vFlip!=!qa.vFlip&&(nd.vFlip=!0);const od=((Ra.rotate||0)+(qa.rotate||0))%4;return od&&(nd.rotate=od),nd}function mergeIconData(Ra,qa){const nd=mergeIconTransformations(Ra,qa);for(const od in defaultExtendedIconProps)od in defaultIconTransformations?od in Ra&&!(od in nd)&&(nd[od]=defaultIconTransformations[od]):od in qa?nd[od]=qa[od]:od in Ra&&(nd[od]=Ra[od]);return nd}function getIconsTree(Ra,qa){const nd=Ra.icons,od=Ra.aliases||Object.create(null),ld=Object.create(null);function ud(dd){if(nd[dd])return ld[dd]=[];if(!(dd in ld)){ld[dd]=null;const pd=od[dd]&&od[dd].parent,fd=pd&&ud(pd);fd&&(ld[dd]=[pd].concat(fd))}return ld[dd]}return(qa||Object.keys(nd).concat(Object.keys(od))).forEach(ud),ld}function internalGetIconData(Ra,qa,nd){const od=Ra.icons,ld=Ra.aliases||Object.create(null);let ud={};function dd(pd){ud=mergeIconData(od[pd]||ld[pd],ud)}return dd(qa),nd.forEach(dd),mergeIconData(Ra,ud)}function getIconData(Ra,qa){if(Ra.icons[qa])return internalGetIconData(Ra,qa,[]);const nd=getIconsTree(Ra,[qa])[qa];return nd?internalGetIconData(Ra,qa,nd):null}const unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(Ra,qa,nd){if(qa===1)return Ra;if(nd=nd||100,typeof Ra=="number")return Math.ceil(Ra*qa*nd)/nd;if(typeof Ra!="string")return Ra;const od=Ra.split(unitsSplit);if(od===null||!od.length)return Ra;const ld=[];let ud=od.shift(),dd=unitsTest.test(ud);for(;;){if(dd){const pd=parseFloat(ud);isNaN(pd)?ld.push(ud):ld.push(Math.ceil(pd*qa*nd)/nd)}else ld.push(ud);if(ud=od.shift(),ud===void 0)return ld.join("");dd=!dd}}function splitSVGDefs(Ra,qa="defs"){let nd="";const od=Ra.indexOf("<"+qa);for(;od>=0;){const ld=Ra.indexOf(">",od),ud=Ra.indexOf("</"+qa);if(ld===-1||ud===-1)break;const dd=Ra.indexOf(">",ud);if(dd===-1)break;nd+=Ra.slice(ld+1,ud).trim(),Ra=Ra.slice(0,od).trim()+Ra.slice(dd+1)}return{defs:nd,content:Ra}}function mergeDefsAndContent(Ra,qa){return Ra?"<defs>"+Ra+"</defs>"+qa:qa}function wrapSVGContent(Ra,qa,nd){const od=splitSVGDefs(Ra);return mergeDefsAndContent(od.defs,qa+od.content+nd)}const isUnsetKeyword=Ra=>Ra==="unset"||Ra==="undefined"||Ra==="none";function iconToSVG(Ra,qa){const nd={...defaultIconProps,...Ra},od={...defaultIconCustomisations,...qa},ld={left:nd.left,top:nd.top,width:nd.width,height:nd.height};let ud=nd.body;[nd,od].forEach(Md=>{const Ud=[],jd=Md.hFlip,Ld=Md.vFlip;let Bd=Md.rotate;jd?Ld?Bd+=2:(Ud.push("translate("+(ld.width+ld.left).toString()+" "+(0-ld.top).toString()+")"),Ud.push("scale(-1 1)"),ld.top=ld.left=0):Ld&&(Ud.push("translate("+(0-ld.left).toString()+" "+(ld.height+ld.top).toString()+")"),Ud.push("scale(1 -1)"),ld.top=ld.left=0);let Gd;switch(Bd<0&&(Bd-=Math.floor(Bd/4)*4),Bd=Bd%4,Bd){case 1
`,"ig");Ra=Ra.trim().replace(ld,"").replace(/'/gm,'"'),log$1.debug(`Detecting diagram directive${qa!==null?" type:"+qa:""} based on the text:${Ra}`);let ud;const dd=[];for(;(ud=directiveRegex.exec(Ra))!==null;)if(ud.index===directiveRegex.lastIndex&&directiveRegex.lastIndex++,ud&&!qa||qa&&((nd=ud[1])!=null&&nd.match(qa))||qa&&((od=ud[2])!=null&&od.match(qa))){const pd=ud[1]?ud[1]:ud[2],fd=ud[3]?ud[3].trim():ud[4]?JSON.parse(ud[4].trim()):null;dd.push({type:pd,args:fd})}return dd.length===0?{type:Ra,args:null}:dd.length===1?dd[0]:dd}catch(ld){return log$1.error(`ERROR: ${ld.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[nd,od]of qa.entries())if(od.match(Ra))return nd;return-1},"isSubstringInArray");function interpolateToCurve(Ra,qa){if(!Ra)return qa;const nd=`curve${Ra.charAt(0).toUpperCase()+Ra.slice(1)}`;return d3CurveTypes[nd]??qa}__name(interpolateToCurve,"interpolateToCurve");function formatUrl(Ra,qa){const nd=Ra.trim();if(nd)return qa.securityLevel!=="loose"?sanitizeUrl_1(nd):nd}__name(formatUrl,"formatUrl");var runFunc=__name((Ra,...qa)=>{const nd=Ra.split("."),od=nd.length-1,ld=nd[od];let ud=window;for(let dd=0;dd<od;dd++)if(ud=ud[nd[dd]],!ud){log$1.error(`Function name: ${Ra} not found in window`);return}ud[ld](...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,nd=0;Ra.forEach(ld=>{nd+=distance(ld,qa),qa=ld});const od=nd/2;return calculatePoint(Ra,od)}__name(traverseEdge,"traverseEdge");function calcLabelPosition(Ra){return Ra.length===1?Ra[0]:traverseEdge(Ra)}__name(calcLabelPosition,"calcLabelPosition");var roundNumber=__name((Ra,qa=2)=>{const nd=Math.pow(10,qa);return Math.round(Ra*nd)/nd},"roundNumber"),calculatePoint=__name((Ra,qa)=>{let nd,od=qa;for(const ld of Ra){if(nd){const ud=distance(ld,nd);if(ud<od)od-=ud;else{const dd=od/ud;if(dd<=0)return nd;if(dd>=1)return{x:ld.x,y:ld.y};if(dd>0&&dd<1)return{x:roundNumber((1-dd)*nd.x+dd*ld.x,5),y:roundNumber((1-dd)*nd.y+dd*ld.y,5)}}}nd=ld}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),calcCardinalityPosition=__name((Ra,qa,nd)=>{log$1.info(`our points ${JSON.stringify(qa)}`),qa[0]!==nd&&(qa=qa.reverse());const ld=calculatePoint(qa,25),ud=Ra?10:5,dd=Math.atan2(qa[0].y-ld.y,qa[0].x-ld.x),pd={x:0,y:0};return pd.x=Math.sin(dd)*ud+(qa[0].x+ld.x)/2,pd.y=-Math.cos(dd)*ud+(qa[0].y+ld.y)/2,pd},"calcCardinalityPosition");function calcTerminalLabelPosition(Ra,qa,nd){const od=structuredClone(nd);log$1.info("our points",od),qa!=="start_left"&&qa!=="start_right"&&od.reverse();const ld=25+Ra,ud=calculatePoint(od,ld),dd=10+Ra*.5,pd=Math.atan2(od[0].y-ud.y,od[0].x-ud.x),fd={x:0,y:0};return qa==="start_left"?(fd.x=Math.sin(pd+Math.PI)*dd+(od[0].x+ud.x)/2,fd.y=-Math.cos(pd+Math.PI)*dd+(od[0].y+ud.y)/2):qa==="end_right"?(fd.x=Math.sin(pd-Math.PI)*dd+(od[0].x+ud.x)/2-5,fd.y=-Math.cos(pd-Math.PI)*dd+(od[0].y+ud.y)/2-5):qa==="end_left"?(fd.x=Math.sin(pd)*dd+(od[0].x+ud.x)/2-5,fd.y=-Math.cos(pd)*dd+(od[0].y+ud.y)/2-5):(fd.x=Math.sin(pd)*dd+(od[0].x+ud.x)/2,fd.y=-Math.cos(pd)*dd+(od[0].y+ud.y)/2),fd}__name(calcTerminalLabelPosition,"calcTerminalLabelPosition");function getStylesFromArray(Ra){let qa="",nd="";for(const od of Ra)od!==void 0&&(od.startsWith("color:")||od.startsWith("text-align:")?nd=nd+od+";":qa=qa+od+";");return{style:qa,labelStyle:nd}}__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 nd="0123456789abcdef",od=nd.length;for(let ld=0;ld<Ra;ld++)qa+=nd.charAt(Math.floor(Math.random()*od));return qa}__name(makeRandomHex,"makeRandomHex");var random=__name(Ra=>makeRandomHex(Ra.length),"random"),getTextObj=__name(function(){return{x:0,y:0,fill:vo
`).map(ld=>{const ud=ld.match(/^\s+/);if(ud===null)return ld;const[dd]=ud;return dd.length>=od.length?ld.slice(od.length):ld}).join(`
`)}class _Tokenizer{constructor(qa){wg(this,"options");wg(this,"rules");wg(this,"lexer");this.options=qa||_defaults}space(qa){const nd=this.rules.block.newline.exec(qa);if(nd&&nd[0].length>0)return{type:"space",raw:nd[0]}}code(qa){const nd=this.rules.block.code.exec(qa);if(nd){const od=nd[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:nd[0],codeBlockStyle:"indented",text:this.options.pedantic?od:rtrim(od,`
`)}}}fences(qa){const nd=this.rules.block.fences.exec(qa);if(nd){const od=nd[0],ld=indentCodeCompensation(od,nd[3]||"");return{type:"code",raw:od,lang:nd[2]?nd[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):nd[2],text:ld}}}heading(qa){const nd=this.rules.block.heading.exec(qa);if(nd){let od=nd[2].trim();if(/#$/.test(od)){const ld=rtrim(od,"#");(this.options.pedantic||!ld||/ $/.test(ld))&&(od=ld.trim())}return{type:"heading",raw:nd[0],depth:nd[1].length,text:od,tokens:this.lexer.inline(od)}}}hr(qa){const nd=this.rules.block.hr.exec(qa);if(nd)return{type:"hr",raw:rtrim(nd[0],`
`)}}blockquote(qa){const nd=this.rules.block.blockquote.exec(qa);if(nd){let od=rtrim(nd[0],`
`).split(`
`),ld="",ud="";const dd=[];for(;od.length>0;){let pd=!1;const fd=[];let md;for(md=0;md<od.length;md++)if(/^ {0,3}>/.test(od[md]))fd.push(od[md]),pd=!0;else if(!pd)fd.push(od[md]);else break;od=od.slice(md);const vd=fd.join(`
`),Ad=vd.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");ld=ld?`${ld}
${vd}`:vd,ud=ud?`${ud}
${Ad}`:Ad;const Nd=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(Ad,dd,!0),this.lexer.state.top=Nd,od.length===0)break;const Id=dd[dd.length-1];if((Id==null?void 0:Id.type)==="code")break;if((Id==null?void 0:Id.type)==="blockquote"){const Od=Id,Md=Od.raw+`
`+od.join(`
`),Ud=this.blockquote(Md);dd[dd.length-1]=Ud,ld=ld.substring(0,ld.length-Od.raw.length)+Ud.raw,ud=ud.substring(0,ud.length-Od.text.length)+Ud.text;break}else if((Id==null?void 0:Id.type)==="list"){const Od=Id,Md=Od.raw+`
`+od.join(`
`),Ud=this.list(Md);dd[dd.length-1]=Ud,ld=ld.substring(0,ld.length-Id.raw.length)+Ud.raw,ud=ud.substring(0,ud.length-Od.raw.length)+Ud.raw,od=Md.substring(dd[dd.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:ld,tokens:dd,text:ud}}}list(qa){let nd=this.rules.block.list.exec(qa);if(nd){let od=nd[1].trim();const ld=od.length>1,ud={type:"list",raw:"",ordered:ld,start:ld?+od.slice(0,-1):"",loose:!1,items:[]};od=ld?`\\d{1,9}\\${od.slice(-1)}`:`\\${od}`,this.options.pedantic&&(od=ld?od:"[*+-]");const dd=new RegExp(`^( {0,3}${od})((?:[ ][^\\n]*)?(?:\\n|$))`);let pd=!1;for(;qa;){let fd=!1,md="",vd="";if(!(nd=dd.exec(qa))||this.rules.block.hr.test(qa))break;md=nd[0],qa=qa.substring(md.length);let Ad=nd[2].split(`
`,1)[0].replace(/^\t+/,jd=>" ".repeat(3*jd.length)),Nd=qa.split(`
`,1)[0],Id=!Ad.trim(),Od=0;if(this.options.pedantic?(Od=2,vd=Ad.trimStart()):Id?Od=nd[1].length+1:(Od=nd[2].search(/[^ ]/),Od=Od>4?1:Od,vd=Ad.slice(Od),Od+=nd[1].length),Id&&/^ *$/.test(Nd)&&(md+=Nd+`
`,qa=qa.substring(Nd.length+1),fd=!0),!fd){const jd=new RegExp(`^ {0,${Math.min(3,Od-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),Ld=new RegExp(`^ {0,${Math.min(3,Od-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Bd=new RegExp(`^ {0,${Math.min(3,Od-1)}}(?:\`\`\`|~~~)`),Gd=new RegExp(`^ {0,${Math.min(3,Od-1)}}#`);for(;qa;){const qd=qa.split(`
`,1)[0];if(Nd=qd,this.options.pedantic&&(Nd=Nd.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),Bd.test(Nd)||Gd.test(Nd)||jd.test(Nd)||Ld.test(qa))break;if(Nd.search(/[^ ]/)>=Od||!Nd.trim())vd+=`
`+Nd.slice(Od);else{if(Id||Ad.search(/[^ ]/)>=4||Bd.test(Ad)||Gd.test(Ad)||Ld.test(Ad))break;vd+=`
`+Nd}!Id&&!Nd.trim()&&(Id=!0),md+=qd+`
`,qa=qa.substring(qd.length+1),Ad=Nd.slice(Od)}}ud.loose||(pd?ud.loose=!0:/\n *\n *$/.test(md)&&(pd=!0));let Md=null,Ud;this.options.gfm&&(Md=/^\[[ xX]\] /.exec(vd),Md&&(Ud=Md[0]!=="[ ] ",vd=vd.replace(/^\[[ xX]\] +/,""))),ud.items.push({type:"list_item",raw:md,task:!!Md,checked:Ud,loose:!1,text:vd,tokens:[]}),ud.raw+=md}ud.items[ud.items.length-1].raw=ud.items[ud.items.length-1].raw.trimEnd(),ud.items[ud.items.length-1].text=ud.items[ud.items.length-1].text.trimEnd(),ud.raw=ud.raw.trimEnd();for(let fd=0;fd<ud.items.length;fd++)if(this.lexer.state.top=!1,ud.items[fd].tokens=this.lexer.blockTokens(ud.items[fd].text,[]),!ud.loose){const md=ud.items[fd].tokens.filter(Ad=>Ad.type==="space"),vd=md.length>0&&md.some(Ad=>/\n.*\n/.test(Ad.raw));ud.loose=vd}if(ud.loose)for(let fd=0;fd<ud.items.length;fd++)ud.items[fd].loose=!0;return ud}}html(qa){const nd=this.rules.block.html.exec(qa);if(nd)return{type:"html",block:!0,raw:nd[0],pre:nd[1]==="pre"||nd[1]==="script"||nd[1]==="style",text:nd[0]}}def(qa){const nd=this.rules.block.def.exec(qa);if(nd){const od=nd[1].toLowerCase().replace(/\s+/g," "),ld=nd[2]?nd[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",ud=nd[3]?nd[3].substring(1,nd[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):nd[3];return{type:"def",tag:od,raw:nd[0],href:ld,title:ud}}}table(qa){const nd=this.rules.block.table.exec(qa);if(!nd||!/[:|]/.test(nd[2]))return;const od=splitCells(nd[1]),ld=nd[2].replace(/^\||\| *$/g,"").split("|"),ud=nd[3]&&nd[3].trim()?nd[3].replace(/\n[ \t]*$/,"").split(`
`):[],dd={type:"table",raw:nd[0],header:[],align:[],rows:[]};if(od.length===ld.length){for(const pd of ld)/^ *-+: *$/.test(pd)?dd.align.push("right"):/^ *:-+: *$/.test(pd)?dd.align.push("center"):/^ *:-+ *$/.test(pd)?dd.align.push("left"):dd.align.push(null);for(let pd=0;pd<od.length;pd++)dd.header.push({text:od[pd],tokens:this.lexer.inline(od[pd]),header:!0,align:dd.align[pd]});for(const pd of ud)dd.rows.push(splitCells(pd,dd.header.length).map((fd,md)=>({text:fd,tokens:this.lexer.inline(fd),header:!1,align:dd.align[md]})));return dd}}lheading(qa){const nd=this.rules.block.lheading.exec(qa);if(nd)return{type:"heading",raw:nd[0],depth:nd[2].charAt(0)==="="?1:2,text:nd[1],tokens:this.lexer.inline(nd[1])}}paragraph(qa){const nd=this.rules.block.paragraph.exec(qa);if(nd){const od=nd[1].charAt(nd[1].length-1)===`
`?nd[1].slice(0,-1):nd[1];return{type:"paragraph",raw:nd[0],text:od,tokens:this.lexer.inline(od)}}}text(qa){const nd=this.rules.block.text.exec(qa);if(nd)return{type:"text",raw:nd[0],text:nd[0],tokens:this.lexer.inline(nd[0])}}escape(qa){const nd=this.rules.inline.escape.exec(qa);if(nd)return{type:"escape",raw:nd[0],text:escape$1(nd[1])}}tag(qa){const nd=this.rules.inline.tag.exec(qa);if(nd)return!this.lexer.state.inLink&&/^<a /i.test(nd[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(nd[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(nd[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(nd[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:nd[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:nd[0]}}link(qa){const nd=this.rules.inline.link.exec(qa);if(nd){const od=nd[2].trim();if(!this.options.pedantic&&/^</.test(od)){if(!/>$/.test(od))return;const dd=rtrim(od.slice(0,-1),"\\");if((od.length-dd.length)%2===0)return}else{const dd=findClosingBracket(nd[2],"()");if(dd>-1){const fd=(nd[0].indexOf("!")===0?5:4)+nd[1].length+dd;nd[2]=nd[2].substring(0,dd),nd[0]=nd[0].substring(0,fd).trim(),nd[3]=""}}let ld=nd[2],ud="";if(this.options.pedantic){const dd=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ld);dd&&(ld=dd[1],ud=dd[3])}else ud=nd[3]?nd[3].slice(1,-1):"";return ld=ld.trim(),/^</.test(ld)&&(this.options.pedantic&&!/>$/.test(od)?ld=ld.slice(1):ld=ld.slice(1,-1)),outputLink(nd,{href:ld&&ld.replace(this.rules.inline.anyPunctuation,"$1"),title:ud&&ud.replace(this.rules.inline.anyPunctuation,"$1")},nd[0],this.lexer)}}reflink(qa,nd){let od;if((od=this.rules.inline.reflink.exec(qa))||(od=this.rules.inline.nolink.exec(qa))){const ld=(od[2]||od[1]).replace(/\s+/g," "),ud=nd[ld.toLowerCase()];if(!ud){const dd=od[0].charAt(0);return{type:"text",raw:dd,text:dd}}return outputLink(od,ud,od[0],this.lexer)}}emStrong(qa,nd,od=""){let ld=this.rules.inline.emStrongLDelim.exec(qa);if(!ld||ld[3]&&od.match(/[\p{L}\p{N}]/u))return;if(!(ld[1]||ld[2]||"")||!od||this.rules.inline.punctuation.exec(od)){const dd=[...ld[0]].length-1;let pd,fd,md=dd,vd=0;const Ad=ld[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(Ad.lastIndex=0,nd=nd.slice(-1*qa.length+dd);(ld=Ad.exec(nd))!=null;){if(pd=ld[1]||ld[2]||ld[3]||ld[4]||ld[5]||ld[6],!pd)continue;if(fd=[...pd].length,ld[3]||ld[4]){md+=fd;continue}else if((ld[5]||ld[6])&&dd%3&&!((dd+fd)%3)){vd+=fd;continue}if(md-=fd,md>0)continue;fd=Math.min(fd,fd+md+vd);const Nd=[...ld[0]][0].length,Id=qa.slice(0,dd+ld.index+Nd+fd);if(Math.min(dd,fd)%2){const Md=Id.slice(1,-1);return{type:"em",raw:Id,text:Md,tokens:this.lexer.inlineTokens(Md)}}const Od=Id.slice(2,-2);return{type:"strong",raw:Id,text:Od,tokens:this.lexer.inlineTokens(Od)}}}}codespan(qa){const nd=this.rules.inline.code.exec(qa);if(nd){let od=nd[2].replace(/\n/g," ");const ld=/[^ ]/.test(od),ud=/^ /.test(od)&&/ $/.test(od);return ld&&ud&&(od=od.substring(1,od.length-1)),od=escape$1(od,!0),{type:"codespan",raw:nd[0],text:od}}}br(qa){const nd=this.rules.inline.br.exec(qa);if(nd)return{type:"br",raw:nd[0]}}del(qa){const nd=this.rules.inline.del.exec(qa);if(nd)return{type:"del",raw:nd[0],text:nd[2],tokens:this.lexer.inlineTokens(nd[2])}}autolink(qa){const nd=this.rules.inline.autolink.exec(qa);if(nd){let od,ld;return nd[2]==="@"?(od=escape$1(nd[1]),ld="mailto:"+od):(od=escape$1(nd[1]),ld=od),{type:"link",raw:nd[0],text:od,href:ld,tokens:[{type:"text",raw:od,text:od}]}}}url(qa){var od;let nd;if(nd=this.rules.inline.url.exec(qa)){let ld,ud;if(nd[2]==="@")ld=escape$1(nd[0]),ud="mailto:"+ld;else{let dd;do dd=nd[0],nd[0]=((od=this.rules.inline._backpedal.exec(nd[0]))==null?void 0:od[0])??"";while(dd!==nd[0]);ld=escape$1(nd[0]),nd[1]==="www."?ud="http://"+nd[0]:ud=nd[0]}return{type:"link",raw:nd[0],text:ld,href:ud,tokens:[{type:"text",raw:ld,text:ld}]}}}inlineText(qa){const nd=this.rules.inline.text.exec(qa);if(nd){let od;return this.lexer.state.inRawBlock?od=nd[0]:od=esca
]`).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$1=/^( {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$1,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$1).replace("{2,}","*").getRegex(),text:edit(inlineGfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},block={normal:blockNormal,gfm:blockGfm,pedantic:blockPedantic},inline={normal:inlineNormal,gfm:inlineGfm,breaks:inlineBreaks,pedantic:inlinePedantic};class _Lexer{constructor(qa){
`),this.blockTokens(qa,this.tokens);for(let nd=0;nd<this.inlineQueue.length;nd++){const od=this.inlineQueue[nd];this.inlineTokens(od.src,od.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,nd=[],od=!1){this.options.pedantic?qa=qa.replace(/\t/g," ").replace(/^ +$/gm,""):qa=qa.replace(/^( *)(\t+)/gm,(pd,fd,md)=>fd+" ".repeat(md.length));let ld,ud,dd;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(pd=>(ld=pd.call({lexer:this},qa,nd))?(qa=qa.substring(ld.raw.length),nd.push(ld),!0):!1))){if(ld=this.tokenizer.space(qa)){qa=qa.substring(ld.raw.length),ld.raw.length===1&&nd.length>0?nd[nd.length-1].raw+=`
`:nd.push(ld);continue}if(ld=this.tokenizer.code(qa)){qa=qa.substring(ld.raw.length),ud=nd[nd.length-1],ud&&(ud.type==="paragraph"||ud.type==="text")?(ud.raw+=`
`+ld.raw,ud.text+=`
`+ld.text,this.inlineQueue[this.inlineQueue.length-1].src=ud.text):nd.push(ld);continue}if(ld=this.tokenizer.fences(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.heading(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.hr(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.blockquote(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.list(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.html(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.def(qa)){qa=qa.substring(ld.raw.length),ud=nd[nd.length-1],ud&&(ud.type==="paragraph"||ud.type==="text")?(ud.raw+=`
`+ld.raw,ud.text+=`
`+ld.raw,this.inlineQueue[this.inlineQueue.length-1].src=ud.text):this.tokens.links[ld.tag]||(this.tokens.links[ld.tag]={href:ld.href,title:ld.title});continue}if(ld=this.tokenizer.table(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(ld=this.tokenizer.lheading(qa)){qa=qa.substring(ld.raw.length),nd.push(ld);continue}if(dd=qa,this.options.extensions&&this.options.extensions.startBlock){let pd=1/0;const fd=qa.slice(1);let md;this.options.extensions.startBlock.forEach(vd=>{md=vd.call({lexer:this},fd),typeof md=="number"&&md>=0&&(pd=Math.min(pd,md))}),pd<1/0&&pd>=0&&(dd=qa.substring(0,pd+1))}if(this.state.top&&(ld=this.tokenizer.paragraph(dd))){ud=nd[nd.length-1],od&&(ud==null?void 0:ud.type)==="paragraph"?(ud.raw+=`
`+ld.raw,ud.text+=`
`+ld.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ud.text):nd.push(ld),od=dd.length!==qa.length,qa=qa.substring(ld.raw.length);continue}if(ld=this.tokenizer.text(qa)){qa=qa.substring(ld.raw.length),ud=nd[nd.length-1],ud&&ud.type==="text"?(ud.raw+=`
`+ld.raw,ud.text+=`
`+ld.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=ud.text):nd.push(ld);continue}if(qa){const pd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(pd);break}else throw new Error(pd)}}return this.state.top=!0,nd}inline(qa,nd=[]){return this.inlineQueue.push({src:qa,tokens:nd}),nd}inlineTokens(qa,nd=[]){let od,ld,ud,dd=qa,pd,fd,md;if(this.tokens.links){const vd=Object.keys(this.tokens.links);if(vd.length>0)for(;(pd=this.tokenizer.rules.inline.reflinkSearch.exec(dd))!=null;)vd.includes(pd[0].slice(pd[0].lastIndexOf("[")+1,-1))&&(dd=dd.slice(0,pd.index)+"["+"a".repeat(pd[0].length-2)+"]"+dd.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(pd=this.tokenizer.rules.inline.blockSkip.exec(dd))!=null;)dd=dd.slice(0,pd.index)+"["+"a".repeat(pd[0].length-2)+"]"+dd.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(pd=this.tokenizer.rules.inline.anyPunctuation.exec(dd))!=null;)dd=dd.slice(0,pd.index)+"++"+dd.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(fd||(md=""),fd=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(vd=>(od=vd.call({lexer:this},qa,nd))?(qa=qa.substring(od.raw.length),nd.push(od),!0):!1))){if(od=this.tokenizer.escape(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.tag(qa)){qa=qa.substring(od.raw.length),ld=nd[nd.length-1],ld&&od.type==="text"&&ld.type==="text"?(ld.raw+=od.raw,ld.text+=od.text):nd.push(od);continue}if(od=this.tokenizer.link(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(od.raw.length),ld=nd[nd.length-1],ld&&od.type==="text"&&ld.type==="text"?(ld.raw+=od.raw,ld.text+=od.text):nd.push(od);continue}if(od=this.tokenizer.emStrong(qa,dd,md)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.codespan(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.br(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.del(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(od=this.tokenizer.autolink(qa)){qa=qa.substring(od.raw.length),nd.push(od);continue}if(!this.state.inLink&&(od=this.tokenizer.url(qa))){qa=qa.substring(od.raw.length),nd.push(od);continue}if(ud=qa,this.options.extensions&&this.options.extensions.startInline){let vd=1/0;const Ad=qa.slice(1);let Nd;this.options.extensions.startInline.forEach(Id=>{Nd=Id.call({lexer:this},Ad),typeof Nd=="number"&&Nd>=0&&(vd=Math.min(vd,Nd))}),vd<1/0&&vd>=0&&(ud=qa.substring(0,vd+1))}if(od=this.tokenizer.inlineText(ud)){qa=qa.substring(od.raw.length),od.raw.slice(-1)!=="_"&&(md=od.raw.slice(-1)),fd=!0,ld=nd[nd.length-1],ld&&ld.type==="text"?(ld.raw+=od.raw,ld.text+=od.text):nd.push(od);continue}if(qa){const vd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(vd);break}else throw new Error(vd)}}return nd}}class _Renderer{constructor(qa){wg(this,"options");wg(this,"parser");this.options=qa||_defaults}space(qa){return""}code({text:qa,lang:nd,escaped:od}){var dd;const ld=(dd=(nd||"").match(/^\S*/))==null?void 0:dd[0],ud=qa.replace(/\n$/,"")+`
`;return ld?'<pre><code class="language-'+escape$1(ld)+'">'+(od?ud:escape$1(ud,!0))+`</code></pre>
`:"<pre><code>"+(od?ud:escape$1(ud,!0))+`</code></pre>
`}blockquote({tokens:qa}){return`<blockquote>
${this.parser.parse(qa)}</blockquote>
`}html({text:qa}){return qa}heading({tokens:qa,depth:nd}){return`<h${nd}>${this.parser.parseInline(qa)}</h${nd}>
`}hr(qa){return`<hr>
`}list(qa){const nd=qa.ordered,od=qa.start;let ld="";for(let pd=0;pd<qa.items.length;pd++){const fd=qa.items[pd];ld+=this.listitem(fd)}const ud=nd?"ol":"ul",dd=nd&&od!==1?' start="'+od+'"':"";return"<"+ud+dd+`>
`+ld+"</"+ud+`>
`}listitem(qa){let nd="";if(qa.task){const od=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=od+" "+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=od+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:od+" ",text:od+" "}):nd+=od+" "}return nd+=this.parser.parse(qa.tokens,!!qa.loose),`<li>${nd}</li>
`}checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return`<p>${this.parser.parseInline(qa)}</p>
`}table(qa){let nd="",od="";for(let ud=0;ud<qa.header.length;ud++)od+=this.tablecell(qa.header[ud]);nd+=this.tablerow({text:od});let ld="";for(let ud=0;ud<qa.rows.length;ud++){const dd=qa.rows[ud];od="";for(let pd=0;pd<dd.length;pd++)od+=this.tablecell(dd[pd]);ld+=this.tablerow({text:od})}return ld&&(ld=`<tbody>${ld}</tbody>`),`<table>
<thead>
`+nd+`</thead>
`+ld+`</table>
`}tablerow({text:qa}){return`<tr>
${qa}</tr>
`}tablecell(qa){const nd=this.parser.parseInline(qa.tokens),od=qa.header?"th":"td";return(qa.align?`<${od} align="${qa.align}">`:`<${od}>`)+nd+`</${od}>
`}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:nd,tokens:od}){const ld=this.parser.parseInline(od),ud=cleanUrl(qa);if(ud===null)return ld;qa=ud;let dd='<a href="'+qa+'"';return nd&&(dd+=' title="'+nd+'"'),dd+=">"+ld+"</a>",dd}image({href:qa,title:nd,text:od}){const ld=cleanUrl(qa);if(ld===null)return od;qa=ld;let ud=`<img src="${qa}" alt="${od}"`;return nd&&(ud+=` title="${nd}"`),ud+=">",ud}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){wg(this,"options");wg(this,"renderer");wg(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,nd){return new _Parser(nd).parse(qa)}static parseInline(qa,nd){return new _Parser(nd).parseInline(qa)}parse(qa,nd=!0){let od="";for(let ld=0;ld<qa.length;ld++){const ud=qa[ld];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ud.type]){const pd=ud,fd=this.options.extensions.renderers[pd.type].call({parser:this},pd);if(fd!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(pd.type)){od+=fd||"";continue}}const dd=ud;switch(dd.type){case"space":{od+=this.renderer.space(dd);continue}case"hr":{od+=this.renderer.hr(dd);continue}case"heading":{od+=this.renderer.heading(dd);continue}case"code":{od+=this.renderer.code(dd);continue}case"table":{od+=this.renderer.table(dd);continue}case"blockquote":{od+=this.renderer.blockquote(dd);continue}case"list":{od+=this.renderer.list(dd);continue}case"html":{od+=this.renderer.html(dd);continue}case"paragraph":{od+=this.renderer.paragraph(dd);continue}case"text":{let pd=dd,fd=this.renderer.text(pd);for(;ld+1<qa.length&&qa[ld+1].type==="text";)pd=qa[++ld],fd+=`
`+this.renderer.text(pd);nd?od+=this.renderer.paragraph({type:"paragraph",raw:fd,text:fd,tokens:[{type:"text",raw:fd,text:fd}]}):od+=fd;continue}default:{const pd='Token with "'+dd.type+'" type was not found.';if(this.options.silent)return console.error(pd),"";throw new Error(pd)}}}return od}parseInline(qa,nd){nd=nd||this.renderer;let od="";for(let ld=0;ld<qa.length;ld++){const ud=qa[ld];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ud.type]){const pd=this.options.extensions.renderers[ud.type].call({parser:this},ud);if(pd!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(ud.type)){od+=pd||"";continue}}const dd=ud;switch(dd.type){case"escape":{od+=nd.text(dd);break}case"html":{od+=nd.html(dd);break}case"link":{od+=nd.link(dd);break}case"image":{od+=nd.image(dd);break}case"strong":{od+=nd.strong(dd);break}case"em":{od+=nd.em(dd);break}case"codespan":{od+=nd.codespan(dd);break}case"br":{od+=nd.br(dd);break}case"del":{od+=nd.del(dd);break}case"text":{od+=nd.text(dd);break}default:{const pd='Token with "'+dd.type+'" type was not found.';if(this.options.silent)return console.error(pd),"";throw new Error(pd)}}}return od}}class _Hooks{constructor(qa){wg(this,"options");this.options=qa||_defaults}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}}wg(_Hooks,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var lv,cC,x1,uC;class Marked{constructor(...qa){nC(this,lv);wg(this,"defaults",_getDefaults());wg(this,"options",this.setOptions);wg(this,"parse",xT(this,lv,x1).call(this,_Lexer.lex,_Parser.parse));wg(this,"parseInline",xT(this,lv,x1).call(this,_Lexer.lexInline,_Parser.parseInline));wg(this,"Parser",_Parser);wg(this,"Renderer",_Renderer);wg(this,"TextRenderer",_TextRenderer);wg(this,"Lexer",_Lexer);wg(this,"Tokenizer",_Tokenizer);wg(this,"Hooks",_Hooks);this.use(...qa)}walkTokens(qa,nd){var ld,ud;let od=[];for(const dd of qa)switch(od=od.concat(nd.call(this,dd)),dd.type){case"table":{const pd=dd;for(const fd of pd.header)od=od.concat(this.walkTokens(fd.tokens,nd));for(const fd of pd.rows)for(const md of fd)od=od.concat(this.walkTokens(md.tokens,nd));break}case"list":{const pd=dd;od=od.concat(this.walkTokens(pd.items,nd));break}default:{const pd=dd;(ud=(ld=this.defaults.extensions)==null?void 0:ld.childTokens)!=null&&ud[pd.type]?this.defaults.extensions.childTokens[pd.type].forEach(fd=>{const md=pd[fd].flat(1/0);od=od.concat(this.walkTokens(md,nd))}):pd.tokens&&(od=od.concat(this.walkTokens(pd.tokens,nd)))}}return od}use(...qa){const nd=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(od=>{const ld={...od};if(ld.async=this.defaults.async||ld.async||!1,od.extensions&&(od.extensions.forEach(ud=>{if(!ud.name)throw new Error("extension name required");if("renderer"in ud){const dd=nd.renderers[ud.name];dd?nd.renderers[ud.name]=function(...pd){let fd=ud.renderer.apply(this,pd);return fd===!1&&(fd=dd.apply(this,pd)),fd}:nd.renderers[ud.name]=ud.renderer}if("tokenizer"in ud){if(!ud.level||ud.level!=="block"&&ud.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const dd=nd[ud.level];dd?dd.unshift(ud.tokenizer):nd[ud.level]=[ud.tokenizer],ud.start&&(ud.level==="block"?nd.startBlock?nd.startBlock.push(ud.start):nd.startBlock=[ud.start]:ud.level==="inline"&&(nd.startInline?nd.startInline.push(ud.start):nd.startInline=[ud.start]))}"childTokens"in ud&&ud.childTokens&&(nd.childTokens[ud.name]=ud.childTokens)}),ld.extensions=nd),od.renderer){const ud=this.defaults.renderer||new _Renderer(this.defaults);for(const dd in od.renderer){if(!(dd in ud))throw new Error(`renderer '${dd}' does not exist`);if(["options","parser"].includes(dd))continue;const pd=dd;let fd=od.renderer[pd];od.useNewRenderer||(fd=xT(this,lv,cC).call(this,fd,pd,ud));const md=ud[pd];ud[pd]=(...vd)=>{let Ad=fd.apply(ud,vd);return Ad===!1&&(Ad=md.apply(ud,vd)),Ad||""}}ld.renderer=ud}if(od.tokenizer){const ud=this.defaults.tokenizer||new _Tokenizer(this.defaults);for(const dd in
Please report this to https://github.com/markedjs/marked.`,qa){const ld="<p>An error occurred:</p><pre>"+escape$1(od.message+"",!0)+"</pre>";return nd?Promise.resolve(ld):ld}if(nd)return Promise.reject(od);throw od}};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=[],nd=1;nd<arguments.length;nd++)qa[nd-1]=arguments[nd];var od=Array.from(typeof Ra=="string"?[Ra]:Ra);od[od.length-1]=od[od.length-1].replace(/\r?\n([\t ]*)$/,"");var ld=od.reduce(function(pd,fd){var md=fd.match(/\n([\t ]+|(?!\s).)/g);return md?pd.concat(md.map(function(vd){var Ad,Nd;return(Nd=(Ad=vd.match(/[\t ]/g))===null||Ad===void 0?void 0:Ad.length)!==null&&Nd!==void 0?Nd:0})):pd},[]);if(ld.length){var ud=new RegExp(`
[ ]{`+Math.min.apply(Math,ld)+"}","g");od=od.map(function(pd){return pd.replace(ud,`
`)})}od[0]=od[0].replace(/^\r?\n/,"");var dd=od[0];return qa.forEach(function(pd,fd){var md=dd.match(/(?:^|\n)( *)$/),vd=md?md[1]:"",Ad=pd;typeof pd=="string"&&pd.includes(`
`)&&(Ad=String(pd).split(`
`).map(function(Nd,Id){return Id===0?Nd:""+vd+Nd}).join(`
`)),dd+=Ad+od[fd+1]}),dd}function preprocessMarkdown(Ra,{markdownAutoWrap:qa}){const od=Ra.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`),ld=dedent(od);return qa===!1?ld.replace(/ /g,"&nbsp;"):ld}__name(preprocessMarkdown,"preprocessMarkdown");function markdownToLines(Ra,qa={}){const nd=preprocessMarkdown(Ra,qa),od=marked.lexer(nd),ld=[[]];let ud=0;function dd(pd,fd="normal"){pd.type==="text"?pd.text.split(`
`).forEach((vd,Ad)=>{Ad!==0&&(ud++,ld.push([])),vd.split(" ").forEach(Nd=>{Nd=Nd.replace(/&#39;/g,"'"),Nd&&ld[ud].push({content:Nd,type:fd})})}):pd.type==="strong"||pd.type==="em"?pd.tokens.forEach(md=>{dd(md,pd.type)}):pd.type==="html"&&ld[ud].push({content:pd.text,type:"normal"})}return __name(dd,"processNode"),od.forEach(pd=>{var fd;pd.type==="paragraph"?(fd=pd.tokens)==null||fd.forEach(md=>{dd(md)}):pd.type==="html"&&ld[ud].push({content:pd.text,type:"normal"})}),ld}__name(markdownToLines,"markdownToLines");function markdownToHTML(Ra,{markdownAutoWrap:qa}={}){const nd=marked.lexer(Ra);function od(ld){var ud,dd,pd;return ld.type==="text"?qa===!1?ld.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):ld.text.replace(/\n */g,"<br/>"):ld.type==="strong"?`<strong>${(ud=ld.tokens)==null?void 0:ud.map(od).join("")}</strong>`:ld.type==="em"?`<em>${(dd=ld.tokens)==null?void 0:dd.map(od).join("")}</em>`:ld.type==="paragraph"?`<p>${(pd=ld.tokens)==null?void 0:pd.map(od).join("")}</p>`:ld.type==="space"?"":ld.type==="html"?`${ld.text}`:ld.type==="escape"?ld.text:`Unsupported markdown: ${ld.type}`}return __name(od,"output"),nd.map(od).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 nd=splitTextToChars(qa.content);return splitWordToFitWidthRecursion(Ra,[],nd,qa.type)}__name(splitWordToFitWidth,"splitWordToFitWidth");function splitWordToFitWidthRecursion(Ra,qa,nd,od){if(nd.length===0)return[{content:qa.join(""),type:od},{content:"",type:od}];const[ld,...ud]=nd,dd=[...qa,ld];return Ra([{content:dd.join(""),type:od}])?splitWordToFitWidthRecursion(Ra,dd,ud,od):(qa.length===0&&ld&&(qa.push(ld),nd.shift()),[{content:qa.join(""),type:od},{content:nd.join(""),type:od}])}__name(splitWordToFitWidthRecursion,"splitWordToFitWidthRecursion");function splitLineToFitWidth(Ra,qa){if(Ra.some(({content:nd})=>nd.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return splitLineToFitWidthRecursion(Ra,qa)}__name(splitLineToFitWidth,"splitLineToFitWidth");function splitLineToFitWidthRecursion(Ra,qa,nd=[],od=[]){if(Ra.length===0)return od.length>0&&nd.push(od),nd.length>0?nd:[];let ld="";Ra[0].content===" "&&(ld=" ",Ra.shift());const ud=Ra.shift()??{content:" ",type:"normal"},dd=[...od];if(ld!==""&&dd.push({content:ld,type:"normal"}),dd.push(ud),qa(dd))return splitLineToFitWidthRecursion(Ra,qa,nd,dd);if(od.length>0)nd.push(od),Ra.unshift(ud);else if(ud.content){const[pd,fd]=splitWordToFitWidth(qa,ud);nd.push([pd]),fd.content&&Ra.unshift(fd)}return splitLineToFitWidthRecursion(Ra,qa,nd)}__name(splitLineToFitWidthRecursion,"splitLineToFitWidthRecursion");function applyStyle$1(Ra,qa){qa&&Ra.attr("style",qa)}__name(applyStyle$1,"applyStyle");async function addHtmlSpan(Ra,qa,nd,od,ld=!1){const ud=Ra.append("foreignObject");ud.attr("width",`${10*nd}px`),ud.attr("height",`${10*nd}px`);const dd=ud.append("xhtml:div");let pd=qa.label;qa.label&&hasKatex(qa.label)&&(pd=await renderKatex(qa.label.replace(common_default.lineBreakRegex,`
`),getConfig2()));const fd=qa.isNode?"nodeLabel":"edgeLabel",md=dd.append("span");md.html(pd),applyStyle$1(md,qa.labelStyle),md.attr("class",`${fd} ${od}`),applyStyle$1(dd,qa.labelStyle),dd.style("display","table-cell"),dd.style("white-space","nowrap"),dd.style("line-height","1.5"),dd.style("max-width",nd+"px"),dd.style("text-align","center"),dd.attr("xmlns","http://www.w3.org/1999/xhtml"),ld&&dd.attr("class","labelBkg");let vd=dd.node().getBoundingClientRect();return vd.width===nd&&(dd.style("display","table"),dd.style("white-space","break-spaces"),dd.style("width",nd+"px"),vd=dd.node().getBoundingClientRect()),ud.node()}__name(addHtmlSpan,"addHtmlSpan");function createTspan(Ra,qa,nd){return Ra.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",qa*nd-.1+"em").attr("dy",nd+"em")}__name(createTspan,"createTspan");function computeWidthOfText(Ra,qa,nd){const od=Ra.append("text"),ld=createTspan(od,1,qa);updateTextContentAndStyles(ld,nd);const ud=ld.node().getComputedTextLength();return od.remove(),ud}__name(computeWidthOfText,"computeWidthOfText");function computeDimensionOfText(Ra,qa,nd){var dd;const od=Ra.append("text"),ld=createTspan(od,1,qa);updateTextContentAndStyles(ld,[{content:nd,type:"normal"}]);const ud=(dd=ld.node())==null?void 0:dd.getBoundingClientRect();return ud&&od.remove(),ud}__name(computeDimensionOfText,"computeDimensionOfText");function createFormattedText(Ra,qa,nd,od=!1){const ud=qa.append("g"),dd=ud.insert("rect").attr("class","background").attr("style","stroke: none"),pd=ud.append("text").attr("y","-10.1");let fd=0;for(const md of nd){const vd=__name(Nd=>computeWidthOfText(ud,1.1,Nd)<=Ra,"checkWidth"),Ad=vd(md)?[md]:splitLineToFitWidth(md,vd);for(const Nd of Ad){const Id=createTspan(pd,fd,1.1);updateTextContentAndStyles(Id,Nd),fd++}}if(od){const md=pd.node().getBBox(),vd=2;return dd.attr("x",md.x-vd).attr("y",md.y-vd).attr("width",md.width+2*vd).attr("height",md.height+2*vd),ud.node()}else return pd.node()}__name(createFormattedText,"createFormattedText");function updateTextContentAndStyles(Ra,qa){Ra.text(""),qa.forEach((nd,od)=>{const ld=Ra.append("tspan").attr("font-style",nd.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",nd.type==="strong"?"bold":"normal");od===0?ld.text(nd.content):ld.text(" "+nd.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:nd="",isTitle:od=!1,classes:ld="",useHtmlLabels:ud=!0,isNode:dd=!0,width:pd=200,addSvgBackground:fd=!1}={},md)=>{if(log$1.debug("XYZ createText",qa,nd,od,ld,ud,dd,"addSvgBackground: ",fd),ud){const vd=markdownToHTML(qa,md),Ad=replaceIconSubstring(decodeEntities(vd)),Nd=qa.replace(/\\\\/g,"\\"),Id={isNode:dd,label:hasKatex(qa)?Nd:Ad,labelStyle:nd.replace("fill:","color:")};return await addHtmlSpan(Ra,Id,pd,ld,fd)}else{const vd=qa.replace(/<br\s*\/?>/g,"<br/>"),Ad=markdownToLines(vd.replace("<br>","<br/>"),md),Nd=createFormattedText(pd,Ra,Ad,qa?fd:!1);if(dd){/stroke:/.exec(nd)&&(nd=nd.replace("stroke:","lineColor:"));const Id=nd.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");select(Nd).attr("style",Id)}else{const Id=nd.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");select(Nd).select("rect").attr("style",Id.replace(/background:/g,"fill:"));const Od=nd.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");select(Nd).select("text").attr("style",Od)}return Nd}},"createText");function t$1(Ra,qa,nd){if(Ra&&Ra.length){const[od,ld]=qa,ud=Math.PI/180*nd,dd=Math.cos(ud),pd=Math.sin(ud);for(const fd of Ra){const[md,vd]=fd;fd[0]=(md-od)*dd-(vd-ld)*pd+od,fd[1]=(md-od)*pd+(vd-ld)*dd+ld}}}function e$1(Ra,qa){return Ra[0]===qa[0]&&Ra[1]===qa[1]}function s$1(Ra,qa,nd
`),getConfig2()));const ld=Ra.isNode?"nodeLabel":"edgeLabel";return nd.html('<span class="'+ld+'" '+(Ra.labelStyle?'style="'+Ra.labelStyle+'"':"")+">"+od+"</span>"),applyStyle(nd,Ra.labelStyle),nd.style("display","inline-block"),nd.style("padding-right","1px"),nd.style("white-space","nowrap"),nd.attr("xmlns","http://www.w3.org/1999/xhtml"),qa.node()}__name(addHtmlLabel,"addHtmlLabel");var createLabel=__name(async(Ra,qa,nd,od)=>{let ld=Ra||"";if(typeof ld=="object"&&(ld=ld[0]),evaluate(getConfig2().flowchart.htmlLabels)){ld=ld.replace(/\\n|\n/g,"<br />"),log$1.info("vertexText"+ld);const ud={isNode:od,label:decodeEntities(ld).replace(/fa[blrs]?:fa-[\w-]+/g,pd=>`<i class='${pd.replace(":"," ")}'></i>`),labelStyle:qa&&qa.replace("fill:","color:")};return await addHtmlLabel(ud)}else{const ud=document.createElementNS("http://www.w3.org/2000/svg","text");ud.setAttribute("style",qa.replace("color:","fill:"));let dd=[];typeof ld=="string"?dd=ld.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(ld)?dd=ld:dd=[];for(const pd of dd){const fd=document.createElementNS("http://www.w3.org/2000/svg","tspan");fd.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),fd.setAttribute("dy","1em"),fd.setAttribute("x","0"),nd?fd.setAttribute("class","title-row"):fd.setAttribute("class","row"),fd.textContent=pd.trim(),ud.appendChild(fd)}return ud}},"createLabel"),createLabel_default=createLabel,createRoundedRectPathD=__name((Ra,qa,nd,od,ld)=>["M",Ra+ld,qa,"H",Ra+nd-ld,"A",ld,ld,0,0,1,Ra+nd,qa+ld,"V",qa+od-ld,"A",ld,ld,0,0,1,Ra+nd-ld,qa+od,"H",Ra+ld,"A",ld,ld,0,0,1,Ra,qa+od-ld,"V",qa+ld,"A",ld,ld,0,0,1,Ra+ld,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(nd=>{const[od,ld]=nd.split(":");qa.set(od.trim(),ld==null?void 0:ld.trim())}),qa},"styles2Map"),styles2String=__name(Ra=>{const{stylesArray:qa}=compileStyles(Ra),nd=[],od=[],ld=[],ud=[];return qa.forEach(dd=>{const pd=dd[0];pd==="color"||pd==="font-size"||pd==="font-family"||pd==="font-weight"||pd==="font-style"||pd==="text-decoration"||pd==="text-align"||pd==="text-transform"||pd==="line-height"||pd==="letter-spacing"||pd==="word-spacing"||pd==="text-shadow"||pd==="text-overflow"||pd==="white-space"||pd==="word-wrap"||pd==="word-break"||pd==="overflow-wrap"||pd==="hyphens"?nd.push(dd.join(":")+" !important"):(od.push(dd.join(":")+" !important"),pd.includes("stroke")&&ld.push(dd.join(":")+" !important"),pd==="fill"&&ud.push(dd.join(":")+" !important"))}),{labelStyles:nd.join(";"),nodeStyles:od.join(";"),stylesArray:qa,borderStyles:ld,backgroundStyles:ud}},"styles2String"),userNodeOverrides=__name((Ra,qa)=>{var fd;const{themeVariables:nd,handDrawnSeed:od}=getConfig2(),{nodeBorder:ld,mainBkg:ud}=nd,{stylesMap:dd}=compileStyles(Ra);return Object.assign({roughness:.7,fill:dd.get("fill")||ud,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:dd.get("stroke")||ld,seed:od,strokeWidth:((fd=dd.get("stroke-width"))==null?void 0:fd.replace("px",""))||1.3,fillLineDash:[0,0]},qa)},"userNodeOverrides"),rect=__name(async(Ra,qa)=>{log$1.info("Creating subgraph rect for ",qa.id,qa);const nd=getConfig2(),{themeVariables:od,handDrawnSeed:ld}=nd,{clusterBkg:ud,clusterBorder:dd}=od,{labelStyles:pd,nodeStyles:fd,borderStyles:md,backgroundStyles:vd}=styles2String(qa),Ad=Ra.insert("g").attr("class","cluster "+qa.cssClasses).attr("id",qa.id).attr("data-look",qa.look),Nd=evaluate(nd.flowchart.htmlLabels),Id=Ad.insert("g").attr("class","cluster-label "),Od=await createText(Id,qa.label,{style:qa.labelStyle,useHtmlLabels:Nd,isNode:!0});let Md=Od.getBBox();if(evaluate(nd.flowchart.htmlLabels)){const Xd=Od.children[0],gf=select(Od);Md=Xd.getBoundingClientRect(),gf.attr("width",Md.width),gf.attr("height",Md.height)}const Ud=qa.wi
M ${ld.x},${ld.y} L ${dd.x},${dd.y}`}__name(createLine,"createLine");function crossedCircle(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd,qa.label="";const ld=Ra.insert("g").attr("class",getNodeClasses(qa)).attr("id",qa.domId??qa.id),ud=Math.max(30,(qa==null?void 0:qa.width)??0),{cssStyles:dd}=qa,pd=at$3.svg(ld),fd=userNodeOverrides(qa,{});qa.look!=="handDrawn"&&(fd.roughness=0,fd.fillStyle="solid");const md=pd.circle(0,0,ud*2,fd),vd=createLine(ud),Ad=pd.path(vd,fd),Nd=ld.insert(()=>md,":first-child");return Nd.insert(()=>Ad),dd&&qa.look!=="handDrawn"&&Nd.selectAll("path").attr("style",dd),od&&qa.look!=="handDrawn"&&Nd.selectAll("path").attr("style",od),updateNodeBounds(qa,Nd),qa.intersect=function(Id){return log$1.info("crossedCircle intersect",qa,{radius:ud,point:Id}),intersect_default.circle(qa,ud,Id)},ld}__name(crossedCircle,"crossedCircle");function generateCirclePoints2(Ra,qa,nd,od=100,ld=0,ud=180){const dd=[],pd=ld*Math.PI/180,vd=(ud*Math.PI/180-pd)/(od-1);for(let Ad=0;Ad<od;Ad++){const Nd=pd+Ad*vd,Id=Ra+nd*Math.cos(Nd),Od=qa+nd*Math.sin(Nd);dd.push({x:-Id,y:-Od})}return dd}__name(generateCirclePoints2,"generateCirclePoints");async function curlyBraceLeft(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:dd}=await labelHelper(Ra,qa,getNodeClasses(qa)),pd=ud.width+(qa.padding??0),fd=ud.height+(qa.padding??0),md=Math.max(5,fd*.1),{cssStyles:vd}=qa,Ad=[...generateCirclePoints2(pd/2,-fd/2,md,30,-90,0),{x:-pd/2-md,y:md},...generateCirclePoints2(pd/2+md*2,-md,md,20,-180,-270),...generateCirclePoints2(pd/2+md*2,md,md,20,-90,-180),{x:-pd/2-md,y:-fd/2},...generateCirclePoints2(pd/2,fd/2,md,20,0,90)],Nd=[{x:pd/2,y:-fd/2-md},{x:-pd/2,y:-fd/2-md},...generateCirclePoints2(pd/2,-fd/2,md,20,-90,0),{x:-pd/2-md,y:-md},...generateCirclePoints2(pd/2+pd*.1,-md,md,20,-180,-270),...generateCirclePoints2(pd/2+pd*.1,md,md,20,-90,-180),{x:-pd/2-md,y:fd/2},...generateCirclePoints2(pd/2,fd/2,md,20,0,90),{x:-pd/2,y:fd/2+md},{x:pd/2,y:fd/2+md}],Id=at$3.svg(ld),Od=userNodeOverrides(qa,{fill:"none"});qa.look!=="handDrawn"&&(Od.roughness=0,Od.fillStyle="solid");const Ud=createPathFromPoints(Ad).replace("Z",""),jd=Id.path(Ud,Od),Ld=createPathFromPoints(Nd),Bd=Id.path(Ld,{...Od}),Gd=ld.insert("g",":first-child");return Gd.insert(()=>Bd,":first-child").attr("stroke-opacity",0),Gd.insert(()=>jd,":first-child"),Gd.attr("class","text"),vd&&qa.look!=="handDrawn"&&Gd.selectAll("path").attr("style",vd),od&&qa.look!=="handDrawn"&&Gd.selectAll("path").attr("style",od),Gd.attr("transform",`translate(${md}, 0)`),dd.attr("transform",`translate(${-pd/2+md-(ud.x-(ud.left??0))},${-fd/2+(qa.padding??0)/2-(ud.y-(ud.top??0))})`),updateNodeBounds(qa,Gd),qa.intersect=function(qd){return intersect_default.polygon(qa,Nd,qd)},ld}__name(curlyBraceLeft,"curlyBraceLeft");function generateCirclePoints3(Ra,qa,nd,od=100,ld=0,ud=180){const dd=[],pd=ld*Math.PI/180,vd=(ud*Math.PI/180-pd)/(od-1);for(let Ad=0;Ad<od;Ad++){const Nd=pd+Ad*vd,Id=Ra+nd*Math.cos(Nd),Od=qa+nd*Math.sin(Nd);dd.push({x:Id,y:Od})}return dd}__name(generateCirclePoints3,"generateCirclePoints");async function curlyBraceRight(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:dd}=await labelHelper(Ra,qa,getNodeClasses(qa)),pd=ud.width+(qa.padding??0),fd=ud.height+(qa.padding??0),md=Math.max(5,fd*.1),{cssStyles:vd}=qa,Ad=[...generateCirclePoints3(pd/2,-fd/2,md,20,-90,0),{x:pd/2+md,y:-md},...generateCirclePoints3(pd/2+md*2,-md,md,20,-180,-270),...generateCirclePoints3(pd/2+md*2,md,md,20,-90,-180),{x:pd/2+md,y:fd/2},...generateCirclePoints3(pd/2,fd/2,md,20,0,90)],Nd=[{x:-pd/2,y:-fd/2-md},{x:pd/2,y:-fd/2-md},...generateCirclePoints3(pd/2,-fd/2,md,20,-90,0),{x:pd/2+md,y:-md},...generateCirclePoints3(pd/2+md*2,-md,md,20,-180,-270),...generateCirclePoints3(pd/2+md*2,md,md,20,-90,-180),{x:pd/2+md,y:fd/2},...generateCirclePoints3(pd/2,fd/2,md,20,0,90),{x:pd/2,y:fd/2+md},{x:-pd/2,y:fd/2+md}],Id=at$3.svg(ld),Od=userNodeOverrides(qa,{fill:"none"});qa.look!
point:`,Nd,`
node:
`,qa,`
res:`,intersect_default.polygon(qa,md,Nd)),intersect_default.polygon(qa,md,Nd)},ld}__name(question,"question");async function rect_left_inv_arrow(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:dd}=await labelHelper(Ra,qa,getNodeClasses(qa)),pd=Math.max(ud.width+(qa.padding??0),(qa==null?void 0:qa.width)??0),fd=Math.max(ud.height+(qa.padding??0),(qa==null?void 0:qa.height)??0),md=-pd/2,vd=-fd/2,Ad=vd/2,Nd=[{x:md+Ad,y:vd},{x:md,y:0},{x:md+Ad,y:-vd},{x:-md,y:-vd},{x:-md,y:vd}],{cssStyles:Id}=qa,Od=at$3.svg(ld),Md=userNodeOverrides(qa,{});qa.look!=="handDrawn"&&(Md.roughness=0,Md.fillStyle="solid");const Ud=createPathFromPoints(Nd),jd=Od.path(Ud,Md),Ld=ld.insert(()=>jd,":first-child");return Ld.attr("class","basic label-container"),Id&&qa.look!=="handDrawn"&&Ld.selectAll("path").attr("style",Id),od&&qa.look!=="handDrawn"&&Ld.selectAll("path").attr("style",od),Ld.attr("transform",`translate(${-Ad/2},0)`),dd.attr("transform",`translate(${-Ad/2-ud.width/2-(ud.x-(ud.left??0))}, ${-(ud.height/2)-(ud.y-(ud.top??0))})`),updateNodeBounds(qa,Ld),qa.intersect=function(Bd){return intersect_default.polygon(qa,Nd,Bd)},ld}__name(rect_left_inv_arrow,"rect_left_inv_arrow");async function rectWithTitle(Ra,qa){var gf,Yd;const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;let ld;qa.cssClasses?ld="node "+qa.cssClasses:ld="node default";const ud=Ra.insert("g").attr("class",ld).attr("id",qa.domId||qa.id),dd=ud.insert("g"),pd=ud.insert("g").attr("class","label").attr("style",od),fd=qa.description,md=qa.label,vd=pd.node().appendChild(await createLabel_default(md,qa.labelStyle,!0,!0));let Ad={width:0,height:0};if(evaluate((Yd=(gf=getConfig2())==null?void 0:gf.flowchart)==null?void 0:Yd.htmlLabels)){const Zd=vd.children[0],df=select(vd);Ad=Zd.getBoundingClientRect(),df.attr("width",Ad.width),df.attr("height",Ad.height)}log$1.info("Text 2",fd);const Nd=fd||[],Id=vd.getBBox(),Od=pd.node().appendChild(await createLabel_default(Nd.join?Nd.join("<br/>"):Nd,qa.labelStyle,!0,!0)),Md=Od.children[0],Ud=select(Od);Ad=Md.getBoundingClientRect(),Ud.attr("width",Ad.width),Ud.attr("height",Ad.height);const jd=(qa.padding||0)/2;select(Od).attr("transform","translate( "+(Ad.width>Id.width?0:(Id.width-Ad.width)/2)+", "+(Id.height+jd+5)+")"),select(vd).attr("transform","translate( "+(Ad.width<Id.width?0:-(Id.width-Ad.width)/2)+", 0)"),Ad=pd.node().getBBox(),pd.attr("transform","translate("+-Ad.width/2+", "+(-Ad.height/2-jd+3)+")");const Ld=Ad.width+(qa.padding||0),Bd=Ad.height+(qa.padding||0),Gd=-Ad.width/2-jd,qd=-Ad.height/2-jd;let zd,Xd;if(qa.look==="handDrawn"){const Zd=at$3.svg(ud),df=userNodeOverrides(qa,{}),Ef=Zd.path(createRoundedRectPathD(Gd,qd,Ld,Bd,qa.rx||0),df),_f=Zd.line(-Ad.width/2-jd,-Ad.height/2-jd+Id.height+jd,Ad.width/2+jd,-Ad.height/2-jd+Id.height+jd,df);Xd=ud.insert(()=>(log$1.debug("Rough node insert CXC",Ef),_f),":first-child"),zd=ud.insert(()=>(log$1.debug("Rough node insert CXC",Ef),Ef),":first-child")}else zd=dd.insert("rect",":first-child"),Xd=dd.insert("line"),zd.attr("class","outer title-state").attr("style",od).attr("x",-Ad.width/2-jd).attr("y",-Ad.height/2-jd).attr("width",Ad.width+(qa.padding||0)).attr("height",Ad.height+(qa.padding||0)),Xd.attr("class","divider").attr("x1",-Ad.width/2-jd).attr("x2",Ad.width/2+jd).attr("y1",-Ad.height/2-jd+Id.height+jd).attr("y2",-Ad.height/2-jd+Id.height+jd);return updateNodeBounds(qa,zd),qa.intersect=function(Zd){return intersect_default.rect(qa,Zd)},ud}__name(rectWithTitle,"rectWithTitle");async function roundedRect(Ra,qa){const nd={rx:5,ry:5,classes:"",labelPaddingX:((qa==null?void 0:qa.padding)||0)*1,labelPaddingY:((qa==null?void 0:qa.padding)||0)*1};return drawRect(Ra,qa,nd)}__name(roundedRect,"roundedRect");async function shadedProcess(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:dd}=await labelHelper(Ra,qa,getNodeClasses(qa)),pd=(qa==null?void 0:qa.padding)??0,fd=Math.max(ud.width+(qa.padding??0)*2,(qa==null?void 0:qa.width)??0),md=Math.max(ud.height+(
a${ld},${ud} 0,0,1 0,${-od}
l${nd},0
a${ld},${ud} 0,0,1 0,${od}
M${nd},${-od}
a${ld},${ud} 0,0,0 0,${od}
l${-nd},0`,"createCylinderPathD"),createOuterCylinderPathD3=__name((Ra,qa,nd,od,ld,ud)=>[`M${Ra},${qa}`,`M${Ra+nd},${qa}`,`a${ld},${ud} 0,0,0 0,${-od}`,`l${-nd},0`,`a${ld},${ud} 0,0,0 0,${od}`,`l${nd},0`].join(" "),"createOuterCylinderPathD"),createInnerCylinderPathD3=__name((Ra,qa,nd,od,ld,ud)=>[`M${Ra+nd/2},${-od/2}`,`a${ld},${ud} 0,0,0 0,${od}`].join(" "),"createInnerCylinderPathD");async function tiltedCylinder(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:dd,halfPadding:pd}=await labelHelper(Ra,qa,getNodeClasses(qa)),fd=qa.look==="neo"?pd*2:pd,md=ud.height+fd,vd=md/2,Ad=vd/(2.5+md/50),Nd=ud.width+Ad+fd,{cssStyles:Id}=qa;let Od;if(qa.look==="handDrawn"){const Md=at$3.svg(ld),Ud=createOuterCylinderPathD3(0,0,Nd,md,Ad,vd),jd=createInnerCylinderPathD3(0,0,Nd,md,Ad,vd),Ld=Md.path(Ud,userNodeOverrides(qa,{})),Bd=Md.path(jd,userNodeOverrides(qa,{fill:"none"}));Od=ld.insert(()=>Bd,":first-child"),Od=ld.insert(()=>Ld,":first-child"),Od.attr("class","basic label-container"),Id&&Od.attr("style",Id)}else{const Md=createCylinderPathD3(0,0,Nd,md,Ad,vd);Od=ld.insert("path",":first-child").attr("d",Md).attr("class","basic label-container").attr("style",handleUndefinedAttr(Id)).attr("style",od),Od.attr("class","basic label-container"),Id&&Od.selectAll("path").attr("style",Id),od&&Od.selectAll("path").attr("style",od)}return Od.attr("label-offset-x",Ad),Od.attr("transform",`translate(${-Nd/2}, ${md/2} )`),dd.attr("transform",`translate(${-(ud.width/2)-Ad-(ud.x-(ud.left??0))}, ${-(ud.height/2)-(ud.y-(ud.top??0))})`),updateNodeBounds(qa,Od),qa.intersect=function(Md){const Ud=intersect_default.rect(qa,Md),jd=Ud.y-(qa.y??0);if(vd!=0&&(Math.abs(jd)<(qa.height??0)/2||Math.abs(jd)==(qa.height??0)/2&&Math.abs(Ud.x-(qa.x??0))>(qa.width??0)/2-Ad)){let Ld=Ad*Ad*(1-jd*jd/(vd*vd));Ld!=0&&(Ld=Math.sqrt(Math.abs(Ld))),Ld=Ad-Ld,Md.x-(qa.x??0)>0&&(Ld=-Ld),Ud.x+=Ld}return Ud},ld}__name(tiltedCylinder,"tiltedCylinder");async function trapezoid(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud}=await labelHelper(Ra,qa,getNodeClasses(qa)),dd=ud.width+qa.padding,pd=ud.height+qa.padding,fd=[{x:-3*pd/6,y:0},{x:dd+3*pd/6,y:0},{x:dd,y:-pd},{x:0,y:-pd}];let md;const{cssStyles:vd}=qa;if(qa.look==="handDrawn"){const Ad=at$3.svg(ld),Nd=userNodeOverrides(qa,{}),Id=createPathFromPoints(fd),Od=Ad.path(Id,Nd);md=ld.insert(()=>Od,":first-child").attr("transform",`translate(${-dd/2}, ${pd/2})`),vd&&md.attr("style",vd)}else md=insertPolygonShape(ld,dd,pd,fd);return od&&md.attr("style",od),qa.width=dd,qa.height=pd,updateNodeBounds(qa,md),qa.intersect=function(Ad){return intersect_default.polygon(qa,fd,Ad)},ld}__name(trapezoid,"trapezoid");async function trapezoidalPentagon(Ra,qa){const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud}=await labelHelper(Ra,qa,getNodeClasses(qa)),dd=60,pd=20,fd=Math.max(dd,ud.width+(qa.padding??0)*2,(qa==null?void 0:qa.width)??0),md=Math.max(pd,ud.height+(qa.padding??0)*2,(qa==null?void 0:qa.height)??0),{cssStyles:vd}=qa,Ad=at$3.svg(ld),Nd=userNodeOverrides(qa,{});qa.look!=="handDrawn"&&(Nd.roughness=0,Nd.fillStyle="solid");const Id=[{x:-fd/2*.8,y:-md/2},{x:fd/2*.8,y:-md/2},{x:fd/2,y:-md/2*.6},{x:fd/2,y:md/2},{x:-fd/2,y:md/2},{x:-fd/2,y:-md/2*.6}],Od=createPathFromPoints(Id),Md=Ad.path(Od,Nd),Ud=ld.insert(()=>Md,":first-child");return Ud.attr("class","basic label-container"),vd&&qa.look!=="handDrawn"&&Ud.selectChildren("path").attr("style",vd),od&&qa.look!=="handDrawn"&&Ud.selectChildren("path").attr("style",od),updateNodeBounds(qa,Ud),qa.intersect=function(jd){return intersect_default.polygon(qa,Id,jd)},ld}__name(trapezoidalPentagon,"trapezoidalPentagon");async function triangle(Ra,qa){var Ld;const{labelStyles:nd,nodeStyles:od}=styles2String(qa);qa.labelStyle=nd;const{shapeSvg:ld,bbox:ud,label:dd}=await labelHelper(Ra,qa,getNodeClasses(qa)),pd=evaluate((Ld=getConfig2().flowchart)==null?void 0:Ld.htmlLabels),fd=ud.width+(qa.padding??0),md=fd+ud.height,vd=fd+ud.height,Ad=[{x:0,y
M${vd-md},${Ad} L${vd+pd},${Ad}
M${vd},${Ad-md} L${vd},${Ad+fd}`;qa.look!=="handDrawn"&&(Od.roughness=0,Od.fillStyle="solid");const jd=Id.path(Ud,Od),Ld=ld.insert(()=>jd,":first-child");return Ld.attr("transform",`translate(${md/2}, ${md/2})`),Ld.attr("class","basic label-container"),Nd&&qa.look!=="handDrawn"&&Ld.selectAll("path").attr("style",Nd),od&&qa.look!=="handDrawn"&&Ld.selectAll("path").attr("style",od),dd.attr("transform",`translate(${-(ud.width/2)+md/2-(ud.x-(ud.left??0))}, ${-(ud.height/2)+md/2-(ud.y-(ud.top??0))})`),updateNodeBounds(qa,Ld),qa.intersect=function(Bd){return intersect_default.polygon(qa,Md,Bd)},ld}__name(windowPane,"windowPane");async function textHelper(Ra,qa,nd,od,ld=nd.class.padding??12){const ud=od?0:3,dd=Ra.insert("g").attr("class",getNodeClasses(qa)).attr("id",qa.domId||qa.id);let pd=null,fd=null,md=null,vd=null,Ad=0,Nd=0,Id=0;if(pd=dd.insert("g").attr("class","annotation-group text"),qa.annotations.length>0){const Ld=qa.annotations[0];await addText(pd,{text:`«${Ld}»`},0),Ad=pd.node().getBBox().height}fd=dd.insert("g").attr("class","label-group text"),await addText(fd,qa,0,["font-weight: bolder"]);const Od=fd.node().getBBox();Nd=Od.height,md=dd.insert("g").attr("class","members-group text");let Md=0;for(const Ld of qa.members){const Bd=await addText(md,Ld,Md,[Ld.parseClassifier()]);Md+=Bd+ud}Id=md.node().getBBox().height,Id<=0&&(Id=ld/2),vd=dd.insert("g").attr("class","methods-group text");let Ud=0;for(const Ld of qa.methods){const Bd=await addText(vd,Ld,Ud,[Ld.parseClassifier()]);Ud+=Bd+ud}let jd=dd.node().getBBox();if(pd!==null){const Ld=pd.node().getBBox();pd.attr("transform",`translate(${-Ld.width/2})`)}return fd.attr("transform",`translate(${-Od.width/2}, ${Ad})`),jd=dd.node().getBBox(),md.attr("transform",`translate(0, ${Ad+Nd+ld*2})`),jd=dd.node().getBBox(),vd.attr("transform",`translate(0, ${Ad+Nd+(Id?Id+ld*4:ld*2)})`),jd=dd.node().getBBox(),{shapeSvg:dd,bbox:jd}}__name(textHelper,"textHelper");async function addText(Ra,qa,nd,od=[]){const ld=Ra.insert("g").attr("class","label").attr("style",od.join("; ")),ud=getConfig$1();let dd="useHtmlLabels"in qa?qa.useHtmlLabels:evaluate(ud.htmlLabels)??!0,pd="";"text"in qa?pd=qa.text:pd=qa.label,!dd&&pd.startsWith("\\")&&(pd=pd.substring(1)),hasKatex(pd)&&(dd=!0);const fd=await createText(ld,sanitizeText3(decodeEntities(pd)),{width:calculateTextWidth(pd,ud)+50,classes:"markdown-node-label",useHtmlLabels:dd},ud);let md,vd=1;if(dd){const Ad=fd.children[0],Nd=select(fd);vd=Ad.innerHTML.split("<br>").length,Ad.innerHTML.includes("</math>")&&(vd+=Ad.innerHTML.split("<mrow>").length-1);const Id=Ad.getElementsByTagName("img");if(Id){const Od=pd.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...Id].map(Md=>new Promise(Ud=>{function jd(){var Ld;if(Md.style.display="flex",Md.style.flexDirection="column",Od){const Bd=((Ld=ud.fontSize)==null?void 0:Ld.toString())??window.getComputedStyle(document.body).fontSize,qd=parseInt(Bd,10)*5+"px";Md.style.minWidth=qd,Md.style.maxWidth=qd}else Md.style.width="100%";Ud(Md)}__name(jd,"setupImage"),setTimeout(()=>{Md.complete&&jd()}),Md.addEventListener("error",jd),Md.addEventListener("load",jd)})))}md=Ad.getBoundingClientRect(),Nd.attr("width",md.width),Nd.attr("height",md.height)}else{od.includes("font-weight: bolder")&&select(fd).selectAll("tspan").attr("font-weight",""),vd=fd.children.length;const Ad=fd.children[0];(fd.textContent===""||fd.textContent.includes("&gt"))&&(Ad.textContent=pd[0]+pd.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),pd[1]===" "&&(Ad.textContent=Ad.textContent[0]+" "+Ad.textContent.substring(1))),Ad.textContent==="undefined"&&(Ad.textContent=""),md=fd.getBBox()}return ld.attr("transform","translate(0,"+(-md.height/(2*vd)+nd)+")"),md.height}__name(addText,"addText");async function classBox(Ra,qa){var Yd,Zd;const nd=getConfig2(),od=nd.class.padding??12,ld=od,ud=qa.useHtmlLabels??evaluate(nd.htmlLabels)??!0,dd=qa;dd.annotations=dd.annotations??[],dd.members=dd.members??[],dd.methods=dd.methods??[];const{shapeSvg:pd,bbox:fd}=await textHelper(Ra,qa,nd,ud,ld),{labelStyles:md,nodeSty
outsidePoint: ${JSON.stringify(qa)}
insidePoint : ${JSON.stringify(nd)}
node : x:${Ra.x} y:${Ra.y} w:${Ra.width} h:${Ra.height}`);const od=Ra.x,ld=Ra.y,ud=Math.abs(od-nd.x),dd=Ra.width/2;let pd=nd.x<qa.x?dd-ud:dd+ud;const fd=Ra.height/2,md=Math.abs(qa.y-nd.y),vd=Math.abs(qa.x-nd.x);if(Math.abs(ld-qa.y)*dd>Math.abs(od-qa.x)*fd){let Ad=nd.y<qa.y?qa.y-fd-ld:ld-fd-qa.y;pd=vd*Ad/md;const Nd={x:nd.x<qa.x?nd.x+pd:nd.x-vd+pd,y:nd.y<qa.y?nd.y+md-Ad:nd.y-md+Ad};return pd===0&&(Nd.x=qa.x,Nd.y=qa.y),vd===0&&(Nd.x=qa.x),md===0&&(Nd.y=qa.y),log$1.debug(`abc89 top/bottom calc, Q ${md}, q ${Ad}, R ${vd}, r ${pd}`,Nd),Nd}else{nd.x<qa.x?pd=qa.x-dd-od:pd=od-dd-qa.x;let Ad=md*pd/vd,Nd=nd.x<qa.x?nd.x+vd-pd:nd.x-vd+pd,Id=nd.y<qa.y?nd.y+Ad:nd.y-Ad;return log$1.debug(`sides calc abc89, Q ${md}, q ${Ad}, R ${vd}, r ${pd}`,{_x:Nd,_y:Id}),pd===0&&(Nd=qa.x,Id=qa.y),vd===0&&(Nd=qa.x),md===0&&(Id=qa.y),{x:Nd,y:Id}}},"intersection"),cutPathAtIntersect=__name((Ra,qa)=>{log$1.warn("abc88 cutPathAtIntersect",Ra,qa);let nd=[],od=Ra[0],ld=!1;return Ra.forEach(ud=>{if(log$1.info("abc88 checking point",ud,qa),!outsideNode(qa,ud)&&!ld){const dd=intersection(qa,od,ud);log$1.debug("abc88 inside",ud,od,dd),log$1.debug("abc88 intersection",dd,qa);let pd=!1;nd.forEach(fd=>{pd=pd||fd.x===dd.x&&fd.y===dd.y}),nd.some(fd=>fd.x===dd.x&&fd.y===dd.y)?log$1.warn("abc88 no intersect",dd,nd):nd.push(dd),ld=!0}else log$1.warn("abc88 outside",ud,od),od=ud,ld||nd.push(ud)}),log$1.debug("returning points",nd),nd},"cutPathAtIntersect");function extractCornerPoints(Ra){const qa=[],nd=[];for(let od=1;od<Ra.length-1;od++){const ld=Ra[od-1],ud=Ra[od],dd=Ra[od+1];(ld.x===ud.x&&ud.y===dd.y&&Math.abs(ud.x-dd.x)>5&&Math.abs(ud.y-ld.y)>5||ld.y===ud.y&&ud.x===dd.x&&Math.abs(ud.x-ld.x)>5&&Math.abs(ud.y-dd.y)>5)&&(qa.push(ud),nd.push(od))}return{cornerPoints:qa,cornerPointPositions:nd}}__name(extractCornerPoints,"extractCornerPoints");var findAdjacentPoint=__name(function(Ra,qa,nd){const od=qa.x-Ra.x,ld=qa.y-Ra.y,ud=Math.sqrt(od*od+ld*ld),dd=nd/ud;return{x:qa.x-dd*od,y:qa.y-dd*ld}},"findAdjacentPoint"),fixCorners=__name(function(Ra){const{cornerPointPositions:qa}=extractCornerPoints(Ra),nd=[];for(let od=0;od<Ra.length;od++)if(qa.includes(od)){const ld=Ra[od-1],ud=Ra[od+1],dd=Ra[od],pd=findAdjacentPoint(ld,dd,5),fd=findAdjacentPoint(ud,dd,5),md=fd.x-pd.x,vd=fd.y-pd.y;nd.push(pd);const Ad=Math.sqrt(2)*2;let Nd={x:dd.x,y:dd.y};if(Math.abs(ud.x-ld.x)>10&&Math.abs(ud.y-ld.y)>=10){log$1.debug("Corner point fixing",Math.abs(ud.x-ld.x),Math.abs(ud.y-ld.y));const Id=5;dd.x===pd.x?Nd={x:md<0?pd.x-Id+Ad:pd.x+Id-Ad,y:vd<0?pd.y-Ad:pd.y+Ad}:Nd={x:md<0?pd.x-Ad:pd.x+Ad,y:vd<0?pd.y-Id+Ad:pd.y+Id-Ad}}else log$1.debug("Corner point skipping fixing",Math.abs(ud.x-ld.x),Math.abs(ud.y-ld.y));nd.push(Nd,fd)}else nd.push(Ra[od]);return nd},"fixCorners"),insertEdge=__name(function(Ra,qa,nd,od,ld,ud,dd){const{handDrawnSeed:pd}=getConfig2();let fd=qa.points,md=!1;const vd=ld;var Ad=ud;Ad.intersect&&vd.intersect&&(fd=fd.slice(1,qa.points.length-1),fd.unshift(vd.intersect(fd[0])),log$1.debug("Last point APA12",qa.start,"-->",qa.end,fd[fd.length-1],Ad,Ad.intersect(fd[fd.length-1])),fd.push(Ad.intersect(fd[fd.length-1]))),qa.toCluster&&(log$1.info("to cluster abc88",nd.get(qa.toCluster)),fd=cutPathAtIntersect(qa.points,nd.get(qa.toCluster).node),md=!0),qa.fromCluster&&(log$1.debug("from cluster abc88",nd.get(qa.fromCluster),JSON.stringify(fd,null,2)),fd=cutPathAtIntersect(fd.reverse(),nd.get(qa.fromCluster).node).reverse(),md=!0);let Nd=fd.filter(Xd=>!Number.isNaN(Xd.y));Nd=fixCorners(Nd);let Id=curveBasis;qa.curve&&(Id=qa.curve);const{x:Od,y:Md}=getLineFunctionsWithOffset(qa),Ud=line$1().x(Od).y(Md).curve(Id);let jd;switch(qa.thickness){case"normal":jd="edge-thickness-normal";break;case"thick":jd="edge-thickness-thick";break;case"invisible":jd="edge-thickness-invisible";break;default:jd="edge-thickness-normal"}switch(qa.pattern){case"solid":jd+=" edge-pattern-solid";break;case"dotted":jd+=" edge-pattern-dotted";break;case"dashed":jd+=" edge-pattern-dashed";break;default:jd+=" edge-pattern-solid"}let Ld,Bd=Ud(Nd);const Gd=Array.isArray(qa.style)?qa.style:[qa.style];if(qa.look==="ha
`);const od=selectSvgElement(qa),ld=od.append("g");od.attr("viewBox","0 0 2412 512"),configureSvgSize(od,100,512,!0),ld.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"),ld.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"),ld.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"),ld.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"),ld.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"),ld.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"),ld.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"),ld.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${nd}`)},"draw"),renderer={draw},errorRenderer_default=renderer,diagram={db:{},renderer,parser:{parse:__name(()=>{},"parse")}},errorDiagram_default=diagram,id18="flowchart-elk",detector18=__name((Ra,qa={})=>{var nd;return/^\s*flowchart-elk/.test(Ra)||/^\s*flowchart|graph/.test(Ra)&&((nd=qa==null?void 0:qa.flowchart)==null?void 0:nd.defaultRenderer)==="elk"?(qa.layout="elk",!0):!1},"detector"),loader18=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./flowDiagram-7ASYPVHJ-DZmM289e.js");return{diagram:qa}},__vite__mapDeps([8,9,10]));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-U7ZMHBDA-DrYwoiUK.js");return{diagram:qa}},__vite__mapDeps([34,21]));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-GWI6TPTV-CD8ejQHx.js");return{diagram:qa}},__vite__mapDeps([35,36]));return{id:id20,diagram:Ra}},"loader"),plugin18={id:id20,detector:detector20,loader:loader20},detector_default3=plugin18,id21="kanban",detector21=__name(Ra=>/^\s*kanban/.test(Ra),"detector"),loader21=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./kanban-definition-QRCXZQQD-DcrQzXa5.js");return{diagram:qa}},[]);return{id:id21,diagram:Ra}},"loader"),plugin19={id:id21,detector:detector21,loader:loader21},detector_default4=plugin19,id22="sankey",detector22=__name(Ra=>/^\s*sankey-beta/.test(Ra),"detector"),loader22=__name(async()=>{co
`;try{getDiagram(ld)}catch{const Ad=getDiagramLoader(ld);if(!Ad)throw new UnknownDiagramError(`Diagram ${ld} not found.`);const{id:Nd,diagram:Id}=await Ad();registerDiagram(Nd,Id)}const{db:ud,parser:dd,renderer:pd,init:fd}=getDiagram(ld);return dd.parser&&(dd.parser.yy=ud),(md=ud.clear)==null||md.call(ud),fd==null||fd(od),nd.title&&((vd=ud.setDiagramTitle)==null||vd.call(ud,nd.title)),await dd.parse(qa),new LE(ld,qa,ud,dd,pd)}async render(qa,nd){await this.renderer.draw(this.text,qa,nd,this)}getParser(){return this.parser}getType(){return this.type}},__name(LE,"Diagram"),LE),interactionFunctions=[],attachFunctions=__name(()=>{interactionFunctions.forEach(Ra=>{Ra()}),interactionFunctions=[]},"attachFunctions"),cleanupComments=__name(Ra=>Ra.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function extractFrontMatter(Ra){const qa=Ra.match(frontMatterRegex);if(!qa)return{text:Ra,metadata:{}};let nd=load(qa[1],{schema:JSON_SCHEMA})??{};nd=typeof nd=="object"&&!Array.isArray(nd)?nd:{};const od={};return nd.displayMode&&(od.displayMode=nd.displayMode.toString()),nd.title&&(od.title=nd.title.toString()),nd.config&&(od.config=nd.config),{text:Ra.slice(qa[0].length),metadata:od}}__name(extractFrontMatter,"extractFrontMatter");var cleanupText=__name(Ra=>Ra.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(qa,nd,od)=>"<"+nd+od.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),processFrontmatter=__name(Ra=>{const{text:qa,metadata:nd}=extractFrontMatter(Ra),{displayMode:od,title:ld,config:ud={}}=nd;return od&&(ud.gantt||(ud.gantt={}),ud.gantt.displayMode=od),{title:ld,config:ud,text:qa}},"processFrontmatter"),processDirectives=__name(Ra=>{const qa=utils_default.detectInit(Ra)??{},nd=utils_default.detectDirective(Ra,"wrap");return Array.isArray(nd)?qa.wrap=nd.some(({type:od})=>od==="wrap"):(nd==null?void 0:nd.type)==="wrap"&&(qa.wrap=!0),{text:removeDirectives(Ra),directive:qa}},"processDirectives");function preprocessDiagram(Ra){const qa=cleanupText(Ra),nd=processFrontmatter(qa),od=processDirectives(nd.text),ld=cleanAndMerge(nd.config,od.directive);return Ra=cleanupComments(od.text),{code:Ra,title:nd.title,config:ld}}__name(preprocessDiagram,"preprocessDiagram");function toBase64$1(Ra){const qa=new TextEncoder().encode(Ra),nd=Array.from(qa,od=>String.fromCodePoint(od)).join("");return btoa(nd)}__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(Ra,qa){addDiagrams();try{const{code:nd,config:od}=processAndSetConfigs(Ra);return{diagramType:(await getDiagramFromText(nd)).type,config:od}}catch(nd){if(qa!=null&&qa.suppressErrors)return!1;throw nd}}__name(parse,"parse");var cssImportantStyles=__name((Ra,qa,nd=[])=>`
.${Ra} ${qa} { ${nd.join(" !important; ")} !important; }`,"cssImportantStyles"),createCssStyles=__name((Ra,qa=new Map)=>{var od;let nd="";if(Ra.themeCSS!==void 0&&(nd+=`
${Ra.themeCSS}`),Ra.fontFamily!==void 0&&(nd+=`
:root { --mermaid-font-family: ${Ra.fontFamily}}`),Ra.altFontFamily!==void 0&&(nd+=`
:root { --mermaid-alt-font-family: ${Ra.altFontFamily}}`),qa instanceof Map){const pd=Ra.htmlLabels??((od=Ra.flowchart)==null?void 0:od.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];qa.forEach(fd=>{isEmpty$1(fd.styles)||pd.forEach(md=>{nd+=cssImportantStyles(fd.id,md,fd.styles)}),isEmpty$1(fd.textStyles)||(nd+=cssImportantStyles(fd.id,"tspan",((fd==null?void 0:fd.textStyles)||[]).map(md=>md.replace("color","fill"))))})}return nd},"createCssStyles"),createUserStyles=__name((Ra,qa,nd,od)=>{const ld=createCssStyles(Ra,nd),ud=styles_default(qa,ld,Ra.themeVariables);return serialize(compile(`${od}{${ud}}`),stringify$1)},"createUserStyles"),cleanUpSvgCode=__name((Ra="",qa,nd)=>{let od=Ra;return!nd&&!qa&&(od=od.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),od=decodeEntities(od),od=od.replace(/<br>/g,"<br/>"),od},"cleanUpSvgCode"),putIntoIFrame=__name((Ra="",qa)=>{var ld,ud;const nd=(ud=(ld=qa==null?void 0:qa.viewBox)==null?void 0:ld.baseVal)!=null&&ud.height?qa.viewBox.baseVal.height+"px":IFRAME_HEIGHT,od=toBase64$1(`<body style="${IFRAME_BODY_STYLE}">${Ra}</body>`);return`<iframe style="width:${IFRAME_WIDTH};height:${nd};${IFRAME_STYLES}" src="data:text/html;charset=UTF-8;base64,${od}" sandbox="${IFRAME_SANDBOX_OPTS}">
${IFRAME_NOT_SUPPORTED_MSG}
</iframe>`},"putIntoIFrame"),appendDivSvgG=__name((Ra,qa,nd,od,ld)=>{const ud=Ra.append("div");ud.attr("id",nd),od&&ud.attr("style",od);const dd=ud.append("svg").attr("id",qa).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return ld&&dd.attr("xmlns:xlink",ld),dd.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,nd,od)=>{var ld,ud,dd;(ld=Ra.getElementById(qa))==null||ld.remove(),(ud=Ra.getElementById(nd))==null||ud.remove(),(dd=Ra.getElementById(od))==null||dd.remove()},"removeExistingElements"),render=__name(async function(Ra,qa,nd){var Ef,_f,xf,vf,Af,Df;addDiagrams();const od=processAndSetConfigs(qa);qa=od.code;const ld=getConfig$1();log$1.debug(ld),qa.length>((ld==null?void 0:ld.maxTextSize)??MAX_TEXTLENGTH)&&(qa=MAX_TEXTLENGTH_EXCEEDED_MSG);const ud="#"+Ra,dd="i"+Ra,pd="#"+dd,fd="d"+Ra,md="#"+fd,vd=__name(()=>{const Jf=select(Nd?pd:md).node();Jf&&"remove"in Jf&&Jf.remove()},"removeTempElements");let Ad=select("body");const Nd=ld.securityLevel===SECURITY_LVL_SANDBOX,Id=ld.securityLevel===SECURITY_LVL_LOOSE,Od=ld.fontFamily;if(nd!==void 0){if(nd&&(nd.innerHTML=""),Nd){const jf=sandboxedIframe(select(nd),dd);Ad=select(jf.nodes()[0].contentDocument.body),Ad.node().style.margin=0}else Ad=select(nd);appendDivSvgG(Ad,Ra,fd,`font-family: ${Od}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,Ra,fd,dd),Nd){const jf=sandboxedIframe(select("body"),dd);Ad=select(jf.nodes()[0].contentDocument.body),Ad.node().style.margin=0}else Ad=select("body");appendDivSvgG(Ad,Ra,fd)}let Md,Ud;try{Md=await Diagram.fromText(qa,{title:od.title})}catch(jf){if(ld.suppressErrorRendering)throw vd(),jf;Md=await Diagram.fromText("error"),Ud=jf}const jd=Ad.select(md).node(),Ld=Md.type,Bd=jd.firstChild,Gd=Bd.firstChild,qd=(_f=(Ef=Md.renderer).getClasses)==null?void 0:_f.call(Ef,qa,Md),zd=createUserStyles(ld,Ld,qd,ud),Xd=document.createElement("style");Xd.innerHTML=zd,Bd.insertBefore(Xd,Gd);try{await Md.renderer.draw(qa,Ra,version$2,Md)}catch(jf){throw ld.suppressErrorRendering?vd():errorRenderer_default.draw(qa,Ra,version$2),jf}const gf=Ad.select(`${md} svg`),Yd=(vf=(xf=Md.db).getAccTitle)==null?void 0:vf.call(xf),Zd=(Df=(Af=Md.db).getAccDescription)==null?void 0:Df.call(Af);addA11yInfo(Ld,gf,Yd,Zd),Ad.select(`[id="${Ra}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let df=Ad.select(md).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",ld.arrowMarkerAbsolute),df=cleanUpSvgCode(df,Nd,evaluate(ld.arrowMarkerAbsolute)),Nd){const jf=Ad.select(md+" svg").node();df=putIntoIFrame(df,jf)}else Id||(df=purify.sanitize(df,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(attachFunctions(),Ud)throw Ud;return vd(),{diagramType:Ld,svg:df,bindFunctions:Md.db.bindFunctions}},"render");function initialize(Ra={}){var od;const qa=assignWithDepth_default({},Ra);qa!=null&&qa.fontFamily&&!((od=qa.themeVariables)!=null&&od.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 nd=typeof qa=="object"?setSiteConfig(qa):getSiteConfig();setLogLevel(nd.logLevel),addDiagrams()}__name(initialize,"initialize");var getDiagramFromText=__name((Ra,qa={})=>{const{code:nd}=preprocessDiagram(Ra);return Diagram.fromText(nd,qa)},"getDiagramFromText");function addA11yInfo(Ra,qa,nd,od){setA11yDiagramInfo(qa,Ra),addSVGa11yTitleDescription(qa,nd,od,qa.attr("id"))}__name(addA11yInfo,"addA11yInfo");var mermaidAPI=Object.freeze({render,parse,getDiagramFromText,initialize,getConfig:getConfig$1,setConfig,getSiteConfig,updateSiteConfig,reset:__name(()=>{reset()},"reset"),globalReset:__name(()=>{reset(defaultConfig)},"globalReset"),de
* Wait for document loaded before starting the execution
*/function markedAlert(Ra={}){const{className:qa="markdown-alert",variants:nd=[]}=Ra,od=resolveVariants(nd);return{walkTokens(ld){var dd,pd,fd,md;if(ld.type!=="blockquote")return;const ud=od.find(({type:vd})=>new RegExp(createSyntaxPattern(vd),"i").test(ld.text));if(ud){const{type:vd,icon:Ad,title:Nd=ucfirst(vd),titleClassName:Id=`${qa}-title`}=ud,Od=new RegExp(createSyntaxPattern(vd),"i"),{styles:Md}=Ra;Object.assign(ld,{type:"alert",meta:{className:qa,variant:vd,icon:Ad,title:Nd,titleClassName:Id,wrapperStyle:{...Md==null?void 0:Md.blockquote,...Md==null?void 0:Md[`blockquote_${vd}`]},titleStyle:{...Md==null?void 0:Md.blockquote_title,...Md==null?void 0:Md[`blockquote_title_${vd}`]},contentStyle:{...Md==null?void 0:Md.blockquote_p,...Md==null?void 0:Md[`blockquote_p_${vd}`]}}});const Ud=(dd=ld.tokens)==null?void 0:dd[0];if((pd=Ud.raw)==null?void 0:pd.replace(Od,"").trim()){const Ld=Ud.tokens[0];Object.assign(Ld,{raw:Ld.raw.replace(Od,""),text:Ld.text.replace(Od,"")}),((fd=Ud.tokens[1])==null?void 0:fd.type)==="br"&&Ud.tokens.splice(1,1)}else(md=ld.tokens)==null||md.shift()}},extensions:[{name:"alert",level:"block",renderer({meta:ld,tokens:ud=[]}){var fd;let dd=this.parser.parse(ud);dd=dd.replace(/<p .*?>/g,`<p style="${getStyleString(ld.contentStyle)}">`);let pd=`<blockquote class="${ld.className} ${ld.className}-${ld.variant}" style="${getStyleString(ld.wrapperStyle)}">
`;return pd+=`<p class="${ld.titleClassName}" style="${getStyleString(ld.titleStyle)}">`,pd+=ld.icon.replace("<svg",`<svg style="fill: ${((fd=ld.titleStyle)==null?void 0:fd.color)??"inherit"}"`),pd+=ld.title,pd+=`</p>
`,pd+=dd,pd+=`</blockquote>
`,pd}}]}}const defaultAlertVariant=[{type:"note",icon:'<svg class="octicon octicon-info" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>'},{type:"tip",icon:'<svg class="octicon octicon-light-bulb" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></svg>'},{type:"important",icon:'<svg class="octicon octicon-report" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></svg>'},{type:"warning",icon:'<svg class="octicon octicon-alert" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></svg>'},{type:"caution",icon:'<svg class="octicon octicon-stop" style="margin-right: 0.25em;" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>'}];function resolveVariants(Ra){return Ra.length?Object.values([...defaultAlertVariant,...Ra].reduce((qa,nd)=>(qa[nd.type]=nd,qa),{})):defaultAlertVariant}function createSyntaxPattern(Ra){return`^(?:\\[!${Ra}])\\s*?
*`}function ucfirst(Ra){return Ra.slice(0,1).toUpperCase()+Ra.slice(1).toLowerCase()}const inlineRule=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n$]))\1(?=[\s?!.,:?!。,:]|$)/,inlineRuleNonStandard=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n$]))\1/,blockRule=/^(\${1,2})\n((?:\\[\s\S]|[^\\])+?)\n\1(?:\n|$)/;function createRenderer(Ra){return qa=>{window.MathJax.texReset();const od=window.MathJax.tex2svg(qa.text,{display:Ra}).firstChild,ld=od.style["min-width"]||od.getAttribute("width");return od.removeAttribute("width"),od.style="max-width: 300vw !important;",od.style.width=ld,od.style.display="initial",Ra?`<section style="text-align: center; overflow: auto;">${od.outerHTML}</section>`:`<span style="vertical-align: middle; line-height: 1;">${od.outerHTML}</span>`}}function inlineKatex(Ra,qa){const nd=Ra&&Ra.nonStandard,od=nd?inlineRuleNonStandard:inlineRule;return{name:"inlineKatex",level:"inline",start(ld){let ud,dd=ld;for(;dd;){if(ud=dd.indexOf("$"),ud===-1)return;if((nd?ud>-1:ud===0||dd.charAt(ud-1)===" ")&&dd.substring(ud).match(od))return ud;dd=dd.substring(ud+1).replace(/^\$+/,"")}},tokenizer(ld){const ud=ld.match(od);if(ud)return{type:"inlineKatex",raw:ud[0],text:ud[2].trim(),displayMode:ud[1].length===2}},renderer:qa}}function blockKatex(Ra,qa){return{name:"blockKatex",level:"block",tokenizer(nd){const od=nd.match(blockRule);if(od)return{type:"blockKatex",raw:od[0],text:od[2].trim(),displayMode:od[1].length===2}},renderer:qa}}function MDKatex(Ra={}){return{extensions:[inlineKatex(Ra,createRenderer(!1)),blockKatex(Ra,createRenderer(!0))]}}marked$1.use(MDKatex({nonStandard:!0}));function buildTheme({theme:Ra,fonts:qa,size:nd,isUseIndent:od}){const ld=cloneDeep(Ra),ud=toMerged(ld.base,{"font-family":qa,"font-size":nd});od&&(ld.block.p={"text-indent":"2em",...ld.block.p});const dd=pd=>Object.fromEntries(Object.entries(pd).map(([fd,md])=>[fd,toMerged(ud,md)]));return{...dd(ld.inline),...dd(ld.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,nd=""){const od=Ra[qa];return od?`style="${getStyleString(od)}${nd}"`:""}function buildFootnoteArray(Ra){return Ra.map(([qa,nd,od])=>od===nd?`<code style="font-size: 90%; opacity: 0.6;">[${qa}]</code>: <i style="word-break: break-all">${nd}</i><br/>`:`<code style="font-size: 90%; opacity: 0.6;">[${qa}]</code> ${nd}: <i style="word-break: break-all">${od}</i><br/>`).join(`
`)}function transform$1(Ra,qa,nd){const od=Ra.split("-");for(const ld of od){if(ld==="alt"&&qa)return qa;if(ld==="title"&&nd)return nd}return""}const macCodeSvg=`
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" width="45px" height="13px" viewBox="0 0 450 130">
<ellipse cx="50" cy="65" rx="50" ry="52" stroke="rgb(220,60,54)" stroke-width="2" fill="rgb(237,108,96)" />
<ellipse cx="225" cy="65" rx="50" ry="52" stroke="rgb(218,151,33)" stroke-width="2" fill="rgb(247,193,81)" />
<ellipse cx="400" cy="65" rx="50" ry="52" stroke="rgb(27,161,37)" stroke-width="2" fill="rgb(100,200,86)" />
</svg>
`.trim();function initRenderer(Ra){const qa=[];let nd=0,od=buildTheme(Ra),ld=0,ud=0,dd=!1;function pd(Od,Md=""){return getStyles(od,Od,Md)}function fd(Od,Md,Ud){const jd=Ud??Od;return`<${jd} ${pd(Od)}>${Md}</${jd}>`}function md(Od,Md){return qa.push([++nd,Od,Md]),nd}function vd(Od){qa.length=0,nd=0,Ad(Od)}function Ad(Od){Ra={...Ra,...Od},od=buildTheme(Ra),marked$1.use(markedAlert({styles:od}))}const Nd=()=>qa.length?fd("h4","引用链接")+fd("footnotes",buildFootnoteArray(qa),"p"):"",Id={heading({tokens:Od,depth:Md}){const Ud=this.parser.parseInline(Od),jd=`h${Md}`;return fd(jd,Ud)},paragraph({tokens:Od}){const Md=this.parser.parseInline(Od),Ud=Md.includes("<figure")&&Md.includes("<img"),jd=Md.trim()==="";return Ud||jd?Md:fd("p",Md)},blockquote({tokens:Od}){let Md=this.parser.parse(Od);return Md=Md.replace(/<p .*?>/g,`<p ${pd("blockquote_p")}>`),fd("blockquote",Md)},code({text:Od,lang:Md=""}){if(Md.startsWith("mermaid"))return clearTimeout(ld),ld=setTimeout(()=>{mermaid_default.run()},0),`<pre class="mermaid">${Od}</pre>`;const Ud=Md.split(" ")[0],jd=HighlightJS.getLanguage(Ud)?Ud:"plaintext";let Ld=HighlightJS.highlight(Od,{language:jd}).value;Ld=Ld.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>").replace(/(>[^<]+)|(^[^<]+)/g,qd=>qd.replace(/\s/g,"&nbsp;"));const Bd=`<span class="mac-sign" style="padding: 10px 14px 0;" hidden>${macCodeSvg}</span>`,Gd=`<code class="language-${Md}" ${pd("code")}>${Ld}</code>`;return`<pre class="hljs code__pre" ${pd("code_pre")}>${Bd}${Gd}</pre>`},codespan({text:Od}){return fd("codespan",Od,"code")},listitem(Od){const Md=dd?`${ud+1}. `:" ",Ud=Od.tokens.map(jd=>this[jd.type](jd)).join("");return fd("listitem",`${Md}${Ud}`,"li")},list({ordered:Od,items:Md,start:Ud=1}){const jd=[];for(let Bd=0;Bd<Md.length;Bd++){dd=Od,ud=Number(Ud)+Bd-1;const Gd=Md[Bd];jd.push(this.listitem(Gd))}return fd(Od?"ol":"ul",jd.join(""))},image({href:Od,title:Md,text:Ud}){const jd=fd("figcaption",transform$1(Ra.legend,Ud,Md)),Ld=pd("figure"),Bd=pd("image");return`<figure ${Ld}><img ${Bd} src="${Od}" title="${Md}" alt="${Ud}"/>${jd}</figure>`},link({href:Od,title:Md,text:Ud,tokens:jd}){const Ld=this.parser.parseInline(jd);if(Od.startsWith("https://mp.weixin.qq.com"))return`<a href="${Od}" title="${Md||Ud}" ${pd("wx_link")}>${Ld}</a>`;if(Od===Ud)return Ld;if(Ra.citeStatus){const Bd=md(Md||Ud,Od);return`<span ${pd("link")}>${Ld}<sup>[${Bd}]</sup></span>`}return fd("link",Ld,"span")},strong({tokens:Od}){return fd("strong",this.parser.parseInline(Od))},em({tokens:Od}){return fd("em",this.parser.parseInline(Od),"span")},table({header:Od,rows:Md}){const Ud=Od.map(Ld=>this.tablecell(Ld)).join(""),jd=Md.map(Ld=>{const Bd=Ld.map(Gd=>this.tablecell(Gd)).join("");return fd("tr",Bd)}).join("");return`
<section style="padding:0 8px; max-width: 100%; overflow: auto">
<table class="preview-table">
<thead ${pd("thead")}>${Ud}</thead>
<tbody>${jd}</tbody>
</table>
</section>
`},tablecell(Od){const Md=this.parser.parseInline(Od.tokens);return fd("td",Md)},hr(Od){return fd("hr","")}};return marked$1.use({renderer:Id}),{buildAddition,buildFootnotes:Nd,setOptions:Ad,reset:vd}}var codemirror={exports:{}},hasRequiredCodemirror;function requireCodemirror(){return hasRequiredCodemirror||(hasRequiredCodemirror=1,function(Ra,qa){(function(nd,od){Ra.exports=od()})(commonjsGlobal,function(){var nd=navigator.userAgent,od=navigator.platform,ld=/gecko\/\d/i.test(nd),ud=/MSIE \d/.test(nd),dd=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nd),pd=/Edge\/(\d+)/.exec(nd),fd=ud||dd||pd,md=fd&&(ud?document.documentMode||6:+(pd||dd)[1]),vd=!pd&&/WebKit\//.test(nd),Ad=vd&&/Qt\/\d+\.\d+/.test(nd),Nd=!pd&&/Chrome\/(\d+)/.exec(nd),Id=Nd&&+Nd[1],Od=/Opera\//.test(nd),Md=/Apple Computer/.test(navigator.vendor),Ud=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(nd),jd=/PhantomJS/.test(nd),Ld=Md&&(/Mobile\/\w+/.test(nd)||navigator.maxTouchPoints>2),Bd=/Android/.test(nd),Gd=Ld||Bd||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(nd),qd=Ld||/Mac/.test(od),zd=/\bCrOS\b/.test(nd),Xd=/win/i.test(od),gf=Od&&nd.match(/Version\/(\d*\.\d*)/);gf&&(gf=Number(gf[1])),gf&&gf>=15&&(Od=!1,vd=!0);var Yd=qd&&(Ad||Od&&(gf==null||gf<12.11)),Zd=ld||fd&&md>=9;function df(kd){return new RegExp("(^|\\s)"+kd+"(?:$|\\s)\\s*")}var Ef=function(kd,Hd){var Jd=kd.className,Qd=df(Hd).exec(Jd);if(Qd){var mf=Jd.slice(Qd.index+Qd[0].length);kd.className=Jd.slice(0,Qd.index)+(mf?Qd[1]+mf:"")}};function _f(kd){for(var Hd=kd.childNodes.length;Hd>0;--Hd)kd.removeChild(kd.firstChild);return kd}function xf(kd,Hd){return _f(kd).appendChild(Hd)}function vf(kd,Hd,Jd,Qd){var mf=document.createElement(kd);if(Jd&&(mf.className=Jd),Qd&&(mf.style.cssText=Qd),typeof Hd=="string")mf.appendChild(document.createTextNode(Hd));else if(Hd)for(var wf=0;wf<Hd.length;++wf)mf.appendChild(Hd[wf]);return mf}function Af(kd,Hd,Jd,Qd){var mf=vf(kd,Hd,Jd,Qd);return mf.setAttribute("role","presentation"),mf}var Df;document.createRange?Df=function(kd,Hd,Jd,Qd){var mf=document.createRange();return mf.setEnd(Qd||kd,Jd),mf.setStart(kd,Hd),mf}:Df=function(kd,Hd,Jd){var Qd=document.body.createTextRange();try{Qd.moveToElementText(kd.parentNode)}catch{return Qd}return Qd.collapse(!0),Qd.moveEnd("character",Jd),Qd.moveStart("character",Hd),Qd};function jf(kd,Hd){if(Hd.nodeType==3&&(Hd=Hd.parentNode),kd.contains)return kd.contains(Hd);do if(Hd.nodeType==11&&(Hd=Hd.host),Hd==kd)return!0;while(Hd=Hd.parentNode)}function Jf(kd){var Hd=kd.ownerDocument||kd,Jd;try{Jd=kd.activeElement}catch{Jd=Hd.body||null}for(;Jd&&Jd.shadowRoot&&Jd.shadowRoot.activeElement;)Jd=Jd.shadowRoot.activeElement;return Jd}function eh(kd,Hd){var Jd=kd.className;df(Hd).test(Jd)||(kd.className+=(Jd?" ":"")+Hd)}function th(kd,Hd){for(var Jd=kd.split(" "),Qd=0;Qd<Jd.length;Qd++)Jd[Qd]&&!df(Jd[Qd]).test(Hd)&&(Hd+=" "+Jd[Qd]);return Hd}var Uf=function(kd){kd.select()};Ld?Uf=function(kd){kd.selectionStart=0,kd.selectionEnd=kd.value.length}:fd&&(Uf=function(kd){try{kd.select()}catch{}});function Of(kd){return kd.display.wrapper.ownerDocument}function Wf(kd){return qf(kd.display.wrapper)}function qf(kd){return kd.getRootNode?kd.getRootNode():kd.ownerDocument}function zf(kd){return Of(kd).defaultView}function Tf(kd){var Hd=Array.prototype.slice.call(arguments,1);return function(){return kd.apply(null,Hd)}}function Sf(kd,Hd,Jd){Hd||(Hd={});for(var Qd in kd)kd.hasOwnProperty(Qd)&&(Jd!==!1||!Hd.hasOwnProperty(Qd))&&(Hd[Qd]=kd[Qd]);return Hd}function Yf(kd,Hd,Jd,Qd,mf){Hd==null&&(Hd=kd.search(/[^\s\u00a0]/),Hd==-1&&(Hd=kd.length));for(var wf=Qd||0,Gf=mf||0;;){var Qf=kd.indexOf(" ",wf);if(Qf<0||Qf>=Hd)return Gf+(Hd-wf);Gf+=Qf-wf,Gf+=Jd-Gf%Jd,wf=Qf+1}}var ih=function(){this.id=null,this.f=null,this.time=0,this.handler=Tf(this.onTimeout,this)};ih.prototype.onTimeout=function(kd){kd.id=0,kd.time<=+new Date?kd.f():setTimeout(kd.handler,kd.time-+new Date)},ih.prototype.set=function(kd,Hd){this.f=Hd;var Jd=+new Date+kd;(!this.id||Jd<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,kd),this.time=Jd)};function Th(kd,Hd){for(var J
b`.split(/\n/).length!=3?function(kd){for(var Hd=0,Jd=[],Qd=kd.length;Hd<=Qd;){var mf=kd.indexOf(`
`,Hd);mf==-1&&(mf=kd.length);var wf=kd.slice(Hd,kd.charAt(mf-1)=="\r"?mf-1:mf),Gf=wf.indexOf("\r");Gf!=-1?(Jd.push(wf.slice(0,Gf)),Hd+=Gf+1):(Jd.push(wf),Hd=mf+1)}return Jd}:function(kd){return kd.split(/\r\n?|\n/)},kh=window.getSelection?function(kd){try{return kd.selectionStart!=kd.selectionEnd}catch{return!1}}:function(kd){var Hd;try{Hd=kd.ownerDocument.selection.createRange()}catch{}return!Hd||Hd.parentElement()!=kd?!1:Hd.compareEndPoints("StartToEnd",Hd)!=0},vh=function(){var kd=vf("div");return"oncopy"in kd?!0:(kd.setAttribute("oncopy","return;"),typeof kd.oncopy=="function")}(),Rh=null;function sm(kd){if(Rh!=null)return Rh;var Hd=xf(kd,vf("span","x")),Jd=Hd.getBoundingClientRect(),Qd=Df(Hd,0,1).getBoundingClientRect();return Rh=Math.abs(Jd.left-Qd.left)>1}var Jh={},hm={};function pm(kd,Hd){arguments.length>2&&(Hd.dependencies=Array.prototype.slice.call(arguments,2)),Jh[kd]=Hd}function Uh(kd,Hd){hm[kd]=Hd}function Lm(kd){if(typeof kd=="string"&&hm.hasOwnProperty(kd))kd=hm[kd];else if(kd&&typeof kd.name=="string"&&hm.hasOwnProperty(kd.name)){var Hd=hm[kd.name];typeof Hd=="string"&&(Hd={name:Hd}),kd=Bh(Hd,kd),kd.name=Hd.name}else{if(typeof kd=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(kd))return Lm("application/xml");if(typeof kd=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(kd))return Lm("application/json")}return typeof kd=="string"?{name:kd}:kd||{name:"null"}}function Gm(kd,Hd){Hd=Lm(Hd);var Jd=Jh[Hd.name];if(!Jd)return Gm(kd,"text/plain");var Qd=Jd(kd,Hd);if(_g.hasOwnProperty(Hd.name)){var mf=_g[Hd.name];for(var wf in mf)mf.hasOwnProperty(wf)&&(Qd.hasOwnProperty(wf)&&(Qd["_"+wf]=Qd[wf]),Qd[wf]=mf[wf])}if(Qd.name=Hd.name,Hd.helperType&&(Qd.helperType=Hd.helperType),Hd.modeProps)for(var Gf in Hd.modeProps)Qd[Gf]=Hd.modeProps[Gf];return Qd}var _g={};function Km(kd,Hd){var Jd=_g.hasOwnProperty(kd)?_g[kd]:_g[kd]={};Sf(Hd,Jd)}function Sg(kd,Hd){if(Hd===!0)return Hd;if(kd.copyState)return kd.copyState(Hd);var Jd={};for(var Qd in Hd){var mf=Hd[Qd];mf instanceof Array&&(mf=mf.concat([])),Jd[Qd]=mf}return Jd}function t_(kd,Hd){for(var Jd;kd.innerMode&&(Jd=kd.innerMode(Hd),!(!Jd||Jd.mode==kd));)Hd=Jd.state,kd=Jd.mode;return Jd||{mode:kd,state:Hd}}function Zg(kd,Hd,Jd){return kd.startState?kd.startState(Hd,Jd):!0}var jg=function(kd,Hd,Jd){this.pos=this.start=0,this.string=kd,this.tabSize=Hd||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Jd};jg.prototype.eol=function(){return this.pos>=this.string.length},jg.prototype.sol=function(){return this.pos==this.lineStart},jg.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},jg.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},jg.prototype.eat=function(kd){var Hd=this.string.charAt(this.pos),Jd;if(typeof kd=="string"?Jd=Hd==kd:Jd=Hd&&(kd.test?kd.test(Hd):kd(Hd)),Jd)return++this.pos,Hd},jg.prototype.eatWhile=function(kd){for(var Hd=this.pos;this.eat(kd););return this.pos>Hd},jg.prototype.eatSpace=function(){for(var kd=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>kd},jg.prototype.skipToEnd=function(){this.pos=this.string.length},jg.prototype.skipTo=function(kd){var Hd=this.string.indexOf(kd,this.pos);if(Hd>-1)return this.pos=Hd,!0},jg.prototype.backUp=function(kd){this.pos-=kd},jg.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Yf(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Yf(this.string,this.lineStart,this.tabSize):0)},jg.prototype.indentation=function(){return Yf(this.string,null,this.tabSize)-(this.lineStart?Yf(this.string,this.lineStart,this.tabSize):0)},jg.prototype.match=function(kd,Hd,Jd){if(typeof kd=="string"){var Qd=function(Gf){return Jd?Gf.toLowerCase():Gf},mf=this.string.substr(this.pos,kd.length);if(Qd(mf)==Qd(kd))return Hd!==!1&&(this.pos+=kd.length),!0}else{var wf=this.string.slice(this.pos).match(kd);return wf&&wf.index>0?null:(wf&&Hd!==!1&&(this.pos+=wf[0].length),wf)}},jg.prototype.current=funct
`?(Wm=Wh.appendChild(vf("span",Dm[0]=="\r"?"␍":"␤","cm-invalidchar")),Wm.setAttribute("cm-text",Dm[0]),kd.col+=1):(Wm=kd.cm.options.specialCharPlaceholder(Dm[0]),Wm.setAttribute("cm-text",Dm[0]),fd&&md<9?Wh.appendChild(vf("span",[Wm])):Wh.appendChild(Wm),kd.col+=1);kd.map.push(kd.pos,kd.pos+1,Wm),kd.pos++}}if(kd.trailingSpace=Qf.charCodeAt(Hd.length-1)==32,Jd||Qd||mf||yh||wf||Gf){var yg=Jd||"";Qd&&(yg+=Qd),mf&&(yg+=mf);var lg=vf("span",[Wh],yg,wf);if(Gf)for(var xg in Gf)Gf.hasOwnProperty(xg)&&xg!="style"&&xg!="class"&&lg.setAttribute(xg,Gf[xg]);return kd.content.appendChild(lg)}kd.content.appendChild(Wh)}}function mv(kd,Hd){if(kd.length>1&&!/ /.test(kd))return kd;for(var Jd=Hd,Qd="",mf=0;mf<kd.length;mf++){var wf=kd.charAt(mf);wf==" "&&Jd&&(mf==kd.length-1||kd.charCodeAt(mf+1)==32)&&(wf=" "),Qd+=wf,Jd=wf==" "}return Qd}function x_(kd,Hd){return function(Jd,Qd,mf,wf,Gf,Qf,dh){mf=mf?mf+" cm-force-border":"cm-force-border";for(var yh=Jd.pos,Wh=yh+Qd.length;;){for(var um=void 0,Dm=0;Dm<Hd.length&&(um=Hd[Dm],!(um.to>yh&&um.from<=yh));Dm++);if(um.to>=Wh)return kd(Jd,Qd,mf,wf,Gf,Qf,dh);kd(Jd,Qd.slice(0,um.to-yh),mf,wf,null,Qf,dh),wf=null,Qd=Qd.slice(um.to-yh),yh=um.to}}}function Kb(kd,Hd,Jd,Qd){var mf=!Qd&&Jd.widgetNode;mf&&kd.map.push(kd.pos,kd.pos+Hd,mf),!Qd&&kd.cm.display.input.needsContentAttribute&&(mf||(mf=kd.content.appendChild(document.createElement("span"))),mf.setAttribute("cm-marker",Jd.id)),mf&&(kd.cm.display.input.setUneditable(mf),kd.content.appendChild(mf)),kd.pos+=Hd,kd.trailingSpace=!1}function oE(kd,Hd,Jd){var Qd=kd.markedSpans,mf=kd.text,wf=0;if(!Qd){for(var Gf=1;Gf<Jd.length;Gf+=2)Hd.addToken(Hd,mf.slice(wf,wf=Jd[Gf]),zE(Jd[Gf+1],Hd.cm.options));return}for(var Qf=mf.length,dh=0,yh=1,Wh="",um,Dm,Sm=0,jm,Wm,eg,dg,yg;;){if(Sm==dh){jm=Wm=eg=Dm="",yg=null,dg=null,Sm=1/0;for(var lg=[],xg=void 0,Og=0;Og<Qd.length;++Og){var Ig=Qd[Og],Wg=Ig.marker;if(Wg.type=="bookmark"&&Ig.from==dh&&Wg.widgetNode)lg.push(Wg);else if(Ig.from<=dh&&(Ig.to==null||Ig.to>dh||Wg.collapsed&&Ig.to==dh&&Ig.from==dh)){if(Ig.to!=null&&Ig.to!=dh&&Sm>Ig.to&&(Sm=Ig.to,Wm=""),Wg.className&&(jm+=" "+Wg.className),Wg.css&&(Dm=(Dm?Dm+";":"")+Wg.css),Wg.startStyle&&Ig.from==dh&&(eg+=" "+Wg.startStyle),Wg.endStyle&&Ig.to==Sm&&(xg||(xg=[])).push(Wg.endStyle,Ig.to),Wg.title&&((yg||(yg={})).title=Wg.title),Wg.attributes)for(var b_ in Wg.attributes)(yg||(yg={}))[b_]=Wg.attributes[b_];Wg.collapsed&&(!dg||rE(dg.marker,Wg)<0)&&(dg=Ig)}else Ig.from>dh&&Sm>Ig.from&&(Sm=Ig.from)}if(xg)for(var L_=0;L_<xg.length;L_+=2)xg[L_+1]==Sm&&(Wm+=" "+xg[L_]);if(!dg||dg.from==dh)for(var w_=0;w_<lg.length;++w_)Kb(Hd,0,lg[w_]);if(dg&&(dg.from||0)==dh){if(Kb(Hd,(dg.to==null?Qf+1:dg.to)-dh,dg.marker,dg.from==null),dg.to==null)return;dg.to==dh&&(dg=!1)}}if(dh>=Qf)break;for(var O_=Math.min(Qf,Sm);;){if(Wh){var j_=dh+Wh.length;if(!dg){var U_=j_>O_?Wh.slice(0,O_-dh):Wh;Hd.addToken(Hd,U_,um?um+jm:jm,eg,dh+U_.length==Sm?Wm:"",Dm,yg)}if(j_>=O_){Wh=Wh.slice(O_-dh),dh=O_;break}dh=j_,eg=""}Wh=mf.slice(wf,wf=Jd[yh++]),um=zE(Jd[yh++],Hd.cm.options)}}}function WE(kd,Hd,Jd){this.line=Hd,this.rest=A0(Hd),this.size=this.rest?_h(wh(this.rest))-Jd+1:1,this.node=this.text=null,this.hidden=$_(kd,Hd)}function j0(kd,Hd,Jd){for(var Qd=[],mf,wf=Hd;wf<Jd;wf=mf){var Gf=new WE(kd.doc,tg(kd.doc,wf),wf);mf=wf+Gf.size,Qd.push(Gf)}return Qd}var Fb=null;function YE(kd){Fb?Fb.ops.push(kd):kd.ownsGroup=Fb={ops:[kd],delayedCallbacks:[]}}function LS(kd){var Hd=kd.delayedCallbacks,Jd=0;do{for(;Jd<Hd.length;Jd++)Hd[Jd].call(null);for(var Qd=0;Qd<kd.ops.length;Qd++){var mf=kd.ops[Qd];if(mf.cursorActivityHandlers)for(;mf.cursorActivityCalled<mf.cursorActivityHandlers.length;)mf.cursorActivityHandlers[mf.cursorActivityCalled++].call(null,mf.cm)}}while(Jd<Hd.length)}function Wd(kd,Hd){var Jd=kd.ownsGroup;if(Jd)try{LS(Jd)}finally{Fb=null,Hd(Jd)}}var Fd=null;function Kd(kd,Hd){var Jd=ug(kd,Hd);if(Jd.length){var Qd=Array.prototype.slice.call(arguments,2),mf;Fb?mf=Fb.delayedCallbacks:Fd?mf=Fd:(mf=Fd=[],setTimeout(yf,0));for(var wf=function(Qf){mf.push(function(){return Jd[Qf].apply(null,Qd)})},Gf=0;Gf<Jd.length;++Gf)w
top: `+xg+"px; width: "+(Og??dh-lg)+`px;
height: `+(Ig-xg)+"px"))}function um(lg,xg,Og){var Ig=tg(mf,lg),Wg=Ig.text.length,b_,L_;function w_(U_,gb){return Vm(kd,Om(lg,U_),"div",Ig,gb)}function O_(U_,gb,lb){var W_=v_(kd,Ig,null,U_),H_=gb=="ltr"==(lb=="after")?"left":"right",k_=lb=="after"?W_.begin:W_.end-(/\s/.test(Ig.text.charAt(W_.end-1))?2:1);return w_(k_,H_)[H_]}var j_=Im(Ig,mf.direction);return fh(j_,xg||0,Og??Wg,function(U_,gb,lb,W_){var H_=lb=="ltr",k_=w_(U_,H_?"left":"right"),Sb=w_(gb-1,H_?"right":"left"),Qv=xg==null&&U_==0,ry=Og==null&&gb==Wg,pb=W_==0,y0=!j_||W_==j_.length-1;if(Sb.top-k_.top<=3){var rb=(yh?Qv:ry)&&pb,ET=(yh?ry:Qv)&&y0,v0=rb?Qf:(H_?k_:Sb).left,ny=ET?dh:(H_?Sb:k_).right;Wh(v0,k_.top,ny-v0,k_.bottom)}else{var iy,_b,Jv,ST;H_?(iy=yh&&Qv&&pb?Qf:k_.left,_b=yh?dh:O_(U_,lb,"before"),Jv=yh?Qf:O_(gb,lb,"after"),ST=yh&&ry&&y0?dh:Sb.right):(iy=yh?O_(U_,lb,"before"):Qf,_b=!yh&&Qv&&pb?dh:k_.right,Jv=!yh&&ry&&y0?Qf:Sb.left,ST=yh?O_(gb,lb,"after"):dh),Wh(iy,k_.top,_b-iy,k_.bottom),k_.bottom<Sb.top&&Wh(Qf,k_.bottom,null,Sb.top),Wh(Jv,Sb.top,ST-Jv,Sb.bottom)}(!b_||Ry(k_,b_)<0)&&(b_=k_),Ry(Sb,b_)<0&&(b_=Sb),(!L_||Ry(k_,L_)<0)&&(L_=k_),Ry(Sb,L_)<0&&(L_=Sb)}),{start:b_,end:L_}}var Dm=Hd.from(),Sm=Hd.to();if(Dm.line==Sm.line)um(Dm.line,Dm.ch,Sm.ch);else{var jm=tg(mf,Dm.line),Wm=tg(mf,Sm.line),eg=h_(jm)==h_(Wm),dg=um(Dm.line,Dm.ch,eg?jm.text.length+1:null).end,yg=um(Sm.line,eg?0:null,Sm.ch).start;eg&&(dg.top<yg.top-2?(Wh(dg.right,dg.top,null,dg.bottom),Wh(Qf,yg.top,yg.left,yg.bottom)):Wh(dg.right,dg.top,yg.left-dg.right,dg.bottom)),dg.bottom<yg.top&&Wh(Qf,dg.bottom,null,yg.top)}Jd.appendChild(wf)}function Oy(kd){if(kd.state.focused){var Hd=kd.display;clearInterval(Hd.blinker);var Jd=!0;Hd.cursorDiv.style.visibility="",kd.options.cursorBlinkRate>0?Hd.blinker=setInterval(function(){kd.hasFocus()||Cv(kd),Hd.cursorDiv.style.visibility=(Jd=!Jd)?"":"hidden"},kd.options.cursorBlinkRate):kd.options.cursorBlinkRate<0&&(Hd.cursorDiv.style.visibility="hidden")}}function G0(kd){kd.hasFocus()||(kd.display.input.focus(),kd.state.focused||GS(kd))}function Ev(kd){kd.state.delayingBlurEvent=!0,setTimeout(function(){kd.state.delayingBlurEvent&&(kd.state.delayingBlurEvent=!1,kd.state.focused&&Cv(kd))},100)}function GS(kd,Hd){kd.state.delayingBlurEvent&&!kd.state.draggingText&&(kd.state.delayingBlurEvent=!1),kd.options.readOnly!="nocursor"&&(kd.state.focused||(Eg(kd,"focus",kd,Hd),kd.state.focused=!0,eh(kd.display.wrapper,"CodeMirror-focused"),!kd.curOp&&kd.display.selForContextMenu!=kd.doc.sel&&(kd.display.input.reset(),vd&&setTimeout(function(){return kd.display.input.reset(!0)},20)),kd.display.input.receivedFocus()),Oy(kd))}function Cv(kd,Hd){kd.state.delayingBlurEvent||(kd.state.focused&&(Eg(kd,"blur",kd,Hd),kd.state.focused=!1,Ef(kd.display.wrapper,"CodeMirror-focused")),clearInterval(kd.display.blinker),setTimeout(function(){kd.state.focused||(kd.display.shift=!1)},150))}function tS(kd){for(var Hd=kd.display,Jd=Hd.lineDiv.offsetTop,Qd=Math.max(0,Hd.scroller.getBoundingClientRect().top),mf=Hd.lineDiv.getBoundingClientRect().top,wf=0,Gf=0;Gf<Hd.view.length;Gf++){var Qf=Hd.view[Gf],dh=kd.options.lineWrapping,yh=void 0,Wh=0;if(!Qf.hidden){if(mf+=Qf.line.height,fd&&md<8){var um=Qf.node.offsetTop+Qf.node.offsetHeight;yh=um-Jd,Jd=um}else{var Dm=Qf.node.getBoundingClientRect();yh=Dm.bottom-Dm.top,!dh&&Qf.text.firstChild&&(Wh=Qf.text.firstChild.getBoundingClientRect().right-Dm.left-1)}var Sm=Qf.line.height-yh;if((Sm>.005||Sm<-.005)&&(mf<Qd&&(wf-=Sm),Mg(Qf.line,yh),uE(Qf.line),Qf.rest))for(var jm=0;jm<Qf.rest.length;jm++)uE(Qf.rest[jm]);if(Wh>kd.display.sizerWidth){var Wm=Math.ceil(Wh/D0(kd.display));Wm>kd.display.maxLineLength&&(kd.display.maxLineLength=Wm,kd.display.maxLine=Qf.line,kd.display.maxLineChanged=!0)}}}Math.abs(wf)>2&&(Hd.scroller.scrollTop+=wf)}function uE(kd){if(kd.widgets)for(var Hd=0;Hd<kd.widgets.length;++Hd){var Jd=kd.widgets[Hd],Qd=Jd.node.parentNode;Qd&&(Jd.height=Qd.offsetHeight)}}function $y(kd,Hd,Jd){var Qd=Jd&&Jd.top!=null?Math.max(0,Jd.top):kd.scroller.scrollTop;Qd=Math.floor(Qd-Q_(kd));var mf=Jd&&Jd.bottom!=null?Jd.bottom:Qd+kd
top: `+(Hd.top-Jd.viewOffset-Q_(kd.display))+`px;
height: `+(Hd.bottom-Hd.top+p0(kd)+Jd.barHeight)+`px;
left: `+Hd.left+"px; width: "+Math.max(2,Hd.right-Hd.left)+"px;");kd.display.lineSpace.appendChild(Gf),Gf.scrollIntoView(mf),kd.display.lineSpace.removeChild(Gf)}}}function kx(kd,Hd,Jd,Qd){Qd==null&&(Qd=0);var mf;!kd.options.lineWrapping&&Hd==Jd&&(Jd=Hd.sticky=="before"?Om(Hd.line,Hd.ch+1,"before"):Hd,Hd=Hd.ch?Om(Hd.line,Hd.sticky=="before"?Hd.ch-1:Hd.ch,"after"):Hd);for(var wf=0;wf<5;wf++){var Gf=!1,Qf=$m(kd,Hd),dh=!Jd||Jd==Hd?Qf:$m(kd,Jd);mf={left:Math.min(Qf.left,dh.left),top:Math.min(Qf.top,dh.top)-Qd,right:Math.max(Qf.left,dh.left),bottom:Math.max(Qf.bottom,dh.bottom)+Qd};var yh=VS(kd,mf),Wh=kd.doc.scrollTop,um=kd.doc.scrollLeft;if(yh.scrollTop!=null&&(dE(kd,yh.scrollTop),Math.abs(kd.doc.scrollTop-Wh)>1&&(Gf=!0)),yh.scrollLeft!=null&&(e0(kd,yh.scrollLeft),Math.abs(kd.doc.scrollLeft-um)>1&&(Gf=!0)),!Gf)break}return mf}function kT(kd,Hd){var Jd=VS(kd,Hd);Jd.scrollTop!=null&&dE(kd,Jd.scrollTop),Jd.scrollLeft!=null&&e0(kd,Jd.scrollLeft)}function VS(kd,Hd){var Jd=kd.display,Qd=Qb(kd.display);Hd.top<0&&(Hd.top=0);var mf=kd.curOp&&kd.curOp.scrollTop!=null?kd.curOp.scrollTop:Jd.scroller.scrollTop,wf=BS(kd),Gf={};Hd.bottom-Hd.top>wf&&(Hd.bottom=Hd.top+wf);var Qf=kd.doc.height+Ay(Jd),dh=Hd.top<Qd,yh=Hd.bottom>Qf-Qd;if(Hd.top<mf)Gf.scrollTop=dh?0:Hd.top;else if(Hd.bottom>mf+wf){var Wh=Math.min(Hd.top,(yh?Qf:Hd.bottom)-wf);Wh!=mf&&(Gf.scrollTop=Wh)}var um=kd.options.fixedGutter?0:Jd.gutters.offsetWidth,Dm=kd.curOp&&kd.curOp.scrollLeft!=null?kd.curOp.scrollLeft:Jd.scroller.scrollLeft-um,Sm=Dy(kd)-Jd.gutters.offsetWidth,jm=Hd.right-Hd.left>Sm;return jm&&(Hd.right=Hd.left+Sm),Hd.left<10?Gf.scrollLeft=0:Hd.left<Dm?Gf.scrollLeft=Math.max(0,Hd.left+um-(jm?0:10)):Hd.right>Sm+Dm-3&&(Gf.scrollLeft=Hd.right+(jm?0:10)-Sm),Gf}function zS(kd,Hd){Hd!=null&&(rS(kd),kd.curOp.scrollTop=(kd.curOp.scrollTop==null?kd.doc.scrollTop:kd.curOp.scrollTop)+Hd)}function D_(kd){rS(kd);var Hd=kd.getCursor();kd.curOp.scrollToPos={from:Hd,to:Hd,margin:kd.options.cursorScrollMargin}}function z_(kd,Hd,Jd){(Hd!=null||Jd!=null)&&rS(kd),Hd!=null&&(kd.curOp.scrollLeft=Hd),Jd!=null&&(kd.curOp.scrollTop=Jd)}function Mx(kd,Hd){rS(kd),kd.curOp.scrollToPos=Hd}function rS(kd){var Hd=kd.curOp.scrollToPos;if(Hd){kd.curOp.scrollToPos=null;var Jd=Dg(kd,Hd.from),Qd=Dg(kd,Hd.to);WS(kd,Jd,Qd,Hd.margin)}}function WS(kd,Hd,Jd,Qd){var mf=VS(kd,{left:Math.min(Hd.left,Jd.left),top:Math.min(Hd.top,Jd.top)-Qd,right:Math.max(Hd.right,Jd.right),bottom:Math.max(Hd.bottom,Jd.bottom)+Qd});z_(kd,mf.scrollLeft,mf.scrollTop)}function dE(kd,Hd){Math.abs(kd.doc.scrollTop-Hd)<2||(ld||t0(kd,{top:Hd}),nS(kd,Hd,!0),ld&&t0(kd),hE(kd,100))}function nS(kd,Hd,Jd){Hd=Math.max(0,Math.min(kd.display.scroller.scrollHeight-kd.display.scroller.clientHeight,Hd)),!(kd.display.scroller.scrollTop==Hd&&!Jd)&&(kd.doc.scrollTop=Hd,kd.display.scrollbars.setScrollTop(Hd),kd.display.scroller.scrollTop!=Hd&&(kd.display.scroller.scrollTop=Hd))}function e0(kd,Hd,Jd,Qd){Hd=Math.max(0,Math.min(Hd,kd.display.scroller.scrollWidth-kd.display.scroller.clientWidth)),!((Jd?Hd==kd.doc.scrollLeft:Math.abs(kd.doc.scrollLeft-Hd)<2)&&!Qd)&&(kd.doc.scrollLeft=Hd,LT(kd),kd.display.scroller.scrollLeft!=Hd&&(kd.display.scroller.scrollLeft=Hd),kd.display.scrollbars.setScrollLeft(Hd))}function Py(kd){var Hd=kd.display,Jd=Hd.gutters.offsetWidth,Qd=Math.round(kd.doc.height+Ay(kd.display));return{clientHeight:Hd.scroller.clientHeight,viewHeight:Hd.wrapper.clientHeight,scrollWidth:Hd.scroller.scrollWidth,clientWidth:Hd.scroller.clientWidth,viewWidth:Hd.wrapper.clientWidth,barLeft:kd.options.fixedGutter?Jd:0,docHeight:Qd,scrollHeight:Qd+p0(kd)+Hd.barHeight,nativeBarWidth:Hd.nativeBarWidth,gutterWidth:Jd}}var Ub=function(kd,Hd,Jd){this.cm=Jd;var Qd=this.vert=vf("div",[vf("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),mf=this.horiz=vf("div",[vf("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Qd.tabIndex=mf.tabIndex=-1,kd(Qd),kd(mf),Fm(Qd,"scroll",function(){Qd.clientHeight&&Hd(Qd.scrollTop,"vertical")}),Fm(mf,"scroll",function(){mf.clientWidth&&Hd(mf.scrollLeft,"horizontal")}),thi
`},setDirection:J_(function(kd){kd!="rtl"&&(kd="ltr"),kd!=this.direction&&(this.direction=kd,this.iter(function(Hd){return Hd.order=null}),this.cm&&R0(this.cm))})}),mb.prototype.eachLine=mb.prototype.iter;var pS=0;function Yx(kd){var Hd=this;if(nx(Hd),!(kg(Hd,kd)||u_(Hd.display,kd))){Ng(kd),fd&&(pS=+new Date);var Jd=f0(Hd,kd,!0),Qd=kd.dataTransfer.files;if(!(!Jd||Hd.isReadOnly()))if(Qd&&Qd.length&&window.FileReader&&window.File)for(var mf=Qd.length,wf=Array(mf),Gf=0,Qf=function(){++Gf==mf&&m_(Hd,function(){Jd=Pg(Hd.doc,Jd);var Sm={from:Jd,to:Jd,text:Hd.doc.splitLines(wf.filter(function(jm){return jm!=null}).join(Hd.doc.lineSeparator())),origin:"paste"};jv(Hd.doc,Sm),Y0(Hd.doc,V0(Pg(Hd.doc,Jd),Pg(Hd.doc,z0(Sm))))})()},dh=function(Sm,jm){if(Hd.options.allowDropFileTypes&&Th(Hd.options.allowDropFileTypes,Sm.type)==-1){Qf();return}var Wm=new FileReader;Wm.onerror=function(){return Qf()},Wm.onload=function(){var eg=Wm.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(eg)){Qf();return}wf[jm]=eg,Qf()},Wm.readAsText(Sm)},yh=0;yh<Qd.length;yh++)dh(Qd[yh],yh);else{if(Hd.state.draggingText&&Hd.doc.sel.contains(Jd)>-1){Hd.state.draggingText(kd),setTimeout(function(){return Hd.display.input.focus()},20);return}try{var Wh=kd.dataTransfer.getData("Text");if(Wh){var um;if(Hd.state.draggingText&&!Hd.state.draggingText.copy&&(um=Hd.listSelections()),ob(Hd.doc,V0(Jd,Jd)),um)for(var Dm=0;Dm<um.length;++Dm)Jy(Hd.doc,"",um[Dm].anchor,um[Dm].head,"drag");Hd.replaceSelection(Wh,"around","paste"),Hd.display.input.focus()}}catch{}}}}function cT(kd,Hd){if(fd&&(!kd.state.draggingText||+new Date-pS<100)){C_(Hd);return}if(!(kg(kd,Hd)||u_(kd.display,Hd))&&(Hd.dataTransfer.setData("Text",kd.getSelection()),Hd.dataTransfer.effectAllowed="copyMove",Hd.dataTransfer.setDragImage&&!Md)){var Jd=vf("img",null,null,"position: fixed; left: 0; top: 0;");Jd.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Od&&(Jd.width=Jd.height=1,kd.display.wrapper.appendChild(Jd),Jd._top=Jd.offsetTop),Hd.dataTransfer.setDragImage(Jd,0,0),Od&&Jd.parentNode.removeChild(Jd)}}function Xg(kd,Hd){var Jd=f0(kd,Hd);if(Jd){var Qd=document.createDocumentFragment();eS(kd,Jd,Qd),kd.display.dragCursor||(kd.display.dragCursor=vf("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),kd.display.lineSpace.insertBefore(kd.display.dragCursor,kd.display.cursorDiv)),xf(kd.display.dragCursor,Qd)}}function nx(kd){kd.display.dragCursor&&(kd.display.lineSpace.removeChild(kd.display.dragCursor),kd.display.dragCursor=null)}function ix(kd){if(document.getElementsByClassName){for(var Hd=document.getElementsByClassName("CodeMirror"),Jd=[],Qd=0;Qd<Hd.length;Qd++){var mf=Hd[Qd].CodeMirror;mf&&Jd.push(mf)}Jd.length&&Jd[0].operation(function(){for(var wf=0;wf<Jd.length;wf++)kd(Jd[wf])})}}var qv=!1;function sx(){qv||(Kx(),qv=!0)}function Kx(){var kd;Fm(window,"resize",function(){kd==null&&(kd=setTimeout(function(){kd=null,ix(Xx)},100))}),Fm(window,"blur",function(){return ix(Cv)})}function Xx(kd){var Hd=kd.display;Hd.cachedCharWidth=Hd.cachedTextHeight=Hd.cachedPaddingH=null,Hd.scrollbarsClipped=!1,kd.setSize()}for(var eb={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"},SE=0;SE<10;SE++)eb[SE+48]=eb[SE+96]=String(SE);for(var tv=65;tv<=90;tv++)eb[tv]=String.fromCharCode(tv);for(var rv=1;rv<=12;rv++)eb[rv+111]=eb[rv+63235]="F"+rv;var g0={};g0.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(kd){return kd.toggleOverwrite()}};function k0(kd,Hd){var Jd=tg(kd.doc,Hd),Qd=h_(Jd);return Qd!=Jd&&(Hd=_h(Qd)),AE(!0,kd,Qd,Hd,1)}function lx(kd,Hd){var Jd=tg(kd.doc,Hd),Qd=iE(Jd);return Qd!=Jd&&(Hd=_h(Qd)),AE(!0,kd,Jd,Hd,-1)}function dT(kd,Hd){var Jd=k0(kd,Hd.line),Qd=tg(kd.doc,Jd.line),mf=Im(Qd,kd.doc.direction);if(!mf||mf[0].level==0){var wf=Math.max(Jd.ch,Qd.text.search(/\S/)),Gf=Hd.line==Jd.line&&Hd.ch<=wf&&Hd.ch;return Om(Jd.line,Gf?0:wf,Jd.sticky)}return Jd}function Vv(kd,Hd,Jd){if(typeof Hd=="string"&&(Hd=wE[Hd],!Hd))return!1;kd.display.input.ensurePolled();var Qd=kd.display.shift,mf=!1;try{kd.isReadOnly()&&(kd.state.suppressEdits=!0),Jd&&(kd.display.shift=!1),mf=Hd(kd)!=Nf}finally{kd.display.shift=Qd,kd.state.suppressEdits=!1}return mf}function Qx(kd,Hd,Jd){for(var Qd=0;Qd<kd.state.keyMaps.length;Qd++){var mf=Rb(Hd,kd.state.keyMaps[Qd],Jd,kd);if(mf)return mf}return kd.options.extraKeys&&Rb(Hd,kd.options.extraKeys,Jd,kd)||Rb(Hd,kd.options.keyMap,Jd,kd)}var Jx=new ih;function DE(kd,Hd,Jd,Qd){var mf=kd.state.keySeq;if(mf){if(fS(Hd))return"handled";if(/\'$/.test(Hd)?kd.state.keySeq=null:Jx.set(50,function(){kd.state.keySeq==mf&&(kd.state.keySeq=null,kd.display.input.reset())}),pT(kd,mf+" "+Hd,Jd,Qd))return!0}return pT(kd,Hd,Jd,Qd)}function pT(kd,Hd,Jd,Qd){var mf=Qx(kd,Hd,Qd);return mf=="multi"&&(kd.state.keySeq=Hd),mf=="handled"&&Kd(kd,"keyHandled",kd,Hd,Jd),(mf=="handled"||mf=="multi")&&(Ng(Jd),Oy(kd)),!!mf}function fT(kd,Hd){var Jd=TE(Hd,!0);return Jd?Hd.shiftKey&&!kd.state.keySeq?DE(kd,"Shift-"+Jd,Hd,function(Qd){return Vv(kd,Qd,!0)})||DE(kd,Jd,Hd,function(Qd){if(typeof Qd=="string"?/^go[A-Z]/.test(Qd):Qd.motion)return Vv(kd,Qd)}):DE(kd,Jd,Hd,function(Qd){return Vv(kd,Qd)}):!1}function Zx(kd,Hd,Jd){return DE(kd,"'"+Jd+"'",Hd,function(Qd){return Vv(kd,Qd,!0)})}var mS=null;function hT(kd){var Hd=this;if(!(kd.target&&kd.target!=Hd.display.input.getField())&&(Hd.curOp.focus=Jf(Wf(Hd)),!kg(Hd,kd))){fd&&md<11&&kd.keyCode==27&&(kd.returnValue=!1);var Jd=kd.keyCode;Hd.display.shift=Jd==16||kd.shiftKey;var Qd=fT(Hd,kd);Od&&(mS=Qd?Jd:null,!Qd&&Jd==88&&!vh&&(qd?kd.metaKey:kd.ctrlKey)&&Hd.replaceSelection("",null,"cut")),ld&&!qd&&!Qd&&Jd==46&&kd.shiftKey&&!kd.ctrlKey&&document.execCommand&&document.execCommand("cut"),Jd==18&&!/\bCodeMirror-crosshair\b/.test(Hd.display.lineDiv.className)&&Ab(Hd)}}function Ab(kd){var Hd=kd.display.lineDiv;eh(Hd,"CodeMirror-crosshair");function Jd(Qd){(Qd.keyCode==18||!Qd.altKey)&&(Ef(Hd,"CodeMirror-crosshair"),rg(document,"keyup",Jd),rg(document,"mouseover",Jd))}Fm(document,"keyup",Jd),Fm(document,"mouseover",Jd)}function s0(kd){kd.keyCode==16&&(this.doc.sel.shift=!1),kg(this,kd)}function ux(kd){var Hd=this;if(!(kd.target&&kd.target!=Hd.display.input.getField())&&!(u_(Hd.display,kd)||kg(Hd,kd)||kd.ctrlKey&&!kd.altKey||qd&&kd.metaKey)){var Jd=kd.keyCode,Qd=kd.charCode;if(Od&&Jd==mS){mS=null,Ng(kd);return}if(!(Od&&(!kd.which||kd.which<10)&&fT(Hd,kd))){var mf=String.fromCharCode(Qd??Jd);mf!="\b"&&(Zx(Hd,kd,mf)||Hd.display.input.onKeyPress(kd))}}}var e1=400,zv=function(kd,Hd,Jd){this.time=kd,this.pos=Hd,this.button=Jd};zv.prototype.compare=function(kd,Hd,Jd){return this.time+e1>kd&&og(Hd,this.pos)==0&&Jd==this.button};var _0,Wv;function dx(kd,Hd){var Jd=+new Date;return Wv&&Wv.compare(Jd,kd,Hd)?(_0=Wv=null,"triple"):_0&&_0.compare(Jd,kd,Hd)?(Wv=new zv(Jd,kd,Hd),_0=null,"double"):(_0=new zv(Jd,kd,Hd),Wv=null,"single")}function px(kd){var Hd=this,Jd=Hd.display;if(!(kg(Hd,kd)||Jd.activeTouch&&Jd.input.supportsTouch())){if(Jd.input.ensurePolled(),Jd.shift=kd.shiftKey,u_(Jd,kd)){vd||(Jd.scroller.draggable=!1,setTimeout(function(){return Jd.scroller.draggable=!0},100));return}if(!Kv(Hd,kd)){var Qd=f0(Hd,kd),mf=a_(kd),wf=Qd?dx(Qd,mf):"single";zf(Hd).focus(),mf==1&&Hd.state.selectingText&&Hd.state.selectingText(kd),!(Qd&&fx(Hd,mf,Qd,wf,kd))&&(mf==1?Qd?NE(Hd,Qd,wf,kd):N_(kd)==Jd.scroller&&Ng(kd):mf==2?(Qd&&kv(Hd.doc,Qd),setTimeout(function(){return Jd.input.focus()},20)):mf==3&&(Zd?Hd.display.input.onContextMenu(kd):Ev(Hd)))}}}function fx(kd,Hd,Jd,Qd,mf){var wf="Click";
`)==Hd){if(Qd.ranges.length%Gb.text.length==0){yh=[];for(var Wh=0;Wh<Gb.text.length;Wh++)yh.push(wf.splitLines(Gb.text[Wh]))}}else dh.length==Qd.ranges.length&&kd.options.pasteLinesPerSelection&&(yh=Ah(dh,function(dg){return[dg]}));for(var um=kd.curOp.updateInput,Dm=Qd.ranges.length-1;Dm>=0;Dm--){var Sm=Qd.ranges[Dm],jm=Sm.from(),Wm=Sm.to();Sm.empty()&&(Jd&&Jd>0?jm=Om(jm.line,jm.ch-Jd):kd.state.overwrite&&!Qf?Wm=Om(Wm.line,Math.min(tg(wf,Wm.line).text.length,Wm.ch+wh(dh).length)):Qf&&Gb&&Gb.lineWise&&Gb.text.join(`
`)==dh.join(`
`)&&(jm=Wm=Om(jm.line,0)));var eg={from:jm,to:Wm,text:yh?yh[Dm%yh.length]:dh,origin:mf||(Qf?"paste":kd.state.cutIncoming>Gf?"cut":"+input")};jv(kd.doc,eg),Kd(kd,"inputRead",kd,eg)}Hd&&!Qf&&SS(kd,Hd),D_(kd),kd.curOp.updateInput<2&&(kd.curOp.updateInput=um),kd.curOp.typing=!0,kd.state.pasteIncoming=kd.state.cutIncoming=-1}function b0(kd,Hd){var Jd=kd.clipboardData&&kd.clipboardData.getData("Text");if(Jd)return kd.preventDefault(),!Hd.isReadOnly()&&!Hd.options.disableInput&&Hd.hasFocus()&&db(Hd,function(){return vT(Hd,Jd,0,null,"paste")}),!0}function SS(kd,Hd){if(!(!kd.options.electricChars||!kd.options.smartIndent))for(var Jd=kd.doc.sel,Qd=Jd.ranges.length-1;Qd>=0;Qd--){var mf=Jd.ranges[Qd];if(!(mf.head.ch>100||Qd&&Jd.ranges[Qd-1].head.line==mf.head.line)){var wf=kd.getModeAt(mf.head),Gf=!1;if(wf.electricChars){for(var Qf=0;Qf<wf.electricChars.length;Qf++)if(Hd.indexOf(wf.electricChars.charAt(Qf))>-1){Gf=OE(kd,mf.head.line,"smart");break}}else wf.electricInput&&wf.electricInput.test(tg(kd.doc,mf.head.line).text.slice(0,mf.head.ch))&&(Gf=OE(kd,mf.head.line,"smart"));Gf&&Kd(kd,"electricInput",kd,mf.head.line)}}}function TS(kd){for(var Hd=[],Jd=[],Qd=0;Qd<kd.doc.sel.ranges.length;Qd++){var mf=kd.doc.sel.ranges[Qd].head.line,wf={anchor:Om(mf,0),head:Om(mf+1,0)};Jd.push(wf),Hd.push(kd.getRange(wf.anchor,wf.head))}return{text:Hd,ranges:Jd}}function kE(kd,Hd,Jd,Qd){kd.setAttribute("autocorrect",Jd?"on":"off"),kd.setAttribute("autocapitalize",Qd?"on":"off"),kd.setAttribute("spellcheck",!!Hd)}function ME(){var kd=vf("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),Hd=vf("div",[kd],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return vd?kd.style.width="1000px":kd.setAttribute("wrap","off"),Ld&&(kd.style.border="1px solid black"),Hd}function Xv(kd){var Hd=kd.optionHandlers,Jd=kd.helpers={};kd.prototype={constructor:kd,focus:function(){zf(this).focus(),this.display.input.focus()},setOption:function(Qd,mf){var wf=this.options,Gf=wf[Qd];wf[Qd]==mf&&Qd!="mode"||(wf[Qd]=mf,Hd.hasOwnProperty(Qd)&&m_(this,Hd[Qd])(this,mf,Gf),Eg(this,"optionChange",this,Qd))},getOption:function(Qd){return this.options[Qd]},getDoc:function(){return this.doc},addKeyMap:function(Qd,mf){this.state.keyMaps[mf?"push":"unshift"](xE(Qd))},removeKeyMap:function(Qd){for(var mf=this.state.keyMaps,wf=0;wf<mf.length;++wf)if(mf[wf]==Qd||mf[wf].name==Qd)return mf.splice(wf,1),!0},addOverlay:Bg(function(Qd,mf){var wf=Qd.token?Qd:kd.getMode(this.options,Qd);if(wf.startState)throw new Error("Overlays may not be stateful.");mh(this.state.overlays,{mode:wf,modeSpec:Qd,opaque:mf&&mf.opaque,priority:mf&&mf.priority||0},function(Gf){return Gf.priority}),this.state.modeGen++,Eb(this)}),removeOverlay:Bg(function(Qd){for(var mf=this.state.overlays,wf=0;wf<mf.length;++wf){var Gf=mf[wf].modeSpec;if(Gf==Qd||typeof Qd=="string"&&Gf.name==Qd){mf.splice(wf,1),this.state.modeGen++,Eb(this);return}}}),indentLine:Bg(function(Qd,mf,wf){typeof mf!="string"&&typeof mf!="number"&&(mf==null?mf=this.options.smartIndent?"smart":"prev":mf=mf?"add":"subtract"),Um(this.doc,Qd)&&OE(this,Qd,mf,wf)}),indentSelection:Bg(function(Qd){for(var mf=this.doc.sel.ranges,wf=-1,Gf=0;Gf<mf.length;Gf++){var Qf=mf[Gf];if(Qf.empty())Qf.head.line>wf&&(OE(this,Qf.head.line,Qd,!0),wf=Qf.head.line,Gf==this.doc.sel.primIndex&&D_(this));else{var dh=Qf.from(),yh=Qf.to(),Wh=Math.max(wf,dh.line);wf=Math.min(this.lastLine(),yh.line-(yh.ch?0:1))+1;for(var um=Wh;um<wf;++um)OE(this,um,Qd);var Dm=this.doc.sel.ranges;dh.ch==0&&mf.length==Dm.length&&Dm[Gf].from().ch>0&&Hb(this.doc,Gf,new d_(dh,Dm[Gf].to()),ph)}}}),getTokenAt:function(Qd,mf){return L0(this,Qd,mf)},getLineTokens:function(Qd,mf){return L0(this,Om(Qd),mf,!0)},getTokenTypeAt:function(Qd){Qd=Pg(this.doc,Qd);var mf=u0(this,tg(this.doc,Qd.line)),wf=0,Gf=(mf.length-1)/2,Qf=Qd.ch,dh;if(Qf==0)dh=mf[2];else for(;;){var yh=wf+Gf>>1;if((yh?mf[yh*2-1]:0)>=Qf)Gf=yh;else if(mf[yh*2+1]<Qf)wf=yh+1;else{dh=mf[yh*2+2];break}}var Wh=dh?dh.indexOf("overlay "):-1;return Wh<0?dh:Wh==0?null:d
`,eg=gm(Wm,Sm)?"w":Dm&&Wm==`
`?"n":!Dm||/\s/.test(Wm)?null:"p";if(Dm&&!jm&&!eg&&(eg="s"),um&&um!=eg){Jd<0&&(Jd=1,Wh(),Hd.sticky="after");break}if(eg&&(um=eg),Jd>0&&!Wh(!jm))break}var dg=Lv(kd,Hd,wf,Gf,!0);return zg(wf,dg)&&(dg.hitSide=!0),dg}function $E(kd,Hd,Jd,Qd){var mf=kd.doc,wf=Hd.left,Gf;if(Qd=="page"){var Qf=Math.min(kd.display.wrapper.clientHeight,zf(kd).innerHeight||mf(kd).documentElement.clientHeight),dh=Math.max(Qf-.5*Qb(kd.display),3);Gf=(Jd>0?Hd.bottom:Hd.top)+Jd*dh}else Qd=="line"&&(Gf=Jd>0?Hd.bottom+3:Hd.top-3);for(var yh;yh=s_(kd,wf,Gf),!!yh.outside;){if(Jd<0?Gf<=0:Gf>=mf.height){yh.hitSide=!0;break}Gf+=Jd*5}return yh}var p_=function(kd){this.cm=kd,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ih,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};p_.prototype.init=function(kd){var Hd=this,Jd=this,Qd=Jd.cm,mf=Jd.div=kd.lineDiv;mf.contentEditable=!0,kE(mf,Qd.options.spellcheck,Qd.options.autocorrect,Qd.options.autocapitalize);function wf(Qf){for(var dh=Qf.target;dh;dh=dh.parentNode){if(dh==mf)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(dh.className))break}return!1}Fm(mf,"paste",function(Qf){!wf(Qf)||kg(Qd,Qf)||b0(Qf,Qd)||md<=11&&setTimeout(m_(Qd,function(){return Hd.updateFromDOM()}),20)}),Fm(mf,"compositionstart",function(Qf){Hd.composing={data:Qf.data,done:!1}}),Fm(mf,"compositionupdate",function(Qf){Hd.composing||(Hd.composing={data:Qf.data,done:!1})}),Fm(mf,"compositionend",function(Qf){Hd.composing&&(Qf.data!=Hd.composing.data&&Hd.readFromDOMSoon(),Hd.composing.done=!0)}),Fm(mf,"touchstart",function(){return Jd.forceCompositionEnd()}),Fm(mf,"input",function(){Hd.composing||Hd.readFromDOMSoon()});function Gf(Qf){if(!(!wf(Qf)||kg(Qd,Qf))){if(Qd.somethingSelected())ES({lineWise:!1,text:Qd.getSelections()}),Qf.type=="cut"&&Qd.replaceSelection("",null,"cut");else if(Qd.options.lineWiseCopyCut){var dh=TS(Qd);ES({lineWise:!0,text:dh.text}),Qf.type=="cut"&&Qd.operation(function(){Qd.setSelections(dh.ranges,0,ph),Qd.replaceSelection("",null,"cut")})}else return;if(Qf.clipboardData){Qf.clipboardData.clearData();var yh=Gb.text.join(`
`);if(Qf.clipboardData.setData("Text",yh),Qf.clipboardData.getData("Text")==yh){Qf.preventDefault();return}}var Wh=ME(),um=Wh.firstChild;kE(um),Qd.display.lineSpace.insertBefore(Wh,Qd.display.lineSpace.firstChild),um.value=Gb.text.join(`
`);var Dm=Jf(qf(mf));Uf(um),setTimeout(function(){Qd.display.lineSpace.removeChild(Wh),Dm.focus(),Dm==mf&&Jd.showPrimarySelection()},50)}}Fm(mf,"copy",Gf),Fm(mf,"cut",Gf)},p_.prototype.screenReaderLabelChanged=function(kd){kd?this.div.setAttribute("aria-label",kd):this.div.removeAttribute("aria-label")},p_.prototype.prepareSelection=function(){var kd=HS(this.cm,!1);return kd.focus=Jf(qf(this.div))==this.div,kd},p_.prototype.showSelection=function(kd,Hd){!kd||!this.cm.display.view.length||((kd.focus||Hd)&&this.showPrimarySelection(),this.showMultipleSelections(kd))},p_.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},p_.prototype.showPrimarySelection=function(){var kd=this.getSelection(),Hd=this.cm,Jd=Hd.doc.sel.primary(),Qd=Jd.from(),mf=Jd.to();if(Hd.display.viewTo==Hd.display.viewFrom||Qd.line>=Hd.display.viewTo||mf.line<Hd.display.viewFrom){kd.removeAllRanges();return}var wf=tb(Hd,kd.anchorNode,kd.anchorOffset),Gf=tb(Hd,kd.focusNode,kd.focusOffset);if(!(wf&&!wf.bad&&Gf&&!Gf.bad&&og(fb(wf,Gf),Qd)==0&&og(M_(wf,Gf),mf)==0)){var Qf=Hd.display.view,dh=Qd.line>=Hd.display.viewFrom&&J0(Hd,Qd)||{node:Qf[0].measure.map[2],offset:0},yh=mf.line<Hd.display.viewTo&&J0(Hd,mf);if(!yh){var Wh=Qf[Qf.length-1].measure,um=Wh.maps?Wh.maps[Wh.maps.length-1]:Wh.map;yh={node:um[um.length-1],offset:um[um.length-2]-um[um.length-3]}}if(!dh||!yh){kd.removeAllRanges();return}var Dm=kd.rangeCount&&kd.getRangeAt(0),Sm;try{Sm=Df(dh.node,dh.offset,yh.offset,yh.node)}catch{}Sm&&(!ld&&Hd.state.focused?(kd.collapse(dh.node,dh.offset),Sm.collapsed||(kd.removeAllRanges(),kd.addRange(Sm))):(kd.removeAllRanges(),kd.addRange(Sm)),Dm&&kd.anchorNode==null?kd.addRange(Dm):ld&&this.startGracePeriod()),this.rememberSelection()}},p_.prototype.startGracePeriod=function(){var kd=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){kd.gracePeriod=!1,kd.selectionChanged()&&kd.cm.operation(function(){return kd.cm.curOp.selectionChanged=!0})},20)},p_.prototype.showMultipleSelections=function(kd){xf(this.cm.display.cursorDiv,kd.cursors),xf(this.cm.display.selectionDiv,kd.selection)},p_.prototype.rememberSelection=function(){var kd=this.getSelection();this.lastAnchorNode=kd.anchorNode,this.lastAnchorOffset=kd.anchorOffset,this.lastFocusNode=kd.focusNode,this.lastFocusOffset=kd.focusOffset},p_.prototype.selectionInEditor=function(){var kd=this.getSelection();if(!kd.rangeCount)return!1;var Hd=kd.getRangeAt(0).commonAncestorContainer;return jf(this.div,Hd)},p_.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Jf(qf(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},p_.prototype.blur=function(){this.div.blur()},p_.prototype.getField=function(){return this.div},p_.prototype.supportsTouch=function(){return!0},p_.prototype.receivedFocus=function(){var kd=this,Hd=this;this.selectionInEditor()?setTimeout(function(){return kd.pollSelection()},20):db(this.cm,function(){return Hd.cm.curOp.selectionChanged=!0});function Jd(){Hd.cm.state.focused&&(Hd.pollSelection(),Hd.polling.set(Hd.cm.options.pollInterval,Jd))}this.polling.set(this.cm.options.pollInterval,Jd)},p_.prototype.selectionChanged=function(){var kd=this.getSelection();return kd.anchorNode!=this.lastAnchorNode||kd.anchorOffset!=this.lastAnchorOffset||kd.focusNode!=this.lastFocusNode||kd.focusOffset!=this.lastFocusOffset},p_.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var kd=this.getSelection(),Hd=this.cm;if(Bd&&Nd&&this.cm.display.gutterSpecs.length&&n1(kd.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Jd=tb(Hd,kd.anchorNode,kd.anchorOffset),Qd=tb(Hd,kd.focusNode,kd.focusOffset);Jd&&Qd&&db(Hd,function(){sb(Hd.doc,V0(Jd,Qd),ph),(Jd.bad||Qd.bad)&&(Hd.curOp.selectionChanged=!0)})}}},p_.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMT
`),Uf(mf))}else return;Gf.type=="cut"&&(Qd.state.cutIncoming=+new Date)}}Fm(mf,"cut",wf),Fm(mf,"copy",wf),Fm(kd.scroller,"paste",function(Gf){if(!(u_(kd,Gf)||kg(Qd,Gf))){if(!mf.dispatchEvent){Qd.state.pasteIncoming=+new Date,Jd.focus();return}var Qf=new Event("paste");Qf.clipboardData=Gf.clipboardData,mf.dispatchEvent(Qf)}}),Fm(kd.lineSpace,"selectstart",function(Gf){u_(kd,Gf)||Ng(Gf)}),Fm(mf,"compositionstart",function(){var Gf=Qd.getCursor("from");Jd.composing&&Jd.composing.range.clear(),Jd.composing={start:Gf,range:Qd.markText(Gf,Qd.getCursor("to"),{className:"CodeMirror-composing"})}}),Fm(mf,"compositionend",function(){Jd.composing&&(Jd.poll(),Jd.composing.range.clear(),Jd.composing=null)})},P_.prototype.createField=function(kd){this.wrapper=ME(),this.textarea=this.wrapper.firstChild;var Hd=this.cm.options;kE(this.textarea,Hd.spellcheck,Hd.autocorrect,Hd.autocapitalize)},P_.prototype.screenReaderLabelChanged=function(kd){kd?this.textarea.setAttribute("aria-label",kd):this.textarea.removeAttribute("aria-label")},P_.prototype.prepareSelection=function(){var kd=this.cm,Hd=kd.display,Jd=kd.doc,Qd=HS(kd);if(kd.options.moveInputWithCursor){var mf=$m(kd,Jd.sel.primary().head,"div"),wf=Hd.wrapper.getBoundingClientRect(),Gf=Hd.lineDiv.getBoundingClientRect();Qd.teTop=Math.max(0,Math.min(Hd.wrapper.clientHeight-10,mf.top+Gf.top-wf.top)),Qd.teLeft=Math.max(0,Math.min(Hd.wrapper.clientWidth-10,mf.left+Gf.left-wf.left))}return Qd},P_.prototype.showSelection=function(kd){var Hd=this.cm,Jd=Hd.display;xf(Jd.cursorDiv,kd.cursors),xf(Jd.selectionDiv,kd.selection),kd.teTop!=null&&(this.wrapper.style.top=kd.teTop+"px",this.wrapper.style.left=kd.teLeft+"px")},P_.prototype.reset=function(kd){if(!(this.contextMenuPending||this.composing&&kd)){var Hd=this.cm;if(this.resetting=!0,Hd.somethingSelected()){this.prevInput="";var Jd=Hd.getSelection();this.textarea.value=Jd,Hd.state.focused&&Uf(this.textarea),fd&&md>=9&&(this.hasSelection=Jd)}else kd||(this.prevInput=this.textarea.value="",fd&&md>=9&&(this.hasSelection=null));this.resetting=!1}},P_.prototype.getField=function(){return this.textarea},P_.prototype.supportsTouch=function(){return!1},P_.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Gd||Jf(qf(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},P_.prototype.blur=function(){this.textarea.blur()},P_.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},P_.prototype.receivedFocus=function(){this.slowPoll()},P_.prototype.slowPoll=function(){var kd=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){kd.poll(),kd.cm.state.focused&&kd.slowPoll()})},P_.prototype.fastPoll=function(){var kd=!1,Hd=this;Hd.pollingFast=!0;function Jd(){var Qd=Hd.poll();!Qd&&!kd?(kd=!0,Hd.polling.set(60,Jd)):(Hd.pollingFast=!1,Hd.slowPoll())}Hd.polling.set(20,Jd)},P_.prototype.poll=function(){var kd=this,Hd=this.cm,Jd=this.textarea,Qd=this.prevInput;if(this.contextMenuPending||this.resetting||!Hd.state.focused||kh(Jd)&&!Qd&&!this.composing||Hd.isReadOnly()||Hd.options.disableInput||Hd.state.keySeq)return!1;var mf=Jd.value;if(mf==Qd&&!Hd.somethingSelected())return!1;if(fd&&md>=9&&this.hasSelection===mf||qd&&/[\uf700-\uf7ff]/.test(mf))return Hd.display.input.reset(),!1;if(Hd.doc.sel==Hd.display.selForContextMenu){var wf=mf.charCodeAt(0);if(wf==8203&&!Qd&&(Qd=""),wf==8666)return this.reset(),this.cm.execCommand("undo")}for(var Gf=0,Qf=Math.min(Qd.length,mf.length);Gf<Qf&&Qd.charCodeAt(Gf)==mf.charCodeAt(Gf);)++Gf;return db(Hd,function(){vT(Hd,mf.slice(Gf),Qd.length-Gf,null,kd.composing?"*compose":null),mf.length>1e3||mf.indexOf(`
`)>-1?Jd.value=kd.prevInput="":kd.prevInput=mf,kd.composing&&(kd.composing.range.clear(),kd.composing.range=Hd.markText(kd.composing.start,Hd.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},P_.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},P_.prototype.onKeyPress=function(){fd&&md>=9&&(this.hasSelection=null),this.fastPoll()},P_.prototype.onContextMenu=function(kd){var Hd=this,Jd=Hd.cm,Qd=Jd.display,mf=Hd.textarea;Hd.contextMenuPending&&Hd.contextMenuPending();var wf=f0(Jd,kd),Gf=Qd.scroller.scrollTop;if(!wf||Od)return;var Qf=Jd.options.resetSelectionOnContextMenu;Qf&&Jd.doc.sel.contains(wf)==-1&&m_(Jd,sb)(Jd.doc,V0(wf),ph);var dh=mf.style.cssText,yh=Hd.wrapper.style.cssText,Wh=Hd.wrapper.offsetParent.getBoundingClientRect();Hd.wrapper.style.cssText="position: static",mf.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(kd.clientY-Wh.top-5)+"px; left: "+(kd.clientX-Wh.left-5)+`px;
z-index: 1000; background: `+(fd?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var um;vd&&(um=mf.ownerDocument.defaultView.scrollY),Qd.input.focus(),vd&&mf.ownerDocument.defaultView.scrollTo(null,um),Qd.input.reset(),Jd.somethingSelected()||(mf.value=Hd.prevInput=" "),Hd.contextMenuPending=Sm,Qd.selForContextMenu=Jd.doc.sel,clearTimeout(Qd.detectingSelectAll);function Dm(){if(mf.selectionStart!=null){var Wm=Jd.somethingSelected(),eg=""+(Wm?mf.value:"");mf.value="⇚",mf.value=eg,Hd.prevInput=Wm?"":"",mf.selectionStart=1,mf.selectionEnd=eg.length,Qd.selForContextMenu=Jd.doc.sel}}function Sm(){if(Hd.contextMenuPending==Sm&&(Hd.contextMenuPending=!1,Hd.wrapper.style.cssText=yh,mf.style.cssText=dh,fd&&md<9&&Qd.scrollbars.setScrollTop(Qd.scroller.scrollTop=Gf),mf.selectionStart!=null)){(!fd||fd&&md<9)&&Dm();var Wm=0,eg=function(){Qd.selForContextMenu==Jd.doc.sel&&mf.selectionStart==0&&mf.selectionEnd>0&&Hd.prevInput==""?m_(Jd,Fv)(Jd):Wm++<10?Qd.detectingSelectAll=setTimeout(eg,500):(Qd.selForContextMenu=null,Qd.input.reset())};Qd.detectingSelectAll=setTimeout(eg,200)}}if(fd&&md>=9&&Dm(),Zd){C_(kd);var jm=function(){rg(window,"mouseup",jm),setTimeout(Sm,20)};Fm(window,"mouseup",jm)}else setTimeout(Sm,50)},P_.prototype.readOnlyChanged=function(kd){kd||this.reset(),this.textarea.disabled=kd=="nocursor",this.textarea.readOnly=!!kd},P_.prototype.setUneditable=function(){},P_.prototype.needsContentAttribute=!1;function vx(kd,Hd){if(Hd=Hd?Sf(Hd):{},Hd.value=kd.value,!Hd.tabindex&&kd.tabIndex&&(Hd.tabindex=kd.tabIndex),!Hd.placeholder&&kd.placeholder&&(Hd.placeholder=kd.placeholder),Hd.autofocus==null){var Jd=Jf(qf(kd));Hd.autofocus=Jd==kd||kd.getAttribute("autofocus")!=null&&Jd==document.body}function Qd(){kd.value=Qf.getValue()}var mf;if(kd.form&&(Fm(kd.form,"submit",Qd),!Hd.leaveSubmitMethodAlone)){var wf=kd.form;mf=wf.submit;try{var Gf=wf.submit=function(){Qd(),wf.submit=mf,wf.submit(),wf.submit=Gf}}catch{}}Hd.finishInit=function(dh){dh.save=Qd,dh.getTextArea=function(){return kd},dh.toTextArea=function(){dh.toTextArea=isNaN,Qd(),kd.parentNode.removeChild(dh.getWrapperElement()),kd.style.display="",kd.form&&(rg(kd.form,"submit",Qd),!Hd.leaveSubmitMethodAlone&&typeof kd.form.submit=="function"&&(kd.form.submit=mf))}},kd.style.display="none";var Qf=o_(function(dh){return kd.parentNode.insertBefore(dh,kd.nextSibling)},Hd);return Qf}function a1(kd){kd.off=rg,kd.on=Fm,kd.wheelEventPixels=Gx,kd.Doc=mb,kd.splitLines=Pf,kd.countColumn=Yf,kd.findColumn=Rf,kd.isWordChar=Pm,kd.Pass=Nf,kd.signal=Eg,kd.Line=Yb,kd.changeEnd=z0,kd.scrollbarModel=Ly,kd.Pos=Om,kd.cmpPos=og,kd.modes=Jh,kd.mimeModes=hm,kd.resolveMode=Lm,kd.getMode=Gm,kd.modeExtensions=_g,kd.extendMode=Km,kd.copyState=Sg,kd.startState=Zg,kd.innerMode=t_,kd.commands=wE,kd.keyMap=g0,kd.keyName=TE,kd.isModifierKey=fS,kd.lookupKey=Rb,kd.normalizeKeyMap=Ib,kd.StringStream=jg,kd.SharedTextMarker=Gv,kd.TextMarker=a0,kd.LineWidget=ev,kd.e_preventDefault=Ng,kd.e_stopPropagation=g_,kd.e_stop=C_,kd.addClass=eh,kd.contains=jf,kd.rmClass=Ef,kd.keyNames=eb}yT(o_),Xv(o_);var Ex="iter insert remove copy getEditor constructor".split(" ");for(var xS in mb.prototype)mb.prototype.hasOwnProperty(xS)&&Th(Ex,xS)<0&&(o_.prototype[xS]=function(kd){return function(){return kd.apply(this.doc,arguments)}}(mb.prototype[xS]));return Kg(mb),o_.inputStyles={textarea:P_,contenteditable:p_},o_.defineMode=function(kd){!o_.defaults.mode&&kd!="null"&&(o_.defaults.mode=kd),pm.apply(this,arguments)},o_.defineMIME=Uh,o_.defineMode("null",function(){return{token:function(kd){return kd.skipToEnd()}}}),o_.defineMIME("text/plain","null"),o_.defineExtension=function(kd,Hd){o_.prototype[kd]=Hd},o_.defineDocExtension=function(kd,Hd){mb.prototype[kd]=Hd},o_.fromTextArea=vx,a1(o_),o_.version="5.65.18",o_})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);var qt$1=Object.defineProperty,Jt$1=(Ra,qa,nd)=>qa in Ra?qt$1(Ra,qa,{enumerable:!0,configurable:!0,writable:!0,value:nd}):Ra[qa]=nd,x$1=(Ra,qa,nd)=>Jt$1
<style>
.hljs.code__pre > .mac-sign {
display: flex;
}
</style>
`),Ah+=`
<style>
.code__pre {
padding: 0 !important;
}
.hljs.code__pre code {
display: -webkit-box;
padding: 0.5em 1em 1em;
overflow-x: auto;
text-indent: 0;
}
</style>
`,vd.value=Ah},Of=()=>{const Ah=css2json(Ef.value.getValue()),mh=customCssWithTemplate(Ah,Od.value,customizeTheme(themeMap[Ad.value],{fontSize:jd.value,color:Od.value}));th.setOptions({theme:mh}),Uf()};onMounted(()=>{const Ah=document.querySelector("#cssEditor");Ah.value=Af().content;const mh=Ra.value?"darcula":"xq-light";Ef.value=markRaw(CodeMirror.fromTextArea(Ah,{mode:"css",theme:mh,lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Bh){formatDoc(Bh.getValue(),"css").then(Tm=>{Af().content=Tm,Bh.setValue(Tm)})}}})),Ef.value.on("keyup",(im,Bh)=>{(Bh.keyCode>=65&&Bh.keyCode<=90||Bh.keyCode===189)&&im.showHint(Bh)}),Ef.value.on("update",()=>{Of(),Af().content=Ef.value.getValue()})}),watch(Ra,()=>{var mh,im;const Ah=Ra.value?"darcula":"xq-light";(im=(mh=toRaw(Ef.value))==null?void 0:mh.setOption)==null||im.call(mh,"theme",Ah)});const Wf=()=>{dd.value=!1,nd.value=!0,Ad.value=themeOptions[0].value,Nd.value=fontFamilyOptions[0].value,Nd.value=fontFamilyOptions[0].value,Id.value=fontSizeOptions[2].value,Od.value=colorOptions[0].value,Md.value=codeBlockThemeOptions[2].value,Ud.value=legendOptions[3].value,vf.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:xf.value||DEFAULT_CSS_CONTENT}]},Ef.value.setValue(DEFAULT_CSS_CONTENT),Of(),Uf(),Ke$1.success("样式重置成功~")},qf=Ah=>(...mh)=>{Ah(...mh),Uf()},zf=(Ah,mh)=>{const im=themeMap[Ad.value],Bh=Number(Ah.replace("px",""));return customCssWithTemplate(css2json(Af().content),mh,customizeTheme(im,{fontSize:Bh,color:mh}))},Tf=qf(Ah=>{th.setOptions({theme:customCssWithTemplate(css2json(Af().content),Od.value,customizeTheme(themeMap[Ah],{fontSize:jd.value}))}),Ad.value=Ah}),Sf=qf(Ah=>{th.setOptions({fonts:Ah}),Nd.value=Ah}),Yf=qf(Ah=>{const mh=zf(Ah,Od.value);th.setOptions({size:Ah,theme:mh}),Id.value=Ah}),ih=qf(Ah=>{const mh=zf(Id.value,Ah);th.setOptions({theme:mh}),Od.value=Ah}),Th=qf(Ah=>{Md.value=Ah}),sh=qf(Ah=>{Ud.value=Ah}),Nf=qf(()=>{od()}),ph=qf(()=>{pd()}),Oh=qf(()=>{md()}),Zf=()=>{exportHTML(Od.value),document.querySelector("#output").innerHTML=vd.value},Rf=()=>{downloadMD(Ld.value.getValue())},Bf=()=>{const Ah=document.body,mh=document.createElement("input");mh.type="file",mh.name="filename",mh.accept=".md",mh.onchange=()=>{const im=mh.files[0];if(!im)return;const Bh=new FileReader;Bh.readAsText(im),Bh.onload=Tm=>{Ld.value.setValue(Tm.target.result),Ke$1.success("文档导入成功")}},Ah.appendChild(mh),mh.click(),Ah.removeChild(mh)},Kf=ref$1(!1);return{isDark:Ra,toggleDark:qa,isEditOnLeft:ld,toggleEditOnLeft:ud,isMacCodeBlock:nd,isCiteStatus:dd,citeStatusChanged:ph,isUseIndent:fd,useIndentChanged:Oh,output:vd,editor:Ld,cssEditor:Ef,theme:Ad,fontFamily:Nd,fontSize:Id,primaryColor:Od,codeBlockTheme:Md,legend:Ud,editorRefresh:Uf,themeChanged:Tf,fontChanged:Sf,sizeChanged:Yf,colorChanged:ih,codeBlockThemeChanged:Th,legendChanged:sh,macCodeBlockChanged:Nf,formatContent:Zd,exportEditorContent2HTML:Zf,exportEditorContent2MD:Rf,importMarkdownContent:Bf,isOpenConfirmDialog:Kf,resetStyleConfirm:()=>{Kf.value=!0},resetStyle:Wf,cssContentConfig:vf,addCssContentTab:Jf,validatorTabName:eh,setCssEditorValue:_f,tabChanged:Df,renameTab:jf,posts:qd,currentPostIndex:zd,addPost:Xd,renamePost:gf,delPost:Yd,isOpenPostSlider:Gd}}),useDisplayStore=defineStore("display",()=>{const Ra=ref$1(!1),qa=useToggle(Ra),nd=ref$1(!1),od=useToggle(nd),ld=ref$1(!1),ud=useToggle(ld);return{isShowCssEditor:Ra,toggleShowCssEditor:qa,isShowInsertFormDialog:nd,toggleShowInsertFormDialog:od,isShowUploadImgDialog:ld,toggleShowUploadImgDialog:ud}}),_hoisted_1$a={class:"space-x-2 flex justify-between"},_hoisted_2$6={class:"space-y-2 border-1 rounded p-2"},_sfc_main$_=defineComponent({__name:"InsertFormDialog",setup(Ra){const qa=useStore(),nd=useDisplayStore(),{toggleShowInsertFormDialog:od}=nd,ld=ref$1(3),ud=ref$1(3),dd=ref$1({});function pd(){ld.value=3,ud.value=3,dd.value={}}function fd(){const vd=createTable({rows:ld.value,cols:ud.value,data:dd.value});toRaw(qa.editor).replaceSelection(`
${vd}
`,"end"),pd(),od()}function md(vd){vd||od(!1)}return(vd,Ad)=>{const Nd=_sfc_main$$,Id=_sfc_main$10,Od=_sfc_main$11,Md=_sfc_main$12,Ud=_sfc_main$13,jd=_sfc_main$14,Ld=_sfc_main$15,Bd=_sfc_main$16,Gd=_sfc_main$17,qd=_sfc_main$1h,zd=_sfc_main$18,Xd=_sfc_main$19,gf=_sfc_main$1a;return openBlock(),createBlock(gf,{open:unref(nd).isShowInsertFormDialog,"onUpdate:open":md},{default:withCtx(()=>[createVNode(Xd,null,{default:withCtx(()=>[createVNode(Id,null,{default:withCtx(()=>[createVNode(Nd,null,{default:withCtx(()=>Ad[3]||(Ad[3]=[createTextVNode("插入表格")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_1$a,[createVNode(Bd,{modelValue:unref(ld),"onUpdate:modelValue":Ad[0]||(Ad[0]=Yd=>isRef(ld)?ld.value=Yd:null),min:1,max:100},{default:withCtx(()=>[createVNode(Od,null,{default:withCtx(()=>Ad[4]||(Ad[4]=[createTextVNode("行数")])),_:1}),createVNode(Ld,null,{default:withCtx(()=>[createVNode(Md),createVNode(Ud),createVNode(jd)]),_:1})]),_:1},8,["modelValue"]),createVNode(Bd,{modelValue:unref(ud),"onUpdate:modelValue":Ad[1]||(Ad[1]=Yd=>isRef(ud)?ud.value=Yd:null),min:1,max:100},{default:withCtx(()=>[createVNode(Od,null,{default:withCtx(()=>Ad[5]||(Ad[5]=[createTextVNode("列数")])),_:1}),createVNode(Ld,null,{default:withCtx(()=>[createVNode(Md),createVNode(Ud),createVNode(jd)]),_:1})]),_:1},8,["modelValue"])]),createBaseVNode("div",_hoisted_2$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ld)+1,Yd=>(openBlock(),createElementBlock("div",{key:Yd,class:normalizeClass([{"head-style":Yd===1},"space-x-2 flex"])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ud),Zd=>(openBlock(),createBlock(Gd,{key:Zd,modelValue:unref(dd)[`k_${Yd-1}_${Zd-1}`],"onUpdate:modelValue":df=>unref(dd)[`k_${Yd-1}_${Zd-1}`]=df,class:normalizeClass({"bg-gray-100 dark:bg-gray-900":Yd===1}),placeholder:Yd===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","class","placeholder"]))),128))],2))),128))]),createVNode(zd,null,{default:withCtx(()=>[createVNode(qd,{variant:"outline",onClick:Ad[2]||(Ad[2]=Yd=>unref(od)(!1))},{default:withCtx(()=>Ad[6]||(Ad[6]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(qd,{onClick:fd},{default:withCtx(()=>Ad[7]||(Ad[7]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),_sfc_main$Z=defineComponent({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(fg),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$9={class:"space-y-4"},_hoisted_2$5={class:"h-60 border"},_sfc_main$Y=defineComponent({__name:"CustomUploadForm",setup(Ra){const qa=useStore(),nd=useLocalStorage("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()),od=useTemplateRef("formCustomTextarea"),ld=ref$1(null);onMounted(()=>{ld.value=markRaw(CodeMirror.fromTextArea(od.value,{mode:"javascript",theme:qa.isDark?"darcula":"xq-light",lineNumbers:!0})),nextTick$1(()=>{nextTick$1(()=>{var dd;(dd=ld.value)==null||dd.setValue(nd.value)})})});function ud(){const dd=ld.value.getValue();localStorage.setItem("formCustomConfig",dd),Ke$1.success("保存成功")}return(dd,pd)=>{const fd=_sfc_main$1h;return openBlock(),createElementBlock("div",_hoisted_1$9,[createBaseVNode("div",_hoisted_2$5,[createBaseVNode("textarea",{ref_key:"formCustomTextarea",ref:od,placeholder:"Your custom code here."},null,512)]),createVNode(fd,{variant:"link",class:"p-0",href:"https://github.com/doocs/md#自定义上传逻辑",target:"_blank"},{default:withCtx(()=>pd[0]||(pd[0]=[createTextVNode(" 参数详情 ")])),_:1}),createVNode(fd,{class:"block",onClick:ud},{default:withCtx(()=>pd[1]||(pd[1]=[createTextVNode(" 保存配置 ")])),_:1})])}}}),_sfc_main$X=defineComponent({__name:"Switch",props:{defaultChecked:{type:Boolean},checked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{},asChild:{type:Boolean},as:{},class:{}},emits:["update:checked"],setup(Ra,{emit:qa}){const nd=Ra,od=qa,ld=computed(()=>{const{class:dd,...pd}=nd;return pd}),ud=xe$5(ld,od);return(dd,pd)=>(openBlock(),createBlock(unref(cg$1),mergeProps(unref(ud),{class:unref(cn$5)("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",nd.class)}),{default:withCtx(()=>[createVNode(unref(pg),{class:normalizeClass(unref(cn$5)("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5"))},{default:withCtx(()=>[renderSlot(dd.$slots,"thumb")]),_:3},8,["class"])]),_:3},16,["class"]))}}),_sfc_main$W=defineComponent({__name:"FormItem",props:{label:{},required:{type:Boolean}},setup(Ra){const qa=Ra;return(nd,od)=>{const ld=_sfc_main$11;return openBlock(),createElementBlock("div",null,[createVNode(ld,{class:"flex items-center"},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(["mr-4 min-h-4 w-[150px] flex-shrink-0 text-right font-bold",{required:qa.required}])},toDisplayString(qa.label),3),renderSlot(nd.$slots,"default",{},void 0,!0)]),_:3})])}}}),__unplugin_components_12=_export_sfc(_sfc_main$W,[["__scopeId","data-v-a66ad4e0"]]),_sfc_main$V=defineComponent({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:od,...ld}=qa;return ld});return(od,ld)=>(openBlock(),createBlock(unref(mg),mergeProps({class:unref(cn$5)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",qa.class)},nd.value),{default:withCtx(()=>[renderSlot(od.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$U=defineComponent({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(Ra,{emit:qa}){const ld=xe$5(Ra,qa);return(ud,dd)=>(openBlock(),createBlock(unref(ky$1),normalizeProps(guardReactiveProps(unref(ld))),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$8={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$T=defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const qa=Ra,nd=computed(()=>{const{class:ld,...ud}=qa;return ud}),od=It$4(nd);return(ld,ud)=>(openBlock(),createBlock(unref(zy),mergeProps(unref(od),{class:unref(cn$5)("relative flex w-full cursor-defa
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P$1(Ra){return P$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(qa){return typeof qa}:function(qa){return qa&&typeof Symbol=="function"&&qa.constructor===Symbol&&qa!==Symbol.prototype?"symbol":typeof qa},P$1(Ra)}function j$1(Ra,qa,nd,od,ld,ud,dd){try{var pd=Ra[ud](dd),fd=pd.value}catch(md){return void nd(md)}pd.done?qa(fd):Promise.resolve(fd).then(od,ld)}function L$1(Ra){return function(){var qa=this,nd=arguments;return new Promise(function(od,ld){var ud=Ra.apply(qa,nd);function dd(fd){j$1(ud,od,ld,dd,pd,"next",fd)}function pd(fd){j$1(ud,od,ld,dd,pd,"throw",fd)}dd(void 0)})}}var B$1={exports:{}},R$2={exports:{}};(function(Ra){function qa(nd){return Ra.exports=qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(od){return typeof od}:function(od){return od&&typeof Symbol=="function"&&od.constructor===Symbol&&od!==Symbol.prototype?"symbol":typeof od},Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports,qa(nd)}Ra.exports=qa,Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports})(R$2),function(Ra){var qa=R$2.exports.default;function nd(){Ra.exports=nd=function(){return ld},Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports;var od,ld={},ud=Object.prototype,dd=ud.hasOwnProperty,pd=Object.defineProperty||function(Jf,eh,th){Jf[eh]=th.value},fd=typeof Symbol=="function"?Symbol:{},md=fd.iterator||"@@iterator",vd=fd.asyncIterator||"@@asyncIterator",Ad=fd.toStringTag||"@@toStringTag";function Nd(Jf,eh,th){return Object.defineProperty(Jf,eh,{value:th,enumerable:!0,configurable:!0,writable:!0}),Jf[eh]}try{Nd({},"")}catch{Nd=function(eh,th,Uf){return eh[th]=Uf}}function Id(Jf,eh,th,Uf){var Of=eh&&eh.prototype instanceof Gd?eh:Gd,Wf=Object.create(Of.prototype),qf=new Df(Uf||[]);return pd(Wf,"_invoke",{value:_f(Jf,th,qf)}),Wf}function Od(Jf,eh,th){try{return{type:"normal",arg:Jf.call(eh,th)}}catch(Uf){return{type:"throw",arg:Uf}}}ld.wrap=Id;var Md="suspendedStart",Ud="suspendedYield",jd="executing",Ld="completed",Bd={};function Gd(){}function qd(){}function zd(){}var Xd={};Nd(Xd,md,function(){return this});var gf=Object.getPrototypeOf,Yd=gf&&gf(gf(jf([])));Yd&&Yd!==ud&&dd.call(Yd,md)&&(Xd=Yd);var Zd=zd.prototype=Gd.prototype=Object.create(Xd);function df(Jf){["next","throw","return"].forEach(function(eh){Nd(Jf,eh,function(th){return this._invoke(eh,th)})})}function Ef(Jf,eh){function th(Of,Wf,qf,zf){var Tf=Od(Jf[Of],Jf,Wf);if(Tf.type!=="throw"){var Sf=Tf.arg,Yf=Sf.value;return Yf&&qa(Yf)=="object"&&dd.call(Yf,"__await")?eh.resolve(Yf.__await).then(function(ih){th("next",ih,qf,zf)},function(ih){th("throw",ih,qf,zf)}):eh.resolve(Yf).then(function(ih){Sf.value=ih,qf(Sf)},function(ih){return th("throw",ih,qf,zf)})}zf(Tf.arg)}var Uf;pd(this,"_invoke",{value:function(Of,Wf){function qf(){return new eh(function(zf,Tf){th(Of,Wf,zf,Tf)})}return Uf=Uf?Uf.then(qf,qf):qf()}})}function _f(Jf,eh,th){var Uf=Md;return function(Of,Wf){if(Uf===jd)throw Error("Generator is already running");if(Uf===Ld){if(Of==="throw")throw Wf;return{value:od,done:!0}}for(th.method=Of,th.arg=Wf;;){var qf=th.delegate;if(qf){var zf=xf(qf,th);if(zf){if(zf===Bd)continue;return zf}}if(th.method==="next")th.sent=th._sent=th.arg;else if(th.method==="throw"){if(Uf===Md)throw Uf=Ld,th.arg;th.dispatchException(th.arg)}else th.method==="return"&&th.abrupt("return",th.arg);Uf=jd;var Tf=Od(Jf,eh,th);if(Tf.type==="normal"){if(Uf=th.done?Ld:Ud,Tf.arg===Bd)continue;return{value:Tf.arg,done:th.done}}Tf.type==="throw"&&(Uf=Ld,th.method="throw",th.arg=Tf.arg)}}}function xf(Jf,eh){var th=eh.method,Uf=Jf.iterator[th];if(Uf===od)return eh.delegate=null,th==="throw"&&Jf.iterator.return&&(eh.method="return",eh.arg=od,xf(Jf,eh),eh.method==="throw")||th!=="return"&&(eh.method="throw",eh.arg=new TypeError("The iterator does not provide a '"+th+"' method")),Bd;var Of=Od(Uf,Jf.iterator,eh.arg);if(Of.type==="throw")return eh.method="throw",eh.arg=Of.arg,eh.delegate=null,Bd;var Wf=Of.arg;return Wf?Wf.done?(eh[Jf.resultName]=Wf.value,eh.next=Jf.nextLoc,eh.met
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function T$1(Ra){var qa=function(nd,od){if(P$1(nd)!="object"||!nd)return nd;var ld=nd[Symbol.toPrimitive];if(ld!==void 0){var ud=ld.call(nd,od||"default");if(P$1(ud)!="object")return ud;throw new TypeError("@@toPrimitive must return a primitive value.")}return(od==="string"?String:Number)(nd)}(Ra,"string");return P$1(qa)=="symbol"?qa:qa+""}function H$1(Ra,qa,nd){return(qa=T$1(qa))in Ra?Object.defineProperty(Ra,qa,{value:nd,enumerable:!0,configurable:!0,writable:!0}):Ra[qa]=nd,Ra}var G$1=defineComponent({name:"Saturation",props:{size:{type:Number,default:160},hue:{type:Number,default:0},saturation:{type:Number,default:0},value:{type:Number,default:0}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),background:"hsl(".concat(Ra.hue,", 100%, 50%)")}});return{saturationStyle:od,sliderStyle:computed(function(){return{top:"".concat((100-Ra.value)/100*Ra.size-5,"px"),left:"".concat(Ra.saturation*Ra.size/100-5,"px"),width:"".concat(10,"px"),height:"".concat(10,"px")}}),onSelect:function(ld){var ud=ld.target.getBoundingClientRect(),dd=ud.left,pd=ud.top,fd=function(vd){var Ad=vd.clientX,Nd=vd.clientY,Id=Ad-dd,Od=Nd-pd;Id<0&&(Id=0),Od<0&&(Od=0),Id>Ra.size&&(Id=Ra.size),Od>Ra.size&&(Od=Ra.size);var Md=Id/Ra.size*100,Ud=100-Od/Ra.size*100;nd("change",Md,Ud)},md=function(){document.removeEventListener("mousemove",fd),document.removeEventListener("mouseup",md)};fd(ld),document.addEventListener("mousemove",fd),document.addEventListener("mouseup",md)}}}});function V$1(Ra,qa){qa===void 0&&(qa={});var nd=qa.insertAt;if(Ra&&typeof document<"u"){var od=document.head||document.getElementsByTagName("head")[0],ld=document.createElement("style");ld.type="text/css",nd==="top"&&od.firstChild?od.insertBefore(ld,od.firstChild):od.appendChild(ld),ld.styleSheet?ld.styleSheet.cssText=Ra:ld.appendChild(document.createTextNode(Ra))}}V$1(".saturation[data-v-24517fec]{position:relative}.saturation-black[data-v-24517fec],.saturation-white[data-v-24517fec]{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.saturation-white[data-v-24517fec]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-black[data-v-24517fec]{background:linear-gradient(0deg,#000,transparent)}.slider[data-v-24517fec]{border:1px solid #fff;border-radius:50%;box-shadow:0 0 1px 1px rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;top:0;z-index:1}"),G$1.render=function(Ra,qa,nd,od,ld,ud){return openBlock(),createElementBlock("div",{class:"saturation",style:normalizeStyle(Ra.saturationStyle),onMousedown:qa[0]||(qa[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[qa[1]||(qa[1]=createBaseVNode("div",{class:"saturation-white"},null,-1)),qa[2]||(qa[2]=createBaseVNode("div",{class:"saturation-black"},null,-1)),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],36)},G$1.__scopeId="data-v-24517fec",G$1.__file="src/picker/Saturation.vue";var Y$1=defineComponent({name:"Hue",props:{width:{type:Number,default:15},height:{type:Number,default:160},hue:{type:Number,default:0}},emits:["change"],setup:function(Ra,qa){var nd=qa.emit,od=computed(function(){return{top:"".concat((1-Ra.hue/360)*Ra.height-2,"px"),height:"".concat(4,"px")}}),ld=ref$1();return onMounted(function(){(function(){ld.value.width=Ra.width,ld.value.height=Ra.height;var ud=ld.value.getContext("2d"),dd=ud.createLinearGradient(0,0,0,Ra.height);dd.addColorStop(0,"#FF0000"),dd.addColorStop(.17,"#FF00FF"),dd.addColorStop(.34,"#0000FF"),dd.addColorStop(.51,"#00FFFF"),dd.addColorStop(.68,"#00FF00"),dd.addColorStop(.17*5,"#FFFF00"),dd.addColorStop(1,"#FF0000"),ud.fillStyle=dd,ud.fillRect(0,0,Ra.width,Ra.height)})()}),{canvas:ld,sliderStyle:od,onSelect:function(ud){var dd=ud.target.getBoundingClientRect().top,pd=function(md){var vd=md.clientY-dd;vd<0&&(vd=0),vd>Ra.height&&(vd=Ra.height);var Ad=-100*vd/Ra.height+100;nd("change",360*Ad/1
`).forEach(function(dd){ld=dd.indexOf(":"),nd=dd.substring(0,ld).trim().toLowerCase(),od=dd.substring(ld+1).trim(),!(!nd||qa[nd]&&ignoreDuplicateOf[nd])&&(nd==="set-cookie"?qa[nd]?qa[nd].push(od):qa[nd]=[od]:qa[nd]=qa[nd]?qa[nd]+", "+od:od)}),qa},$internals=Symbol("internals");function normalizeHeader(Ra){return Ra&&String(Ra).trim().toLowerCase()}function normalizeValue(Ra){return Ra===!1||Ra==null?Ra:utils$2.isArray(Ra)?Ra.map(normalizeValue):String(Ra)}function parseTokens(Ra){const qa=Object.create(null),nd=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let od;for(;od=nd.exec(Ra);)qa[od[1]]=od[2];return qa}const isValidHeaderName=Ra=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Ra.trim());function matchHeaderValue(Ra,qa,nd,od,ld){if(utils$2.isFunction(od))return od.call(this,qa,nd);if(ld&&(qa=nd),!!utils$2.isString(qa)){if(utils$2.isString(od))return qa.indexOf(od)!==-1;if(utils$2.isRegExp(od))return od.test(qa)}}function formatHeader(Ra){return Ra.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(qa,nd,od)=>nd.toUpperCase()+od)}function buildAccessors(Ra,qa){const nd=utils$2.toCamelCase(" "+qa);["get","set","has"].forEach(od=>{Object.defineProperty(Ra,od+nd,{value:function(ld,ud,dd){return this[od].call(this,qa,ld,ud,dd)},configurable:!0})})}class AxiosHeaders{constructor(qa){qa&&this.set(qa)}set(qa,nd,od){const ld=this;function ud(pd,fd,md){const vd=normalizeHeader(fd);if(!vd)throw new Error("header name must be a non-empty string");const Ad=utils$2.findKey(ld,vd);(!Ad||ld[Ad]===void 0||md===!0||md===void 0&&ld[Ad]!==!1)&&(ld[Ad||fd]=normalizeValue(pd))}const dd=(pd,fd)=>utils$2.forEach(pd,(md,vd)=>ud(md,vd,fd));if(utils$2.isPlainObject(qa)||qa instanceof this.constructor)dd(qa,nd);else if(utils$2.isString(qa)&&(qa=qa.trim())&&!isValidHeaderName(qa))dd(parseHeaders(qa),nd);else if(utils$2.isHeaders(qa))for(const[pd,fd]of qa.entries())ud(fd,pd,od);else qa!=null&&ud(nd,qa,od);return this}get(qa,nd){if(qa=normalizeHeader(qa),qa){const od=utils$2.findKey(this,qa);if(od){const ld=this[od];if(!nd)return ld;if(nd===!0)return parseTokens(ld);if(utils$2.isFunction(nd))return nd.call(this,ld,od);if(utils$2.isRegExp(nd))return nd.exec(ld);throw new TypeError("parser must be boolean|regexp|function")}}}has(qa,nd){if(qa=normalizeHeader(qa),qa){const od=utils$2.findKey(this,qa);return!!(od&&this[od]!==void 0&&(!nd||matchHeaderValue(this,this[od],od,nd)))}return!1}delete(qa,nd){const od=this;let ld=!1;function ud(dd){if(dd=normalizeHeader(dd),dd){const pd=utils$2.findKey(od,dd);pd&&(!nd||matchHeaderValue(od,od[pd],pd,nd))&&(delete od[pd],ld=!0)}}return utils$2.isArray(qa)?qa.forEach(ud):ud(qa),ld}clear(qa){const nd=Object.keys(this);let od=nd.length,ld=!1;for(;od--;){const ud=nd[od];(!qa||matchHeaderValue(this,this[ud],ud,qa,!0))&&(delete this[ud],ld=!0)}return ld}normalize(qa){const nd=this,od={};return utils$2.forEach(this,(ld,ud)=>{const dd=utils$2.findKey(od,ud);if(dd){nd[dd]=normalizeValue(ld),delete nd[ud];return}const pd=qa?formatHeader(ud):String(ud).trim();pd!==ud&&delete nd[ud],nd[pd]=normalizeValue(ld),od[pd]=!0}),this}concat(...qa){return this.constructor.concat(this,...qa)}toJSON(qa){const nd=Object.create(null);return utils$2.forEach(this,(od,ld)=>{od!=null&&od!==!1&&(nd[ld]=qa&&utils$2.isArray(od)?od.join(", "):od)}),nd}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([qa,nd])=>qa+": "+nd).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(qa){return qa instanceof this?qa:new this(qa)}static concat(qa,...nd){const od=new this(qa);return nd.forEach(ld=>od.set(ld)),od}static accessor(qa){const od=(this[$internals]=this[$internals]={accessors:{}}).accessors,ld=this.prototype;function ud(dd){const pd=normalizeHeader(dd);od[pd]||(buildAccessors(ld,dd),od[pd]=!0)}return utils$2.isArray(qa)?qa.forEach(ud):ud(qa),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$2.reduceDescriptors(AxiosHeaders.prototype,({value:Ra},qa)=>{let nd=qa[0].toUpperCase()+qa.slice(1);return{get:()=>Ra,set(od){this[nd]=od}}});utils$2.freezeMethods(AxiosHeaders);function transformData(Ra,qa){const nd=this||defaults$1,od=qa||nd,ld=AxiosHeaders.from(od.headers);let ud=od.data;return utils$2.forEach(Ra,function(pd){ud=pd.call(nd,ud,ld.normalize(),qa?qa.status:void 0)}),ld.normalize(),ud}function isCancel(Ra){return!!(Ra&&Ra.__CANCEL__)}function CanceledError(Ra,qa,nd){AxiosError.call(this,Ra??"canceled",AxiosError.ERR_CANCELED,qa,nd),this.name="CanceledError"}utils$2.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ra,qa,nd){const od=nd.config.validateStatus;!nd.status||!od||od(nd.status)?Ra(nd):qa(new AxiosError("Request failed with status code "+nd.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(nd.status/100)-4],nd.config,nd.request,nd))}function parseProtocol(Ra){const qa=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Ra);return qa&&qa[1]||""}function speedometer(Ra,qa){Ra=Ra||10;const nd=new Array(Ra),od=new Array(Ra);let ld=0,ud=0,dd;return qa=qa!==void 0?qa:1e3,function(fd){const md=Date.now(),vd=od[ud];dd||(dd=md),nd[ld]=fd,od[ld]=md;let Ad=ud,Nd=0;for(;Ad!==ld;)Nd+=nd[Ad++],Ad=Ad%Ra;if(ld=(ld+1)%Ra,ld===ud&&(ud=(ud+1)%Ra),md-dd<qa)return;const Id=vd&&md-vd;return Id?Math.round(Nd*1e3/Id):void 0}}function throttle(Ra,qa){let nd=0,od=1e3/qa,ld,ud;const dd=(md,vd=Date.now())=>{nd=vd,ld=null,ud&&(clearTimeout(ud),ud=null),Ra.apply(null,md)};return[(...md)=>{const vd=Date.now(),Ad=vd-nd;Ad>=od?dd(md,vd):(ld=md,ud||(ud=setTimeout(()=>{ud=null,dd(ld)},od-Ad)))},()=>ld&&dd(ld)]}const progressEventReducer=(Ra,qa,nd=3)=>{let od=0;const ld=speedometer(50,250);return throttle(ud=>{const dd=ud.loaded,pd=ud.lengthComputable?ud.total:void 0,fd=dd-od,md=ld(fd),vd=dd<=pd;od=dd;const Ad={loaded:dd,total:pd,progress:pd?dd/pd:void 0,bytes:fd,rate:md||void 0,estimated:md&&pd&&vd?(pd-dd)/md:void 0,event:ud,lengthComputable:pd!=null,[qa?"download":"upload"]:!0};Ra(Ad)},nd)},progressEventDecorator=(Ra,qa)=>{const nd=Ra!=null;return[od=>qa[0]({lengthComputable:nd,total:Ra,loaded:od}),qa[1]]},asyncDecorator=Ra=>(...qa)=>utils$2.asap(()=>Ra(...qa)),isURLSameOrigin=platform.hasStandardBrowserEnv?((Ra,qa)=>nd=>(nd=new URL(nd,platform.origin),Ra.protocol===nd.protocol&&Ra.host===nd.host&&(qa||Ra.port===nd.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(Ra,qa,nd,od,ld,ud){const dd=[Ra+"="+encodeURIComponent(qa)];utils$2.isNumber(nd)&&dd.push("expires="+new Date(nd).toGMTString()),utils$2.isString(od)&&dd.push("path="+od),utils$2.isString(ld)&&dd.push("domain="+ld),ud===!0&&dd.push("secure"),document.cookie=dd.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+\-.]*:)?\/\//i.test(Ra)}function combineURLs(Ra,qa){return qa?Ra.replace(/\/?\/$/,"")+"/"+qa.replace(/^\/+/,""):Ra}function buildFullPath(Ra,qa){return Ra&&!isAbsoluteURL(qa)?combineURLs(Ra,qa):qa}const headersToObject=Ra=>Ra instanceof AxiosHeaders?{...Ra}:Ra;function mergeConfig(Ra,qa){qa=qa||{};const nd={};function od(md,vd,Ad,Nd){return utils$2.isPlainObject(md)&&utils$2.isPlainObject(vd)?utils$2.merge.call({caseless:Nd},md,vd):utils$2.isPlainObject(vd)?utils$2
`+ud.map(renderReason).join(`
`):" "+renderReason(ud[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+dd,"ERR_NOT_SUPPORT")}return od},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$1.adapter)(Ra).then(function(od){return throwIfCancellationRequested(Ra),od.data=transformData.call(Ra,Ra.transformResponse,od),od.headers=AxiosHeaders.from(od.headers),od},function(od){return isCancel(od)||(throwIfCancellationRequested(Ra),od&&od.response&&(od.response.data=transformData.call(Ra,Ra.transformResponse,od.response),od.response.headers=AxiosHeaders.from(od.response.headers))),Promise.reject(od)})}const VERSION="1.7.8",validators$1={};["object","boolean","number","function","string","symbol"].forEach((Ra,qa)=>{validators$1[Ra]=function(od){return typeof od===Ra||"a"+(qa<1?"n ":" ")+Ra}});const deprecatedWarnings={};validators$1.transitional=function(qa,nd,od){function ld(ud,dd){return"[Axios v"+VERSION+"] Transitional option '"+ud+"'"+dd+(od?". "+od:"")}return(ud,dd,pd)=>{if(qa===!1)throw new AxiosError(ld(dd," has been removed"+(nd?" in "+nd:"")),AxiosError.ERR_DEPRECATED);return nd&&!deprecatedWarnings[dd]&&(deprecatedWarnings[dd]=!0,console.warn(ld(dd," has been deprecated since v"+nd+" and will be removed in the near future"))),qa?qa(ud,dd,pd):!0}};validators$1.spelling=function(qa){return(nd,od)=>(console.warn(`${od} is likely a misspelling of ${qa}`),!0)};function assertOptions(Ra,qa,nd){if(typeof Ra!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const od=Object.keys(Ra);let ld=od.length;for(;ld-- >0;){const ud=od[ld],dd=qa[ud];if(dd){const pd=Ra[ud],fd=pd===void 0||dd(pd,ud,Ra);if(fd!==!0)throw new AxiosError("option "+ud+" must be "+fd,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(nd!==!0)throw new AxiosError("Unknown option "+ud,AxiosError.ERR_BAD_OPTION)}}const validator$6={assertOptions,validators:validators$1},validators=validator$6.validators;class Axios{constructor(qa){this.defaults=qa,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(qa,nd){try{return await this._request(qa,nd)}catch(od){if(od instanceof Error){let ld={};Error.captureStackTrace?Error.captureStackTrace(ld):ld=new Error;const ud=ld.stack?ld.stack.replace(/^.+\n/,""):"";try{od.stack?ud&&!String(od.stack).endsWith(ud.replace(/^.+\n.+\n/,""))&&(od.stack+=`
`+ud):od.stack=ud}catch{}}throw od}}_request(qa,nd){typeof qa=="string"?(nd=nd||{},nd.url=qa):nd=qa||{},nd=mergeConfig(this.defaults,nd);const{transitional:od,paramsSerializer:ld,headers:ud}=nd;od!==void 0&&validator$6.assertOptions(od,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ld!=null&&(utils$2.isFunction(ld)?nd.paramsSerializer={serialize:ld}:validator$6.assertOptions(ld,{encode:validators.function,serialize:validators.function},!0)),validator$6.assertOptions(nd,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),nd.method=(nd.method||this.defaults.method||"get").toLowerCase();let dd=ud&&utils$2.merge(ud.common,ud[nd.method]);ud&&utils$2.forEach(["delete","get","head","post","put","patch","common"],Od=>{delete ud[Od]}),nd.headers=AxiosHeaders.concat(dd,ud);const pd=[];let fd=!0;this.interceptors.request.forEach(function(Md){typeof Md.runWhen=="function"&&Md.runWhen(nd)===!1||(fd=fd&&Md.synchronous,pd.unshift(Md.fulfilled,Md.rejected))});const md=[];this.interceptors.response.forEach(function(Md){md.push(Md.fulfilled,Md.rejected)});let vd,Ad=0,Nd;if(!fd){const Od=[dispatchRequest.bind(this),void 0];for(Od.unshift.apply(Od,pd),Od.push.apply(Od,md),Nd=Od.length,vd=Promise.resolve(nd);Ad<Nd;)vd=vd.then(Od[Ad++],Od[Ad++]);return vd}Nd=pd.length;let Id=nd;for(Ad=0;Ad<Nd;){const Od=pd[Ad++],Md=pd[Ad++];try{Id=Od(Id)}catch(Ud){Md.call(this,Ud);break}}try{vd=dispatchRequest.call(this,Id)}catch(Od){return Promise.reject(Od)}for(Ad=0,Nd=md.length;Ad<Nd;)vd=vd.then(md[Ad++],md[Ad++]);return vd}getUri(qa){qa=mergeConfig(this.defaults,qa);const nd=buildFullPath(qa.baseURL,qa.url);return buildURL(nd,qa.params,qa.paramsSerializer)}}utils$2.forEach(["delete","get","head","options"],function(qa){Axios.prototype[qa]=function(nd,od){return this.request(mergeConfig(od||{},{method:qa,url:nd,data:(od||{}).data}))}});utils$2.forEach(["post","put","patch"],function(qa){function nd(od){return function(ud,dd,pd){return this.request(mergeConfig(pd||{},{method:qa,headers:od?{"Content-Type":"multipart/form-data"}:{},url:ud,data:dd}))}}Axios.prototype[qa]=nd(),Axios.prototype[qa+"Form"]=nd(!0)});class CancelToken{constructor(qa){if(typeof qa!="function")throw new TypeError("executor must be a function.");let nd;this.promise=new Promise(function(ud){nd=ud});const od=this;this.promise.then(ld=>{if(!od._listeners)return;let ud=od._listeners.length;for(;ud-- >0;)od._listeners[ud](ld);od._listeners=null}),this.promise.then=ld=>{let ud;const dd=new Promise(pd=>{od.subscribe(pd),ud=pd}).then(ld);return dd.cancel=function(){od.unsubscribe(ud)},dd},qa(function(ud,dd,pd){od.reason||(od.reason=new CanceledError(ud,dd,pd),nd(od.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 nd=this._listeners.indexOf(qa);nd!==-1&&this._listeners.splice(nd,1)}toAbortSignal(){const qa=new AbortController,nd=od=>{qa.abort(od)};return this.subscribe(nd),qa.signal.unsubscribe=()=>this.unsubscribe(nd),qa.signal}static source(){let qa;return{token:new CancelToken(function(ld){qa=ld}),cancel:qa}}}function spread(Ra){return function(nd){return Ra.apply(null,nd)}}function isAxiosError(Ra){return utils$2.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,Len
`));return nd(ld)},httpAuthSchemeEndpointRuleSetMiddlewareOptions={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},getHttpAuthSchemeEndpointRuleSetPlugin=(Ra,{httpAuthSchemeParametersProvider:qa,identityProviderConfigProvider:nd})=>({applyToStack:od=>{od.addRelativeTo(httpAuthSchemeMiddleware(Ra,{httpAuthSchemeParametersProvider:qa,identityProviderConfigProvider:nd}),httpAuthSchemeEndpointRuleSetMiddlewareOptions)}}),deserializerMiddleware=(Ra,qa)=>nd=>async od=>{const{response:ld}=await nd(od);try{const ud=await qa(ld,Ra);return{response:ld,output:ud}}catch(ud){if(Object.defineProperty(ud,"$response",{value:ld}),!("$metadata"in ud)){const dd="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";ud.message+=`
`+dd,typeof ud.$responseBodyText<"u"&&ud.$response&&(ud.$response.body=ud.$responseBodyText)}throw ud}},serializerMiddleware=(Ra,qa)=>(nd,od)=>async ld=>{var pd;const ud=(pd=od.endpointV2)!=null&&pd.url&&Ra.urlParser?async()=>Ra.urlParser(od.endpointV2.url):Ra.endpoint;if(!ud)throw new Error("No valid endpoint provider available.");const dd=await qa(ld.input,{...Ra,endpoint:ud});return nd({...ld,request:dd})},deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function getSerdePlugin(Ra,qa,nd){return{applyToStack:od=>{od.add(deserializerMiddleware(Ra,nd),deserializerMiddlewareOption),od.add(serializerMiddleware(Ra,qa),serializerMiddlewareOption)}}}serializerMiddlewareOption.name;const defaultErrorHandler$1=Ra=>qa=>{throw qa},defaultSuccessHandler$1=(Ra,qa)=>{},httpSigningMiddleware=Ra=>(qa,nd)=>async od=>{if(!HttpRequest.isInstance(od.request))return qa(od);const ud=getSmithyContext(nd).selectedHttpAuthScheme;if(!ud)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:dd={}},identity:pd,signer:fd}=ud,md=await qa({...od,request:await fd.sign(od.request,pd,dd)}).catch((fd.errorHandler||defaultErrorHandler$1)(dd));return(fd.successHandler||defaultSuccessHandler$1)(md.response,dd),md},httpSigningMiddlewareOptions={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},getHttpSigningPlugin=Ra=>({applyToStack:qa=>{qa.addRelativeTo(httpSigningMiddleware(),httpSigningMiddlewareOptions)}}),normalizeProvider=Ra=>{if(typeof Ra=="function")return Ra;const qa=Promise.resolve(Ra);return()=>qa},alphabetByEncoding={},alphabetByValue=new Array(64);for(let Ra=0,qa=65,nd=90;Ra+qa<=nd;Ra++){const od=String.fromCharCode(Ra+qa);alphabetByEncoding[od]=Ra,alphabetByValue[Ra]=od}for(let Ra=0,qa=97,nd=122;Ra+qa<=nd;Ra++){const od=String.fromCharCode(Ra+qa),ld=Ra+26;alphabetByEncoding[od]=ld,alphabetByValue[ld]=od}for(let Ra=0;Ra<10;Ra++){alphabetByEncoding[Ra.toString(10)]=Ra+52;const qa=Ra.toString(10),nd=Ra+52;alphabetByEncoding[qa]=nd,alphabetByValue[nd]=qa}alphabetByEncoding["+"]=62;alphabetByValue[62]="+";alphabetByEncoding["/"]=63;alphabetByValue[63]="/";const bitsPerLetter=6,bitsPerByte=8,maxLetterValue=63,fromBase64=Ra=>{let qa=Ra.length/4*3;Ra.slice(-2)==="=="?qa-=2:Ra.slice(-1)==="="&&qa--;const nd=new ArrayBuffer(qa),od=new DataView(nd);for(let ld=0;ld<Ra.length;ld+=4){let ud=0,dd=0;for(let md=ld,vd=ld+3;md<=vd;md++)if(Ra[md]!=="="){if(!(Ra[md]in alphabetByEncoding))throw new TypeError(`Invalid character ${Ra[md]} in base64 string.`);ud|=alphabetByEncoding[Ra[md]]<<(vd-md)*bitsPerLetter,dd+=bitsPerLetter}else ud>>=bitsPerLetter;const pd=ld/4*3;ud>>=dd%bitsPerByte;const fd=Math.floor(dd/bitsPerByte);for(let md=0;md<fd;md++){const vd=(fd-md-1)*bitsPerByte;od.setUint8(pd+md,(ud&255<<vd)>>vd)}}return new Uint8Array(nd)},fromUtf8$3=Ra=>new TextEncoder().encode(Ra),toUint8Array=Ra=>typeof Ra=="string"?fromUtf8$3(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,Ra.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(Ra),toUtf8=Ra=>{if(typeof Ra=="string")return Ra;if(typeof Ra!="object"||typeof Ra.byteOffset!="number"||typeof Ra.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(Ra)};function toBase64(Ra){let qa;typeof Ra=="string"?qa=fromUtf8$3(Ra):qa=Ra;const nd=typeof qa=="object"&&typeof qa.length=="number",od=typeof qa=="object"&&typeof qa.byteOffset=="number"&&typeof qa.byteLength=="number";if(!nd&&!od)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let ld="";for(let ud=0;ud<qa.length;ud+=3){let dd=0,pd=0;for(let md=ud,vd=Math.min(ud+3,qa.length);md<vd;md++)dd|=qa[md]<<(vd-md-1)*bitsPerByte,
`),pd){const Id=nd(await fd);vd.enqueue(`${ud}:${Id}\r
`),vd.enqueue(`\r
`)}vd.close()}else vd.enqueue(`${(od(Ad)||0).toString(16)}\r
${Ad}\r
`)}})},escapeUri=Ra=>encodeURIComponent(Ra).replace(/[!'()*]/g,hexEncode),hexEncode=Ra=>`%${Ra.charCodeAt(0).toString(16).toUpperCase()}`;function buildQueryString(Ra){const qa=[];for(let nd of Object.keys(Ra).sort()){const od=Ra[nd];if(nd=escapeUri(nd),Array.isArray(od))for(let ld=0,ud=od.length;ld<ud;ld++)qa.push(`${nd}=${escapeUri(od[ld])}`);else{let ld=nd;(od||typeof od=="string")&&(ld+=`=${escapeUri(od)}`),qa.push(ld)}}return qa.join("&")}function createRequest(Ra,qa){return new Request(Ra,qa)}function requestTimeout(Ra=0){return new Promise((qa,nd)=>{Ra&&setTimeout(()=>{const od=new Error(`Request did not complete within ${Ra} ms`);od.name="TimeoutError",nd(od)},Ra)})}const keepAliveSupport={supported:void 0};class FetchHttpHandler{static create(qa){return typeof(qa==null?void 0:qa.handle)=="function"?qa:new FetchHttpHandler(qa)}constructor(qa){typeof qa=="function"?this.configProvider=qa().then(nd=>nd||{}):(this.config=qa??{},this.configProvider=Promise.resolve(this.config)),keepAliveSupport.supported===void 0&&(keepAliveSupport.supported=typeof Request<"u"&&"keepalive"in createRequest("https://[::1]"))}destroy(){}async handle(qa,{abortSignal:nd}={}){var jd;this.config||(this.config=await this.configProvider);const od=this.config.requestTimeout,ld=this.config.keepAlive===!0,ud=this.config.credentials;if(nd!=null&&nd.aborted){const Ld=new Error("Request aborted");return Ld.name="AbortError",Promise.reject(Ld)}let dd=qa.path;const pd=buildQueryString(qa.query||{});pd&&(dd+=`?${pd}`),qa.fragment&&(dd+=`#${qa.fragment}`);let fd="";if(qa.username!=null||qa.password!=null){const Ld=qa.username??"",Bd=qa.password??"";fd=`${Ld}:${Bd}@`}const{port:md,method:vd}=qa,Ad=`${qa.protocol}//${fd}${qa.hostname}${md?`:${md}`:""}${dd}`,Nd=vd==="GET"||vd==="HEAD"?void 0:qa.body,Id={body:Nd,headers:new Headers(qa.headers),method:vd,credentials:ud};(jd=this.config)!=null&&jd.cache&&(Id.cache=this.config.cache),Nd&&(Id.duplex="half"),typeof AbortController<"u"&&(Id.signal=nd),keepAliveSupport.supported&&(Id.keepalive=ld),typeof this.config.requestInit=="function"&&Object.assign(Id,this.config.requestInit(qa));let Od=()=>{};const Md=createRequest(Ad,Id),Ud=[fetch(Md).then(Ld=>{const Bd=Ld.headers,Gd={};for(const zd of Bd.entries())Gd[zd[0]]=zd[1];return Ld.body!=null?{response:new HttpResponse({headers:Gd,reason:Ld.statusText,statusCode:Ld.status,body:Ld.body})}:Ld.blob().then(zd=>({response:new HttpResponse({headers:Gd,reason:Ld.statusText,statusCode:Ld.status,body:zd})}))}),requestTimeout(od)];return nd&&Ud.push(new Promise((Ld,Bd)=>{const Gd=()=>{const qd=new Error("Request aborted");qd.name="AbortError",Bd(qd)};if(typeof nd.addEventListener=="function"){const qd=nd;qd.addEventListener("abort",Gd,{once:!0}),Od=()=>qd.removeEventListener("abort",Gd)}else nd.onabort=Gd})),Promise.race(Ud).finally(Od)}updateHttpClientConfig(qa,nd){this.config=void 0,this.configProvider=this.configProvider.then(od=>(od[qa]=nd,od))}httpHandlerConfigs(){return this.config??{}}}const streamCollector=async Ra=>{var qa;return typeof Blob=="function"&&Ra instanceof Blob||((qa=Ra.constructor)==null?void 0:qa.name)==="Blob"?new Uint8Array(await Ra.arrayBuffer()):collectStream(Ra)};async function collectStream(Ra){const qa=[],nd=Ra.getReader();let od=!1,ld=0;for(;!od;){const{done:pd,value:fd}=await nd.read();fd&&(qa.push(fd),ld+=fd.length),od=pd}const ud=new Uint8Array(ld);let dd=0;for(const pd of qa)ud.set(pd,dd),dd+=pd.length;return ud}const SHORT_TO_HEX={},HEX_TO_SHORT={};for(let Ra=0;Ra<256;Ra++){let qa=Ra.toString(16).toLowerCase();qa.length===1&&(qa=`0${qa}`),SHORT_TO_HEX[Ra]=qa,HEX_TO_SHORT[qa]=Ra}function fromHex(Ra){if(Ra.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const qa=new Uint8Array(Ra.length/2);for(let nd=0;nd<Ra.length;nd+=2){const od=Ra.slice(nd,nd+2).toLowerCase();if(od in HEX_TO_SHORT)qa[nd/2]=HEX_TO_SHORT[od];else throw new Error(`Cannot decode unrecognized sequence ${od} as hexadecimal`)}return qa}function toHex(Ra){let qa="";for(let nd=0;nd<Ra.byteLength;nd++)qa+=SHORT_TO_HEX[Ra[nd]];return qa}const i
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return dd.stream()};return Object.assign(Ra,{transformToByteArray:nd,transformToString:async dd=>{const pd=await nd();if(dd==="base64")return toBase64(pd);if(dd==="hex")return toHex(pd);if(dd===void 0||dd==="utf8"||dd==="utf-8")return toUtf8(pd);if(typeof TextDecoder=="function")return new TextDecoder(dd).decode(pd);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(qa)throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);if(qa=!0,isBlobInstance(Ra))return od(Ra);if(isReadableStream$2(Ra))return Ra;throw new Error(`Cannot transform payload to web stream, got ${Ra}`)}})},isBlobInstance=Ra=>typeof Blob=="function"&&Ra instanceof Blob;async function splitStream(Ra){return typeof Ra.stream=="function"&&(Ra=Ra.stream()),Ra.tee()}async function headStream(Ra,qa){let nd=0;const od=[],ld=Ra.getReader();let ud=!1;for(;!ud;){const{done:fd,value:md}=await ld.read();if(md&&(od.push(md),nd+=(md==null?void 0:md.byteLength)??0),nd>=qa)break;ud=fd}ld.releaseLock();const dd=new Uint8Array(Math.min(qa,nd));let pd=0;for(const fd of od){if(fd.byteLength>dd.byteLength-pd){dd.set(fd.subarray(0,dd.byteLength-pd),pd);break}else dd.set(fd,pd);pd+=fd.length}return dd}const ReadableStreamRef=typeof ReadableStream=="function"?ReadableStream:function(){};class ChecksumStream extends ReadableStreamRef{}const createChecksumStream=({expectedChecksum:Ra,checksum:qa,source:nd,checksumSourceLocation:od,base64Encoder:ld})=>{var fd;if(!isReadableStream$2(nd))throw new Error(`@smithy/util-stream: unsupported source type ${((fd=nd==null?void 0:nd.constructor)==null?void 0:fd.name)??nd} in ChecksumStream.`);const ud=ld??toBase64;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const dd=new TransformStream({start(){},async transform(md,vd){qa.update(md),vd.enqueue(md)},async flush(md){const vd=await qa.digest(),Ad=ud(vd);if(Ra!==Ad){const Nd=new Error(`Checksum mismatch: expected "${Ra}" but received "${Ad}" in response header "${od}".`);md.error(Nd)}else md.terminate()}});nd.pipeThrough(dd);const pd=dd.readable;return Object.setPrototypeOf(pd,ChecksumStream.prototype),pd},collectBody$1=async(Ra=new Uint8Array,qa)=>{if(Ra instanceof Uint8Array)return Uint8ArrayBlobAdapter.mutate(Ra);if(!Ra)return Uint8ArrayBlobAdapter.mutate(new Uint8Array);const nd=qa.streamCollector(Ra);return Uint8ArrayBlobAdapter.mutate(await nd)};function extendedEncodeURIComponent(Ra){return encodeURIComponent(Ra).replace(/[!'()*]/g,function(qa){return"%"+qa.charCodeAt(0).toString(16).toUpperCase()})}const resolvedPath=(Ra,qa,nd,od,ld,ud)=>{if(qa!=null&&qa[nd]!==void 0){const dd=od();if(dd.length<=0)throw new Error("Empty value provided for input HTTP label: "+nd+".");Ra=Ra.replace(ld,ud?dd.split("/").map(pd=>extendedEncodeURIComponent(pd)).join("/"):extendedEncodeURIComponent(dd))}else throw new Error("No value provided for input HTTP label: "+nd+".");return Ra};function requestBuilder(Ra,qa){return new RequestBuilder(Ra,qa)}class RequestBuilder{constructor(qa,nd){this.input=qa,this.context=nd,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:qa,protocol:nd="https",port:od,path:ld}=await this.context.endpoint();this.path=ld;for(const ud of this.resolvePathStack)ud(this.path);return new HttpRequest({protocol:nd,hostname:this.hostname||qa,port:od,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(qa){return this.hostname=qa,this}bp(qa){return this.resolvePathStack.push(nd=>{this.path=`${nd!=null&&nd.endsWith("/")?nd.slice(0,-1):nd||""}`+qa}),this}p(qa,nd,od,ld){return this.resolvePathStack.push(ud=>{this.path=resolvedPath(ud,this.input,qa,nd,od,ld)}),this}h(qa){return this.headers=qa,this}q(qa){return this.query=qa,this}b(qa){return t
`);return this.signString(Od,{signingDate:od,signingRegion:pd,signingService:dd})}async signMessage(qa,{signingDate:nd=new Date,signingRegion:od,signingService:ld}){return this.signEvent({headers:this.headerFormatter.format(qa.message.headers),payload:qa.message.body},{signingDate:nd,signingRegion:od,signingService:ld,priorSignature:qa.priorSignature}).then(dd=>({message:qa.message,signature:dd}))}async signString(qa,{signingDate:nd=new Date,signingRegion:od,signingService:ld}={}){const ud=await this.credentialProvider();this.validateResolvedCredentials(ud);const dd=od??await this.regionProvider(),{shortDate:pd}=formatDate(nd),fd=new this.sha256(await this.getSigningKey(ud,dd,pd,ld));return fd.update(toUint8Array(qa)),toHex(await fd.digest())}async signRequest(qa,{signingDate:nd=new Date,signableHeaders:od,unsignableHeaders:ld,signingRegion:ud,signingService:dd}={}){const pd=await this.credentialProvider();this.validateResolvedCredentials(pd);const fd=ud??await this.regionProvider(),md=prepareRequest(qa),{longDate:vd,shortDate:Ad}=formatDate(nd),Nd=createScope(Ad,fd,dd??this.service);md.headers[AMZ_DATE_HEADER]=vd,pd.sessionToken&&(md.headers[TOKEN_HEADER]=pd.sessionToken);const Id=await getPayloadHash(md,this.sha256);!hasHeader$1(SHA256_HEADER,md.headers)&&this.applyChecksum&&(md.headers[SHA256_HEADER]=Id);const Od=getCanonicalHeaders(md,ld,od),Md=await this.getSignature(vd,Nd,this.getSigningKey(pd,fd,Ad,dd),this.createCanonicalRequest(md,Od,Id));return md.headers[AUTH_HEADER]=`${ALGORITHM_IDENTIFIER} Credential=${pd.accessKeyId}/${Nd}, SignedHeaders=${getCanonicalHeaderList(Od)}, Signature=${Md}`,md}createCanonicalRequest(qa,nd,od){const ld=Object.keys(nd).sort();return`${qa.method}
${this.getCanonicalPath(qa)}
${getCanonicalQuery(qa)}
${ld.map(ud=>`${ud}:${nd[ud]}`).join(`
`)}
${ld.join(";")}
${od}`}async createStringToSign(qa,nd,od){const ld=new this.sha256;ld.update(toUint8Array(od));const ud=await ld.digest();return`${ALGORITHM_IDENTIFIER}
${qa}
${nd}
${toHex(ud)}`}getCanonicalPath({path:qa}){if(this.uriEscapePath){const nd=[];for(const ud of qa.split("/"))(ud==null?void 0:ud.length)!==0&&ud!=="."&&(ud===".."?nd.pop():nd.push(ud));const od=`${qa!=null&&qa.startsWith("/")?"/":""}${nd.join("/")}${nd.length>0&&(qa!=null&&qa.endsWith("/"))?"/":""}`;return escapeUri(od).replace(/%2F/g,"/")}return qa}async getSignature(qa,nd,od,ld){const ud=await this.createStringToSign(qa,nd,ld),dd=new this.sha256(await od);return dd.update(toUint8Array(ud)),toHex(await dd.digest())}getSigningKey(qa,nd,od,ld){return getSigningKey$1(this.sha256,qa,od,nd,ld||this.service)}validateResolvedCredentials(qa){if(typeof qa!="object"||typeof qa.accessKeyId!="string"||typeof qa.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}}const formatDate=Ra=>{const qa=iso8601(Ra).replace(/[\-:]/g,"");return{longDate:qa,shortDate:qa.slice(0,8)}},getCanonicalHeaderList=Ra=>Object.keys(Ra).sort().join(";"),resolveAwsSdkSigV4Config=Ra=>{let qa=!1,nd;Ra.credentials&&(qa=!0,nd=memoizeIdentityProvider(Ra.credentials,isIdentityExpired,doesIdentityRequireRefresh)),nd||(Ra.credentialDefaultProvider?nd=normalizeProvider(Ra.credentialDefaultProvider(Object.assign({},Ra,{parentClientConfig:Ra}))):nd=async()=>{throw new Error("`credentials` is missing")});const od=async()=>nd({callerClientConfig:Ra}),{signingEscapePath:ld=!0,systemClockOffset:ud=Ra.systemClockOffset||0,sha256:dd}=Ra;let pd;return Ra.signer?pd=normalizeProvider(Ra.signer):Ra.regionInfoProvider?pd=()=>normalizeProvider(Ra.region)().then(async fd=>[await Ra.regionInfoProvider(fd,{useFipsEndpoint:await Ra.useFipsEndpoint(),useDualstackEndpoint:await Ra.useDualstackEndpoint()})||{},fd]).then(([fd,md])=>{const{signingRegion:vd,signingService:Ad}=fd;Ra.signingRegion=Ra.signingRegion||vd||md,Ra.signingName=Ra.signingName||Ad||Ra.serviceId;const Nd={...Ra,credentials:od,region:Ra.signingRegion,service:Ra.signingName,sha256:dd,uriEscapePath:ld},Id=Ra.signerConstructor||SignatureV4;return new Id(Nd)}):pd=async fd=>{fd=Object.assign({},{name:"sigv4",signingName:Ra.signingName||Ra.defaultSigningName,signingRegion:await normalizeProvider(Ra.region)(),properties:{}},fd);const md=fd.signingRegion,vd=fd.signingName;Ra.signingRegion=Ra.signingRegion||md,Ra.signingName=Ra.signingName||vd||Ra.serviceId;const Ad={...Ra,credentials:od,region:Ra.signingRegion,service:Ra.signingName,sha256:dd,uriEscapePath:ld},Nd=Ra.signerConstructor||SignatureV4;return new Nd(Ad)},{...Ra,systemClockOffset:ud,signingEscapePath:ld,credentials:qa?async()=>od().then(fd=>setCredentialFeature(fd,"CREDENTIALS_CODE","e")):od,signer:pd}},getAllAliases=(Ra,qa)=>{const nd=[];if(Ra&&nd.push(Ra),qa)for(const od of qa)nd.push(od);return nd},getMiddlewareNameWithAliases=(Ra,qa)=>`${Ra||"anonymous"}${qa&&qa.length>0?` (a.k.a. ${qa.join(",")})`:""}`,constructStack=()=>{let Ra=[],qa=[],nd=!1;const od=new Set,ld=Ad=>Ad.sort((Nd,Id)=>stepWeights[Id.step]-stepWeights[Nd.step]||priorityWeights[Id.priority||"normal"]-priorityWeights[Nd.priority||"normal"]),ud=Ad=>{let Nd=!1;const Id=Od=>{const Md=getAllAliases(Od.name,Od.aliases);if(Md.includes(Ad)){Nd=!0;for(const Ud of Md)od.delete(Ud);return!1}return!0};return Ra=Ra.filter(Id),qa=qa.filter(Id),Nd},dd=Ad=>{let Nd=!1;const Id=Od=>{if(Od.middleware===Ad){Nd=!0;for(const Md of getAllAliases(Od.name,Od.aliases))od.delete(Md);return!1}return!0};return Ra=Ra.filter(Id),qa=qa.filter(Id),Nd},pd=Ad=>{var Nd;return Ra.forEach(Id=>{Ad.add(Id.middleware,{...Id})}),qa.forEach(Id=>{Ad.addRelativeTo(Id.middleware,{...Id})}),(Nd=Ad.identifyOnResolve)==null||Nd.call(Ad,vd.identifyOnResolve()),Ad},fd=Ad=>{const Nd=[];return Ad.before.forEach(Id=>{Id.before.length===0&&Id.after.length===0?Nd.push(Id):Nd.push(...fd(Id))}),Nd.push(Ad),Ad.after.reverse().forEach(Id=>{Id.before.length===0&&Id.after.length===0?Nd.push(Id):Nd.push(...fd(Id))}),Nd},md=(Ad=!1)=>{const Nd=[],Id=[],Od={};return Ra.forEach(Ud=>{const jd={...Ud,before:[],after:[]};for(const Ld of getAllAliases(jd.name,jd.aliases))Od[Ld]=jd;Nd.push(jd)}),qa.forEach(Ud=>{const jd={...Ud,before:[],
`).slice(0,5).filter(qa=>!qa.includes("stackTraceWarning")).join(`
`),logger={warn:console.warn},DAYS=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MONTHS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(Ra){const qa=Ra.getUTCFullYear(),nd=Ra.getUTCMonth(),od=Ra.getUTCDay(),ld=Ra.getUTCDate(),ud=Ra.getUTCHours(),dd=Ra.getUTCMinutes(),pd=Ra.getUTCSeconds(),fd=ld<10?`0${ld}`:`${ld}`,md=ud<10?`0${ud}`:`${ud}`,vd=dd<10?`0${dd}`:`${dd}`,Ad=pd<10?`0${pd}`:`${pd}`;return`${DAYS[od]}, ${fd} ${MONTHS[nd]} ${qa} ${md}:${vd}:${Ad} GMT`}const RFC3339_WITH_OFFSET=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),parseRfc3339DateTimeWithOffset=Ra=>{if(Ra==null)return;if(typeof Ra!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const qa=RFC3339_WITH_OFFSET.exec(Ra);if(!qa)throw new TypeError("Invalid RFC-3339 date-time value");const[nd,od,ld,ud,dd,pd,fd,md,vd]=qa,Ad=strictParseShort(stripLeadingZeroes(od)),Nd=parseDateValue(ld,"month",1,12),Id=parseDateValue(ud,"day",1,31),Od=buildDate(Ad,Nd,Id,{hours:dd,minutes:pd,seconds:fd,fractionalMilliseconds:md});return vd.toUpperCase()!="Z"&&Od.setTime(Od.getTime()-parseOffsetToMilliseconds(vd)),Od},buildDate=(Ra,qa,nd,od)=>{const ld=qa-1;return validateDayOfMonth(Ra,ld,nd),new Date(Date.UTC(Ra,ld,nd,parseDateValue(od.hours,"hour",0,23),parseDateValue(od.minutes,"minute",0,59),parseDateValue(od.seconds,"seconds",0,60),parseMilliseconds(od.fractionalMilliseconds)))},DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],validateDayOfMonth=(Ra,qa,nd)=>{let od=DAYS_IN_MONTH[qa];if(qa===1&&isLeapYear(Ra)&&(od=29),nd>od)throw new TypeError(`Invalid day for ${MONTHS[qa]} in ${Ra}: ${nd}`)},isLeapYear=Ra=>Ra%4===0&&(Ra%100!==0||Ra%400===0),parseDateValue=(Ra,qa,nd,od)=>{const ld=strictParseByte(stripLeadingZeroes(Ra));if(ld<nd||ld>od)throw new TypeError(`${qa} must be between ${nd} and ${od}, inclusive`);return ld},parseMilliseconds=Ra=>Ra==null?0:strictParseFloat32("0."+Ra)*1e3,parseOffsetToMilliseconds=Ra=>{const qa=Ra[0];let nd=1;if(qa=="+")nd=1;else if(qa=="-")nd=-1;else throw new TypeError(`Offset direction, ${qa}, must be "+" or "-"`);const od=Number(Ra.substring(1,3)),ld=Number(Ra.substring(4,6));return nd*(od*60+ld)*60*1e3},stripLeadingZeroes=Ra=>{let qa=0;for(;qa<Ra.length-1&&Ra.charAt(qa)==="0";)qa++;return qa===0?Ra:Ra.slice(qa)};class ServiceException extends Error{constructor(qa){super(qa.message),Object.setPrototypeOf(this,ServiceException.prototype),this.name=qa.name,this.$fault=qa.$fault,this.$metadata=qa.$metadata}}const decorateServiceException=(Ra,qa={})=>{Object.entries(qa).filter(([,od])=>od!==void 0).forEach(([od,ld])=>{(Ra[od]==null||Ra[od]==="")&&(Ra[od]=ld)});const nd=Ra.message||Ra.Message||"UnknownError";return Ra.message=nd,delete Ra.Message,Ra},throwDefaultError$1=({output:Ra,parsedBody:qa,exceptionCtor:nd,errorCode:od})=>{const ld=deserializeMetadata$1(Ra),ud=ld.httpStatusCode?ld.httpStatusCode+"":void 0,dd=new nd({name:(qa==null?void 0:qa.code)||(qa==null?void 0:qa.Code)||od||ud||"UnknownError",$fault:"client",$metadata:ld});throw decorateServiceException(dd,qa)},withBaseException=Ra=>({output:qa,parsedBody:nd,errorCode:od})=>{throwDefaultError$1({output:qa,parsedBody:nd,exceptionCtor:Ra,errorCode:od})},deserializeMetadata$1=Ra=>({httpStatusCode:Ra.statusCode,requestId:Ra.headers["x-amzn-requestid"]??Ra.headers["x-amzn-request-id"]??Ra.headers["x-amz-request-id"],extendedRequestId:Ra.headers["x-amz-id-2"],cfId:Ra.headers["x-amz-cf-id"]}),loadConfigsForDefaultMode=Ra=>{switch(Ra){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},getChecksumConfiguration=Ra=>{const qa=[];for(const nd in AlgorithmId){const od=AlgorithmId[nd];Ra[od]!==void 0&&qa.push({algorithmId:()=>od,checksumConstructor:()=>Ra[od]})}return{_checksumAlgorithms:qa,addChecksumAlgorithm(nd){this._checksumAlgo
`&&Ra[ud]!=="\r";ud++)fd+=Ra[ud];if(fd=fd.trim(),fd[fd.length-1]==="/"&&(fd=fd.substring(0,fd.length-1),ud--),!validateTagName$1(fd)){let Ad;return fd.trim().length===0?Ad="Invalid space after '<'.":Ad="Tag '"+fd+"' is an invalid name.",getErrorObject$1("InvalidTag",Ad,getLineNumberForPosition$1(Ra,ud))}const md=readAttributeStr$1(Ra,ud);if(md===!1)return getErrorObject$1("InvalidAttr","Attributes for '"+fd+"' have open quote.",getLineNumberForPosition$1(Ra,ud));let vd=md.value;if(ud=md.index,vd[vd.length-1]==="/"){const Ad=ud-vd.length;vd=vd.substring(0,vd.length-1);const Nd=validateAttributeString$1(vd,qa);if(Nd===!0)od=!0;else return getErrorObject$1(Nd.err.code,Nd.err.msg,getLineNumberForPosition$1(Ra,Ad+Nd.err.line))}else if(pd)if(md.tagClosed){if(vd.trim().length>0)return getErrorObject$1("InvalidTag","Closing tag '"+fd+"' can't have attributes or invalid starting.",getLineNumberForPosition$1(Ra,dd));if(nd.length===0)return getErrorObject$1("InvalidTag","Closing tag '"+fd+"' has not been opened.",getLineNumberForPosition$1(Ra,dd));{const Ad=nd.pop();if(fd!==Ad.tagName){let Nd=getLineNumberForPosition$1(Ra,Ad.tagStartPos);return getErrorObject$1("InvalidTag","Expected closing tag '"+Ad.tagName+"' (opened in line "+Nd.line+", col "+Nd.col+") instead of closing tag '"+fd+"'.",getLineNumberForPosition$1(Ra,dd))}nd.length==0&&(ld=!0)}}else return getErrorObject$1("InvalidTag","Closing tag '"+fd+"' doesn't have proper closing.",getLineNumberForPosition$1(Ra,ud));else{const Ad=validateAttributeString$1(vd,qa);if(Ad!==!0)return getErrorObject$1(Ad.err.code,Ad.err.msg,getLineNumberForPosition$1(Ra,ud-vd.length+Ad.err.line));if(ld===!0)return getErrorObject$1("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition$1(Ra,ud));qa.unpairedTags.indexOf(fd)!==-1||nd.push({tagName:fd,tagStartPos:dd}),od=!0}for(ud++;ud<Ra.length;ud++)if(Ra[ud]==="<")if(Ra[ud+1]==="!"){ud++,ud=readCommentAndCDATA$1(Ra,ud);continue}else if(Ra[ud+1]==="?"){if(ud=readPI$1(Ra,++ud),ud.err)return ud}else break;else if(Ra[ud]==="&"){const Ad=validateAmpersand$1(Ra,ud);if(Ad==-1)return getErrorObject$1("InvalidChar","char '&' is not expected.",getLineNumberForPosition$1(Ra,ud));ud=Ad}else if(ld===!0&&!isWhiteSpace$1(Ra[ud]))return getErrorObject$1("InvalidXml","Extra text at the end",getLineNumberForPosition$1(Ra,ud));Ra[ud]==="<"&&ud--}}else{if(isWhiteSpace$1(Ra[ud]))continue;return getErrorObject$1("InvalidChar","char '"+Ra[ud]+"' is not expected.",getLineNumberForPosition$1(Ra,ud))}if(od){if(nd.length==1)return getErrorObject$1("InvalidTag","Unclosed tag '"+nd[0].tagName+"'.",getLineNumberForPosition$1(Ra,nd[0].tagStartPos));if(nd.length>0)return getErrorObject$1("InvalidXml","Invalid '"+JSON.stringify(nd.map(ud=>ud.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return getErrorObject$1("InvalidXml","Start tag expected.",1);return!0};function isWhiteSpace$1(Ra){return Ra===" "||Ra===" "||Ra===`
`||Ra==="\r"}function readPI$1(Ra,qa){const nd=qa;for(;qa<Ra.length;qa++)if(Ra[qa]=="?"||Ra[qa]==" "){const od=Ra.substr(nd,qa-nd);if(qa>5&&od==="xml")return getErrorObject$1("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition$1(Ra,qa));if(Ra[qa]=="?"&&Ra[qa+1]==">"){qa++;break}else continue}return qa}function readCommentAndCDATA$1(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 nd=1;for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="<")nd++;else if(Ra[qa]===">"&&(nd--,nd===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$1='"',singleQuote$1="'";function readAttributeStr$1(Ra,qa){let nd="",od="",ld=!1;for(;qa<Ra.length;qa++){if(Ra[qa]===doubleQuote$1||Ra[qa]===singleQuote$1)od===""?od=Ra[qa]:od!==Ra[qa]||(od="");else if(Ra[qa]===">"&&od===""){ld=!0;break}nd+=Ra[qa]}return od!==""?!1:{value:nd,index:qa,tagClosed:ld}}const validAttrStrRegxp$1=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString$1(Ra,qa){const nd=util$8.getAllMatches(Ra,validAttrStrRegxp$1),od={};for(let ld=0;ld<nd.length;ld++){if(nd[ld][1].length===0)return getErrorObject$1("InvalidAttr","Attribute '"+nd[ld][2]+"' has no space in starting.",getPositionFromMatch$1(nd[ld]));if(nd[ld][3]!==void 0&&nd[ld][4]===void 0)return getErrorObject$1("InvalidAttr","Attribute '"+nd[ld][2]+"' is without value.",getPositionFromMatch$1(nd[ld]));if(nd[ld][3]===void 0&&!qa.allowBooleanAttributes)return getErrorObject$1("InvalidAttr","boolean attribute '"+nd[ld][2]+"' is not allowed.",getPositionFromMatch$1(nd[ld]));const ud=nd[ld][2];if(!validateAttrName$1(ud))return getErrorObject$1("InvalidAttr","Attribute '"+ud+"' is an invalid name.",getPositionFromMatch$1(nd[ld]));if(!od.hasOwnProperty(ud))od[ud]=1;else return getErrorObject$1("InvalidAttr","Attribute '"+ud+"' is repeated.",getPositionFromMatch$1(nd[ld]))}return!0}function validateNumberAmpersand$1(Ra,qa){let nd=/\d/;for(Ra[qa]==="x"&&(qa++,nd=/[\da-fA-F]/);qa<Ra.length;qa++){if(Ra[qa]===";")return qa;if(!Ra[qa].match(nd))break}return-1}function validateAmpersand$1(Ra,qa){if(qa++,Ra[qa]===";")return-1;if(Ra[qa]==="#")return qa++,validateNumberAmpersand$1(Ra,qa);let nd=0;for(;qa<Ra.length;qa++,nd++)if(!(Ra[qa].match(/\w/)&&nd<20)){if(Ra[qa]===";")break;return-1}return qa}function getErrorObject$1(Ra,qa,nd){return{err:{code:Ra,msg:qa,line:nd.line||nd,col:nd.col}}}function validateAttrName$1(Ra){return util$8.isName(Ra)}function validateTagName$1(Ra){return util$8.isName(Ra)}function getLineNumberForPosition$1(Ra,qa){const nd=Ra.substring(0,qa).split(/\r?\n/);return{line:nd.length,col:nd[nd.length-1].length+1}}function getPositionFromMatch$1(Ra){return Ra.startIndex+Ra[1].length}var OptionsBuilder$1={};const defaultOptions$4={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,nd){return Ra}},buildOptions$3=function(Ra){return Object.assign({},defaultOptions$4,Ra)};OptionsBuilder$1.buildOptions=buildOptions$3;OptionsBuilder$1.defaultOptions=defaultOptions$4;let XmlNode$1=class{constructor(qa){this.tagname=qa,this.child=[],this[":@"]={}}add(qa,nd){q
`);const qa=new xmlNode$2("!xml");let nd=qa,od="",ld="";for(let ud=0;ud<Ra.length;ud++)if(Ra[ud]==="<")if(Ra[ud+1]==="/"){const pd=findClosingIndex$1(Ra,">",ud,"Closing Tag is not closed.");let fd=Ra.substring(ud+2,pd).trim();if(this.options.removeNSPrefix){const Ad=fd.indexOf(":");Ad!==-1&&(fd=fd.substr(Ad+1))}this.options.transformTagName&&(fd=this.options.transformTagName(fd)),nd&&(od=this.saveTextToParentTag(od,nd,ld));const md=ld.substring(ld.lastIndexOf(".")+1);if(fd&&this.options.unpairedTags.indexOf(fd)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${fd}>`);let vd=0;md&&this.options.unpairedTags.indexOf(md)!==-1?(vd=ld.lastIndexOf(".",ld.lastIndexOf(".")-1),this.tagsNodeStack.pop()):vd=ld.lastIndexOf("."),ld=ld.substring(0,vd),nd=this.tagsNodeStack.pop(),od="",ud=pd}else if(Ra[ud+1]==="?"){let pd=readTagExp$1(Ra,ud,!1,"?>");if(!pd)throw new Error("Pi Tag is not closed.");if(od=this.saveTextToParentTag(od,nd,ld),!(this.options.ignoreDeclaration&&pd.tagName==="?xml"||this.options.ignorePiTags)){const fd=new xmlNode$2(pd.tagName);fd.add(this.options.textNodeName,""),pd.tagName!==pd.tagExp&&pd.attrExpPresent&&(fd[":@"]=this.buildAttributesMap(pd.tagExp,ld,pd.tagName)),this.addChild(nd,fd,ld)}ud=pd.closeIndex+1}else if(Ra.substr(ud+1,3)==="!--"){const pd=findClosingIndex$1(Ra,"-->",ud+4,"Comment is not closed.");if(this.options.commentPropName){const fd=Ra.substring(ud+4,pd-2);od=this.saveTextToParentTag(od,nd,ld),nd.add(this.options.commentPropName,[{[this.options.textNodeName]:fd}])}ud=pd}else if(Ra.substr(ud+1,2)==="!D"){const pd=readDocType$2(Ra,ud);this.docTypeEntities=pd.entities,ud=pd.i}else if(Ra.substr(ud+1,2)==="!["){const pd=findClosingIndex$1(Ra,"]]>",ud,"CDATA is not closed.")-2,fd=Ra.substring(ud+9,pd);od=this.saveTextToParentTag(od,nd,ld);let md=this.parseTextData(fd,nd.tagname,ld,!0,!1,!0,!0);md==null&&(md=""),this.options.cdataPropName?nd.add(this.options.cdataPropName,[{[this.options.textNodeName]:fd}]):nd.add(this.options.textNodeName,md),ud=pd+2}else{let pd=readTagExp$1(Ra,ud,this.options.removeNSPrefix),fd=pd.tagName;const md=pd.rawTagName;let vd=pd.tagExp,Ad=pd.attrExpPresent,Nd=pd.closeIndex;this.options.transformTagName&&(fd=this.options.transformTagName(fd)),nd&&od&&nd.tagname!=="!xml"&&(od=this.saveTextToParentTag(od,nd,ld,!1));const Id=nd;if(Id&&this.options.unpairedTags.indexOf(Id.tagname)!==-1&&(nd=this.tagsNodeStack.pop(),ld=ld.substring(0,ld.lastIndexOf("."))),fd!==qa.tagname&&(ld+=ld?"."+fd:fd),this.isItStopNode(this.options.stopNodes,ld,fd)){let Od="";if(vd.length>0&&vd.lastIndexOf("/")===vd.length-1)fd[fd.length-1]==="/"?(fd=fd.substr(0,fd.length-1),ld=ld.substr(0,ld.length-1),vd=fd):vd=vd.substr(0,vd.length-1),ud=pd.closeIndex;else if(this.options.unpairedTags.indexOf(fd)!==-1)ud=pd.closeIndex;else{const Ud=this.readStopNodeData(Ra,md,Nd+1);if(!Ud)throw new Error(`Unexpected end of ${md}`);ud=Ud.i,Od=Ud.tagContent}const Md=new xmlNode$2(fd);fd!==vd&&Ad&&(Md[":@"]=this.buildAttributesMap(vd,ld,fd)),Od&&(Od=this.parseTextData(Od,fd,ld,!0,Ad,!0,!0)),ld=ld.substr(0,ld.lastIndexOf(".")),Md.add(this.options.textNodeName,Od),this.addChild(nd,Md,ld)}else{if(vd.length>0&&vd.lastIndexOf("/")===vd.length-1){fd[fd.length-1]==="/"?(fd=fd.substr(0,fd.length-1),ld=ld.substr(0,ld.length-1),vd=fd):vd=vd.substr(0,vd.length-1),this.options.transformTagName&&(fd=this.options.transformTagName(fd));const Od=new xmlNode$2(fd);fd!==vd&&Ad&&(Od[":@"]=this.buildAttributesMap(vd,ld,fd)),this.addChild(nd,Od,ld),ld=ld.substr(0,ld.lastIndexOf("."))}else{const Od=new xmlNode$2(fd);this.tagsNodeStack.push(nd),fd!==vd&&Ad&&(Od[":@"]=this.buildAttributesMap(vd,ld,fd)),this.addChild(nd,Od,ld),nd=Od}od="",ud=Nd}}else od+=Ra[ud];return qa.child};function addChild$1(Ra,qa,nd){const od=this.options.updateTag(qa.tagname,nd,qa[":@"]);od===!1||(typeof od=="string"&&(qa.tagname=od),Ra.addChild(qa))}const replaceEntitiesValue$3=function(Ra){if(this.options.processEntities){for(let qa in this.docTypeEntities){const nd=this.docTypeEntities[qa];Ra=Ra.replace(nd.regx,nd.val)}for(let qa in this.lastEntities)
`;function toXml$1(Ra,qa){let nd="";return qa.format&&qa.indentBy.length>0&&(nd=EOL$1),arrToStr$1(Ra,qa,"",nd)}function arrToStr$1(Ra,qa,nd,od){let ld="",ud=!1;for(let dd=0;dd<Ra.length;dd++){const pd=Ra[dd],fd=propName$2(pd);if(fd===void 0)continue;let md="";if(nd.length===0?md=fd:md=`${nd}.${fd}`,fd===qa.textNodeName){let Od=pd[fd];isStopNode$1(md,qa)||(Od=qa.tagValueProcessor(fd,Od),Od=replaceEntitiesValue$2(Od,qa)),ud&&(ld+=od),ld+=Od,ud=!1;continue}else if(fd===qa.cdataPropName){ud&&(ld+=od),ld+=`<![CDATA[${pd[fd][0][qa.textNodeName]}]]>`,ud=!1;continue}else if(fd===qa.commentPropName){ld+=od+`<!--${pd[fd][0][qa.textNodeName]}-->`,ud=!0;continue}else if(fd[0]==="?"){const Od=attr_to_str$1(pd[":@"],qa),Md=fd==="?xml"?"":od;let Ud=pd[fd][0][qa.textNodeName];Ud=Ud.length!==0?" "+Ud:"",ld+=Md+`<${fd}${Ud}${Od}?>`,ud=!0;continue}let vd=od;vd!==""&&(vd+=qa.indentBy);const Ad=attr_to_str$1(pd[":@"],qa),Nd=od+`<${fd}${Ad}`,Id=arrToStr$1(pd[fd],qa,md,vd);qa.unpairedTags.indexOf(fd)!==-1?qa.suppressUnpairedNode?ld+=Nd+">":ld+=Nd+"/>":(!Id||Id.length===0)&&qa.suppressEmptyNode?ld+=Nd+"/>":Id&&Id.endsWith(">")?ld+=Nd+`>${Id}${od}</${fd}>`:(ld+=Nd+">",Id&&od!==""&&(Id.includes("/>")||Id.includes("</"))?ld+=od+qa.indentBy+Id+od:ld+=Id,ld+=`</${fd}>`),ud=!0}return ld}function propName$2(Ra){const qa=Object.keys(Ra);for(let nd=0;nd<qa.length;nd++){const od=qa[nd];if(Ra.hasOwnProperty(od)&&od!==":@")return od}}function attr_to_str$1(Ra,qa){let nd="";if(Ra&&!qa.ignoreAttributes)for(let od in Ra){if(!Ra.hasOwnProperty(od))continue;let ld=qa.attributeValueProcessor(od,Ra[od]);ld=replaceEntitiesValue$2(ld,qa),ld===!0&&qa.suppressBooleanAttributes?nd+=` ${od.substr(qa.attributeNamePrefix.length)}`:nd+=` ${od.substr(qa.attributeNamePrefix.length)}="${ld}"`}return nd}function isStopNode$1(Ra,qa){Ra=Ra.substr(0,Ra.length-qa.textNodeName.length-1);let nd=Ra.substr(Ra.lastIndexOf(".")+1);for(let od in qa.stopNodes)if(qa.stopNodes[od]===Ra||qa.stopNodes[od]==="*."+nd)return!0;return!1}function replaceEntitiesValue$2(Ra,qa){if(Ra&&Ra.length>0&&qa.processEntities)for(let nd=0;nd<qa.entities.length;nd++){const od=qa.entities[nd];Ra=Ra.replace(od.regex,od.val)}return Ra}var orderedJs2Xml$1=toXml$1;const buildFromOrderedJs$1=orderedJs2Xml$1,defaultOptions$3={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$1(Ra){this.options=Object.assign({},defaultOptions$3,Ra),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute$1),this.processTextOrObjNode=processTextOrObjNode$1,this.options.format?(this.indentate=indentate$1,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Builder$1.prototype.build=function(Ra){return this.options.preserveOrder?buildFromOrderedJs$1(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$1.prototype.j2x=function(Ra,qa){let nd="",od="";for(let ld in Ra)if(Object.prototype.hasOwnProperty.call(Ra,ld))if(typeof Ra[ld]>"u")this.isAttribute(ld)&&(od+="");else if(Ra[ld]===null)this.isAttribute(ld)?od+="":ld[0]==="?"?od+=this.indentate(qa)+"<"+ld+"?"+this.tagEndChar:od+=this.indentate(qa)+"<"+ld+"/"+this.tagEndChar;else if(Ra[ld]instanceof Date)od+=this.buildTextValNode(Ra[ld],ld,"",qa);else if(typeof Ra[ld]!="object"){const ud=this.isAttribute(ld);if(ud)nd+=this.buildAttrPairStr(ud,""+Ra[ld]);else if(ld===this.options.textNodeName){let dd=this.options.tagValueProcessor(ld,""+Ra[ld]);od+=this.replaceEntitiesValue(dd)}else od+=this.buildTextValNode(Ra[ld],ld,"",qa)}else if(Array.isArray(Ra[ld])){const ud=Ra[ld].length;let dd="",pd="";for(let fd=0;fd<ud;fd++){const md=Ra[ld][fd];if(!(typeof md>"u"))if(md===null)ld[0]==="?"?od+=this.indentate(qa)+"<"+ld+"?"+this.tagEndChar:od+=this.indentate(qa)+"<"+ld+"/"+this.tagEndChar;else if(typeof md=="object")if(this.options.oneListGroup){const vd=this.j2x(md,qa+1);dd+=vd.val,this.options.attributesGroupName&&md.hasOwnProperty(this.options.attributesGroupName)&&(pd+=vd.attrStr)}else dd+=this.processTextOrObjNode(md,ld,qa);else if(this.options.oneListGroup){let vd=this.options.tagValueProcessor(ld,md);vd=this.replaceEntitiesValue(vd),dd+=vd}else dd+=this.buildTextValNode(md,ld,"",qa)}this.options.oneListGroup&&(dd=this.buildObjectNode(dd,ld,pd,qa)),od+=dd}else if(this.options.attributesGroupName&&ld===this.options.attributesGroupName){const ud=Object.keys(Ra[ld]),dd=ud.length;for(let pd=0;pd<dd;pd++)nd+=this.buildAttrPairStr(ud[pd],""+Ra[ld][ud[pd]])}else od+=this.processTextOrObjNode(Ra[ld],ld,qa);return{attrStr:nd,val:od}};Builder$1.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$1(Ra,qa,nd){const od=this.j2x(Ra,nd+1);return Ra[this.options.textNodeName]!==void 0&&Object.keys(Ra).length===1?this.buildTextValNode(Ra[this.options.textNodeName],qa,od.attrStr,nd):this.buildObjectNode(od.val,qa,od.attrStr,nd)}Builder$1.prototype.buildObjectNode=function(Ra,qa,nd,od){if(Ra==="")return qa[0]==="?"?this.indentate(od)+"<"+qa+nd+"?"+this.tagEndChar:this.indentate(od)+"<"+qa+nd+this.closeTag(qa)+this.tagEndChar;{let ld="</"+qa+this.tagEndChar,ud="";return qa[0]==="?"&&(ud="?",ld=""),(nd||nd==="")&&Ra.indexOf("<")===-1?this.indentate(od)+"<"+qa+nd+ud+">"+Ra+ld:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&ud.length===0?this.indentate(od)+`<!--${Ra}-->`+this.newLine:this.indentate(od)+"<"+qa+nd+ud+this.tagEndChar+Ra+this.indentate(od)+ld}};Builder$1.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$1.prototype.buildTextValNode=function(Ra,qa,nd,od){if(this.options.cdataPropName!==!1&&qa===this.options.cdataPropName)return this.indentate(od)+`<![CDATA[${Ra}]]>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(od)+`<!--${Ra}-->`+this.newLine;if(qa[0]==="?")return this.indentate(od)+"<"+qa+nd+"?"+this.tagEndChar;{let ld=this.options.tagValueProcessor(qa,Ra);return ld=this.replaceEntitiesValue(ld),ld===""?this.indentate(od)+"<"+qa+nd+this.closeTag(qa)+this.tagEndChar:this.indentate(od)+"<"+qa+nd+">"+ld+"</"+qa+this.tagEndChar}};Builder$1.prototype.replaceEntitiesValue=function(Ra){if(Ra&&Ra.length>0&&this.options.processEntities)for(let qa=0;qa<this.options.entities.length;qa++){const nd=this.options.entities[qa];Ra=Ra.replace(nd.regex,n
`)?"":void 0});od.addEntity("#xD","\r"),od.addEntity("#10",`
`);let ld;try{ld=od.parse(nd,!0)}catch(fd){throw fd&&typeof fd=="object"&&Object.defineProperty(fd,"$responseBodyText",{value:nd}),fd}const ud="#text",dd=Object.keys(ld)[0],pd=ld[dd];return pd[ud]&&(pd[dd]=pd[ud],delete pd[ud]),getValueFromTextNode(pd)}return{}}),parseXmlErrorBody=async(Ra,qa)=>{const nd=await parseXmlBody(Ra,qa);return nd.Error&&(nd.Error.message=nd.Error.message??nd.Error.Message),nd},loadRestXmlErrorCode=(Ra,qa)=>{var nd;if(((nd=qa==null?void 0:qa.Error)==null?void 0:nd.Code)!==void 0)return qa.Error.Code;if((qa==null?void 0:qa.Code)!==void 0)return qa.Code;if(Ra.statusCode==404)return"NotFound"},CLIENT_SUPPORTED_ALGORITHMS=[ChecksumAlgorithm.CRC32,ChecksumAlgorithm.CRC32C,ChecksumAlgorithm.SHA1,ChecksumAlgorithm.SHA256],PRIORITY_ORDER_ALGORITHMS=[ChecksumAlgorithm.SHA256,ChecksumAlgorithm.SHA1,ChecksumAlgorithm.CRC32,ChecksumAlgorithm.CRC32C],getChecksumAlgorithmForRequest=(Ra,{requestChecksumRequired:qa,requestAlgorithmMember:nd},od)=>{const ld=od?S3_EXPRESS_DEFAULT_CHECKSUM_ALGORITHM:DEFAULT_CHECKSUM_ALGORITHM;if(!nd||!Ra[nd])return qa?ld:void 0;const ud=Ra[nd];if(!CLIENT_SUPPORTED_ALGORITHMS.includes(ud))throw new Error(`The checksum algorithm "${ud}" is not supported by the client. Select one of ${CLIENT_SUPPORTED_ALGORITHMS}.`);return ud},getChecksumLocationName=Ra=>Ra===ChecksumAlgorithm.MD5?"content-md5":`x-amz-checksum-${Ra.toLowerCase()}`,hasHeader=(Ra,qa)=>{const nd=Ra.toLowerCase();for(const od of Object.keys(qa))if(nd===od.toLowerCase())return!0;return!1},hasHeaderWithPrefix=(Ra,qa)=>{const nd=Ra.toLowerCase();for(const od of Object.keys(qa))if(od.toLowerCase().startsWith(nd))return!0;return!1},isStreaming=Ra=>Ra!==void 0&&typeof Ra!="string"&&!ArrayBuffer.isView(Ra)&&!isArrayBuffer$1(Ra);function __awaiter$8(Ra,qa,nd,od){function ld(ud){return ud instanceof nd?ud:new nd(function(dd){dd(ud)})}return new(nd||(nd=Promise))(function(ud,dd){function pd(vd){try{md(od.next(vd))}catch(Ad){dd(Ad)}}function fd(vd){try{md(od.throw(vd))}catch(Ad){dd(Ad)}}function md(vd){vd.done?ud(vd.value):ld(vd.value).then(pd,fd)}md((od=od.apply(Ra,qa||[])).next())})}function __generator$8(Ra,qa){var nd={label:0,sent:function(){if(ud[0]&1)throw ud[1];return ud[1]},trys:[],ops:[]},od,ld,ud,dd=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return dd.next=pd(0),dd.throw=pd(1),dd.return=pd(2),typeof Symbol=="function"&&(dd[Symbol.iterator]=function(){return this}),dd;function pd(md){return function(vd){return fd([md,vd])}}function fd(md){if(od)throw new TypeError("Generator is already executing.");for(;dd&&(dd=0,md[0]&&(nd=0)),nd;)try{if(od=1,ld&&(ud=md[0]&2?ld.return:md[0]?ld.throw||((ud=ld.return)&&ud.call(ld),0):ld.next)&&!(ud=ud.call(ld,md[1])).done)return ud;switch(ld=0,ud&&(md=[md[0]&2,ud.value]),md[0]){case 0:case 1:ud=md;break;case 4:return nd.label++,{value:md[1],done:!1};case 5:nd.label++,ld=md[1],md=[0];continue;case 7:md=nd.ops.pop(),nd.trys.pop();continue;default:if(ud=nd.trys,!(ud=ud.length>0&&ud[ud.length-1])&&(md[0]===6||md[0]===2)){nd=0;continue}if(md[0]===3&&(!ud||md[1]>ud[0]&&md[1]<ud[3])){nd.label=md[1];break}if(md[0]===6&&nd.label<ud[1]){nd.label=ud[1],ud=md;break}if(ud&&nd.label<ud[2]){nd.label=ud[2],nd.ops.push(md);break}ud[2]&&nd.ops.pop(),nd.trys.pop();continue}md=qa.call(Ra,nd)}catch(vd){md=[6,vd],ld=0}finally{od=ud=0}if(md[0]&5)throw md[1];return{value:md[0]?md[1]:void 0,done:!0}}}function __values(Ra){var qa=typeof Symbol=="function"&&Symbol.iterator,nd=qa&&Ra[qa],od=0;if(nd)return nd.call(Ra);if(Ra&&typeof Ra.length=="number")return{next:function(){return Ra&&od>=Ra.length&&(Ra=void 0),{value:Ra&&Ra[od++],done:!Ra}}};throw new TypeError(qa?"Object is not iterable.":"Symbol.iterator is not defined.")}typeof SuppressedError=="function"&&SuppressedError;const fromUtf8$2=Ra=>new TextEncoder().encode(Ra);var fromUtf8$1=typeof Buffer$4<"u"&&Buffer$4.from?function(Ra){return Buffer$4.from(Ra,"utf8")}:fromUtf8$2;function convertToBuffer$2(Ra){return Ra instanceof Uint8Array?Ra:typeof Ra=="string"?fromUtf8$1(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,
`+dd)});const nd=await this.createSessionFn(qa);if(!((ld=nd.Credentials)!=null&&ld.AccessKeyId)||!((ud=nd.Credentials)!=null&&ud.SecretAccessKey))throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:nd.Credentials.AccessKeyId,secretAccessKey:nd.Credentials.SecretAccessKey,sessionToken:nd.Credentials.SessionToken,expiration:nd.Credentials.Expiration?new Date(nd.Credentials.Expiration):void 0}}}S3ExpressIdentityProviderImpl.REFRESH_WINDOW_MS=6e4;var SelectorType;(function(Ra){Ra.ENV="env",Ra.CONFIG="shared config entry"})(SelectorType||(SelectorType={}));const S3_EXPRESS_BUCKET_TYPE="Directory",S3_EXPRESS_BACKEND="S3Express",S3_EXPRESS_AUTH_SCHEME="sigv4-s3express",SESSION_TOKEN_QUERY_PARAM="X-Amz-S3session-Token",SESSION_TOKEN_HEADER=SESSION_TOKEN_QUERY_PARAM.toLowerCase();class SignatureV4S3Express extends SignatureV4{async signWithCredentials(qa,nd,od){const ld=getCredentialsWithoutSessionToken(nd);qa.headers[SESSION_TOKEN_HEADER]=nd.sessionToken;const ud=this;return setSingleOverride(ud,ld),ud.signRequest(qa,od??{})}async presignWithCredentials(qa,nd,od){const ld=getCredentialsWithoutSessionToken(nd);return delete qa.headers[SESSION_TOKEN_HEADER],qa.headers[SESSION_TOKEN_QUERY_PARAM]=nd.sessionToken,qa.query=qa.query??{},qa.query[SESSION_TOKEN_QUERY_PARAM]=nd.sessionToken,setSingleOverride(this,ld),this.presign(qa,od)}}function getCredentialsWithoutSessionToken(Ra){return{accessKeyId:Ra.accessKeyId,secretAccessKey:Ra.secretAccessKey,expiration:Ra.expiration}}function setSingleOverride(Ra,qa){const nd=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),od=Ra.credentialProvider,ld=()=>(clearTimeout(nd),Ra.credentialProvider=od,Promise.resolve(qa));Ra.credentialProvider=ld}const s3ExpressMiddleware=Ra=>(qa,nd)=>async od=>{var ld,ud,dd,pd,fd;if(nd.endpointV2){const md=nd.endpointV2,vd=((dd=(ud=(ld=md.properties)==null?void 0:ld.authSchemes)==null?void 0:ud[0])==null?void 0:dd.name)===S3_EXPRESS_AUTH_SCHEME;if((((pd=md.properties)==null?void 0:pd.backend)===S3_EXPRESS_BACKEND||((fd=md.properties)==null?void 0:fd.bucketType)===S3_EXPRESS_BUCKET_TYPE)&&(setFeature$1(nd,"S3_EXPRESS_BUCKET","J"),nd.isS3ExpressBucket=!0),vd){const Nd=od.input.Bucket;if(Nd){const Id=await Ra.s3ExpressIdentityProvider.getS3ExpressIdentity(await Ra.credentials(),{Bucket:Nd});nd.s3ExpressIdentity=Id,HttpRequest.isInstance(od.request)&&Id.sessionToken&&(od.request.headers[SESSION_TOKEN_HEADER]=Id.sessionToken)}}}return qa(od)},s3ExpressMiddlewareOptions={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},getS3ExpressPlugin=Ra=>({applyToStack:qa=>{qa.add(s3ExpressMiddleware(Ra),s3ExpressMiddlewareOptions)}}),signS3Express=async(Ra,qa,nd,od)=>{const ld=await od.signWithCredentials(nd,Ra,{});if(ld.headers["X-Amz-Security-Token"]||ld.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return ld},defaultErrorHandler=Ra=>qa=>{throw qa},defaultSuccessHandler=(Ra,qa)=>{},s3ExpressHttpSigningMiddleware=Ra=>(qa,nd)=>async od=>{if(!HttpRequest.isInstance(od.request))return qa(od);const ud=getSmithyContext(nd).selectedHttpAuthScheme;if(!ud)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:dd={}},identity:pd,signer:fd}=ud;let md;nd.s3ExpressIdentity?md=await signS3Express(nd.s3ExpressIdentity,dd,od.request,await Ra.signer()):md=await fd.sign(od.request,pd,dd);const vd=await qa({...od,request:md}).catch((fd.errorHandler||defaultErrorHandler)(dd));return(fd.successHandler||defaultSuccessHandler)(vd.response,dd),vd},getS3ExpressHttpSigningPlugin=Ra=>({applyToStack:qa=>{qa.addRelativeTo(s3ExpressHttpSigningMiddleware(Ra),httpSigningMiddlewareOptions)}}),resolveS3Config=(Ra,{session:qa})=>{const[nd,od]=qa;return{...Ra,forcePathStyle:Ra.forcePathStyle??!1,useAccelerateEndpoint:Ra.useAccelerateEndpoint??!1,disableMultiregionAccessPoints:Ra.disableMultiregionAccessPoints??!1,followRegionRedirects:Ra.foll
Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly.
You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";].
For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`,nd}this.sigv4aSigner=new qa({...this.signerOptions,signingAlgorithm:1})}return this.sigv4aSigner}}const ci="required",cj="type",ck="conditions",cl="fn",cm="argv",cn="ref",co="assign",cp="url",cq="properties",cr="backend",cs="authSchemes",ct="disableDoubleEncoding",cu="signingName",cv="signingRegion",cw="headers",cx="signingRegionSet",a=6,b=!1,c=!0,d="isSet",e="booleanEquals",f="error",g$2="aws.partition",h="stringEquals",i="getAttr",j="name",k="substring",l="bucketSuffix",m="parseURL",n="{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",o="endpoint",p="tree",q="aws.isVirtualHostableS3Bucket",r="{url#scheme}://{Bucket}.{url#authority}{url#path}",s="not",t="{url#scheme}://{url#authority}{url#path}",u="hardwareType",v="regionPrefix",w="bucketAliasSuffix",x="outpostId",y="isValidHostLabel",z="sigv4a",A="s3-outposts",B="s3",C="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",D="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",E="https://{Bucket}.s3.{partitionResult#dnsSuffix}",F="aws.parseArn",G="bucketArn",H="arnType",I="",J="s3-object-lambda",K="accesspoint",L="accessPointName",M="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",N="mrapPartition",O="outpostType",P="arnPrefix",Q="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",R$1="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",S="https://s3.{partitionResult#dnsSuffix}",T={[ci]:!1,[cj]:"String"},U={[ci]:!0,default:!1,[cj]:"Boolean"},V={[ci]:!1,[cj]:"Boolean"},W={[cl]:e,[cm]:[{[cn]:"Accelerate"},!0]},X={[cl]:e,[cm]:[{[cn]:"UseFIPS"},!0]},Y={[cl]:e,[cm]:[{[cn]:"UseDualStack"},!0]},Z={[cl]:d,[cm]:[{[cn]:"Endpoint"}]},aa={[cl]:g$2,[cm]:[{[cn]:"Region"}],[co]:"partitionResult"},ab={[cl]:h,[cm]:[{[cl]:i,[cm]:[{[cn]:"partitionResult"},j]},"aws-cn"]},ac={[cl]:d,[cm]:[{[cn]:"Bucket"}]},ad={[cn]:"Bucket"},ae={[cl]:m,[cm]:[{[cn]:"Endpoint"}],[co]:"url"},af={[cl]:e,[cm]:[{[cl]:i,[cm]:[{[cn]:"url"},"isIp"]},!0]},ag={[cn]:"url"},ah={[cl]:"uriEncode",[cm]:[ad],[co]:"uri_encoded_bucket"},ai={[cr]:"S3Express",[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:"s3express",[cv]:"{Region}"}]},aj={},ak={[cl]:q,[cm]:[ad,!1]},al={[f]:"S3Express bucket name is not a valid virtual hostable name.",[cj]:f},am={[cr]:"S3Express",[cs]:[{[ct]:!0,[j]:"sigv4-s3express",[cu]:"s3express",[cv]:"{Region}"}]},an={[cl]:d,[cm]:[{[cn]:"UseS3ExpressControlEndpoint"}]},ao={[cl]:e,[cm]:[{[cn]:"UseS3ExpressControlEndpoint"},!0]},ap={[cl]:s,[cm]:[Z]},aq={[f]:"Unrecognized S3Express bucket name format.",[cj]:f},ar={[cl]:s,[cm]:[ac]},as={[cn]:u},at={[ck]:[ap],[f]:"Expected a endpoint to be specified but no endpoint was found",[cj]:f},au={[cs]:[{[ct]:!0,[j]:z,[cu]:A,[cx]:["*"]},{[ct]:!0,[j]:"sigv4",[cu]:A,[cv]:"{Region}"}]},av={[cl]:e,[cm]:[{[cn]:"ForcePathStyle"},!1]},aw={[cn]:"ForcePathStyle"},ax={[cl]:e,[cm]:[{[cn]:"Accelerate"},!1]},ay={[cl]:h,[cm]:[{[cn]:"Region"},"aws-global"]},az={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"us-east-1"}]},aA={[cl]:s,[cm]:[ay]},aB={[cl]:e,[cm]:[{[cn]:"UseGlobalEndpoint"},!0]},aC={[cp]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:{[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"{Region}"}]},[cw]:{}},aD={[cs]:[{[ct]:!0,[j]:"sigv4",[cu]:B,[cv]:"{Region}"}]},aE={[cl]:e,[cm]:[{[cn]:"UseGlobalEndpoint"},!1]},aF={[cl]:e,[cm]:[{[cn]:"UseDualStack"},!1]},aG={[cp]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aH={[cl]:e,[cm]:[{[cn]:"UseFIPS"},!1]},aI={[cp]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aJ={[cp]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aK={[cl]:e,[cm]:[{[cl]:i,[cm]:[ag,"isIp"]},!1]},aL={[cp]:C,[cq]:aD,[cw]:{}},aM={[cp]:r,[cq]:aD,[cw]:{}},aN={[o]:aM,[cj]:o},aO={[cp]:D,[cq]:aD,[cw]:{}},aP={[cp]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[cq]:aD,[cw]:{}},aQ={[f]:"Invalid region: region was not a valid DNS name.",[cj]:f},aR
* Bowser - a browser detector
* https://github.com/lancedikson/bowser
* MIT License | (c) Dustin Diaz 2012-2015
* MIT License | (c) Denis Demchenko 2015-2019
*/class Bowser{static getParser(qa,nd=!1){if(typeof qa!="string")throw new Error("UserAgent should be a string");return new Parser(qa,nd)}static parse(qa){return new Parser(qa).getResult()}static get BROWSER_MAP(){return BROWSER_MAP}static get ENGINE_MAP(){return ENGINE_MAP}static get OS_MAP(){return OS_MAP}static get PLATFORMS_MAP(){return PLATFORMS_MAP}}const createDefaultUserAgentProvider=({serviceId:Ra,clientVersion:qa})=>async nd=>{var dd,pd,fd,md,vd,Ad;const od=typeof window<"u"&&((dd=window==null?void 0:window.navigator)!=null&&dd.userAgent)?Bowser.parse(window.navigator.userAgent):void 0,ld=[["aws-sdk-js",qa],["ua","2.1"],[`os/${((pd=od==null?void 0:od.os)==null?void 0:pd.name)||"other"}`,(fd=od==null?void 0:od.os)==null?void 0:fd.version],["lang/js"],["md/browser",`${((md=od==null?void 0:od.browser)==null?void 0:md.name)??"unknown"}_${((vd=od==null?void 0:od.browser)==null?void 0:vd.version)??"unknown"}`]];Ra&&ld.push([`api/${Ra}`,qa]);const ud=await((Ad=nd==null?void 0:nd.userAgentAppId)==null?void 0:Ad.call(nd));return ud&&ld.push([`app/${ud}`]),ld};class Int64{constructor(qa){if(this.bytes=qa,qa.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(qa){if(qa>9223372036854776e3||qa<-9223372036854776e3)throw new Error(`${qa} is too large (or, if negative, too small) to represent as an Int64`);const nd=new Uint8Array(8);for(let od=7,ld=Math.abs(Math.round(qa));od>-1&&ld>0;od--,ld/=256)nd[od]=ld;return qa<0&&negate(nd),new Int64(nd)}valueOf(){const qa=this.bytes.slice(0),nd=qa[0]&128;return nd&&negate(qa),parseInt(toHex(qa),16)*(nd?-1:1)}toString(){return String(this.valueOf())}}function negate(Ra){for(let qa=0;qa<8;qa++)Ra[qa]^=255;for(let qa=7;qa>-1&&(Ra[qa]++,Ra[qa]===0);qa--);}class HeaderMarshaller{constructor(qa,nd){this.toUtf8=qa,this.fromUtf8=nd}format(qa){const nd=[];for(const ud of Object.keys(qa)){const dd=this.fromUtf8(ud);nd.push(Uint8Array.from([dd.byteLength]),dd,this.formatHeaderValue(qa[ud]))}const od=new Uint8Array(nd.reduce((ud,dd)=>ud+dd.byteLength,0));let ld=0;for(const ud of nd)od.set(ud,ld),ld+=ud.byteLength;return od}formatHeaderValue(qa){switch(qa.type){case"boolean":return Uint8Array.from([qa.value?0:1]);case"byte":return Uint8Array.from([2,qa.value]);case"short":const nd=new DataView(new ArrayBuffer(3));return nd.setUint8(0,3),nd.setInt16(1,qa.value,!1),new Uint8Array(nd.buffer);case"integer":const od=new DataView(new ArrayBuffer(5));return od.setUint8(0,4),od.setInt32(1,qa.value,!1),new Uint8Array(od.buffer);case"long":const ld=new Uint8Array(9);return ld[0]=5,ld.set(qa.value.bytes,1),ld;case"binary":const ud=new DataView(new ArrayBuffer(3+qa.value.byteLength));ud.setUint8(0,6),ud.setUint16(1,qa.value.byteLength,!1);const dd=new Uint8Array(ud.buffer);return dd.set(qa.value,3),dd;case"string":const pd=this.fromUtf8(qa.value),fd=new DataView(new ArrayBuffer(3+pd.byteLength));fd.setUint8(0,7),fd.setUint16(1,pd.byteLength,!1);const md=new Uint8Array(fd.buffer);return md.set(pd,3),md;case"timestamp":const vd=new Uint8Array(9);return vd[0]=8,vd.set(Int64.fromNumber(qa.value.valueOf()).bytes,1),vd;case"uuid":if(!UUID_PATTERN.test(qa.value))throw new Error(`Invalid UUID received: ${qa.value}`);const Ad=new Uint8Array(17);return Ad[0]=9,Ad.set(fromHex(qa.value.replace(/\-/g,"")),1),Ad}}parse(qa){const nd={};let od=0;for(;od<qa.byteLength;){const ld=qa.getUint8(od++),ud=this.toUtf8(new Uint8Array(qa.buffer,qa.byteOffset+od,ld));switch(od+=ld,qa.getUint8(od++)){case 0:nd[ud]={type:BOOLEAN_TAG,value:!0};break;case 1:nd[ud]={type:BOOLEAN_TAG,value:!1};break;case 2:nd[ud]={type:BYTE_TAG,value:qa.getInt8(od++)};break;case 3:nd[ud]={type:SHORT_TAG,value:qa.getInt16(od,!1)},od+=2;break;case 4:nd[ud]={type:INT_TAG,value:qa.getInt32(od,!1)},od+=4;break;case 5:nd[ud]={type:LONG_TAG,value:new Int64(new Uint8Array(qa.buffer,qa.byteOffset+od,8))},od+=8;break;case 6:const dd=qa.getUint16(od,!1);od+=2,nd[ud]={type:BINARY_TAG,value:new Uint8Array(qa.buffer,qa.byteOffset+od,dd)},od+=dd;break;case 7:const pd=qa.getUint16(od,!1);od+=2,nd[ud]={type:STRING_TAG,value:this.toUtf8(
`).forEach(function(jd){if(jd){var Ld=jd.indexOf(":"),Bd=jd.substr(0,Ld).trim().toLowerCase(),Gd=jd.substr(Ld+1).trim();Md[Bd]=Gd}}),{error:Nd,statusCode:Id.status,statusMessage:Id.statusText,headers:Md,body:Od}},md=function(Nd,Id){return!Id&&Id==="text"?Nd.responseText:Nd.response},vd=function(Nd,Id){var Od=(Nd.method||"GET").toUpperCase(),Md=Nd.url;if(Nd.qs){var Ud=pd(Nd.qs);Ud&&(Md+=(Md.indexOf("?")===-1?"?":"&")+Ud)}var jd=new XMLHttpRequest;if(jd.open(Od,Md,!0),jd.responseType=Nd.dataType||"text",Nd.xhrFields)for(var Ld in Nd.xhrFields)jd[Ld]=Nd.xhrFields[Ld];var Bd=Nd.headers;if(Bd)for(var Gd in Bd)Bd.hasOwnProperty(Gd)&&Gd.toLowerCase()!=="content-length"&&Gd.toLowerCase()!=="user-agent"&&Gd.toLowerCase()!=="origin"&&Gd.toLowerCase()!=="host"&&jd.setRequestHeader(Gd,Bd[Gd]);return Nd.onProgress&&jd.upload&&(jd.upload.onprogress=Nd.onProgress),Nd.onDownloadProgress&&(jd.onprogress=Nd.onDownloadProgress),Nd.timeout&&(jd.timeout=Nd.timeout),jd.ontimeout=function(qd){var zd=new Error("timeout");Id(fd(zd,jd))},jd.onload=function(){Id(fd(null,jd,md(jd,Nd.dataType)))},jd.onerror=function(qd){var zd=md(jd,Nd.dataType);if(zd)Id(fd(null,jd,zd));else{var Xd=jd.statusText;!Xd&&jd.status===0&&(Xd=new Error("CORS blocked or network error")),Id(fd(Xd,jd,zd))}},jd.send(Nd.body||""),jd};nd.exports=vd},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(nd,od){function ld(ud,dd){if(!(ud instanceof dd))throw new TypeError("Cannot call a class as a function")}nd.exports=ld,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function dd(fd,md){for(var vd=0;vd<md.length;vd++){var Ad=md[vd];Ad.enumerable=Ad.enumerable||!1,Ad.configurable=!0,"value"in Ad&&(Ad.writable=!0),Object.defineProperty(fd,ud(Ad.key),Ad)}}function pd(fd,md,vd){return md&&dd(fd.prototype,md),vd&&dd(fd,vd),Object.defineProperty(fd,"prototype",{writable:!1}),fd}nd.exports=pd,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/typeof.js").default;function dd(pd,fd){if(ud(pd)!=="object"||pd===null)return pd;var md=pd[Symbol.toPrimitive];if(md!==void 0){var vd=md.call(pd,fd||"default");if(ud(vd)!=="object")return vd;throw new TypeError("@@toPrimitive must return a primitive value.")}return(fd==="string"?String:Number)(pd)}nd.exports=dd,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(nd,od,ld){var ud=ld("./node_modules/@babel/runtime/helpers/typeof.js").default,dd=ld("./node_modules/@babel/runtime/helpers/toPrimitive.js");function pd(fd){var md=dd(fd,"string");return ud(md)==="symbol"?md:String(md)}nd.exports=pd,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(nd,od){function ld(ud){"@babel/helpers - typeof";return nd.exports=ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(dd){return typeof dd}:function(dd){return dd&&typeof Symbol=="function"&&dd.constructor===Symbol&&dd!==Symbol.prototype?"symbol":typeof dd},nd.exports.__esModule=!0,nd.exports.default=nd.exports,ld(ud)}nd.exports=ld,nd.exports.__esModule=!0,nd.exports.default=nd.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(nd,od,ld){const ud=ld("./node_modules/fast-xml-parser/src/validator.js"),dd=ld("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),pd=ld("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");nd.exports={XMLParser:dd,XMLValidator:ud,XMLBuilder:pd}},"./node_modules/fast-xml-parser/src/util.js":function(nd,od,ld){const ud=":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",dd=ud+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",pd="["+ud+"]["+dd+"]*",fd=new RegExp("^"+pd+"$"),md=function(Ad,Nd){const Id=[];l
`&&zd[df]!=="\r";df++)xf+=zd[df];if(xf=xf.trim(),xf[xf.length-1]==="/"&&(xf=xf.substring(0,xf.length-1),df--),!Bd(xf)){let Df;return xf.trim().length===0?Df="Invalid space after '<'.":Df="Tag '"+xf+"' is an invalid name.",jd("InvalidTag",Df,Gd(zd,df))}const vf=Nd(zd,df);if(vf===!1)return jd("InvalidAttr","Attributes for '"+xf+"' have open quote.",Gd(zd,df));let Af=vf.value;if(df=vf.index,Af[Af.length-1]==="/"){const Df=df-Af.length;Af=Af.substring(0,Af.length-1);const jf=Od(Af,Xd);if(jf===!0)Yd=!0;else return jd(jf.err.code,jf.err.msg,Gd(zd,Df+jf.err.line))}else if(_f)if(vf.tagClosed){if(Af.trim().length>0)return jd("InvalidTag","Closing tag '"+xf+"' can't have attributes or invalid starting.",Gd(zd,Ef));if(gf.length===0)return jd("InvalidTag","Closing tag '"+xf+"' has not been opened.",Gd(zd,Ef));{const Df=gf.pop();if(xf!==Df.tagName){let jf=Gd(zd,Df.tagStartPos);return jd("InvalidTag","Expected closing tag '"+Df.tagName+"' (opened in line "+jf.line+", col "+jf.col+") instead of closing tag '"+xf+"'.",Gd(zd,Ef))}gf.length==0&&(Zd=!0)}}else return jd("InvalidTag","Closing tag '"+xf+"' doesn't have proper closing.",Gd(zd,df));else{const Df=Od(Af,Xd);if(Df!==!0)return jd(Df.err.code,Df.err.msg,Gd(zd,df-Af.length+Df.err.line));if(Zd===!0)return jd("InvalidXml","Multiple possible root nodes found.",Gd(zd,df));Xd.unpairedTags.indexOf(xf)!==-1||gf.push({tagName:xf,tagStartPos:Ef}),Yd=!0}for(df++;df<zd.length;df++)if(zd[df]==="<")if(zd[df+1]==="!"){df++,df=md(zd,df);continue}else if(zd[df+1]==="?"){if(df=fd(zd,++df),df.err)return df}else break;else if(zd[df]==="&"){const Df=Ud(zd,df);if(Df==-1)return jd("InvalidChar","char '&' is not expected.",Gd(zd,df));df=Df}else if(Zd===!0&&!pd(zd[df]))return jd("InvalidXml","Extra text at the end",Gd(zd,df));zd[df]==="<"&&df--}}else{if(pd(zd[df]))continue;return jd("InvalidChar","char '"+zd[df]+"' is not expected.",Gd(zd,df))}if(Yd){if(gf.length==1)return jd("InvalidTag","Unclosed tag '"+gf[0].tagName+"'.",Gd(zd,gf[0].tagStartPos));if(gf.length>0)return jd("InvalidXml","Invalid '"+JSON.stringify(gf.map(df=>df.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return jd("InvalidXml","Start tag expected.",1);return!0};function pd(zd){return zd===" "||zd===" "||zd===`
`||zd==="\r"}function fd(zd,Xd){const gf=Xd;for(;Xd<zd.length;Xd++)if(zd[Xd]=="?"||zd[Xd]==" "){const Yd=zd.substr(gf,Xd-gf);if(Xd>5&&Yd==="xml")return jd("InvalidXml","XML declaration allowed only at the start of the document.",Gd(zd,Xd));if(zd[Xd]=="?"&&zd[Xd+1]==">"){Xd++;break}else continue}return Xd}function md(zd,Xd){if(zd.length>Xd+5&&zd[Xd+1]==="-"&&zd[Xd+2]==="-"){for(Xd+=3;Xd<zd.length;Xd++)if(zd[Xd]==="-"&&zd[Xd+1]==="-"&&zd[Xd+2]===">"){Xd+=2;break}}else if(zd.length>Xd+8&&zd[Xd+1]==="D"&&zd[Xd+2]==="O"&&zd[Xd+3]==="C"&&zd[Xd+4]==="T"&&zd[Xd+5]==="Y"&&zd[Xd+6]==="P"&&zd[Xd+7]==="E"){let gf=1;for(Xd+=8;Xd<zd.length;Xd++)if(zd[Xd]==="<")gf++;else if(zd[Xd]===">"&&(gf--,gf===0))break}else if(zd.length>Xd+9&&zd[Xd+1]==="["&&zd[Xd+2]==="C"&&zd[Xd+3]==="D"&&zd[Xd+4]==="A"&&zd[Xd+5]==="T"&&zd[Xd+6]==="A"&&zd[Xd+7]==="["){for(Xd+=8;Xd<zd.length;Xd++)if(zd[Xd]==="]"&&zd[Xd+1]==="]"&&zd[Xd+2]===">"){Xd+=2;break}}return Xd}const vd='"',Ad="'";function Nd(zd,Xd){let gf="",Yd="",Zd=!1;for(;Xd<zd.length;Xd++){if(zd[Xd]===vd||zd[Xd]===Ad)Yd===""?Yd=zd[Xd]:Yd!==zd[Xd]||(Yd="");else if(zd[Xd]===">"&&Yd===""){Zd=!0;break}gf+=zd[Xd]}return Yd!==""?!1:{value:gf,index:Xd,tagClosed:Zd}}const Id=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Od(zd,Xd){const gf=ud.getAllMatches(zd,Id),Yd={};for(let Zd=0;Zd<gf.length;Zd++){if(gf[Zd][1].length===0)return jd("InvalidAttr","Attribute '"+gf[Zd][2]+"' has no space in starting.",qd(gf[Zd]));if(gf[Zd][3]!==void 0&&gf[Zd][4]===void 0)return jd("InvalidAttr","Attribute '"+gf[Zd][2]+"' is without value.",qd(gf[Zd]));if(gf[Zd][3]===void 0&&!Xd.allowBooleanAttributes)return jd("InvalidAttr","boolean attribute '"+gf[Zd][2]+"' is not allowed.",qd(gf[Zd]));const df=gf[Zd][2];if(!Ld(df))return jd("InvalidAttr","Attribute '"+df+"' is an invalid name.",qd(gf[Zd]));if(!Yd.hasOwnProperty(df))Yd[df]=1;else return jd("InvalidAttr","Attribute '"+df+"' is repeated.",qd(gf[Zd]))}return!0}function Md(zd,Xd){let gf=/\d/;for(zd[Xd]==="x"&&(Xd++,gf=/[\da-fA-F]/);Xd<zd.length;Xd++){if(zd[Xd]===";")return Xd;if(!zd[Xd].match(gf))break}return-1}function Ud(zd,Xd){if(Xd++,zd[Xd]===";")return-1;if(zd[Xd]==="#")return Xd++,Md(zd,Xd);let gf=0;for(;Xd<zd.length;Xd++,gf++)if(!(zd[Xd].match(/\w/)&&gf<20)){if(zd[Xd]===";")break;return-1}return Xd}function jd(zd,Xd,gf){return{err:{code:zd,msg:Xd,line:gf.line||gf,col:gf.col}}}function Ld(zd){return ud.isName(zd)}function Bd(zd){return ud.isName(zd)}function Gd(zd,Xd){const gf=zd.substring(0,Xd).split(/\r?\n/);return{line:gf.length,col:gf[gf.length-1].length+1}}function qd(zd){return zd.startIndex+zd[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(nd,od,ld){const ud=ld("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),dd={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Ad,Nd){return Nd},attributeValueProcessor:function(Ad,Nd){return Nd},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 pd(Ad){this.options=Object.assign({},dd,Ad),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=vd),this.processTextOrObjNode=fd,this.options.format?(this.indentate=md,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}pd.prototype.build=function(Ad){return this.options.preserveOrder?ud(Ad,this.options):(Array.isArray(Ad)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ad={[this.options.arrayNodeName]:Ad}),this.j2x(Ad,0).val)},pd.prototype.j2x=function(Ad,Nd){let Id="",Od="";for(let Md in Ad)if(Object.prototype.hasOwnProperty.call(Ad,Md))if(typeof Ad[Md]>"u")this.isAttribute(Md)&&(Od+="");else if(Ad[Md]===null)this.isAttribute(Md)?Od+="":Md[0]==="?"?Od+=this.indentate(Nd)+"<"+Md+"?"+this.tagEndChar:Od+=this.indentate(Nd)+"<"+Md+"/"+this.tagEndChar;else if(Ad[Md]instanceof Date)Od+=this.buildTextValNode(Ad[Md],Md,"",Nd);else if(typeof Ad[Md]!="object"){const Ud=this.isAttribute(Md);if(Ud)Id+=this.buildAttrPairStr(Ud,""+Ad[Md]);else if(Md===this.options.textNodeName){let jd=this.options.tagValueProcessor(Md,""+Ad[Md]);Od+=this.replaceEntitiesValue(jd)}else Od+=this.buildTextValNode(Ad[Md],Md,"",Nd)}else if(Array.isArray(Ad[Md])){const Ud=Ad[Md].length;let jd="";for(let Ld=0;Ld<Ud;Ld++){const Bd=Ad[Md][Ld];typeof Bd>"u"||(Bd===null?Md[0]==="?"?Od+=this.indentate(Nd)+"<"+Md+"?"+this.tagEndChar:Od+=this.indentate(Nd)+"<"+Md+"/"+this.tagEndChar:typeof Bd=="object"?this.options.oneListGroup?jd+=this.j2x(Bd,Nd+1).val:jd+=this.processTextOrObjNode(Bd,Md,Nd):jd+=this.buildTextValNode(Bd,Md,"",Nd))}this.options.oneListGroup&&(jd=this.buildObjectNode(jd,Md,"",Nd)),Od+=jd}else if(this.options.attributesGroupName&&Md===this.options.attributesGroupName){const Ud=Object.keys(Ad[Md]),jd=Ud.length;for(let Ld=0;Ld<jd;Ld++)Id+=this.buildAttrPairStr(Ud[Ld],""+Ad[Md][Ud[Ld]])}else Od+=this.processTextOrObjNode(Ad[Md],Md,Nd);return{attrStr:Id,val:Od}},pd.prototype.buildAttrPairStr=function(Ad,Nd){return Nd=this.options.attributeValueProcessor(Ad,""+Nd),Nd=this.replaceEntitiesValue(Nd),this.options.suppressBooleanAttributes&&Nd==="true"?" "+Ad:" "+Ad+'="'+Nd+'"'};function fd(Ad,Nd,Id){const Od=this.j2x(Ad,Id+1);return Ad[this.options.textNodeName]!==void 0&&Object.keys(Ad).length===1?this.buildTextValNode(Ad[this.options.textNodeName],Nd,Od.attrStr,Id):this.buildObjectNode(Od.val,Nd,Od.attrStr,Id)}pd.prototype.buildObjectNode=function(Ad,Nd,Id,Od){if(Ad==="")return Nd[0]==="?"?this.indentate(Od)+"<"+Nd+Id+"?"+this.tagEndChar:this.indentate(Od)+"<"+Nd+Id+this.closeTag(Nd)+this.tagEndChar;{let Md="</"+Nd+this.tagEndChar,Ud="";return Nd[0]==="?"&&(Ud="?",Md=""),(Id||Id==="")&&Ad.indexOf("<")===-1?this.indentate(Od)+"<"+Nd+Id+Ud+">"+Ad+Md:this.options.commentPropName!==!1&&Nd===this.options.commentPropName&&Ud.length===0?this.indentate(Od)+`<!--${Ad}-->`+this.newLine:this.indentate(Od)+"<"+Nd+Id+Ud+this.tagEndChar+Ad+this.indentate(Od)+Md}},pd.prototype.closeTag=function(Ad){let Nd="";return this.options.unpairedTags.indexOf(Ad)!==-1?this.options.suppressUnpairedNode||(Nd="/"):this.options.suppressEmptyNode?Nd="/":Nd=`></${Ad}`,Nd},pd.prototype.buildTextValNode=function(Ad,Nd,Id,Od){if(this.options.cdataPropName!==!1&&Nd===this.options.cdataPropName)return this.indentate(Od)+`<![CDATA[${Ad}]]>`+this.newLine;if(this.options.commentPropName!==!1&&Nd===this.options.commentPropName)return this.indentate(Od)+`<!--${Ad}-->`+this.newLine;if(Nd[0]==="?")return this.indentate(Od)+"<"+Nd+Id+"?"+this.tagEndChar;{let Md=this.options.tagValueProcessor(Nd,Ad);return Md=this.replaceEntitiesValue(Md),Md===""?this.indentate(Od)+"<"+Nd+Id+this.closeTag(Nd)+this.tagEndChar:this.indentate(Od)+"<"+Nd+Id+">"+Md+"</"+Nd+this.tagEndChar}},pd.prototype.replaceEntitiesValue=function(Ad){if(Ad&&Ad.length>0&&this.options.processEntities)for(let Nd=0;Nd<this.options.entities.length;Nd++){const Id=this.options.entities[Nd];Ad=Ad.replace(Id.regex,Id.val)}return Ad};function md(Ad){return this.options.indentBy.repeat(Ad)}function vd(Ad){return Ad.startsWith(this.options.attributeNamePrefix)&&Ad!==this.options.textNodeName?Ad.substr(this.attrPrefixLen):!1}nd.exports=pd},"./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js":function(nd,od){const ld=`
`;function ud(Ad,Nd){let Id="";return Nd.format&&Nd.indentBy.length>0&&(Id=ld),dd(Ad,Nd,"",Id)}function dd(Ad,Nd,Id,Od){let Md="",Ud=!1;for(let jd=0;jd<Ad.length;jd++){const Ld=Ad[jd],Bd=pd(Ld);if(Bd===void 0)continue;let Gd="";if(Id.length===0?Gd=Bd:Gd=`${Id}.${Bd}`,Bd===Nd.textNodeName){let Yd=Ld[Bd];md(Gd,Nd)||(Yd=Nd.tagValueProcessor(Bd,Yd),Yd=vd(Yd,Nd)),Ud&&(Md+=Od),Md+=Yd,Ud=!1;continue}else if(Bd===Nd.cdataPropName){Ud&&(Md+=Od),Md+=`<![CDATA[${Ld[Bd][0][Nd.textNodeName]}]]>`,Ud=!1;continue}else if(Bd===Nd.commentPropName){Md+=Od+`<!--${Ld[Bd][0][Nd.textNodeName]}-->`,Ud=!0;continue}else if(Bd[0]==="?"){const Yd=fd(Ld[":@"],Nd),Zd=Bd==="?xml"?"":Od;let df=Ld[Bd][0][Nd.textNodeName];df=df.length!==0?" "+df:"",Md+=Zd+`<${Bd}${df}${Yd}?>`,Ud=!0;continue}let qd=Od;qd!==""&&(qd+=Nd.indentBy);const zd=fd(Ld[":@"],Nd),Xd=Od+`<${Bd}${zd}`,gf=dd(Ld[Bd],Nd,Gd,qd);Nd.unpairedTags.indexOf(Bd)!==-1?Nd.suppressUnpairedNode?Md+=Xd+">":Md+=Xd+"/>":(!gf||gf.length===0)&&Nd.suppressEmptyNode?Md+=Xd+"/>":gf&&gf.endsWith(">")?Md+=Xd+`>${gf}${Od}</${Bd}>`:(Md+=Xd+">",gf&&Od!==""&&(gf.includes("/>")||gf.includes("</"))?Md+=Od+Nd.indentBy+gf+Od:Md+=gf,Md+=`</${Bd}>`),Ud=!0}return Md}function pd(Ad){const Nd=Object.keys(Ad);for(let Id=0;Id<Nd.length;Id++){const Od=Nd[Id];if(Ad.hasOwnProperty(Od)&&Od!==":@")return Od}}function fd(Ad,Nd){let Id="";if(Ad&&!Nd.ignoreAttributes)for(let Od in Ad){if(!Ad.hasOwnProperty(Od))continue;let Md=Nd.attributeValueProcessor(Od,Ad[Od]);Md=vd(Md,Nd),Md===!0&&Nd.suppressBooleanAttributes?Id+=` ${Od.substr(Nd.attributeNamePrefix.length)}`:Id+=` ${Od.substr(Nd.attributeNamePrefix.length)}="${Md}"`}return Id}function md(Ad,Nd){Ad=Ad.substr(0,Ad.length-Nd.textNodeName.length-1);let Id=Ad.substr(Ad.lastIndexOf(".")+1);for(let Od in Nd.stopNodes)if(Nd.stopNodes[Od]===Ad||Nd.stopNodes[Od]==="*."+Id)return!0;return!1}function vd(Ad,Nd){if(Ad&&Ad.length>0&&Nd.processEntities)for(let Id=0;Id<Nd.entities.length;Id++){const Od=Nd.entities[Id];Ad=Ad.replace(Od.regex,Od.val)}return Ad}nd.exports=ud},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(nd,od,ld){const ud=ld("./node_modules/fast-xml-parser/src/util.js");function dd(Od,Md){const Ud={};if(Od[Md+3]==="O"&&Od[Md+4]==="C"&&Od[Md+5]==="T"&&Od[Md+6]==="Y"&&Od[Md+7]==="P"&&Od[Md+8]==="E"){Md=Md+9;let jd=1,Ld=!1,Bd=!1,Gd="";for(;Md<Od.length;Md++)if(Od[Md]==="<"&&!Bd){if(Ld&&md(Od,Md))Md+=7,[entityName,val,Md]=pd(Od,Md+1),val.indexOf("&")===-1&&(Ud[Id(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(Ld&&vd(Od,Md))Md+=8;else if(Ld&&Ad(Od,Md))Md+=8;else if(Ld&&Nd(Od,Md))Md+=9;else if(fd)Bd=!0;else throw new Error("Invalid DOCTYPE");jd++,Gd=""}else if(Od[Md]===">"){if(Bd?Od[Md-1]==="-"&&Od[Md-2]==="-"&&(Bd=!1,jd--):jd--,jd===0)break}else Od[Md]==="["?Ld=!0:Gd+=Od[Md];if(jd!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Ud,i:Md}}function pd(Od,Md){let Ud="";for(;Md<Od.length&&Od[Md]!=="'"&&Od[Md]!=='"';Md++)Ud+=Od[Md];if(Ud=Ud.trim(),Ud.indexOf(" ")!==-1)throw new Error("External entites are not supported");const jd=Od[Md++];let Ld="";for(;Md<Od.length&&Od[Md]!==jd;Md++)Ld+=Od[Md];return[Ud,Ld,Md]}function fd(Od,Md){return Od[Md+1]==="!"&&Od[Md+2]==="-"&&Od[Md+3]==="-"}function md(Od,Md){return Od[Md+1]==="!"&&Od[Md+2]==="E"&&Od[Md+3]==="N"&&Od[Md+4]==="T"&&Od[Md+5]==="I"&&Od[Md+6]==="T"&&Od[Md+7]==="Y"}function vd(Od,Md){return Od[Md+1]==="!"&&Od[Md+2]==="E"&&Od[Md+3]==="L"&&Od[Md+4]==="E"&&Od[Md+5]==="M"&&Od[Md+6]==="E"&&Od[Md+7]==="N"&&Od[Md+8]==="T"}function Ad(Od,Md){return Od[Md+1]==="!"&&Od[Md+2]==="A"&&Od[Md+3]==="T"&&Od[Md+4]==="T"&&Od[Md+5]==="L"&&Od[Md+6]==="I"&&Od[Md+7]==="S"&&Od[Md+8]==="T"}function Nd(Od,Md){return Od[Md+1]==="!"&&Od[Md+2]==="N"&&Od[Md+3]==="O"&&Od[Md+4]==="T"&&Od[Md+5]==="A"&&Od[Md+6]==="T"&&Od[Md+7]==="I"&&Od[Md+8]==="O"&&Od[Md+9]==="N"}function Id(Od){if(ud.isName(Od))return Od;throw new Error(`Invalid entity name ${Od}`)}nd.exports=dd},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(nd,od){const ld={preserveOrd
`);const Zd=new dd("!xml");let df=Zd,Ef="",_f="";for(let xf=0;xf<Yd.length;xf++)if(Yd[xf]==="<")if(Yd[xf+1]==="/"){const Af=qd(Yd,">",xf,"Closing Tag is not closed.");let Df=Yd.substring(xf+2,Af).trim();if(this.options.removeNSPrefix){const eh=Df.indexOf(":");eh!==-1&&(Df=Df.substr(eh+1))}this.options.transformTagName&&(Df=this.options.transformTagName(Df)),df&&(Ef=this.saveTextToParentTag(Ef,df,_f));const jf=_f.substring(_f.lastIndexOf(".")+1);if(Df&&this.options.unpairedTags.indexOf(Df)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${Df}>`);let Jf=0;jf&&this.options.unpairedTags.indexOf(jf)!==-1?(Jf=_f.lastIndexOf(".",_f.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Jf=_f.lastIndexOf("."),_f=_f.substring(0,Jf),df=this.tagsNodeStack.pop(),Ef="",xf=Af}else if(Yd[xf+1]==="?"){let Af=zd(Yd,xf,!1,"?>");if(!Af)throw new Error("Pi Tag is not closed.");if(Ef=this.saveTextToParentTag(Ef,df,_f),!(this.options.ignoreDeclaration&&Af.tagName==="?xml"||this.options.ignorePiTags)){const Df=new dd(Af.tagName);Df.add(this.options.textNodeName,""),Af.tagName!==Af.tagExp&&Af.attrExpPresent&&(Df[":@"]=this.buildAttributesMap(Af.tagExp,_f,Af.tagName)),this.addChild(df,Df,_f)}xf=Af.closeIndex+1}else if(Yd.substr(xf+1,3)==="!--"){const Af=qd(Yd,"-->",xf+4,"Comment is not closed.");if(this.options.commentPropName){const Df=Yd.substring(xf+4,Af-2);Ef=this.saveTextToParentTag(Ef,df,_f),df.add(this.options.commentPropName,[{[this.options.textNodeName]:Df}])}xf=Af}else if(Yd.substr(xf+1,2)==="!D"){const Af=pd(Yd,xf);this.docTypeEntities=Af.entities,xf=Af.i}else if(Yd.substr(xf+1,2)==="!["){const Af=qd(Yd,"]]>",xf,"CDATA is not closed.")-2,Df=Yd.substring(xf+9,Af);Ef=this.saveTextToParentTag(Ef,df,_f);let jf=this.parseTextData(Df,df.tagname,_f,!0,!1,!0,!0);jf==null&&(jf=""),this.options.cdataPropName?df.add(this.options.cdataPropName,[{[this.options.textNodeName]:Df}]):df.add(this.options.textNodeName,jf),xf=Af+2}else{let Af=zd(Yd,xf,this.options.removeNSPrefix),Df=Af.tagName;const jf=Af.rawTagName;let Jf=Af.tagExp,eh=Af.attrExpPresent,th=Af.closeIndex;this.options.transformTagName&&(Df=this.options.transformTagName(Df)),df&&Ef&&df.tagname!=="!xml"&&(Ef=this.saveTextToParentTag(Ef,df,_f,!1));const Uf=df;if(Uf&&this.options.unpairedTags.indexOf(Uf.tagname)!==-1&&(df=this.tagsNodeStack.pop(),_f=_f.substring(0,_f.lastIndexOf("."))),Df!==Zd.tagname&&(_f+=_f?"."+Df:Df),this.isItStopNode(this.options.stopNodes,_f,Df)){let Of="";if(Jf.length>0&&Jf.lastIndexOf("/")===Jf.length-1)Df[Df.length-1]==="/"?(Df=Df.substr(0,Df.length-1),_f=_f.substr(0,_f.length-1),Jf=Df):Jf=Jf.substr(0,Jf.length-1),xf=Af.closeIndex;else if(this.options.unpairedTags.indexOf(Df)!==-1)xf=Af.closeIndex;else{const qf=this.readStopNodeData(Yd,jf,th+1);if(!qf)throw new Error(`Unexpected end of ${jf}`);xf=qf.i,Of=qf.tagContent}const Wf=new dd(Df);Df!==Jf&&eh&&(Wf[":@"]=this.buildAttributesMap(Jf,_f,Df)),Of&&(Of=this.parseTextData(Of,Df,_f,!0,eh,!0,!0)),_f=_f.substr(0,_f.lastIndexOf(".")),Wf.add(this.options.textNodeName,Of),this.addChild(df,Wf,_f)}else{if(Jf.length>0&&Jf.lastIndexOf("/")===Jf.length-1){Df[Df.length-1]==="/"?(Df=Df.substr(0,Df.length-1),_f=_f.substr(0,_f.length-1),Jf=Df):Jf=Jf.substr(0,Jf.length-1),this.options.transformTagName&&(Df=this.options.transformTagName(Df));const Of=new dd(Df);Df!==Jf&&eh&&(Of[":@"]=this.buildAttributesMap(Jf,_f,Df)),this.addChild(df,Of,_f),_f=_f.substr(0,_f.lastIndexOf("."))}else{const Of=new dd(Df);this.tagsNodeStack.push(df),Df!==Jf&&eh&&(Of[":@"]=this.buildAttributesMap(Jf,_f,Df)),this.addChild(df,Of,_f),df=Of}Ef="",xf=th}}else Ef+=Yd[xf];return Zd.child};function Ud(Yd,Zd,df){const Ef=this.options.updateTag(Zd.tagname,df,Zd[":@"]);Ef===!1||(typeof Ef=="string"&&(Zd.tagname=Ef),Yd.addChild(Zd))}const jd=function(Yd){if(this.options.processEntities){for(let Zd in this.docTypeEntities){const df=this.docTypeEntities[Zd];Yd=Yd.replace(df.regx,df.val)}for(let Zd in this.lastEntities){const df=this.lastEntities[Zd];Yd=Yd.replace(df.regex,df.val)}if(this.options.htmlEntities)for(let Zd in this.htmlEntities){const df=this.htm
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var dm=!0,Im=!1,Ym;return{s:function(){fh=fh.call(Lf)},n:function(){var ug=fh.next();return dm=ug.done,ug},e:function(ug){Im=!0,Ym=ug},f:function(){try{!dm&&fh.return!=null&&fh.return()}finally{if(Im)throw Ym}}}}function fd(Lf,$f){if(Lf){if(typeof Lf=="string")return md(Lf,$f);var fh=Object.prototype.toString.call(Lf).slice(8,-1);if(fh==="Object"&&Lf.constructor&&(fh=Lf.constructor.name),fh==="Map"||fh==="Set")return Array.from(Lf);if(fh==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(fh))return md(Lf,$f)}}function md(Lf,$f){($f==null||$f>Lf.length)&&($f=Lf.length);for(var fh=0,Ch=new Array($f);fh<$f;fh++)Ch[fh]=Lf[fh];return Ch}var vd=ld("./lib/md5.js"),Ad=ld("./lib/crypto.js"),Nd=ld("./node_modules/fast-xml-parser/src/fxp.js"),Id=Nd.XMLParser,Od=Nd.XMLBuilder,Md=new Id({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),Ud=new Od,jd=ld("./lib/base64.js"),Ld=ld("./src/tracker.js"),Bd=function($f){var fh=Md.parse($f);return fh},Gd=function($f){var fh=Ud.build($f);return fh};function qd(Lf){return encodeURIComponent(Lf).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function zd(Lf,$f){var fh=[];for(var Ch in Lf)Lf.hasOwnProperty(Ch)&&fh.push($f?qd(Ch).toLowerCase():Ch);return fh.sort(function(Zh,dm){return Zh=Zh.toLowerCase(),dm=dm.toLowerCase(),Zh===dm?0:Zh>dm?1:-1})}var Xd=function($f,fh){var Ch,Zh,dm,Im=[],Ym=zd($f);for(Ch=0;Ch<Ym.length;Ch++)Zh=Ym[Ch],dm=$f[Zh]===void 0||$f[Zh]===null?"":""+$f[Zh],Zh=fh?qd(Zh).toLowerCase():qd(Zh),dm=qd(dm)||"",Im.push(Zh+"="+dm);return Im.join("&")},gf=["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"],Yd=function($f){var fh={};for(var Ch in $f){var Zh=Ch.toLowerCase();(Zh.indexOf("x-cos-")>-1||gf.indexOf(Zh)>-1)&&(fh[Ch]=$f[Ch])}return fh},Zd=function($f){$f=$f||{};var fh=$f.SecretId,Ch=$f.SecretKey,Zh=$f.KeyTime,dm=($f.method||$f.Method||"get").toLowerCase(),Im=Of($f.Query||$f.params||{}),Ym=Yd(Of($f.Headers||$f.headers||{})),Fm=$f.Key||"",ug;$f.UseRawKey?ug=$f.Pathname||$f.pathname||"/"+Fm:(ug=$f.Pathname||$f.pathname||Fm,ug.indexOf("/")!==0&&(ug="/"+ug));var rg=$f.ForceSignHost!==!1;if(!Ym.Host&&!Ym.host&&$f.Bucket&&$f.Region&&rg&&(Ym.Host=$f.Bucket+".cos."+$f.Region+".myqcloud.com"),!fh)throw new Error("missing param SecretId");if(!Ch)throw new Error("missing param SecretKey");var Eg=Math.round(Kf($f.SystemClockOffset)/1e3)-1,kg=Eg,n_=$f.Expires||$f.expires;n_===void 0?kg+=900:kg+=n_*1||0;var Fg="sha1",Kg=fh,Ng=Zh||Eg+";"+kg,g_=Zh||Eg+";"+kg,Jg=zd(Ym,!0).join(";").toLowerCase(),C_=zd(Im,!0).join(";").toLowerCase(),N_=Ad.HmacSHA1(g_,Ch).toString(),a_=[dm,ug,gh.obj2str(Im,!0),gh.obj2str(Ym,!0),""].join(`
`),c_=["sha1",Ng,Ad.SHA1(a_).toString(),""].join(`
`),ng=Ad.HmacSHA1(c_,N_).toString(),ub=["q-sign-algorithm="+Fg,"q-ak="+Kg,"q-sign-time="+Ng,"q-key-time="+g_,"q-header-list="+Jg,"q-url-param-list="+C_,"q-signature="+ng].join("&");return ub},df=function($f,fh,Ch){var Zh=fh/8,dm=$f.slice(Ch,Ch+Zh);return new Uint8Array(dm).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[fh](dm)[0]},Ef=function($f,fh,Ch,Zh){var dm=$f.slice(fh,Ch),Im="";return new Uint8Array(dm).forEach(function(Ym){Im+=String.fromCharCode(Ym)}),Zh&&(Im=decodeURIComponent(escape(Im))),Im},_f=function($f){for(var fh={},Ch=Ef($f),Zh={records:[]};$f.byteLength;){var dm=df($f,32,0),Im=df($f,32,4),Ym=dm-Im-16,Fm=0,ug;for($f=$f.slice(12);Fm<Im;){var rg=df($f,8,Fm),Eg=Ef($f,Fm+1,Fm+1+rg),kg=df($f,16,Fm+rg+2),n_=Ef($f,Fm+rg+4,Fm+rg+4+kg);fh[Eg]=n_,Fm+=rg+4+kg}if(fh[":event-type"]==="Records")ug=Ef($f,Fm,Fm+Ym,!0),Zh.records.push(ug);else if(fh[":event-type"]==="Stats")ug=Ef($f,Fm,Fm+Ym,!0),Zh.stats=gh.xml2json(ug).Stats;else if(fh[":event-type"]==="error"){var Fg=fh[":error-code"],Kg=fh[":error-message"],Ng=new Error(Kg);Ng.message=Kg,Ng.name=Ng.code=Fg,Zh.error=Ng}$f=$f.slice(Fm+Ym+4)}return{payload:Zh.records.join(""),body:Ch}},xf=function($f){var fh=this.options.CopySourceParser;if(fh)return fh($f);var Ch=$f.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return Ch?{Bucket:Ch[1],Region:Ch[3],Key:Ch[7]}:null},vf=function(){},Af=function($f){var fh={};for(var Ch in $f)$f.hasOwnProperty(Ch)&&$f[Ch]!==void 0&&$f[Ch]!==null&&(fh[Ch]=$f[Ch]);return fh},Df=function($f,fh){var Ch,Zh=new FileReader;FileReader.prototype.readAsBinaryString?(Ch=FileReader.prototype.readAsBinaryString,Zh.onload=function(){fh(this.result)}):FileReader.prototype.readAsArrayBuffer?Ch=function(Im){var Ym="",Fm=new FileReader;Fm.onload=function(ug){for(var rg=new Uint8Array(Fm.result),Eg=rg.byteLength,kg=0;kg<Eg;kg++)Ym+=String.fromCharCode(rg[kg]);fh(Ym)},Fm.readAsArrayBuffer(Im)}:console.error("FileReader not support readAsBinaryString"),Ch.call(Zh,$f)},jf=function(){var Lf=function(Ch,Zh){Ch=Ch.split("."),Zh=Zh.split(".");for(var dm=0;dm<Zh.length;dm++)if(Ch[dm]!==Zh[dm])return parseInt(Ch[dm])>parseInt(Zh[dm])?1:-1;return 0},$f=function(Ch){if(!Ch)return!1;var Zh=(Ch.match(/Chrome\/([.\d]+)/)||[])[1],dm=(Ch.match(/QBCore\/([.\d]+)/)||[])[1],Im=(Ch.match(/QQBrowser\/([.\d]+)/)||[])[1],Ym=Zh&&Lf(Zh,"53.0.2785.116")<0&&dm&&Lf(dm,"3.53.991.400")<0&&Im&&Lf(Im,"9.0.2524.400")<=0||!1;return Ym};return $f(typeof navigator<"u"&&navigator.userAgent)}(),Jf=function($f,fh,Ch,Zh,dm){var Im;if($f.slice?Im=$f.slice(fh,Ch):$f.mozSlice?Im=$f.mozSlice(fh,Ch):$f.webkitSlice&&(Im=$f.webkitSlice(fh,Ch)),Zh&&jf){var Ym=new FileReader;Ym.onload=function(Fm){Im=null,dm(new Blob([Ym.result]))},Ym.readAsArrayBuffer(Im)}else dm(Im)},eh=function($f,fh,Ch,Zh){Ch=Ch||vf,$f?typeof fh=="string"?Ch(gh.md5(fh,!0)):Blob&&fh instanceof Blob?gh.getFileMd5(fh,function(dm,Im){Ch(Im)},Zh):Ch():Ch()},th=1024*1024,Uf=function($f,fh,Ch){var Zh=$f.size,dm=0,Im=vd.getCtx(),Ym=function Fm(ug){if(ug>=Zh){var rg=Im.digest("hex");fh(null,rg);return}var Eg=Math.min(Zh,ug+th);gh.fileSlice($f,ug,Eg,!1,function(kg){Df(kg,function(n_){kg=null,Im=Im.update(n_,!0),dm+=n_.length,n_=null,Ch&&Ch({loaded:dm,total:Zh,percent:Math.round(dm/Zh*1e4)/1e4}),Fm(ug+th)})})};Ym(0)};function Of(Lf){return ih(Lf,function($f){return dd($f)==="object"&&$f!==null?Of($f):$f})}function Wf(Lf,$f,fh){return Lf&&$f in Lf?Lf[$f]:fh}function qf(Lf,$f){return Yf($f,function(fh,Ch){Lf[Ch]=$f[Ch]}),Lf}function zf(Lf){return Lf instanceof Array}function Tf(Lf,$f){for(var fh=!1,Ch=0;Ch<Lf.length;Ch++)if($f===Lf[Ch]){fh=!0;break}return fh}function Sf(Lf){return zf(Lf)?Lf:[Lf]}function Yf(Lf,$f){for(var fh in Lf)Lf.hasOwnProperty(fh)&&$f(Lf[fh],fh)}function ih(Lf,$f){var fh=zf(Lf)?[]:{};for(var Ch in Lf)Lf.hasOwnProperty(Ch)&&(fh[Ch]=$f(Lf[Ch],Ch));return fh}function Th(Lf,$f){var fh=zf(Lf),Ch=fh?[]:{};for(var Zh in Lf)Lf.hasOwnProperty(Zh)&&$f(Lf[Zh],Zh)&&(fh?Ch.push(Lf[Zh]):Ch[Zh]=Lf[Zh]);return Ch}var sh=function($f){var fh,Ch,Zh,dm="";for(fh=0,Ch=$f.length/2
(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(od){var ld=nd,ud=ld.lib,dd=ud.WordArray,pd=ud.Hasher,fd=ld.algo,md=dd.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]),vd=dd.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]),Ad=dd.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]),Nd=dd.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]),Id=dd.create([0,1518500249,1859775393,2400959708,2840853838]),Od=dd.create([1352829926,1548603684,1836072691,2053994217,0]),Md=fd.RIPEMD160=pd.extend({_doReset:function(){this._hash=dd.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(zd,Xd){for(var gf=0;gf<16;gf++){var Yd=Xd+gf,Zd=zd[Yd];zd[Yd]=(Zd<<8|Zd>>>24)&16711935|(Zd<<24|Zd>>>8)&4278255360}var df=this._hash.words,Ef=Id.words,_f=Od.words,xf=md.words,vf=vd.words,Af=Ad.words,Df=Nd.words,jf,Jf,eh,th,Uf,Of,Wf,qf,zf,Tf;Of=jf=df[0],Wf=Jf=df[1],qf=eh=df[2],zf=th=df[3],Tf=Uf=df[4];for(var Sf,gf=0;gf<80;gf+=1)Sf=jf+zd[Xd+xf[gf]]|0,gf<16?Sf+=Ud(Jf,eh,th)+Ef[0]:gf<32?Sf+=jd(Jf,eh,th)+Ef[1]:gf<48?Sf+=Ld(Jf,eh,th)+Ef[2]:gf<64?Sf+=Bd(Jf,eh,th)+Ef[3]:Sf+=Gd(Jf,eh,th)+Ef[4],Sf=Sf|0,Sf=qd(Sf,Af[gf]),Sf=Sf+Uf|0,jf=Uf,Uf=th,th=qd(eh,10),eh=Jf,Jf=Sf,Sf=Of+zd[Xd+vf[gf]]|0,gf<16?Sf+=Gd(Wf,qf,zf)+_f[0]:gf<32?Sf+=Bd(Wf,qf,zf)+_f[1]:gf<48?Sf+=Ld(Wf,qf,zf)+_f[2]:gf<64?Sf+=jd(Wf,qf,zf)+_f[3]:Sf+=Ud(Wf,qf,zf)+_f[4],Sf=Sf|0,Sf=qd(Sf,Df[gf]),Sf=Sf+Tf|0,Of=Tf,Tf=zf,zf=qd(qf,10),qf=Wf,Wf=Sf;Sf=df[1]+eh+zf|0,df[1]=df[2]+th+Tf|0,df[2]=df[3]+Uf+Of|0,df[3]=df[4]+jf+Wf|0,df[4]=df[0]+Jf+qf|0,df[0]=Sf},_doFinalize:function(){var zd=this._data,Xd=zd.words,gf=this._nDataBytes*8,Yd=zd.sigBytes*8;Xd[Yd>>>5]|=128<<24-Yd%32,Xd[(Yd+64>>>9<<4)+14]=(gf<<8|gf>>>24)&16711935|(gf<<24|gf>>>8)&4278255360,zd.sigBytes=(Xd.length+1)*4,this._process();for(var Zd=this._hash,df=Zd.words,Ef=0;Ef<5;Ef++){var _f=df[Ef];df[Ef]=(_f<<8|_f>>>24)&16711935|(_f<<24|_f>>>8)&4278255360}return Zd},clone:function(){var zd=pd.clone.call(this);return zd._hash=this._hash.clone(),zd}});function Ud(zd,Xd,gf){return zd^Xd^gf}function jd(zd,Xd,gf){return zd&Xd|~zd&gf}function Ld(zd,Xd,gf){return(zd|~Xd)^gf}function Bd(zd,Xd,gf){return zd&gf|Xd&~gf}function Gd(zd,Xd,gf){return zd^(Xd|~gf)}function qd(zd,Xd){return zd<<Xd|zd>>>32-Xd}ld.RIPEMD160=pd._createHelper(Md),ld.HmacRIPEMD160=pd._createHmacHelper(Md)}(),nd.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(Ra,qa){(function(nd,od){Ra.exports=od(requireCore())})(commonjsGlobal,function(nd){(function(){var od=nd,ld=od.lib,ud=ld.Base,dd=od.enc,pd=dd.Utf8,fd=od.algo;fd.HMAC=ud.extend({init:function(md,vd){md=this._hasher=new md.init,typeof vd=="string"&&(vd=pd.parse(vd));var Ad=md.blockSize,Nd=Ad*4;vd.sigBytes>Nd&&(vd=md.finalize(vd)),vd.clamp();for(var Id=this._oKey=vd.clone(),Od=this._iKey=vd.clone(),Md=Id.words,Ud=Od.words,jd=0;jd<Ad;jd++)Md[jd]^=1549556828,Ud[jd]^=909522486;Id.sigBytes=Od.sigBytes=Nd,this.reset()},reset:function(){var md=this._hasher;md.reset(),md.update(this._iKey)},update:function(md){return this._hasher.update(md),this},finalize:function(md){var vd=this._hasher,Ad=vd.finalize(md);vd.reset();var Nd=vd.finalize(this._oKey.clone().concat(Ad));return Nd}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireSha256(),requireHmac())})(commonjsGlobal,function(nd){retu
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return nd.mode.CTRGladman=function(){var od=nd.lib.BlockCipherMode.extend();function ld(pd){if((pd>>24&255)===255){var fd=pd>>16&255,md=pd>>8&255,vd=pd&255;fd===255?(fd=0,md===255?(md=0,vd===255?vd=0:++vd):++md):++fd,pd=0,pd+=fd<<16,pd+=md<<8,pd+=vd}else pd+=1<<24;return pd}function ud(pd){return(pd[0]=ld(pd[0]))===0&&(pd[1]=ld(pd[1])),pd}var dd=od.Encryptor=od.extend({processBlock:function(pd,fd){var md=this._cipher,vd=md.blockSize,Ad=this._iv,Nd=this._counter;Ad&&(Nd=this._counter=Ad.slice(0),this._iv=void 0),ud(Nd);var Id=Nd.slice(0);md.encryptBlock(Id,0);for(var Od=0;Od<vd;Od++)pd[fd+Od]^=Id[Od]}});return od.Decryptor=dd,od}(),nd.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.mode.OFB=function(){var od=nd.lib.BlockCipherMode.extend(),ld=od.Encryptor=od.extend({processBlock:function(ud,dd){var pd=this._cipher,fd=pd.blockSize,md=this._iv,vd=this._keystream;md&&(vd=this._keystream=md.slice(0),this._iv=void 0),pd.encryptBlock(vd,0);for(var Ad=0;Ad<fd;Ad++)ud[dd+Ad]^=vd[Ad]}});return od.Decryptor=ld,od}(),nd.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.mode.ECB=function(){var od=nd.lib.BlockCipherMode.extend();return od.Encryptor=od.extend({processBlock:function(ld,ud){this._cipher.encryptBlock(ld,ud)}}),od.Decryptor=od.extend({processBlock:function(ld,ud){this._cipher.decryptBlock(ld,ud)}}),od}(),nd.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.AnsiX923={pad:function(od,ld){var ud=od.sigBytes,dd=ld*4,pd=dd-ud%dd,fd=ud+pd-1;od.clamp(),od.words[fd>>>2]|=pd<<24-fd%4*8,od.sigBytes+=pd},unpad:function(od){var ld=od.words[od.sigBytes-1>>>2]&255;od.sigBytes-=ld}},nd.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.Iso10126={pad:function(od,ld){var ud=ld*4,dd=ud-od.sigBytes%ud;od.concat(nd.lib.WordArray.random(dd-1)).concat(nd.lib.WordArray.create([dd<<24],1))},unpad:function(od){var ld=od.words[od.sigBytes-1>>>2]&255;od.sigBytes-=ld}},nd.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.Iso97971={pad:function(od,ld){od.concat(nd.lib.WordArray.create([2147483648],1)),nd.pad.ZeroPadding.pad(od,ld)},unpad:function(od){nd.pad.ZeroPadding.unpad(od),od.sigBytes--}},nd.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(Ra,qa){(function(nd,od,ld){Ra.exports=od(requireCore(),requireCipherCore())})(commonjsGlobal,function(nd){return nd.pad.ZeroPadding={pad:function(od,ld){var ud=ld*4;od.clamp(),od.sigBytes+=ud-(od.sigBytes%ud||ud)},unpad:function(od){for(var ld=od.words,ud=od.sigBytes-1,ud=od.sigBytes-1;ud>=0;ud--)if(ld[ud>>>2]>>>24-ud%4*8&255){od.sigBytes=ud+1;break}}},nd.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopaddi
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(Ra){var qa=requireBase64Js(),nd=ieee754,od=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=pd,Ra.SlowBuffer=Ld,Ra.INSPECT_MAX_BYTES=50;var ld=2147483647;Ra.kMaxLength=ld,pd.TYPED_ARRAY_SUPPORT=ud(),!pd.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 ud(){try{var Zf=new Uint8Array(1),Rf={foo:function(){return 42}};return Object.setPrototypeOf(Rf,Uint8Array.prototype),Object.setPrototypeOf(Zf,Rf),Zf.foo()===42}catch{return!1}}Object.defineProperty(pd.prototype,"parent",{enumerable:!0,get:function(){if(pd.isBuffer(this))return this.buffer}}),Object.defineProperty(pd.prototype,"offset",{enumerable:!0,get:function(){if(pd.isBuffer(this))return this.byteOffset}});function dd(Zf){if(Zf>ld)throw new RangeError('The value "'+Zf+'" is invalid for option "size"');var Rf=new Uint8Array(Zf);return Object.setPrototypeOf(Rf,pd.prototype),Rf}function pd(Zf,Rf,Bf){if(typeof Zf=="number"){if(typeof Rf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ad(Zf)}return fd(Zf,Rf,Bf)}pd.poolSize=8192;function fd(Zf,Rf,Bf){if(typeof Zf=="string")return Nd(Zf,Rf);if(ArrayBuffer.isView(Zf))return Od(Zf);if(Zf==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Zf);if(Nf(Zf,ArrayBuffer)||Zf&&Nf(Zf.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Nf(Zf,SharedArrayBuffer)||Zf&&Nf(Zf.buffer,SharedArrayBuffer)))return Md(Zf,Rf,Bf);if(typeof Zf=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Kf=Zf.valueOf&&Zf.valueOf();if(Kf!=null&&Kf!==Zf)return pd.from(Kf,Rf,Bf);var wh=Ud(Zf);if(wh)return wh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Zf[Symbol.toPrimitive]=="function")return pd.from(Zf[Symbol.toPrimitive]("string"),Rf,Bf);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Zf)}pd.from=function(Zf,Rf,Bf){return fd(Zf,Rf,Bf)},Object.setPrototypeOf(pd.prototype,Uint8Array.prototype),Object.setPrototypeOf(pd,Uint8Array);function md(Zf){if(typeof Zf!="number")throw new TypeError('"size" argument must be of type number');if(Zf<0)throw new RangeError('The value "'+Zf+'" is invalid for option "size"')}function vd(Zf,Rf,Bf){return md(Zf),Zf<=0?dd(Zf):Rf!==void 0?typeof Bf=="string"?dd(Zf).fill(Rf,Bf):dd(Zf).fill(Rf):dd(Zf)}pd.alloc=function(Zf,Rf,Bf){return vd(Zf,Rf,Bf)};function Ad(Zf){return md(Zf),dd(Zf<0?0:jd(Zf)|0)}pd.allocUnsafe=function(Zf){return Ad(Zf)},pd.allocUnsafeSlow=function(Zf){return Ad(Zf)};function Nd(Zf,Rf){if((typeof Rf!="string"||Rf==="")&&(Rf="utf8"),!pd.isEncoding(Rf))throw new TypeError("Unknown encoding: "+Rf);var Bf=Bd(Zf,Rf)|0,Kf=dd(Bf),wh=Kf.write(Zf,Rf);return wh!==Bf&&(Kf=Kf.slice(0,wh)),Kf}function Id(Zf){for(var Rf=Zf.length<0?0:jd(Zf.length)|0,Bf=dd(Rf),Kf=0;Kf<Rf;Kf+=1)Bf[Kf]=Zf[Kf]&255;return Bf}function Od(Zf){if(Nf(Zf,Uint8Array)){var Rf=new Uint8Array(Zf);return Md(Rf.buffer,Rf.byteOffset,Rf.byteLength)}return Id(Zf)}function Md(Zf,Rf,Bf){if(Rf<0||Zf.byteLength<Rf)throw new RangeError('"offset" is outside of buffer bounds');if(Zf.byteLength<Rf+(Bf||0))throw new RangeError('"length" is outside of buffer bounds');var Kf;return Rf===void 0&&Bf===void 0?Kf=new Uint8Array(Zf):Bf===void 0?Kf=new Uint8Array(Zf,Rf):Kf=new Uint8Array(Zf,Rf,Bf),Object.setPrototypeOf(Kf,pd.prototype),Kf}function Ud(Zf){if(pd.isBuffer(Zf)){var Rf=jd(Zf.length)|0,Bf=dd(Rf);return Bf.length===0||Zf.copy(Bf,0,0,Rf),Bf}if(Zf.length!==void 0)return typeof Zf.length!="number"||ph(Zf.length)?dd(0):Id(Zf);if(Zf.type==="Buffer"&&Array.isArray(Zf.data))return Id(Zf.data)}function jd(Zf){if(Zf>=ld)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ld.toStri
`)>-1&&(Yf?Th=Th.split(`
`).map(function(Nf){return" "+Nf}).join(`
`).slice(2):Th=`
`+Th.split(`
`).map(function(Nf){return" "+Nf}).join(`
`))):Th=Wf.stylize("[Circular]","special")),Yd(ih)){if(Yf&&Sf.match(/^\d+$/))return Th;ih=JSON.stringify(""+Sf),ih.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ih=ih.slice(1,-1),ih=Wf.stylize(ih,"name")):(ih=ih.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ih=Wf.stylize(ih,"string"))}return ih+": "+Th}function jd(Wf,qf,zf){var Tf=Wf.reduce(function(Sf,Yf){return Yf.indexOf(`
`)>=0,Sf+Yf.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Tf>60?zf[0]+(qf===""?"":qf+`
`)+" "+Wf.join(`,
`)+" "+zf[1]:zf[0]+qf+" "+Wf.join(", ")+" "+zf[1]}Ra.types=types;function Ld(Wf){return Array.isArray(Wf)}Ra.isArray=Ld;function Bd(Wf){return typeof Wf=="boolean"}Ra.isBoolean=Bd;function Gd(Wf){return Wf===null}Ra.isNull=Gd;function qd(Wf){return Wf==null}Ra.isNullOrUndefined=qd;function zd(Wf){return typeof Wf=="number"}Ra.isNumber=zd;function Xd(Wf){return typeof Wf=="string"}Ra.isString=Xd;function gf(Wf){return typeof Wf=="symbol"}Ra.isSymbol=gf;function Yd(Wf){return Wf===void 0}Ra.isUndefined=Yd;function Zd(Wf){return df(Wf)&&Af(Wf)==="[object RegExp]"}Ra.isRegExp=Zd,Ra.types.isRegExp=Zd;function df(Wf){return typeof Wf=="object"&&Wf!==null}Ra.isObject=df;function Ef(Wf){return df(Wf)&&Af(Wf)==="[object Date]"}Ra.isDate=Ef,Ra.types.isDate=Ef;function _f(Wf){return df(Wf)&&(Af(Wf)==="[object Error]"||Wf instanceof Error)}Ra.isError=_f,Ra.types.isNativeError=_f;function xf(Wf){return typeof Wf=="function"}Ra.isFunction=xf;function vf(Wf){return Wf===null||typeof Wf=="boolean"||typeof Wf=="number"||typeof Wf=="string"||typeof Wf=="symbol"||typeof Wf>"u"}Ra.isPrimitive=vf,Ra.isBuffer=isBufferBrowser;function Af(Wf){return Object.prototype.toString.call(Wf)}function Df(Wf){return Wf<10?"0"+Wf.toString(10):Wf.toString(10)}var jf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Jf(){var Wf=new Date,qf=[Df(Wf.getHours()),Df(Wf.getMinutes()),Df(Wf.getSeconds())].join(":");return[Wf.getDate(),jf[Wf.getMonth()],qf].join(" ")}Ra.log=function(){console.log("%s - %s",Jf(),Ra.format.apply(Ra,arguments))},Ra.inherits=inherits_browserExports,Ra._extend=function(Wf,qf){if(!qf||!df(qf))return Wf;for(var zf=Object.keys(qf),Tf=zf.length;Tf--;)Wf[zf[Tf]]=qf[zf[Tf]];return Wf};function eh(Wf,qf){return Object.prototype.hasOwnProperty.call(Wf,qf)}var th=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ra.promisify=function(qf){if(typeof qf!="function")throw new TypeError('The "original" argument must be of type Function');if(th&&qf[th]){var zf=qf[th];if(typeof zf!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(zf,th,{value:zf,enumerable:!1,writable:!1,configurable:!0}),zf}function zf(){for(var Tf,Sf,Yf=new Promise(function(sh,Nf){Tf=sh,Sf=Nf}),ih=[],Th=0;Th<arguments.length;Th++)ih.push(arguments[Th]);ih.push(function(sh,Nf){sh?Sf(sh):Tf(Nf)});try{qf.apply(this,ih)}catch(sh){Sf(sh)}return Yf}return Object.setPrototypeOf(zf,Object.getPrototypeOf(qf)),th&&Object.defineProperty(zf,th,{value:zf,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(zf,od(qf))},Ra.promisify.custom=th;function Uf(Wf,qf){if(!Wf){var zf=new Error("Promise was rejected with a falsy value");zf.reason=Wf,Wf=zf}return qf(Wf)}function Of(Wf){if(typeof Wf!="function")throw new TypeError('The "original" argument must be of type Function');function qf(){for(var zf=[],Tf=0;Tf<arguments.length;Tf++)zf.push(arguments[Tf]);var Sf=zf.pop();if(typeof Sf!="function")throw new TypeError("The last argument must be of type Function");var Yf=this,ih=function(){return Sf.apply(Yf,arguments)};Wf.apply(this,zf).then(function(Th){qa.nextTick(ih.bind(null,null,Th))},function(Th){qa.nextTick(Uf.bind(null,Th,ih))})}return Object.setPrototypeOf(qf,Object.getPrototypeOf(Wf)),Object.defineProperties(qf,od(Wf)),qf}Ra.callbackify=Of})(util$5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function Ra(Od,Md){var Ud=Object.keys(Od);if(Object.getOwnPropertySymbols){var jd=Object.getOwnPropertySymbols(Od);Md&&(jd=jd.filter(function(Ld){return Object.getOwnPropertyDescriptor(Od,Ld).enumerable})),Ud.push.apply(Ud,jd)}return Ud}function qa(Od){for(var Md=1;Md<arguments.length;Md++){var Ud=arguments[Md]!=null?arguments[Md]:{};Md%2?Ra(Object(Ud),!0).forEach(function(jd){nd(Od,jd,Ud[jd])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Od,Object.getOwnPropertyDescriptors(Ud)):Ra(Object(Ud)).forEach(function(jd){Object.defineProperty(Od,jd,Object.getOwnPropertyDescript
`,nd);nd=ld===-1?Ra.length:ld}else if(od!==-1&&Ra[nd]==="/"&&Ra[nd+1]==="*"){let ld=Ra.indexOf("*/",nd);ld!==-1?(nd=ld+2,od=Ra.indexOf("*/",nd)):(qa+=Ra[nd],nd++)}else qa+=Ra[nd],nd++;return qa}function parseParams(Ra){const qa=stripComments(Ra.toString());let nd=qa.match(FN_ARGS);if(nd||(nd=qa.match(ARROW_FN_ARGS)),!nd)throw new Error(`could not parse args in autoInject
Source:
`+qa);let[,od]=nd;return od.replace(/\s/g,"").split(FN_ARG_SPLIT).map(ld=>ld.replace(FN_ARG,"").trim())}function autoInject(Ra,qa){var nd={};return Object.keys(Ra).forEach(od=>{var ld=Ra[od],ud,dd=isAsync(ld),pd=!dd&&ld.length===1||dd&&ld.length===0;if(Array.isArray(ld))ud=[...ld],ld=ud.pop(),nd[od]=ud.concat(ud.length>0?fd:ld);else if(pd)nd[od]=ld;else{if(ud=parseParams(ld),ld.length===0&&!dd&&ud.length===0)throw new Error("autoInject task functions require explicit parameters.");dd||ud.pop(),nd[od]=ud.concat(fd)}function fd(md,vd){var Ad=ud.map(Nd=>md[Nd]);Ad.push(vd),wrapAsync(ld)(...Ad)}}),auto(nd,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,nd){nd.prev=qa,nd.next=qa.next,qa.next?qa.next.prev=nd:this.tail=nd,qa.next=nd,this.length+=1}insertBefore(qa,nd){nd.prev=qa.prev,nd.next=qa,qa.prev?qa.prev.next=nd:this.head=nd,qa.prev=nd,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 nd=this.head;nd;){var{next:od}=nd;qa(nd)&&this.removeLink(nd),nd=od}return this}}function setInitial(Ra,qa){Ra.length=1,Ra.head=Ra.tail=qa}function queue$1(Ra,qa,nd){if(qa==null)qa=1;else if(qa===0)throw new RangeError("Concurrency must not be zero");var od=wrapAsync(Ra),ld=0,ud=[];const dd={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function pd(Ld,Bd){dd[Ld].push(Bd)}function fd(Ld,Bd){const Gd=(...qd)=>{md(Ld,Gd),Bd(...qd)};dd[Ld].push(Gd)}function md(Ld,Bd){if(!Ld)return Object.keys(dd).forEach(Gd=>dd[Gd]=[]);if(!Bd)return dd[Ld]=[];dd[Ld]=dd[Ld].filter(Gd=>Gd!==Bd)}function vd(Ld,...Bd){dd[Ld].forEach(Gd=>Gd(...Bd))}var Ad=!1;function Nd(Ld,Bd,Gd,qd){if(qd!=null&&typeof qd!="function")throw new Error("task callback must be a function");jd.started=!0;var zd,Xd;function gf(Zd,...df){if(Zd)return Gd?Xd(Zd):zd();if(df.length<=1)return zd(df[0]);zd(df)}var Yd=jd._createTaskItem(Ld,Gd?gf:qd||gf);if(Bd?jd._tasks.unshift(Yd):jd._tasks.push(Yd),Ad||(Ad=!0,setImmediate$1$1(()=>{Ad=!1,jd.process()})),Gd||!qd)return new Promise((Zd,df)=>{zd=Zd,Xd=df})}function Id(Ld){return function(Bd,...Gd){ld-=1;for(var qd=0,zd=Ld.length;qd<zd;qd++){var Xd=Ld[qd],gf=ud.indexOf(Xd);gf===0?ud.shift():gf>0&&ud.splice(gf,1),Xd.callback(Bd,...Gd),Bd!=null&&vd("error",Bd,Xd.data)}ld<=jd.concurrency-jd.buffer&&vd("unsaturated"),jd.idle()&&vd("drain"),jd.process()}}function Od(Ld){return Ld.length===0&&jd.idle()?(setImmediate$1$1(()=>vd("drain")),!0):!1}const Md=Ld=>Bd=>{if(!Bd)return new Promise((Gd,qd)=>{fd(Ld,(zd,Xd)=>{if(zd)return qd(zd);Gd(Xd)})});md(Ld),pd(Ld,Bd)};var Ud=!1,jd={_tasks:new DLL,_createTaskItem(Ld,Bd){return{data:Ld,callback:Bd}},*[Symbol.iterator](){yield*jd._tasks[Symbol.iterator]()},concurrency:qa,payload:nd,buffer:qa/4,started:!1,paused:!1,push(Ld,Bd){return Array.isArray(Ld)?Od(Ld)?void 0:Ld.map(Gd=>Nd(Gd,!1,!1,Bd)):Nd(Ld,!1,!1,Bd)},pushAsync(Ld,Bd){return Array.isArray(Ld)?Od(Ld)?void 0:Ld.map(Gd=>Nd(Gd,!1,!0,Bd)):Nd(Ld,!1,!0,Bd)},kill(){md(),jd._tasks.empty()},unshift(Ld,Bd){return Array.isArray(Ld)?Od(Ld)?void 0:Ld.map(Gd=>Nd(Gd,!0,!1,Bd)):Nd(Ld,!0,!1,Bd)},unshiftAsync(Ld,Bd){return Array.isArray(Ld)?Od(Ld)?void 0:Ld.map(Gd=>Nd(Gd,!0,!0,Bd)):Nd(Ld,!0,!0,Bd)},remove(Ld){jd._tasks.remove(Ld)},process(){if(!Ud){for(Ud=!0;!jd.paused&&ld<jd.concurrency&&jd._tasks.length;){var Ld=[],Bd=[],Gd=jd._tasks.length;jd.payload&&(Gd=Math.min(Gd,jd.payload));for(var qd=0;qd<Gd;qd++){var zd=jd._tasks.shift();Ld.push(zd),ud.push(zd),Bd.push(zd.data)}ld+=1,jd._tasks.length===0&&vd("empty"),ld===jd.concurrency&&vd("saturated");var Xd=onlyOnce(Id(Ld));od(Bd,Xd)}Ud=!1}},length(){return jd._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 nd,od="4.17.21",ld=200,ud="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",dd="Expected a function",pd="Invalid `variable` option passed into `_.template`",fd="__lodash_hash_undefined__",md=500,vd="__lodash_placeholder__",Ad=1,Nd=2,Id=4,Od=1,Md=2,Ud=1,jd=2,Ld=4,Bd=8,Gd=16,qd=32,zd=64,Xd=128,gf=256,Yd=512,Zd=30,df="...",Ef=800,_f=16,xf=1,vf=2,Af=3,Df=1/0,jf=9007199254740991,Jf=17976931348623157e292,eh=NaN,th=4294967295,Uf=th-1,Of=th>>>1,Wf=[["ary",Xd],["bind",Ud],["bindKey",jd],["curry",Bd],["curryRight",Gd],["flip",Yd],["partial",qd],["partialRight",zd],["rearg",gf]],qf="[object Arguments]",zf="[object Array]",Tf="[object AsyncFunction]",Sf="[object Boolean]",Yf="[object Date]",ih="[object DOMException]",Th="[object Error]",sh="[object Function]",Nf="[object GeneratorFunction]",ph="[object Map]",Oh="[object Number]",Zf="[object Null]",Rf="[object Object]",Bf="[object Promise]",Kf="[object Proxy]",wh="[object RegExp]",Ah="[object Set]",mh="[object String]",im="[object Symbol]",Bh="[object Undefined]",Tm="[object WeakMap]",Pm="[object WeakSet]",gm="[object ArrayBuffer]",Mm="[object DataView]",Hm="[object Float32Array]",gh="[object Float64Array]",Lf="[object Int8Array]",$f="[object Int16Array]",fh="[object Int32Array]",Ch="[object Uint8Array]",Zh="[object Uint8ClampedArray]",dm="[object Uint16Array]",Im="[object Uint32Array]",Ym=/\b__p \+= '';/g,Fm=/\b(__p \+=) '' \+/g,ug=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rg=/&(?:amp|lt|gt|quot|#39);/g,Eg=/[&<>"']/g,kg=RegExp(rg.source),n_=RegExp(Eg.source),Fg=/<%-([\s\S]+?)%>/g,Kg=/<%([\s\S]+?)%>/g,Ng=/<%=([\s\S]+?)%>/g,g_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jg=/^\w*$/,C_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N_=/[\\^$.*+?()[\]{}|]/g,a_=RegExp(N_.source),c_=/^\s+/,ng=/\s/,ub=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tb=/\{\n\/\* \[wrapped with (.+)\] \*/,q_=/,? & /,Pf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kh=/[()=,{}\[\]\/\s]/,vh=/\\(\\)?/g,Rh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sm=/\w*$/,Jh=/^[-+]0x[0-9a-f]+$/i,hm=/^0b[01]+$/i,pm=/^\[object .+?Constructor\]$/,Uh=/^0o[0-7]+$/i,Lm=/^(?:0|[1-9]\d*)$/,Gm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_g=/($^)/,Km=/['\n\r\u2028\u2029\\]/g,Sg="\\ud800-\\udfff",t_="\\u0300-\\u036f",Zg="\\ufe20-\\ufe2f",jg="\\u20d0-\\u20ff",tg=t_+Zg+jg,y_="\\u2700-\\u27bf",Gg="a-z\\xdf-\\xf6\\xf8-\\xff",Mg="\\xac\\xb1\\xd7\\xf7",_h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xh="\\u2000-\\u206f",Um=" \\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",Jm="A-Z\\xc0-\\xd6\\xd8-\\xde",Om="\\ufe0e\\ufe0f",og=Mg+_h+Xh+Um,zg="[']",S_="["+Sg+"]",M_="["+og+"]",fb="["+tg+"]",Mb="\\d+",Pg="["+y_+"]",hb="["+Gg+"]",T_="[^"+Sg+og+Mb+y_+Gg+Jm+"]",K_="\\ud83c[\\udffb-\\udfff]",B_="(?:"+fb+"|"+K_+")",$b="[^"+Sg+"]",u0="(?:\\ud83c[\\udde6-\\uddff]){2}",X_="[\\ud800-\\udbff][\\udc00-\\udfff]",Pb="["+Jm+"]",sy="\\u200d",P0="(?:"+hb+"|"+T_+")",Rg="(?:"+Pb+"|"+T_+")",L0="(?:"+zg+"(?:d|ll|m|re|s|t|ve))?",T0="(?:"+zg+"(?:D|LL|M|RE|S|T|VE))?",oy=B_+"?",uv="["+Om+"]?",dv="(?:"+sy+"(?:"+[$b,u0,X_].join("|")+")"+uv+oy+")*",x0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",F_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xb=uv+oy+dv,Wb="(?:"+[Pg,u0,X_].join("|")+")"+xb,C0="(?:"+[$b+fb+"?",fb,u0,X_,S_].join("|")+")",B0=RegExp(zg,"g"),BE=RegExp(fb,"g"),eE=RegExp(K_+"(?="+K_+")|"+C0+xb,"g"),FE=RegExp([Pb+"?"+hb+"+"+L0+"(?="+[M_,Pb,"$"].join("|")+")",Rg+"+"+T0+"(?="+[M_,Pb+P0,"$"].join("|")+")",Pb+"?"+P0+"+"+L0,Pb+"+"+T0,F_,x0,Mb,Wb].join("|"),"g"),PS=RegExp("["+sy+Sg+tg+Om+"]"),tE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jE=["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 `+pf+`] */
`)}function Hd(Vd){return Yg(Vd)||PE(Vd)||!!(OT&&Vd&&Vd[OT])}function Jd(Vd,pf){var Cf=typeof Vd;return pf=pf??jf,!!pf&&(Cf=="number"||Cf!="symbol"&&Lm.test(Vd))&&Vd>-1&&Vd%1==0&&Vd<pf}function Qd(Vd,pf,Cf){if(!G_(Cf))return!1;var Xf=typeof pf;return(Xf=="number"?qb(Cf)&&Jd(pf,Cf.length):Xf=="string"&&pf in Cf)?M0(Cf[pf],Vd):!1}function mf(Vd,pf){if(Yg(Vd))return!1;var Cf=typeof Vd;return Cf=="number"||Cf=="symbol"||Cf=="boolean"||Vd==null||o0(Vd)?!0:Jg.test(Vd)||!g_.test(Vd)||pf!=null&&Vd in v_(pf)}function wf(Vd){var pf=typeof Vd;return pf=="string"||pf=="number"||pf=="symbol"||pf=="boolean"?Vd!=="__proto__":Vd===null}function Gf(Vd){var pf=ME(Vd),Cf=Mh[pf];if(typeof Cf!="function"||!(pf in Bg.prototype))return!1;if(Vd===Cf)return!0;var Xf=kE(Cf);return!!Xf&&Vd===Xf[0]}function Qf(Vd){return!!JE&&JE in Vd}var dh=D0?iv:v1;function yh(Vd){var pf=Vd&&Vd.constructor,Cf=typeof pf=="function"&&pf.prototype||Qb;return Vd===Cf}function Wh(Vd){return Vd===Vd&&!G_(Vd)}function um(Vd,pf){return function(Cf){return Cf==null?!1:Cf[Vd]===pf&&(pf!==nd||Vd in v_(Cf))}}function Dm(Vd){var pf=Cx(Vd,function(Xf){return Cf.size===md&&Cf.clear(),Xf}),Cf=pf.cache;return pf}function Sm(Vd,pf){var Cf=Vd[1],Xf=pf[1],Sh=Cf|Xf,Fh=Sh<(Ud|jd|Xd),mm=Xf==Xd&&Cf==Bd||Xf==Xd&&Cf==gf&&Vd[7].length<=pf[8]||Xf==(Xd|gf)&&pf[7].length<=pf[8]&&Cf==Bd;if(!(Fh||mm))return Vd;Xf&Ud&&(Vd[2]=pf[2],Sh|=Cf&Ud?0:Ld);var _m=pf[3];if(_m){var Rm=Vd[3];Vd[3]=Rm?mS(Rm,_m,pf[4]):_m,Vd[4]=Rm?wb(Vd[3],vd):pf[4]}return _m=pf[5],_m&&(Rm=Vd[5],Vd[5]=Rm?hT(Rm,_m,pf[6]):_m,Vd[6]=Rm?wb(Vd[5],vd):pf[6]),_m=pf[7],_m&&(Vd[7]=_m),Xf&Xd&&(Vd[8]=Vd[8]==null?pf[8]:z_(Vd[8],pf[8])),Vd[9]==null&&(Vd[9]=pf[9]),Vd[0]=pf[0],Vd[1]=Sh,Vd}function jm(Vd){var pf=[];if(Vd!=null)for(var Cf in v_(Vd))pf.push(Cf);return pf}function Wm(Vd){return f0.call(Vd)}function eg(Vd,pf,Cf){return pf=D_(pf===nd?Vd.length-1:pf,0),function(){for(var Xf=arguments,Sh=-1,Fh=D_(Xf.length-pf,0),mm=$m(Fh);++Sh<Fh;)mm[Sh]=Xf[pf+Sh];Sh=-1;for(var _m=$m(pf+1);++Sh<pf;)_m[Sh]=Xf[Sh];return _m[pf]=Cf(mm),vb(Vd,this,_m)}}function dg(Vd,pf){return pf.length<2?Vd:Y0(Vd,eb(pf,0,-1))}function yg(Vd,pf){for(var Cf=Vd.length,Xf=z_(pf.length,Cf),Sh=Ab(Vd);Xf--;){var Fh=pf[Xf];Vd[Xf]=Jd(Fh,Cf)?Sh[Fh]:nd}return Vd}function lg(Vd,pf){if(!(pf==="constructor"&&typeof Vd[pf]=="function")&&pf!="__proto__")return Vd[pf]}var xg=b_(sx),Og=tS||function(Vd,pf){return h_.setTimeout(Vd,pf)},Ig=b_(Kx);function Wg(Vd,pf,Cf){var Xf=pf+"";return Ig(Vd,kd(Xf,U_(P_(Xf),Cf)))}function b_(Vd){var pf=0,Cf=0;return function(){var Xf=Mx(),Sh=_f-(Xf-Cf);if(Cf=Xf,Sh>0){if(++pf>=Ef)return arguments[0]}else pf=0;return Vd.apply(nd,arguments)}}function L_(Vd,pf){var Cf=-1,Xf=Vd.length,Sh=Xf-1;for(pf=pf===nd?Xf:pf;++Cf<pf;){var Fh=pS(Cf,Sh),mm=Vd[Fh];Vd[Fh]=Vd[Cf],Vd[Cf]=mm}return Vd.length=pf,Vd}var w_=Dm(function(Vd){var pf=[];return Vd.charCodeAt(0)===46&&pf.push(""),Vd.replace(C_,function(Cf,Xf,Sh,Fh){pf.push(Sh?Fh.replace(vh,"$1"):Xf||Cf)}),pf});function O_(Vd){if(typeof Vd=="string"||o0(Vd))return Vd;var pf=Vd+"";return pf=="0"&&1/Vd==-Df?"-0":pf}function j_(Vd){if(Vd!=null){try{return vv.call(Vd)}catch{}try{return Vd+""}catch{}}return""}function U_(Vd,pf){return Cb(Wf,function(Cf){var Xf="_."+Cf[0];pf&Cf[1]&&!hv(Vd,Xf)&&Vd.push(Xf)}),Vd.sort()}function gb(Vd){if(Vd instanceof Bg)return Vd.clone();var pf=new m_(Vd.__wrapped__,Vd.__chain__);return pf.__actions__=Ab(Vd.__actions__),pf.__index__=Vd.__index__,pf.__values__=Vd.__values__,pf}function lb(Vd,pf,Cf){(Cf?Qd(Vd,pf,Cf):pf===nd)?pf=1:pf=D_(Qg(pf),0);var Xf=Vd==null?0:Vd.length;if(!Xf||pf<1)return[];for(var Sh=0,Fh=0,mm=$m(uE(Xf/pf));Sh<Xf;)mm[Fh++]=eb(Vd,Sh,Sh+=pf);return mm}function W_(Vd){for(var pf=-1,Cf=Vd==null?0:Vd.length,Xf=0,Sh=[];++pf<Cf;){var Fh=Vd[pf];Fh&&(Sh[Xf++]=Fh)}return Sh}function H_(){var Vd=arguments.length;if(!Vd)return[];for(var pf=$m(Vd-1),Cf=arguments[0],Xf=Vd;Xf--;)pf[Xf-1]=arguments[Xf];return Kb(Yg(Cf)?Ab(Cf):[Cf],Z_(pf,1))}var k_=Xg(function(Vd,pf){return nb(Vd)?gE(Vd,Z_(pf,1,nb,!0)):[]}),Sb=Xg(function(Vd,pf){var Cf=E0(pf);return nb(Cf)&&(Cf=nd),nb(Vd)?gE(Vd,Z_(pf,1,nb,!0
`;Vd.replace(Cg,function(Hg,i_,l_,l0,kb,c0){return l_||(l_=l0),Zm+=Vd.slice(Xm,c0).replace(Km,Dy),i_&&(_m=!0,Zm+=`' +
__e(`+i_+`) +
'`),kb&&(Rm=!0,Zm+=`';
`+kb+`;
__p += '`),l_&&(Zm+=`' +
((__t = (`+l_+`)) == null ? '' : __t) +
'`),Xm=c0+Hg.length,Hg}),Zm+=`';
`;var Ug=f_.call(pf,"variable")&&pf.variable;if(!Ug)Zm=`with (obj) {
`+Zm+`
}
`;else if(kh.test(Ug))throw new Vg(pd);Zm=(Rm?Zm.replace(Ym,""):Zm).replace(Fm,"$1").replace(ug,"$1;"),Zm="function("+(Ug||"obj")+`) {
`+(Ug?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(_m?", __e = _.escape":"")+(Rm?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Zm+`return __p
}`;var e_=Z1(function(){return s_(Fh,$g+"return "+Zm).apply(nd,mm)});if(e_.source=Zm,u1(e_))throw e_;return e_}function wD(Vd){return E_(Vd).toLowerCase()}function DD(Vd){return E_(Vd).toUpperCase()}function ND(Vd,pf,Cf){if(Vd=E_(Vd),Vd&&(Cf||pf===nd))return Ag(Vd);if(!Vd||!(pf=Ib(pf)))return Vd;var Xf=Xb(Vd),Sh=Xb(pf),Fh=u_(Xf,Sh),mm=Q_(Xf,Sh)+1;return k0(Xf,Fh,mm).join("")}function ID(Vd,pf,Cf){if(Vd=E_(Vd),Vd&&(Cf||pf===nd))return Vd.slice(0,FS(Vd)+1);if(!Vd||!(pf=Ib(pf)))return Vd;var Xf=Xb(Vd),Sh=Q_(Xf,Xb(pf))+1;return k0(Xf,0,Sh).join("")}function RD(Vd,pf,Cf){if(Vd=E_(Vd),Vd&&(Cf||pf===nd))return Vd.replace(c_,"");if(!Vd||!(pf=Ib(pf)))return Vd;var Xf=Xb(Vd),Sh=u_(Xf,Xb(pf));return k0(Xf,Sh).join("")}function OD(Vd,pf){var Cf=Zd,Xf=df;if(G_(pf)){var Sh="separator"in pf?pf.separator:Sh;Cf="length"in pf?Qg(pf.length):Cf,Xf="omission"in pf?Ib(pf.omission):Xf}Vd=E_(Vd);var Fh=Vd.length;if(_v(Vd)){var mm=Xb(Vd);Fh=mm.length}if(Cf>=Fh)return Vd;var _m=Cf-yv(Xf);if(_m<1)return Xf;var Rm=mm?k0(mm,0,_m).join(""):Vd.slice(0,_m);if(Sh===nd)return Rm+Xf;if(mm&&(_m+=Rm.length-_m),d1(Sh)){if(Vd.slice(_m).search(Sh)){var Xm,Qm=Rm;for(Sh.global||(Sh=cE(Sh.source,E_(sm.exec(Sh))+"g")),Sh.lastIndex=0;Xm=Sh.exec(Qm);)var Zm=Xm.index;Rm=Rm.slice(0,Zm===nd?_m:Zm)}}else if(Vd.indexOf(Ib(Sh),_m)!=_m){var Cg=Rm.lastIndexOf(Sh);Cg>-1&&(Rm=Rm.slice(0,Cg))}return Rm+Xf}function kD(Vd){return Vd=E_(Vd),Vd&&kg.test(Vd)?Vd.replace(rg,DT):Vd}var MD=Yv(function(Vd,pf,Cf){return Vd+(Cf?" ":"")+pf.toUpperCase()}),h1=fx("toUpperCase");function J1(Vd,pf,Cf){return Vd=E_(Vd),pf=Cf?nd:pf,pf===nd?CT(Vd)?IT(Vd):LS(Vd):Vd.match(pf)||[]}var Z1=Xg(function(Vd,pf){try{return vb(Vd,nd,pf)}catch(Cf){return u1(Cf)?Cf:new Vg(Cf)}}),$D=b0(function(Vd,pf){return Cb(pf,function(Cf){Cf=O_(Cf),R0(Vd,Cf,l1(Vd[Cf],Vd))}),Vd});function PD(Vd){var pf=Vd==null?0:Vd.length,Cf=Lg();return Vd=pf?x_(Vd,function(Xf){if(typeof Xf[1]!="function")throw new jb(dd);return[Cf(Xf[0]),Xf[1]]}):[],Xg(function(Xf){for(var Sh=-1;++Sh<pf;){var Fh=Vd[Sh];if(vb(Fh[0],this,Xf))return vb(Fh[1],this,Xf)}})}function LD(Vd){return Vx(Nb(Vd,Ad))}function m1(Vd){return function(){return Vd}}function BD(Vd,pf){return Vd==null||Vd!==Vd?pf:Vd}var FD=hx(),jD=hx(!0);function zb(Vd){return Vd}function g1(Vd){return Uv(typeof Vd=="function"?Vd:Nb(Vd,Ad))}function UD(Vd){return ZT(Nb(Vd,Ad))}function HD(Vd,pf){return oT(Vd,Nb(pf,Ad))}var GD=Xg(function(Vd,pf){return function(Cf){return Fv(Cf,Vd,pf)}}),qD=Xg(function(Vd,pf){return function(Cf){return Fv(Vd,Cf,pf)}});function _1(Vd,pf,Cf){var Xf=yb(pf),Sh=uS(pf,Xf);Cf==null&&!(G_(pf)&&(Sh.length||!Xf.length))&&(Cf=pf,pf=Vd,Vd=this,Sh=uS(pf,yb(pf)));var Fh=!(G_(Cf)&&"chain"in Cf)||!!Cf.chain,mm=iv(Vd);return Cb(Sh,function(_m){var Rm=pf[_m];Vd[_m]=Rm,mm&&(Vd.prototype[_m]=function(){var Xm=this.__chain__;if(Fh||Xm){var Qm=Vd(this.__wrapped__),Zm=Qm.__actions__=Ab(this.__actions__);return Zm.push({func:Rm,args:arguments,thisArg:Vd}),Qm.__chain__=Xm,Qm}return Rm.apply(Vd,Kb([this.value()],arguments))})}),Vd}function VD(){return h_._===this&&(h_._=Eb),this}function b1(){}function zD(Vd){return Vd=Qg(Vd),Xg(function(pf){return Gv(pf,Vd)})}var WD=_S(x_),YD=_S(Cy),KD=_S(j0);function eC(Vd){return mf(Vd)?xh(O_(Vd)):Wx(Vd)}function XD(Vd){return function(pf){return Vd==null?nd:Y0(Vd,pf)}}var QD=nv(),JD=nv(!0);function y1(){return[]}function v1(){return!1}function ZD(){return{}}function eN(){return""}function tN(){return!0}function rN(Vd,pf){if(Vd=Qg(Vd),Vd<1||Vd>jf)return[];var Cf=th,Xf=z_(Vd,th);pf=Lg(pf),Vd-=th;for(var Sh=sg(Xf,pf);++Cf<Vd;)pf(Cf);return Sh}function nN(Vd){return Yg(Vd)?x_(Vd,O_):o0(Vd)?[Vd]:Ab(w_(E_(Vd)))}function iN(Vd){var pf=++RT;return E_(Vd)+pf}var sN=Kv(function(Vd,pf){return Vd+pf},0),oN=yT("ceil"),lN=Kv(function(Vd,pf){return Vd/pf},1),cN=yT("floor");function uN(Vd){return Vd&&Vd.length?lS(Vd,zb,dS):nd}function dN(Vd,pf){return Vd&&Vd.length?lS(Vd,Lg(pf,2),dS):nd}function pN(Vd){return uh(Vd,zb)}function fN(Vd,pf){return uh(Vd,Lg(pf,2))}function hN(Vd){return Vd&&Vd.length?lS(Vd,zb,ev):nd}function mN(Vd,pf){return Vd&&Vd.length?lS(Vd,Lg
`:"")),nd&&nd()}function ud(dd){return dd.interrupt?(dd.interrupt.append=Ra,dd.interrupt.end=ld,dd.interrupt=!1,Ra(!0),!0):!1}if(Ra(!1,qa.indents+(qa.name?"<"+qa.name:"")+(qa.attributes.length?" "+qa.attributes.join(" "):"")+(od?qa.name?">":"":qa.name?"/>":"")+(qa.indent&&od>1?`
`:"")),!od)return Ra(!1,qa.indent?`
`:"");ud(qa)||ld()}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={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults.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}var builder={},lib$2={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var Ra,qa,nd,od,ld,ud,dd,pd=[].slice,fd={}.hasOwnProperty;Ra=function(){var md,vd,Ad,Nd,Id,Od;if(Od=arguments[0],Id=2<=arguments.length?pd.call(arguments,1):[],ld(Object.assign))Object.assign.apply(null,arguments);else for(md=0,Ad=Id.length;md<Ad;md++)if(Nd=Id[md],Nd!=null)for(vd in Nd)fd.call(Nd,vd)&&(Od[vd]=Nd[vd]);return Od},ld=function(md){return!!md&&Object.prototype.toString.call(md)==="[object Function]"},ud=function(md){var vd;return!!md&&((vd=typeof md)=="function"||vd==="object")},nd=function(md){return ld(Array.isArray)?Array.isArray(md):Object.prototype.toString.call(md)==="[object Array]"},od=function(md){var vd;if(nd(md))return!md.length;for(vd in md)if(fd.call(md,vd))return!1;return!0},dd=function(md){var vd,Ad;return ud(md)&&(Ad=Object.getPrototypeOf(md))&&(vd=Ad.constructor)&&typeof vd=="function"&&vd instanceof vd&&Function.prototype.toString.call(vd)===Function.prototype.toString.call(Object)},qa=function(md){return ld(md.valueOf)?md.valueOf():md},Utility.assign=Ra,Utility.isFunction=ld,Utility.isObject=ud,Utility.isArray=nd,Utility.isEmpty=od,Utility.isPlainObject=dd,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,nd){return!0},Ra.prototype.createDocumentType=function(qa,nd,od){throw new Error("This DOM method is not implemented.")},Ra.prototype.createDocument=function(qa,nd,od){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,nd){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 nd(){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(nd.prototype,"parameterNames",{get:function(){return new qa(Object.keys(this.defaultParams))}}),nd.prototype.getParameter=function(od){return this.params.hasOwnProperty(od)?this.params[od]:null},nd.prototype.canSetParameter=function(od,ld){return!0},nd.prototype.setParameter=func
`,dd.offset=(md=ud.offset)!=null?md:0,dd.dontPrettyTextNodes=(vd=(Ad=ud.dontPrettyTextNodes)!=null?Ad:ud.dontprettytextnodes)!=null?vd:0,dd.spaceBeforeSlash=(Nd=(Id=ud.spaceBeforeSlash)!=null?Id:ud.spacebeforeslash)!=null?Nd:"",dd.spaceBeforeSlash===!0&&(dd.spaceBeforeSlash=" "),dd.suppressPrettyCount=0,dd.user={},dd.state=qa.None,dd},ld.prototype.indent=function(ud,dd,pd){var fd;return!dd.pretty||dd.suppressPrettyCount?"":dd.pretty&&(fd=(pd||0)+dd.offset+1,fd>0)?new Array(fd).join(dd.indent):""},ld.prototype.endline=function(ud,dd,pd){return!dd.pretty||dd.suppressPrettyCount?"":dd.newline},ld.prototype.attribute=function(ud,dd,pd){var fd;return this.openAttribute(ud,dd,pd),fd=" "+ud.name+'="'+ud.value+'"',this.closeAttribute(ud,dd,pd),fd},ld.prototype.cdata=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+"<![CDATA[",dd.state=qa.InsideTag,fd+=ud.value,dd.state=qa.CloseTag,fd+="]]>"+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.comment=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+"<!-- ",dd.state=qa.InsideTag,fd+=ud.value,dd.state=qa.CloseTag,fd+=" -->"+this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.declaration=function(ud,dd,pd){var fd;return this.openNode(ud,dd,pd),dd.state=qa.OpenTag,fd=this.indent(ud,dd,pd)+"<?xml",dd.state=qa.InsideTag,fd+=' version="'+ud.version+'"',ud.encoding!=null&&(fd+=' encoding="'+ud.encoding+'"'),ud.standalone!=null&&(fd+=' standalone="'+ud.standalone+'"'),dd.state=qa.CloseTag,fd+=dd.spaceBeforeSlash+"?>",fd+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),fd},ld.prototype.docType=function(ud,dd,pd){var fd,md,vd,Ad,Nd;if(pd||(pd=0),this.openNode(ud,dd,pd),dd.state=qa.OpenTag,Ad=this.indent(ud,dd,pd),Ad+="<!DOCTYPE "+ud.root().name,ud.pubID&&ud.sysID?Ad+=' PUBLIC "'+ud.pubID+'" "'+ud.sysID+'"':ud.sysID&&(Ad+=' SYSTEM "'+ud.sysID+'"'),ud.children.length>0){for(Ad+=" [",Ad+=this.endline(ud,dd,pd),dd.state=qa.InsideTag,Nd=ud.children,md=0,vd=Nd.length;md<vd;md++)fd=Nd[md],Ad+=this.writeChildNode(fd,dd,pd+1);dd.state=qa.CloseTag,Ad+="]"}return dd.state=qa.CloseTag,Ad+=dd.spaceBeforeSlash+">",Ad+=this.endline(ud,dd,pd),dd.state=qa.None,this.closeNode(ud,dd,pd),Ad},ld.prototype.element=function(ud,dd,pd){var fd,md,vd,Ad,Nd,Id,Od,Md,Ud,jd,Ld,Bd,Gd,qd;pd||(pd=0),jd=!1,Ld="",this.openNode(ud,dd,pd),dd.state=qa.OpenTag,Ld+=this.indent(ud,dd,pd)+"<"+ud.name,Bd=ud.attribs;for(Ud in Bd)od.call(Bd,Ud)&&(fd=Bd[Ud],Ld+=this.attribute(fd,dd,pd));if(vd=ud.children.length,Ad=vd===0?null:ud.children[0],vd===0||ud.children.every(function(zd){return(zd.type===Ra.Text||zd.type===Ra.Raw)&&zd.value===""}))dd.allowEmpty?(Ld+=">",dd.state=qa.CloseTag,Ld+="</"+ud.name+">"+this.endline(ud,dd,pd)):(dd.state=qa.CloseTag,Ld+=dd.spaceBeforeSlash+"/>"+this.endline(ud,dd,pd));else if(dd.pretty&&vd===1&&(Ad.type===Ra.Text||Ad.type===Ra.Raw)&&Ad.value!=null)Ld+=">",dd.state=qa.InsideTag,dd.suppressPrettyCount++,jd=!0,Ld+=this.writeChildNode(Ad,dd,pd+1),dd.suppressPrettyCount--,jd=!1,dd.state=qa.CloseTag,Ld+="</"+ud.name+">"+this.endline(ud,dd,pd);else{if(dd.dontPrettyTextNodes){for(Gd=ud.children,Nd=0,Od=Gd.length;Nd<Od;Nd++)if(md=Gd[Nd],(md.type===Ra.Text||md.type===Ra.Raw)&&md.value!=null){dd.suppressPrettyCount++,jd=!0;break}}for(Ld+=">"+this.endline(ud,dd,pd),dd.state=qa.InsideTag,qd=ud.children,Id=0,Md=qd.length;Id<Md;Id++)md=qd[Id],Ld+=this.writeChildNode(md,dd,pd+1);dd.state=qa.CloseTag,Ld+=this.indent(ud,dd,pd)+"</"+ud.name+">",jd&&dd.suppressPrettyCount--,Ld+=this.endline(ud,dd,pd),dd.state=qa.None}return this.closeNode(ud,dd,pd),Ld},ld.prototype.writeChildNode=function(ud,dd,pd){switch(ud.type){case Ra.CData:return this.cdata(ud,dd,pd);case Ra.Comment:return this.comment(ud,dd,pd);case Ra.Element:return this.element(ud,dd,pd);case Ra.Raw:return this.raw(ud,dd,pd);case Ra.Text:return this.text(ud,dd,pd);case Ra.ProcessingInstruction:return this.processingInstruction(ud,dd,pd);case Ra.Dummy:return"";case Ra.Declaration:return
`||Tf==="\r"||Tf===" "}function qd(Tf){return Tf==='"'||Tf==="'"}function zd(Tf){return Tf===">"||Gd(Tf)}function Xd(Tf,Sf){return Tf.test(Sf)}function gf(Tf,Sf){return!Xd(Tf,Sf)}var Yd=0;qa.STATE={BEGIN:Yd++,BEGIN_WHITESPACE:Yd++,TEXT:Yd++,TEXT_ENTITY:Yd++,OPEN_WAKA:Yd++,SGML_DECL:Yd++,SGML_DECL_QUOTED:Yd++,DOCTYPE:Yd++,DOCTYPE_QUOTED:Yd++,DOCTYPE_DTD:Yd++,DOCTYPE_DTD_QUOTED:Yd++,COMMENT_STARTING:Yd++,COMMENT:Yd++,COMMENT_ENDING:Yd++,COMMENT_ENDED:Yd++,CDATA:Yd++,CDATA_ENDING:Yd++,CDATA_ENDING_2:Yd++,PROC_INST:Yd++,PROC_INST_BODY:Yd++,PROC_INST_ENDING:Yd++,OPEN_TAG:Yd++,OPEN_TAG_SLASH:Yd++,ATTRIB:Yd++,ATTRIB_NAME:Yd++,ATTRIB_NAME_SAW_WHITE:Yd++,ATTRIB_VALUE:Yd++,ATTRIB_VALUE_QUOTED:Yd++,ATTRIB_VALUE_CLOSED:Yd++,ATTRIB_VALUE_UNQUOTED:Yd++,ATTRIB_VALUE_ENTITY_Q:Yd++,ATTRIB_VALUE_ENTITY_U:Yd++,CLOSE_TAG:Yd++,CLOSE_TAG_SAW_WHITE:Yd++,SCRIPT:Yd++,SCRIPT_ENDING:Yd++},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(Tf){var Sf=qa.ENTITIES[Tf],Yf=typeof Sf=="number"?String.fromCharCode(Sf):Sf;qa.ENTITIES[Tf]=Yf});for(var Zd in qa.STATE)qa.STATE[qa.STATE[Zd]]=Zd;Yd=qa.STATE;function df(Tf,Sf,Yf){Tf[Sf]&&Tf[Sf](Yf)}function Ef(Tf,Sf,Yf){Tf.textNode&&_f(Tf),df(Tf,Sf,Yf)}function _f(Tf){Tf.textNode=xf(Tf.opt,Tf.textNode),Tf.textNode&&df(Tf,"ontext",Tf.textNode),Tf.textNode=""}function xf(Tf,Sf){return Tf.trim&&(Sf=Sf.trim()),Tf.normalize&&(Sf=Sf.replace(/\s+/g," ")),Sf}function vf(Tf,Sf){return _f(Tf),Tf.trackPosition&&(Sf+=`
Line: `+Tf.line+`
Column: `+Tf.column+`
Char: `+Tf.c),Sf=new Error(Sf),Tf.error=Sf,df(Tf,"onerror",Sf),Tf}function Af(Tf){return Tf.sawRoot&&!Tf.closedRoot&&Df(Tf,"Unclosed root tag"),Tf.state!==Yd.BEGIN&&Tf.state!==Yd.BEGIN_WHITESPACE&&Tf.state!==Yd.TEXT&&vf(Tf,"Unexpected end"),_f(Tf),Tf.c="",Tf.closed=!0,df(Tf,"onend"),od.call(Tf,Tf.strict,Tf.opt),Tf}function Df(Tf,Sf){if(typeof Tf!="object"||!(Tf instanceof od))throw new Error("bad call to strictFail");Tf.strict&&vf(Tf,Sf)}function jf(Tf){Tf.strict||(Tf.tagName=Tf.tagName[Tf.looseCase]());var Sf=Tf.tags[Tf.tags.length-1]||Tf,Yf=Tf.tag={name:Tf.tagName,attributes:{}};Tf.opt.xmlns&&(Yf.ns=Sf.ns),Tf.attribList.length=0,Ef(Tf,"onopentagstart",Yf)}function Jf(Tf,Sf){var Yf=Tf.indexOf(":"),ih=Yf<0?["",Tf]:Tf.split(":"),Th=ih[0],sh=ih[1];return Sf&&Tf==="xmlns"&&(Th="xmlns",sh=""),{prefix:Th,local:sh}}function eh(Tf){if(Tf.strict||(Tf.attribName=Tf.attribName[Tf.looseCase]()),Tf.attribList.indexOf(Tf.attribName)!==-1||Tf.tag.attributes.hasOwnProperty(Tf.attribName)){Tf.attribName=Tf.attribValue="";return}if(Tf.opt.xmlns){var Sf=Jf(Tf.attribName,!0),Yf=Sf.prefix,ih=Sf.local;if(Yf==="xmlns")if(ih==="xml"&&Tf.attribValue!==Id)Df(Tf,"xml: prefix must be bound to "+Id+`
Actual: `+Tf.attribValue);else if(ih==="xmlns"&&Tf.attribValue!==Od)Df(Tf,"xmlns: prefix must be bound to "+Od+`
Actual: `+Tf.attribValue);else{var Th=Tf.tag,sh=Tf.tags[Tf.tags.length-1]||Tf;Th.ns===sh.ns&&(Th.ns=Object.create(sh.ns)),Th.ns[ih]=Tf.attribValue}Tf.attribList.push([Tf.attribName,Tf.attribValue])}else Tf.tag.attributes[Tf.attribName]=Tf.attribValue,Ef(Tf,"onattribute",{name:Tf.attribName,value:Tf.attribValue});Tf.attribName=Tf.attribValue=""}function th(Tf,Sf){if(Tf.opt.xmlns){var Yf=Tf.tag,ih=Jf(Tf.tagName);Yf.prefix=ih.prefix,Yf.local=ih.local,Yf.uri=Yf.ns[ih.prefix]||"",Yf.prefix&&!Yf.uri&&(Df(Tf,"Unbound namespace prefix: "+JSON.stringify(Tf.tagName)),Yf.uri=ih.prefix);var Th=Tf.tags[Tf.tags.length-1]||Tf;Yf.ns&&Th.ns!==Yf.ns&&Object.keys(Yf.ns).forEach(function(mh){Ef(Tf,"onopennamespace",{prefix:mh,uri:Yf.ns[mh]})});for(var sh=0,Nf=Tf.attribList.length;sh<Nf;sh++){var ph=Tf.attribList[sh],Oh=ph[0],Zf=ph[1],Rf=Jf(Oh,!0),Bf=Rf.prefix,Kf=Rf.local,wh=Bf===""?"":Yf.ns[Bf]||"",Ah={name:Oh,value:Zf,prefix:Bf,local:Kf,uri:wh};Bf&&Bf!=="xmlns"&&!wh&&(Df(Tf,"Unbound namespace prefix: "+JSON.stringify(Bf)),Ah.uri=Bf),Tf.tag.attributes[Oh]=Ah,Ef(Tf,"onattribute",Ah)}Tf.attribList.length=0}Tf.tag.isSelfClosing=!!Sf,Tf.sawRoot=!0,Tf.tags.push(Tf.tag),Ef(Tf,"onopentag",Tf.tag),Sf||(!Tf.noscript&&Tf.tagName.toLowerCase()==="script"?Tf.state=Yd.SCRIPT:Tf.state=Yd.TEXT,Tf.tag=null,Tf.tagName=""),Tf.attribName=Tf.attribValue="",Tf.attribList.length=0}function Uf(Tf){if(!Tf.tagName){Df(Tf,"Weird empty close tag."),Tf.textNode+="</>",Tf.state=Yd.TEXT;return}if(Tf.script){if(Tf.tagName!=="script"){Tf.script+="</"+Tf.tagName+">",Tf.tagName="",Tf.state=Yd.SCRIPT;return}Ef(Tf,"onscript",Tf.script),Tf.script=""}var Sf=Tf.tags.length,Yf=Tf.tagName;Tf.strict||(Yf=Yf[Tf.looseCase]());for(var ih=Yf;Sf--;){var Th=Tf.tags[Sf];if(Th.name!==ih)Df(Tf,"Unexpected close tag");else break}if(Sf<0){Df(Tf,"Unmatched closing tag: "+Tf.tagName),Tf.textNode+="</"+Tf.tagName+">",Tf.state=Yd.TEXT;return}Tf.tagName=Yf;for(var sh=Tf.tags.length;sh-- >Sf;){var Nf=Tf.tag=Tf.tags.pop();Tf.tagName=Tf.tag.name,Ef(Tf,"onclosetag",Tf.tagName);var ph={};for(var Oh in Nf.ns)ph[Oh]=Nf.ns[Oh];var Zf=Tf.tags[Tf.tags.length-1]||Tf;Tf.opt.xmlns&&Nf.ns!==Zf.ns&&Object.keys(Nf.ns).forEach(function(Rf){var Bf=Nf.ns[Rf];Ef(Tf,"onclosenamespace",{prefix:Rf,uri:Bf})})}Sf===0&&(Tf.closedRoot=!0),Tf.tagName=Tf.attribValue=Tf.attribName="",Tf.attribList.length=0,Tf.state=Yd.TEXT}function Of(Tf){var Sf=Tf.entity,Yf=Sf.toLowerCase(),ih,Th="";return Tf.ENTITIES[Sf]?Tf.ENTITIES[Sf]:Tf.ENTITIES[Yf]?Tf.ENTITIES[Yf]:(Sf=Yf,Sf.charAt(0)==="#"&&(Sf.charAt(1)==="x"?(Sf=Sf.slice(2),ih=parseInt(Sf,16),Th=ih.toString(16)):(Sf=Sf.slice(1),ih=parseInt(Sf,10),Th=ih.toString(10))),Sf=Sf.replace(/^0+/,""),isNaN(ih)||Th.toLowerCase()!==Sf?(Df(Tf,"Invalid character entity"),"&"+Tf.entity+";"):String.fromCodePoint(ih))}function Wf(Tf,Sf){Sf==="<"?(Tf.state=Yd.OPEN_WAKA,Tf.startTagPosition=Tf.position):Gd(Sf)||(Df(Tf,"Non-whitespace before first tag."),Tf.textNode=Sf,Tf.state=Yd.TEXT)}function qf(Tf,Sf){var Yf="";return Sf<Tf.length&&(Yf=Tf.charAt(Sf)),Yf}function zf(Tf){var Sf=this;if(this.error)throw this.error;if(Sf.closed)return vf(Sf,"Cannot write after close. Assign an onready handler.");if(Tf===null)return Af(Sf);typeof Tf=="object"&&(Tf=Tf.toString());for(var Yf=0,ih="";ih=qf(Tf,Yf++),Sf.c=ih,!!ih;)switch(Sf.trackPosition&&(Sf.position++,ih===`
`?(Sf.line++,Sf.column=0):Sf.column++),Sf.state){case Yd.BEGIN:if(Sf.state=Yd.BEGIN_WHITESPACE,ih==="\uFEFF")continue;Wf(Sf,ih);continue;case Yd.BEGIN_WHITESPACE:Wf(Sf,ih);continue;case Yd.TEXT:if(Sf.sawRoot&&!Sf.closedRoot){for(var Th=Yf-1;ih&&ih!=="<"&&ih!=="&";)ih=qf(Tf,Yf++),ih&&Sf.trackPosition&&(Sf.position++,ih===`
`?(Sf.line++,Sf.column=0):Sf.column++);Sf.textNode+=Tf.substring(Th,Yf-1)}ih==="<"&&!(Sf.sawRoot&&Sf.closedRoot&&!Sf.strict)?(Sf.state=Yd.OPEN_WAKA,Sf.startTagPosition=Sf.position):(!Gd(ih)&&(!Sf.sawRoot||Sf.closedRoot)&&Df(Sf,"Text data outside of root node."),ih==="&"?Sf.state=Yd.TEXT_ENTITY:Sf.textNode+=ih);continue;case Yd.SCRIPT:ih==="<"?Sf.state=Yd.SCRIPT_ENDING:Sf.script+=ih;continue;case Yd.SCRIPT_ENDING:ih==="/"?Sf.state=Yd.CLOSE_TAG:(Sf.script+="<"+ih,Sf.state=Yd.SCRIPT);continue;case Yd.OPEN_WAKA:if(ih==="!")Sf.state=Yd.SGML_DECL,Sf.sgmlDecl="";else if(!Gd(ih))if(Xd(Ud,ih))Sf.state=Yd.OPEN_TAG,Sf.tagName=ih;else if(ih==="/")Sf.state=Yd.CLOSE_TAG,Sf.tagName="";else if(ih==="?")Sf.state=Yd.PROC_INST,Sf.procInstName=Sf.procInstBody="";else{if(Df(Sf,"Unencoded <"),Sf.startTagPosition+1<Sf.position){var sh=Sf.position-Sf.startTagPosition;ih=new Array(sh).join(" ")+ih}Sf.textNode+="<"+ih,Sf.state=Yd.TEXT}continue;case Yd.SGML_DECL:if(Sf.sgmlDecl+ih==="--"){Sf.state=Yd.COMMENT,Sf.comment="",Sf.sgmlDecl="";continue}Sf.doctype&&Sf.doctype!==!0&&Sf.sgmlDecl?(Sf.state=Yd.DOCTYPE_DTD,Sf.doctype+="<!"+Sf.sgmlDecl+ih,Sf.sgmlDecl=""):(Sf.sgmlDecl+ih).toUpperCase()===Ad?(Ef(Sf,"onopencdata"),Sf.state=Yd.CDATA,Sf.sgmlDecl="",Sf.cdata=""):(Sf.sgmlDecl+ih).toUpperCase()===Nd?(Sf.state=Yd.DOCTYPE,(Sf.doctype||Sf.sawRoot)&&Df(Sf,"Inappropriately located doctype declaration"),Sf.doctype="",Sf.sgmlDecl=""):ih===">"?(Ef(Sf,"onsgmldeclaration",Sf.sgmlDecl),Sf.sgmlDecl="",Sf.state=Yd.TEXT):(qd(ih)&&(Sf.state=Yd.SGML_DECL_QUOTED),Sf.sgmlDecl+=ih);continue;case Yd.SGML_DECL_QUOTED:ih===Sf.q&&(Sf.state=Yd.SGML_DECL,Sf.q=""),Sf.sgmlDecl+=ih;continue;case Yd.DOCTYPE:ih===">"?(Sf.state=Yd.TEXT,Ef(Sf,"ondoctype",Sf.doctype),Sf.doctype=!0):(Sf.doctype+=ih,ih==="["?Sf.state=Yd.DOCTYPE_DTD:qd(ih)&&(Sf.state=Yd.DOCTYPE_QUOTED,Sf.q=ih));continue;case Yd.DOCTYPE_QUOTED:Sf.doctype+=ih,ih===Sf.q&&(Sf.q="",Sf.state=Yd.DOCTYPE);continue;case Yd.DOCTYPE_DTD:ih==="]"?(Sf.doctype+=ih,Sf.state=Yd.DOCTYPE):ih==="<"?(Sf.state=Yd.OPEN_WAKA,Sf.startTagPosition=Sf.position):qd(ih)?(Sf.doctype+=ih,Sf.state=Yd.DOCTYPE_DTD_QUOTED,Sf.q=ih):Sf.doctype+=ih;continue;case Yd.DOCTYPE_DTD_QUOTED:Sf.doctype+=ih,ih===Sf.q&&(Sf.state=Yd.DOCTYPE_DTD,Sf.q="");continue;case Yd.COMMENT:ih==="-"?Sf.state=Yd.COMMENT_ENDING:Sf.comment+=ih;continue;case Yd.COMMENT_ENDING:ih==="-"?(Sf.state=Yd.COMMENT_ENDED,Sf.comment=xf(Sf.opt,Sf.comment),Sf.comment&&Ef(Sf,"oncomment",Sf.comment),Sf.comment=""):(Sf.comment+="-"+ih,Sf.state=Yd.COMMENT);continue;case Yd.COMMENT_ENDED:ih!==">"?(Df(Sf,"Malformed comment"),Sf.comment+="--"+ih,Sf.state=Yd.COMMENT):Sf.doctype&&Sf.doctype!==!0?Sf.state=Yd.DOCTYPE_DTD:Sf.state=Yd.TEXT;continue;case Yd.CDATA:ih==="]"?Sf.state=Yd.CDATA_ENDING:Sf.cdata+=ih;continue;case Yd.CDATA_ENDING:ih==="]"?Sf.state=Yd.CDATA_ENDING_2:(Sf.cdata+="]"+ih,Sf.state=Yd.CDATA);continue;case Yd.CDATA_ENDING_2:ih===">"?(Sf.cdata&&Ef(Sf,"oncdata",Sf.cdata),Ef(Sf,"onclosecdata"),Sf.cdata="",Sf.state=Yd.TEXT):ih==="]"?Sf.cdata+="]":(Sf.cdata+="]]"+ih,Sf.state=Yd.CDATA);continue;case Yd.PROC_INST:ih==="?"?Sf.state=Yd.PROC_INST_ENDING:Gd(ih)?Sf.state=Yd.PROC_INST_BODY:Sf.procInstName+=ih;continue;case Yd.PROC_INST_BODY:if(!Sf.procInstBody&&Gd(ih))continue;ih==="?"?Sf.state=Yd.PROC_INST_ENDING:Sf.procInstBody+=ih;continue;case Yd.PROC_INST_ENDING:ih===">"?(Ef(Sf,"onprocessinginstruction",{name:Sf.procInstName,body:Sf.procInstBody}),Sf.procInstName=Sf.procInstBody="",Sf.state=Yd.TEXT):(Sf.procInstBody+="?"+ih,Sf.state=Yd.PROC_INST_BODY);continue;case Yd.OPEN_TAG:Xd(jd,ih)?Sf.tagName+=ih:(jf(Sf),ih===">"?th(Sf):ih==="/"?Sf.state=Yd.OPEN_TAG_SLASH:(Gd(ih)||Df(Sf,"Invalid character in tag name"),Sf.state=Yd.ATTRIB));continue;case Yd.OPEN_TAG_SLASH:ih===">"?(th(Sf,!0),Uf(Sf)):(Df(Sf,"Forward-slash in opening tag not followed by >"),Sf.state=Yd.ATTRIB);continue;case Yd.ATTRIB:if(Gd(ih))continue;ih===">"?th(Sf):ih==="/"?Sf.state=Yd.OPEN_TAG_SLASH:Xd(Ud,ih)?(Sf.attribName=ih,Sf.attribValue="",Sf.state=Yd.ATTRIB_NAME):Df(Sf,"Invalid attribute name");continue;case Yd.ATTRIB_NAME:ih==="="?Sf.state
`&&Ra[ud]!=="\r";ud++)fd+=Ra[ud];if(fd=fd.trim(),fd[fd.length-1]==="/"&&(fd=fd.substring(0,fd.length-1),ud--),!validateTagName(fd)){let Ad;return fd.trim().length===0?Ad="Invalid space after '<'.":Ad="Tag '"+fd+"' is an invalid name.",getErrorObject("InvalidTag",Ad,getLineNumberForPosition(Ra,ud))}const md=readAttributeStr(Ra,ud);if(md===!1)return getErrorObject("InvalidAttr","Attributes for '"+fd+"' have open quote.",getLineNumberForPosition(Ra,ud));let vd=md.value;if(ud=md.index,vd[vd.length-1]==="/"){const Ad=ud-vd.length;vd=vd.substring(0,vd.length-1);const Nd=validateAttributeString(vd,qa);if(Nd===!0)od=!0;else return getErrorObject(Nd.err.code,Nd.err.msg,getLineNumberForPosition(Ra,Ad+Nd.err.line))}else if(pd)if(md.tagClosed){if(vd.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+fd+"' can't have attributes or invalid starting.",getLineNumberForPosition(Ra,dd));if(nd.length===0)return getErrorObject("InvalidTag","Closing tag '"+fd+"' has not been opened.",getLineNumberForPosition(Ra,dd));{const Ad=nd.pop();if(fd!==Ad.tagName){let Nd=getLineNumberForPosition(Ra,Ad.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+Ad.tagName+"' (opened in line "+Nd.line+", col "+Nd.col+") instead of closing tag '"+fd+"'.",getLineNumberForPosition(Ra,dd))}nd.length==0&&(ld=!0)}}else return getErrorObject("InvalidTag","Closing tag '"+fd+"' doesn't have proper closing.",getLineNumberForPosition(Ra,ud));else{const Ad=validateAttributeString(vd,qa);if(Ad!==!0)return getErrorObject(Ad.err.code,Ad.err.msg,getLineNumberForPosition(Ra,ud-vd.length+Ad.err.line));if(ld===!0)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(Ra,ud));qa.unpairedTags.indexOf(fd)!==-1||nd.push({tagName:fd,tagStartPos:dd}),od=!0}for(ud++;ud<Ra.length;ud++)if(Ra[ud]==="<")if(Ra[ud+1]==="!"){ud++,ud=readCommentAndCDATA(Ra,ud);continue}else if(Ra[ud+1]==="?"){if(ud=readPI(Ra,++ud),ud.err)return ud}else break;else if(Ra[ud]==="&"){const Ad=validateAmpersand(Ra,ud);if(Ad==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(Ra,ud));ud=Ad}else if(ld===!0&&!isWhiteSpace(Ra[ud]))return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(Ra,ud));Ra[ud]==="<"&&ud--}}else{if(isWhiteSpace(Ra[ud]))continue;return getErrorObject("InvalidChar","char '"+Ra[ud]+"' is not expected.",getLineNumberForPosition(Ra,ud))}if(od){if(nd.length==1)return getErrorObject("InvalidTag","Unclosed tag '"+nd[0].tagName+"'.",getLineNumberForPosition(Ra,nd[0].tagStartPos));if(nd.length>0)return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(nd.map(ud=>ud.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 nd=qa;for(;qa<Ra.length;qa++)if(Ra[qa]=="?"||Ra[qa]==" "){const od=Ra.substr(nd,qa-nd);if(qa>5&&od==="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 nd=1;for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="<")nd++;else if(Ra[qa]===">"&&(nd--,nd===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 nd="",od="",ld=!1;for(;qa<Ra.length;qa++){if(Ra[qa]===doubleQuote||Ra[qa]===singleQuote)od===""?od=Ra[qa]:od!==Ra[qa]||(od="");else if(Ra[qa]===">"&&od===""){ld=!0;break}nd+=Ra[qa]}return od!==""?!1:{value:nd,index:qa,tagClosed:ld}}const validAttrStrRegxp=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString(Ra,qa){const nd=util$3.getAllMatches(Ra,validAttrStrRegxp),od={};for(let ld=0;ld<nd.length;ld++){if(nd[ld][1].length===0)return getErrorObject("InvalidAttr","Attribute '"+nd[ld][2]+"' has no space in starting.",getPositionFromMatch(nd[ld]));if(nd[ld][3]!==void 0&&nd[ld][4]===void 0)return getErrorObject("InvalidAttr","Attribute '"+nd[ld][2]+"' is without value.",getPositionFromMatch(nd[ld]));if(nd[ld][3]===void 0&&!qa.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute '"+nd[ld][2]+"' is not allowed.",getPositionFromMatch(nd[ld]));const ud=nd[ld][2];if(!validateAttrName(ud))return getErrorObject("InvalidAttr","Attribute '"+ud+"' is an invalid name.",getPositionFromMatch(nd[ld]));if(!od.hasOwnProperty(ud))od[ud]=1;else return getErrorObject("InvalidAttr","Attribute '"+ud+"' is repeated.",getPositionFromMatch(nd[ld]))}return!0}function validateNumberAmpersand(Ra,qa){let nd=/\d/;for(Ra[qa]==="x"&&(qa++,nd=/[\da-fA-F]/);qa<Ra.length;qa++){if(Ra[qa]===";")return qa;if(!Ra[qa].match(nd))break}return-1}function validateAmpersand(Ra,qa){if(qa++,Ra[qa]===";")return-1;if(Ra[qa]==="#")return qa++,validateNumberAmpersand(Ra,qa);let nd=0;for(;qa<Ra.length;qa++,nd++)if(!(Ra[qa].match(/\w/)&&nd<20)){if(Ra[qa]===";")break;return-1}return qa}function getErrorObject(Ra,qa,nd){return{err:{code:Ra,msg:qa,line:nd.line||nd,col:nd.col}}}function validateAttrName(Ra){return util$3.isName(Ra)}function validateTagName(Ra){return util$3.isName(Ra)}function getLineNumberForPosition(Ra,qa){const nd=Ra.substring(0,qa).split(/\r?\n/);return{line:nd.length,col:nd[nd.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,nd){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,nd){qa==="__proto__"&&(qa="#__proto__"),this.child.push({[qa]:nd})}addChild(qa)
`);const qa=new xmlNode("!xml");let nd=qa,od="",ld="";for(let ud=0;ud<Ra.length;ud++)if(Ra[ud]==="<")if(Ra[ud+1]==="/"){const pd=findClosingIndex(Ra,">",ud,"Closing Tag is not closed.");let fd=Ra.substring(ud+2,pd).trim();if(this.options.removeNSPrefix){const Ad=fd.indexOf(":");Ad!==-1&&(fd=fd.substr(Ad+1))}this.options.transformTagName&&(fd=this.options.transformTagName(fd)),nd&&(od=this.saveTextToParentTag(od,nd,ld));const md=ld.substring(ld.lastIndexOf(".")+1);if(fd&&this.options.unpairedTags.indexOf(fd)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${fd}>`);let vd=0;md&&this.options.unpairedTags.indexOf(md)!==-1?(vd=ld.lastIndexOf(".",ld.lastIndexOf(".")-1),this.tagsNodeStack.pop()):vd=ld.lastIndexOf("."),ld=ld.substring(0,vd),nd=this.tagsNodeStack.pop(),od="",ud=pd}else if(Ra[ud+1]==="?"){let pd=readTagExp(Ra,ud,!1,"?>");if(!pd)throw new Error("Pi Tag is not closed.");if(od=this.saveTextToParentTag(od,nd,ld),!(this.options.ignoreDeclaration&&pd.tagName==="?xml"||this.options.ignorePiTags)){const fd=new xmlNode(pd.tagName);fd.add(this.options.textNodeName,""),pd.tagName!==pd.tagExp&&pd.attrExpPresent&&(fd[":@"]=this.buildAttributesMap(pd.tagExp,ld,pd.tagName)),this.addChild(nd,fd,ld)}ud=pd.closeIndex+1}else if(Ra.substr(ud+1,3)==="!--"){const pd=findClosingIndex(Ra,"-->",ud+4,"Comment is not closed.");if(this.options.commentPropName){const fd=Ra.substring(ud+4,pd-2);od=this.saveTextToParentTag(od,nd,ld),nd.add(this.options.commentPropName,[{[this.options.textNodeName]:fd}])}ud=pd}else if(Ra.substr(ud+1,2)==="!D"){const pd=readDocType(Ra,ud);this.docTypeEntities=pd.entities,ud=pd.i}else if(Ra.substr(ud+1,2)==="!["){const pd=findClosingIndex(Ra,"]]>",ud,"CDATA is not closed.")-2,fd=Ra.substring(ud+9,pd);od=this.saveTextToParentTag(od,nd,ld);let md=this.parseTextData(fd,nd.tagname,ld,!0,!1,!0,!0);md==null&&(md=""),this.options.cdataPropName?nd.add(this.options.cdataPropName,[{[this.options.textNodeName]:fd}]):nd.add(this.options.textNodeName,md),ud=pd+2}else{let pd=readTagExp(Ra,ud,this.options.removeNSPrefix),fd=pd.tagName;const md=pd.rawTagName;let vd=pd.tagExp,Ad=pd.attrExpPresent,Nd=pd.closeIndex;this.options.transformTagName&&(fd=this.options.transformTagName(fd)),nd&&od&&nd.tagname!=="!xml"&&(od=this.saveTextToParentTag(od,nd,ld,!1));const Id=nd;if(Id&&this.options.unpairedTags.indexOf(Id.tagname)!==-1&&(nd=this.tagsNodeStack.pop(),ld=ld.substring(0,ld.lastIndexOf("."))),fd!==qa.tagname&&(ld+=ld?"."+fd:fd),this.isItStopNode(this.options.stopNodes,ld,fd)){let Od="";if(vd.length>0&&vd.lastIndexOf("/")===vd.length-1)fd[fd.length-1]==="/"?(fd=fd.substr(0,fd.length-1),ld=ld.substr(0,ld.length-1),vd=fd):vd=vd.substr(0,vd.length-1),ud=pd.closeIndex;else if(this.options.unpairedTags.indexOf(fd)!==-1)ud=pd.closeIndex;else{const Ud=this.readStopNodeData(Ra,md,Nd+1);if(!Ud)throw new Error(`Unexpected end of ${md}`);ud=Ud.i,Od=Ud.tagContent}const Md=new xmlNode(fd);fd!==vd&&Ad&&(Md[":@"]=this.buildAttributesMap(vd,ld,fd)),Od&&(Od=this.parseTextData(Od,fd,ld,!0,Ad,!0,!0)),ld=ld.substr(0,ld.lastIndexOf(".")),Md.add(this.options.textNodeName,Od),this.addChild(nd,Md,ld)}else{if(vd.length>0&&vd.lastIndexOf("/")===vd.length-1){fd[fd.length-1]==="/"?(fd=fd.substr(0,fd.length-1),ld=ld.substr(0,ld.length-1),vd=fd):vd=vd.substr(0,vd.length-1),this.options.transformTagName&&(fd=this.options.transformTagName(fd));const Od=new xmlNode(fd);fd!==vd&&Ad&&(Od[":@"]=this.buildAttributesMap(vd,ld,fd)),this.addChild(nd,Od,ld),ld=ld.substr(0,ld.lastIndexOf("."))}else{const Od=new xmlNode(fd);this.tagsNodeStack.push(nd),fd!==vd&&Ad&&(Od[":@"]=this.buildAttributesMap(vd,ld,fd)),this.addChild(nd,Od,ld),nd=Od}od="",ud=Nd}}else od+=Ra[ud];return qa.child};function addChild(Ra,qa,nd){const od=this.options.updateTag(qa.tagname,nd,qa[":@"]);od===!1||(typeof od=="string"&&(qa.tagname=od),Ra.addChild(qa))}const replaceEntitiesValue$1=function(Ra){if(this.options.processEntities){for(let qa in this.docTypeEntities){const nd=this.docTypeEntities[qa];Ra=Ra.replace(nd.regx,nd.val)}for(let qa in this.lastEntities){const nd=this.lastEntit
`;function toXml(Ra,qa){let nd="";return qa.format&&qa.indentBy.length>0&&(nd=EOL),arrToStr(Ra,qa,"",nd)}function arrToStr(Ra,qa,nd,od){let ld="",ud=!1;for(let dd=0;dd<Ra.length;dd++){const pd=Ra[dd],fd=propName(pd);if(fd===void 0)continue;let md="";if(nd.length===0?md=fd:md=`${nd}.${fd}`,fd===qa.textNodeName){let Od=pd[fd];isStopNode(md,qa)||(Od=qa.tagValueProcessor(fd,Od),Od=replaceEntitiesValue(Od,qa)),ud&&(ld+=od),ld+=Od,ud=!1;continue}else if(fd===qa.cdataPropName){ud&&(ld+=od),ld+=`<![CDATA[${pd[fd][0][qa.textNodeName]}]]>`,ud=!1;continue}else if(fd===qa.commentPropName){ld+=od+`<!--${pd[fd][0][qa.textNodeName]}-->`,ud=!0;continue}else if(fd[0]==="?"){const Od=attr_to_str(pd[":@"],qa),Md=fd==="?xml"?"":od;let Ud=pd[fd][0][qa.textNodeName];Ud=Ud.length!==0?" "+Ud:"",ld+=Md+`<${fd}${Ud}${Od}?>`,ud=!0;continue}let vd=od;vd!==""&&(vd+=qa.indentBy);const Ad=attr_to_str(pd[":@"],qa),Nd=od+`<${fd}${Ad}`,Id=arrToStr(pd[fd],qa,md,vd);qa.unpairedTags.indexOf(fd)!==-1?qa.suppressUnpairedNode?ld+=Nd+">":ld+=Nd+"/>":(!Id||Id.length===0)&&qa.suppressEmptyNode?ld+=Nd+"/>":Id&&Id.endsWith(">")?ld+=Nd+`>${Id}${od}</${fd}>`:(ld+=Nd+">",Id&&od!==""&&(Id.includes("/>")||Id.includes("</"))?ld+=od+qa.indentBy+Id+od:ld+=Id,ld+=`</${fd}>`),ud=!0}return ld}function propName(Ra){const qa=Object.keys(Ra);for(let nd=0;nd<qa.length;nd++){const od=qa[nd];if(Ra.hasOwnProperty(od)&&od!==":@")return od}}function attr_to_str(Ra,qa){let nd="";if(Ra&&!qa.ignoreAttributes)for(let od in Ra){if(!Ra.hasOwnProperty(od))continue;let ld=qa.attributeValueProcessor(od,Ra[od]);ld=replaceEntitiesValue(ld,qa),ld===!0&&qa.suppressBooleanAttributes?nd+=` ${od.substr(qa.attributeNamePrefix.length)}`:nd+=` ${od.substr(qa.attributeNamePrefix.length)}="${ld}"`}return nd}function isStopNode(Ra,qa){Ra=Ra.substr(0,Ra.length-qa.textNodeName.length-1);let nd=Ra.substr(Ra.lastIndexOf(".")+1);for(let od in qa.stopNodes)if(qa.stopNodes[od]===Ra||qa.stopNodes[od]==="*."+nd)return!0;return!1}function replaceEntitiesValue(Ra,qa){if(Ra&&Ra.length>0&&qa.processEntities)for(let nd=0;nd<qa.entities.length;nd++){const od=qa.entities[nd];Ra=Ra.replace(od.regex,od.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,nd){let od="",ld="";const ud=nd.join(".");for(let dd in Ra)if(Object.prototype.hasOwnProperty.call(Ra,dd))if(typeof Ra[dd]>"u")this.isAttribute(dd)&&(ld+="");else if(Ra[dd]===null)this.isAttribute(dd)?ld+="":dd[0]==="?"?ld+=this.indentate(qa)+"<"+dd+"?"+this.tagEndChar:ld+=this.indentate(qa)+"<"+dd+"/"+this.tagEndChar;else if(Ra[dd]instanceof Date)ld+=this.buildTextValNode(Ra[dd],dd,"",qa);else if(typeof Ra[dd]!="object"){const pd=this.isAttribute(dd);if(pd&&!this.ignoreAttributesFn(pd,ud))od+=this.buildAttrPairStr(pd,""+Ra[dd]);else if(!pd)if(dd===this.options.textNodeName){let fd=this.options.tagValueProcessor(dd,""+Ra[dd]);ld+=this.replaceEntitiesValue(fd)}else ld+=this.buildTextValNode(Ra[dd],dd,"",qa)}else if(Array.isArray(Ra[dd])){const pd=Ra[dd].length;let fd="",md="";for(let vd=0;vd<pd;vd++){const Ad=Ra[dd][vd];if(!(typeof Ad>"u"))if(Ad===null)dd[0]==="?"?ld+=this.indentate(qa)+"<"+dd+"?"+this.tagEndChar:ld+=this.indentate(qa)+"<"+dd+"/"+this.tagEndChar;else if(typeof Ad=="object")if(this.options.oneListGroup){const Nd=this.j2x(Ad,qa+1,nd.concat(dd));fd+=Nd.val,this.options.attributesGroupName&&Ad.hasOwnProperty(this.options.attributesGroupName)&&(md+=Nd.attrStr)}else fd+=this.processTextOrObjNode(Ad,dd,qa,nd);else if(this.options.oneListGroup){let Nd=this.options.tagValueProcessor(dd,Ad);Nd=this.replaceEntitiesValue(Nd),fd+=Nd}else fd+=this.buildTextValNode(Ad,dd,"",qa)}this.options.oneListGroup&&(fd=this.buildObjectNode(fd,dd,md,qa)),ld+=fd}else if(this.options.attributesGroupName&&dd===this.options.attributesGroupName){const pd=Object.keys(Ra[dd]),fd=pd.length;for(let md=0;md<fd;md++)od+=this.buildAttrPairStr(pd[md],""+Ra[dd][pd[md]])}else ld+=this.processTextOrObjNode(Ra[dd],dd,qa,nd);return{attrStr:od,val:ld}};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,nd,od){const ld=this.j2x(Ra,nd+1,od.concat(qa));return Ra[this.options.textNodeName]!==void 0&&Object.keys(Ra).length===1?this.buildTextValNode(Ra[this.options.textNodeName],qa,ld.attrStr,nd):this.buildObjectNode(ld.val,qa,ld.attrStr,nd)}Builder.prototype.buildObjectNode=function(Ra,qa,nd,od){if(Ra==="")return qa[0]==="?"?this.indentate(od)+"<"+qa+nd+"?"+this.tagEndChar:this.indentate(od)+"<"+qa+nd+this.closeTag(qa)+this.tagEndChar;{let ld="</"+qa+this.tagEndChar,ud="";return qa[0]==="?"&&(ud="?",ld=""),(nd||nd==="")&&Ra.indexOf("<")===-1?this.indentate(od)+"<"+qa+nd+ud+">"+Ra+ld:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&ud.length===0?this.indentate(od)+`<!--${Ra}-->`+this.newLine:this.indentate(od)+"<"+qa+nd+ud+this.tagEndChar+Ra+this.indentate(od)+ld}};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,nd,od){if(this.options.cdataPropName!==!1&&qa===this.options.cdataPropName)return this.indentate(od)+`<![CDATA[${Ra}]]>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(od)+`<!--${Ra}-->`+this.newLine;if(qa[0]==="?")return this.indentate(od)+"<"+qa+nd+"?"+this.tagEndChar;{let ld=this.options.tagValueProcessor(qa,Ra);return ld=this.replaceEntitiesValue(ld),ld===""?this.indentate(od)+"<"+qa+nd+this.closeTag(qa)+this.tagEndChar:this.indentate(od)+"<"+qa+nd+">"+ld+"</"+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,nd=pathBrowserify.extname,od=/^\s*([^;\s]*)(?:;|\s|$)/,ld=/^text\//i;Ra.charset=ud,Ra.charsets={lookup:ud},Ra.contentType=dd,Ra.extension=pd,Ra.extensions=Object.create(null),Ra.lookup=fd,Ra.types=Object.create(null),md(Ra.extensions,Ra.types);function ud(vd){if(!vd||typeof vd!="string")return!1;var Ad=od.exec(vd),Nd=Ad&&qa[Ad[1].toLowerCase()];return Nd&&Nd.charset?Nd.charset:Ad&&ld.test(Ad[1])?"UTF-8":!1}function dd(vd){if(!vd||typeof vd!="string")return!1;var Ad=vd.indexOf("/")===-1?Ra.lookup(vd):vd;if(!Ad)return!1;if(Ad.indexOf("charset")===-1){var Nd=Ra.charset(Ad);Nd&&(Ad+="; charset="+Nd.toLowerCase())}return Ad}function pd(vd){if(!vd||typeof vd!="string")return!1;var Ad=od.exec(vd),Nd=Ad&&Ra.extensions[Ad[1].toLowerCase()];return!Nd||!Nd.length?!1:Nd[0]}function fd(vd){if(!vd||typeof vd!="string")return!1;var Ad=nd("x."+vd).toLowerCase().substr(1);return Ad&&Ra.types[Ad]||!1}function md(vd,Ad){var Nd=["nginx","apache",void 0,"iana"];Object.keys(qa).forEach(function(Od){var Md=qa[Od],Ud=Md.extensions;if(!(!Ud||!Ud.length)){vd[Od]=Ud;for(var jd=0;jd<Ud.length;jd++){var Ld=Ud[jd];if(Ad[Ld]){var Bd=Nd.indexOf(qa[Ad[Ld]].source),Gd=Nd.indexOf(Md.source);if(Ad[Ld]!=="application/octet-stream"&&(Bd>Gd||Bd===Gd&&Ad[Ld].substr(0,12)==="application/"))continue}Ad[Ld]=Od}}})}})(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,nd)=>{const od=Buffer$4.from(nd);if(od.length===1&&("A"<=nd&&nd<="Z"||"a"<=nd&&nd<="z"||"0"<=nd&&nd<="9"||nd==="_"||nd==="."||nd==="~"||nd==="-"))return qa=qa+nd,qa;for(const ld of od)qa=qa+"%"+ld.toString(16).toUpperCase();return qa},"")}function uriResourceEscape(Ra){return uriEscape(Ra).replace(/%2F/g,"/")}function getScope(Ra,qa,nd="s3"){return`${makeDateShort(qa)}/${Ra}/${nd}/aws4_request`}function isAmazonEndpoint(Ra){return Ra==="s3.amazonaws.com"||Ra==="s3.cn-north-1.amazonaws.com.cn"}function isVirtualHostStyle(Ra,qa,nd,od){return qa==="https:"&&nd.includes(".")?!1:isAmazonEndpoint(Ra)||!od}function isValidIP(Ra){return ipaddr.isValid(Ra)}function isValidEndpoint(Ra){return isValidDomain(Ra)||isValidIP(Ra)}function isValidDomain(Ra){if(!isString(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 nd of qa)if(Ra.includes(nd))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(Ra)?0<=Ra&&Ra<=65535:!1}function isValidBucketName(Ra){return!isString(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(Ra)||Ra.length>1024)}function isNumber(Ra){return typeof Ra=="number"}function isFunction(Ra){return typeof Ra=="function"}function isString(Ra){return typeof Ra=="string"}function isObject(Ra){return typeof Ra=="object"&&Ra!==null}function isReadableStream(Ra){return isObject(Ra)&&isFunction(Ra._read)}function isBoolean(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.slice(5,7)+qa.slice(8,10)}
`)+`
`,od.join(";").toLowerCase(),ld].join(`
`)}function getCredential(Ra,qa,nd,od="s3"){if(!isString(Ra))throw new TypeError('accessKey should be of type "string"');if(!isString(qa))throw new TypeError('region should be of type "string"');if(!isObject(nd))throw new TypeError('requestDate should be of type "object"');return`${Ra}/${getScope(qa,nd,od)}`}function getSignedHeaders(Ra){if(!isObject(Ra))throw new TypeError('request should be of type "object"');const qa=["authorization","content-length","content-type","user-agent"];return Object.keys(Ra).filter(nd=>!qa.includes(nd)).sort()}function getSigningKey(Ra,qa,nd,od="s3"){if(!isObject(Ra))throw new TypeError('date should be of type "object"');if(!isString(qa))throw new TypeError('region should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');const ld=makeDateShort(Ra);return(void 0)("sha256",(void 0)("sha256",(void 0)("sha256",(void 0)("sha256","AWS4"+nd).update(ld).digest()).update(qa).digest()).update(od).digest()).update("aws4_request").digest()}function getStringToSign(Ra,qa,nd,od="s3"){if(!isString(Ra))throw new TypeError('canonicalRequest should be of type "string"');if(!isObject(qa))throw new TypeError('requestDate should be of type "object"');if(!isString(nd))throw new TypeError('region should be of type "string"');const ld=(void 0)("sha256").update(Ra).digest("hex"),ud=getScope(nd,qa,od);return[signV4Algorithm,makeDateLong(qa),ud,ld].join(`
`)}function postPresignSignatureV4(Ra,qa,nd,od){if(!isString(Ra))throw new TypeError('region should be of type "string"');if(!isObject(qa))throw new TypeError('date should be of type "object"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(od))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(qa,Ra,nd)).update(od).digest("hex").toLowerCase()}function signV4(Ra,qa,nd,od,ld,ud,dd="s3"){if(!isObject(Ra))throw new TypeError('request should be of type "object"');if(!isString(qa))throw new TypeError('accessKey should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(od))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for signing");if(!nd)throw new SecretKeyRequiredError("secretKey is required for signing");const pd=getSignedHeaders(Ra.headers),fd=getCanonicalRequest(Ra.method,Ra.path,Ra.headers,pd,ud),md=dd||"s3",vd=getStringToSign(fd,ld,od,md),Ad=getSigningKey(ld,od,nd,md),Nd=getCredential(qa,od,ld,md),Id=(void 0)("sha256",Ad).update(vd).digest("hex").toLowerCase();return`${signV4Algorithm} Credential=${Nd}, SignedHeaders=${pd.join(";").toLowerCase()}, Signature=${Id}`}function presignSignatureV4(Ra,qa,nd,od,ld,ud,dd){if(!isObject(Ra))throw new TypeError('request should be of type "object"');if(!isString(qa))throw new TypeError('accessKey should be of type "string"');if(!isString(nd))throw new TypeError('secretKey should be of type "string"');if(!isString(ld))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!nd)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber(dd))throw new TypeError('expires should be of type "number"');if(dd<1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if(dd>604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const pd=makeDateLong(ud),fd=getSignedHeaders(Ra.headers),md=getCredential(qa,ld,ud),vd="UNSIGNED-PAYLOAD",Ad=[];Ad.push(`X-Amz-Algorithm=${signV4Algorithm}`),Ad.push(`X-Amz-Credential=${uriEscape(md)}`),Ad.push(`X-Amz-Date=${pd}`),Ad.push(`X-Amz-Expires=${dd}`),Ad.push(`X-Amz-SignedHeaders=${uriEscape(fd.join(";").toLowerCase())}`),od&&Ad.push(`X-Amz-Security-Token=${uriEscape(od)}`);const Nd=Ra.path.split("?")[0];let Id=Ra.path.split("?")[1];Id?Id=Id+"&"+Ad.join("&"):Id=Ad.join("&");const Od=Nd+"?"+Id,Md=getCanonicalRequest(Ra.method,Od,Ra.headers,fd,vd),Ud=getStringToSign(Md,ud,ld),Ld=(void 0)("sha256",getSigningKey(ud,ld,nd)).update(Ud).digest("hex").toLowerCase();return Ra.protocol+"//"+Ra.headers.host+Od+`&X-Amz-Signature=${Ld}`}async function readAsBuffer(Ra){return new Promise((qa,nd)=>{const od=[];Ra.on("data",ld=>od.push(ld)).on("error",ld=>nd(ld)).on("end",()=>qa(Buffer$4.concat(od)))})}async function readAsString(Ra){return(await readAsBuffer(Ra)).toString()}async function drainResponse(Ra){return new Promise((qa,nd)=>{Ra.on("data",()=>{}).on("error",od=>nd(od)).on("end",()=>qa())})}function parseBucketRegion(Ra){return parseXml(Ra).LocationConstraint}const fxp=new fxp$2.XMLParser;function parseError(Ra,qa){let nd={};const od=fxp.parse(Ra);od.Error&&(nd=od.Error);const ld=new S3Error;return Object.entries(nd).forEach(([ud,dd])=>{ld[ud.toLowerCase()]=dd}),Object.entries(qa).forEach(([ud,dd])=>{ld[ud]=dd}),ld}async function parseResponseError(Ra){const qa=Ra.statusCode;let nd,od;qa===301?(nd="MovedPermanently",od="Moved Permanently"):qa===307?(nd="TemporaryRedirect",od="Are you using the correct endpoint URL?"):qa===403?(nd="AccessDenied",od="Valid and authorized credentials required"):qa===404?(nd="NotFound",od="Not Found"):qa===405||qa===501?(nd="MethodNotAllowed",od="Method Not Allowed"):(nd="UnknownError",od=`${qa}`);const ld={};ld.amzRequestid=Ra.headers["x-amz-request-id"],ld.amzId2=Ra.headers["x-amz-id-2"],ld.amzBucketRegion=Ra.headers["x-amz-bucket-region"];const ud=await r
`)}),ld.write(`
`)};if(ld.write(`REQUEST: ${qa.method} ${qa.path}
`),ud(qa.headers),nd&&(this.logStream.write(`RESPONSE: ${nd.statusCode}
`),ud(nd.headers)),od){ld.write(`ERROR BODY:
`);const dd=JSON.stringify(od,null," ");ld.write(`${dd}
`)}}traceOn(qa){qa||(qa=define_process_default$2.stdout),this.logStream=qa}traceOff(){this.logStream=void 0}async makeRequestAsync(qa,nd="",od=[200],ld=""){if(!isObject(qa))throw new TypeError('options should be of type "object"');if(!isString(nd)&&!isObject(nd))throw new TypeError('payload should be of type "string" or "Buffer"');if(od.forEach(dd=>{if(!isNumber(dd))throw new TypeError('statusCode should be of type "number"')}),!isString(ld))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"]=nd.length.toString());const ud=this.enableSHA256?toSha256(nd):"";return this.makeRequestStreamAsync(qa,nd,ud,od,ld)}async makeRequestAsyncOmit(qa,nd="",od=[200],ld=""){const ud=await this.makeRequestAsync(qa,nd,od,ld);return await drainResponse(ud),ud}async makeRequestStreamAsync(qa,nd,od,ld,ud){if(!isObject(qa))throw new TypeError('options should be of type "object"');if(!(Buffer$4.isBuffer(nd)||typeof nd=="string"||isReadableStream(nd)))throw new InvalidArgumentError(`stream should be a Buffer, string or readable Stream, got ${typeof nd} instead`);if(!isString(od))throw new TypeError('sha256sum should be of type "string"');if(ld.forEach(fd=>{if(!isNumber(fd))throw new TypeError('statusCode should be of type "number"')}),!isString(ud))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&od.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&od.length!==64)throw new InvalidArgumentError(`Invalid sha256sum : ${od}`);await this.checkAndRefreshCreds(),ud=ud||await this.getBucketRegionAsync(qa.bucketName);const dd=this.getRequestOptions({...qa,region:ud});if(!this.anonymous){this.enableSHA256||(od="UNSIGNED-PAYLOAD");const fd=new Date;dd.headers["x-amz-date"]=makeDateLong(fd),dd.headers["x-amz-content-sha256"]=od,this.sessionToken&&(dd.headers["x-amz-security-token"]=this.sessionToken),dd.headers.authorization=signV4(dd,this.accessKey,this.secretKey,ud,fd,od)}const pd=await request$1(this.transport,dd,nd);if(!pd.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!ld.includes(pd.statusCode)){delete this.regionMap[qa.bucketName];const fd=await parseResponseError(pd);throw this.logHTTP(dd,pd,fd),fd}return this.logHTTP(dd,pd),pd}async getBucketRegionAsync(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError(`Invalid bucket name : ${qa}`);if(this.region)return this.region;const nd=this.regionMap[qa];if(nd)return nd;const od=async md=>{const vd=await readAsString(md),Ad=parseBucketRegion(vd)||DEFAULT_REGION;return this.regionMap[qa]=Ad,Ad},ld="GET",ud="location",dd=this.pathStyle&&!isBrowser_1;let pd;try{const md=await this.makeRequestAsync({method:ld,bucketName:qa,query:ud,pathStyle:dd},"",[200],DEFAULT_REGION);return od(md)}catch(md){if(md.name!=="AuthorizationHeaderMalformed"||(pd=md.Region,!pd))throw md}const fd=await this.makeRequestAsync({method:ld,bucketName:qa,query:ud,pathStyle:dd},"",[200],pd);return await od(fd)}makeRequest(qa,nd="",od=[200],ld="",ud,dd){let pd;ud?pd=this.makeRequestAsync(qa,nd,od,ld):pd=this.makeRequestAsyncOmit(qa,nd,od,ld),pd.then(fd=>dd(null,fd),fd=>{dd(fd)})}makeRequestStream(qa,nd,od,ld,ud,dd,pd){(async()=>{const md=await this.makeRequestStreamAsync(qa,nd,od,ld,ud);return dd||await drainResponse(md),md})().then(md=>pd(null,md),md=>pd(md))}getBucketRegion(qa,nd){return this.getBucketRegionAsync(qa).then(od=>nd(null,od),od=>nd(od))}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,nd,od={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(nd))throw new InvalidObjectNameError(`Invalid object name: ${nd}`);if(!isObject(od))throw new InvalidArgumentError('statOpts should be of type "object"');const ld=queryString.string
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,nd=Object.prototype.propertyIsEnumerable;function od(ud){if(ud==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ud)}function ld(){try{if(!Object.assign)return!1;var ud=new String("abc");if(ud[5]="de",Object.getOwnPropertyNames(ud)[0]==="5")return!1;for(var dd={},pd=0;pd<10;pd++)dd["_"+String.fromCharCode(pd)]=pd;var fd=Object.getOwnPropertyNames(dd).map(function(vd){return dd[vd]});if(fd.join("")!=="0123456789")return!1;var md={};return"abcdefghijklmnopqrst".split("").forEach(function(vd){md[vd]=vd}),Object.keys(Object.assign({},md)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=ld()?Object.assign:function(ud,dd){for(var pd,fd=od(ud),md,vd=1;vd<arguments.length;vd++){pd=Object(arguments[vd]);for(var Ad in pd)qa.call(pd,Ad)&&(fd[Ad]=pd[Ad]);if(Ra){md=Ra(pd);for(var Nd=0;Nd<md.length;Nd++)nd.call(pd,md[Nd])&&(fd[md[Nd]]=pd[md[Nd]])}}return fd},objectAssign}var ajax={},hasRequiredAjax;function requireAjax(){return hasRequiredAjax||(hasRequiredAjax=1,function(Ra){Ra.__esModule=!0,Ra.default=qa;function qa(nd,od){return od===void 0&&(od={}),new Promise(function(ld,ud){var dd=od,pd=dd.async,fd=pd===void 0?!0:pd,md=dd.data,vd=md===void 0?null:md,Ad=dd.headers,Nd=Ad===void 0?{}:Ad,Id=dd.method,Od=Id===void 0?"get":Id,Md=dd.timeout,Ud=Md===void 0?0:Md,jd=dd.onprogress,Ld=new XMLHttpRequest,Bd;Ud&&(Bd=setTimeout(function(){ud(new Error("the request timeout "+Ud+"ms"))},Ud)),Ld.onerror=function(){ud(new Error("unknown error"))},Ld.upload&&(Ld.upload.onprogress=jd),Ld.onreadystatechange=function(){if(Ld.readyState===4)if(Ud&&clearTimeout(Bd),Ld.status>=200&&Ld.status<300)ld(Ld.response,Ld);else{var Gd=new Error("the request is error");ud(Gd)}},Ld.open(Od,nd,fd),Object.keys(Nd).forEach(function(Gd){Ld.setRequestHeader(Gd,Nd[Gd])});try{Ld.send(vd)}catch(Gd){ud(Gd)}})}}(ajax)),ajax}var utils={},md5={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,function(){var Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qa={rotl:function(nd,od){return nd<<od|nd>>>32-od},rotr:function(nd,od){return nd<<32-od|nd>>>od},endian:function(nd){if(nd.constructor==Number)return qa.rotl(nd,8)&16711935|qa.rotl(nd,24)&4278255360;for(var od=0;od<nd.length;od++)nd[od]=qa.endian(nd[od]);return nd},randomBytes:function(nd){for(var od=[];nd>0;nd--)od.push(Math.floor(Math.random()*256));return od},bytesToWords:function(nd){for(var od=[],ld=0,ud=0;ld<nd.length;ld++,ud+=8)od[ud>>>5]|=nd[ld]<<24-ud%32;return od},wordsToBytes:function(nd){for(var od=[],ld=0;ld<nd.length*32;ld+=8)od.push(nd[ld>>>5]>>>24-ld%32&255);return od},bytesToHex:function(nd){for(var od=[],ld=0;ld<nd.length;ld++)od.push((nd[ld]>>>4).toString(16)),od.push((nd[ld]&15).toString(16));return od.join("")},hexToBytes:function(nd){for(var od=[],ld=0;ld<nd.length;ld+=2)od.push(parseInt(nd.substr(ld,2),16));return od},bytesToBase64:function(nd){for(var od=[],ld=0;ld<nd.length;ld+=3)for(var ud=nd[ld]<<16|nd[ld+1]<<8|nd[ld+2],dd=0;dd<4;dd++)ld*8+dd*6<=nd.length*8?od.push(Ra.charAt(ud>>>6*(3-dd)&63)):od.push("=");return od.join("")},base64ToBytes:function(nd){nd=nd.replace(/[^A-Z0-9+\/]/ig,"");for(var od=[],ld=0,ud=0;ld<nd.length;ud=++ld%4)ud!=0&&od.push((Ra.indexOf(nd.charAt(ld-1))&Math.pow(2,-2*ud+8)-1)<<ud*2|Ra.indexOf(nd.charAt(ld))>>>6-ud*2);return od}};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 nd=[],od=0;od<qa.length;od++)nd.push(qa.charCodeAt(od)&255);return nd},bytesToString:function(qa){fo
* 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(nd){return nd!=null&&(Ra(nd)||qa(nd)||!!nd._isBuffer)};function Ra(nd){return!!nd.constructor&&typeof nd.constructor.isBuffer=="function"&&nd.constructor.isBuffer(nd)}function qa(nd){return typeof nd.readFloatLE=="function"&&typeof nd.slice=="function"&&Ra(nd.slice(0,0))}return isBuffer_1}var hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(){var Ra=requireCrypt(),qa=requireCharenc().utf8,nd=requireIsBuffer(),od=requireCharenc().bin,ld=function(ud,dd){ud.constructor==String?dd&&dd.encoding==="binary"?ud=od.stringToBytes(ud):ud=qa.stringToBytes(ud):nd(ud)?ud=Array.prototype.slice.call(ud,0):!Array.isArray(ud)&&ud.constructor!==Uint8Array&&(ud=ud.toString());for(var pd=Ra.bytesToWords(ud),fd=ud.length*8,md=1732584193,vd=-271733879,Ad=-1732584194,Nd=271733878,Id=0;Id<pd.length;Id++)pd[Id]=(pd[Id]<<8|pd[Id]>>>24)&16711935|(pd[Id]<<24|pd[Id]>>>8)&4278255360;pd[fd>>>5]|=128<<fd%32,pd[(fd+64>>>9<<4)+14]=fd;for(var Od=ld._ff,Md=ld._gg,Ud=ld._hh,jd=ld._ii,Id=0;Id<pd.length;Id+=16){var Ld=md,Bd=vd,Gd=Ad,qd=Nd;md=Od(md,vd,Ad,Nd,pd[Id+0],7,-680876936),Nd=Od(Nd,md,vd,Ad,pd[Id+1],12,-389564586),Ad=Od(Ad,Nd,md,vd,pd[Id+2],17,606105819),vd=Od(vd,Ad,Nd,md,pd[Id+3],22,-1044525330),md=Od(md,vd,Ad,Nd,pd[Id+4],7,-176418897),Nd=Od(Nd,md,vd,Ad,pd[Id+5],12,1200080426),Ad=Od(Ad,Nd,md,vd,pd[Id+6],17,-1473231341),vd=Od(vd,Ad,Nd,md,pd[Id+7],22,-45705983),md=Od(md,vd,Ad,Nd,pd[Id+8],7,1770035416),Nd=Od(Nd,md,vd,Ad,pd[Id+9],12,-1958414417),Ad=Od(Ad,Nd,md,vd,pd[Id+10],17,-42063),vd=Od(vd,Ad,Nd,md,pd[Id+11],22,-1990404162),md=Od(md,vd,Ad,Nd,pd[Id+12],7,1804603682),Nd=Od(Nd,md,vd,Ad,pd[Id+13],12,-40341101),Ad=Od(Ad,Nd,md,vd,pd[Id+14],17,-1502002290),vd=Od(vd,Ad,Nd,md,pd[Id+15],22,1236535329),md=Md(md,vd,Ad,Nd,pd[Id+1],5,-165796510),Nd=Md(Nd,md,vd,Ad,pd[Id+6],9,-1069501632),Ad=Md(Ad,Nd,md,vd,pd[Id+11],14,643717713),vd=Md(vd,Ad,Nd,md,pd[Id+0],20,-373897302),md=Md(md,vd,Ad,Nd,pd[Id+5],5,-701558691),Nd=Md(Nd,md,vd,Ad,pd[Id+10],9,38016083),Ad=Md(Ad,Nd,md,vd,pd[Id+15],14,-660478335),vd=Md(vd,Ad,Nd,md,pd[Id+4],20,-405537848),md=Md(md,vd,Ad,Nd,pd[Id+9],5,568446438),Nd=Md(Nd,md,vd,Ad,pd[Id+14],9,-1019803690),Ad=Md(Ad,Nd,md,vd,pd[Id+3],14,-187363961),vd=Md(vd,Ad,Nd,md,pd[Id+8],20,1163531501),md=Md(md,vd,Ad,Nd,pd[Id+13],5,-1444681467),Nd=Md(Nd,md,vd,Ad,pd[Id+2],9,-51403784),Ad=Md(Ad,Nd,md,vd,pd[Id+7],14,1735328473),vd=Md(vd,Ad,Nd,md,pd[Id+12],20,-1926607734),md=Ud(md,vd,Ad,Nd,pd[Id+5],4,-378558),Nd=Ud(Nd,md,vd,Ad,pd[Id+8],11,-2022574463),Ad=Ud(Ad,Nd,md,vd,pd[Id+11],16,1839030562),vd=Ud(vd,Ad,Nd,md,pd[Id+14],23,-35309556),md=Ud(md,vd,Ad,Nd,pd[Id+1],4,-1530992060),Nd=Ud(Nd,md,vd,Ad,pd[Id+4],11,1272893353),Ad=Ud(Ad,Nd,md,vd,pd[Id+7],16,-155497632),vd=Ud(vd,Ad,Nd,md,pd[Id+10],23,-1094730640),md=Ud(md,vd,Ad,Nd,pd[Id+13],4,681279174),Nd=Ud(Nd,md,vd,Ad,pd[Id+0],11,-358537222),Ad=Ud(Ad,Nd,md,vd,pd[Id+3],16,-722521979),vd=Ud(vd,Ad,Nd,md,pd[Id+6],23,76029189),md=Ud(md,vd,Ad,Nd,pd[Id+9],4,-640364487),Nd=Ud(Nd,md,vd,Ad,pd[Id+12],11,-421815835),Ad=Ud(Ad,Nd,md,vd,pd[Id+15],16,530742520),vd=Ud(vd,Ad,Nd,md,pd[Id+2],23,-995338651),md=jd(md,vd,Ad,Nd,pd[Id+0],6,-198630844),Nd=jd(Nd,md,vd,Ad,pd[Id+7],10,1126891415),Ad=jd(Ad,Nd,md,vd,pd[Id+14],15,-1416354905),vd=jd(vd,Ad,Nd,md,pd[Id+5],21,-57434055),md=jd(md,vd,Ad,Nd,pd[Id+12],6,1700485571),Nd=jd(Nd,md,vd,Ad,pd[Id+3],10,-1894986606),Ad=jd(Ad,Nd,md,vd,pd[Id+10],15,-1051523),vd=jd(vd,Ad,Nd,md,pd[Id+1],21,-2054922799),md=jd(md,vd,Ad,Nd,pd[Id+8],6,1873313359),Nd=jd(Nd,md,vd,Ad,pd[Id+15],10,-30611744),Ad=jd(Ad,Nd,md,vd,pd[Id+6],15,-1560198380),vd=jd(vd,Ad,Nd,md,pd[Id+13],21,1309151649),md=jd(md,vd,Ad,Nd,pd[Id+4],6,-145523070),Nd=jd(Nd,md,vd,Ad,pd[Id+11],10,-1120210379),Ad=jd(Ad,Nd,md,vd,pd[Id+2],15,718787259),vd=jd(vd,Ad,Nd,md,pd[Id+9],21,-343485551),md=md+Ld>>>0,vd=vd+Bd>>>0,Ad=Ad+Gd>>>0,Nd=Nd+qd>>>0}return Ra.endian([md,vd,Ad,Nd])};ld._ff=function(ud,dd,pd,fd,md,vd,Ad){var Nd=ud+(dd&pd|~dd&fd)+(md>>>0)+Ad;return(Nd<<vd|Nd>>>32-vd)+dd},ld._gg=function(ud,d
*!
*! 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(nd,od){var ld,ud=new Uint8Array(this);od===void 0&&(od=ud.length);var dd=new ArrayBuffer(od-nd),pd=new Uint8Array(dd);for(ld=0;ld<pd.length;ld++)pd[ld]=ud[ld+nd];return dd})})(),function(nd){function od(){}od.prototype.processBlock=function(vd){var Ad=this.current[0],Nd=this.current[1],Id=this.current[2],Od=this.current[3],Md=this.current[4],Ud=[vd[0]<<24|vd[1]<<16|vd[2]<<8|vd[3],vd[4]<<24|vd[5]<<16|vd[6]<<8|vd[7],vd[8]<<24|vd[9]<<16|vd[10]<<8|vd[11],vd[12]<<24|vd[13]<<16|vd[14]<<8|vd[15],vd[16]<<24|vd[17]<<16|vd[18]<<8|vd[19],vd[20]<<24|vd[21]<<16|vd[22]<<8|vd[23],vd[24]<<24|vd[25]<<16|vd[26]<<8|vd[27],vd[28]<<24|vd[29]<<16|vd[30]<<8|vd[31],vd[32]<<24|vd[33]<<16|vd[34]<<8|vd[35],vd[36]<<24|vd[37]<<16|vd[38]<<8|vd[39],vd[40]<<24|vd[41]<<16|vd[42]<<8|vd[43],vd[44]<<24|vd[45]<<16|vd[46]<<8|vd[47],vd[48]<<24|vd[49]<<16|vd[50]<<8|vd[51],vd[52]<<24|vd[53]<<16|vd[54]<<8|vd[55],vd[56]<<24|vd[57]<<16|vd[58]<<8|vd[59],vd[60]<<24|vd[61]<<16|vd[62]<<8|vd[63]],jd,Ld;for(Ld=16;Ld<80;Ld++)Ud.push((Ud[Ld-3]^Ud[Ld-8]^Ud[Ld-14]^Ud[Ld-16])<<1|(Ud[Ld-3]^Ud[Ld-8]^Ud[Ld-14]^Ud[Ld-16])>>>31);for(Ld=0;Ld<80;Ld++)jd=(Ad<<5|Ad>>>27)+Md+Ud[Ld],Ld<20?jd+=(Nd&Id|~Nd&Od)+1518500249|0:Ld<40?jd+=(Nd^Id^Od)+1859775393|0:Ld<60?jd+=(Nd&Id|Nd&Od|Id&Od)+2400959708|0:jd+=(Nd^Id^Od)+3395469782|0,Md=Od,Od=Id,Id=Nd<<30|Nd>>>2,Nd=Ad,Ad=jd;this.current[0]+=Ad,this.current[1]+=Nd,this.current[2]+=Id,this.current[3]+=Od,this.current[4]+=Md,this.currentLen+=64},od.prototype.doPadding=function(){var vd=(this.inLen+this.currentLen)*8,Ad=0,Nd=vd&4294967295,Id=this.inLen<=55?55-this.inLen:119-this.inLen,Od=new Uint8Array(new ArrayBuffer(Id+1+8));return Od[0]=128,Od[Od.length-1]=Nd&255,Od[Od.length-2]=Nd>>>8&255,Od[Od.length-3]=Nd>>>16&255,Od[Od.length-4]=Nd>>>24&255,Od[Od.length-5]=Ad&255,Od[Od.length-6]=Ad>>>8&255,Od[Od.length-7]=Ad>>>16&255,Od[Od.length-8]=Ad>>>24&255,Od},od.prototype.getDigest=function(){var vd=new Uint8Array(new ArrayBuffer(20));return vd[3]=this.current[0]&255,vd[2]=this.current[0]>>>8&255,vd[1]=this.current[0]>>>16&255,vd[0]=this.current[0]>>>24&255,vd[7]=this.current[1]&255,vd[6]=this.current[1]>>>8&255,vd[5]=this.current[1]>>>16&255,vd[4]=this.current[1]>>>24&255,vd[11]=this.current[2]&255,vd[10]=this.current[2]>>>8&255,vd[9]=this.current[2]>>>16&255,vd[8]=this.current[2]>>>24&255,vd[15]=this.current[3]&255,vd[14]=this.current[3]>>>8&255,vd[13]=this.current[3]>>>16&255,vd[12]=this.current[3]>>>24&255,vd[19]=this.current[4]&255,vd[18]=this.current[4]>>>8&255,vd[17]=this.current[4]>>>16&255,vd[16]=this.current[4]>>>24&255,vd.buffer},od.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},od.prototype.blockLen=64,od.prototype.digestLen=20;var ld=function(vd){var Ad=new ArrayBuffer(vd.length),Nd=new Uint8Array(Ad),Id;for(Id=0;Id<vd.length;Id++)Nd[Id]=vd.charCodeAt(Id);return Nd},ud=function(vd){var Ad=new ArrayBuffer(1),Nd=new Uint8Array(Ad);return Nd[0]=vd,Nd},dd=function(vd){if(vd.constructor===Uint8Array)return vd;if(vd.constructor===ArrayBuffer)return new Uint8Array(vd);if(vd.constructor===String)return ld(vd);if(vd.constructor===Number){if(vd>255)throw"For more than one byte, use an array buffer";if(vd<0)throw"Input value must be positive";return ud(vd)}else throw"Unsupported type"},pd=function(vd){var Ad=function(Od){for(var Md=Od.length,Ud=0;Md>0;){var jd=this.blockLen-this.inLen;jd>Md&&(jd=Md);var Ld=Od.subarray(Ud,Ud+jd);this.inbuf.set(Ld,this.inLen),Ud+=jd,Md-=jd,this.inLen+=jd,this.inLen===this.blockLen&&(this.processBlock(this.inbuf),this.inLen=0)}},Nd=function(){var Od=this.doPadding();this.update(Od);var Md=this.getDigest();return this.reset(),Md},Id=function(){if(!vd)throw"Unsupported algorithm: "+vd.toString();vd.prototype.
`)}),Od}function Ad(Id,Od,Md){Id===void 0&&(Id=""),Od===void 0&&(Od="");var Ud="";Id&&(Ud+="/"+Id),Od&&(Od.charAt(0)!=="/"&&(Ud+="/"),Ud+=Od);var jd=""+Ud,Ld="?";if(Md){var Bd=function(zd,Xd){return zd[0]>Xd[0]?1:zd[0]<Xd[0]?-1:0},Gd=function(zd){jd+=Ld+zd,Md[zd]&&(jd+="="+Md[zd]),Ld="&"};Object.keys(Md).sort(Bd).forEach(Gd)}return jd}function Nd(Id){Id===void 0&&(Id={});var Od=Id,Md=Od.type,Ud=Md===void 0?"header":Md,jd=Od.verb,Ld=jd===void 0?"":jd,Bd=Od.contentMd5,Gd=Bd===void 0?"":Bd,qd=Od.expires,zd=qd===void 0?ud()+3600:qd,Xd=Od.bucket,gf=Od.objectName,Yd=Od.accessKeySecret,Zd=Od.headers,df=Zd===void 0?{}:Zd,Ef=Od.subResource,_f=df["x-oss-date"]||"",xf=df["Content-Type"]||"",vf=[Ld,Gd,xf];Ud==="header"?vf.push(_f):vf.push(zd);var Af=vd(df),Df=Ad(Xd,gf,Ef);vf.push(""+Af+Df);var jf=vf.join(`
`),Jf=new od.default.HMAC_SHA1;Jf.setKey(Yd),Jf.update(jf);var eh=new Uint8Array(Jf.finalize()),th=nd.default.fromByteArray(eh);return th}return utils}(function(Ra){var qa=interopRequireDefaultExports;Ra.__esModule=!0,Ra.default=void 0;var nd=qa(requireObjectAssign()),od=qa(requireAjax()),ld=requireUtils(),ud=function(){function dd(fd){fd===void 0&&(fd={}),(0,ld.assertOptions)(fd),this.opts=(0,nd.default)({region:"oss-cn-hangzhou",internal:!1,cname:!1,secure:!1,timeout:6e4},fd);var md=this.opts,vd=md.bucket,Ad=md.region,Nd=md.endpoint,Id=md.internal;if(this.host="",Nd)this.host=Nd;else{var Od=vd;Id&&(Od+="-internal"),Od+="."+Ad+".aliyuncs.com",this.host=Od}}var pd=dd.prototype;return pd.put=function(md,vd,Ad){var Nd=this;return Ad===void 0&&(Ad={}),new Promise(function(Id,Od){(0,ld.blobToBuffer)(vd).then(function(Md){var Ud=Nd.opts,jd=Ud.accessKeyId,Ld=Ud.accessKeySecret,Bd=Ud.stsToken,Gd=Ud.bucket,qd="PUT",zd=(0,ld.getContentMd5)(Md),Xd=vd.type,gf={"Content-Md5":zd,"Content-Type":Xd,"x-oss-date":new Date().toGMTString()};Bd&&(gf["x-oss-security-token"]=Bd);var Yd=(0,ld.getSignature)({verb:qd,contentMd5:zd,headers:gf,bucket:Gd,objectName:md,accessKeyId:jd,accessKeySecret:Ld});gf.Authorization="OSS "+jd+":"+Yd;var Zd=Nd.opts.secure?"https":"http",df=Zd+"://"+Nd.host+"/"+md;return(0,od.default)(df,{method:qd,headers:gf,data:vd,timeout:Nd.opts.timeout,onprogress:Ad.onprogress})}).then(Id).catch(Od)})},pd.putSymlink=function(md,vd){var Ad=this.opts,Nd=Ad.accessKeyId,Id=Ad.accessKeySecret,Od=Ad.stsToken,Md=Ad.bucket,Ud="PUT",jd={"x-oss-date":new Date().toGMTString(),"x-oss-symlink-target":encodeURI(vd)};Od&&(jd["x-oss-security-token"]=Od);var Ld=(0,ld.getSignature)({verb:Ud,headers:jd,bucket:Md,objectName:md,accessKeyId:Nd,accessKeySecret:Id,subResource:{symlink:""}});jd.Authorization="OSS "+Nd+":"+Ld;var Bd=this.opts.secure?"https":"http",Gd=Bd+"://"+this.host+"/"+md+"?symlink";return(0,od.default)(Gd,{method:Ud,headers:jd,timeout:this.opts.timeout})},pd.signatureUrl=function(md,vd){vd===void 0&&(vd={});var Ad=vd,Nd=Ad.expires,Id=Nd===void 0?1800:Nd,Od=Ad.method,Md=Ad.process,Ud=Ad.response,jd=this.opts,Ld=jd.accessKeyId,Bd=jd.accessKeySecret,Gd=jd.stsToken,qd=jd.bucket,zd={},Xd={};if(Md){var gf="x-oss-process";Xd[gf]=Md}Ud&&Object.keys(Ud).forEach(function(xf){var vf="response-"+xf.toLowerCase();Xd[vf]=Ud[xf]}),Object.keys(vd).forEach(function(xf){var vf=xf.toLowerCase(),Af=vd[xf];vf.indexOf("x-oss-")===0?zd[vf]=Af:vf.indexOf("content-md5")===0||vf.indexOf("content-type")===0?zd[xf]=Af:vf!=="expires"&&vf!=="response"&&vf!=="process"&&vf!=="method"&&(Xd[vf]=Af)});var Yd=vd["security-token"]||Gd;Yd&&(Xd["security-token"]=Yd);var Zd=(0,ld.unix)()+Id,df=(0,ld.getSignature)({type:"url",verb:Od||"GET",accessKeyId:Ld,accessKeySecret:Bd,bucket:qd,objectName:md,headers:zd,subResource:Xd,expires:Zd}),Ef=this.opts.secure?"https":"http",_f=Ef+"://"+this.host+"/"+md;return _f+="?OSSAccessKeyId="+Ld,_f+="&Expires="+Zd,_f+="&Signature="+encodeURIComponent(df),Object.keys(Xd).forEach(function(xf){_f+="&"+xf+"="+encodeURIComponent(Xd[xf])}),_f},dd}();Ra.default=ud})(TinyOSS);var lib=TinyOSS.default;const OSS=getDefaultExportFromCjs(lib),byteToHex=[];for(let Ra=0;Ra<256;++Ra)byteToHex.push((Ra+256).toString(16).slice(1));function unsafeStringify(Ra,qa=0){return(byteToHex[Ra[qa+0]]+byteToHex[Ra[qa+1]]+byteToHex[Ra[qa+2]]+byteToHex[Ra[qa+3]]+"-"+byteToHex[Ra[qa+4]]+byteToHex[Ra[qa+5]]+"-"+byteToHex[Ra[qa+6]]+byteToHex[Ra[qa+7]]+"-"+byteToHex[Ra[qa+8]]+byteToHex[Ra[qa+9]]+"-"+byteToHex[Ra[qa+10]]+byteToHex[Ra[qa+11]]+byteToHex[Ra[qa+12]]+byteToHex[Ra[qa+13]]+byteToHex[Ra[qa+14]]+byteToHex[Ra[qa+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={rand
async (CUSTOM_ARG) => {
${localStorage.getItem("formCustomConfig")}
}
`;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer:Buffer$1,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 nd=localStorage.getItem("imgHost");switch(nd||localStorage.setItem("imgHost","default"),nd){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"mp":return mpFileUpload(qa);case"r2":return r2Upload(qa);case"formCustom":return formCustomUpload(Ra,qa);default:return ghFileUpload(Ra,qa.name)}}const fileApi={fileUpload},_hoisted_1={class:"container-main flex-1"},_hoisted_2={class:"container-main-section h-full flex border-1"},_hoisted_3=["span"],_hoisted_4={class:"preview border shadow-xl"},_hoisted_5=["innerHTML"],_hoisted_6={key:0,class:"loading-mask"},_sfc_main$1=defineComponent({__name:"CodemirrorEditor",setup(Ra){const qa=useStore(),nd=useDisplayStore(),{isDark:od,output:ld,editor:ud}=storeToRefs(qa),{isShowCssEditor:dd}=storeToRefs(nd),{editorRefresh:pd,exportEditorContent2HTML:fd,exportEditorContent2MD:md,formatContent:vd,importMarkdownContent:Ad,resetStyleConfirm:Nd}=qa,{toggleShowInsertFormDialog:Id,toggleShowUploadImgDialog:Od}=nd,Md=ref$1(!1),Ud=ref$1(),jd=ref$1(null);function Ld(){const Df=eh=>{let th,Uf;clearTimeout(Ud.value),eh==="preview"?(th=jd.value,Uf=document.querySelector(".CodeMirror-scroll"),ud.value.off("scroll",jf),Ud.value=setTimeout(()=>{ud.value.on("scroll",jf)},300)):(th=document.querySelector(".CodeMirror-scroll"),Uf=jd.value,Uf.removeEventListener("scroll",Jf,!1),Ud.value=setTimeout(()=>{Uf.addEventListener("scroll",Jf,!1)},300));const Wf=th.scrollTop/(th.scrollHeight-th.offsetHeight)*(Uf.scrollHeight-Uf.offsetHeight);Uf.scrollTo(0,Wf)};function jf(){Df("editor")}function Jf(){Df("preview")}jd.value.addEventListener("scroll",Jf,!1),ud.value.on("scroll",jf)}onMounted(()=>{setTimeout(()=>{Ld()},300)});function Bd(){pd()}const Gd=ref$1(!1),qd=ref$1(!1);function zd(){qd.value=!0,Gd.value=!0}function Xd(){Gd.value=!1,setTimeout(()=>{qd.value=!1},800)}function gf(Df){const jf=checkImage(Df);if(!jf.ok)return Ke$1.error(jf.msg),!1;const Jf=localStorage.getItem("imgHost")||"default";localStorage.setItem("imgHost",Jf);const eh=localStorage.getItem(`${Jf}Config`);return Jf==="default"||eh?!0:(Ke$1.error(`请先配置 ${Jf} 图床参数`),!1)}function Yd(Df){if(!Df){Ke$1.error("上传图片未知异常");return}Od(!1);const jf=ud.value.getCursor(),Jf=`![](${Df})`;toRaw(qa.editor).replaceSelection(`
${Jf}
`,jf),Ke$1.success("图片上传成功")}function Zd(Df,jf){Md.value=!0,toBase64$2(Df).then(Jf=>fileApi.fileUpload(Jf,Df)).then(Jf=>{jf?jf(Jf):Yd(Jf)}).catch(Jf=>{Ke$1.error(Jf.message)}).finally(()=>{Md.value=!1})}const df=ref$1();watch(od,()=>{var jf,Jf;const Df=od.value?"darcula":"xq-light";(Jf=(jf=toRaw(ud.value))==null?void 0:jf.setOption)==null||Jf.call(jf,"theme",Df)});function Ef(){const Df=document.querySelector("#editor");Df.value||(Df.value=qa.posts[qa.currentPostIndex].content),ud.value=CodeMirror.fromTextArea(Df,{mode:"text/x-markdown",theme:od.value?"darcula":"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Jf){formatDoc(Jf.getValue()).then(eh=>{Jf.setValue(eh)})},[`${ctrlKey}-B`]:function(Jf){const eh=Jf.getSelection();Jf.replaceSelection(`**${eh}**`)},[`${ctrlKey}-I`]:function(Jf){const eh=Jf.getSelection();Jf.replaceSelection(`*${eh}*`)},[`${ctrlKey}-D`]:function(Jf){const eh=Jf.getSelection();Jf.replaceSelection(`~~${eh}~~`)},[`${ctrlKey}-K`]:function(Jf){const eh=Jf.getSelection();Jf.replaceSelection(`[${eh}]()`)},[`${ctrlKey}-E`]:function(Jf){const eh=Jf.getSelection();Jf.replaceSelection(`\`${eh}\``)},[`${ctrlKey}-L`]:function(Jf){const eh=Jf.getSelection();Jf.replaceSelection(`\`${eh}\``)}}}),ud.value.on("change",jf=>{clearTimeout(df.value),df.value=setTimeout(()=>{Bd(),qa.posts[qa.currentPostIndex].content=jf.getValue()},300)}),ud.value.on("paste",(jf,Jf)=>{if(!(!(Jf.clipboardData&&Jf.clipboardData.items)||Md.value))for(let eh=0,th=Jf.clipboardData.items.length;eh<th;++eh){const Uf=Jf.clipboardData.items[eh];if(Uf.kind==="file"){const Of=Uf.getAsFile();if(!gf(Of))continue;Zd(Of)}}})}const _f=ref$1(null);function xf(Df){ud.value.options.extraKeys[Df](ud.value)}const vf=ref$1(null);function Af(){const Df=vf.value,jf=async({md:th,list:Uf})=>{const Of=[...th.str.matchAll(/!\[(.*?)\]\((.*?)\)/g)||[]].filter(zf=>zf),Wf=th.path.match(/.+?\//)[0];(await Promise.all(Of.map(zf=>new Promise(Tf=>{let[,,Sf]=zf;Sf=Sf.replace(/^.\//,"");const{file:Yf}=Uf.find(ih=>ih.path===`${Wf}${Sf}`)||{};Zd(Yf,ih=>{Tf({matchStr:Sf,url:ih})})})))).forEach(zf=>{th.str=th.str.replace(`](./${zf.matchStr})`,`](${zf.url})`).replace(`](${zf.matchStr})`,`](${zf.url})`)}),ud.value.setValue(th.str)};Df.ondragover=th=>th.preventDefault(),Df.ondrop=async th=>{th.preventDefault();for(const Uf of th.dataTransfer.items)Uf.getAsFileSystemHandle().then(async Of=>{if(Of.kind==="directory"){const Wf=await eh(Of),qf=await Jf({list:Wf});jf({md:qf,list:Wf})}else{const Wf=await Of.getFile();console.log("file",Wf)}})};async function Jf({list:th}){return new Promise(Uf=>{const{path:Of,file:Wf}=th.find(zf=>zf.path.match(/\.md$/)),qf=new FileReader;qf.readAsText(Wf,"UTF-8"),qf.onload=zf=>{Uf({str:zf.target.result,file:Wf,path:Of})}})}async function eh(th){const Uf=[];let Of="";try{const Wf=[th];for(const qf of Wf){Of+=`${qf.name}/`;for await(const[,zf]of qf)zf.kind==="file"?Uf.push({path:Of+zf.name,file:await zf.getFile()}):(Uf.push({path:`${Of+zf.name}/`}),Wf.push(zf))}}catch(Wf){console.error(Wf)}return Uf}}return onMounted(()=>{Ef(),Bd(),Af()}),(Df,jf)=>{const Jf=__unplugin_components_0,eh=_sfc_main$x,th=_sfc_main$D,Uf=_sfc_main$E,Of=_sfc_main$F,Wf=_sfc_main$G,qf=_sfc_main$H,zf=_sfc_main$I,Tf=__unplugin_components_8,Sf=_sfc_main$L,Yf=_sfc_main$_,ih=__unplugin_components_11,Th=_sfc_main$1c,sh=_sfc_main$1d,Nf=_sfc_main$1e,ph=_sfc_main$1f,Oh=_sfc_main$1g,Zf=_sfc_main$1i,Rf=_sfc_main$1j,Bf=_sfc_main$1k;return openBlock(),createElementBlock("div",{ref_key:"container",ref:_f,class:"container flex flex-col"},[createVNode(Jf,{onAddFormat:xf,onFormatContent:unref(vd),onStartCopy:zd,onEndCopy:Xd},null,8,["onFormatContent"]),createBaseVNode("main",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createVNode(eh),createBaseVNode("div",{ref_key:"codeMirrorWrapper",ref:vf,class:normalizeClass(["codeMirror-wrapper flex-1 border-r-1",{"order-1":!unref(qa).isEditOnLeft}])},[createVNode(zf,null,{default:withCtx(()=>[createVNode(th,null,{default:withCtx(()=>jf[9]||(jf[9]=[createBaseVNode("tex
`;jd.replaceSelection(Xd+Xd,null),Nd(jd,-1),Gd=jd.listSelections();for(var gf=0;gf<Gd.length;gf++){var Yd=Gd[gf].head.line;jd.indentLine(Yd,null,!0),jd.indentLine(Yd+1,null,!0)}})}function Nd(jd,Ld){for(var Bd=[],Gd=jd.listSelections(),qd=0,zd=0;zd<Gd.length;zd++){var Xd=Gd[zd];Xd.head==jd.getCursor()&&(qd=zd);var gf=Xd.head.ch||Ld>0?{line:Xd.head.line,ch:Xd.head.ch+Ld}:{line:Xd.head.line-1};Bd.push({anchor:gf,head:gf})}jd.setSelections(Bd,qd)}function Id(jd){var Ld=nd.cmpPos(jd.anchor,jd.head)>0;return{anchor:new ld(jd.anchor.line,jd.anchor.ch+(Ld?-1:1)),head:new ld(jd.head.line,jd.head.ch+(Ld?1:-1))}}function Od(jd,Ld){var Bd=md(jd);if(!Bd||jd.getOption("disableInput"))return nd.Pass;var Gd=ud(Bd,"pairs"),qd=Gd.indexOf(Ld);if(qd==-1)return nd.Pass;for(var zd=ud(Bd,"closeBefore"),Xd=ud(Bd,"triples"),gf=Gd.charAt(qd+1)==Ld,Yd=jd.listSelections(),Zd=qd%2==0,df,Ef=0;Ef<Yd.length;Ef++){var _f=Yd[Ef],xf=_f.head,vf,Af=jd.getRange(xf,ld(xf.line,xf.ch+1));if(Zd&&!_f.empty())vf="surround";else if((gf||!Zd)&&Af==Ld)gf&&Ud(jd,xf)?vf="both":Xd.indexOf(Ld)>=0&&jd.getRange(xf,ld(xf.line,xf.ch+3))==Ld+Ld+Ld?vf="skipThree":vf="skip";else if(gf&&xf.ch>1&&Xd.indexOf(Ld)>=0&&jd.getRange(ld(xf.line,xf.ch-2),xf)==Ld+Ld){if(xf.ch>2&&/\bstring/.test(jd.getTokenTypeAt(ld(xf.line,xf.ch-2))))return nd.Pass;vf="addFour"}else if(gf){var Df=xf.ch==0?" ":jd.getRange(ld(xf.line,xf.ch-1),xf);if(!nd.isWordChar(Af)&&Df!=Ld&&!nd.isWordChar(Df))vf="both";else return nd.Pass}else if(Zd&&(Af.length===0||/\s/.test(Af)||zd.indexOf(Af)>-1))vf="both";else return nd.Pass;if(!df)df=vf;else if(df!=vf)return nd.Pass}var jf=qd%2?Gd.charAt(qd-1):Ld,Jf=qd%2?Ld:Gd.charAt(qd+1);jd.operation(function(){if(df=="skip")Nd(jd,1);else if(df=="skipThree")Nd(jd,3);else if(df=="surround"){for(var eh=jd.getSelections(),th=0;th<eh.length;th++)eh[th]=jf+eh[th]+Jf;jd.replaceSelections(eh,"around"),eh=jd.listSelections().slice();for(var th=0;th<eh.length;th++)eh[th]=Id(eh[th]);jd.setSelections(eh)}else df=="both"?(jd.replaceSelection(jf+Jf,null),jd.triggerElectric(jf+Jf),Nd(jd,-1)):df=="addFour"&&(jd.replaceSelection(jf+jf+jf+jf,"before"),Nd(jd,1))})}function Md(jd,Ld){var Bd=jd.getRange(ld(Ld.line,Ld.ch-1),ld(Ld.line,Ld.ch+1));return Bd.length==2?Bd:null}function Ud(jd,Ld){var Bd=jd.getTokenAt(ld(Ld.line,Ld.ch+1));return/\bstring/.test(Bd.type)&&Bd.start==Ld.ch&&(Ld.ch==0||!/\bstring/.test(jd.getTokenTypeAt(Ld)))}})})();(function(Ra,qa){(function(nd){nd(requireCodemirror())})(function(nd){var od=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),ld=nd.Pos,ud={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function dd(Nd){return Nd&&Nd.bracketRegex||/[(){}[\]]/}function pd(Nd,Id,Od){var Md=Nd.getLineHandle(Id.line),Ud=Id.ch-1,jd=Od&&Od.afterCursor;jd==null&&(jd=/(^| )cm-fat-cursor($| )/.test(Nd.getWrapperElement().className));var Ld=dd(Od),Bd=!jd&&Ud>=0&&Ld.test(Md.text.charAt(Ud))&&ud[Md.text.charAt(Ud)]||Ld.test(Md.text.charAt(Ud+1))&&ud[Md.text.charAt(++Ud)];if(!Bd)return null;var Gd=Bd.charAt(1)==">"?1:-1;if(Od&&Od.strict&&Gd>0!=(Ud==Id.ch))return null;var qd=Nd.getTokenTypeAt(ld(Id.line,Ud+1)),zd=fd(Nd,ld(Id.line,Ud+(Gd>0?1:0)),Gd,qd,Od);return zd==null?null:{from:ld(Id.line,Ud),to:zd&&zd.pos,match:zd&&zd.ch==Bd.charAt(0),forward:Gd>0}}function fd(Nd,Id,Od,Md,Ud){for(var jd=Ud&&Ud.maxScanLineLength||1e4,Ld=Ud&&Ud.maxScanLines||1e3,Bd=[],Gd=dd(Ud),qd=Od>0?Math.min(Id.line+Ld,Nd.lastLine()+1):Math.max(Nd.firstLine()-1,Id.line-Ld),zd=Id.line;zd!=qd;zd+=Od){var Xd=Nd.getLine(zd);if(Xd){var gf=Od>0?0:Xd.length-1,Yd=Od>0?Xd.length:-1;if(!(Xd.length>jd))for(zd==Id.line&&(gf=Id.ch-(Od<0?1:0));gf!=Yd;gf+=Od){var Zd=Xd.charAt(gf);if(Gd.test(Zd)&&(Md===void 0||(Nd.getTokenTypeAt(ld(zd,gf+1))||"")==(Md||""))){var df=ud[Zd];if(df&&df.charAt(1)==">"==Od>0)Bd.push(Zd);else if(Bd.length)Bd.pop();else return{pos:ld(zd,gf),ch:Zd}}}}}return zd-Od==(Od>0?Nd.lastLine():Nd.firstLine())?!1:null}function md(Nd,Id,Od){for(var Md=Nd.state.matchBrackets.maxHighlightLineLength||1e3,Ud=Od&&Od.highlightNonMatching,jd=[],Ld=Nd.listSelections(