1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AdGuardHome-6S59rptX.js","./_plugin-vue_export-helper-LledoY8b.js","./service-AWe6Zi3q.js","./AdGuardHome-C21Na0RN.css","./CopyToClipboard-BQf-xsHv.js","./CopyToClipboard-DdaqwG4Y.css","./DockerSocketProxy-Djsulm5X.js","./DockerSocketProxy-BH231-gh.css","./Docuseal-o5e2z5P1.js","./Docuseal-SmO6ZugN.css","./Emby-Bqt6jzIv.js","./Emby-CDea6AIx.css","./FreshRSS-BKByGqu8.js","./FreshRSS-Dv6QibqI.css","./Gatus-C2moGWjE.js","./Gatus-9p_GAl9f.css","./Gitea-DHlAhuaD.js","./Gitea-C6wJhtW2.css","./Glances-B1BpgD8t.js","./Gotify-BtxYGEWn.js","./Gotify-BEV3qJ3M.css","./Healthchecks-DbuDIMkp.js","./Healthchecks-CZwk-R34.css","./HomeAssistant-B6hCBEPL.js","./HomeAssistant-Cx13dyX5.css","./HyperHDR-Cz93wKqj.js","./HyperHDR-DHJ7uj_l.css","./Immich-CvshFkAU.js","./Immich-5syEhFXM.css","./Jellystat-TMhyZ0Cn.js","./Jellystat-Bx6WWbzZ.css","./Lidarr-IAPQG1S3.js","./Lidarr-DbGt2ZpQ.css","./Linkding-DdFrQLwx.js","./Matrix-D2eHLBdT.js","./Matrix-C_kmQJeh.css","./Mealie-D56Kqgm2.js","./Medusa-DK6NyfjC.js","./Medusa-D_k0ZujV.css","./Miniflux-Co3W2z8c.js","./Miniflux-CHjgjxGR.css","./Mylar-ppwNPoM0.js","./Mylar-CF-tERpC.css","./NetAlertx-Bsxdu_Wf.js","./NetAlertx-TJggeUYQ.css","./Nextcloud-bh2YZxc0.js","./Nextcloud-BfdMmptx.css","./OctoPrint-neCtmogh.js","./OctoPrint-D72P9opj.css","./Olivetin-BRYEfPWd.js","./Olivetin-DT2k0eQQ.css","./OpenHAB-BGAPcOp5.js","./OpenHAB-QjKEieFR.css","./OpenWeather-VO89SKiX.js","./OpenWeather-CGFhy5zp.css","./PaperlessNG-Z9huoWqP.js","./PeaNUT-D8LG0nqZ.js","./PiAlert-CptiGFvJ.js","./PiAlert-C4B7PlCX.css","./PiHole-DKYCy3JD.js","./PiHole-PNesq0UK.css","./Ping-DjpvisBY.js","./Ping-DqJJwQ4v.css","./Plex-CxQ7WpY_.js","./Plex-BB4GsQ1-.css","./Portainer--i5ECNy8.js","./Portainer-C8JKHI2F.css","./Prometheus-Did0SwZi.js","./Prometheus-CbJ-rsMB.css","./Prowlarr-BaMfKmqt.js","./Prowlarr-Wu8gV8U5.css","./Proxmox-CpskIpSV.js","./Proxmox-Dp2HpAQ_.css","./Radarr-rNwZH9EM.js","./Radarr-CjIjf9G-.css","./Readarr-Btf_HQbh.js","./Readarr-BfUkosMn.css","./Rtorrent-DcgBJG8e.js","./Rtorrent-CoP4Obzb.css","./SABnzbd-DVwo5n1P.js","./SABnzbd-CE1j84kV.css","./Scrutiny-CljtQa8z.js","./Scrutiny-zNFguTDZ.css","./Sonarr-B1Tim_Md.js","./Sonarr-C_ET0wfj.css","./SpeedtestTracker-DeCU5wUL.js","./Tautulli-CllNXIOF.js","./Tautulli-CmrdartB.css","./Tdarr-CoMORpXT.js","./Tdarr-DbQLppZf.css","./ThemeChooser-Bj-H4MfP.js","./ThemeChooser-TH-6Mj-L.css","./Traefik-C-A1oCI2.js","./Traefik-4s__45DC.css","./Transmission-DF9Ifu0v.js","./Transmission-BZeO2EKa.css","./TruenasScale-DkEV44Xf.js","./TruenasScale-BPqIyjR0.css","./UptimeKuma-BgOKg7QE.js","./UptimeKuma-Cv7qqWvy.css","./Vaultwarden-B3MOexl9.js","./Vaultwarden-Y62b-lo4.css","./WUD-DajorOq6.js","./WUD-0xsFdvJ1.css","./Wallabag-7xnKe6m3.js","./Wallabag-DERmEn4U.css","./qBittorrent-DYiVSFBK.js","./qBittorrent-DulbLalV.css"])))=>i.map(i=>d[i]); 2import{A as e,B as t,C as n,D as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,P as d,R as f,S as p,T as m,_ as h,a as g,c as _,d as v,f as y,g as b,h as x,i as S,j as ee,k as te,l as ne,m as C,n as re,o as w,p as ie,r as ae,s as T,t as E,u as oe,v as se,w as ce,x as le,y as ue,z as de}from"./_plugin-vue_export-helper-LledoY8b.js";import{t as D}from"./service-AWe6Zi3q.js";var fe=Object.create,pe=Object.defineProperty,me=Object.getOwnPropertyDescriptor,he=Object.getOwnPropertyNames,ge=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty,ve=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ye=(e,t)=>{let n={};for(var r in e)pe(n,r,{get:e[r],enumerable:!0});return t||pe(n,Symbol.toStringTag,{value:`Module`}),n},be=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=he(t),a=0,o=i.length,s;a<o;a++)s=i[a],!_e.call(e,s)&&s!==n&&pe(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=me(t,s))||r.enumerable});return e},xe=(e,t,n)=>(n=e==null?{}:fe(ge(e)),be(t||!e||!e.__esModule?pe(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Se=void 0,Ce=typeof window<`u`&&window.trustedTypes;if(Ce)try{Se=Ce.createPolicy(`vue`,{createHTML:e=>e})}catch{}var we=Se?e=>Se.createHTML(e):e=>e,Te=`http://www.w3.org/2000/svg`,Ee=`http://www.w3.org/1998/Math/MathML`,O=typeof document<`u`?document:null,De=O&&O.createElement(`template`),Oe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?O.createElementNS(Te,e):t===`mathml`?O.createElementNS(Ee,e):n?O.createElement(e,{is:n}):O.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>O.createTextNode(e),createComment:e=>O.createComment(e),setText:(e,t)=>
vendor: 5,750 bytes, line 2
2{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>O.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{De.innerHTML=we(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=De.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ke=Symbol(`_vtc`);function k(e,t,n){let r=e[ke];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ae=Symbol(`_vod`),je=Symbol(`_vsh`),Me=Symbol(``),Ne=/(?:^|;)\s*display\s*:/;function Pe(e,t,n){let r=e.style,i=l(n),a=!1;if(n&&!i){if(t)if(l(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Ie(r,t,``)}else for(let e in t)n[e]??Ie(r,e,``);for(let e in n)e===`display`&&(a=!0),Ie(r,e,n[e])}else if(i){if(t!==n){let e=r[Me];e&&(n+=`;`+e),r.cssText=n,a=Ne.test(n)}}else t&&e.removeAttribute(`style`);Ae in e&&(e[Ae]=a?r.display:``,e[je]&&(r.display=`none`))}var Fe=/\s*!important$/;function Ie(e,t,n){if(r(n))n.forEach(n=>Ie(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=ze(e,t);Fe.test(n)?e.setProperty(ce(r),n.replace(Fe,``),`important`):e[r]=n}}var Le=[`Webkit`,`Moz`,`ms`],Re={};function ze(e,t){let n=Re[t];if(n)return n;let r=le(t);if(r!==`filter`&&r in e)return Re[t]=r;r=p(r);for(let n=0;n<Le.length;n++){let i=Le[n]+r;if(i in e)return Re[t]=i}return t}var Be=`http://www.w3.org/1999/xlink`;function Ve(e,t,n,r,i,a=c(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Be,t.slice(6,t.length)):e.setAttributeNS(Be,t,n):n==null||a&&!m(n)?e.removeAttribute(t):e.setAttribute(t,a?``:d(n)?String(n):n)}function A(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?we(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=m(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function He(e,t,n,r){e.addEventListener(t,n,r)}function Ue(e,t,n,r){e.removeEventListener(t,n,r)}var We=Symbol(`_vei`);function Ge(e,t,n,r,i=null){let a=e[We]||(e[We]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=qe(t);r?He(e,n,a[t]=Ze(r,i),s):o&&(Ue(e,n,o,s),a[t]=void 0)}}var Ke=/(?:Once|Passive|Capture)$/;function qe(e){let t;if(Ke.test(e)){t={};let n;for(;n=e.match(Ke);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):ce(e.slice(2)),t]}var Je=0,Ye=Promise.resolve(),Xe=()=>Je||=(Ye.then(()=>Je=0),Date.now());function Ze(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;ae(Qe(e,n.value),t,5,[e])};return n.value=e,n.attached=Xe(),n}function Qe(e,t){if(r(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var $e=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,et=(t,n,r,i,a,o)=>{let s=a===`svg`;n===`class`?k(t,i,s):n===`style`?Pe(t,r,i):e(n)?te(n)||Ge(t,n,r,i,o):(n[0]===`.`?(n=n.slice(1),!0):n[0]===`^`?(n=n.slice(1),!1):j(t,n,i,s))?(A(t,n,i),!t.tagName.includes(`-`)&&(n===`value`||n===`checked`||n===`selected`)&&Ve(t,n,i,s,o,n!==`value`)):t._isVueCE&&(tt(t,n)||t._def.__asyncLoader&&(/[A-Z]/.test(n)||!l(i)))?A(t,le(n),i,o,n):(n===`true-value`?t._trueValue=i:n===`false-value`&&(t._falseValue=i),Ve(t,n,i,s))};function j(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&$e(t)&&u(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return $e(t)&&l(n)?!1:t in e}function tt(e,t){let n=e._def.props;if(!n)return!1;let r=le(t);return Array.isArray(n)?n.some(e=>le(e)===r):Object.keys(n).some(e=>le(e)===r)}var nt=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return r(t)?e=>i(t,e):t},rt=Symbol(`_assign`),it={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=ee(t);He(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?s(M(e)):M(e));e[rt](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,ie(()=>{e._assigning=!1})}),e[rt]=nt(r)},mounted(e,{value:t}){at(e,t)},beforeUpdate(e,t,n){e[rt]=nt(n)},updated(e,{value:t}){e._assigning||at(e,t)}};function at(e,t){let n=e.multiple,i=r(t);if(!(n&&!i&&!ee(t))){for(let r=0,s=e.options.length;r<s;r++){let s=e.options[r],c=M(s);if(n)if(i){let e=typeof c;e===`string`||e===`number`?s.selected=t.some(e=>String(e)===String(c)):s.selected=o(t,c)>-1}else s.selected=t.has(c);else if(a(M(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function M(e){return`_value`in e?e._value:e.value}var ot=[`ctrl`,`shift`,`alt`,`meta`],st={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>
2ot.some(n=>e[`${n}Key`]&&!t.includes(n))},ct=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=st[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},lt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},ut=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=ce(n.key);if(t.some(e=>e===r||lt[e]===r))return e(n)}))},dt=n({patchProp:et},Oe),ft;function pt(){return ft||=_(dt)}var mt=((...e)=>{let t=pt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=gt(e);if(!r)return;let i=t._component;!u(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,ht(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function ht(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function gt(e){return l(e)?document.querySelector(e):e}var _t=Symbol.for(`yaml.alias`),vt=Symbol.for(`yaml.document`),N=Symbol.for(`yaml.map`),yt=Symbol.for(`yaml.pair`),P=Symbol.for(`yaml.scalar`),bt=Symbol.for(`yaml.seq`),F=Symbol.for(`yaml.node.type`),I=e=>!!e&&typeof e==`object`&&e[F]===_t,xt=e=>!!e&&typeof e==`object`&&e[F]===vt,St=e=>!!e&&typeof e==`object`&&e[F]===N,L=e=>!!e&&typeof e==`object`&&e[F]===yt,R=e=>!!e&&typeof e==`object`&&e[F]===P,Ct=e=>!!e&&typeof e==`object`&&e[F]===bt;function z(e){if(e&&typeof e==`object`)switch(e[F]){case N:case bt:return!0}return!1}function B(e){if(e&&typeof e==`object`)switch(e[F]){case _t:case N:case P:case bt:return!0}return!1}var wt=e=>(R(e)||z(e))&&!!e.anchor,V=Symbol(`break visit`),Tt=Symbol(`skip children`),H=Symbol(`remove node`);function Et(e,t){let n=kt(t);xt(e)?Dt(null,e.contents,n,Object.freeze([e]))===H&&(e.contents=null):Dt(null,e,n,Object.freeze([]))}Et.BREAK=V,Et.SKIP=Tt,Et.REMOVE=H;function Dt(e,t,n,r){let i=At(e,t,n,r);if(B(i)||L(i))return jt(e,r,i),Dt(e,i,n,r);if(typeof i!=`symbol`){if(z(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=Dt(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===V)return V;else i===H&&(t.items.splice(e,1),--e)}}else if(L(t)){r=Object.freeze(r.concat(t));let e=Dt(`key`,t.key,n,r);if(e===V)return V;e===H&&(t.key=null);let i=Dt(`value`,t.value,n,r);if(i===V)return V;i===H&&(t.value=null)}}return i}async function Ot(e,t){let n=kt(t);xt(e)?await U(null,e.contents,n,Object.freeze([e]))===H&&(e.contents=null):await U(null,e,n,Object.freeze([]))}Ot.BREAK=V,Ot.SKIP=Tt,Ot.REMOVE=H;async function U(e,t,n,r){let i=await At(e,t,n,r);if(B(i)||L(i))return jt(e,r,i),U(e,i,n,r);if(typeof i!=`symbol`){if(z(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await U(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===V)return V;else i===H&&(t.items.splice(e,1),--e)}}else if(L(t)){r=Object.freeze(r.concat(t));let e=await U(`key`,t.key,n,r);if(e===V)return V;e===H&&(t.key=null);let i=await U(`value`,t.value,n,r);if(i===V)return V;i===H&&(t.value=null)}}return i}function kt(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function At(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(St(t))return n.Map?.(e,t,r);if(Ct(t))return n.Seq?.(e,t,r);if(L(t))return n.Pair?.(e,t,r);if(R(t))return n.Scalar?.(e,t,r);if(I(t))return n.Alias?.(e,t,r)}function jt(e,t,n){let r=t[t.length-1];if(z(r))r.items[e]=n;else if(L(r))e===`key`?r.key=n:r.value=n;else if(xt(r))r.contents=n;else{let e=I(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var Mt={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},Nt=e=>e.replace(/[!,[\]{}]/g,e=>Mt[e]),Pt=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e}
2 is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Nt(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&B(e.contents)){let t={};Et(e.contents,(e,n)=>{B(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(` 3`)}};Pt.defaultYaml={explicit:!1,version:`1.2`},Pt.defaultTags={"!!":`tag:yaml.org,2002:`};function Ft(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function It(e){let t=new Set;return Et(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function Lt(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function Rt(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=It(e);let a=Lt(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(R(t.node)||z(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function zt(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=zt(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=zt(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=zt(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=zt(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function W(e,t,n){if(Array.isArray(e))return e.map((e,t)=>W(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!wt(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var Bt=class{constructor(e){Object.defineProperty(this,F,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!xt(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=W(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?zt(i,{"":o},``,o):o}},Vt=class extends Bt{constructor(e){super(_t),this.source=e,Object.defineProperty(this,`tag`,{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],Et(e,{Node:(e,t)=>{(I(t)||wt(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(W(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=Ht(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exh
3austion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(Ft(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function Ht(e,t,n){if(I(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(z(t)){let r=0;for(let i of t.items){let t=Ht(e,i,n);t>r&&(r=t)}return r}else if(L(t)){let r=Ht(e,t.key,n),i=Ht(e,t.value,n);return Math.max(r,i)}return 1}var Ut=e=>!e||typeof e!=`function`&&typeof e!=`object`,G=class extends Bt{constructor(e){super(P),this.value=e}toJSON(e,t){return t?.keep?this.value:W(this.value,e,t)}toString(){return String(this.value)}};G.BLOCK_FOLDED=`BLOCK_FOLDED`,G.BLOCK_LITERAL=`BLOCK_LITERAL`,G.PLAIN=`PLAIN`,G.QUOTE_DOUBLE=`QUOTE_DOUBLE`,G.QUOTE_SINGLE=`QUOTE_SINGLE`;var Wt=`tag:yaml.org,2002:`;function Gt(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function Kt(e,t,n){if(xt(e)&&(e=e.contents),B(e))return e;
vendor: 34,076 bytes, lines 3-42
3if(L(e)){let t=n.schema[N].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??=i(e),new Vt(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=Wt+t.slice(2));let l=Gt(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new G(e);return c&&(c.node=t),t}l=e instanceof Map?o[N]:Symbol.iterator in Object(e)?o[bt]:o[N]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new G(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function qt(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Kt(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var Jt=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,Yt=class extends Bt{constructor(e,t){super(e),Object.defineProperty(this,`schema`,{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>B(t)||L(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Jt(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(z(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,qt(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(z(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&R(i)?i.value:i:z(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!L(t))return!1;let n=t.value;return n==null||e&&R(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return z(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(z(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,qt(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Xt=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function K(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var Zt=(e,t,n)=>e.endsWith(` 4`)?K(n,t):n.includes(` 5`)?` 6`+K(n,t):(e.endsWith(` `)?``:` `)+n,Qt=`flow`,$t=`block`,en=`quoted`;function tn(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=nn(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===` 7`)n===`block`&&(h=nn(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==` 8`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==` 9`&&t!==` `&&(f=h)}if(h>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function nn(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==` 10`);r=t,i=t+1,a=e[i]}return r}var rn=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),an=e=>/^(%|---|\.\.\.)/m.test(e);function on(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===` 11`){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function sn(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(an(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+` 12 13`;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=` 14`,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:tn(o,a,en,rn(t,!1))}function cn(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(` 15`)||/[ \t]\n|\n[ \t]/.test(e))return sn(e,t);let n=t.indent||(an(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:tn(r,n,Qt,rn(t,!1))}function ln(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=sn;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?cn:i&&!t?sn:n?cn:sn}return r(e,t)}var un;try{un=RegExp(`(^|(?<! 16)) 17+(?! 18|$)`,`g`)}catch{un=/\n+(?!\n|$)/g}function dn({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return ln(n,r);let l=r.indent||(r.forceBlockIndent||an(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===G.BLOCK_FOLDED?!1:t===G.BLOCK_LITERAL?!0:!on(n,c,l.length);if(!n)return u?`| 19`:`> 20`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==` 21`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(` 22`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===` 23`&&(p=p.slice(0,-1)),p.replace(un,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===` 24`)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,` 25$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=rn(r,!0);o!==`folded`&&t!==G.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=tn(`${v}${e}${p}`,l,$t,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function fn(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(` 26`)||u&&/[[\]{},]/.test(a))return ln(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(` 27`)?ln(a,t):dn(e,t,n,r);if(!s&&!u&&i!==G.PLAIN&&a.includes(` 28`))return dn(e,t,n,r);if(an(a)){if(c===``)return t.forceBlockIndent=!0,dn(e,t,n,r);if(s&&c===l)return ln(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return ln(a,t)}return s?d:tn(d,c,Qt,rn(t,!1))}function pn(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==G.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=G.QUOTE_DOUBLE);let c=e=>{switch(e){case G.BLOCK_FOLDED:case G.BLOCK_LITERAL:return i||a?ln(o.value,t):dn(o,t,n,r);case G.QUOTE_DOUBLE:return sn(o.value,t);case G.QUOTE_SINGLE:return cn(o.value,t);case G.PLAIN:return fn(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function mn(e,t){let n=Object.assign({blockQuote:!0,commentString:Xt,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function hn(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(R(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function gn(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(R(e)||z(e))&&e.anchor;a&&Ft(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function _n(e,t,n,r){if(L(e))return e.toString(t,n,r);if(I(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=B(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=hn(t.doc.schema.tags,a);let o=gn(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):R(a)?pn(a,t,n,r):a.toString(t,n,r);return o?R(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function vn({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=B(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(z(e)||!B(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||z(e)||(R(e)?e.type===G.BLOCK_FOLDED||e.type===G.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=_n(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=Zt(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=Zt(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=Zt(g,n.indent,l(f))));let _,v,y;B(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&R(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&Ct(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=_n(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?` 29`:``,v){let e=l(v);S+=`\n${K(e,n.indent)}`}x===``&&!n.inFlow?S===` 30`&&y&&(S=` 31 32`):S+=`\n${n.indent}`}else if(!p&&z(t)){let e=x[0],r=x.indexOf(` 33`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else (x===``||x[0]===` 34`)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=Zt(g,n.indent,l(y)):h&&i&&i(),g}function yn(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var bn=`<<`,q={identify:e=>e===bn||typeof e==`symbol`&&e.description===bn,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new G(Symbol(bn)),{addToJSMap:Sn}),stringify:()=>bn},xn=(e,t)=>(q.identify(t)||R(t)&&(!t.type||t.type===G.PLAIN)&&q.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===q.tag&&e.default);function Sn(e,t,n){if(n=e&&I(n)?n.resolve(e.doc):n,Ct(n))for(let r of n.items)Cn(e,t,r);else if(Array.isArray(n))for(let r of n)Cn(e,t,r);else Cn(e,t,n)}function Cn(e,t,n){let r=e&&I(n)?n.resolve(e.doc):n;if(!St(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function wn(e,t,{key:n,value:r}){if(B(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(xn(e,n))Sn(e,t,r);else{let i=W(n,``,e);if(t instanceof Map)t.set(i,W(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Tn(n,i,e),o=W(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Tn(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(B(e)&&n?.doc){let t=mn(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),yn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function En(e,t,n){return new J(Kt(e,void 0,n),Kt(t,void 0,n))}var J=class e{constructor(e,t=null){Object.defineProperty(this,F,{value:yt}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return B(n)&&(n=n.clone(t)),B(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return wn(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?vn(this,e,t,n):JSON.stringify(this)}};function Dn(e,t,n){return(t.inFlow??e.flow?kn:On)(e,t,n)}function On({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(B(i))!d&&i.spaceBefore&&f.push(``),An(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(L(i)){let e=B(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),An(n,f,e.commentBefore,d))}d=!1;let s=_n(i,u,()=>o=null,()=>d=!0);o&&(s+=Zt(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:` 35`}}return e?(p+=` 36`+K(l(e),c),s&&s()):d&&o&&o(),p}function kn({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(B(i))i.spaceBefore&&d.push(``),An(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(L(i)){let e=B(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),An(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=B(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=_n(i,c,()=>a=null);l||=d.length>u||o.includes(` 37`),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=Zt(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:` 38`;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function An({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=K(t(r),e);n.push(i.trimStart())}}function jn(e,t){let n=R(t)?t.value:t;for(let r of e)if(L(r)&&(r.key===t||r.key===n||R(r.key)&&r.key.value===n))return r}var Y=class extends Yt{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(N,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(En(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=L(e)?e:!e||typeof e!=`object`||!(`key`in e)?new J(e,e?.value):new J(e.key,e.value);let r=jn(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);R(r.value)&&Ut(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=jn(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=jn(this.items,e)?.value;return(!t&&R(n)?n.value:n)??void 0}has(e){return!!jn(this.items,e)}set(e,t){this.add(new J(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)wn(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!L(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Dn(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},Mn={collection:`map`,default:!0,nodeClass:Y,tag:`tag:yaml.org,2002:map`,resolve(e,t){return St(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>Y.from(e,t,n)},Nn=class extends Yt{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(bt,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Pn(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=Pn(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&R(r)?r.value:r}has(e){let t=Pn(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=Pn(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];R(r)&&Ut(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(W(e,String(r++),t));return n}toString(e,t,n){return e?Dn(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(Kt(a,void 0,n))}}return i}};function Pn(e){let t=R(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var Fn={collection:`seq`,default:!0,nodeClass:Nn,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return Ct(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>Nn.from(e,t,n)},In={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),pn(e,t,n,r)}},Ln={identify:e=>e==null,createNode:()=>new G(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new G(null),stringify:({source:e},t)=>typeof e==`string`&&Ln.test.test(e)?e:t.options.nullStr},Rn={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new G(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&Rn.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function X({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^\d/.test(a)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}var zn={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:X},Bn={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():X(e)}},Vn={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new G(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:X},Hn=e=>typeof e==`bigint`||Number.isInteger(e),Un=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Wn(e,t,n){let{value:r}=e;return Hn(r)&&r>=0?n+r.toString(t):X(e)}var Gn={identify:e=>Hn(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>Un(e,2,8,n),stringify:e=>Wn(e,8,`0o`)},Kn={identify:Hn,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Un(e,0,10,n),stringify:X},qn={identify:e=>Hn(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Un(e,2,16,n),stringify:e=>Wn(e,16,`0x`)},Jn=[Mn,Fn,In,Ln,Rn,Gn,Kn,qn,zn,Bn,Vn];function Yn(e){return typeof e==`bigint`||Number.isInteger(e)}var Xn=({value:e})=>JSON.stringify(e),Zn=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:Xn},{identify:e=>e==null,createNode:()=>new G(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:Xn},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:Xn},{identify:Yn,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Yn(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Xn}],Qn=[Mn,Fn].concat(Zn,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),$n={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=G.BLOCK_LITERAL,t!==G.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===G.BLOCK_LITERAL?` 39`:` `)}return pn({comment:e,type:t,value:s},r,i,a)}};function er(e,t){if(Ct(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!L(r)){if(St(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new J(new G(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=L(r)?r:new J(r)}}else t(`Expected a sequence for this tag`);return e}function tr(e,t,n){let{replacer:r}=n,i=new Nn(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e))if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(En(o,s,n))}return i}var nr={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:er,createNode:tr},rr=class e extends Nn{constructor(){super(),this.add=Y.prototype.add.bind(this),this.delete=Y.prototype.delete.bind(this),this.get=Y.prototype.get.bind(this),this.has=Y.prototype.has.bind(this),this.set=Y.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(L(e)?(r=W(e.key,``,t),i=W(e.value,r,t)):r=W(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=tr(e,t,n),i=new this;return i.items=r.items,i}};rr.tag=`tag:yaml.org,2002:omap`;var ir={collection:`seq`,identify:e=>e instanceof Map,nodeClass:rr,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=er(e,t),r=[];for(let{key:e}of n.items)R(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new rr,n)},createNode:(e,t,n)=>rr.from(e,t,n)};function ar({value:e,source:t},n){return t&&(e?or:sr).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var or={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new G(!0),stringify:ar},sr={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new G(!1),stringify:ar},cr={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:X},lr={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():X(e)}},ur={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new G(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:X},dr=e=>typeof e==`bigint`||Number.isInteger(e);function fr(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function pr(e,t,n){let{value:r}=e;if(dr(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return X(e)}var mr={identify:dr,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>fr(e,2,2,n),stringify:e=>pr(e,2,`0b`)},hr={identify:dr,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>fr(e,1,8,n),stringify:e=>pr(e,8,`0`)},gr={identify:dr,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>fr(e,0,10,n),stringify:X},_r={identify:dr,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>fr(e,2,16,n),stringify:e=>pr(e,16,`0x`)},vr=class e extends Y{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=L(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new J(e.key,null):new J(e,null),jn(this.items,t.key)||this.items.push(t)}get(e,t){let n=jn(this.items,e);return!t&&L(n)?R(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=jn(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new J(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(En(e,null,n));return i}};vr.tag=`tag:yaml.org,2002:set`;var yr={collection:`map`,identify:e=>e instanceof Set,nodeClass:vr,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>vr.from(e,t,n),resolve(e,t){if(St(e)){if(e.hasAllNullValues(!0))return Object.assign(new vr,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function br(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function xr(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return X(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var Sr={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>br(e,n),stringify:xr},Cr={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>br(e,!1),stringify:xr},wr={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(wr.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=br(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},Tr=[Mn,Fn,In,Ln,or,sr,mr,hr,gr,_r,cr,lr,ur,$n,q,ir,nr,yr,Sr,Cr,wr],Er=new Map([[`core`,Jn],[`failsafe`,[Mn,Fn,In]],[`json`,Qn],[`yaml11`,Tr],[`yaml-1.1`,Tr]]),Dr={binary:$n,bool:Rn,float:Vn,floatExp:Bn,floatNaN:zn,floatTime:Cr,int:Kn,intHex:qn,intOct:Gn,intTime:Sr,map:Mn,merge:q,null:Ln,omap:ir,pairs:nr,seq:Fn,set:yr,timestamp:wr},Or={"tag:yaml.org,2002:binary":$n,"tag:yaml.org,2002:merge":q,"tag:yaml.org,2002:omap":ir,"tag:yaml.org,2002:pairs":nr,"tag:yaml.org,2002:set":yr,"tag:yaml.org,2002:timestamp":wr};function kr(e,t,n){let r=Er.get(t);if(r&&!e)return n&&!r.includes(q)?r.concat(q):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(Er.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(q)),i.reduce((e,t)=>{let n=typeof t==`string`?Dr[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(Dr).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var Ar=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,jr=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?kr(e,`compat`):e?kr(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?Or:{},this.tags=kr(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,N,{value:Mn}),Object.defineProperty(this,P,{value:In}),Object.defineProperty(this,bt,{value:Fn}),this.sortMapEntries=typeof a==`function`?a:a===!0?Ar:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function Mr(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=mn(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(K(t,``))}let o=!1,s=null;if(e.contents){if(B(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(K(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=_n(e.contents,i,()=>s=null,t);s&&(c+=Zt(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(_n(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=a(e.comment);t.includes(` 40`)?(n.push(`...`),n.push(K(t,``))):n.push(`... ${t}`)}else n.push(`...`);else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(K(a(t),``)))}return n.join(` 41`)+` 42`}var Nr=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,F,{value:vt});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`w
42arn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Pt({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[F]:{value:vt}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=B(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){Pr(this.contents)&&this.contents.add(e)}addIn(e,t){Pr(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=It(this);e.anchor=!t||n.has(t)?Lt(t||`a`,n):t}return new Vt(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=Rt(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=Kt(e,l,p);return o&&z(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new J(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return Pr(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Jt(e)?this.contents==null?!1:(this.contents=null,!0):Pr(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return z(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Jt(e)?!t&&R(this.contents)?this.contents.value:this.contents:z(this.contents)?this.contents.getIn(e,t):void 0}has(e){return z(this.contents)?this.contents.has(e):!1}hasIn(e){return Jt(e)?this.contents!==void 0:z(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=qt(this.schema,[e],t):Pr(this.contents)&&this.contents.set(e,t)}setIn(e,t){Jt(e)?this.contents=t:this.contents==null?this.contents=qt(this.schema,Array.from(e),t):Pr(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new Pt({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new Pt({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new jr(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100}
vendor: 33,215 bytes, lines 42-97
42,s=W(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?zt(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Mr(this,e)}};function Pr(e){if(z(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var Fr=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},Ir=class extends Fr{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},Lr=class extends Fr{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},Rr=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`â¦`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`â¦`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`⦠43`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function zr(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],ee=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:ee,start:x??ee}}function Br(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(` 44`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(Br(t.key)||Br(t.value))return!0}return!1;default:return!0}}function Vr(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&Br(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function Hr(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||R(e)&&R(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var Ur=`All mapping items must start at the same column`;function Wr({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new(a?.nodeClass??Y)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=zr(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,Ur)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=` 45`+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||Br(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,Ur);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&Vr(r.indent,u,i),n.atKey=!1,Hr(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=zr(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&Vr(r.indent,f,i),s=c.range[2];let l=new J(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=` 46`+_.comment:g.comment=_.comment);let e=new J(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function Gr({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new(a?.nodeClass??Nn)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=zr(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found)if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&Vr(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function Kr(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var qr=`Block collections are not allowed within flow collections`,Jr=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function Yr({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new(a?.nodeClass??(o?Y:Nn))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=zr(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=` 47`+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&Br(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];L(t)&&(t=t.value??t.key),t.comment?t.comment+=` 48`+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],Jr(m)&&i(r.range,`BLOCK_IN_FLOW`,qr)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);Jr(f)&&i(g.range,`BLOCK_IN_FLOW`,qr),n.atKey=!1;let _=zr(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?Jr(m)&&i(v.range,`BLOCK_IN_FLOW`,qr):_.comment&&(g.comment?g.comment+=` 49`+_.comment:g.comment=_.comment);let y=new J(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;Hr(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new Y(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=Kr(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=` 50`+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function Xr(e,t,n,r,i,a){let o=n.type===`block-map`?Wr(e,t,n,r,a):n.type===`block-seq`?Gr(e,t,n,r,a):Yr(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function Zr(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===Y.tagName&&s===`map`||o===Nn.tagName&&s===`seq`)return Xr(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),Xr(e,t,n,i,o)}let l=Xr(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=B(u)?u:new G(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function Qr(e,t,n){let r=t.offset,i=$r(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?G.BLOCK_FOLDED:G.BLOCK_LITERAL,o=t.source?ei(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?` 51`.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+` 52`;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===G.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=` 53`):t.length>c||r[0]===` `?(f===` `?f=` 54`:!p&&f===` 55`&&(f=` 56 57`),d+=f+t.slice(c)+r,f=` 58`,p=!0):r===``?f===` 59`?d+=` 60`:f=` 61`:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=` 62`+o[e][0].slice(c);d[d.length-1]!==` 63`&&(d+=` 64`);break;default:d+=` 65`}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function $r({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function ei(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function ti(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=G.PLAIN,c=ni(a,l);break;case`single-quoted-scalar`:s=G.QUOTE_SINGLE,c=ri(a,l);break;case`double-quoted-scalar`:s=G.QUOTE_DOUBLE,c=ai(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=Kr(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function ni(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),ii(e)}function ri(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),ii(e.slice(1,-1)).replace(/''/g,`'`)}function ii(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r? 66`,`sy`),n=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r? 67`,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===` 68`?i+=a:a=` 69`:(i+=a+r[1],a=` `),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??``)}function ai(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(!(i===`\r`&&e[r+1]===` 70`))if(i===` 71`){let{fold:t,offset:i}=oi(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=si[i];if(a)n+=a;else if(i===` 72`)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===` 73`)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a={x:2,u:4,U:8}[i];n+=ci(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==` 74`&&!(a===`\r`&&e[r+2]===` 75`)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function oi(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===` 76`||r===`\r`)&&!(r===`\r`&&e[t+2]!==` 77`);)r===` 78`&&(n+=` 79`),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var si={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:` 80`,r:`\r`,t:` `,v:`\v`,N:` `,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function ci(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(a)){let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}return String.fromCodePoint(a)}function li(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?Qr(e,t,r):ti(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[P]:c?ui(e.schema,i,c,n,r):t.type===`scalar`?di(e,i,t,r):e.schema[P];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=R(a)?a:new G(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new G(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function ui(e,t,n,r,i){if(n===`!`)return e[P];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(t.default&&t.test)a.push(t);else return t;for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[P])}function di({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[P];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[P];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function fi(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var pi={composeNode:mi,composeEmptyNode:hi};function mi(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=gi(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=li(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=Zr(pi,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=hi(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!R(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function hi(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=li(e,{type:`scalar`,offset:fi(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function gi({options:e},{offset:t,source:n,end:r},i){let a=new Vt(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=Kr(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function _i(e,t,{offset:n,start:r,value:i,end:a},o){let s=new Nr(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=zr(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?mi(c,i,l,o):hi(c,l.end,r,null,l,o);let u=s.contents.range[2],d=Kr(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function vi(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function yi(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?` 81 82`:` 83`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var bi=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=vi(e);r?this.warnings.push(new Lr(i,t,n)):this.errors.push(new Ir(i,t,n))},this.directives=new Pt({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=yi(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(z(i)&&!i.flow&&i.items.length>0){let e=i.items[0];L(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:yi(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=vi(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=_i(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Ir(vi(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new Ir(vi(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=Kr(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Ir(vi(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new Nr(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}},xi=Symbol(`break visit`),Si=Symbol(`skip children`),Ci=Symbol(`remove item`);function wi(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Ti(Object.freeze([]),e,t)}wi.BREAK=xi,wi.SKIP=Si,wi.REMOVE=Ci,wi.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},wi.parentCollection=(e,t)=>{let n=wi.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function Ti(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=Ti(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===xi)return xi;else r===Ci&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}function Ei(e){switch(e){case``:return`byte-order-mark`;case`�`:return`doc-mode`;case`�`:return`flow-error-end`;case`�`:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case` 84`:case`\r 85`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}function Z(e){switch(e){case void 0:case` `:case` 86`:case`\r`:case` `:return!0;default:return!1}}var Di=new Set(`0123456789ABCDEFabcdef`),Oi=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),ki=new Set(`,[]{}`),Ai=new Set(` ,[]{} 87\r `),ji=e=>!e||Ai.has(e),Mi=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===` 88`?!0:t===`\r`?this.buffer[e+1]===` 89`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===` 90`||!t&&!this.atEnd)return e+n+1}return t===` 91`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&Z(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(` 92`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===``&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}else n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield`�`,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&Z(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Z(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&Z(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(ji),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&Z(r[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(r[0]===`]`||r[0]===`}`)))return this.flowLevel=0,yield`�`,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(ji),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||Z(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(` 93`,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(` 94`,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>Z(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case` 95`:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===` 96`)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(` 97`,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];
vendor: 4,909 bytes, lines 97-104
97if(n===` `){for(;n===` `||n===` `||n===`\r`||n===` 98`;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===` 99`&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield`�`,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(Z(r)||e&&ki.has(r))break;t=n}else if(Z(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===` 100`?(n+=1,r=` 101`,i=this.buffer[n+1]):t=n),i===`#`||e&&ki.has(i))break;if(r===` 102`){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&ki.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield`�`,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){switch(this.charAt(0)){case`!`:return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case`&`:return(yield*this.pushUntil(ji))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case`-`:case`?`:case`:`:{let e=this.flowLevel>0,t=this.charAt(1);if(Z(t)||e&&ki.has(t))return e?this.flowKey&&=!1:this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!Z(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Oi.has(t))t=this.buffer[++e];else if(t===`%`&&Di.has(this.buffer[e+1])&&Di.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===` 103`?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===` 104`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},Ni=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function Q(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Pi(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function Fi(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function Ii(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function Li(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function Ri(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!Q(t.start,`explicit-key-ind`)&&!Q(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,Fi(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var zi=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new Mi,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Ei(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}
vendor: 11,870 bytes, lines 104-108
104get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&Ri(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&Pi(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:Pi(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=Li(Ii(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(` 105`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` 106`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(Q(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=Li(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Q(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Fi(t.key)&&!Q(t.sep,`newline`)){let e=Li(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Q(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!Q(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||Q(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=Li(Ii(t));Ri(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(` 107`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` 108`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=Li(Ii(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=Li(Ii(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function Bi(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Ni||null,prettyErrors:t}}function Vi(e,t={}){let{lineCounter:n,prettyErrors:r}=Bi(t),i=new zi(n?.addNewLine),a=new bi(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new Ir(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}
108return r&&n&&(o.errors.forEach(Rr(e,n)),o.warnings.forEach(Rr(e,n))),o}function Hi(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Vi(e,n);if(!i)return null;if(i.warnings.forEach(e=>yn(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}var Ui=xe(ve(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=800,a=16,o=9007199254740991,s=`[object Arguments]`,c=`[object Array]`,l=`[object AsyncFunction]`,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Function]`,m=`[object GeneratorFunction]`,h=`[object Map]`,g=`[object Number]`,_=`[object Null]`,v=`[object Object]`,y=`[object Proxy]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,ee=`[object Undefined]`,te=`[object WeakMap]`,ne=`[object ArrayBuffer]`,C=`[object DataView]`,re=`[object Float32Array]`,w=`[object Float64Array]`,ie=`[object Int8Array]`,ae=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,oe=`[object Uint8ClampedArray]`,se=`[object Uint16Array]`,ce=`[object Uint32Array]`,le=/[\\^$.*+?()[\]{}|]/g,ue=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,D={};D[re]=D[w]=D[ie]=D[ae]=D[T]=D[E]=D[oe]=D[se]=D[ce]=!0,D[s]=D[c]=D[ne]=D[u]=D[C]=D[d]=D[f]=D[p]=D[h]=D[g]=D[v]=D[b]=D[x]=D[S]=D[te]=!1;var fe=typeof global==`object`&&global&&global.Object===Object&&global,pe=typeof self==`object`&&self&&self.Object===Object&&self,me=fe||pe||Function(`return this`)(),he=typeof e==`object`&&e&&!e.nodeType&&e,ge=he&&typeof t==`object`&&t&&!t.nodeType&&t,_e=ge&&ge.exports===he,ve=_e&&fe.process,ye=function(){try{return ge&&ge.require&&ge.require(`util`).types||ve&&ve.binding&&ve.binding(`util`)}catch{}}(),be=ye&&ye.isTypedArray;function xe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Se(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ce(e){return function(t){return e(t)}}function we(e,t){return e?.[t]}function Te(e,t){return function(n){return e(t(n))}}var Ee=Array.prototype,O=Function.prototype,De=Object.prototype,Oe=me[`__core-js_shared__`],ke=O.toString,k=De.hasOwnProperty,Ae=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),je=De.toString,Me=ke.call(Object),Ne=RegExp(`^`+ke.call(k).replace(le,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Pe=_e?me.Buffer:void 0,Fe=me.Symbol,Ie=me.Uint8Array,Le=Pe?Pe.allocUnsafe:void 0,Re=Te(Object.getPrototypeOf,Object),ze=Object.create,Be=De.propertyIsEnumerable,Ve=Ee.splice,A=Fe?Fe.toStringTag:void 0,He=function(){try{var e=kt(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Ue=Pe?Pe.isBuffer:void 0,We=Math.max,Ge=Date.now,Ke=kt(me,`Map`),qe=kt(Object,`create`),Je=function(){function e(){}return function(t){if(!Xt(t))return{};if(ze)return ze(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xe(){this.__data__=qe?qe(null):{},this.size=0}function Ze(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Qe(e){var t=this.__data__;if(qe){var n=t[e];return n===r?void 0:n}return k.call(t,e)?t[e]:void 0}function $e(e){var t=this.__data__;return qe?t[e]!==void 0:k.call(t,e)}function et(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qe&&t===void 0?r:t,this}Ye.prototype.clear=Xe,Ye.prototype.delete=Ze,Ye.prototype.get=Qe,Ye.prototype.has=$e,Ye.prototype.set=et;function j(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function tt(){this.__data__=[],this.size=0}function nt(e){var t=this.__data__,n=yt(t,e);return n<0?!1:(n==t.length-1?t.pop():Ve.call(t,n,1),--this.size,!0)}function rt(e){var t=this.__data__,n=yt(t,e);return n<0?void 0:t[n][1]}function it(e){return yt(this.__data__,e)>-1}function at(e,t){var n=this.__data__,r=yt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}j.prototype.clear=tt,j.prototype.delete=nt,j.prototype.get=rt,j.prototype.has=it,j.prototype.set=at;function M(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ot(){this.size=0,this.__data__={hash:new Ye,map:new(Ke||j),string:new Ye}}function st(e){var t=U(this,e).delete(e);return this.size-=t?1:0,t}function ct(e){return U(this,e).get(e)}function lt(e){return U(this,e).has(e)}function ut(e,t){var n=U(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}M.prototype.clear=ot,M.prototype.delete=st,M.prototype.get=ct,M.prototype.has=lt,M.prototype.set=ut;function dt(e){this.size=(this.__data__=new j(e)).size}function ft(){this.__data__=new j,this.size=0}function pt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function mt(e){return this.__data__.get(e)}function ht(e){return this.__data__.has(e)}function gt(e,t){var r=this.__data__;if(r instanceof j){var i=r.__data__;if(!Ke||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new M(i)}return r.set(e,t),this.size=r.size,this}dt.prototype.clear=ft,dt.prototype.delete=pt,dt.prototype.get=mt,dt.prototype.has=ht,dt.prototype.set=gt;function _t(e,t){var n=Wt(e),r=!n&&G(e),i=!n&&!r&&qt(e),a=!n&&!r&&!i&&Qt(e),o=n||r||i||a,s=o?Se(e.length,String):[],c=s.length;
108for(var l in e)(t||k.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Mt(l,c)))&&s.push(l);return s}function vt(e,t,n){(n!==void 0&&!Ut(e[t],n)||n===void 0&&!(t in e))&&P(e,t,n)}function N(e,t,n){var r=e[t];(!(k.call(e,t)&&Ut(r,n))||n===void 0&&!(t in e))&&P(e,t,n)}function yt(e,t){for(var n=e.length;n--;)if(Ut(e[n][0],t))return n;return-1}function P(e,t,n){t==`__proto__`&&He?He(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var bt=Ot();function F(e){return e==null?e===void 0?ee:_:A&&A in Object(e)?At(e):Rt(e)}function I(e){return K(e)&&F(e)==s}function xt(e){return!Xt(e)||Ft(e)?!1:(Jt(e)?Ne:ue).test(Ht(e))}function St(e){return K(e)&&Yt(e.length)&&!!D[F(e)]}function L(e){if(!Xt(e))return Lt(e);var t=It(e),n=[];for(var r in e)r==`constructor`&&(t||!k.call(e,r))||n.push(r);return n}function R(e,t,n,r,i){e!==t&&bt(t,function(a,o){if(i||=new dt,Xt(a))Ct(e,t,o,n,R,r,i);else{var s=r?r(W(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),vt(e,o,s)}},en)}function Ct(e,t,n,r,i,a,o){var s=W(e,n),c=W(t,n),l=o.get(c);if(l){vt(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=Wt(c),p=!f&&qt(c),m=!f&&!p&&Qt(c);u=c,f||p||m?Wt(s)?u=s:Kt(s)?u=H(s):p?(d=!1,u=wt(c,!0)):m?(d=!1,u=Tt(c,!0)):u=[]:Zt(c)||G(c)?(u=s,G(s)?u=$t(s):(!Xt(s)||Jt(s))&&(u=jt(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),vt(e,n,u)}function z(e,t){return Bt(zt(e,t,rn),e+``)}var B=He?function(e,t){return He(e,`toString`,{configurable:!0,enumerable:!1,value:nn(t),writable:!0})}:rn;function wt(e,t){if(t)return e.slice();var n=e.length,r=Le?Le(n):new e.constructor(n);return e.copy(r),r}function V(e){var t=new e.constructor(e.byteLength);return new Ie(t).set(new Ie(e)),t}function Tt(e,t){var n=t?V(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function H(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function Et(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?P(n,s,c):N(n,s,c)}return n}function Dt(e){return z(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Nt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}function Ot(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function U(e,t){var n=e.__data__;return Pt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function kt(e,t){var n=we(e,t);return xt(n)?n:void 0}function At(e){var t=k.call(e,A),n=e[A];try{e[A]=void 0;var r=!0}catch{}var i=je.call(e);return r&&(t?e[A]=n:delete e[A]),i}function jt(e){return typeof e.constructor==`function`&&!It(e)?Je(Re(e)):{}}function Mt(e,t){var n=typeof e;return t??=o,!!t&&(n==`number`||n!=`symbol`&&de.test(e))&&e>-1&&e%1==0&&e<t}function Nt(e,t,n){if(!Xt(n))return!1;var r=typeof t;return(r==`number`?Gt(n)&&Mt(t,n.length):r==`string`&&t in n)?Ut(n[t],e):!1}function Pt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Ft(e){return!!Ae&&Ae in e}function It(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||De)}function Lt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function Rt(e){return je.call(e)}function zt(e,t,n){return t=We(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=We(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),xe(e,this,s)}}function W(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var Bt=Vt(B);function Vt(e){var t=0,n=0;return function(){var r=Ge(),o=a-(r-n);if(n=r,o>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ht(e){if(e!=null){try{return ke.call(e)}catch{}try{return e+``}catch{}}return``}function Ut(e,t){return e===t||e!==e&&t!==t}var G=I(function(){return arguments}())?I:function(e){return K(e)&&k.call(e,`callee`)&&!Be.call(e,`callee`)},Wt=Array.isArray;function Gt(e){return e!=null&&Yt(e.length)&&!Jt(e)}function Kt(e){return K(e)&&Gt(e)}var qt=Ue||an;function Jt(e){if(!Xt(e))return!1;var t=F(e);return t==p||t==m||t==l||t==y}function Yt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=o}function Xt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function K(e){return typeof e==`object`&&!!e}function Zt(e){if(!K(e)||F(e)!=v)return!1;var t=Re(e);if(t===null)return!0;var n=k.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&ke.call(n)==Me}var Qt=be?Ce(be):St;function $t(e){return Et(e,en(e))}function en(e){return Gt(e)?_t(e,!0):L(e)}var tn=Dt(function(e,t,n){R(e,t,n)});function nn(e){return function(){return e}}function rn(e){return e}function an(){return!1}t.exports=tn}))()),Wi={name:`Navbar`,props:{open:{type:Boolean,default:!1},links:Array},emits:[`navbar-toggle`],computed:{showMenu:function(){return this.open&&this.isSmallScreen()}},methods:{isSmallScreen:function(){return window.matchMedia(`screen and (max-width: 1023px)`).matches}}},Gi={key:0,class:`container-fluid`},Ki={class:`navbar`,role:`navigation`,"aria-label":`main navigation`},qi={class:`container`},Ji={class:`navbar-brand`},Yi={class:`navbar-start`},Xi=[`href`,`target`],Zi={class:`navbar-end`};function Qi(e,n,r,i,a,o){return r.links?(C(),T(`div`,Gi,[S(`nav`,Ki,[S(`div`,qi,[S(`div`,Ji,[S(`a`,{role:`button`,"aria-label":`menu`,"aria-expanded":`false`,class:f([`navbar-burger`,{"is-active":o.showMenu}]),onClick:n[0]||=t=>e.$emit(`navbar-toggle`)},[...n[1]||=[S(`span`,{"aria-hidden":`true`},null,-1),S(`span`,{"aria-hidden":`true`},null,-1),S(`span`,{"aria-hidden":`true`},null,-1)]],2)]),S(`div`,{class:f([`navbar-menu`,{"is-active":o.showMenu}])},[S(`div`,Yi,[(C(!0),T(re,null,x(r.links,(e,n)=>(C(),T(`a`,{key:n,class:`navbar-item`,rel:`noreferrer`,href:e.url,target:e.target},[e.icon?(C(),T(`i`,{key:0,class:f([`fa-fw`,e.icon])},null,2)):w(``,!0),ne(` `+t(e.name),1)],8,Xi))),128))]),S(`div`,Zi,[b(e.$slots,`default`,{},void 0,!0)])],2)])])])):w(``,!0)}var $i=E(Wi,[[`render`,Qi],[`__scopeId`,`data-v-62dfe85f`]]),ea={name:`GetStarted`};function ta(e,t,n,r,i,a){return C(),T(`article`,null,[...t[0]||=[S(`div`,{class:`m-6 has-text-centered py-6 title`},[S(`p`,{class:`is-size-5 mb-2`},`No configuration found!`),S(`p`,null,`Check out the documentation to start building your dashboard.`),S(`p`,null,[S(`a`,{class:`button is-primary mt-5 has-text-weight-bold`,href:`https://github.com/bastienwirtz/homer/blob/main/docs/configuration.md#configuration`,target:`_blank`},` Get started â `)])],-1)]])}
108var na=E(ea,[[`render`,ta],[`__scopeId`,`data-v-cb4fd7ae`]]),ra={name:`ConnectivityChecker`,data:function(){return{offline:!1}},created:function(){/t=\d+/.test(window.location.href)&&window.history.replaceState({},document.title,window.location.pathname),this.checkOffline(),document.addEventListener(`visibilitychange`,this.handleVisibilityChange,!1),window.addEventListener(`online`,this.handleOnline,!1),window.addEventListener(`offline`,this.handleOffline,!1)},beforeUnmount:function(){document.removeEventListener(`visibilitychange`,this.handleVisibilityChange),window.removeEventListener(`online`,this.handleOnline),window.removeEventListener(`offline`,this.handleOffline)},methods:{handleVisibilityChange:function(){document.visibilityState===`visible`&&this.checkOffline()},handleOnline:function(){this.checkOffline()},handleOffline:function(){this.offline=!0},checkOffline:function(){if(!navigator.onLine){this.offline=!0;return}let e=this,t=new URL(window.location);return t.searchParams.set(`t`,new Date().valueOf()),fetch(t,{method:`HEAD`,cache:`no-store`,redirect:`manual`}).then(function(n){(n.type===`opaqueredirect`&&!n.ok||[401,403].indexOf(n.status)!=-1)&&(window.location.href=t),e.offline=!n.ok}).catch(function(){e.offline=!0}).finally(function(){e.$emit(`network-status-update`,e.offline)})}}},ia={key:0,class:`offline-message mb-4`,role:`alert`,"aria-live":`polite`};function aa(e,t,n,r,i,a){return e.offline?(C(),T(`div`,ia,[t[3]||=S(`i`,{class:`fa-solid fa-triangle-exclamation`},null,-1),S(`h1`,null,[t[2]||=ne(` Network unreachable `,-1),S(`button`,{"aria-label":`Retry connection check`,class:`retry-button`,onClick:t[0]||=(...e)=>a.checkOffline&&a.checkOffline(...e)},[...t[1]||=[S(`i`,{class:`fas fa-redo-alt`},null,-1)]])]),t[4]||=S(`p`,null,[S(`a`,{href:`https://github.com/bastienwirtz/homer/blob/main/docs/configuration.md#connectivity-checks`},`More information â`)],-1)])):w(``,!0)}var oa=E(ra,[[`render`,aa]]),sa=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})},ca=ye({default:()=>fa}),la={name:`Error`,mixins:[D],props:{item:Object,error:Object}},ua={class:`title is-4`};function da(e,n,r,i,a,o){let s=h(`Generic`);return C(),g(s,{item:r.item,title:r.error.message,class:`component-error`},{content:ue(()=>[S(`p`,ua,t(r.item.name),1),n[0]||=S(`p`,{class:`subtitle is-6`},`Failed to load component`,-1)]),indicator:ue(()=>[...n[1]||=[ne(`â ï¸`,-1)]]),_:1},8,[`item`,`title`])}var fa=E(la,[[`render`,da]]),pa=`modulepreload`,ma=function(e,t){return new URL(e,t).href},ha={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=ma(t,n),t in ha)return;ha[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:pa,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ga=`Generic`,_a={name:`Service`,props:{item:Object,proxy:Object},computed:{isGeneric(){return ga===(this.item.type||ga)},component(){return v({loader:()=>sa(Object.assign({
108"./services/AdGuardHome.vue":()=>$(()=>import(`./AdGuardHome-6S59rptX.js`),__vite__mapDeps([0,1,2,3]),import.meta.url),
108"./services/CopyToClipboard.vue":()=>$(()=>import(`./CopyToClipboard-BQf-xsHv.js`),__vite__mapDeps([4,1,2,5]),import.meta.url),
108"./services/DockerSocketProxy.vue":()=>$(()=>import(`./DockerSocketProxy-Djsulm5X.js`),__vite__mapDeps([6,1,2,7]),import.meta.url),
108"./services/Docuseal.vue":()=>$(()=>import(`./Docuseal-o5e2z5P1.js`),__vite__mapDeps([8,1,2,9]),import.meta.url),
108"./services/Emby.vue":()=>$(()=>import(`./Emby-Bqt6jzIv.js`),__vite__mapDeps([10,1,2,11]),import.meta.url),
108"./services/FreshRSS.vue":()=>$(()=>import(`./FreshRSS-BKByGqu8.js`),__vite__mapDeps([12,1,2,13]),import.meta.url),
108"./services/Gatus.vue":()=>$(()=>import(`./Gatus-C2moGWjE.js`),__vite__mapDeps([14,1,2,15]),import.meta.url),
108"./services/Generic.vue":()=>$(()=>Promise.resolve().then(()=>po),void 0,import.meta.url),
108"./services/Gitea.vue":()=>$(()=>import(`./Gitea-DHlAhuaD.js`),__vite__mapDeps([16,1,2,17]),import.meta.url),
108"./services/Glances.vue":()=>$(()=>import(`./Glances-B1BpgD8t.js`),__vite__mapDeps([18,1,2]),import.meta.url),
108"./services/Gotify.vue":()=>$(()=>import(`./Gotify-BtxYGEWn.js`),__vite__mapDeps([19,1,2,20]),import.meta.url),
108"./services/Healthchecks.vue":()=>$(()=>import(`./Healthchecks-DbuDIMkp.js`),__vite__mapDeps([21,1,2,22]),import.meta.url),
108"./services/HomeAssistant.vue":()=>$(()=>import(`./HomeAssistant-B6hCBEPL.js`),__vite__mapDeps([23,1,2,24]),import.meta.url),
108"./services/HyperHDR.vue":()=>$(()=>import(`./HyperHDR-Cz93wKqj.js`),__vite__mapDeps([25,1,2,26]),import.meta.url),
108"./services/Immich.vue":()=>$(()=>import(`./Immich-CvshFkAU.js`),__vite__mapDeps([27,1,2,28]),import.meta.url),
108"./services/Jellystat.vue":()=>$(()=>import(`./Jellystat-TMhyZ0Cn.js`),__vite__mapDeps([29,1,2,30]),import.meta.url),
108"./services/Lidarr.vue":()=>$(()=>import(`./Lidarr-IAPQG1S3.js`),__vite__mapDeps([31,1,2,32]),import.meta.url),
108"./services/Linkding.vue":()=>$(()=>import(`./Linkding-DdFrQLwx.js`),__vite__mapDeps([33,1,2]),import.meta.url),
108"./services/Matrix.vue":()=>$(()=>import(`./Matrix-D2eHLBdT.js`),__vite__mapDeps([34,1,2,35]),import.meta.url),
108"./services/Mealie.vue":()=>$(()=>import(`./Mealie-D56Kqgm2.js`),__vite__mapDeps([36,1,2]),import.meta.url),
108"./services/Medusa.vue":()=>$(()=>import(`./Medusa-DK6NyfjC.js`),__vite__mapDeps([37,1,2,38]),import.meta.url),
108"./services/Miniflux.vue":()=>$(()=>import(`./Miniflux-Co3W2z8c.js`),__vite__mapDeps([39,1,2,40]),import.meta.url),
108"./services/Mylar.vue":()=>$(()=>import(`./Mylar-ppwNPoM0.js`),__vite__mapDeps([41,1,2,42]),import.meta.url),
108"./services/NetAlertx.vue":()=>$(()=>import(`./NetAlertx-Bsxdu_Wf.js`),__vite__mapDeps([43,1,2,44]),import.meta.url),
108"./services/Nextcloud.vue":()=>$(()=>import(`./Nextcloud-bh2YZxc0.js`),__vite__mapDeps([45,1,2,46]),import.meta.url),
108"./services/OctoPrint.vue":()=>$(()=>import(`./OctoPrint-neCtmogh.js`),__vite__mapDeps([47,1,2,48]),import.meta.url),
108"./services/Olivetin.vue":()=>$(()=>import(`./Olivetin-BRYEfPWd.js`),__vite__mapDeps([49,1,2,50]),import.meta.url),
108"./services/OpenHAB.vue":()=>$(()=>import(`./OpenHAB-BGAPcOp5.js`),__vite__mapDeps([51,1,2,52]),import.meta.url),
108"./services/OpenWeather.vue":()=>$(()=>import(`./OpenWeather-VO89SKiX.js`),__vite__mapDeps([53,1,54]),import.meta.url),
108"./services/PaperlessNG.vue":()=>$(()=>import(`./PaperlessNG-Z9huoWqP.js`),__vite__mapDeps([55,1,2]),import.meta.url),
108"./services/PeaNUT.vue":()=>$(()=>import(`./PeaNUT-D8LG0nqZ.js`),__vite__mapDeps([56,1,2]),import.meta.url),
108"./services/PiAlert.vue":()=>$(()=>import(`./PiAlert-CptiGFvJ.js`),__vite__mapDeps([57,1,2,58]),import.meta.url),
108"./services/PiHole.vue":()=>$(()=>import(`./PiHole-DKYCy3JD.js`),__vite__mapDeps([59,1,2,60]),import.meta.url),
108"./services/Ping.vue":()=>$(()=>import(`./Ping-DjpvisBY.js`),__vite__mapDeps([61,1,2,62]),import.meta.url),
108"./services/Plex.vue":()=>$(()=>import(`./Plex-CxQ7WpY_.js`),__vite__mapDeps([63,1,2,64]),import.meta.url),
108"./services/Portainer.vue":()=>$(()=>import(`./Portainer--i5ECNy8.js`),__vite__mapDeps([65,1,2,66]),import.meta.url),
108"./services/Prometheus.vue":()=>$(()=>import(`./Prometheus-Did0SwZi.js`),__vite__mapDeps([67,1,2,68]),import.meta.url),
108"./services/Prowlarr.vue":()=>$(()=>import(`./Prowlarr-BaMfKmqt.js`),__vite__mapDeps([69,1,2,70]),import.meta.url),
108"./services/Proxmox.vue":()=>$(()=>import(`./Proxmox-CpskIpSV.js`),__vite__mapDeps([71,1,2,72]),import.meta.url),
108"./services/Radarr.vue":()=>$(()=>import(`./Radarr-rNwZH9EM.js`),__vite__mapDeps([73,1,2,74]),import.meta.url),
108"./services/Readarr.vue":()=>$(()=>import(`./Readarr-Btf_HQbh.js`),__vite__mapDeps([75,1,2,76]),import.meta.url),
108"./services/Rtorrent.vue":()=>$(()=>import(`./Rtorrent-DcgBJG8e.js`),__vite__mapDeps([77,1,78]),import.meta.url),
108"./services/SABnzbd.vue":()=>$(()=>import(`./SABnzbd-DVwo5n1P.js`),__vite__mapDeps([79,1,2,80]),import.meta.url),
108"./services/Scrutiny.vue":()=>$(()=>import(`./Scrutiny-CljtQa8z.js`),__vite__mapDeps([81,1,2,82]),import.meta.url),
108"./services/Sonarr.vue":()=>$(()=>import(`./Sonarr-B1Tim_Md.js`),__vite__mapDeps([83,1,2,84]),import.meta.url),
108"./services/SpeedtestTracker.vue":()=>$(()=>import(`./SpeedtestTracker-DeCU5wUL.js`),__vite__mapDeps([85,1,2]),import.meta.url),
108"./services/Tautulli.vue":()=>$(()=>import(`./Tautulli-CllNXIOF.js`),__vite__mapDeps([86,1,2,87]),import.meta.url),
108"./services/Tdarr.vue":()=>$(()=>import(`./Tdarr-CoMORpXT.js`),__vite__mapDeps([88,1,2,89]),import.meta.url),
108"./services/ThemeChooser.vue":()=>$(()=>import(`./ThemeChooser-Bj-H4MfP.js`),__vite__mapDeps([90,1,91]),import.meta.url),
108"./services/Traefik.vue":()=>$(()=>import(`./Traefik-C-A1oCI2.js`),__vite__mapDeps([92,1,2,93]),import.meta.url),
108"./services/Transmission.vue":()=>$(()=>import(`./Transmission-DF9Ifu0v.js`),__vite__mapDeps([94,1,2,95]),import.meta.url),
108"./services/TruenasScale.vue":()=>$(()=>import(`./TruenasScale-DkEV44Xf.js`),__vite__mapDeps([96,1,2,97]),import.meta.url),
108"./services/UptimeKuma.vue":()=>$(()=>import(`./UptimeKuma-BgOKg7QE.js`),__vite__mapDeps([98,1,2,99]),import.meta.url),
108"./services/Vaultwarden.vue":()=>$(()=>import(`./Vaultwarden-B3MOexl9.js`),__vite__mapDeps([100,1,2,101]),import.meta.url),
108"./services/WUD.vue":()=>$(()=>import(`./WUD-DajorOq6.js`),__vite__mapDeps([102,1,2,103]),import.meta.url),
108"./services/Wallabag.vue":()=>$(()=>import(`./Wallabag-7xnKe6m3.js`),__vite__mapDeps([104,1,2,105]),import.meta.url),
108"./services/_error.vue":()=>$(()=>Promise.resolve().then(()=>ca),void 0,import.meta.url),
108"./services/qBittorrent.vue":()=>$(()=>import(`./qBittorrent-DYiVSFBK.js`),__vite__mapDeps([106,1,2,107]),import.meta.url)
108}),`./services/${this.item.type}.vue`,3),errorComponent:fa,timeout:3e3})}}};function va(e,t,n,r,i,a){let o=h(`Generic`);return a.isGeneric?(C(),g(o,{key:0,item:n.item},null,8,[`item`])):(C(),g(se(a.component),{key:1,item:n.item,proxy:n.proxy},null,8,[`item`,`proxy`]))}var ya=E(_a,[[`render`,va]]),ba={name:`GroupHeader`,props:{group:{type:Object,required:!0}}},xa={key:1,class:`group-logo media-left`},Sa={class:`image is-48x48`},Ca=[`src`,`alt`];function wa(e,n,r,i,a,o){return C(),T(`h2`,{class:f(r.group.class)},[r.group.icon?(C(),T(`i`,{key:0,class:f([`fa-fw`,r.group.icon])},null,2)):r.group.logo?(C(),T(`div`,xa,[S(`figure`,Sa,[S(`img`,{src:r.group.logo,alt:`${r.group.name} logo`},null,8,Ca)])])):w(``,!0),ne(` `+t(r.group.name),1)],2)}var Ta={name:`ServiceGroup`,components:{Service:ya,GroupHeader:E(ba,[[`render`,wa]])},props:{group:{type:Object,required:!0},isVertical:{type:Boolean,default:!1},proxy:{type:String,default:null},columns:{type:String,required:!0},groupIndex:{type:Number,required:!0}}};function Ea(e,t,n,r,i,a){let o=h(`GroupHeader`),s=h(`Service`);return n.isVertical?(C(),T(`div`,{key:0,class:f([`column`,`is-${12/n.columns}`])},[n.group.name?(C(),g(o,{key:0,group:n.group,class:`group-title`},null,8,[`group`])):w(``,!0),(C(!0),T(re,null,x(n.group.items,(e,t)=>(C(),g(s,{key:`srv-${n.groupIndex}-${t}-${e.name||e.type}`,item:e,proxy:n.proxy,class:f(e.class||n.group.class)},null,8,[`item`,`proxy`,`class`]))),128))],2)):(C(),T(re,{key:1},[n.group.name?(C(),g(o,{key:`header-${n.groupIndex}`,group:n.group,class:`column is-full group-title`},null,8,[`group`])):w(``,!0),(C(!0),T(re,null,x(n.group.items,(e,t)=>(C(),g(s,{key:`srv-${n.groupIndex}-${t}-${e.name||e.type}`,item:e,proxy:n.proxy,class:f([`column`,`is-${12/n.columns}`,`${e.class||n.group.class||``}`])},null,8,[`item`,`proxy`,`class`]))),128))],64))}var Da=E(Ta,[[`render`,Ea]]),Oa={name:`Message`,props:{item:Object},data:function(){return{message:{}}},computed:{show:function(){return this.message.title||this.message.content}},watch:{item:function(e){this.message=Object.assign({},e)}},created:async function(){this.message=Object.assign({},this.item),await this.getMessage()},methods:{getMessage:async function(){if(this.item){if(this.item.url){let e=await this.downloadMessage(this.item.url);this.item.mapping&&(e=this.mapRemoteMessage(e));let t=this.message;for(let n of[`title`,`style`,`content`,`icon`])n in e&&e[n]!==null&&(t[n]=e[n]);this.message={...t}}this.item.refreshInterval&&setTimeout(this.getMessage,this.item.refreshInterval)}},downloadMessage:function(e){return fetch(e,{headers:{Accept:`application/json`}}).then(function(e){if(e.status==200)return e.json()})},mapRemoteMessage:function(e){let t={};for(let n in this.item.mapping)e[this.item.mapping[n]]&&(t[n]=e[this.item.mapping[n]]);return t}}},ka={key:0,class:`message-header`},Aa=[`innerHTML`];function ja(e,n,r,i,a,o){return o.show?(C(),T(`article`,{key:0,class:f([`message`,e.message.style])},[e.message.title||e.message.icon?(C(),T(`div`,ka,[S(`p`,null,[e.message.icon?(C(),T(`i`,{key:0,class:f(`fa-fw ${e.message.icon}`)},null,2)):w(``,!0),ne(` `+t(e.message.title),1)])])):w(``,!0),e.message.content?(C(),T(`div`,{key:1,class:`message-body`,innerHTML:e.message.content},null,8,Aa)):w(``,!0)],2)):w(``,!0)}var Ma=E(Oa,[[`render`,ja]]),Na={name:`SearchInput`,props:{value:String,hotkey:{type:String,default:`/`}},emits:[`search-open`,`search-focus`,`search-cancel`,`input`],mounted(){this._keyListener=function(e){!this.hasFocus()&&e.key===this.hotkey&&(e.preventDefault(),this.focus()),e.key===`Escape`&&this.cancel()},document.addEventListener(`keydown`,this._keyListener.bind(this));let e=new URLSearchParams(window.location.search).get(`search`);e&&(this.$refs.search.value=e,this.search(e),this.focus())},beforeUnmount(){document.removeEventListener(`keydown`,this._keyListener)},methods:{open:function(e=null){this.$refs.search.value&&this.$emit(`search-open`,e)},focus:function(){this.$emit(`search-focus`),this.$nextTick(()=>{this.$refs.search.focus()})},hasFocus:function(){return document.activeElement==this.$refs.search},setSearchURL:function(e){let t=new URL(window.location);e===``?t.searchParams.delete(`search`):t.searchParams.set(`search`,e),window.history.replaceState(`search`,null,t)},cancel:function(){this.setSearchURL(``),this.$refs.search.value=``,this.$refs.search.blur(),this.$emit(`search-cancel`)},search:function(e){this.setSearchURL(e),this.$emit(`input`,e.toLowerCase())}}},Pa={role:`search`},Fa=[`value`];function Ia(e,t,n,r,i,a){let o=h(`search`);return C(),g(o,{class:`search-bar`},{default:ue(()=>[S(`form`,Pa,[t[3]||=S(`label`,{for:`search`,class:`search-label`},null,-1),S(`input`,{id:`search`,ref:`search`,name:`search`,type:`search`,value:n.value,onInput:t[0]||=ct(e=>a.search(e.target.value),[`stop`]),onKeydown:[t[1]||=ut(ct(e=>a.open(),[`exact`,`prevent`]),[`enter`]),t[2]||=ut(ct(e=>a.open(`_blank`),[`alt`,`prevent`]),[`enter`])]},null,40,Fa)])]),_:1})}
108var La=E(Na,[[`render`,Ia]]),Ra={name:`SettingToggle`,props:{name:String,icon:String,iconAlt:String,defaultValue:Boolean},emits:[`updated`],data:function(){return{secondaryIcon:null,value:!0}},created:function(){this.secondaryIcon=this.iconAlt||this.icon,this.name in localStorage?this.value=JSON.parse(localStorage[this.name]):this.value=this.defaultValue,this.$emit(`updated`,this.value)},methods:{toggleSetting:function(){this.value=!this.value,localStorage[this.name]=this.value,this.$emit(`updated`,this.value)}}};function za(e,t,n,r,i,a){return C(),T(`a`,{class:`navbar-item is-inline-block-mobile`,onClick:t[0]||=ct(e=>a.toggleSetting(),[`prevent`])},[S(`span`,null,[S(`i`,{class:f([`fas`,`fa-fw`,e.value?n.icon:e.secondaryIcon])},null,2)]),b(e.$slots,`default`)])}var Ba=E(Ra,[[`render`,za]]),Va={name:`Darkmode`,props:{defaultValue:String},emits:[`updated`],data:function(){return{isDark:null,faClasses:null,titles:null,mode:null}},created:function(){if(this.faClasses=[`fas fa-adjust`,`fas fa-circle`,`far fa-circle`],this.titles=[`Auto-switch`,`Light theme`,`Dark theme`],this.mode=0,`overrideDark`in localStorage)this.mode=JSON.parse(localStorage.overrideDark)?2:1;else switch(this.defaultValue){case`light`:this.mode=1;break;case`dark`:this.mode=2;break;default:this.mode=0}this.isDark=this.getIsDark(),this.$emit(`updated`,this.isDark),this.watchIsDark()},methods:{toggleTheme:function(){switch(this.mode=(this.mode+1)%3,this.mode){case 0:localStorage.removeItem(`overrideDark`);break;case 1:localStorage.overrideDark=!1;break;case 2:localStorage.overrideDark=!0;break;default:break}this.isDark=this.getIsDark(),this.$emit(`updated`,this.isDark)},getIsDark:function(){return[matchMedia(`(prefers-color-scheme: dark)`).matches,!1,!0][this.mode]},watchIsDark:function(){matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{this.isDark=this.getIsDark(),this.$emit(`updated`,this.isDark)})}}},Ha=[`title`];function Ua(e,t,n,r,i,a){return C(),T(`a`,{"aria-label":`Toggle dark mode`,class:`navbar-item is-inline-block-mobile`,onClick:t[0]||=e=>a.toggleTheme()},[S(`i`,{class:f([`${e.faClasses[e.mode]}`,`fa-fw`]),title:`${e.titles[e.mode]}`},null,10,Ha)])}var Wa=E(Va,[[`render`,Ua]]),Ga={name:`DynamicTheme`,props:{themes:Object},methods:{getVars:function(e){let t=[];for(let n in e){let r=e[n];r?n==`background-image`&&(r=`url(${e[n]})`):r=`initial`,t.push(`--${n}: ${r}`)}return t.join(`;`)}}};function Ka(e,n,r,i,a,o){let s=h(`DynamicStyle`);return C(),g(s,null,{default:ue(()=>[ne(` :root, body #app.light { `+t(o.getVars(r.themes.light))+` } @media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) { :root, body #app { `+t(o.getVars(r.themes.light))+` } } body #app.dark { `+t(o.getVars(r.themes.dark))+` } @media (prefers-color-scheme: dark) { :root, body #app { `+t(o.getVars(r.themes.dark))+` } } `,1)]),_:1})}var qa=E(Ga,[[`render`,Ka]]),Ja=`--- 109# Default configuration 110 111title: "Dashboard" 112subtitle: "Homer" 113 114header: true 115footer: '<p>Created with <span class="has-text-danger">â¤ï¸</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it. 116 117columns: 3 118connectivityCheck: true 119 120defaults: 121 # columns, list 122 layout: columns 123 # auto, light, dark 124 colorTheme: auto 125 126theme: default 127colors: ~ 128 129message: ~ 130links: [] 131services: [] 132 133proxy: ~ 134`,Ya={name:`App`,components:{Navbar:$i,GetStarted:na,ConnectivityChecker:oa,ServiceGroup:Da,Message:Ma,SearchInput:La,SettingToggle:Ba,DarkMode:Wa,DynamicTheme:qa},provide(){return{config:()=>this.config}},data:function(){return{loaded:!1,currentPage:null,configNotFound:!1,config:null,services:null,offline:!1,filter:``,vlayout:!0,isDark:null,showMenu:!1}},computed:{configurationNeeded:function(){return this.loaded&&!this.services||this.configNotFound}},created:async function(){this.buildDashboard(),window.onhashchange=this.buildDashboard,this.loaded=!0,console.info(`Homer v26.04.2`)},beforeUnmount(){window.onhashchange=null},methods:{searchHotkey(){if(this.config.hotkey&&this.config.hotkey.search)return this.config.hotkey.search},buildDashboard:async function(){let e=Hi(Ja),t;try{if(t=await this.getConfig(),this.currentPage=window.location.hash.substring(1)||`default`,this.currentPage!==`default`){let e=await this.getConfig(`assets/${this.currentPage}.yml`);t=Object.assign(t,e)}}catch(e){console.log(e),t=this.handleErrors(`â ï¸ Error loading configuration`,e)}if(this.config=(0,Ui.default)(e,t),this.services=this.config.services,document.title=this.config.documentTitle||[this.config.title,this.config.subtitle].filter(
134Boolean).join(` | `),this.config.stylesheet){let e=``,t=this.config.stylesheet;Array.isArray(this.config.stylesheet)||(t=[t]);for(let n of t)e+=`@import "${n}";`;this.createStylesheet(e)}},getConfig:function(e=`assets/config.yml`){return fetch(e).then(e=>{if(e.status==404||e.redirected)return this.configNotFound=!0,{};if(!e.ok)throw Error(`${e.statusText}: ${e.body}`);let t=this;return e.text().then(e=>Hi(e,{merge:!0})).then(function(e){return e.externalConfig?t.getConfig(e.externalConfig):e})})},matchesFilter:function(e){let t=this.filter?.toLowerCase();return e.name.toLowerCase().includes(t)||e.subtitle&&e.subtitle.toLowerCase().includes(t)||e.tag&&e.tag.toLowerCase().includes(t)||e.keywords&&e.keywords.toLowerCase().includes(t)},navigateToFirstService:function(e){try{let t=this.services[0].items[0];window.open(t.url,e||t.target||`_self`)}catch{console.warn(`fail to open service`)}},filterServices:function(e){if(this.filter=e,!e){this.services=this.config.services;return}let t=[];for(let e of this.config.services)if(e.items!==null)for(let n of e.items)this.matchesFilter(n)&&t.push(n);this.services=[{name:e,icon:`fas fa-search`,items:t}]},handleErrors:function(e,t){return{message:{title:e,style:`is-danger`,content:t}}},createStylesheet:function(e){let t=document.createElement(`style`);t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}}},Xa={id:`bighead`},Za={key:0,class:`first-line`},Qa={class:`container`},$a={class:`logo`},eo={href:`#`},to=[`src`],no={class:`dashboard-title`},ro={class:`headline`},io={id:`main-section`,class:`section`},ao={class:`container`},oo={key:2},so={class:`footer`},co={class:`container`},lo=[`innerHTML`];function uo(e,n,r,i,a,o){let s=h(`DynamicTheme`),c=h(`DarkMode`),l=h(`SettingToggle`),u=h(`SearchInput`),d=h(`Navbar`),p=h(`ConnectivityChecker`),m=h(`GetStarted`),_=h(`Message`),v=h(`ServiceGroup`);return e.config?(C(),T(`div`,{key:0,id:`app`,class:f([`theme-${e.config.theme}`,`page-${e.currentPage}`,e.isDark?`dark`:`light`,e.config.footer?``:`no-footer`])},[e.config.colors?(C(),g(s,{key:0,themes:e.config.colors},null,8,[`themes`])):w(``,!0),S(`div`,Xa,[e.config.header?(C(),T(`section`,Za,[S(`div`,Qa,[S(`div`,$a,[S(`a`,eo,[e.config.logo?(C(),T(`img`,{key:0,src:e.config.logo,alt:`dashboard logo`},null,8,to)):w(``,!0)]),e.config.icon?(C(),T(`i`,{key:0,class:f(e.config.icon)},null,2)):w(``,!0)]),S(`div`,no,[S(`span`,ro,t(e.config.subtitle),1),S(`h1`,null,t(e.config.title),1)])])])):w(``,!0),oe(d,{open:e.showMenu,links:e.config.links,onNavbarToggle:n[5]||=t=>e.showMenu=!e.showMenu},{default:ue(()=>[oe(c,{"default-value":e.config.defaults.colorTheme,onUpdated:n[0]||=t=>e.isDark=t},null,8,[`default-value`]),oe(l,{name:`vlayout`,icon:`fa-list`,"icon-alt":`fa-columns`,"default-value":e.config.defaults.layout==`columns`,onUpdated:n[1]||=t=>e.vlayout=t},null,8,[`default-value`]),oe(u,{class:`navbar-item is-inline-block-mobile`,hotkey:o.searchHotkey(),onInput:n[2]||=e=>o.filterServices(e),onSearchFocus:n[3]||=t=>e.showMenu=!0,onSearchOpen:o.navigateToFirstService,onSearchCancel:n[4]||=e=>o.filterServices()},null,8,[`hotkey`,`onSearchOpen`])]),_:1},8,[`open`,`links`])]),S(`section`,io,[S(`div`,ao,[e.config.connectivityCheck?(C(),g(p,{key:0,onNetworkStatusUpdate:n[6]||=t=>e.offline=t})):w(``,!0),o.configurationNeeded?(C(),g(m,{key:1})):w(``,!0),e.offline?w(``,!0):(C(),T(`div`,oo,[oe(_,{item:e.config.message},null,8,[`item`]),S(`div`,{class:f([`columns`,`is-multiline`,{"layout-vertical":e.vlayout&&!e.filter}])},[(C(!0),T(re,null,x(e.services,(t,n)=>(C(),g(v,{key:`${e.currentPage}-${n}`,group:t,"is-vertical":e.vlayout&&!e.filter,proxy:e.config.proxy,columns:e.config.columns,"group-index":n},null,8,[`group`,`is-vertical`,`proxy`,`columns`,`group-index`]))),128))],2)]))])]),S(`footer`,so,[S(`div`,co,[e.config.footer?(C(),T(`div`,{key:0,class:`content has-text-centered`,innerHTML:e.config.footer},null,8,lo)):w(``,!0)])])],2)):w(``,!0)}var fo=E(Ya,[[`render`,uo]]),po=ye({default:()=>Ao}),mo={name:`Generic`,props:{item:Object},computed:{mediaClass:function(){return{media:!0,"no-subtitle":!this.item.subtitle}}}},ho=[`href`,`target`],go={class:`card-content`},_o={key:0,class:`media-left`},vo={class:`image is-48x48`},yo=[`src`,`alt`],bo={key:1,class:`media-left`},xo={class:`image is-48x48`},So={class:`media-content`},Co={class:`title`},wo={key:0,class:`quicklinks`},To=[`href`,`target`],Eo={key:0},Do={key:1,class:`subtitle`},Oo={class:`tag-text`};function ko(e,n,r,i,a,o){return C(),T(`div`,null,[S(`div`,{class:`card`,style:de(`background-color:${r.item.background};`)},[S(`a`,{href:r.item.url,target:r.item.target,rel:`noreferrer`},[S(`div`,go,[S(`div`,{class:f(o.mediaClass)},[b(e.$slots,`icon`,{},()=>[r.item.logo?(C(),T(`div`,_o,[S(`figure`,vo,[S(`img`,{src:r.item.logo,alt:`${r.item.name} logo`},null,8,yo)])])):w(``,!0),r.item.icon?(C(),T(`div`,bo,[S(`figure`,xo,[S(`i`,{style:{"font-size":`32px`},class:f([`fa-fw`,r.item.icon])},null,2)])])):w(``,!0)],!0),S(`div`,So,[b(e.$slots,`content`,{},()=>[S(`p`,Co,t(r.item.name),1),r.item.quick?(C(),T(`p`,wo,[(C(!0),T(re,null,x(r.item.quick,(e,n)=>(C(),T(`a`,{key:n,style:de(`background-color:${e.color};`),href:e.url,target:e.target,rel:`noreferrer`},[e.icon?(C(),T(`span`,Eo,[S(`i`,{style:{"font-size":`12px`},class:f([`fa-fw`,e.icon])},null,2)])):w(``,!0),ne(` `+t(e.name),1)],12,To))),128))])):w(``,!0),r.item.subtitle?(C(),T(`p`,Do,t(r.item.subtitle),
1341)):w(``,!0)],!0)]),b(e.$slots,`indicator`,{class:`indicator`},void 0,!0)],2),r.item.tag?(C(),T(`div`,{key:0,class:f([`tag`,r.item.tagstyle])},[S(`strong`,Oo,`#`+t(r.item.tag),1)],2)):w(``,!0)])],8,ho)],4)])}var Ao=E(mo,[[`render`,ko],[`__scopeId`,`data-v-28ce3c2c`]]),jo=mt(fo);jo.component(`Generic`,Ao).component(`DynamicStyle`,(e,t)=>y(`style`,{},t.slots)),jo.mount(`#app-mount`);export{it as n,Ao as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.